Version Description
- Improvement: PayPal payment successful but submission not stored.
- Improvement: Load select2.js and moment.js libraries conditionally.
- Improvement: WP 5.6 and PHP 8 compatibility fixes.
- Fix: Invalid font weight and font style classes on the front-end.
- Fix: Time field showing the required validation error even when it is not empty.
- Fix: Submission loader keeps spinning with JS errors in the console.
- Fix: Fatal error on Google Sheets integration.
- Fix: Importing CF7 forms throwing fatal PHP error.
- Fix: Missing forms in Forms listing page.
- Other minor enhancements and security fixes.
Download this release
Release Info
Developer | alerzhus |
Plugin | Forminator Payment, Quiz and Contact Form Plugin |
Version | 1.14.7 |
Comparing to | |
See all releases |
Code changes from version 1.14.6 to 1.14.7
- addons/pro/activecampaign/lib/class-forminator-addon-activecampaign-wp-api.php +1 -1
- addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php +1 -1
- addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php +1 -1
- addons/pro/fortressdb/class-fortressdb-forminator.php +2 -0
- addons/pro/googlesheet/lib/external/Google/Utils.php +1 -1
- addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php +5 -1
- addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php +1 -1
- addons/pro/slack/lib/class-forminator-addon-slack-wp-api.php +1 -1
- addons/pro/trello/lib/class-forminator-addon-trello-wp-api.php +1 -1
- addons/pro/zapier/lib/class-forminator-addon-zapier-wp-api.php +1 -1
- admin/abstracts/class-admin-page.php +1 -24
- admin/classes/class-admin-ajax.php +3 -17
- admin/classes/class-admin.php +1 -222
- admin/classes/thirdparty-importers/class-importer-cf7.php +9 -2
- admin/views/dashboard/black-friday.php +0 -133
- admin/views/settings/payments/section-paypal.php +8 -19
- admin/views/upgrade/upgrade-content.php +1 -1
- assets/forminator-ui/CHANGELOG.md +4 -0
- assets/forminator-ui/css/src/form/forminator-form-basic.pagination.min.css +5 -0
- assets/forminator-ui/js/forminator-form.js +12 -8
- assets/forminator-ui/js/forminator-form.min.js +1 -1
- assets/images/forminator-black-friday-modal.png +0 -0
- assets/images/forminator-black-friday-modal@2x.png +0 -0
- assets/js/front/front.paypal.js +40 -43
- assets/js/front/front.submit.js +8 -0
- assets/js/front/front.validate.js +1 -5
- assets/js/front/templates/form/bold/back-font.html +1 -1
- assets/js/front/templates/form/bold/checkbox-font.html +1 -1
- assets/js/front/templates/form/bold/description-font.html +1 -1
- assets/js/front/templates/form/bold/dropdown-font.html +1 -1
- assets/js/front/templates/form/bold/dropdown2-font.html +2 -2
- assets/js/front/templates/form/bold/field-error-font.html +1 -1
- assets/js/front/templates/form/bold/fonts.html +12 -12
- assets/js/front/templates/form/bold/input-font.html +1 -1
- assets/js/front/templates/form/bold/input-prefix-font.html +1 -1
- assets/js/front/templates/form/bold/input-suffix-font.html +1 -1
- assets/js/front/templates/form/bold/label-font.html +1 -1
- assets/js/front/templates/form/bold/multiselect-font.html +1 -1
- assets/js/front/templates/form/bold/multiupload-font.html +3 -3
- assets/js/front/templates/form/bold/next-font.html +1 -1
- assets/js/front/templates/form/bold/pagination-progress-font.html +1 -1
- assets/js/front/templates/form/bold/pagination-steps-font.html +1 -1
- assets/js/front/templates/form/bold/radio-font.html +1 -1
- assets/js/front/templates/form/bold/response-font.html +2 -2
- assets/js/front/templates/form/bold/section-font.html +3 -3
- assets/js/front/templates/form/bold/select-font.html +1 -1
- assets/js/front/templates/form/bold/select2-font.html +1 -1
- assets/js/front/templates/form/bold/signature-font.html +1 -1
- assets/js/front/templates/form/bold/submit-font.html +1 -1
- assets/js/front/templates/form/bold/textarea-font.html +1 -1
- assets/js/front/templates/form/bold/upload-font.html +2 -2
- assets/js/front/templates/form/default/back-font.html +1 -1
- assets/js/front/templates/form/default/checkbox-font.html +1 -1
- assets/js/front/templates/form/default/description-font.html +1 -1
- assets/js/front/templates/form/default/dropdown-font.html +1 -1
- assets/js/front/templates/form/default/dropdown2-font.html +2 -2
- assets/js/front/templates/form/default/field-error-font.html +1 -1
- assets/js/front/templates/form/default/fonts.html +12 -12
- assets/js/front/templates/form/default/input-font.html +1 -1
- assets/js/front/templates/form/default/input-prefix-font.html +1 -1
- assets/js/front/templates/form/default/input-suffix-font.html +1 -1
- assets/js/front/templates/form/default/label-font.html +1 -1
- assets/js/front/templates/form/default/multiselect-font.html +1 -1
- assets/js/front/templates/form/default/multiupload-font.html +3 -3
- assets/js/front/templates/form/default/next-font.html +1 -1
- assets/js/front/templates/form/default/pagination-progress-font.html +1 -1
- assets/js/front/templates/form/default/pagination-steps-font.html +1 -1
- assets/js/front/templates/form/default/radio-font.html +1 -1
- assets/js/front/templates/form/default/response-font.html +2 -2
- assets/js/front/templates/form/default/section-font.html +3 -3
- assets/js/front/templates/form/default/select-font.html +1 -1
- assets/js/front/templates/form/default/select2-font.html +1 -1
- assets/js/front/templates/form/default/signature-font.html +1 -1
- assets/js/front/templates/form/default/submit-font.html +1 -1
- assets/js/front/templates/form/default/textarea-font.html +1 -1
- assets/js/front/templates/form/default/upload-font.html +2 -2
- assets/js/front/templates/form/flat/back-font.html +1 -1
- assets/js/front/templates/form/flat/checkbox-font.html +1 -1
- assets/js/front/templates/form/flat/description-font.html +1 -1
- assets/js/front/templates/form/flat/dropdown-font.html +1 -1
- assets/js/front/templates/form/flat/dropdown2-font.html +2 -2
- assets/js/front/templates/form/flat/field-error-font.html +1 -1
- assets/js/front/templates/form/flat/fonts.html +12 -12
- assets/js/front/templates/form/flat/input-font.html +1 -1
- assets/js/front/templates/form/flat/input-prefix-font.html +1 -1
- assets/js/front/templates/form/flat/input-suffix-font.html +1 -1
- assets/js/front/templates/form/flat/label-font.html +1 -1
- assets/js/front/templates/form/flat/multiselect-font.html +1 -1
- assets/js/front/templates/form/flat/multiupload-font.html +3 -3
- assets/js/front/templates/form/flat/next-font.html +1 -1
- assets/js/front/templates/form/flat/pagination-progress-font.html +1 -1
- assets/js/front/templates/form/flat/pagination-steps-font.html +1 -1
- assets/js/front/templates/form/flat/radio-font.html +1 -1
- assets/js/front/templates/form/flat/response-font.html +1 -1
- assets/js/front/templates/form/flat/section-font.html +3 -3
- assets/js/front/templates/form/flat/select-font.html +1 -1
- assets/js/front/templates/form/flat/select2-font.html +1 -1
- assets/js/front/templates/form/flat/signature-font.html +1 -1
- assets/js/front/templates/form/flat/submit-font.html +1 -1
- assets/js/front/templates/form/flat/textarea-font.html +1 -1
- assets/js/front/templates/form/flat/upload-font.html +2 -2
- assets/js/front/templates/form/material/back-font.html +1 -1
- assets/js/front/templates/form/material/checkbox-font.html +1 -1
- assets/js/front/templates/form/material/description-font.html +1 -1
- assets/js/front/templates/form/material/dropdown-font.html +1 -1
- assets/js/front/templates/form/material/dropdown2-font.html +2 -2
- assets/js/front/templates/form/material/field-error-font.html +1 -1
- assets/js/front/templates/form/material/fonts.html +15 -15
- assets/js/front/templates/form/material/input-font.html +1 -1
- assets/js/front/templates/form/material/input-prefix-font.html +1 -1
- assets/js/front/templates/form/material/input-suffix-font.html +1 -1
- assets/js/front/templates/form/material/label-font.html +3 -3
- assets/js/front/templates/form/material/multiselect-font.html +1 -1
- assets/js/front/templates/form/material/multiupload-font.html +3 -3
- assets/js/front/templates/form/material/next-font.html +1 -1
- assets/js/front/templates/form/material/pagination-progress-font.html +1 -1
- assets/js/front/templates/form/material/pagination-steps-font.html +2 -2
- assets/js/front/templates/form/material/radio-font.html +1 -1
- assets/js/front/templates/form/material/response-font.html +1 -1
- assets/js/front/templates/form/material/section-font.html +3 -3
- assets/js/front/templates/form/material/select-font.html +1 -1
- assets/js/front/templates/form/material/select2-font.html +1 -1
- assets/js/front/templates/form/material/signature-font.html +1 -1
- assets/js/front/templates/form/material/submit-font.html +1 -1
- assets/js/front/templates/form/material/textarea-font.html +1 -1
- assets/js/front/templates/form/material/upload-font.html +2 -2
- assets/js/front/templates/quiz/knowledge/global/content/answers-text.html +2 -2
- assets/js/front/templates/quiz/knowledge/global/content/questions-legend.html +2 -2
- assets/js/front/templates/quiz/knowledge/global/content/questions-result.html +2 -2
- assets/js/front/templates/quiz/knowledge/global/footer/social-share.html +3 -3
- assets/js/front/templates/quiz/knowledge/global/footer/submit-button.html +1 -1
- assets/js/front/templates/quiz/knowledge/global/footer/summary.html +2 -2
- assets/js/front/templates/quiz/knowledge/global/header/quiz-description.html +4 -4
- assets/js/front/templates/quiz/knowledge/global/header/quiz-title.html +4 -4
- assets/js/front/templates/quiz/knowledge/global/quiz-container.html +2 -2
- assets/js/front/templates/quiz/knowledge/material/fonts.html +8 -8
- assets/js/front/templates/quiz/nowrong/bold/quiz-result.html +8 -8
- assets/js/front/templates/quiz/nowrong/default/quiz-result.html +8 -8
- assets/js/front/templates/quiz/nowrong/flat/quiz-result.html +8 -8
- assets/js/front/templates/quiz/nowrong/global/content/answers-text.html +2 -2
- assets/js/front/templates/quiz/nowrong/global/content/questions-legend.html +2 -2
- assets/js/front/templates/quiz/nowrong/global/content/questions-result.html +2 -2
- assets/js/front/templates/quiz/nowrong/global/footer/social-share.html +3 -3
- assets/js/front/templates/quiz/nowrong/global/footer/submit-button.html +1 -1
- assets/js/front/templates/quiz/nowrong/global/header/quiz-description.html +2 -2
- assets/js/front/templates/quiz/nowrong/global/header/quiz-title.html +2 -2
- assets/js/front/templates/quiz/nowrong/global/quiz-container.html +2 -2
- assets/js/front/templates/quiz/nowrong/material/quiz-result.html +6 -6
- build/admin/dashboard.js +1 -1
- build/admin/settings-page.js +1 -1
- build/front/front.multi.min.js +1 -1
- build/main.js +4 -4
- forminator.php +2 -2
- languages/forminator.pot +378 -444
- library/class-export.php +3 -3
- library/external/src/Forminator/PayPal/Api/Address.php +0 -62
- library/external/src/Forminator/PayPal/Api/Agreement.php +0 -647
- library/external/src/Forminator/PayPal/Api/AgreementDetails.php +0 -209
- library/external/src/Forminator/PayPal/Api/AgreementStateDescriptor.php +0 -65
- library/external/src/Forminator/PayPal/Api/AgreementTransaction.php +0 -257
- library/external/src/Forminator/PayPal/Api/AgreementTransactions.php +0 -71
- library/external/src/Forminator/PayPal/Api/AlternatePayment.php +0 -91
- library/external/src/Forminator/PayPal/Api/Amount.php +0 -93
- library/external/src/Forminator/PayPal/Api/Authorization.php +0 -507
- library/external/src/Forminator/PayPal/Api/BankAccount.php +0 -629
- library/external/src/Forminator/PayPal/Api/BankAccountsList.php +0 -119
- library/external/src/Forminator/PayPal/Api/BankToken.php +0 -89
- library/external/src/Forminator/PayPal/Api/BaseAddress.php +0 -211
- library/external/src/Forminator/PayPal/Api/Billing.php +0 -43
- library/external/src/Forminator/PayPal/Api/BillingAgreementToken.php +0 -17
- library/external/src/Forminator/PayPal/Api/BillingInfo.php +0 -235
- library/external/src/Forminator/PayPal/Api/CancelNotification.php +0 -167
- library/external/src/Forminator/PayPal/Api/Capture.php +0 -341
- library/external/src/Forminator/PayPal/Api/CarrierAccount.php +0 -138
- library/external/src/Forminator/PayPal/Api/CarrierAccountToken.php +0 -65
- library/external/src/Forminator/PayPal/Api/CartBase.php +0 -408
- library/external/src/Forminator/PayPal/Api/ChargeModel.php +0 -89
- library/external/src/Forminator/PayPal/Api/Cost.php +0 -69
- library/external/src/Forminator/PayPal/Api/CountryCode.php +0 -41
- library/external/src/Forminator/PayPal/Api/CreateProfileResponse.php +0 -40
- library/external/src/Forminator/PayPal/Api/Credit.php +0 -66
- library/external/src/Forminator/PayPal/Api/CreditCard.php +0 -560
- library/external/src/Forminator/PayPal/Api/CreditCardHistory.php +0 -91
- library/external/src/Forminator/PayPal/Api/CreditCardList.php +0 -120
- library/external/src/Forminator/PayPal/Api/CreditCardToken.php +0 -161
- library/external/src/Forminator/PayPal/Api/CreditFinancingOffered.php +0 -12
addons/pro/activecampaign/lib/class-forminator-addon-activecampaign-wp-api.php
CHANGED
@@ -108,7 +108,7 @@ class Forminator_Addon_Activecampaign_Wp_Api {
|
|
108 |
* @throws Forminator_Addon_Activecampaign_Wp_Api_Exception
|
109 |
* @throws Forminator_Addon_Activecampaign_Wp_Api_Not_Found_Exception
|
110 |
*/
|
111 |
-
private function request( $verb
|
112 |
// Adding extra user agent for wp remote request
|
113 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
114 |
|
108 |
* @throws Forminator_Addon_Activecampaign_Wp_Api_Exception
|
109 |
* @throws Forminator_Addon_Activecampaign_Wp_Api_Not_Found_Exception
|
110 |
*/
|
111 |
+
private function request( $verb, $path, $args = array() ) {
|
112 |
// Adding extra user agent for wp remote request
|
113 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
114 |
|
addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php
CHANGED
@@ -139,7 +139,7 @@ class Forminator_Addon_Aweber_Wp_Api {
|
|
139 |
* @throws Forminator_Addon_Aweber_Wp_Api_Exception
|
140 |
* @throws Forminator_Addon_Aweber_Wp_Api_Not_Found_Exception
|
141 |
*/
|
142 |
-
private function request( $verb
|
143 |
// Adding extra user agent for wp remote request
|
144 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
145 |
|
139 |
* @throws Forminator_Addon_Aweber_Wp_Api_Exception
|
140 |
* @throws Forminator_Addon_Aweber_Wp_Api_Not_Found_Exception
|
141 |
*/
|
142 |
+
private function request( $verb, $url, $args = array(), $headers = array() ) {
|
143 |
// Adding extra user agent for wp remote request
|
144 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
145 |
|
addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php
CHANGED
@@ -127,7 +127,7 @@ class Forminator_Addon_Campaignmonitor_Wp_Api {
|
|
127 |
* @throws Forminator_Addon_Campaignmonitor_Wp_Api_Exception
|
128 |
* @throws Forminator_Addon_Campaignmonitor_Wp_Api_Not_Found_Exception
|
129 |
*/
|
130 |
-
private function request( $verb
|
131 |
// Adding extra user agent for wp remote request
|
132 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
133 |
|
127 |
* @throws Forminator_Addon_Campaignmonitor_Wp_Api_Exception
|
128 |
* @throws Forminator_Addon_Campaignmonitor_Wp_Api_Not_Found_Exception
|
129 |
*/
|
130 |
+
private function request( $verb, $path, $args = array() ) {
|
131 |
// Adding extra user agent for wp remote request
|
132 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
133 |
|
addons/pro/fortressdb/class-fortressdb-forminator.php
CHANGED
@@ -136,6 +136,8 @@ final class FortressDB_Forminator_Addon extends Forminator_Addon_Abstract {
|
|
136 |
'markup' => self::get_link_markup( $fortress_install_url, esc_html__( 'Install FortressDB', Forminator::DOMAIN ), '_self', 'forminator-addon-close' ),
|
137 |
);
|
138 |
|
|
|
|
|
139 |
return array(
|
140 |
'html' => $html,
|
141 |
'buttons' => $buttons,
|
136 |
'markup' => self::get_link_markup( $fortress_install_url, esc_html__( 'Install FortressDB', Forminator::DOMAIN ), '_self', 'forminator-addon-close' ),
|
137 |
);
|
138 |
|
139 |
+
$has_errors = false;
|
140 |
+
|
141 |
return array(
|
142 |
'html' => $html,
|
143 |
'buttons' => $buttons,
|
addons/pro/googlesheet/lib/external/Google/Utils.php
CHANGED
@@ -62,7 +62,7 @@ class Forminator_Google_Utils
|
|
62 |
$strlenVar = strlen($str);
|
63 |
$d = $ret = 0;
|
64 |
for ($count = 0; $count < $strlenVar; ++ $count) {
|
65 |
-
$ordinalValue = ord($str
|
66 |
switch (true) {
|
67 |
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
|
68 |
// characters U-00000000 - U-0000007F (same as ASCII)
|
62 |
$strlenVar = strlen($str);
|
63 |
$d = $ret = 0;
|
64 |
for ($count = 0; $count < $strlenVar; ++ $count) {
|
65 |
+
$ordinalValue = ord($str[$ret]);
|
66 |
switch (true) {
|
67 |
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
|
68 |
// characters U-00000000 - U-0000007F (same as ASCII)
|
addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php
CHANGED
@@ -135,7 +135,11 @@ class Forminator_Addon_Hubspot_Wp_Api {
|
|
135 |
* @throws Forminator_Addon_Hubspot_Wp_Api_Exception
|
136 |
* @throws Forminator_Addon_Hubspot_Wp_Api_Not_Found_Exception
|
137 |
*/
|
138 |
-
private function request( $verb
|
|
|
|
|
|
|
|
|
139 |
// Adding extra user agent for wp remote request
|
140 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
141 |
|
135 |
* @throws Forminator_Addon_Hubspot_Wp_Api_Exception
|
136 |
* @throws Forminator_Addon_Hubspot_Wp_Api_Not_Found_Exception
|
137 |
*/
|
138 |
+
private function request( $verb, $path, $args, $access_token, $json = false ) {
|
139 |
+
if ( ! is_array( $args ) ) {
|
140 |
+
$args = array();
|
141 |
+
}
|
142 |
+
|
143 |
// Adding extra user agent for wp remote request
|
144 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
145 |
|
addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php
CHANGED
@@ -139,7 +139,7 @@ class Forminator_Addon_Mailchimp_Wp_Api {
|
|
139 |
* @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
|
140 |
* @throws Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception
|
141 |
*/
|
142 |
-
private function request( $verb
|
143 |
// Adding extra user agent for wp remote request
|
144 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
145 |
$url = trailingslashit( $this->_endpoint ) . $path;
|
139 |
* @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
|
140 |
* @throws Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception
|
141 |
*/
|
142 |
+
private function request( $verb, $path, $args = array() ) {
|
143 |
// Adding extra user agent for wp remote request
|
144 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
145 |
$url = trailingslashit( $this->_endpoint ) . $path;
|
addons/pro/slack/lib/class-forminator-addon-slack-wp-api.php
CHANGED
@@ -133,7 +133,7 @@ class Forminator_Addon_Slack_Wp_Api {
|
|
133 |
* @throws Forminator_Addon_Slack_Wp_Api_Exception
|
134 |
* @throws Forminator_Addon_Slack_Wp_Api_Not_Found_Exception
|
135 |
*/
|
136 |
-
private function request( $verb
|
137 |
// Adding extra user agent for wp remote request
|
138 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
139 |
|
133 |
* @throws Forminator_Addon_Slack_Wp_Api_Exception
|
134 |
* @throws Forminator_Addon_Slack_Wp_Api_Not_Found_Exception
|
135 |
*/
|
136 |
+
private function request( $verb, $path, $args = array() ) {
|
137 |
// Adding extra user agent for wp remote request
|
138 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
139 |
|
addons/pro/trello/lib/class-forminator-addon-trello-wp-api.php
CHANGED
@@ -114,7 +114,7 @@ class Forminator_Addon_Trello_Wp_Api {
|
|
114 |
* @throws Forminator_Addon_Trello_Wp_Api_Exception
|
115 |
* @throws Forminator_Addon_Trello_Wp_Api_Not_Found_Exception
|
116 |
*/
|
117 |
-
private function request( $verb
|
118 |
// Adding extra user agent for wp remote request
|
119 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
120 |
|
114 |
* @throws Forminator_Addon_Trello_Wp_Api_Exception
|
115 |
* @throws Forminator_Addon_Trello_Wp_Api_Not_Found_Exception
|
116 |
*/
|
117 |
+
private function request( $verb, $path, $args = array() ) {
|
118 |
// Adding extra user agent for wp remote request
|
119 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
120 |
|
addons/pro/zapier/lib/class-forminator-addon-zapier-wp-api.php
CHANGED
@@ -122,7 +122,7 @@ class Forminator_Addon_Zapier_Wp_Api {
|
|
122 |
* @throws Forminator_Addon_Zapier_Wp_Api_Exception
|
123 |
* @throws Forminator_Addon_Zapier_Wp_Api_Not_Found_Exception
|
124 |
*/
|
125 |
-
private function request( $verb
|
126 |
// Adding extra user agent for wp remote request
|
127 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
128 |
|
122 |
* @throws Forminator_Addon_Zapier_Wp_Api_Exception
|
123 |
* @throws Forminator_Addon_Zapier_Wp_Api_Not_Found_Exception
|
124 |
*/
|
125 |
+
private function request( $verb, $path, $args = array() ) {
|
126 |
// Adding extra user agent for wp remote request
|
127 |
add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
|
128 |
|
admin/abstracts/class-admin-page.php
CHANGED
@@ -50,7 +50,7 @@ abstract class Forminator_Admin_Page {
|
|
50 |
*/
|
51 |
public function __construct(
|
52 |
$page_slug,
|
53 |
-
$folder
|
54 |
$page_title,
|
55 |
$menu_title,
|
56 |
$parent = false,
|
@@ -224,27 +224,6 @@ abstract class Forminator_Admin_Page {
|
|
224 |
<?php
|
225 |
}
|
226 |
|
227 |
-
public function black_friday_widget() {
|
228 |
-
$dismissed_messages = get_user_meta( get_current_user_id(), 'frmt_dismissed_messages', true );
|
229 |
-
|
230 |
-
// Hide for Forminator Pro
|
231 |
-
if ( FORMINATOR_PRO ) {
|
232 |
-
return;
|
233 |
-
}
|
234 |
-
|
235 |
-
// Hide if already dismissed
|
236 |
-
if ( isset( $dismissed_messages['forminator_black_modal_dismissed'] ) && $dismissed_messages['forminator_black_modal_dismissed'] ) {
|
237 |
-
return;
|
238 |
-
}
|
239 |
-
|
240 |
-
// Hide if not admin user
|
241 |
-
if ( ! is_admin() ) {
|
242 |
-
return;
|
243 |
-
}
|
244 |
-
|
245 |
-
$this->template( 'dashboard/black-friday' );
|
246 |
-
}
|
247 |
-
|
248 |
/**
|
249 |
* Render page footer
|
250 |
*
|
@@ -261,8 +240,6 @@ abstract class Forminator_Admin_Page {
|
|
261 |
$footer_text = apply_filters( 'wpmudev_branding_footer_text', $footer_text );
|
262 |
}
|
263 |
|
264 |
-
$this->black_friday_widget();
|
265 |
-
|
266 |
if ( $this->template_exists( $this->folder . '/footer' ) ) {
|
267 |
$this->template( $this->folder . '/footer' );
|
268 |
}
|
50 |
*/
|
51 |
public function __construct(
|
52 |
$page_slug,
|
53 |
+
$folder,
|
54 |
$page_title,
|
55 |
$menu_title,
|
56 |
$parent = false,
|
224 |
<?php
|
225 |
}
|
226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
/**
|
228 |
* Render page footer
|
229 |
*
|
240 |
$footer_text = apply_filters( 'wpmudev_branding_footer_text', $footer_text );
|
241 |
}
|
242 |
|
|
|
|
|
243 |
if ( $this->template_exists( $this->folder . '/footer' ) ) {
|
244 |
$this->template( $this->folder . '/footer' );
|
245 |
}
|
admin/classes/class-admin-ajax.php
CHANGED
@@ -106,8 +106,6 @@ class Forminator_Admin_AJAX {
|
|
106 |
add_action( 'wp_ajax_forminator_dismiss_notification', array( $this, 'dismiss_notice' ) );
|
107 |
|
108 |
add_action( 'wp_ajax_forminator_later_notification', array( $this, 'later_notice' ) );
|
109 |
-
|
110 |
-
add_action( 'wp_ajax_forminator_dismiss_blackfriday', array( $this, 'dismiss_blackrfiday_notice' ) );
|
111 |
}
|
112 |
|
113 |
/**
|
@@ -1455,7 +1453,7 @@ class Forminator_Admin_AJAX {
|
|
1455 |
|
1456 |
$post_data = $this->get_post_data();
|
1457 |
$importable = ( isset( $post_data['cf7_forms'] ) ? $post_data['cf7_forms'] : '' );// wpcs: CSRF ok
|
1458 |
-
$importer =
|
1459 |
if ( ! empty( $importer ) ) :
|
1460 |
if ( ! empty( $importable ) ) {
|
1461 |
if ( 'specific' === $importable ) {
|
@@ -2201,7 +2199,7 @@ class Forminator_Admin_AJAX {
|
|
2201 |
);
|
2202 |
}
|
2203 |
|
2204 |
-
|
2205 |
|
2206 |
if ( empty( $live_id ) ) {
|
2207 |
throw new Forminator_Gateway_Exception(
|
@@ -2216,7 +2214,7 @@ class Forminator_Admin_AJAX {
|
|
2216 |
);
|
2217 |
}
|
2218 |
|
2219 |
-
|
2220 |
|
2221 |
Forminator_PayPal_Express::store_settings(
|
2222 |
array(
|
@@ -2305,18 +2303,6 @@ class Forminator_Admin_AJAX {
|
|
2305 |
wp_send_json_success();
|
2306 |
}
|
2307 |
|
2308 |
-
public function dismiss_blackrfiday_notice() {
|
2309 |
-
forminator_validate_ajax( 'forminator_dismiss_blackfriday' );
|
2310 |
-
|
2311 |
-
$slug = filter_input( INPUT_POST, 'prop', FILTER_SANITIZE_STRING );
|
2312 |
-
|
2313 |
-
$dismissed_messages = get_user_meta( get_current_user_id(), 'frmt_dismissed_messages', true );
|
2314 |
-
$dismissed_messages = empty( $dismissed_messages ) ? array() : $dismissed_messages;
|
2315 |
-
$dismissed_messages[ $slug ] = true;
|
2316 |
-
|
2317 |
-
update_user_meta( get_current_user_id(), 'frmt_dismissed_messages', $dismissed_messages );
|
2318 |
-
}
|
2319 |
-
|
2320 |
/**
|
2321 |
* Dismiss notice
|
2322 |
*
|
106 |
add_action( 'wp_ajax_forminator_dismiss_notification', array( $this, 'dismiss_notice' ) );
|
107 |
|
108 |
add_action( 'wp_ajax_forminator_later_notification', array( $this, 'later_notice' ) );
|
|
|
|
|
109 |
}
|
110 |
|
111 |
/**
|
1453 |
|
1454 |
$post_data = $this->get_post_data();
|
1455 |
$importable = ( isset( $post_data['cf7_forms'] ) ? $post_data['cf7_forms'] : '' );// wpcs: CSRF ok
|
1456 |
+
$importer = $this->importers( 'cf7' );
|
1457 |
if ( ! empty( $importer ) ) :
|
1458 |
if ( ! empty( $importable ) ) {
|
1459 |
if ( 'specific' === $importable ) {
|
2199 |
);
|
2200 |
}
|
2201 |
|
2202 |
+
$paypal->validate_id( 'sandbox', $sandbox_id, $sandbox_secret, Forminator_PayPal_Express::INVALID_SANDBOX_SECRET_EXCEPTION );
|
2203 |
|
2204 |
if ( empty( $live_id ) ) {
|
2205 |
throw new Forminator_Gateway_Exception(
|
2214 |
);
|
2215 |
}
|
2216 |
|
2217 |
+
$paypal->validate_id( 'live', $live_id, $live_secret, Forminator_PayPal_Express::INVALID_LIVE_SECRET_EXCEPTION );
|
2218 |
|
2219 |
Forminator_PayPal_Express::store_settings(
|
2220 |
array(
|
2303 |
wp_send_json_success();
|
2304 |
}
|
2305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2306 |
/**
|
2307 |
* Dismiss notice
|
2308 |
*
|
admin/classes/class-admin.php
CHANGED
@@ -25,7 +25,6 @@ class Forminator_Admin {
|
|
25 |
add_action( 'admin_menu', array( $this, 'add_dashboard_page' ) );
|
26 |
add_action( 'admin_notices', array( $this, 'show_stripe_updated_notice' ) );
|
27 |
add_action( 'admin_notices', array( $this, 'show_rating_notice' ) );
|
28 |
-
add_action( 'admin_notices', array( $this, 'show_black_friday_notice' ) );
|
29 |
add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
|
30 |
|
31 |
// Add plugin action links
|
@@ -453,226 +452,6 @@ class Forminator_Admin {
|
|
453 |
|
454 |
<?php }
|
455 |
|
456 |
-
/**
|
457 |
-
* Is Forminator plugin page
|
458 |
-
*
|
459 |
-
* @since 1.14.5
|
460 |
-
*
|
461 |
-
* @return bool
|
462 |
-
*
|
463 |
-
*/
|
464 |
-
public function is_plugin_screen() {
|
465 |
-
$screens = array(
|
466 |
-
'toplevel_page_forminator',
|
467 |
-
'toplevel_page_forminator-network',
|
468 |
-
'forminator_page_forminator-cform',
|
469 |
-
'forminator_page_forminator-cform-network',
|
470 |
-
'forminator_page_forminator-poll',
|
471 |
-
'forminator_page_forminator-poll-network',
|
472 |
-
'forminator_page_forminator-quiz',
|
473 |
-
'forminator_page_forminator-quiz-network',
|
474 |
-
'forminator_page_forminator-settings',
|
475 |
-
'forminator_page_forminator-settings-network',
|
476 |
-
'forminator_page_forminator-cform-wizard',
|
477 |
-
'forminator_page_forminator-cform-wizard-network',
|
478 |
-
'forminator_page_forminator-cform-view',
|
479 |
-
'forminator_page_forminator-cform-view-network',
|
480 |
-
'forminator_page_forminator-poll-wizard',
|
481 |
-
'forminator_page_forminator-poll-wizard-network',
|
482 |
-
'forminator_page_forminator-poll-view',
|
483 |
-
'forminator_page_forminator-poll-view-network',
|
484 |
-
'forminator_page_forminator-nowrong-wizard',
|
485 |
-
'forminator_page_forminator-nowrong-wizard-network',
|
486 |
-
'forminator_page_forminator-knowledge-wizard',
|
487 |
-
'forminator_page_forminator-knowledge-wizard-network',
|
488 |
-
'forminator_page_forminator-quiz-view',
|
489 |
-
'forminator_page_forminator-quiz-view-network',
|
490 |
-
'forminator_page_forminator-entries',
|
491 |
-
'forminator_page_forminator-entries-network',
|
492 |
-
'forminator_page_forminator-integrations',
|
493 |
-
'forminator_page_forminator-integrations-network',
|
494 |
-
'forminator_page_forminator-upgrade',
|
495 |
-
'forminator_page_forminator-upgrade-network'
|
496 |
-
);
|
497 |
-
|
498 |
-
$current_screen = get_current_screen();
|
499 |
-
|
500 |
-
if ( ! $current_screen instanceof WP_Screen || ! isset( $current_screen->id ) ) {
|
501 |
-
return false;
|
502 |
-
}
|
503 |
-
|
504 |
-
if ( in_array( $current_screen->id, $screens ) ) {
|
505 |
-
return true;
|
506 |
-
}
|
507 |
-
|
508 |
-
return false;
|
509 |
-
}
|
510 |
-
|
511 |
-
/**
|
512 |
-
* Show black friday notice
|
513 |
-
*
|
514 |
-
* @since 1.14.5
|
515 |
-
*/
|
516 |
-
public function show_black_friday_notice() {
|
517 |
-
$dismissed_messages = get_user_meta( get_current_user_id(), 'frmt_dismissed_messages', true );
|
518 |
-
$time_left = $this->get_blackfriday_time_left();
|
519 |
-
|
520 |
-
// Hide for Forminator Pro
|
521 |
-
if ( FORMINATOR_PRO ) {
|
522 |
-
return;
|
523 |
-
}
|
524 |
-
|
525 |
-
// Hide if already dismissed
|
526 |
-
if ( isset( $dismissed_messages['forminator_black_notice_dismissed'] ) && $dismissed_messages['forminator_black_notice_dismissed'] ) {
|
527 |
-
return;
|
528 |
-
}
|
529 |
-
|
530 |
-
// Enable notifications for plugin pages only
|
531 |
-
if ( ! $this->is_plugin_screen() ) {
|
532 |
-
return;
|
533 |
-
}
|
534 |
-
|
535 |
-
// Hide if not admin user
|
536 |
-
if ( ! is_admin() ) {
|
537 |
-
return;
|
538 |
-
}
|
539 |
-
?>
|
540 |
-
|
541 |
-
<div id="fui-black-notice-content" class="notice forminator-notice" data-prop="forminator_black_notice_dismissed" data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_dismiss_blackfriday' ) ); ?>">
|
542 |
-
|
543 |
-
<div class="sui-wrap">
|
544 |
-
|
545 |
-
<div class="fui-black-notice-header">
|
546 |
-
|
547 |
-
<span class="fui-black-ribbon"><?php esc_html_e( '60% OFF', Forminator::DOMAIN ); ?></span>
|
548 |
-
|
549 |
-
<h3 class="fui-black-title"><?php esc_html_e( 'Black Friday 60% OFF Forminator Pro!', Forminator::DOMAIN ); ?></h3>
|
550 |
-
|
551 |
-
<?php if ( $time_left ): ?>
|
552 |
-
|
553 |
-
<div class="fui-black-timer-container">
|
554 |
-
|
555 |
-
<p class="fui-black-timer-slogan"><?php esc_html_e( 'Limited Black Friday offer!', Forminator::DOMAIN ); ?></p>
|
556 |
-
|
557 |
-
<div class="fui-black-timer">
|
558 |
-
|
559 |
-
<div class="fui-black-time">
|
560 |
-
|
561 |
-
<p><?php esc_html_e( 'Days', Forminator::DOMAIN ); ?></p>
|
562 |
-
|
563 |
-
<?php $this->print_blackfriday_time( $time_left->d ); ?>
|
564 |
-
|
565 |
-
</div>
|
566 |
-
|
567 |
-
<span class="fui-black-timer-dots" aria-hidden="true"></span>
|
568 |
-
|
569 |
-
<div class="fui-black-time">
|
570 |
-
|
571 |
-
<p><?php esc_html_e( 'Hours', Forminator::DOMAIN ); ?></p>
|
572 |
-
|
573 |
-
<?php $this->print_blackfriday_time( $time_left->h ); ?>
|
574 |
-
|
575 |
-
</div>
|
576 |
-
|
577 |
-
<span class="fui-black-timer-dots" aria-hidden="true"></span>
|
578 |
-
|
579 |
-
<div class="fui-black-time">
|
580 |
-
|
581 |
-
<p><?php esc_html_e( 'Minutes', Forminator::DOMAIN ); ?></p>
|
582 |
-
|
583 |
-
<?php $this->print_blackfriday_time( $time_left->i ); ?>
|
584 |
-
|
585 |
-
</div>
|
586 |
-
|
587 |
-
</div>
|
588 |
-
|
589 |
-
</div>
|
590 |
-
|
591 |
-
<?php endif; ?>
|
592 |
-
|
593 |
-
</div>
|
594 |
-
|
595 |
-
<div class="fui-black-notice-body">
|
596 |
-
|
597 |
-
<div class="fui-black-notice-content">
|
598 |
-
|
599 |
-
<p><?php esc_html_e( 'Get Forminator Pro for the lowest price you will ever see and unlock eSignature, 24/7 support, and upcoming subscription payments!', Forminator::DOMAIN ); ?></p>
|
600 |
-
|
601 |
-
<p class="fui-black-notice-statement"><?php esc_html_e( '*Only admin users can see this message', Forminator::DOMAIN ); ?></p>
|
602 |
-
|
603 |
-
</div>
|
604 |
-
|
605 |
-
<a href="https://premium.wpmudev.org/project/forminator-pro/?coupon=BF2020FORMINATOR&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_bf2020banner" class="sui-button sui-button-blue" target="_blank">
|
606 |
-
<?php esc_html_e( 'Get 60% OFF Forminator Pro', Forminator::DOMAIN ); ?>
|
607 |
-
</a>
|
608 |
-
|
609 |
-
<button class="fui-black-notice-dismiss dismiss-notice">
|
610 |
-
<?php esc_html_e( 'Dismiss', Forminator::DOMAIN ); ?>
|
611 |
-
</button>
|
612 |
-
|
613 |
-
</div>
|
614 |
-
|
615 |
-
</div>
|
616 |
-
|
617 |
-
</div>
|
618 |
-
|
619 |
-
<script type="text/javascript">
|
620 |
-
jQuery( '.forminator-notice .dismiss-notice' ).on( 'click', function( e ) {
|
621 |
-
e.preventDefault();
|
622 |
-
|
623 |
-
var $notice = jQuery( e.currentTarget ).closest( '.forminator-notice' );
|
624 |
-
var ajaxUrl = '<?php echo forminator_ajax_url();// phpcs:ignore ?>';
|
625 |
-
|
626 |
-
jQuery.post(
|
627 |
-
ajaxUrl,
|
628 |
-
{
|
629 |
-
action: 'forminator_dismiss_blackfriday',
|
630 |
-
prop: $notice.data('prop'),
|
631 |
-
_ajax_nonce: $notice.data('nonce')
|
632 |
-
}
|
633 |
-
).always( function() {
|
634 |
-
$notice.hide();
|
635 |
-
});
|
636 |
-
});
|
637 |
-
</script>
|
638 |
-
|
639 |
-
<?php }
|
640 |
-
|
641 |
-
/**
|
642 |
-
* Print Black Friday time
|
643 |
-
*
|
644 |
-
* @since 1.14.5
|
645 |
-
*
|
646 |
-
* @return mixed
|
647 |
-
*/
|
648 |
-
public function print_blackfriday_time( $number ) {
|
649 |
-
if ( $number < 10 ) {
|
650 |
-
$first = 0;
|
651 |
-
$second = $number;
|
652 |
-
} else {
|
653 |
-
$second = $number % 10;
|
654 |
-
$first = ( $number - $second ) / 10;
|
655 |
-
}
|
656 |
-
|
657 |
-
printf( '<div><span>%s</span><span>%s</span></div>', (int) $first, (int) $second );
|
658 |
-
}
|
659 |
-
|
660 |
-
/**
|
661 |
-
* Get Black Friday Time left
|
662 |
-
*
|
663 |
-
* @since 1.14.5
|
664 |
-
*
|
665 |
-
* @return mixed
|
666 |
-
*/
|
667 |
-
public function get_blackfriday_time_left() {
|
668 |
-
$deadline = date_create( '2020-11-28T00:00:00', new DateTimeZone( '-0400' ) );
|
669 |
-
$data = date_create( date( 'Y-m-d H:i:s' ) );
|
670 |
-
|
671 |
-
return $deadline > $data
|
672 |
-
? $deadline->diff( $data )
|
673 |
-
: false;
|
674 |
-
}
|
675 |
-
|
676 |
/**
|
677 |
* Show action links on the plugin screen.
|
678 |
*
|
@@ -695,7 +474,7 @@ class Forminator_Admin {
|
|
695 |
|
696 |
// Upgrade or Renew links.
|
697 |
if ( ! FORMINATOR_PRO || 'upgrade' === $membership ) {
|
698 |
-
$action_links['upgrade'] = '<a href="' . forminator_get_link( 'plugin', 'forminator_pluginlist_upgrade' ) . '" aria-label="' . esc_attr( __( 'Upgrade to Forminator Pro', Forminator::DOMAIN ) ) . '" style="color: #8D00B1;" target="_blank">' . esc_html__( 'Upgrade
|
699 |
} elseif ( 'expired' === $membership || 'free' === $membership ) {
|
700 |
$action_links['renew'] = '<a href="' . forminator_get_link( 'plugin', 'forminator_pluginlist_renew' ) . '" aria-label="' . esc_attr( __( 'Renew Your Membership', Forminator::DOMAIN ) ) . '" style="color: #8D00B1;" target="_blank">' . esc_html__( 'Renew Membership', Forminator::DOMAIN ) . '</a>';
|
701 |
}
|
25 |
add_action( 'admin_menu', array( $this, 'add_dashboard_page' ) );
|
26 |
add_action( 'admin_notices', array( $this, 'show_stripe_updated_notice' ) );
|
27 |
add_action( 'admin_notices', array( $this, 'show_rating_notice' ) );
|
|
|
28 |
add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
|
29 |
|
30 |
// Add plugin action links
|
452 |
|
453 |
<?php }
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
/**
|
456 |
* Show action links on the plugin screen.
|
457 |
*
|
474 |
|
475 |
// Upgrade or Renew links.
|
476 |
if ( ! FORMINATOR_PRO || 'upgrade' === $membership ) {
|
477 |
+
$action_links['upgrade'] = '<a href="' . forminator_get_link( 'plugin', 'forminator_pluginlist_upgrade' ) . '" aria-label="' . esc_attr( __( 'Upgrade to Forminator Pro', Forminator::DOMAIN ) ) . '" style="color: #8D00B1;" target="_blank">' . esc_html__( 'Upgrade', Forminator::DOMAIN ) . '</a>';
|
478 |
} elseif ( 'expired' === $membership || 'free' === $membership ) {
|
479 |
$action_links['renew'] = '<a href="' . forminator_get_link( 'plugin', 'forminator_pluginlist_renew' ) . '" aria-label="' . esc_attr( __( 'Renew Your Membership', Forminator::DOMAIN ) ) . '" style="color: #8D00B1;" target="_blank">' . esc_html__( 'Renew Membership', Forminator::DOMAIN ) . '</a>';
|
480 |
}
|
admin/classes/thirdparty-importers/class-importer-cf7.php
CHANGED
@@ -413,8 +413,15 @@ class Forminator_Admin_Import_CF7 extends Forminator_Import_Mediator {
|
|
413 |
$settings['submitData']['custom-class'] = $submit_class;
|
414 |
|
415 |
if ( is_plugin_active( 'wpcf7-redirect/wpcf7-redirect.php' ) && in_array( 'redirection', $cf7_addons, true ) ) {
|
416 |
-
$redirect
|
417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
|
419 |
if ( ! empty( $redirect_meta['page_id'] ) || ! empty( $redirect_meta['external_url'] ) ) {
|
420 |
if ( $redirect_meta['external_url'] && 'on' === $redirect_meta['use_external_url'] ) {
|
413 |
$settings['submitData']['custom-class'] = $submit_class;
|
414 |
|
415 |
if ( is_plugin_active( 'wpcf7-redirect/wpcf7-redirect.php' ) && in_array( 'redirection', $cf7_addons, true ) ) {
|
416 |
+
$redirect = new WPCF7_Redirect();
|
417 |
+
if ( method_exists( $redirect, 'get_fields_values' ) ) {
|
418 |
+
// For old wpcf7-redirect plugin.
|
419 |
+
$redirect_meta = $redirect->get_fields_values( $id );
|
420 |
+
} else {
|
421 |
+
// For new wpcf7-redirect plugin after their update.
|
422 |
+
$redirect = new WPCF7R_Form( $id );
|
423 |
+
$redirect_meta = $redirect->get_cf7_redirection_settings();
|
424 |
+
}
|
425 |
|
426 |
if ( ! empty( $redirect_meta['page_id'] ) || ! empty( $redirect_meta['external_url'] ) ) {
|
427 |
if ( $redirect_meta['external_url'] && 'on' === $redirect_meta['use_external_url'] ) {
|
admin/views/dashboard/black-friday.php
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$banner_1x = forminator_plugin_url() . 'assets/images/forminator-black-friday-modal.png';
|
3 |
-
$banner_2x = forminator_plugin_url() . 'assets/images/forminator-black-friday-modal@2x.png';
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div
|
7 |
-
id="forminator-black-friday"
|
8 |
-
class="sui-dialog sui-dialog-onboard"
|
9 |
-
aria-hidden="true"
|
10 |
-
>
|
11 |
-
|
12 |
-
<div class="sui-dialog-overlay sui-fade-out" data-a11y-dialog-hide="forminator-black-friday" aria-hidden="true"></div>
|
13 |
-
|
14 |
-
<div
|
15 |
-
class="sui-dialog-content sui-fade-out"
|
16 |
-
role="dialog"
|
17 |
-
>
|
18 |
-
|
19 |
-
<div class="sui-slider forminator-feature-modal" data-prop="forminator_black_modal_dismissed" data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_dismiss_blackfriday' ) ); ?>">
|
20 |
-
|
21 |
-
<ul role="document" class="sui-slider-content">
|
22 |
-
|
23 |
-
<li class="sui-current sui-loaded" data-slide="1">
|
24 |
-
|
25 |
-
<div class="sui-box">
|
26 |
-
|
27 |
-
<div class="sui-box-banner" role="banner" aria-hidden="true">
|
28 |
-
<img
|
29 |
-
src="<?php echo esc_url( $banner_1x ); ?>"
|
30 |
-
srcset="<?php echo esc_url( $banner_1x ); ?> 1x, <?php echo esc_url( $banner_2x ); ?> 2x"
|
31 |
-
class="sui-image"
|
32 |
-
alt="Forminator"
|
33 |
-
/>
|
34 |
-
</div>
|
35 |
-
|
36 |
-
<div class="sui-box-header">
|
37 |
-
<button data-a11y-dialog-hide="forminator-black-friday" style="z-index: 2" class="sui-dialog-close forminator-dismiss-new-feature" aria-label="<?php esc_html_e( 'Close this dialog window', Forminator::DOMAIN ); ?>"></button>
|
38 |
-
</div>
|
39 |
-
|
40 |
-
<div class="sui-box-body">
|
41 |
-
|
42 |
-
<div id="fui-black-modal-content" class="sui-border-frame">
|
43 |
-
|
44 |
-
<h3 id="hustle-dialog--black-friday-sale-title" class="fui-black-title"><?php esc_html_e( 'Forminator Pro 60% OFF', Forminator::DOMAIN ); ?></h3>
|
45 |
-
|
46 |
-
<p id="hustle-dialog--black-friday-sale-desc" class="sui-description"><?php esc_html_e( 'For all your form needs.', Forminator::DOMAIN ); ?></p>
|
47 |
-
|
48 |
-
<p class="sui-screen-reader-text" style="margin-bottom: 0;"><?php esc_html_e( 'Before $60 per year, now $24 per year. A total of 8 months free!', Forminator::DOMAIN ); ?></p>
|
49 |
-
|
50 |
-
<div class="fui-black-price" aria-hidden="true">
|
51 |
-
|
52 |
-
<p>
|
53 |
-
<del>$60</del>
|
54 |
-
<ins>$24</ins>
|
55 |
-
<span>/<?php esc_html_e( 'year', Forminator::DOMAIN ); ?></span>
|
56 |
-
</p>
|
57 |
-
|
58 |
-
<p><?php esc_html_e( 'Total of 8 months free!', Forminator::DOMAIN ); ?></p>
|
59 |
-
|
60 |
-
</div>
|
61 |
-
|
62 |
-
<p><a href="https://premium.wpmudev.org/project/forminator-pro/?coupon=BF2020FORMINATOR&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_bf2020modal_cta" class="sui-button sui-button-purple" target="_blank"><?php esc_html_e( 'Get 60% Off Forminator Pro', Forminator::DOMAIN ); ?></a></p>
|
63 |
-
|
64 |
-
<h4 class="fui-black-benefits-title"><?php esc_html_e( 'Forminator Pro Benefits', Forminator::DOMAIN ); ?></h4>
|
65 |
-
|
66 |
-
<ul class="fui-black-benefits-list">
|
67 |
-
|
68 |
-
<li class="fui-black-benefits-first">
|
69 |
-
<span class="sui-icon-check sui-sm" aria-hidden="true"></span>
|
70 |
-
<?php esc_html_e( 'eSignature Module', Forminator::DOMAIN ); ?>
|
71 |
-
</li>
|
72 |
-
|
73 |
-
<li class="fui-black-benefirst-subscriptions">
|
74 |
-
<span class="sui-icon-check sui-sm" aria-hidden="true"></span>
|
75 |
-
<?php esc_html_e( 'Subscription Payments', Forminator::DOMAIN ); ?><span class="sui-tag sui-tag-sm sui-tag-blue"><?php esc_html_e( 'Coming Soon', Forminator::DOMAIN ); ?></span>
|
76 |
-
</li>
|
77 |
-
|
78 |
-
<li class="fui-black-benefits-first">
|
79 |
-
<span class="sui-icon-check sui-sm" aria-hidden="true"></span>
|
80 |
-
<?php esc_html_e( 'All Future Pro Extensions', Forminator::DOMAIN ); ?>
|
81 |
-
</li>
|
82 |
-
|
83 |
-
<li>
|
84 |
-
<span class="sui-icon-check sui-sm" aria-hidden="true"></span>
|
85 |
-
<?php esc_html_e( '24/7 Support', Forminator::DOMAIN ); ?>
|
86 |
-
</li>
|
87 |
-
|
88 |
-
</ul>
|
89 |
-
|
90 |
-
</div>
|
91 |
-
|
92 |
-
</div>
|
93 |
-
|
94 |
-
<div class="sui-box-footer">
|
95 |
-
|
96 |
-
<a href="https://premium.wpmudev.org/project/forminator-pro/?coupon=BF2020FORMINATOR&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_bf2020modal_checkallplansbutton" class="sui-button sui-button-ghost" target="_blank">
|
97 |
-
<span class="sui-icon-open-new-window sui-sm" aria-hidden="true"></span>
|
98 |
-
<?php esc_html_e( 'Check All Plans', Forminator::DOMAIN ); ?>
|
99 |
-
</a>
|
100 |
-
|
101 |
-
</div>
|
102 |
-
|
103 |
-
</div>
|
104 |
-
|
105 |
-
</li>
|
106 |
-
|
107 |
-
</ul>
|
108 |
-
|
109 |
-
</div>
|
110 |
-
|
111 |
-
</div>
|
112 |
-
|
113 |
-
</div>
|
114 |
-
|
115 |
-
<script type="text/javascript">
|
116 |
-
jQuery( '#forminator-black-friday .forminator-dismiss-new-feature' ).on( 'click', function( e ) {
|
117 |
-
e.preventDefault();
|
118 |
-
|
119 |
-
var $notice = jQuery( e.currentTarget ).closest( '.forminator-feature-modal' );
|
120 |
-
var ajaxUrl = '<?php echo forminator_ajax_url();// phpcs:ignore ?>';
|
121 |
-
|
122 |
-
jQuery.post(
|
123 |
-
ajaxUrl,
|
124 |
-
{
|
125 |
-
action: 'forminator_dismiss_blackfriday',
|
126 |
-
prop: $notice.data('prop'),
|
127 |
-
_ajax_nonce: $notice.data('nonce')
|
128 |
-
}
|
129 |
-
).always( function() {
|
130 |
-
$notice.hide();
|
131 |
-
});
|
132 |
-
});
|
133 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/views/settings/payments/section-paypal.php
CHANGED
@@ -1,24 +1,21 @@
|
|
1 |
<?php
|
2 |
$plugin_url = forminator_plugin_url();
|
3 |
$paypal_min_php_version = apply_filters( 'forminator_payments_paypal_min_php_version', '5.3' );
|
4 |
-
$paypal_loaded = forminator_payment_lib_paypal_version_loaded( '1.14.0' );
|
5 |
$paypal_is_configured = false;
|
6 |
$forminator_currencies = forminator_pp_currency_list();
|
7 |
$paypal_default_currency = 'USD';
|
8 |
|
9 |
-
|
|
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
$paypal_default_currency = $paypal->get_default_currency();
|
15 |
-
if ( $paypal->is_test_ready() || $paypal->is_live_ready() ) {
|
16 |
-
$paypal_is_configured = true;
|
17 |
-
}
|
18 |
-
} catch ( Forminator_Gateway_Exception $e ) {
|
19 |
-
$paypal_is_configured = false;
|
20 |
}
|
|
|
|
|
21 |
}
|
|
|
22 |
?>
|
23 |
<div class="sui-box-settings-col-1">
|
24 |
|
@@ -38,14 +35,6 @@ if ( $paypal_loaded ) {
|
|
38 |
|
39 |
</div>
|
40 |
|
41 |
-
<?php elseif ( ! $paypal_loaded ) : ?>
|
42 |
-
|
43 |
-
<div class="sui-notice sui-notice-warning">
|
44 |
-
|
45 |
-
<p><?php esc_html_e( 'Failed to load PayPal Library, possibly conflict with other plugins. Please contact our support .', Forminator::DOMAIN ); ?></p>
|
46 |
-
|
47 |
-
</div>
|
48 |
-
|
49 |
<?php else : ?>
|
50 |
|
51 |
<span class="sui-settings-label"><?php esc_html_e( 'Authorization', Forminator::DOMAIN ); ?></span>
|
1 |
<?php
|
2 |
$plugin_url = forminator_plugin_url();
|
3 |
$paypal_min_php_version = apply_filters( 'forminator_payments_paypal_min_php_version', '5.3' );
|
|
|
4 |
$paypal_is_configured = false;
|
5 |
$forminator_currencies = forminator_pp_currency_list();
|
6 |
$paypal_default_currency = 'USD';
|
7 |
|
8 |
+
try {
|
9 |
+
$paypal = new Forminator_PayPal_Express();
|
10 |
|
11 |
+
$paypal_default_currency = $paypal->get_default_currency();
|
12 |
+
if ( $paypal->is_test_ready() || $paypal->is_live_ready() ) {
|
13 |
+
$paypal_is_configured = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
+
} catch ( Forminator_Gateway_Exception $e ) {
|
16 |
+
$paypal_is_configured = false;
|
17 |
}
|
18 |
+
|
19 |
?>
|
20 |
<div class="sui-box-settings-col-1">
|
21 |
|
35 |
|
36 |
</div>
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
<?php else : ?>
|
39 |
|
40 |
<span class="sui-settings-label"><?php esc_html_e( 'Authorization', Forminator::DOMAIN ); ?></span>
|
admin/views/upgrade/upgrade-content.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
}
|
5 |
|
6 |
?>
|
7 |
-
<div class="sui-wrap wpmudev-forminator-forminator"
|
8 |
|
9 |
<div class="sui-upgrade-page">
|
10 |
|
4 |
}
|
5 |
|
6 |
?>
|
7 |
+
<div class="sui-wrap wpmudev-forminator-forminator">
|
8 |
|
9 |
<div class="sui-upgrade-page">
|
10 |
|
assets/forminator-ui/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
v1.8.8
|
2 |
- [Fix] Quiz UI: Retake button wrong styles on small screens.
|
3 |
|
1 |
+
v1.8.9
|
2 |
+
- [Fix] Adding a check if select2 is initialised.
|
3 |
+
|
4 |
+
|
5 |
v1.8.8
|
6 |
- [Fix] Quiz UI: Retake button wrong styles on small screens.
|
7 |
|
assets/forminator-ui/css/src/form/forminator-form-basic.pagination.min.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* WPMU DEV Forminator UI
|
3 |
+
* Copyright 2019 Incsub (https://incsub.com)
|
4 |
+
* Licensed under GPL v3 (http://www.gnu.org/licenses/gpl-3.0.html)
|
5 |
+
*/.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content{display:block}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content,.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li{margin:0;padding:0;border:0;list-style:none}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li:after,.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li:before,.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content:after,.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content:before,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li:after,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li:before,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content:after,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content:before{content:unset}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li{display:none;visibility:hidden}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li:focus,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li:focus{outline:0;-webkit-box-shadow:none;box-shadow:none}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li.forminator-current,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-content li.forminator-current{display:block;visibility:visible}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-footer,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-footer{display:block;margin:20px 0 0}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-footer .forminator-button,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-footer .forminator-button{width:100%;display:block;margin-right:0;margin-bottom:20px}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-footer .forminator-button:last-child,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-footer .forminator-button:last-child{margin-bottom:0}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-footer .forminator-button:last-child,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-footer .forminator-button:last-child{margin-right:0}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-footer .forminator-button,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-footer .forminator-button{width:auto;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:15px;margin-bottom:0}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-footer,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:30px 0 0}}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps{display:block;margin:0 0 20px}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break{display:block;position:relative;z-index:0}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break:before,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break:before{content:" ";height:100%;display:block;position:absolute;top:0;-webkit-transition:.2s linear;transition:.2s linear}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break:first-child,.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break:last-child,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break:first-child,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-break:last-child{display:none}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;padding:0;border:0;border-radius:0;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-transform:none;text-decoration:none}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step .forminator-step-label,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step .forminator-step-label{overflow:hidden;display:block;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:1.6em;text-overflow:ellipsis;white-space:nowrap}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step .forminator-step-label+.forminator-step-dot,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step .forminator-step-label+.forminator-step-dot{margin-right:5px}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step .forminator-step-dot,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step .forminator-step-dot{display:block}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step.forminator-current~.forminator-break:before,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-steps .forminator-step.forminator-current~.forminator-break:before{height:0}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break:before,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break:before{width:100%;left:0}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break:first-child,.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break:last-child,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break:first-child,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break:last-child{display:block}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-break{width:auto;-webkit-box-flex:1;-ms-flex:1;flex:1}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step .forminator-step-label+.forminator-step-dot,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step .forminator-step-label+.forminator-step-dot{margin-top:5px;margin-right:0}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step .forminator-step-label,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step .forminator-step-label{overflow:unset;text-align:center;text-overflow:unset;white-space:normal;word-break:normal}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step.forminator-current~.forminator-break:before,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step.forminator-current~.forminator-break:before{width:0}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step{height:auto;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:unset;-ms-flex-pack:unset;justify-content:unset}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-steps{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;margin-bottom:30px}}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 0 20px}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-label,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-label{display:block;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;line-height:2.2em}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-label+.forminator-progress-bar,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-label+.forminator-progress-bar{margin-left:10px}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-bar,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-bar{overflow:hidden;display:block;-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative}.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-bar span,.forminator-ui.forminator-custom-form[data-design=basic] .forminator-pagination-progress .forminator-progress-bar span{display:block}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-progress .forminator-progress-label+.forminator-progress-bar,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-progress .forminator-progress-label+.forminator-progress-bar{margin-left:15px}}@media (min-width:783px){.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-progress,.forminator-ui.forminator-custom-form[data-design=basic]:not(.forminator-size--small) .forminator-pagination-progress{margin-bottom:30px}}
|
assets/forminator-ui/js/forminator-form.js
CHANGED
@@ -580,14 +580,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
580 |
$language = 'en';
|
581 |
}
|
582 |
|
583 |
-
$select.FUIselect2
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
|
|
|
|
|
|
|
|
591 |
}
|
592 |
});
|
593 |
});
|
580 |
$language = 'en';
|
581 |
}
|
582 |
|
583 |
+
if ('function' === typeof $select.FUIselect2) {
|
584 |
+
$select.FUIselect2({
|
585 |
+
dir: $dir,
|
586 |
+
language: $language,
|
587 |
+
placeholder: $placeholder,
|
588 |
+
dropdownCssClass: 'forminator-custom-form-' + $formid + ' forminator-dropdown--' + $theme
|
589 |
+
}).on('select2:opening', function () {
|
590 |
+
$select.data('select2').$dropdown.find(':input.select2-search__field').attr('placeholder', $placeholder);
|
591 |
+
});
|
592 |
+
} else {
|
593 |
+
$select.addClass('forminator-select');
|
594 |
+
}
|
595 |
}
|
596 |
});
|
597 |
});
|
assets/forminator-ui/js/forminator-form.min.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* Copyright 2019 Incsub (https://incsub.com)
|
4 |
* Licensed under GPL v3 (http://www.gnu.org/licenses/gpl-3.0.html)
|
5 |
*/
|
6 |
-
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.inputStates=function(o){var e=t(o),i=e.closest("form");if(e.is("input")||i.is(".forminator-poll")&&(i.is(".forminator-ui")||i.is(".forminator-custom-form")))return e.each(function(){var o,e;o=t(this),e=o.closest(".forminator-field"),o.mouseover(function(t){e.addClass("forminator-is_hover"),t.stopPropagation()}).mouseout(function(t){e.removeClass("forminator-is_hover"),t.stopPropagation()}),function(o){var e=t(o),i=e.closest(".forminator-field");e.focus(function(t){i.addClass("forminator-is_active"),t.stopPropagation()}).blur(function(t){i.removeClass("forminator-is_active"),t.stopPropagation()})}(this),function(o){var e=t(o),i=e.closest(".forminator-field");""!==e.val().trim()&&i.addClass("forminator-is_filled"),e.on("change",function(){""!==e.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")})}(this)}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.inputMaterial=function(o){var e=t(o),i=e.closest(".forminator-field"),n=i.find(".forminator-label"),r=e.closest("form");if(e.is("input")||r.is(".forminator-poll")&&(r.is(".forminator-ui")||r.is(".forminator-custom-form")))return e.parent().hasClass("forminator-input--wrap")||e.wrap('<div class="forminator-input--wrap"></div>'),n.length&&(n.addClass("forminator-floating--input"),i.find(".forminator-input-with-icon").length&&n.addClass("forminator-has_icon"),i.find(".forminator-input-with-phone").length&&(n.addClass("forminator-has_phone"),i.find(".intl-tel-input").hasClass("allow-dropdown")&&n.addClass("allow-dropdown"))),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaStates=function(o){var e=t(o),i=e.closest("form");if(e.is("textarea")||i.is(".forminator-ui")||i.is(".forminator-custom-form"))return e.each(function(){var o,e;o=t(this),e=o.closest(".forminator-field"),o.mouseover(function(t){e.addClass("forminator-is_hover"),t.stopPropagation()}).mouseout(function(t){e.removeClass("forminator-is_hover"),t.stopPropagation()}),function(o){var e=t(o),i=e.closest(".forminator-field");e.focus(function(t){i.addClass("forminator-is_active"),t.stopPropagation()}).blur(function(t){i.removeClass("forminator-is_active"),t.stopPropagation()})}(this),function(o){var e=t(o),i=e.closest(".forminator-field");e.on("load",function(){""!==e.val().trim()&&i.addClass("forminator-is_filled")}),e.on("change",function(){""!==e.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")})}(this)}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaMaterial=function(o){var e=t(o),i=e.closest(".forminator-field"),n=i.find(".forminator-label"),r=e.closest("form");if((e.is("textarea")||r.is(".forminator-ui")||r.is(".forminator-custom-form"))&&!e.hasClass("wp-editor-area")&&!e.parent().hasClass("forminator-textarea--wrap"))return function(){if(e.parent().hasClass("forminator-textarea--wrap")||e.wrap('<div class="forminator-textarea--wrap"></div>'),n.length){var t=n.height()+9;n.addClass("forminator-floating--textarea"),i.css({position:"relative"}),i.hasClass("forminator-is_filled")&&i.hasClass("forminator-is_active")||n.css({"padding-top":t+"px"}),e.css({"padding-top":t+"px"})}}(),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.radioStates=function(o){var e=t(o),i=e.find("input");if(e.is("label")&&"radio"===i.attr("type"))return i.each(function(){t(this).on("click",function(){var o=t(this),e=o.parent(),i=e.closest(".forminator-field").find(".forminator-radio");i.find("input").removeAttr("checked"),i.removeClass("forminator-is_checked"),o.attr("checked","checked"),e.addClass("forminator-is_checked")})}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.checkboxStates=function(o){var e=t(o),i=e.find("input");if(e.is("label")&&"checkbox"===i.attr("type"))return i.each(function(){t(this).on("click",function(){var o=t(this).parent();o.is(".forminator-is_checked")?o.removeClass("forminator-is_checked"):o.addClass("forminator-is_checked")})}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.multiSelectStates=function(o){var e=t(o),i=e.find(".forminator-option"),n=i.find("input");if(e.is(".forminator-multiselect")&&0!==i.length)return n.each(function(){t(this).on("click",function(){var o=t(this).parent();o.is(".forminator-is_checked")?o.removeClass("forminator-is_checked"):o.addClass("forminator-is_checked")})}),this}}(jQuery),function(t){FUI.select=function(o){var e,i,n,r,a,s,c,l=t(o);function f(){var o=l.children();s.empty(),o.each(function(){var o,e=t(this);"OPTION"===t(this).prop("tagName")&&((o=t("<li></li>").appendTo(s)).html(e.text()),o.data("value",e.val()),e.val()==l.val()&&h(o,!0))})}function d(){var t=l[0].$value;void 0!==t&&t.match("^https?://|#")&&(window.location.href=t)}function u(){e.find("select").is(":disabled")||(e.hasClass("forminator-is_open")?p():m())}function p(t){t||(t=e),t.removeClass("forminator-is_open"),l.closest(".forminator-field").removeClass("forminator-is_active")}function m(){t(".forminator-select-container.forminator-is_open").each(function(){p(t(this))}),e.addClass("forminator-is_open"),l.closest(".forminator-field").addClass("forminator-is_active")}function h(o,e){e=void 0!==e&&e,a.text(o.text()),t(".current",s).removeClass("current"),o.addClass("current"),p(),l.val(o.data("value")),e||l.trigger("change")}return l.wrap('<div class="forminator-select-container">'),l.addClass("forminator-screen-reader-only"),l.is("select")&&(e=l.parent(),n=t('<div class="forminator-select-list" aria-hidden="true"></div>').appendTo(e),r=t('<div class="forminator-value-wrapper"></div>').appendTo(n),a=t('<div class="forminator-value"></div>').appendTo(r),i=t('<div class="forminator-dropdown-handle"><span class="forminator-icon-chevron-down"></span></div>').appendTo(r),s=t('<ul class="forminator-dropdown-list"></ul>').appendTo(n)),f(),l.on("fui:change",function(){f(),s.find("li").not(".optgroup-label").on("click",function(o){h(t(o.target),!1),d()})}),s.find("li").on("click",function(o){var e=t(o.target);l.valid(),h(e,!1),d(),l.valid()}),i.on("click",u),a.on("click",u),l.on("focus",m),e.mouseover(function(t){e.closest(".forminator-field").addClass("forminator-is_hover"),t.stopPropagation()}).mouseout(function(t){e.closest(".forminator-field").removeClass("forminator-is_hover"),t.stopPropagation()}),t(document).click(function(o){t(o.target).closest(".forminator-select-container").length||p()}),""!==(c=l.attr("id"))&&t('label[for="'+c+'"]').on("click",m),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.select2=function(){t(".forminator-custom-form").each(function(){var o=t(this),e=o.data("form-id"),i=o.find(".forminator-select2");t.each(["bold","flat","default","material","none"],function(t,n){var r,a="en",s=null;o.hasClass("forminator-design--"+n)&&i.length&&(r=!0===i.data("rtl-support")?"rtl":"ltr",s=""!==i.data("placeholder")?i.data("placeholder"):null,a=""!==i.data("language")?i.data("language"):"en",i.FUIselect2({dir:r,language:a,placeholder:s,dropdownCssClass:"forminator-custom-form-"+e+" forminator-dropdown--"+n}).on("select2:opening",function(){i.data("select2").$dropdown.find(":input.select2-search__field").attr("placeholder",s)}))})})},t("body").ready(function(){FUI.select2()})}(jQuery),function(){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={});var t=t||{};t.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},t.Utils=t.Utils||{},t.Utils.remove=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},t.Utils.isFocusable=function(t){if(0<t.tabIndex||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},t.Utils.simulateClick=function(t){var o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(o)},t.Utils.IgnoreUtilFocusChanges=!1,t.Utils.dialogOpenClass="forminator-authentication-enabled",t.Utils.focusFirstDescendant=function(o){for(var e=0;e<o.childNodes.length;e++){var i=o.childNodes[e];if(t.Utils.attemptFocus(i)||t.Utils.focusFirstDescendant(i))return!0}return!1},t.Utils.focusLastDescendant=function(o){for(var e=o.childNodes.length-1;0<=e;e--){var i=o.childNodes[e];if(t.Utils.attemptFocus(i)||t.Utils.focusLastDescendant(i))return!0}return!1},t.Utils.attemptFocus=function(o){if(!t.Utils.isFocusable(o))return!1;t.Utils.IgnoreUtilFocusChanges=!0;try{o.focus()}catch(t){}return t.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===o},t.OpenDialogList=t.OpenDialogList||new Array(0),t.getCurrentDialog=function(){if(t.OpenDialogList&&t.OpenDialogList.length)return t.OpenDialogList[t.OpenDialogList.length-1]},t.closeCurrentDialog=function(){var o=t.getCurrentDialog();return!!o&&(o.close(),!0)},t.handleEscape=function(o){(o.which||o.keyCode)===t.Utils.ESC&&t.closeCurrentDialog()&&o.stopPropagation()},document.addEventListener("keyup",t.handleEscape),t.Authentication=function(o,e,i){if(this.dialogNode=document.getElementById(o),null===this.dialogNode)throw new Error('No element found with id="'+o+'".');var n=["dialog","alertdialog"];if(!(this.dialogNode.getAttribute("role")||"").trim().split(/\s+/g).some(function(t){return n.some(function(o){return t===o})}))throw new Error("Dialog() requires a DOM element with ARIA role of dialog or alertdialog.");if(this.dialogNode.parentNode.classList.contains("forminator-authentication")?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className="forminator-authentication",this.backdropNode.setAttribute("data-markup","new"),this.dialogNode.parentNode.insertBefore(this.backdropNode,this.dialogNodev),this.backdropNode.appendChild(this.dialogNode)),this.backdropNode.classList.add("forminator-active"),document.body.parentNode.classList.add(t.Utils.dialogOpenClass),"string"==typeof e)this.focusAfterClosed=document.getElementById(e);else{if("object"!==_typeof(e))throw new Error("the focusAfterClosed parameter is required for the aria.Authentication constructor.");this.focusAfterClosed=e}"string"==typeof i?this.focusFirst=document.getElementById(i):"object"===_typeof(i)?this.focusFirst=i:this.focusFirst=null;var r=document.createElement("div");this.preNode=this.dialogNode.parentNode.insertBefore(r,this.dialogNode),this.preNode.tabIndex=0;var a=document.createElement("div");this.postNode=this.dialogNode.parentNode.insertBefore(a,this.dialogNode.nextSibling),this.postNode.tabIndex=0,0<t.OpenDialogList.length&&t.getCurrentDialog().removeListeners(),this.addListeners(),t.OpenDialogList.push(this),this.dialogNode.classList.add("forminator-authentication-fade-in"),this.dialogNode.classList.remove("forminator-authentication-fade-out"),this.focusFirst?this.focusFirst.focus():t.Utils.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement},t.Authentication.prototype.close=function(){var o=this;t.OpenDialogList.pop(),this.removeListeners(),this.preNode.parentNode.removeChild(this.preNode),this.postNode.parentNode.removeChild(this.postNode),this.dialogNode.classList.add("forminator-content-fade-out"),this.dialogNode.classList.remove("forminator-content-fade-in"),this.focusAfterClosed.focus(),setTimeout(function(){o.backdropNode.classList.remove("forminator-active")},300),0<t.OpenDialogList.length?t.getCurrentDialog().addListeners():document.body.parentNode.classList.remove(t.Utils.dialogOpenClass)},t.Authentication.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0)},t.Authentication.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)},t.Authentication.prototype.trapFocus=function(o){if(!t.Utils.IgnoreUtilFocusChanges){var e=t.getCurrentDialog();e.dialogNode.contains(o.target)?e.lastFocus=o.target:(t.Utils.focusFirstDescendant(e.dialogNode),e.lastFocus==document.activeElement&&t.Utils.focusLastDescendant(e.dialogNode),e.lastFocus=document.activeElement)}},FUI.openAuthentication=function(o,e,i){new t.Authentication(o,e,i)},FUI.closeAuthentication=function(){t.getCurrentDialog().close()}}();
|
3 |
* Copyright 2019 Incsub (https://incsub.com)
|
4 |
* Licensed under GPL v3 (http://www.gnu.org/licenses/gpl-3.0.html)
|
5 |
*/
|
6 |
+
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.inputStates=function(o){var e=t(o),i=e.closest("form");if(e.is("input")||i.is(".forminator-poll")&&(i.is(".forminator-ui")||i.is(".forminator-custom-form")))return e.each(function(){var o,e;o=t(this),e=o.closest(".forminator-field"),o.mouseover(function(t){e.addClass("forminator-is_hover"),t.stopPropagation()}).mouseout(function(t){e.removeClass("forminator-is_hover"),t.stopPropagation()}),function(o){var e=t(o),i=e.closest(".forminator-field");e.focus(function(t){i.addClass("forminator-is_active"),t.stopPropagation()}).blur(function(t){i.removeClass("forminator-is_active"),t.stopPropagation()})}(this),function(o){var e=t(o),i=e.closest(".forminator-field");""!==e.val().trim()&&i.addClass("forminator-is_filled"),e.on("change",function(){""!==e.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")})}(this)}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.inputMaterial=function(o){var e=t(o),i=e.closest(".forminator-field"),n=i.find(".forminator-label"),r=e.closest("form");if(e.is("input")||r.is(".forminator-poll")&&(r.is(".forminator-ui")||r.is(".forminator-custom-form")))return e.parent().hasClass("forminator-input--wrap")||e.wrap('<div class="forminator-input--wrap"></div>'),n.length&&(n.addClass("forminator-floating--input"),i.find(".forminator-input-with-icon").length&&n.addClass("forminator-has_icon"),i.find(".forminator-input-with-phone").length&&(n.addClass("forminator-has_phone"),i.find(".intl-tel-input").hasClass("allow-dropdown")&&n.addClass("allow-dropdown"))),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaStates=function(o){var e=t(o),i=e.closest("form");if(e.is("textarea")||i.is(".forminator-ui")||i.is(".forminator-custom-form"))return e.each(function(){var o,e;o=t(this),e=o.closest(".forminator-field"),o.mouseover(function(t){e.addClass("forminator-is_hover"),t.stopPropagation()}).mouseout(function(t){e.removeClass("forminator-is_hover"),t.stopPropagation()}),function(o){var e=t(o),i=e.closest(".forminator-field");e.focus(function(t){i.addClass("forminator-is_active"),t.stopPropagation()}).blur(function(t){i.removeClass("forminator-is_active"),t.stopPropagation()})}(this),function(o){var e=t(o),i=e.closest(".forminator-field");e.on("load",function(){""!==e.val().trim()&&i.addClass("forminator-is_filled")}),e.on("change",function(){""!==e.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")})}(this)}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaMaterial=function(o){var e=t(o),i=e.closest(".forminator-field"),n=i.find(".forminator-label"),r=e.closest("form");if((e.is("textarea")||r.is(".forminator-ui")||r.is(".forminator-custom-form"))&&!e.hasClass("wp-editor-area")&&!e.parent().hasClass("forminator-textarea--wrap"))return function(){if(e.parent().hasClass("forminator-textarea--wrap")||e.wrap('<div class="forminator-textarea--wrap"></div>'),n.length){var t=n.height()+9;n.addClass("forminator-floating--textarea"),i.css({position:"relative"}),i.hasClass("forminator-is_filled")&&i.hasClass("forminator-is_active")||n.css({"padding-top":t+"px"}),e.css({"padding-top":t+"px"})}}(),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.radioStates=function(o){var e=t(o),i=e.find("input");if(e.is("label")&&"radio"===i.attr("type"))return i.each(function(){t(this).on("click",function(){var o=t(this),e=o.parent(),i=e.closest(".forminator-field").find(".forminator-radio");i.find("input").removeAttr("checked"),i.removeClass("forminator-is_checked"),o.attr("checked","checked"),e.addClass("forminator-is_checked")})}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.checkboxStates=function(o){var e=t(o),i=e.find("input");if(e.is("label")&&"checkbox"===i.attr("type"))return i.each(function(){t(this).on("click",function(){var o=t(this).parent();o.is(".forminator-is_checked")?o.removeClass("forminator-is_checked"):o.addClass("forminator-is_checked")})}),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.multiSelectStates=function(o){var e=t(o),i=e.find(".forminator-option"),n=i.find("input");if(e.is(".forminator-multiselect")&&0!==i.length)return n.each(function(){t(this).on("click",function(){var o=t(this).parent();o.is(".forminator-is_checked")?o.removeClass("forminator-is_checked"):o.addClass("forminator-is_checked")})}),this}}(jQuery),function(t){FUI.select=function(o){var e,i,n,r,a,s,c,l=t(o);function f(){var o=l.children();s.empty(),o.each(function(){var o,e=t(this);"OPTION"===t(this).prop("tagName")&&((o=t("<li></li>").appendTo(s)).html(e.text()),o.data("value",e.val()),e.val()==l.val()&&h(o,!0))})}function d(){var t=l[0].$value;void 0!==t&&t.match("^https?://|#")&&(window.location.href=t)}function u(){e.find("select").is(":disabled")||(e.hasClass("forminator-is_open")?p():m())}function p(t){t||(t=e),t.removeClass("forminator-is_open"),l.closest(".forminator-field").removeClass("forminator-is_active")}function m(){t(".forminator-select-container.forminator-is_open").each(function(){p(t(this))}),e.addClass("forminator-is_open"),l.closest(".forminator-field").addClass("forminator-is_active")}function h(o,e){e=void 0!==e&&e,a.text(o.text()),t(".current",s).removeClass("current"),o.addClass("current"),p(),l.val(o.data("value")),e||l.trigger("change")}return l.wrap('<div class="forminator-select-container">'),l.addClass("forminator-screen-reader-only"),l.is("select")&&(e=l.parent(),n=t('<div class="forminator-select-list" aria-hidden="true"></div>').appendTo(e),r=t('<div class="forminator-value-wrapper"></div>').appendTo(n),a=t('<div class="forminator-value"></div>').appendTo(r),i=t('<div class="forminator-dropdown-handle"><span class="forminator-icon-chevron-down"></span></div>').appendTo(r),s=t('<ul class="forminator-dropdown-list"></ul>').appendTo(n)),f(),l.on("fui:change",function(){f(),s.find("li").not(".optgroup-label").on("click",function(o){h(t(o.target),!1),d()})}),s.find("li").on("click",function(o){var e=t(o.target);l.valid(),h(e,!1),d(),l.valid()}),i.on("click",u),a.on("click",u),l.on("focus",m),e.mouseover(function(t){e.closest(".forminator-field").addClass("forminator-is_hover"),t.stopPropagation()}).mouseout(function(t){e.closest(".forminator-field").removeClass("forminator-is_hover"),t.stopPropagation()}),t(document).click(function(o){t(o.target).closest(".forminator-select-container").length||p()}),""!==(c=l.attr("id"))&&t('label[for="'+c+'"]').on("click",m),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.select2=function(){t(".forminator-custom-form").each(function(){var o=t(this),e=o.data("form-id"),i=o.find(".forminator-select2");t.each(["bold","flat","default","material","none"],function(t,n){var r,a="en",s=null;o.hasClass("forminator-design--"+n)&&i.length&&(r=!0===i.data("rtl-support")?"rtl":"ltr",s=""!==i.data("placeholder")?i.data("placeholder"):null,a=""!==i.data("language")?i.data("language"):"en","function"==typeof i.FUIselect2?i.FUIselect2({dir:r,language:a,placeholder:s,dropdownCssClass:"forminator-custom-form-"+e+" forminator-dropdown--"+n}).on("select2:opening",function(){i.data("select2").$dropdown.find(":input.select2-search__field").attr("placeholder",s)}):i.addClass("forminator-select"))})})},t("body").ready(function(){FUI.select2()})}(jQuery),function(){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={});var t=t||{};t.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},t.Utils=t.Utils||{},t.Utils.remove=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},t.Utils.isFocusable=function(t){if(0<t.tabIndex||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},t.Utils.simulateClick=function(t){var o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(o)},t.Utils.IgnoreUtilFocusChanges=!1,t.Utils.dialogOpenClass="forminator-authentication-enabled",t.Utils.focusFirstDescendant=function(o){for(var e=0;e<o.childNodes.length;e++){var i=o.childNodes[e];if(t.Utils.attemptFocus(i)||t.Utils.focusFirstDescendant(i))return!0}return!1},t.Utils.focusLastDescendant=function(o){for(var e=o.childNodes.length-1;0<=e;e--){var i=o.childNodes[e];if(t.Utils.attemptFocus(i)||t.Utils.focusLastDescendant(i))return!0}return!1},t.Utils.attemptFocus=function(o){if(!t.Utils.isFocusable(o))return!1;t.Utils.IgnoreUtilFocusChanges=!0;try{o.focus()}catch(t){}return t.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===o},t.OpenDialogList=t.OpenDialogList||new Array(0),t.getCurrentDialog=function(){if(t.OpenDialogList&&t.OpenDialogList.length)return t.OpenDialogList[t.OpenDialogList.length-1]},t.closeCurrentDialog=function(){var o=t.getCurrentDialog();return!!o&&(o.close(),!0)},t.handleEscape=function(o){(o.which||o.keyCode)===t.Utils.ESC&&t.closeCurrentDialog()&&o.stopPropagation()},document.addEventListener("keyup",t.handleEscape),t.Authentication=function(o,e,i){if(this.dialogNode=document.getElementById(o),null===this.dialogNode)throw new Error('No element found with id="'+o+'".');var n=["dialog","alertdialog"];if(!(this.dialogNode.getAttribute("role")||"").trim().split(/\s+/g).some(function(t){return n.some(function(o){return t===o})}))throw new Error("Dialog() requires a DOM element with ARIA role of dialog or alertdialog.");if(this.dialogNode.parentNode.classList.contains("forminator-authentication")?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className="forminator-authentication",this.backdropNode.setAttribute("data-markup","new"),this.dialogNode.parentNode.insertBefore(this.backdropNode,this.dialogNodev),this.backdropNode.appendChild(this.dialogNode)),this.backdropNode.classList.add("forminator-active"),document.body.parentNode.classList.add(t.Utils.dialogOpenClass),"string"==typeof e)this.focusAfterClosed=document.getElementById(e);else{if("object"!==_typeof(e))throw new Error("the focusAfterClosed parameter is required for the aria.Authentication constructor.");this.focusAfterClosed=e}"string"==typeof i?this.focusFirst=document.getElementById(i):"object"===_typeof(i)?this.focusFirst=i:this.focusFirst=null;var r=document.createElement("div");this.preNode=this.dialogNode.parentNode.insertBefore(r,this.dialogNode),this.preNode.tabIndex=0;var a=document.createElement("div");this.postNode=this.dialogNode.parentNode.insertBefore(a,this.dialogNode.nextSibling),this.postNode.tabIndex=0,0<t.OpenDialogList.length&&t.getCurrentDialog().removeListeners(),this.addListeners(),t.OpenDialogList.push(this),this.dialogNode.classList.add("forminator-authentication-fade-in"),this.dialogNode.classList.remove("forminator-authentication-fade-out"),this.focusFirst?this.focusFirst.focus():t.Utils.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement},t.Authentication.prototype.close=function(){var o=this;t.OpenDialogList.pop(),this.removeListeners(),this.preNode.parentNode.removeChild(this.preNode),this.postNode.parentNode.removeChild(this.postNode),this.dialogNode.classList.add("forminator-content-fade-out"),this.dialogNode.classList.remove("forminator-content-fade-in"),this.focusAfterClosed.focus(),setTimeout(function(){o.backdropNode.classList.remove("forminator-active")},300),0<t.OpenDialogList.length?t.getCurrentDialog().addListeners():document.body.parentNode.classList.remove(t.Utils.dialogOpenClass)},t.Authentication.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0)},t.Authentication.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)},t.Authentication.prototype.trapFocus=function(o){if(!t.Utils.IgnoreUtilFocusChanges){var e=t.getCurrentDialog();e.dialogNode.contains(o.target)?e.lastFocus=o.target:(t.Utils.focusFirstDescendant(e.dialogNode),e.lastFocus==document.activeElement&&t.Utils.focusLastDescendant(e.dialogNode),e.lastFocus=document.activeElement)}},FUI.openAuthentication=function(o,e,i){new t.Authentication(o,e,i)},FUI.closeAuthentication=function(){t.getCurrentDialog().close()}}();
|
assets/images/forminator-black-friday-modal.png
DELETED
Binary file
|
assets/images/forminator-black-friday-modal@2x.png
DELETED
Binary file
|
assets/js/front/front.paypal.js
CHANGED
@@ -138,13 +138,44 @@
|
|
138 |
createOrder: function(data, actions) {
|
139 |
$form.addClass('forminator-partial-disabled');
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
},
|
149 |
onApprove: function(data, actions) {
|
150 |
if( typeof self.settings.has_loader !== "undefined" && self.settings.has_loader ) {
|
@@ -161,43 +192,9 @@
|
|
161 |
self.focus_to_element($target_message);
|
162 |
}
|
163 |
|
164 |
-
|
165 |
-
var transaction_id = details['purchase_units'][0]['payments']['captures'][0]['id'];
|
166 |
-
if( typeof transaction_id === 'undefined' ) {
|
167 |
-
return false;
|
168 |
-
}
|
169 |
-
var get_nonce = $form.find('input[name="forminator_nonce"]').val(),
|
170 |
-
payment_data = {
|
171 |
-
details: details,
|
172 |
-
payment_id: transaction_id,
|
173 |
-
forminator_nonce: get_nonce,
|
174 |
-
action: 'forminator_submit_form_custom-forms'
|
175 |
-
};
|
176 |
-
|
177 |
-
jQuery.ajax({
|
178 |
-
type: 'POST',
|
179 |
-
url: ForminatorFront.ajaxUrl,
|
180 |
-
data: jQuery.param(payment_data),
|
181 |
-
success: function (response) {
|
182 |
-
if ( response && response.data.success === true ) {
|
183 |
-
$form.find('.forminator-paypal-input').val( transaction_id );
|
184 |
-
$form.trigger('submit');
|
185 |
-
} else {
|
186 |
-
error_msg = response.data.error ? response.data.error : error_msg;
|
187 |
-
$target_message.removeClass('forminator-accessible').addClass('forminator-error').html('').removeAttr( 'aria-hidden' );
|
188 |
-
$target_message.html('<label class="forminator-label--error"><span>' + error_msg + '</span></label>');
|
189 |
-
self.focus_to_element($target_message);
|
190 |
-
}
|
191 |
-
},
|
192 |
-
error: function (response) {
|
193 |
-
error_msg = response.data ? response.error_message : error_msg;
|
194 |
-
$target_message.removeClass('forminator-accessible').addClass('forminator-error').html('').removeAttr( 'aria-hidden' );
|
195 |
-
$target_message.html('<label class="forminator-label--error"><span>' + error_msg + '</span></label>');
|
196 |
-
self.focus_to_element($target_message);
|
197 |
-
}
|
198 |
-
});
|
199 |
-
});
|
200 |
},
|
|
|
201 |
onCancel: function (data, actions) {
|
202 |
if( typeof self.settings.has_loader !== "undefined" && self.settings.has_loader ) {
|
203 |
// Enable form fields
|
138 |
createOrder: function(data, actions) {
|
139 |
$form.addClass('forminator-partial-disabled');
|
140 |
|
141 |
+
var nonce = $form.find('input[name="forminator_nonce"]').val(),
|
142 |
+
form_id = self.getPayPalData('form_id')
|
143 |
+
;
|
144 |
+
|
145 |
+
return fetch( ForminatorFront.ajaxUrl + '?action=forminator_pp_create_order', {
|
146 |
+
method: 'POST',
|
147 |
+
mode: "same-origin",
|
148 |
+
credentials: "same-origin",
|
149 |
+
headers: {
|
150 |
+
'content-type': 'application/json'
|
151 |
+
},
|
152 |
+
body: JSON.stringify({
|
153 |
+
nonce: nonce,
|
154 |
+
form_id: form_id,
|
155 |
+
mode: self.getPayPalData('mode'),
|
156 |
+
form_data: {
|
157 |
+
purchase_units: [{
|
158 |
+
amount: {
|
159 |
+
currency_code: self.getPayPalData('currency'),
|
160 |
+
value: paypalData.amount
|
161 |
+
}
|
162 |
+
}]
|
163 |
+
}
|
164 |
+
})
|
165 |
+
}).then(function(res) {
|
166 |
+
return res.json();
|
167 |
+
}).then(function(response) {
|
168 |
+
if ( response.success !== true ) {
|
169 |
+
error_msg = response.data;
|
170 |
+
|
171 |
+
return false;
|
172 |
+
}
|
173 |
+
|
174 |
+
var orderId = response.data.order_id;
|
175 |
+
$form.find('.forminator-paypal-input').val( orderId );
|
176 |
+
|
177 |
+
return orderId;
|
178 |
+
});
|
179 |
},
|
180 |
onApprove: function(data, actions) {
|
181 |
if( typeof self.settings.has_loader !== "undefined" && self.settings.has_loader ) {
|
192 |
self.focus_to_element($target_message);
|
193 |
}
|
194 |
|
195 |
+
$form.trigger('submit');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
},
|
197 |
+
|
198 |
onCancel: function (data, actions) {
|
199 |
if( typeof self.settings.has_loader !== "undefined" && self.settings.has_loader ) {
|
200 |
// Enable form fields
|
assets/js/front/front.submit.js
CHANGED
@@ -261,6 +261,14 @@
|
|
261 |
$this.trigger('before:forminator:form:submit', formData);
|
262 |
},
|
263 |
success: function( data ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
|
265 |
// Hide validation errors
|
266 |
$this.find( '.forminator-error-message' ).not('.forminator-uploaded-files .forminator-error-message').remove();
|
261 |
$this.trigger('before:forminator:form:submit', formData);
|
262 |
},
|
263 |
success: function( data ) {
|
264 |
+
if( ! data && 'undefined' !== typeof data ) {
|
265 |
+
$this.find( 'button' ).removeAttr( 'disabled' );
|
266 |
+
$target_message.addClass('forminator-error')
|
267 |
+
.html( '<p>' + window.ForminatorFront.cform.error + '</p>');
|
268 |
+
self.focus_to_element($target_message, 'forminator-error');
|
269 |
+
|
270 |
+
return false;
|
271 |
+
}
|
272 |
|
273 |
// Hide validation errors
|
274 |
$this.find( '.forminator-error-message' ).not('.forminator-uploaded-files .forminator-error-message').remove();
|
assets/js/front/front.validate.js
CHANGED
@@ -290,15 +290,11 @@
|
|
290 |
holderError = holderField.find( '.forminator-error-message' );
|
291 |
}
|
292 |
|
293 |
-
var holderFile = holderError.closest('ul.forminator-uploaded-files');
|
294 |
-
|
295 |
// Remove invalid attribute for screen readers
|
296 |
holder.removeAttr( 'aria-invalid' );
|
297 |
|
298 |
// Remove error message
|
299 |
-
|
300 |
-
holderError.remove();
|
301 |
-
}
|
302 |
|
303 |
// Remove error class
|
304 |
holderField.removeClass( 'forminator-has_error' );
|
290 |
holderError = holderField.find( '.forminator-error-message' );
|
291 |
}
|
292 |
|
|
|
|
|
293 |
// Remove invalid attribute for screen readers
|
294 |
holder.removeAttr( 'aria-invalid' );
|
295 |
|
296 |
// Remove error message
|
297 |
+
holderError.remove();
|
|
|
|
|
298 |
|
299 |
// Remove error class
|
300 |
holderField.removeClass( 'forminator-has_error' );
|
assets/js/front/templates/form/bold/back-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/checkbox-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/description-font.html
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'cform-description-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
assets/js/front/templates/form/bold/dropdown-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/dropdown2-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
assets/js/front/templates/form/bold/field-error-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-validation-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/fonts.html
CHANGED
@@ -42,7 +42,7 @@ font-family: inherit;
|
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label--validation {
|
45 |
-
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label,
|
@@ -73,7 +73,7 @@ font-size: calc(<?php echo $properties['cform-title-font-size'] ?>px - 10px);
|
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
@@ -105,7 +105,7 @@ font-family: inherit;
|
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-title {
|
108 |
-
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-title {
|
@@ -169,7 +169,7 @@ font-family: inherit;
|
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-subtitle {
|
172 |
-
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-subtitle {
|
@@ -284,7 +284,7 @@ font-family: inherit;
|
|
284 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
285 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-input,
|
286 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-textarea {
|
287 |
-
|
288 |
}
|
289 |
<?php } else { ?>
|
290 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-input,
|
@@ -358,7 +358,7 @@ font-family: inherit;
|
|
358 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
359 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
360 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
361 |
-
|
362 |
}
|
363 |
<?php } else { ?>
|
364 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
@@ -410,7 +410,7 @@ font-family: inherit;
|
|
410 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
411 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
412 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-time + .select2 .selection .select2-selection--single .select2-selection__rendered {
|
413 |
-
|
414 |
}
|
415 |
<?php } else { ?>
|
416 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
@@ -472,7 +472,7 @@ font-size: 16px;
|
|
472 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
473 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--bold .select2-results .select2-results__option,
|
474 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--bold .select2-results .select2-results__option {
|
475 |
-
|
476 |
}
|
477 |
<?php } else { ?>
|
478 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--bold .select2-results .select2-results__option,
|
@@ -527,7 +527,7 @@ font-family: inherit;
|
|
527 |
|
528 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
529 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-multiselect .forminator-multiselect--item label {
|
530 |
-
|
531 |
}
|
532 |
<?php } else { ?>
|
533 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-multiselect .forminator-multiselect--item label {
|
@@ -578,7 +578,7 @@ font-family: inherit;
|
|
578 |
|
579 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
580 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--bold .ui-datepicker-calendar tbody tr td {
|
581 |
-
|
582 |
}
|
583 |
<?php } else { ?>
|
584 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--bold .ui-datepicker-calendar tbody tr td {
|
@@ -635,7 +635,7 @@ font-family: inherit;
|
|
635 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
636 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold a.forminator-button,
|
637 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold button.forminator-button {
|
638 |
-
|
639 |
}
|
640 |
<?php } else { ?>
|
641 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold a.forminator-button,
|
@@ -689,7 +689,7 @@ font-family: inherit;
|
|
689 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
690 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-pagination--bar .forminator-bar--text,
|
691 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-pagination--nav li {
|
692 |
-
|
693 |
}
|
694 |
<?php } else { ?>
|
695 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-pagination--bar .forminator-bar--text,
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label--validation {
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-label,
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-title {
|
108 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-title {
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-subtitle {
|
172 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-break .forminator-subtitle {
|
284 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
285 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-input,
|
286 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-textarea {
|
287 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
288 |
}
|
289 |
<?php } else { ?>
|
290 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-input,
|
358 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
359 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
360 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
361 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
362 |
}
|
363 |
<?php } else { ?>
|
364 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
410 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
411 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
412 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-time + .select2 .selection .select2-selection--single .select2-selection__rendered {
|
413 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
414 |
}
|
415 |
<?php } else { ?>
|
416 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
472 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
473 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--bold .select2-results .select2-results__option,
|
474 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--bold .select2-results .select2-results__option {
|
475 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
476 |
}
|
477 |
<?php } else { ?>
|
478 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--bold .select2-results .select2-results__option,
|
527 |
|
528 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
529 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-multiselect .forminator-multiselect--item label {
|
530 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
531 |
}
|
532 |
<?php } else { ?>
|
533 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-multiselect .forminator-multiselect--item label {
|
578 |
|
579 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
580 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--bold .ui-datepicker-calendar tbody tr td {
|
581 |
+
<?php forminator_echo_font_weight( $properties, 'cform-calendar-font-weight' ); ?>
|
582 |
}
|
583 |
<?php } else { ?>
|
584 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--bold .ui-datepicker-calendar tbody tr td {
|
635 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
636 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold a.forminator-button,
|
637 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold button.forminator-button {
|
638 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
639 |
}
|
640 |
<?php } else { ?>
|
641 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold a.forminator-button,
|
689 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
690 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-pagination--bar .forminator-bar--text,
|
691 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-pagination--nav li {
|
692 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
693 |
}
|
694 |
<?php } else { ?>
|
695 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-pagination--bar .forminator-bar--text,
|
assets/js/front/templates/form/bold/input-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/input-prefix-font.html
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-prefix-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
assets/js/front/templates/form/bold/input-suffix-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-suffix-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/label-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 700;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 700;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/multiselect-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/multiupload-font.html
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
-
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
@@ -66,7 +66,7 @@
|
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
-
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
@@ -88,7 +88,7 @@
|
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
-
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-panel-font-weight' ); ?>
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-name-font-weight' ); ?>
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-size-font-weight' ); ?>
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
assets/js/front/templates/form/bold/next-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/pagination-progress-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-progress-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/pagination-steps-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/radio-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/response-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
@@ -44,7 +44,7 @@
|
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
47 |
-
|
48 |
<?php } else { ?>
|
49 |
font-weight: 400;
|
50 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-response-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
47 |
+
<?php forminator_echo_font_weight( $properties, 'cform-response-font-weight' ); ?>
|
48 |
<?php } else { ?>
|
49 |
font-weight: 400;
|
50 |
<?php } ?>
|
assets/js/front/templates/form/bold/section-font.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
.forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-title,
|
4 |
.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-title {
|
5 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
6 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
7 |
<?php } else { ?>
|
8 |
font-size: 45px;
|
9 |
<?php } ?>
|
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -48,7 +48,7 @@
|
|
48 |
font-family: inherit;
|
49 |
<?php } ?>
|
50 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
51 |
-
|
52 |
<?php } else { ?>
|
53 |
font-weight: 400;
|
54 |
<?php } ?>
|
3 |
.forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-title,
|
4 |
.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--bold .forminator-title {
|
5 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
6 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
7 |
<?php } else { ?>
|
8 |
font-size: 45px;
|
9 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
48 |
font-family: inherit;
|
49 |
<?php } ?>
|
50 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
51 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
52 |
<?php } else { ?>
|
53 |
font-weight: 400;
|
54 |
<?php } ?>
|
assets/js/front/templates/form/bold/select-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/select2-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/signature-font.html
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
-
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
+
<?php forminator_echo_font_weight( $properties, 'cform-esign-placeholder-font-weight' ); ?>
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
assets/js/front/templates/form/bold/submit-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/textarea-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/bold/upload-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
@@ -44,7 +44,7 @@
|
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
47 |
-
|
48 |
<?php } else { ?>
|
49 |
font-weight: 500;
|
50 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
47 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-file-font-weight' ); ?>
|
48 |
<?php } else { ?>
|
49 |
font-weight: 500;
|
50 |
<?php } ?>
|
assets/js/front/templates/form/default/back-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/checkbox-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/description-font.html
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'cform-description-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
assets/js/front/templates/form/default/dropdown-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/dropdown2-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
assets/js/front/templates/form/default/field-error-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-validation-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/fonts.html
CHANGED
@@ -42,7 +42,7 @@
|
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label--validation {
|
45 |
-
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label,
|
@@ -73,7 +73,7 @@
|
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
@@ -105,7 +105,7 @@
|
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-title {
|
108 |
-
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-title {
|
@@ -169,7 +169,7 @@
|
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-subtitle {
|
172 |
-
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-subtitle {
|
@@ -282,7 +282,7 @@
|
|
282 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
283 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-input,
|
284 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-textarea {
|
285 |
-
|
286 |
}
|
287 |
<?php } else { ?>
|
288 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-input,
|
@@ -325,7 +325,7 @@
|
|
325 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
326 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
327 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
328 |
-
|
329 |
}
|
330 |
<?php } else { ?>
|
331 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
@@ -377,7 +377,7 @@
|
|
377 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
378 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
379 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-time + .select2 .selection .select2-selection--single .select2-selection__rendered {
|
380 |
-
|
381 |
}
|
382 |
<?php } else { ?>
|
383 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
@@ -439,7 +439,7 @@
|
|
439 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
440 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--default .select2-results .select2-results__option,
|
441 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--default .select2-results .select2-results__option {
|
442 |
-
|
443 |
}
|
444 |
<?php } else { ?>
|
445 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--default .select2-results .select2-results__option,
|
@@ -494,7 +494,7 @@
|
|
494 |
|
495 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
496 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-multiselect .forminator-multiselect--item label {
|
497 |
-
|
498 |
}
|
499 |
<?php } else { ?>
|
500 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-multiselect .forminator-multiselect--item label {
|
@@ -545,7 +545,7 @@
|
|
545 |
|
546 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
547 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--default .ui-datepicker-calendar tbody tr td {
|
548 |
-
|
549 |
}
|
550 |
<?php } else { ?>
|
551 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--default .ui-datepicker-calendar tbody tr td {
|
@@ -602,7 +602,7 @@
|
|
602 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
603 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default a.forminator-button,
|
604 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default button.forminator-button {
|
605 |
-
|
606 |
}
|
607 |
<?php } else { ?>
|
608 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default a.forminator-button,
|
@@ -656,7 +656,7 @@
|
|
656 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
657 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-pagination--bar .forminator-bar--text,
|
658 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-pagination--nav li {
|
659 |
-
|
660 |
}
|
661 |
<?php } else { ?>
|
662 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-pagination--bar .forminator-bar--text,
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label--validation {
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-label,
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-title {
|
108 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-title {
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-subtitle {
|
172 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-break .forminator-subtitle {
|
282 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
283 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-input,
|
284 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-textarea {
|
285 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
286 |
}
|
287 |
<?php } else { ?>
|
288 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-input,
|
325 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
326 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
327 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
328 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
329 |
}
|
330 |
<?php } else { ?>
|
331 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
377 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
378 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
379 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-time + .select2 .selection .select2-selection--single .select2-selection__rendered {
|
380 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
381 |
}
|
382 |
<?php } else { ?>
|
383 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
439 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
440 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--default .select2-results .select2-results__option,
|
441 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--default .select2-results .select2-results__option {
|
442 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
443 |
}
|
444 |
<?php } else { ?>
|
445 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--default .select2-results .select2-results__option,
|
494 |
|
495 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
496 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-multiselect .forminator-multiselect--item label {
|
497 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
498 |
}
|
499 |
<?php } else { ?>
|
500 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-multiselect .forminator-multiselect--item label {
|
545 |
|
546 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
547 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--default .ui-datepicker-calendar tbody tr td {
|
548 |
+
<?php forminator_echo_font_weight( $properties, 'cform-calendar-font-weight' ); ?>
|
549 |
}
|
550 |
<?php } else { ?>
|
551 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--default .ui-datepicker-calendar tbody tr td {
|
602 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
603 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default a.forminator-button,
|
604 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default button.forminator-button {
|
605 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
606 |
}
|
607 |
<?php } else { ?>
|
608 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default a.forminator-button,
|
656 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
657 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-pagination--bar .forminator-bar--text,
|
658 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-pagination--nav li {
|
659 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
660 |
}
|
661 |
<?php } else { ?>
|
662 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-pagination--bar .forminator-bar--text,
|
assets/js/front/templates/form/default/input-font.html
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
font-family: inherit;
|
22 |
<?php } ?>
|
23 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
24 |
-
|
25 |
<?php } else { ?>
|
26 |
font-weight: 400;
|
27 |
<?php } ?>
|
21 |
font-family: inherit;
|
22 |
<?php } ?>
|
23 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
24 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
25 |
<?php } else { ?>
|
26 |
font-weight: 400;
|
27 |
<?php } ?>
|
assets/js/front/templates/form/default/input-prefix-font.html
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-prefix-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
assets/js/front/templates/form/default/input-suffix-font.html
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-suffix-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
assets/js/front/templates/form/default/label-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 700;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 700;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/multiselect-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/multiupload-font.html
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
-
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
@@ -66,7 +66,7 @@
|
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
-
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
@@ -88,7 +88,7 @@
|
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
-
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-panel-font-weight' ); ?>
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-name-font-weight' ); ?>
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-size-font-weight' ); ?>
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
assets/js/front/templates/form/default/next-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/pagination-progress-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-progress-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/pagination-steps-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/radio-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/response-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
@@ -44,7 +44,7 @@
|
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
47 |
-
|
48 |
<?php } else { ?>
|
49 |
font-weight: 400;
|
50 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-response-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
47 |
+
<?php forminator_echo_font_weight( $properties, 'cform-response-font-weight' ); ?>
|
48 |
<?php } else { ?>
|
49 |
font-weight: 400;
|
50 |
<?php } ?>
|
assets/js/front/templates/form/default/section-font.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
.forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-title,
|
4 |
.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-title {
|
5 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
6 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
7 |
<?php } else { ?>
|
8 |
font-size: 45px;
|
9 |
<?php } ?>
|
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -48,7 +48,7 @@
|
|
48 |
font-family: inherit;
|
49 |
<?php } ?>
|
50 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
51 |
-
|
52 |
<?php } else { ?>
|
53 |
font-weight: 400;
|
54 |
<?php } ?>
|
3 |
.forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-title,
|
4 |
.et-db #et-boc .et_pb_module .forminator-ui.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--default .forminator-title {
|
5 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
6 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
7 |
<?php } else { ?>
|
8 |
font-size: 45px;
|
9 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
48 |
font-family: inherit;
|
49 |
<?php } ?>
|
50 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
51 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
52 |
<?php } else { ?>
|
53 |
font-weight: 400;
|
54 |
<?php } ?>
|
assets/js/front/templates/form/default/select-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/select2-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/signature-font.html
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
-
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
+
<?php forminator_echo_font_weight( $properties, 'cform-esign-placeholder-font-weight' ); ?>
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
assets/js/front/templates/form/default/submit-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/textarea-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/default/upload-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
@@ -44,7 +44,7 @@
|
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
47 |
-
|
48 |
<?php } else { ?>
|
49 |
font-weight: 500;
|
50 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 500;
|
25 |
<?php } ?>
|
44 |
font-family: inherit;
|
45 |
<?php } ?>
|
46 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
47 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-file-font-weight' ); ?>
|
48 |
<?php } else { ?>
|
49 |
font-weight: 500;
|
50 |
<?php } ?>
|
assets/js/front/templates/form/flat/back-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/checkbox-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/description-font.html
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'cform-description-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
assets/js/front/templates/form/flat/dropdown-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/dropdown2-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
assets/js/front/templates/form/flat/field-error-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-validation-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/fonts.html
CHANGED
@@ -42,7 +42,7 @@
|
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label--validation {
|
45 |
-
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label,
|
@@ -73,7 +73,7 @@
|
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
@@ -105,7 +105,7 @@
|
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-title {
|
108 |
-
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-title {
|
@@ -169,7 +169,7 @@
|
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-subtitle {
|
172 |
-
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-subtitle {
|
@@ -284,7 +284,7 @@
|
|
284 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
285 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-input,
|
286 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-textarea {
|
287 |
-
|
288 |
}
|
289 |
<?php } else { ?>
|
290 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-input,
|
@@ -358,7 +358,7 @@
|
|
358 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
359 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
360 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
361 |
-
|
362 |
}
|
363 |
<?php } else { ?>
|
364 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
@@ -410,7 +410,7 @@
|
|
410 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
411 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
412 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-time + .select2 .selection .select2-selection--single .select2-selection__rendered {
|
413 |
-
|
414 |
}
|
415 |
<?php } else { ?>
|
416 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
@@ -472,7 +472,7 @@
|
|
472 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
473 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--flat .select2-results .select2-results__option,
|
474 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--flat .select2-results .select2-results__option {
|
475 |
-
|
476 |
}
|
477 |
<?php } else { ?>
|
478 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--flat .select2-results .select2-results__option,
|
@@ -527,7 +527,7 @@
|
|
527 |
|
528 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
529 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-multiselect .forminator-multiselect--item label {
|
530 |
-
|
531 |
}
|
532 |
<?php } else { ?>
|
533 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-multiselect .forminator-multiselect--item label {
|
@@ -578,7 +578,7 @@
|
|
578 |
|
579 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
580 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--flat .ui-datepicker-calendar tbody tr td {
|
581 |
-
|
582 |
}
|
583 |
<?php } else { ?>
|
584 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--flat .ui-datepicker-calendar tbody tr td {
|
@@ -635,7 +635,7 @@
|
|
635 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
636 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat a.forminator-button,
|
637 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat button.forminator-button {
|
638 |
-
|
639 |
}
|
640 |
<?php } else { ?>
|
641 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat a.forminator-button,
|
@@ -689,7 +689,7 @@
|
|
689 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
690 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-pagination--bar .forminator-bar--text,
|
691 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-pagination--nav li {
|
692 |
-
|
693 |
}
|
694 |
<?php } else { ?>
|
695 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-pagination--bar .forminator-bar--text,
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label--validation {
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-label,
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-title {
|
108 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-title {
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-subtitle {
|
172 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-break .forminator-subtitle {
|
284 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
285 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-input,
|
286 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-textarea {
|
287 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
288 |
}
|
289 |
<?php } else { ?>
|
290 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-input,
|
358 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
359 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
360 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
361 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
362 |
}
|
363 |
<?php } else { ?>
|
364 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
410 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
411 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
412 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-time + .select2 .selection .select2-selection--single .select2-selection__rendered {
|
413 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
414 |
}
|
415 |
<?php } else { ?>
|
416 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-select + .select2 .selection .select2-selection--single .select2-selection__rendered,
|
472 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
473 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--flat .select2-results .select2-results__option,
|
474 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--flat .select2-results .select2-results__option {
|
475 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
476 |
}
|
477 |
<?php } else { ?>
|
478 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--flat .select2-results .select2-results__option,
|
527 |
|
528 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
529 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-multiselect .forminator-multiselect--item label {
|
530 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
531 |
}
|
532 |
<?php } else { ?>
|
533 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-multiselect .forminator-multiselect--item label {
|
578 |
|
579 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
580 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--flat .ui-datepicker-calendar tbody tr td {
|
581 |
+
<?php forminator_echo_font_weight( $properties, 'cform-calendar-font-weight' ); ?>
|
582 |
}
|
583 |
<?php } else { ?>
|
584 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--flat .ui-datepicker-calendar tbody tr td {
|
635 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
636 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat a.forminator-button,
|
637 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat button.forminator-button {
|
638 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
639 |
}
|
640 |
<?php } else { ?>
|
641 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat a.forminator-button,
|
689 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
690 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-pagination--bar .forminator-bar--text,
|
691 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-pagination--nav li {
|
692 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
693 |
}
|
694 |
<?php } else { ?>
|
695 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-pagination--bar .forminator-bar--text,
|
assets/js/front/templates/form/flat/input-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/input-prefix-font.html
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-prefix-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
assets/js/front/templates/form/flat/input-suffix-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-suffix-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/label-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 700;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 700;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/multiselect-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/multiupload-font.html
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
-
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
@@ -66,7 +66,7 @@
|
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
-
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
@@ -88,7 +88,7 @@
|
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
-
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-panel-font-weight' ); ?>
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-name-font-weight' ); ?>
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-size-font-weight' ); ?>
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
assets/js/front/templates/form/flat/next-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/pagination-progress-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-progress-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/pagination-steps-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/radio-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/response-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-response-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/flat/section-font.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-title {
|
4 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
5 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
6 |
<?php } else { ?>
|
7 |
font-size: 45px;
|
8 |
<?php } ?>
|
@@ -17,7 +17,7 @@
|
|
17 |
font-family: inherit;
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 400;
|
23 |
<?php } ?>
|
@@ -46,7 +46,7 @@
|
|
46 |
font-family: inherit;
|
47 |
<?php } ?>
|
48 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
49 |
-
|
50 |
<?php } else { ?>
|
51 |
font-weight: 400;
|
52 |
<?php } ?>
|
2 |
|
3 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-title {
|
4 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
5 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
6 |
<?php } else { ?>
|
7 |
font-size: 45px;
|
8 |
<?php } ?>
|
17 |
font-family: inherit;
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 400;
|
23 |
<?php } ?>
|
46 |
font-family: inherit;
|
47 |
<?php } ?>
|
48 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
49 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
50 |
<?php } else { ?>
|
51 |
font-weight: 400;
|
52 |
<?php } ?>
|
assets/js/front/templates/form/flat/select-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/select2-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/signature-font.html
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
-
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
+
<?php forminator_echo_font_weight( $properties, 'cform-esign-placeholder-font-weight' ); ?>
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
assets/js/front/templates/form/flat/submit-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/textarea-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/flat/upload-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 500;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-file-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 500;
|
48 |
<?php } ?>
|
assets/js/front/templates/form/material/back-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/checkbox-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/description-font.html
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
26 |
font-family: inherit;
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'cform-description-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'cform-description-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
assets/js/front/templates/form/material/dropdown-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/dropdown2-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 400;
|
48 |
<?php } ?>
|
assets/js/front/templates/form/material/field-error-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-validation-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-validation-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/fonts.html
CHANGED
@@ -42,7 +42,7 @@
|
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label--validation {
|
45 |
-
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label,
|
@@ -73,7 +73,7 @@
|
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
@@ -105,7 +105,7 @@
|
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-title {
|
108 |
-
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-title {
|
@@ -169,7 +169,7 @@
|
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-subtitle {
|
172 |
-
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-subtitle {
|
@@ -335,16 +335,16 @@
|
|
335 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
336 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-input,
|
337 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-textarea {
|
338 |
-
|
339 |
}
|
340 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) > .forminator-floating--date .forminator-label {
|
341 |
-
|
342 |
}
|
343 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) > .forminator-floating--input .forminator-label {
|
344 |
-
|
345 |
}
|
346 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) > .forminator-floating--textarea .forminator-label {
|
347 |
-
|
348 |
}
|
349 |
<?php } else { ?>
|
350 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-input,
|
@@ -445,7 +445,7 @@
|
|
445 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
446 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
447 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
448 |
-
|
449 |
}
|
450 |
<?php } else { ?>
|
451 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
@@ -497,7 +497,7 @@
|
|
497 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
498 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select + .select2 .select2-selection--single .select2-selection__rendered,
|
499 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-time + .select2 .select2-selection--single .select2-selection__rendered {
|
500 |
-
|
501 |
}
|
502 |
<?php } else { ?>
|
503 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select + .select2 .select2-selection--single .select2-selection__rendered,
|
@@ -546,7 +546,7 @@
|
|
546 |
|
547 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
548 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-multiselect li label {
|
549 |
-
|
550 |
}
|
551 |
<?php } else { ?>
|
552 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-multiselect li label {
|
@@ -606,7 +606,7 @@
|
|
606 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
607 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--material .select2-results .select2-results__option,
|
608 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--material .select2-results .select2-results__option {
|
609 |
-
|
610 |
}
|
611 |
<?php } else { ?>
|
612 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--material .select2-results .select2-results__option,
|
@@ -665,7 +665,7 @@
|
|
665 |
|
666 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
667 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--material .ui-datepicker-calendar tbody tr td {
|
668 |
-
|
669 |
}
|
670 |
<?php } else { ?>
|
671 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--material .ui-datepicker-calendar tbody tr td {
|
@@ -722,7 +722,7 @@
|
|
722 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
723 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material a.forminator-button,
|
724 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material button.forminator-button {
|
725 |
-
|
726 |
}
|
727 |
<?php } else { ?>
|
728 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material a.forminator-button,
|
@@ -776,7 +776,7 @@
|
|
776 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
777 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-pagination--bar .forminator-bar--text,
|
778 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-pagination--nav li {
|
779 |
-
|
780 |
}
|
781 |
<?php } else { ?>
|
782 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-pagination--bar .forminator-bar--text,
|
42 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label--limit,
|
43 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label--helper,
|
44 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label--validation {
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
46 |
}
|
47 |
<?php } else { ?>
|
48 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-label,
|
73 |
<?php if ( $properties['cform-title-font-size'] == '45' ) { ?>
|
74 |
@media (min-width: 783px) {
|
75 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material:not(.forminator-size--small) .forminator-break .forminator-title {
|
76 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
77 |
}
|
78 |
}
|
79 |
<?php } ?>
|
105 |
|
106 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
107 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-title {
|
108 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
109 |
}
|
110 |
<?php } else { ?>
|
111 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-title {
|
169 |
|
170 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
171 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-subtitle {
|
172 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
173 |
}
|
174 |
<?php } else { ?>
|
175 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-break .forminator-subtitle {
|
335 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
336 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-input,
|
337 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-textarea {
|
338 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
339 |
}
|
340 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) > .forminator-floating--date .forminator-label {
|
341 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
342 |
}
|
343 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) > .forminator-floating--input .forminator-label {
|
344 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
345 |
}
|
346 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) > .forminator-floating--textarea .forminator-label {
|
347 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
348 |
}
|
349 |
<?php } else { ?>
|
350 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-input,
|
445 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
446 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
447 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-checkbox .forminator-checkbox--design + .forminator-checkbox--label {
|
448 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
449 |
}
|
450 |
<?php } else { ?>
|
451 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-radio .forminator-radio--design + .forminator-radio--label,
|
497 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
498 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select + .select2 .select2-selection--single .select2-selection__rendered,
|
499 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-time + .select2 .select2-selection--single .select2-selection__rendered {
|
500 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
501 |
}
|
502 |
<?php } else { ?>
|
503 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select + .select2 .select2-selection--single .select2-selection__rendered,
|
546 |
|
547 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
548 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-multiselect li label {
|
549 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
550 |
}
|
551 |
<?php } else { ?>
|
552 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-multiselect li label {
|
606 |
<?php if ( forminator_array_value_exists( $properties, 'cform-dropdown-font-weight' ) ) { ?>
|
607 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--material .select2-results .select2-results__option,
|
608 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-droptime--material .select2-results .select2-results__option {
|
609 |
+
<?php forminator_echo_font_weight( $properties, 'cform-dropdown-font-weight' ); ?>
|
610 |
}
|
611 |
<?php } else { ?>
|
612 |
.select2-container .forminator-ddfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-dropdown--material .select2-results .select2-results__option,
|
665 |
|
666 |
<?php if ( forminator_array_value_exists( $properties, 'cform-calendar-font-weight' ) ) { ?>
|
667 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--material .ui-datepicker-calendar tbody tr td {
|
668 |
+
<?php forminator_echo_font_weight( $properties, 'cform-calendar-font-weight' ); ?>
|
669 |
}
|
670 |
<?php } else { ?>
|
671 |
.forminator-calfor--forminator-module-<?php echo $properties['form_id'] ?>.forminator-calendar--material .ui-datepicker-calendar tbody tr td {
|
722 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
723 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material a.forminator-button,
|
724 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material button.forminator-button {
|
725 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
726 |
}
|
727 |
<?php } else { ?>
|
728 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material a.forminator-button,
|
776 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
777 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-pagination--bar .forminator-bar--text,
|
778 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-pagination--nav li {
|
779 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
780 |
}
|
781 |
<?php } else { ?>
|
782 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-pagination--bar .forminator-bar--text,
|
assets/js/front/templates/form/material/input-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/input-prefix-font.html
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
17 |
<?php } ?>
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-prefix-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-prefix-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 500;
|
23 |
<?php } ?>
|
assets/js/front/templates/form/material/input-suffix-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-suffix-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-suffix-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/label-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 700;
|
48 |
<?php } ?>
|
@@ -67,7 +67,7 @@
|
|
67 |
font-family: inherit;
|
68 |
<?php } ?>
|
69 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
70 |
-
|
71 |
<?php } else { ?>
|
72 |
font-weight: 700;
|
73 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 700;
|
48 |
<?php } ?>
|
67 |
font-family: inherit;
|
68 |
<?php } ?>
|
69 |
<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
|
70 |
+
<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
|
71 |
<?php } else { ?>
|
72 |
font-weight: 700;
|
73 |
<?php } ?>
|
assets/js/front/templates/form/material/multiselect-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-multiselect-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-multiselect-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/multiupload-font.html
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
-
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
@@ -66,7 +66,7 @@
|
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
-
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
@@ -88,7 +88,7 @@
|
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
-
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php } ?>
|
26 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-panel-font-weight' ) ) { ?>
|
27 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-panel-font-weight' ); ?>
|
28 |
<?php } else { ?>
|
29 |
font-weight: 400;
|
30 |
<?php } ?>
|
66 |
<?php } ?>
|
67 |
<?php } ?>
|
68 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-name-font-weight' ) ) { ?>
|
69 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-name-font-weight' ); ?>
|
70 |
<?php } else { ?>
|
71 |
font-weight: 700;
|
72 |
<?php } ?>
|
88 |
<?php } ?>
|
89 |
<?php } ?>
|
90 |
<?php if ( forminator_array_value_exists( $properties, 'upload-multiple-file-size-font-weight' ) ) { ?>
|
91 |
+
<?php forminator_echo_font_weight( $properties, 'upload-multiple-file-size-font-weight' ); ?>
|
92 |
<?php } else { ?>
|
93 |
font-weight: 700;
|
94 |
<?php } ?>
|
assets/js/front/templates/form/material/next-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-pagination-buttons-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-pagination-buttons-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/pagination-progress-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-progress-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-progress-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/pagination-steps-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 500;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-timeline-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-timeline-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 500;
|
48 |
<?php } ?>
|
assets/js/front/templates/form/material/radio-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-radio-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-radio-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/response-font.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
-
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
19 |
font-family: inherit;
|
20 |
<?php } ?>
|
21 |
<?php if ( forminator_array_value_exists( $properties, 'cform-response-font-weight' ) ) { ?>
|
22 |
+
<?php forminator_echo_font_weight( $properties, 'cform-response-font-weight' ); ?>
|
23 |
<?php } else { ?>
|
24 |
font-weight: 400;
|
25 |
<?php } ?>
|
assets/js/front/templates/form/material/section-font.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-title {
|
4 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
5 |
-
font-size: $properties['cform-title-font-size'] ?>px;
|
6 |
<?php } else { ?>
|
7 |
font-size: 45px;
|
8 |
<?php } ?>
|
@@ -17,7 +17,7 @@
|
|
17 |
font-family: inherit;
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
20 |
-
|
21 |
<?php } else { ?>
|
22 |
font-weight: 400;
|
23 |
<?php } ?>
|
@@ -46,7 +46,7 @@
|
|
46 |
font-family: inherit;
|
47 |
<?php } ?>
|
48 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
49 |
-
|
50 |
<?php } else { ?>
|
51 |
font-weight: 400;
|
52 |
<?php } ?>
|
2 |
|
3 |
.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-title {
|
4 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-size' ) ) { ?>
|
5 |
+
font-size: <?php echo $properties['cform-title-font-size'] ?>px;
|
6 |
<?php } else { ?>
|
7 |
font-size: 45px;
|
8 |
<?php } ?>
|
17 |
font-family: inherit;
|
18 |
<?php } ?>
|
19 |
<?php if ( forminator_array_value_exists( $properties, 'cform-title-font-weight' ) ) { ?>
|
20 |
+
<?php forminator_echo_font_weight( $properties, 'cform-title-font-weight' ); ?>
|
21 |
<?php } else { ?>
|
22 |
font-weight: 400;
|
23 |
<?php } ?>
|
46 |
font-family: inherit;
|
47 |
<?php } ?>
|
48 |
<?php if ( forminator_array_value_exists( $properties, 'cform-subtitle-font-weight' ) ) { ?>
|
49 |
+
<?php forminator_echo_font_weight( $properties, 'cform-subtitle-font-weight' ); ?>
|
50 |
<?php } else { ?>
|
51 |
font-weight: 400;
|
52 |
<?php } ?>
|
assets/js/front/templates/form/material/select-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/select2-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-select-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-select-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/signature-font.html
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
-
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
23 |
<?php } ?>
|
24 |
<?php } ?>
|
25 |
<?php if ( forminator_array_value_exists( $properties, 'cform-esign-placeholder-font-weight' ) ) { ?>
|
26 |
+
<?php forminator_echo_font_weight( $properties, 'cform-esign-placeholder-font-weight' ); ?>
|
27 |
<?php } else { ?>
|
28 |
font-weight: 400;
|
29 |
<?php } ?>
|
assets/js/front/templates/form/material/submit-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-button-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-button-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/textarea-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 400;
|
24 |
<?php } ?>
|
assets/js/front/templates/form/material/upload-font.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
21 |
-
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
45 |
-
|
46 |
<?php } else { ?>
|
47 |
font-weight: 500;
|
48 |
<?php } ?>
|
18 |
font-family: inherit;
|
19 |
<?php } ?>
|
20 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-font-weight' ) ) { ?>
|
21 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-font-weight' ); ?>
|
22 |
<?php } else { ?>
|
23 |
font-weight: 500;
|
24 |
<?php } ?>
|
42 |
font-family: inherit;
|
43 |
<?php } ?>
|
44 |
<?php if ( forminator_array_value_exists( $properties, 'cform-upload-file-font-weight' ) ) { ?>
|
45 |
+
<?php forminator_echo_font_weight( $properties, 'cform-upload-file-font-weight' ); ?>
|
46 |
<?php } else { ?>
|
47 |
font-weight: 500;
|
48 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/content/answers-text.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #888888;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['knowledge-answer-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 14px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-answer-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 500;
|
31 |
<?php } ?>
|
10 |
color: #888888;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-answer-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['knowledge-answer-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 14px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-answer-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-answer-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 500;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/content/questions-legend.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #000000;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['knowledge-question-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 16px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-question-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
10 |
color: #000000;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-question-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['knowledge-question-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 16px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-question-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-question-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/content/questions-result.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #777771;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['knowledge-phrasing-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 13px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
10 |
color: #777771;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['knowledge-phrasing-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 13px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-phrasing-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/footer/social-share.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
color: #000000;
|
15 |
<?php } ?>
|
16 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
17 |
-
<?php if ( $properties
|
18 |
font-size: <?php echo $properties['knowledge-sshare-font-size'] ?>px;
|
19 |
<?php } else { ?>
|
20 |
font-size: 20px;
|
@@ -29,7 +29,7 @@
|
|
29 |
<?php } ?>
|
30 |
<?php } ?>
|
31 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-sshare-font-weight' ) ) { ?>
|
32 |
-
|
33 |
<?php } else { ?>
|
34 |
font-weight: 400;
|
35 |
<?php } ?>
|
@@ -41,7 +41,7 @@
|
|
41 |
|
42 |
.forminator-ui.forminator-quiz-<?php echo $properties['form_id'] ?> .forminator-quiz--result .forminator-quiz--social .forminator-social--icon {
|
43 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
44 |
-
<?php if ( $properties
|
45 |
font-size: <?php echo $properties['knowledge-social-size'] ?>px;
|
46 |
<?php } else { ?>
|
47 |
font-size: 36px;
|
14 |
color: #000000;
|
15 |
<?php } ?>
|
16 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
17 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-sshare-font-size' ) ) { ?>
|
18 |
font-size: <?php echo $properties['knowledge-sshare-font-size'] ?>px;
|
19 |
<?php } else { ?>
|
20 |
font-size: 20px;
|
29 |
<?php } ?>
|
30 |
<?php } ?>
|
31 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-sshare-font-weight' ) ) { ?>
|
32 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-sshare-font-weight' ); ?>
|
33 |
<?php } else { ?>
|
34 |
font-weight: 400;
|
35 |
<?php } ?>
|
41 |
|
42 |
.forminator-ui.forminator-quiz-<?php echo $properties['form_id'] ?> .forminator-quiz--result .forminator-quiz--social .forminator-social--icon {
|
43 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
44 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-social-size' ) ) { ?>
|
45 |
font-size: <?php echo $properties['knowledge-social-size'] ?>px;
|
46 |
<?php } else { ?>
|
47 |
font-size: 36px;
|
assets/js/front/templates/quiz/knowledge/global/footer/submit-button.html
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
<?php } ?>
|
32 |
<?php } ?>
|
33 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-submit-font-weight' ) ) { ?>
|
34 |
-
|
35 |
<?php } else { ?>
|
36 |
font-weight: 500;
|
37 |
<?php } ?>
|
31 |
<?php } ?>
|
32 |
<?php } ?>
|
33 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-submit-font-weight' ) ) { ?>
|
34 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-submit-font-weight' ); ?>
|
35 |
<?php } else { ?>
|
36 |
font-weight: 500;
|
37 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/footer/summary.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
color: #000000;
|
12 |
<?php } ?>
|
13 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
14 |
-
<?php if ( $properties
|
15 |
font-size: <?php echo $properties['knowledge-summary-font-size'] ?>px;
|
16 |
<?php } else { ?>
|
17 |
font-size: 40px;
|
@@ -26,7 +26,7 @@
|
|
26 |
<?php } ?>
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-summary-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
11 |
color: #000000;
|
12 |
<?php } ?>
|
13 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
14 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-summary-font-size' ) ) { ?>
|
15 |
font-size: <?php echo $properties['knowledge-summary-font-size'] ?>px;
|
16 |
<?php } else { ?>
|
17 |
font-size: 40px;
|
26 |
<?php } ?>
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-summary-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-summary-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/header/quiz-description.html
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
color: #000000;
|
13 |
<?php } ?>
|
14 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
15 |
-
<?php if ( $properties
|
16 |
font-size: <?php echo $properties['knowledge-description-font-size'] ?>px;
|
17 |
<?php } else { ?>
|
18 |
font-size: 16px;
|
@@ -27,7 +27,7 @@
|
|
27 |
<?php } ?>
|
28 |
<?php } ?>
|
29 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-weight' ) ) { ?>
|
30 |
-
|
31 |
<?php } else { ?>
|
32 |
font-weight: 400;
|
33 |
<?php } ?>
|
@@ -49,7 +49,7 @@
|
|
49 |
color: #000000;
|
50 |
<?php } ?>
|
51 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
52 |
-
<?php if ( $properties
|
53 |
font-size: <?php echo $properties['knowledge-description-font-size'] ?>px;
|
54 |
<?php } else { ?>
|
55 |
font-size: 16px;
|
@@ -64,7 +64,7 @@
|
|
64 |
<?php } ?>
|
65 |
<?php } ?>
|
66 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-weight' ) ) { ?>
|
67 |
-
|
68 |
<?php } else { ?>
|
69 |
font-weight: 400;
|
70 |
<?php } ?>
|
12 |
color: #000000;
|
13 |
<?php } ?>
|
14 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
15 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-size' ) ) { ?>
|
16 |
font-size: <?php echo $properties['knowledge-description-font-size'] ?>px;
|
17 |
<?php } else { ?>
|
18 |
font-size: 16px;
|
27 |
<?php } ?>
|
28 |
<?php } ?>
|
29 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-weight' ) ) { ?>
|
30 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-description-font-weight' ); ?>
|
31 |
<?php } else { ?>
|
32 |
font-weight: 400;
|
33 |
<?php } ?>
|
49 |
color: #000000;
|
50 |
<?php } ?>
|
51 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
52 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-size' ) ) { ?>
|
53 |
font-size: <?php echo $properties['knowledge-description-font-size'] ?>px;
|
54 |
<?php } else { ?>
|
55 |
font-size: 16px;
|
64 |
<?php } ?>
|
65 |
<?php } ?>
|
66 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-weight' ) ) { ?>
|
67 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-description-font-weight' ); ?>
|
68 |
<?php } else { ?>
|
69 |
font-weight: 400;
|
70 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/header/quiz-title.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
color: #000000;
|
12 |
<?php } ?>
|
13 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
14 |
-
<?php if ( $properties
|
15 |
font-size: <?php echo $properties['knowledge-title-font-size'] ?>px;
|
16 |
<?php } else { ?>
|
17 |
font-size: 36px;
|
@@ -26,7 +26,7 @@
|
|
26 |
<?php } ?>
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 700;
|
32 |
<?php } ?>
|
@@ -47,7 +47,7 @@
|
|
47 |
color: #000000;
|
48 |
<?php } ?>
|
49 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
50 |
-
<?php if ( $properties
|
51 |
font-size: <?php echo $properties['knowledge-title-font-size'] ?>px;
|
52 |
<?php } else { ?>
|
53 |
font-size: 36px;
|
@@ -62,7 +62,7 @@
|
|
62 |
<?php } ?>
|
63 |
<?php } ?>
|
64 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-weight' ) ) { ?>
|
65 |
-
|
66 |
<?php } else { ?>
|
67 |
font-weight: 700;
|
68 |
<?php } ?>
|
11 |
color: #000000;
|
12 |
<?php } ?>
|
13 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
14 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-size' ) ) { ?>
|
15 |
font-size: <?php echo $properties['knowledge-title-font-size'] ?>px;
|
16 |
<?php } else { ?>
|
17 |
font-size: 36px;
|
26 |
<?php } ?>
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-title-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 700;
|
32 |
<?php } ?>
|
47 |
color: #000000;
|
48 |
<?php } ?>
|
49 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
50 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-size' ) ) { ?>
|
51 |
font-size: <?php echo $properties['knowledge-title-font-size'] ?>px;
|
52 |
<?php } else { ?>
|
53 |
font-size: 36px;
|
62 |
<?php } ?>
|
63 |
<?php } ?>
|
64 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-weight' ) ) { ?>
|
65 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-title-font-weight' ); ?>
|
66 |
<?php } else { ?>
|
67 |
font-weight: 700;
|
68 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/global/quiz-container.html
CHANGED
@@ -65,7 +65,7 @@
|
|
65 |
color: #888888;
|
66 |
<?php } ?>
|
67 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
68 |
-
<?php if ( $properties
|
69 |
font-size: <?php echo $properties['knowledge-skip-font-size'] ?>px;
|
70 |
<?php } else { ?>
|
71 |
font-size: 15px;
|
@@ -80,7 +80,7 @@
|
|
80 |
<?php } ?>
|
81 |
<?php } ?>
|
82 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-font-weight' ) ) { ?>
|
83 |
-
|
84 |
<?php } else { ?>
|
85 |
font-weight: 400;
|
86 |
<?php } ?>
|
65 |
color: #888888;
|
66 |
<?php } ?>
|
67 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
68 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-font-size' ) ) { ?>
|
69 |
font-size: <?php echo $properties['knowledge-skip-font-size'] ?>px;
|
70 |
<?php } else { ?>
|
71 |
font-size: 15px;
|
80 |
<?php } ?>
|
81 |
<?php } ?>
|
82 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-font-weight' ) ) { ?>
|
83 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-skip-font-weight' ); ?>
|
84 |
<?php } else { ?>
|
85 |
font-weight: 400;
|
86 |
<?php } ?>
|
assets/js/front/templates/quiz/knowledge/material/fonts.html
CHANGED
@@ -46,7 +46,7 @@
|
|
46 |
<?php } ?>
|
47 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-weight' ) ) { ?>
|
48 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--title {
|
49 |
-
|
50 |
}
|
51 |
<?php } else { ?>
|
52 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--title {
|
@@ -100,7 +100,7 @@
|
|
100 |
<?php } ?>
|
101 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-weight' ) ) { ?>
|
102 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--description {
|
103 |
-
|
104 |
}
|
105 |
<?php } else { ?>
|
106 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--description {
|
@@ -154,7 +154,7 @@
|
|
154 |
<?php } ?>
|
155 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-question-font-weight' ) ) { ?>
|
156 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question legend {
|
157 |
-
|
158 |
}
|
159 |
<?php } else { ?>
|
160 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question legend {
|
@@ -186,7 +186,7 @@
|
|
186 |
<?php } ?>
|
187 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-answer-font-weight' ) ) { ?>
|
188 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-answer .forminator-answer--name {
|
189 |
-
|
190 |
}
|
191 |
<?php } else { ?>
|
192 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-answer .forminator-answer--name {
|
@@ -218,7 +218,7 @@
|
|
218 |
<?php } ?>
|
219 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-weight' ) ) { ?>
|
220 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question--result span {
|
221 |
-
|
222 |
}
|
223 |
<?php } else { ?>
|
224 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question--result span {
|
@@ -250,7 +250,7 @@
|
|
250 |
<?php } ?>
|
251 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-submit-font-weight' ) ) { ?>
|
252 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-button {
|
253 |
-
|
254 |
}
|
255 |
<?php } else { ?>
|
256 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-button {
|
@@ -316,7 +316,7 @@
|
|
316 |
<?php } ?>
|
317 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-summary-font-weight' ) ) { ?>
|
318 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--summary p {
|
319 |
-
|
320 |
}
|
321 |
<?php } else { ?>
|
322 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--summary p {
|
@@ -362,7 +362,7 @@
|
|
362 |
<?php } ?>
|
363 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-sshare-font-weight' ) ) { ?>
|
364 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-social--text {
|
365 |
-
|
366 |
}
|
367 |
<?php } else { ?>
|
368 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-social--text {
|
46 |
<?php } ?>
|
47 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-title-font-weight' ) ) { ?>
|
48 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--title {
|
49 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-title-font-weight' ); ?>
|
50 |
}
|
51 |
<?php } else { ?>
|
52 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--title {
|
100 |
<?php } ?>
|
101 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-description-font-weight' ) ) { ?>
|
102 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--description {
|
103 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-description-font-weight' ); ?>
|
104 |
}
|
105 |
<?php } else { ?>
|
106 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--description {
|
154 |
<?php } ?>
|
155 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-question-font-weight' ) ) { ?>
|
156 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question legend {
|
157 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-question-font-weight' ); ?>
|
158 |
}
|
159 |
<?php } else { ?>
|
160 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question legend {
|
186 |
<?php } ?>
|
187 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-answer-font-weight' ) ) { ?>
|
188 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-answer .forminator-answer--name {
|
189 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-answer-font-weight' ); ?>
|
190 |
}
|
191 |
<?php } else { ?>
|
192 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-answer .forminator-answer--name {
|
218 |
<?php } ?>
|
219 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-weight' ) ) { ?>
|
220 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question--result span {
|
221 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-phrasing-font-weight' ); ?>
|
222 |
}
|
223 |
<?php } else { ?>
|
224 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-question--result span {
|
250 |
<?php } ?>
|
251 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-submit-font-weight' ) ) { ?>
|
252 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-button {
|
253 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-submit-font-weight' ); ?>
|
254 |
}
|
255 |
<?php } else { ?>
|
256 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-button {
|
316 |
<?php } ?>
|
317 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-summary-font-weight' ) ) { ?>
|
318 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--summary p {
|
319 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-summary-font-weight' ); ?>
|
320 |
}
|
321 |
<?php } else { ?>
|
322 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-quiz--summary p {
|
362 |
<?php } ?>
|
363 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-sshare-font-weight' ) ) { ?>
|
364 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-social--text {
|
365 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-sshare-font-weight' ); ?>
|
366 |
}
|
367 |
<?php } else { ?>
|
368 |
.forminator-quiz-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-social--text {
|
assets/js/front/templates/quiz/nowrong/bold/quiz-result.html
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
color: #888888;
|
29 |
<?php } ?>
|
30 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
31 |
-
<?php if ( $properties
|
32 |
font-size: <?php echo $properties['nowrong-result-quiz-font-size'] ?>px;
|
33 |
<?php } else { ?>
|
34 |
font-size: 14px;
|
@@ -43,7 +43,7 @@
|
|
43 |
<?php } ?>
|
44 |
<?php } ?>
|
45 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-weight' ) ) { ?>
|
46 |
-
|
47 |
<?php } else { ?>
|
48 |
font-weight: 700;
|
49 |
<?php } ?>
|
@@ -76,7 +76,7 @@
|
|
76 |
color: #000000;
|
77 |
<?php } ?>
|
78 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
79 |
-
<?php if ( $properties
|
80 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
81 |
<?php } else { ?>
|
82 |
font-size: 16px;
|
@@ -91,7 +91,7 @@
|
|
91 |
<?php } ?>
|
92 |
<?php } ?>
|
93 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
94 |
-
|
95 |
<?php } else { ?>
|
96 |
font-weight: 500;
|
97 |
<?php } ?>
|
@@ -113,7 +113,7 @@
|
|
113 |
color: #000000;
|
114 |
<?php } ?>
|
115 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
116 |
-
<?php if ( $properties
|
117 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
118 |
<?php } else { ?>
|
119 |
font-size: 14px;
|
@@ -128,7 +128,7 @@
|
|
128 |
<?php } ?>
|
129 |
<?php } ?>
|
130 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
131 |
-
|
132 |
<?php } else { ?>
|
133 |
font-weight: 400;
|
134 |
<?php } ?>
|
@@ -155,7 +155,7 @@
|
|
155 |
color: #FFFFFF;
|
156 |
<?php } ?>
|
157 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
158 |
-
<?php if ( $properties
|
159 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
160 |
<?php } else { ?>
|
161 |
font-size: 14px;
|
@@ -170,7 +170,7 @@
|
|
170 |
<?php } ?>
|
171 |
<?php } ?>
|
172 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
173 |
-
|
174 |
<?php } else { ?>
|
175 |
font-weight: 400;
|
176 |
<?php } ?>
|
28 |
color: #888888;
|
29 |
<?php } ?>
|
30 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
31 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-size' ) ) { ?>
|
32 |
font-size: <?php echo $properties['nowrong-result-quiz-font-size'] ?>px;
|
33 |
<?php } else { ?>
|
34 |
font-size: 14px;
|
43 |
<?php } ?>
|
44 |
<?php } ?>
|
45 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-weight' ) ) { ?>
|
46 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-quiz-font-weight' ); ?>
|
47 |
<?php } else { ?>
|
48 |
font-weight: 700;
|
49 |
<?php } ?>
|
76 |
color: #000000;
|
77 |
<?php } ?>
|
78 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
79 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-size' ) ) { ?>
|
80 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
81 |
<?php } else { ?>
|
82 |
font-size: 16px;
|
91 |
<?php } ?>
|
92 |
<?php } ?>
|
93 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
94 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-title-font-weight' ); ?>
|
95 |
<?php } else { ?>
|
96 |
font-weight: 500;
|
97 |
<?php } ?>
|
113 |
color: #000000;
|
114 |
<?php } ?>
|
115 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
116 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-size' ) ) { ?>
|
117 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
118 |
<?php } else { ?>
|
119 |
font-size: 14px;
|
128 |
<?php } ?>
|
129 |
<?php } ?>
|
130 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
131 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-description-font-weight' ); ?>
|
132 |
<?php } else { ?>
|
133 |
font-weight: 400;
|
134 |
<?php } ?>
|
155 |
color: #FFFFFF;
|
156 |
<?php } ?>
|
157 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
158 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-size' ) ) { ?>
|
159 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
160 |
<?php } else { ?>
|
161 |
font-size: 14px;
|
170 |
<?php } ?>
|
171 |
<?php } ?>
|
172 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
173 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-retake-font-weight' ); ?>
|
174 |
<?php } else { ?>
|
175 |
font-weight: 400;
|
176 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/default/quiz-result.html
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
color: #888888;
|
29 |
<?php } ?>
|
30 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
31 |
-
<?php if ( $properties
|
32 |
font-size: <?php echo $properties['nowrong-result-quiz-font-size'] ?>px;
|
33 |
<?php } else { ?>
|
34 |
font-size: 14px;
|
@@ -43,7 +43,7 @@
|
|
43 |
<?php } ?>
|
44 |
<?php } ?>
|
45 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-weight' ) ) { ?>
|
46 |
-
|
47 |
<?php } else { ?>
|
48 |
font-weight: 700;
|
49 |
<?php } ?>
|
@@ -76,7 +76,7 @@
|
|
76 |
color: #000000;
|
77 |
<?php } ?>
|
78 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
79 |
-
<?php if ( $properties
|
80 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
81 |
<?php } else { ?>
|
82 |
font-size: 16px;
|
@@ -91,7 +91,7 @@
|
|
91 |
<?php } ?>
|
92 |
<?php } ?>
|
93 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
94 |
-
|
95 |
<?php } else { ?>
|
96 |
font-weight: 500;
|
97 |
<?php } ?>
|
@@ -113,7 +113,7 @@
|
|
113 |
color: #000000;
|
114 |
<?php } ?>
|
115 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
116 |
-
<?php if ( $properties
|
117 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
118 |
<?php } else { ?>
|
119 |
font-size: 14px;
|
@@ -128,7 +128,7 @@
|
|
128 |
<?php } ?>
|
129 |
<?php } ?>
|
130 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
131 |
-
|
132 |
<?php } else { ?>
|
133 |
font-weight: 400;
|
134 |
<?php } ?>
|
@@ -155,7 +155,7 @@
|
|
155 |
color: #FFFFFF;
|
156 |
<?php } ?>
|
157 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
158 |
-
<?php if ( $properties
|
159 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
160 |
<?php } else { ?>
|
161 |
font-size: 14px;
|
@@ -170,7 +170,7 @@
|
|
170 |
<?php } ?>
|
171 |
<?php } ?>
|
172 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
173 |
-
|
174 |
<?php } else { ?>
|
175 |
font-weight: 400;
|
176 |
<?php } ?>
|
28 |
color: #888888;
|
29 |
<?php } ?>
|
30 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
31 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-size' ) ) { ?>
|
32 |
font-size: <?php echo $properties['nowrong-result-quiz-font-size'] ?>px;
|
33 |
<?php } else { ?>
|
34 |
font-size: 14px;
|
43 |
<?php } ?>
|
44 |
<?php } ?>
|
45 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-weight' ) ) { ?>
|
46 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-quiz-font-weight' ); ?>
|
47 |
<?php } else { ?>
|
48 |
font-weight: 700;
|
49 |
<?php } ?>
|
76 |
color: #000000;
|
77 |
<?php } ?>
|
78 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
79 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-size' ) ) { ?>
|
80 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
81 |
<?php } else { ?>
|
82 |
font-size: 16px;
|
91 |
<?php } ?>
|
92 |
<?php } ?>
|
93 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
94 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-title-font-weight' ); ?>
|
95 |
<?php } else { ?>
|
96 |
font-weight: 500;
|
97 |
<?php } ?>
|
113 |
color: #000000;
|
114 |
<?php } ?>
|
115 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
116 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-size' ) ) { ?>
|
117 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
118 |
<?php } else { ?>
|
119 |
font-size: 14px;
|
128 |
<?php } ?>
|
129 |
<?php } ?>
|
130 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
131 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-description-font-weight' ); ?>
|
132 |
<?php } else { ?>
|
133 |
font-weight: 400;
|
134 |
<?php } ?>
|
155 |
color: #FFFFFF;
|
156 |
<?php } ?>
|
157 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
158 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-size' ) ) { ?>
|
159 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
160 |
<?php } else { ?>
|
161 |
font-size: 14px;
|
170 |
<?php } ?>
|
171 |
<?php } ?>
|
172 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
173 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-retake-font-weight' ); ?>
|
174 |
<?php } else { ?>
|
175 |
font-weight: 400;
|
176 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/flat/quiz-result.html
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
color: #888888;
|
23 |
<?php } ?>
|
24 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
25 |
-
<?php if ( $properties
|
26 |
font-size: <?php echo $properties['nowrong-result-quiz-font-size'] ?>px;
|
27 |
<?php } else { ?>
|
28 |
font-size: 14px;
|
@@ -37,7 +37,7 @@
|
|
37 |
<?php } ?>
|
38 |
<?php } ?>
|
39 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-weight' ) ) { ?>
|
40 |
-
|
41 |
<?php } else { ?>
|
42 |
font-weight: 700;
|
43 |
<?php } ?>
|
@@ -70,7 +70,7 @@
|
|
70 |
color: #000000;
|
71 |
<?php } ?>
|
72 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
73 |
-
<?php if ( $properties
|
74 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
75 |
<?php } else { ?>
|
76 |
font-size: 16px;
|
@@ -85,7 +85,7 @@
|
|
85 |
<?php } ?>
|
86 |
<?php } ?>
|
87 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
88 |
-
|
89 |
<?php } else { ?>
|
90 |
font-weight: 500;
|
91 |
<?php } ?>
|
@@ -107,7 +107,7 @@
|
|
107 |
color: #000000;
|
108 |
<?php } ?>
|
109 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
110 |
-
<?php if ( $properties
|
111 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
112 |
<?php } else { ?>
|
113 |
font-size: 14px;
|
@@ -122,7 +122,7 @@
|
|
122 |
<?php } ?>
|
123 |
<?php } ?>
|
124 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
125 |
-
|
126 |
<?php } else { ?>
|
127 |
font-weight: 400;
|
128 |
<?php } ?>
|
@@ -149,7 +149,7 @@
|
|
149 |
color: #FFFFFF;
|
150 |
<?php } ?>
|
151 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
152 |
-
<?php if ( $properties
|
153 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
154 |
<?php } else { ?>
|
155 |
font-size: 14px;
|
@@ -164,7 +164,7 @@
|
|
164 |
<?php } ?>
|
165 |
<?php } ?>
|
166 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
167 |
-
|
168 |
<?php } else { ?>
|
169 |
font-weight: 400;
|
170 |
<?php } ?>
|
22 |
color: #888888;
|
23 |
<?php } ?>
|
24 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
25 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-size' ) ) { ?>
|
26 |
font-size: <?php echo $properties['nowrong-result-quiz-font-size'] ?>px;
|
27 |
<?php } else { ?>
|
28 |
font-size: 14px;
|
37 |
<?php } ?>
|
38 |
<?php } ?>
|
39 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-quiz-font-weight' ) ) { ?>
|
40 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-quiz-font-weight' ); ?>
|
41 |
<?php } else { ?>
|
42 |
font-weight: 700;
|
43 |
<?php } ?>
|
70 |
color: #000000;
|
71 |
<?php } ?>
|
72 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
73 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-size' ) ) { ?>
|
74 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
75 |
<?php } else { ?>
|
76 |
font-size: 16px;
|
85 |
<?php } ?>
|
86 |
<?php } ?>
|
87 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
88 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-title-font-weight' ); ?>
|
89 |
<?php } else { ?>
|
90 |
font-weight: 500;
|
91 |
<?php } ?>
|
107 |
color: #000000;
|
108 |
<?php } ?>
|
109 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
110 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-size' ) ) { ?>
|
111 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
112 |
<?php } else { ?>
|
113 |
font-size: 14px;
|
122 |
<?php } ?>
|
123 |
<?php } ?>
|
124 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
125 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-description-font-weight' ); ?>
|
126 |
<?php } else { ?>
|
127 |
font-weight: 400;
|
128 |
<?php } ?>
|
149 |
color: #FFFFFF;
|
150 |
<?php } ?>
|
151 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
152 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-size' ) ) { ?>
|
153 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
154 |
<?php } else { ?>
|
155 |
font-size: 14px;
|
164 |
<?php } ?>
|
165 |
<?php } ?>
|
166 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
167 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-retake-font-weight' ); ?>
|
168 |
<?php } else { ?>
|
169 |
font-weight: 400;
|
170 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/content/answers-text.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #888888;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['nowrong-answer-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 14px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-answer-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 500;
|
31 |
<?php } ?>
|
10 |
color: #888888;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-answer-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['nowrong-answer-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 14px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-answer-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-answer-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 500;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/content/questions-legend.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #000000;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['nowrong-question-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 16px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-question-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
10 |
color: #000000;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-question-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['nowrong-question-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 16px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-question-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-question-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/content/questions-result.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #777771;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['knowledge-phrasing-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 13px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
10 |
color: #777771;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['knowledge-phrasing-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 13px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'knowledge-phrasing-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'knowledge-phrasing-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/footer/social-share.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
color: #000000;
|
15 |
<?php } ?>
|
16 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
17 |
-
<?php if ( $properties
|
18 |
font-size: <?php echo $properties['nowrong-sshare-font-size'] ?>px;
|
19 |
<?php } else { ?>
|
20 |
font-size: 20px;
|
@@ -29,7 +29,7 @@
|
|
29 |
<?php } ?>
|
30 |
<?php } ?>
|
31 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-sshare-font-weight' ) ) { ?>
|
32 |
-
|
33 |
<?php } else { ?>
|
34 |
font-weight: 400;
|
35 |
<?php } ?>
|
@@ -41,7 +41,7 @@
|
|
41 |
|
42 |
.forminator-ui.forminator-quiz-<?php echo $properties['form_id'] ?> .forminator-quiz--result .forminator-quiz--social .forminator-social--icon {
|
43 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
44 |
-
<?php if ( $properties
|
45 |
font-size: <?php echo $properties['nowrong-social-size'] ?>px;
|
46 |
<?php } else { ?>
|
47 |
font-size: 36px;
|
14 |
color: #000000;
|
15 |
<?php } ?>
|
16 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
17 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-sshare-font-size' ) ) { ?>
|
18 |
font-size: <?php echo $properties['nowrong-sshare-font-size'] ?>px;
|
19 |
<?php } else { ?>
|
20 |
font-size: 20px;
|
29 |
<?php } ?>
|
30 |
<?php } ?>
|
31 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-sshare-font-weight' ) ) { ?>
|
32 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-sshare-font-weight' ); ?>
|
33 |
<?php } else { ?>
|
34 |
font-weight: 400;
|
35 |
<?php } ?>
|
41 |
|
42 |
.forminator-ui.forminator-quiz-<?php echo $properties['form_id'] ?> .forminator-quiz--result .forminator-quiz--social .forminator-social--icon {
|
43 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
44 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-social-size' ) ) { ?>
|
45 |
font-size: <?php echo $properties['nowrong-social-size'] ?>px;
|
46 |
<?php } else { ?>
|
47 |
font-size: 36px;
|
assets/js/front/templates/quiz/nowrong/global/footer/submit-button.html
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
<?php } ?>
|
32 |
<?php } ?>
|
33 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-submit-font-weight' ) ) { ?>
|
34 |
-
|
35 |
<?php } else { ?>
|
36 |
font-weight: 500;
|
37 |
<?php } ?>
|
31 |
<?php } ?>
|
32 |
<?php } ?>
|
33 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-submit-font-weight' ) ) { ?>
|
34 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-submit-font-weight' ); ?>
|
35 |
<?php } else { ?>
|
36 |
font-weight: 500;
|
37 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/header/quiz-description.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
color: #000000;
|
12 |
<?php } ?>
|
13 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
14 |
-
<?php if ( $properties
|
15 |
font-size: <?php echo $properties['nowrong-description-font-size'] ?>px;
|
16 |
<?php } else { ?>
|
17 |
font-size: 16px;
|
@@ -26,7 +26,7 @@
|
|
26 |
<?php } ?>
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-description-font-weight' ) ) { ?>
|
29 |
-
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
11 |
color: #000000;
|
12 |
<?php } ?>
|
13 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
14 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-description-font-size' ) ) { ?>
|
15 |
font-size: <?php echo $properties['nowrong-description-font-size'] ?>px;
|
16 |
<?php } else { ?>
|
17 |
font-size: 16px;
|
26 |
<?php } ?>
|
27 |
<?php } ?>
|
28 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-description-font-weight' ) ) { ?>
|
29 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-description-font-weight' ); ?>
|
30 |
<?php } else { ?>
|
31 |
font-weight: 400;
|
32 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/header/quiz-title.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
color: #000000;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
13 |
-
<?php if ( $properties
|
14 |
font-size: <?php echo $properties['nowrong-title-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 36px;
|
@@ -25,7 +25,7 @@
|
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-title-font-weight' ) ) { ?>
|
28 |
-
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
10 |
color: #000000;
|
11 |
<?php } ?>
|
12 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
13 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-title-font-size' ) ) { ?>
|
14 |
font-size: <?php echo $properties['nowrong-title-font-size'] ?>px;
|
15 |
<?php } else { ?>
|
16 |
font-size: 36px;
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
27 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-title-font-weight' ) ) { ?>
|
28 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-title-font-weight' ); ?>
|
29 |
<?php } else { ?>
|
30 |
font-weight: 700;
|
31 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/global/quiz-container.html
CHANGED
@@ -65,7 +65,7 @@
|
|
65 |
color: #888888;
|
66 |
<?php } ?>
|
67 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
68 |
-
<?php if ( $properties
|
69 |
font-size: <?php echo $properties['nowrong-skip-font-size'] ?>px;
|
70 |
<?php } else { ?>
|
71 |
font-size: 15px;
|
@@ -80,7 +80,7 @@
|
|
80 |
<?php } ?>
|
81 |
<?php } ?>
|
82 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-skip-font-weight' ) ) { ?>
|
83 |
-
|
84 |
<?php } else { ?>
|
85 |
font-weight: 400;
|
86 |
<?php } ?>
|
65 |
color: #888888;
|
66 |
<?php } ?>
|
67 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
68 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-skip-font-size' ) ) { ?>
|
69 |
font-size: <?php echo $properties['nowrong-skip-font-size'] ?>px;
|
70 |
<?php } else { ?>
|
71 |
font-size: 15px;
|
80 |
<?php } ?>
|
81 |
<?php } ?>
|
82 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-skip-font-weight' ) ) { ?>
|
83 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-skip-font-weight' ); ?>
|
84 |
<?php } else { ?>
|
85 |
font-weight: 400;
|
86 |
<?php } ?>
|
assets/js/front/templates/quiz/nowrong/material/quiz-result.html
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
color: #000000;
|
29 |
<?php } ?>
|
30 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
31 |
-
<?php if ( $properties
|
32 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
33 |
<?php } else { ?>
|
34 |
font-size: 16px;
|
@@ -43,7 +43,7 @@
|
|
43 |
<?php } ?>
|
44 |
<?php } ?>
|
45 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
46 |
-
|
47 |
<?php } else { ?>
|
48 |
font-weight: 500;
|
49 |
<?php } ?>
|
@@ -65,7 +65,7 @@
|
|
65 |
color: #000000;
|
66 |
<?php } ?>
|
67 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
68 |
-
<?php if ( $properties
|
69 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
70 |
<?php } else { ?>
|
71 |
font-size: 14px;
|
@@ -80,7 +80,7 @@
|
|
80 |
<?php } ?>
|
81 |
<?php } ?>
|
82 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
83 |
-
|
84 |
<?php } else { ?>
|
85 |
font-weight: 400;
|
86 |
<?php } ?>
|
@@ -101,7 +101,7 @@
|
|
101 |
color: #17A8E3;
|
102 |
<?php } ?>
|
103 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
104 |
-
<?php if ( $properties
|
105 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
106 |
<?php } else { ?>
|
107 |
font-size: 14px;
|
@@ -116,7 +116,7 @@
|
|
116 |
<?php } ?>
|
117 |
<?php } ?>
|
118 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
119 |
-
|
120 |
<?php } else { ?>
|
121 |
font-weight: 700;
|
122 |
<?php } ?>
|
28 |
color: #000000;
|
29 |
<?php } ?>
|
30 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
31 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-size' ) ) { ?>
|
32 |
font-size: <?php echo $properties['nowrong-result-title-font-size'] ?>px;
|
33 |
<?php } else { ?>
|
34 |
font-size: 16px;
|
43 |
<?php } ?>
|
44 |
<?php } ?>
|
45 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-title-font-weight' ) ) { ?>
|
46 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-title-font-weight' ); ?>
|
47 |
<?php } else { ?>
|
48 |
font-weight: 500;
|
49 |
<?php } ?>
|
65 |
color: #000000;
|
66 |
<?php } ?>
|
67 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
68 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-size' ) ) { ?>
|
69 |
font-size: <?php echo $properties['nowrong-result-description-font-size'] ?>px;
|
70 |
<?php } else { ?>
|
71 |
font-size: 14px;
|
80 |
<?php } ?>
|
81 |
<?php } ?>
|
82 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-description-font-weight' ) ) { ?>
|
83 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-description-font-weight' ); ?>
|
84 |
<?php } else { ?>
|
85 |
font-weight: 400;
|
86 |
<?php } ?>
|
101 |
color: #17A8E3;
|
102 |
<?php } ?>
|
103 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-toggle-typography' ) ) { ?>
|
104 |
+
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-size' ) ) { ?>
|
105 |
font-size: <?php echo $properties['nowrong-result-retake-font-size'] ?>px;
|
106 |
<?php } else { ?>
|
107 |
font-size: 14px;
|
116 |
<?php } ?>
|
117 |
<?php } ?>
|
118 |
<?php if ( forminator_array_value_exists( $properties, 'nowrong-result-retake-font-weight' ) ) { ?>
|
119 |
+
<?php forminator_echo_font_weight( $properties, 'nowrong-result-retake-font-weight' ); ?>
|
120 |
<?php } else { ?>
|
121 |
font-weight: 700;
|
122 |
<?php } ?>
|
build/admin/dashboard.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(o){formintorjs.define([],function(t){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var t=Forminator.Utils.get_url_param("notification"),e=Forminator.Utils.get_url_param("title"),i=Forminator.Utils.get_url_param("createnew");if(setTimeout(function(){o(".forminator-scroll-to").length&&o("html, body").animate({scrollTop:o(".forminator-scroll-to").offset().top},"slow")},100),t){var
|
1 |
+
!function(o){formintorjs.define([],function(t){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var t=Forminator.Utils.get_url_param("notification"),e=Forminator.Utils.get_url_param("title"),i=Forminator.Utils.get_url_param("createnew");if(setTimeout(function(){o(".forminator-scroll-to").length&&o("html, body").animate({scrollTop:o(".forminator-scroll-to").offset().top},"slow")},100),t){var n=_.template("<strong>{{ formName }}</strong> {{ Forminator.l10n.options.been_published }}");Forminator.Notification.open("success",n({formName:Forminator.Utils.sanitize_uri_string(e)}),4e3)}return i&&setTimeout(function(){jQuery(".forminator-create-"+i).click()},200),this.render()},dismiss_welcome:function(t){t.preventDefault();var e=o(t.target).closest(".sui-box"),i=o(t.target).data("nonce");e.slideToggle(300,function(){o.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_dismiss_welcome",_ajax_nonce:i},complete:function(o){e.remove()}})})},render:function(){setTimeout(function(){void 0!==SUI.dialogs&&void 0!==SUI.dialogs["forminator-new-feature"]&&SUI.dialogs["forminator-new-feature"].show()},1e3)}}))})}(jQuery);
|
build/admin/settings-page.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){formintorjs.define([],function(){var a=Backbone.View.extend({el:".wpmudev-forminator-forminator-settings",events:{"click .sui-side-tabs label.sui-tab-item input":"sidetabs","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select","click .stripe-connect-modal":"open_stripe_connect_modal","click .paypal-connect-modal":"open_paypal_connect_modal","click .forminator-stripe-connect":"connect_stripe","click .disconnect_stripe":"disconnect_stripe","click .forminator-paypal-connect":"connect_paypal","click .disconnect_paypal":"disconnect_paypal","click button.sui-tab-item":"buttonTabs","click .forminator-toggle-unsupported-settings":"show_unsupported_settings","click .forminator-dismiss-unsupported":"hide_unsupported_settings"},initialize:function(){var a=this;if(t(".wpmudev-forminator-forminator-settings").length){this.$el.find(".forminator-settings-save").submit(function(n){n.preventDefault();var i=t(this),e=i.find(".wpmudev-action-done").data("nonce"),o=i.find(".wpmudev-action-done").data("action"),s=i.find(".wpmudev-action-done").data("title"),r=i.find(".wpmudev-action-done").data("isReload");a.submitForm(t(this),o,e,s,r)});var n=window.location.hash;_.isUndefined(n)||_.isEmpty(n)||this.sidenav_go_to(n.substring(1),!0),this.render("v2"),this.render("v2-invisible"),this.render("v3")}},render:function(a){var n=this.$el.find("#"+a+"-recaptcha-preview");n.html('<p class="fui-loading-dialog"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_recaptcha_preview",captcha:a}}).done(function(t){t.success&&n.html(t.data)})},submitForm:function(a,n,i,e,o){var s={},r=this;s.action="forminator_save_"+n+"_popup",s._ajax_nonce=i;var d=a.serialize()+"&"+t.param(s);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:d,beforeSend:function(){a.find(".sui-button").addClass("sui-button-onload")},success:function(t){var a=_.template("<strong>{{ tab }}</strong> {{ Forminator.l10n.commons.update_successfully }}");Forminator.Notification.open("success",a({tab:e}),4e3),"captcha"===n&&(r.render("v2"),r.render("v2-invisible"),r.render("v3")),o&&window.location.reload()},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.update_unsuccessfull,4e3)}}).always(function(){a.find(".sui-button").removeClass("sui-button-onload")})},sidetabs:function(t){var a=this.$(t.target),n=a.parent("label"),i=a.data("tab-menu"),e=a.closest(".sui-side-tabs"),o=e.find(".sui-tabs-menu .sui-tab-item"),s=o.find("input");a.is("input")&&(o.removeClass("active"),s.removeAttr("checked"),e.find(".sui-tabs-content > div").removeClass("active"),n.addClass("active"),a.attr("checked","checked"),e.find('.sui-tabs-content div[data-tab-content="'+i+'"]').length&&e.find('.sui-tabs-content div[data-tab-content="'+i+'"]').addClass("active"))},sidenav:function(a){var n=t(a.target).data("nav");n&&this.sidenav_go_to(n,!0),a.preventDefault()},sidenav_select:function(a){var n=t(a.target).val();n&&this.sidenav_go_to(n,!0),a.preventDefault()},sidenav_go_to:function(t,a){var n=this.$el.find('a[data-nav="'+t+'"]'),i=n.closest(".sui-vertical-tabs"),e=i.find(".sui-vertical-tab"),o=this.$el.find(".sui-box[data-nav]"),s=this.$el.find('.sui-box[data-nav="'+t+'"]');a&&history.pushState({selected_tab:t},"Global Settings","admin.php?page=forminator-settings§ion="+t),e.removeClass("current"),o.hide(),n.parent().addClass("current"),s.show()},open_stripe_connect_modal:function(a){a.preventDefault();var n=this,i=t(a.target),e=i.data("modalImage"),o=i.data("modalImageX2"),s=i.data("modalTitle"),r=i.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var a=t(this);n.render_stripe_connect_modal_content(a,"small",r,{})},{title:s,image:e,image_x2:o}),!1},render_stripe_connect_modal_content:function(a,n,i,e){var o=this;e.action="forminator_stripe_settings_modal",e._ajax_nonce=i,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){a.find(".sui-box-header h3.sui-box-title").show(),a.find(".sui-box-body").html(e.data.html);var s=e.data.buttons;if(a.find(".sui-box-footer").html(""),_.each(s,function(t){a.find(".sui-box-footer").append(t.markup)}),a.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(n)){var r=t("#forminator-stripe-popup");"normal"===n&&r.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n&&(r.addClass("sui-dialog-sm"),r.removeClass("sui-dialog-lg")),"large"===n&&(r.addClass("sui-dialog-lg"),r.removeClass("sui-dialog-sm"))}_.isUndefined(e.data.notification)||_.isUndefined(e.data.notification.type)||_.isUndefined(e.data.notification.text)||_.isUndefined(e.data.notification.duration)||(Forminator.Notification.open(e.data.notification.type,e.data.notification.text,e.data.notification.duration).done(function(){}),o.update_stripe_page(i))}})},update_stripe_page:function(a){var n={action:"forminator_stripe_update_page",_ajax_nonce:a};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-stripe").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},show_unsupported_settings:function(a){a.preventDefault(),t(".forminator-unsupported-settings").show()},hide_unsupported_settings:function(a){a.preventDefault(),t(".forminator-unsupported-settings").hide()},connect_stripe:function(a){a.preventDefault();var n=t(a.target);n.addClass("sui-button-onload");var i=n.data("nonce"),e=this.$el.find("#forminator-stripe-popup"),o=e.find("form"),s=o.serializeArray(),r={};return t.map(s,function(t,a){r[t.name]=t.value}),r.connect=!0,this.render_stripe_connect_modal_content(e,"small",i,r),!1},buttonTabs:function(t){var a=this.$(t.target),n=a.closest(".sui-tabs"),i=n.find(".sui-tabs-menu .sui-tab-item"),e=n.find(".sui-tabs-content .sui-tab-content");a.is("button")&&(i.removeClass("active"),i.attr("tabindex","-1"),e.attr("hidden",!0),e.removeClass("active"),a.removeAttr("tabindex"),a.addClass("active"),n.find("#"+a.attr("aria-controls")).addClass("active"),n.find("#"+a.attr("aria-controls")).attr("hidden",!1),n.find("#"+a.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},open_paypal_connect_modal:function(a){a.preventDefault();var n=this,i=t(a.target),e=i.data("modalImage"),o=i.data("modalImageX2"),s=i.data("modalTitle"),r=i.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var a=t(this);n.render_paypal_connect_modal_content(a,"small",r,{})},{title:s,image:e,image_x2:o}),!1},render_paypal_connect_modal_content:function(a,n,i,e){var o=this;e.action="forminator_paypal_settings_modal",e._ajax_nonce=i,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){a.find(".sui-box-header h3.sui-box-title").show(),a.find(".sui-box-body").html(e.data.html);var s=e.data.buttons;if(a.find(".sui-box-footer").html(""),_.each(s,function(t){a.find(".sui-box-footer").append(t.markup)}),a.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(n)){var r=t("#forminator-paypal-popup");"normal"===n&&r.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n&&(r.addClass("sui-dialog-sm"),r.removeClass("sui-dialog-lg")),"large"===n&&(r.addClass("sui-dialog-lg"),r.removeClass("sui-dialog-sm"))}_.isUndefined(e.data.notification)||_.isUndefined(e.data.notification.type)||_.isUndefined(e.data.notification.text)||_.isUndefined(e.data.notification.duration)||(Forminator.Notification.open(e.data.notification.type,e.data.notification.text,e.data.notification.duration).done(function(){}),o.update_paypal_page(i))}})},update_paypal_page:function(a){var n={action:"forminator_paypal_update_page",_ajax_nonce:a};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-paypal").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},connect_paypal:function(a){a.preventDefault();var n=t(a.target);n.addClass("sui-button-onload");var i=n.data("nonce"),e=this.$el.find("#forminator-stripe-popup"),o=e.find("form"),s=o.serializeArray(),r={};return t.map(s,function(t,a){r[t.name]=t.value}),r.connect=!0,this.render_paypal_connect_modal_content(e,"small",i,r),!1},disconnect_stripe:function(a){var n=t(a.target),i={action:"forminator_disconnect_stripe",_ajax_nonce:n.data("nonce")};n.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-stripe").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})},disconnect_paypal:function(a){var n=t(a.target),i={action:"forminator_disconnect_paypal",_ajax_nonce:n.data("nonce")};n.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-paypal").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})}}),a=new a;return a})}(jQuery);var forminator_render_admin_captcha=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i})},100)},forminator_render_admin_captcha_v2=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i})},100)},forminator_render_admin_captcha_v2_invisible=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2-invisible"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i,badge:"inline"})},100)},forminator_render_admin_captcha_v3=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v3"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i,badge:"inline"})},100)};
|
1 |
+
!function(t){formintorjs.define([],function(){var a=Backbone.View.extend({el:".wpmudev-forminator-forminator-settings",events:{"click .sui-side-tabs label.sui-tab-item input":"sidetabs","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select","click .stripe-connect-modal":"open_stripe_connect_modal","click .paypal-connect-modal":"open_paypal_connect_modal","click .forminator-stripe-connect":"connect_stripe","click .disconnect_stripe":"disconnect_stripe","click .forminator-paypal-connect":"connect_paypal","click .disconnect_paypal":"disconnect_paypal","click button.sui-tab-item":"buttonTabs","click .forminator-toggle-unsupported-settings":"show_unsupported_settings","click .forminator-dismiss-unsupported":"hide_unsupported_settings"},initialize:function(){var a=this;if(t(".wpmudev-forminator-forminator-settings").length){this.$el.find(".forminator-settings-save").submit(function(n){n.preventDefault();var i=t(this),e=i.find(".wpmudev-action-done").data("nonce"),o=i.find(".wpmudev-action-done").data("action"),s=i.find(".wpmudev-action-done").data("title"),r=i.find(".wpmudev-action-done").data("isReload");a.submitForm(t(this),o,e,s,r)});var n=window.location.hash;_.isUndefined(n)||_.isEmpty(n)||this.sidenav_go_to(n.substring(1),!0),this.render("v2"),this.render("v2-invisible"),this.render("v3")}},render:function(a){var n=this.$el.find("#"+a+"-recaptcha-preview");n.html('<p class="fui-loading-dialog"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_recaptcha_preview",captcha:a}}).done(function(t){t.success&&n.html(t.data)})},submitForm:function(a,n,i,e,o){var s={},r=this;s.action="forminator_save_"+n+"_popup",s._ajax_nonce=i;var d=a.serialize()+"&"+t.param(s);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:d,beforeSend:function(){a.find(".sui-button").addClass("sui-button-onload")},success:function(t){var a=_.template("<strong>{{ tab }}</strong> {{ Forminator.l10n.commons.update_successfully }}");Forminator.Notification.open("success",a({tab:e}),4e3),"captcha"===n&&(r.render("v2"),r.render("v2-invisible"),r.render("v3")),o&&window.location.reload()},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.update_unsuccessfull,4e3)}}).always(function(){a.find(".sui-button").removeClass("sui-button-onload")})},sidetabs:function(t){var a=this.$(t.target),n=a.parent("label"),i=a.data("tab-menu"),e=a.closest(".sui-side-tabs"),o=e.find(".sui-tabs-menu .sui-tab-item"),s=o.find("input");a.is("input")&&(o.removeClass("active"),s.removeAttr("checked"),e.find(".sui-tabs-content > div").removeClass("active"),n.addClass("active"),a.prop("checked","checked"),e.find('.sui-tabs-content div[data-tab-content="'+i+'"]').length&&e.find('.sui-tabs-content div[data-tab-content="'+i+'"]').addClass("active"))},sidenav:function(a){var n=t(a.target).data("nav");n&&this.sidenav_go_to(n,!0),a.preventDefault()},sidenav_select:function(a){var n=t(a.target).val();n&&this.sidenav_go_to(n,!0),a.preventDefault()},sidenav_go_to:function(t,a){var n=this.$el.find('a[data-nav="'+t+'"]'),i=n.closest(".sui-vertical-tabs"),e=i.find(".sui-vertical-tab"),o=this.$el.find(".sui-box[data-nav]"),s=this.$el.find('.sui-box[data-nav="'+t+'"]');a&&history.pushState({selected_tab:t},"Global Settings","admin.php?page=forminator-settings§ion="+t),e.removeClass("current"),o.hide(),n.parent().addClass("current"),s.show()},open_stripe_connect_modal:function(a){a.preventDefault();var n=this,i=t(a.target),e=i.data("modalImage"),o=i.data("modalImageX2"),s=i.data("modalTitle"),r=i.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var a=t(this);n.render_stripe_connect_modal_content(a,"small",r,{})},{title:s,image:e,image_x2:o}),!1},render_stripe_connect_modal_content:function(a,n,i,e){var o=this;e.action="forminator_stripe_settings_modal",e._ajax_nonce=i,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){a.find(".sui-box-header h3.sui-box-title").show(),a.find(".sui-box-body").html(e.data.html);var s=e.data.buttons;if(a.find(".sui-box-footer").html(""),_.each(s,function(t){a.find(".sui-box-footer").append(t.markup)}),a.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(n)){var r=t("#forminator-stripe-popup");"normal"===n&&r.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n&&(r.addClass("sui-dialog-sm"),r.removeClass("sui-dialog-lg")),"large"===n&&(r.addClass("sui-dialog-lg"),r.removeClass("sui-dialog-sm"))}_.isUndefined(e.data.notification)||_.isUndefined(e.data.notification.type)||_.isUndefined(e.data.notification.text)||_.isUndefined(e.data.notification.duration)||(Forminator.Notification.open(e.data.notification.type,e.data.notification.text,e.data.notification.duration).done(function(){}),o.update_stripe_page(i))}})},update_stripe_page:function(a){var n={action:"forminator_stripe_update_page",_ajax_nonce:a};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-stripe").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},show_unsupported_settings:function(a){a.preventDefault(),t(".forminator-unsupported-settings").show()},hide_unsupported_settings:function(a){a.preventDefault(),t(".forminator-unsupported-settings").hide()},connect_stripe:function(a){a.preventDefault();var n=t(a.target);n.addClass("sui-button-onload");var i=n.data("nonce"),e=this.$el.find("#forminator-stripe-popup"),o=e.find("form"),s=o.serializeArray(),r={};return t.map(s,function(t,a){r[t.name]=t.value}),r.connect=!0,this.render_stripe_connect_modal_content(e,"small",i,r),!1},buttonTabs:function(t){var a=this.$(t.target),n=a.closest(".sui-tabs"),i=n.find(".sui-tabs-menu .sui-tab-item"),e=n.find(".sui-tabs-content .sui-tab-content");a.is("button")&&(i.removeClass("active"),i.attr("tabindex","-1"),e.attr("hidden",!0),e.removeClass("active"),a.removeAttr("tabindex"),a.addClass("active"),n.find("#"+a.attr("aria-controls")).addClass("active"),n.find("#"+a.attr("aria-controls")).attr("hidden",!1),n.find("#"+a.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},open_paypal_connect_modal:function(a){a.preventDefault();var n=this,i=t(a.target),e=i.data("modalImage"),o=i.data("modalImageX2"),s=i.data("modalTitle"),r=i.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var a=t(this);n.render_paypal_connect_modal_content(a,"small",r,{})},{title:s,image:e,image_x2:o}),!1},render_paypal_connect_modal_content:function(a,n,i,e){var o=this;e.action="forminator_paypal_settings_modal",e._ajax_nonce=i,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){a.find(".sui-box-header h3.sui-box-title").show(),a.find(".sui-box-body").html(e.data.html);var s=e.data.buttons;if(a.find(".sui-box-footer").html(""),_.each(s,function(t){a.find(".sui-box-footer").append(t.markup)}),a.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(n)){var r=t("#forminator-paypal-popup");"normal"===n&&r.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n&&(r.addClass("sui-dialog-sm"),r.removeClass("sui-dialog-lg")),"large"===n&&(r.addClass("sui-dialog-lg"),r.removeClass("sui-dialog-sm"))}_.isUndefined(e.data.notification)||_.isUndefined(e.data.notification.type)||_.isUndefined(e.data.notification.text)||_.isUndefined(e.data.notification.duration)||(Forminator.Notification.open(e.data.notification.type,e.data.notification.text,e.data.notification.duration).done(function(){}),o.update_paypal_page(i))}})},update_paypal_page:function(a){var n={action:"forminator_paypal_update_page",_ajax_nonce:a};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-paypal").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},connect_paypal:function(a){a.preventDefault();var n=t(a.target);n.addClass("sui-button-onload");var i=n.data("nonce"),e=this.$el.find("#forminator-stripe-popup"),o=e.find("form"),s=o.serializeArray(),r={};return t.map(s,function(t,a){r[t.name]=t.value}),r.connect=!0,this.render_paypal_connect_modal_content(e,"small",i,r),!1},disconnect_stripe:function(a){var n=t(a.target),i={action:"forminator_disconnect_stripe",_ajax_nonce:n.data("nonce")};n.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-stripe").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})},disconnect_paypal:function(a){var n=t(a.target),i={action:"forminator_disconnect_paypal",_ajax_nonce:n.data("nonce")};n.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-paypal").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})}}),a=new a;return a})}(jQuery);var forminator_render_admin_captcha=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i})},100)},forminator_render_admin_captcha_v2=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i})},100)},forminator_render_admin_captcha_v2_invisible=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2-invisible"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i,badge:"inline"})},100)},forminator_render_admin_captcha_v3=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v3"),a=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:a,theme:n,size:i,badge:"inline"})},100)};
|
build/front/front.multi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function i(a,s,l){function f(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=s[e]={exports:{}};a[e][0].call(o.exports,function(t){return f(a[e][1][t]||t)},o,o.exports,i,a,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)f(l[t]);return f}({1:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=d(t("./parser/front.calculator.parser.tokenizer")),o=d(t("./symbol/front.calculator.symbol.loader")),i=d(t("./parser/front.calculator.parser")),a=d(t("./symbol/front.calculator.symbol.number")),s=d(t("./symbol/abstract/front.calculator.symbol.constant.abstract")),l=d(t("./parser/node/front.calculator.parser.node.symbol")),f=d(t("./symbol/abstract/front.calculator.symbol.operator.abstract")),u=d(t("./symbol/front.calculator.symbol.separator")),p=d(t("./parser/node/front.calculator.parser.node.function")),c=d(t("./parser/node/front.calculator.parser.node.container"));function d(t){return t&&t.__esModule?t:{default:t}}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var h=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.term=t,this.tokenizer=new n.default(this.term),this.symbolLoader=new o.default,this.parser=new i.default(this.symbolLoader)}return function(t,e,r){e&&m(t.prototype,e),r&&m(t,r)}(e,[{key:"parse",value:function(){this.tokenizer.input=this.term,this.tokenizer.reset();var t=this.tokenizer.tokenize();if(0===t.length)throw"Error: Empty token of calculator term.";var e=this.parser.parse(t);if(e.isEmpty())throw"Error: Empty nodes of calculator tokens.";return e}},{key:"calculate",value:function(){var t=this.parse();return!1===t?0:this.calculateNode(t)}},{key:"calculateNode",value:function(t){if(t instanceof l.default)return this.calculateSymbolNode(t);if(t instanceof p.default)return this.calculateFunctionNode(t);if(t instanceof c.default)return this.calculateContainerNode(t);throw'Error: Cannot calculate node of unknown type "'+t.constructor.name+'"'}},{key:"calculateContainerNode",value:function(t){if(t instanceof p.default)throw"Error: Expected container node but got a function node";for(var e=0,r=t.childNodes,n=this.detectCalculationOrder(r),o=0;o<n.length;o++){for(var i=n[o].node,a=n[o].index,s=null,l=null,f=0;f!==a;)void 0!==r[f]&&(s=r[f],l=f),f++;for(f++;void 0===r[f];)f++;var u=r[f],c=f,d=isNaN(u)?this.calculateNode(u):u,m=i.symbol;if(i.isUnaryOperator)e=m.operate(null,d),delete r[c],r[a]=e;else if(null!==l&&null!==s){var h=isNaN(s)?this.calculateNode(s):s;e=m.operate(h,d),delete r[l],delete r[c],r[a]=e}}if(0===(r=r.filter(function(t){return void 0!==t})).length)throw"Error: Missing calculable subterm. Are there empty brackets?";if(1<r.length)throw"Error: Missing operators between parts of the term.";return e=r.pop(),isNaN(e)?this.calculateNode(e):e}},{key:"calculateFunctionNode",value:function(t){for(var e=t.childNodes,r=[],n=[],o=null,i=0;i<e.length;i++){var a=e[i];a instanceof l.default&&a.symbol instanceof u.default?(o=new c.default(n),r.push(this.calculateNode(o)),n=[]):n.push(a)}return 0<n.length&&(o=new c.default(n),r.push(this.calculateNode(o))),t.symbolNode.symbol.execute(r)}},{key:"calculateSymbolNode",value:function(t){var e=t.symbol,r=0;if(e instanceof a.default)r=t.token.value,r=Number(r);else{if(!(e instanceof s.default))throw'Error: Found symbol of unexpected type "'+e.constructor.name+'", expected number or constant';r=e.value}return r}},{key:"detectCalculationOrder",value:function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n instanceof l.default&&n.symbol instanceof f.default){var o={index:r,node:n};e.push(o)}}return e.sort(function(t,e){var r=t.node,n=e.node,o=r.symbol,i=2;r.isUnaryOperator&&(i=3);var a=n.symbol,s=2;return n.isUnaryOperator&&(s=3),i===s&&(i=o.precedence,s=a.precedence),i===s?r.token.position<n.token.position?-1:1:i<s?1:-1}),e}}]),e}();r.default=h,void 0===window.forminatorCalculator&&(window.forminatorCalculator=function(t){return new h(t)})},{"./parser/front.calculator.parser":2,"./parser/front.calculator.parser.tokenizer":4,"./parser/node/front.calculator.parser.node.container":6,"./parser/node/front.calculator.parser.node.function":7,"./parser/node/front.calculator.parser.node.symbol":8,"./symbol/abstract/front.calculator.symbol.constant.abstract":10,"./symbol/abstract/front.calculator.symbol.operator.abstract":12,"./symbol/front.calculator.symbol.loader":16,"./symbol/front.calculator.symbol.number":17,"./symbol/front.calculator.symbol.separator":18}],2:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var c=n(t("./front.calculator.parser.token")),d=n(t("../symbol/front.calculator.symbol.number")),m=n(t("../symbol/brackets/front.calculator.symbol.opening.bracket")),h=n(t("../symbol/brackets/front.calculator.symbol.closing.bracket")),p=n(t("../symbol/abstract/front.calculator.symbol.function.abstract")),a=n(t("../symbol/abstract/front.calculator.symbol.operator.abstract")),s=n(t("../symbol/front.calculator.symbol.separator")),b=n(t("./node/front.calculator.parser.node.symbol")),l=n(t("./node/front.calculator.parser.node.container")),f=n(t("./node/front.calculator.parser.node.function"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.symbolLoader=t}return function(t,e,r){e&&o(t.prototype,e),r&&o(t,r)}(e,[{key:"parse",value:function(t){var e=this.detectSymbols(t),r=this.createTreeByBrackets(e);return r=this.transformTreeByFunctions(r),this.checkGrammar(r),new l.default(r)}},{key:"detectSymbols",value:function(t){for(var e=[],r=null,n=null,o=!1,i=0,a=0;a<t.length;a++){var s=t[a],l=s.type;if(c.default.TYPE_WORD===l){if(n=s.value,null===(r=this.symbolLoader.find(n)))throw"Error: Detected unknown or invalid string identifier: "+n+"."}else if(l===c.default.TYPE_NUMBER){var f=this.symbolLoader.findSubTypes(d.default);if(f.length<1||!(f instanceof Array))throw"Error: Unavailable number symbol processor.";r=f[0]}else{if(n=s.value,null===(r=this.symbolLoader.find(n)))throw"Error: Detected unknown or invalid string identifier: "+n+".";if(r instanceof m.default&&i++,r instanceof h.default&&--i<0)throw"Error: Found closing bracket that does not have an opening bracket."}if(o){if(!(r instanceof m.default))throw"Error: Expected opening bracket (after a function) but got something else.";o=!1}else r instanceof p.default&&(o=!0);var u=new b.default(s,r);e.push(u)}if(o)throw"Error: Expected opening bracket (after a function) but reached the end of the term";if(0<i)throw"Error: There is at least one opening bracket that does not have a closing bracket";return e}},{key:"createTreeByBrackets",value:function(t){for(var e=[],r=[],n=0,o=0;o<t.length;o++){var i=t[o];if(!(i instanceof b.default))throw'Error: Expected symbol node, but got "'+i.constructor.name+'"';if(i.symbol instanceof m.default)1<++n&&r.push(i);else if(i.symbol instanceof h.default)if(0===--n){var a=this.createTreeByBrackets(r);e.push(new l.default(a)),r=[]}else r.push(i);else 0===n?e.push(i):r.push(i)}return e}},{key:"transformTreeByFunctions",value:function(t){for(var e=[],r=null,n=0;n<t.length;n++){var o=t[n];if(o instanceof l.default){var i=this.transformTreeByFunctions(o.childNodes);if(null!==r){var a=new f.default(i,r);e.push(a),r=null}else o.childNodes=i,e.push(o)}else{if(!(o instanceof b.default))throw'Error: Expected array node or symbol node, got "'+o.constructor.name+'"';o.symbol instanceof p.default?r=o:e.push(o)}}return e}},{key:"checkGrammar",value:function(t){for(var e=0;e<t.length;e++){var r=t[e];if(r instanceof b.default){var n=r.symbol;if(n instanceof a.default){if(e+1>=t.length)throw"Error: Found operator that does not stand before an operand.";var o=e-1,i=null;if(0<=o&&(i=t[o])instanceof b.default&&(i.symbol instanceof a.default||i.symbol instanceof s.default)&&(i=null),null===i){if(!n.operatesUnary)throw"Error: Found operator in unary notation that is not unary.";r.setIsUnaryOperator(!0)}else if(!n.operatesBinary)throw console.log(n),"Error: Found operator in binary notation that is not binary."}}else this.checkGrammar(r.childNodes)}}}]),e}();r.default=i},{"../symbol/abstract/front.calculator.symbol.function.abstract":11,"../symbol/abstract/front.calculator.symbol.operator.abstract":12,"../symbol/brackets/front.calculator.symbol.closing.bracket":13,"../symbol/brackets/front.calculator.symbol.opening.bracket":14,"../symbol/front.calculator.symbol.number":17,"../symbol/front.calculator.symbol.separator":18,"./front.calculator.parser.token":3,"./node/front.calculator.parser.node.container":6,"./node/front.calculator.parser.node.function":7,"./node/front.calculator.parser.node.symbol":8}],3:[function(t,e,r){"use strict";function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(){function n(t,e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.type=t,this.value=e,this.position=r}return function(t,e,r){e&&o(t.prototype,e),r&&o(t,r)}(n,null,[{key:"TYPE_WORD",get:function(){return 1}},{key:"TYPE_CHAR",get:function(){return 2}},{key:"TYPE_NUMBER",get:function(){return 3}}]),n}();r.default=n},{}],4:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.parser.token"))&&n.__esModule?n:{default:n};function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.currentPosition=0}return function(t,e,r){e&&i(t.prototype,e),r&&i(t,r)}(e,[{key:"tokenize",value:function(){this.reset();for(var t=[],e=this.readToken();e;)t.push(e),e=this.readToken();return t}},{key:"readToken",value:function(){this.stepOverWhitespace();var t=this.readCurrent();if(null===t)return null;var e=null,r=null;return r=this.isLetter(t)?(e=this.readWord(),o.default.TYPE_WORD):this.isDigit(t)||this.isPeriod(t)?(e=this.readNumber(),o.default.TYPE_NUMBER):(e=this.readChar(),o.default.TYPE_CHAR),new o.default(r,e,this.currentPosition)}},{key:"isLetter",value:function(t){if(null===t)return!1;var e=t.charCodeAt(0);return 65<=e&&e<=90||97<=e&&e<=122}},{key:"isDigit",value:function(t){if(null===t)return!1;var e=t.charCodeAt(0);return 48<=e&&e<=57}},{key:"isPeriod",value:function(t){return"."===t}},{key:"isWhitespace",value:function(t){return 0<=[" ","\t","\n"].indexOf(t)}},{key:"stepOverWhitespace",value:function(){for(;this.isWhitespace(this.readCurrent());)this.readNext()}},{key:"readWord",value:function(){for(var t="",e=this.readCurrent();null!==e&&this.isLetter(e);)t+=e,e=this.readNext();return t}},{key:"readNumber",value:function(){for(var t="",e=!1,r=this.readCurrent();null!==r&&(this.isPeriod(r)||this.isDigit(r));){if(this.isPeriod(r)){if(e)throw"Error: A number cannot have more than one period";e=!0}t+=r,r=this.readNext()}return t}},{key:"readChar",value:function(){var t=this.readCurrent();return this.readNext(),t}},{key:"readCurrent",value:function(){var t=null;return this.hasCurrent()&&(t=this.input[this.currentPosition]),t}},{key:"readNext",value:function(){return this.currentPosition++,this.readCurrent()}},{key:"hasCurrent",value:function(){return this.currentPosition<this.input.length}},{key:"reset",value:function(){this.currentPosition=0}}]),e}();r.default=a},{"./front.calculator.parser.token":3}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}},{}],6:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.parser.node.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=s(this,l(r).call(this))).childNodes=null,e.setChildNodes(t),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(r,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(r,[{key:"setChildNodes",value:function(t){t.forEach(function(t){if(!(t instanceof o.default))throw"Expected AbstractNode, but got "+t.constructor.name}),this.childNodes=t}},{key:"size",value:function(){try{return this.childNodes.length}catch(t){return 0}}},{key:"isEmpty",value:function(){return!this.size()}}]),r}();r.default=u},{"./front.calculator.parser.node.abstract":5}],7:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.parser.node.container"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function n(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=a(this,s(n).call(this,t))).symbolNode=e,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,o.default),n}();r.default=f},{"./front.calculator.parser.node.container":6}],8:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(t("../../symbol/abstract/front.calculator.symbol.operator.abstract")),i=n(t("./front.calculator.parser.node.abstract"));function n(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(){function n(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=l(this,f(n).call(this))).token=t,r.symbol=e,r.isUnaryOperator=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(n,i.default),function(t,e,r){e&&s(t.prototype,e),r&&s(t,r)}(n,[{key:"setIsUnaryOperator",value:function(t){if(!(this.symbol instanceof o.default))throw"Error: Cannot mark node as unary operator, because symbol is not an operator but of type "+this.symbol.constructor.name;this.isUnaryOperator=t}}]),n}();r.default=c},{"../../symbol/abstract/front.calculator.symbol.operator.abstract":12,"./front.calculator.parser.node.abstract":5}],9:[function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.identifiers=[]}return function(t,e,r){e&&n(t.prototype,e),r&&n(t,r)}(t,[{key:"getIdentifiers",value:function(){var e=[];return this.identifiers.forEach(function(t){e.push(t.toLowerCase())}),e}}]),t}();r.default=o},{}],10:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).value=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"./front.calculator.symbol.abstract":9}],11:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(t,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(t,[{key:"execute",value:function(t){return 0}}]),t}();r.default=u},{"./front.calculator.symbol.abstract":9}],12:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).precedence=0,t.operatesUnary=!1,t.operatesBinary=!0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return 0}}]),e}();r.default=u},{"./front.calculator.symbol.abstract":9}],13:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=[")"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"../abstract/front.calculator.symbol.abstract":9}],14:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=["("],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"../abstract/front.calculator.symbol.abstract":9}],15:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.constant.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=["pi"],t.value=Math.PI,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"../abstract/front.calculator.symbol.constant.abstract":10}],16:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=w(t("./front.calculator.symbol.number")),o=w(t("./front.calculator.symbol.separator")),i=w(t("./brackets/front.calculator.symbol.opening.bracket")),a=w(t("./brackets/front.calculator.symbol.closing.bracket")),s=w(t("./constants/front.calculator.symbol.constant.pi")),l=w(t("./operators/front.calculator.symbol.operator.addition")),f=w(t("./operators/front.calculator.symbol.operator.division")),u=w(t("./operators/front.calculator.symbol.operator.exponentiation")),c=w(t("./operators/front.calculator.symbol.operator.modulo")),d=w(t("./operators/front.calculator.symbol.operator.multiplication")),m=w(t("./operators/front.calculator.symbol.operator.subtraction")),h=w(t("./functions/front.calculator.symbol.function.abs")),p=w(t("./functions/front.calculator.symbol.function.avg")),b=w(t("./functions/front.calculator.symbol.function.ceil")),_=w(t("./functions/front.calculator.symbol.function.floor")),g=w(t("./functions/front.calculator.symbol.function.max")),y=w(t("./functions/front.calculator.symbol.function.min")),v=w(t("./functions/front.calculator.symbol.function.round"));function w(t){return t&&t.__esModule?t:{default:t}}function C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var O=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.symbols={FrontCalculatorSymbolNumber:new n.default,FrontCalculatorSymbolSeparator:new o.default,FrontCalculatorSymbolOpeningBracket:new i.default,FrontCalculatorSymbolClosingBracket:new a.default,FrontCalculatorSymbolConstantPi:new s.default,FrontCalculatorSymbolOperatorAddition:new l.default,FrontCalculatorSymbolOperatorDivision:new f.default,FrontCalculatorSymbolOperatorExponentiation:new u.default,FrontCalculatorSymbolOperatorModulo:new c.default,FrontCalculatorSymbolOperatorMultiplication:new d.default,FrontCalculatorSymbolOperatorSubtraction:new m.default,FrontCalculatorSymbolFunctionAbs:new h.default,FrontCalculatorSymbolFunctionAvg:new p.default,FrontCalculatorSymbolFunctionCeil:new b.default,FrontCalculatorSymbolFunctionFloor:new _.default,FrontCalculatorSymbolFunctionMax:new g.default,FrontCalculatorSymbolFunctionMin:new y.default,FrontCalculatorSymbolFunctionRound:new v.default}}return function(t,e,r){e&&C(t.prototype,e),r&&C(t,r)}(t,[{key:"find",value:function(t){for(var e in t=t.toLowerCase(),this.symbols)if(this.symbols.hasOwnProperty(e)){var r=this.symbols[e];if(0<=r.getIdentifiers().indexOf(t))return r}return null}},{key:"findSubTypes",value:function(t){var e=[];for(var r in this.symbols)if(this.symbols.hasOwnProperty(r)){var n=this.symbols[r];n instanceof t&&e.push(n)}return e}}]),t}();r.default=O},{"./brackets/front.calculator.symbol.closing.bracket":13,"./brackets/front.calculator.symbol.opening.bracket":14,"./constants/front.calculator.symbol.constant.pi":15,"./front.calculator.symbol.number":17,"./front.calculator.symbol.separator":18,"./functions/front.calculator.symbol.function.abs":19,"./functions/front.calculator.symbol.function.avg":20,"./functions/front.calculator.symbol.function.ceil":21,"./functions/front.calculator.symbol.function.floor":22,"./functions/front.calculator.symbol.function.max":23,"./functions/front.calculator.symbol.function.min":24,"./functions/front.calculator.symbol.function.round":25,"./operators/front.calculator.symbol.operator.addition":26,"./operators/front.calculator.symbol.operator.division":27,"./operators/front.calculator.symbol.operator.exponentiation":28,"./operators/front.calculator.symbol.operator.modulo":29,"./operators/front.calculator.symbol.operator.multiplication":30,"./operators/front.calculator.symbol.operator.subtraction":31}],17:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,s(t).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(t,o.default),t}();r.default=f},{"./abstract/front.calculator.symbol.abstract":9}],18:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=[","],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"./abstract/front.calculator.symbol.abstract":9}],19:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["abs"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;var e=t[0];return Math.abs(e)}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],20:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["avg"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;for(var e=0,r=0;r<t.length;r++)e+=t[r];return e/t.length}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],21:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["ceil"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.ceil(t[0])}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],22:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["floor"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.floor(t[0])}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],23:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,f(e).call(this))).identifiers=["max"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,o.default),function(t,e,r){e&&s(t.prototype,e),r&&s(t,r)}(e,[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;return Math.max.apply(Math,a(t))}}]),e}();r.default=c},{"../abstract/front.calculator.symbol.function.abstract":11}],24:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,f(e).call(this))).identifiers=["min"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,o.default),function(t,e,r){e&&s(t.prototype,e),r&&s(t,r)}(e,[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;return Math.min.apply(Math,a(t))}}]),e}();r.default=c},{"../abstract/front.calculator.symbol.function.abstract":11}],25:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["round"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.round(t[0])}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],26:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["+"],t.precedence=100,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t+e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],27:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["/"],t.precedence=200,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t/e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],28:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["^"],t.precedence=300,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return Math.pow(t,e)}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],29:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["%"],t.precedence=200,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t%e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],30:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["*"],t.precedence=200,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t*e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],31:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["-"],t.precedence=100,t.operatesUnary=!0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t-e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}]},{},[1]),[].includes||(Array.prototype.includes=function(t,e){"use strict";var r=Object(this),n=parseInt(r.length)||0;if(0===n)return!1;var o,i=parseInt(e)||0;for(0<=i?o=i:(o=n+i)<0&&(o=0);o<n;){var a=r[o];if(t===a||t!=t&&a!=a)return!0;o++}return!1}),function(s,l,f){"use strict";var r="forminatorLoader",n={action:"",type:"",id:"",render_id:"",is_preview:"",preview_data:[],nonce:!1,last_submit_data:{},extra:{}};function e(t,e){this.element=t,this.$el=s(this.element),this.settings=s.extend({},n,e),this._defaults=n,this._name=r,this.frontInitCalled=!1,this.scriptsQue=[],this.frontOptions=null,this.leadFrontOptions=null,this.init()}s.extend(e.prototype,{init:function(){var t=f.location.search.replace(/(^\?)/,"").split("&").map(function(t){return this[(t=t.split("="))[0]]=t[1],this}.bind({}))[0];t.action=this.settings.action,t.type=this.settings.type,t.id=this.settings.id,t.render_id=this.settings.render_id,t.is_preview=this.settings.is_preview,t.preview_data=JSON.stringify(this.settings.preview_data),t.last_submit_data=this.settings.last_submit_data,t.extra=this.settings.extra,t.nonce=this.settings.nonce,void 0!==this.settings.has_lead&&(t.has_lead=this.settings.has_lead,t.leads_id=this.settings.leads_id),this.load_ajax(t)},load_ajax:function(i){var a=this;s.ajax({type:"POST",url:l.ForminatorFront.ajaxUrl,data:i,cache:!1,beforeSend:function(){s(f).trigger("before.load.forminator",i.id)},success:function(t){if(t.success){var e=t.data;if(s(f).trigger("response.success.load.forminator",i.id,t),!e.is_ajax_load)return!1;var r=[];if(void 0===e.pagination_config&&void 0!==e.options.pagination_config&&(r=e.options.pagination_config),r&&(l.Forminator_Cform_Paginations=l.Forminator_Cform_Paginations||[],l.Forminator_Cform_Paginations[i.id]=r),a.frontOptions=e.options||null,void 0===l.Forminator_Cform_Paginations&&a.frontOptions.pagination_config&&(l.Forminator_Cform_Paginations=l.Forminator_Cform_Paginations||[],l.Forminator_Cform_Paginations[i.id]=a.frontOptions.pagination_config),void 0!==e.lead_options&&(a.leadFrontOptions=e.lead_options||null,void 0===l.Forminator_Cform_Paginations&&a.leadFrontOptions.pagination_config&&(l.Forminator_Cform_Paginations=l.Forminator_Cform_Paginations||[],l.Forminator_Cform_Paginations[i.leads_id]=a.leadFrontOptions.pagination_config)),e.html){var n=e.style||null,o=e.script||null;a.render_html(e.html,n,o)}e.styles&&a.maybe_append_styles(e.styles),e.scripts&&a.maybe_append_scripts(e.scripts),!e.scripts&&a.frontOptions&&a.init_front()}else s(f).trigger("response.error.load.forminator",i.id,t)},error:function(){s(f).trigger("request.error.load.forminator",i.id)}}).always(function(){s(f).trigger("after.load.forminator",i.id)})},render_html:function(t,e,r){var n=this.settings.id,o=this.settings.render_id,i="",a=null;(a=this.$el.find(".forminator-response-message")).length&&(i=a.get(0).outerHTML),(a=this.$el.find(".forminator-poll-response-message")).length&&(i=a.get(0).outerHTML),this.$el.parent().hasClass("forminator-guttenberg")?this.$el.parent().html(t):this.$el.replaceWith(t),i&&(s("#forminator-module-"+n+"[data-forminator-render="+o+"] .forminator-response-message").replaceWith(i),s("#forminator-module-"+n+"[data-forminator-render="+o+"] .forminator-poll-response-message").replaceWith(i)),e&&(s("style#forminator-module-"+n).length&&s("style#forminator-module-"+n).remove(),s("body").append(e)),r&&s("body").append(r)},maybe_append_styles:function(t){for(var e in t)if(t.hasOwnProperty(e)&&!s("link#"+e).length){var r=s("<link>");r.attr("rel","stylesheet"),r.attr("id",e),r.attr("type","text/css"),r.attr("media","all"),r.attr("href",t[e].src),s("head").append(r)}},maybe_append_scripts:function(t){var e=[];for(var r in t)if(t.hasOwnProperty(r)){var n=t[r].on,o=t[r].load;if("window"===n){if(l[o])continue}else if("$"===n&&s.fn[o])continue;var i={};i.src=t[r].src,e.push(i),this.scriptsQue.push(r)}if(this.scriptsQue.length)for(var a in e)e.hasOwnProperty(a)&&this.load_script(e[a]);else this.init_front()},load_script:function(t){var e=this,r=f.createElement("script"),n=f.getElementsByTagName("body")[0];r.type="text/javascript",r.src=t.src,r.async=!0,r.defer=!0,r.onload=function(){e.script_on_load()},n.appendChild(r)},script_on_load:function(){this.scriptsQue.pop(),this.scriptsQue.length||this.init_front()},init_front:function(){if(!this.frontInitCalled){this.frontInitCalled=!0;var t=this.settings.id,e=this.settings.render_id,r=this.frontOptions||null,n=this.leadFrontOptions||null;if(r&&s("#forminator-module-"+t+"[data-forminator-render="+e+"]").forminatorFront(r),void 0!==this.settings.has_lead&&n){var o=this.settings.leads_id;s("#forminator-module-"+o+"[data-forminator-render="+e+"]").forminatorFront(n)}this.init_window_vars()}},init_window_vars:function(){if("undefined"!=typeof ForminatorValidationErrors){var t=jQuery(ForminatorValidationErrors.selector).data("forminatorFrontSubmit");void 0!==t&&t.show_messages(ForminatorValidationErrors.errors)}if("undefined"!=typeof ForminatorFormHider){var e=jQuery(ForminatorFormHider.selector).data("forminatorFront");void 0!==e&&e.hide()}}}),s.fn[r]=function(t){return this.each(function(){s.data(this,r)||s.data(this,r,new e(this,t))})}}(jQuery,window,document),function(c,a,n){"use strict";var r="forminatorFront",o={form_type:"custom-form",rules:{},messages:{},conditions:{},inline_validation:!1,chart_design:"bar",chart_options:{},forminator_fields:[],max_nested_formula:5,general_messages:{calculation_error:"Failed to calculate field.",payment_require_ssl_error:"SSL required to submit this form, please check your URL.",payment_require_amount_error:"PayPal amount must be greater than 0."},payment_require_ssl:!1};function e(t,e){this.element=t,this.$el=c(this.element),this.forminator_selector="#"+c(this.element).attr("id")+'[data-forminator-render="'+c(this.element).data("forminator-render")+'"]',this.forminator_loader_selector='div[data-forminator-render="'+c(this.element).data("forminator-render")+'"][data-form="'+c(this.element).attr("id")+'"]',this.settings=c.extend({},o,e),void 0!==this.settings.messages&&(this.settings.messages=this.maybeParseStringToJson(this.settings.messages,"object")),void 0!==this.settings.rules&&(this.settings.rules=this.maybeParseStringToJson(this.settings.rules,"object")),void 0!==this.settings.calendar&&(this.settings.calendar=this.maybeParseStringToJson(this.settings.calendar,"array")),this._defaults=o,this._name=r,this.form_id=0,this.template_type="",this.init()}c.extend(e.prototype,{init:function(){var t=this;switch(0<this.$el.find("input[name=form_id]").length&&(this.form_id=this.$el.find("input[name=form_id]").val()),0<this.$el.find("input[name=form_type]").length&&(this.template_type=this.$el.find("input[name=form_type]").val()),c(this.forminator_loader_selector).remove(),0===this.$el.closest(".wph-modal").length&&this.$el.show(),c(n).on("hustle:module:displayed",function(t,e){c(".wph-modal-active").find("form").css("display","")}),setTimeout(function(){c(".wph-modal-active").find("form").css("display","")},10),this.settings.form_type){case"custom-form":this.init_custom_form();break;case"poll":this.init_poll_form();break;case"quiz":this.init_quiz_form()}var e={form_type:t.settings.form_type,forminator_selector:t.forminator_selector,chart_design:t.settings.chart_design,chart_options:t.settings.chart_options,fadeout:t.settings.fadeout,fadeout_time:t.settings.fadeout_time,has_quiz_loader:t.settings.has_quiz_loader,has_loader:t.settings.has_loader,loader_label:t.settings.loader_label,resetEnabled:t.settings.is_reset_enabled,inline_validation:t.settings.inline_validation};"leads"!==this.template_type&&"quiz"!==this.settings.form_type||(e.form_placement=t.settings.form_placement,e.hasLeads=t.settings.hasLeads,e.leads_id=t.settings.leads_id,e.quiz_id=t.settings.quiz_id,e.skip_form=t.settings.skip_form),c(this.element).forminatorFrontSubmit(e),this.activate_field(),this.small_form()},init_custom_form:function(){var t=this;this.init_intlTelInput_validation(),this.settings.inline_validation&&c(this.element).forminatorFrontValidate({rules:t.settings.rules,messages:t.settings.messages}),c(this.element).forminatorFrontCalculate({forminatorFields:t.settings.forminator_fields,maxExpand:t.settings.max_nested_formula,generalMessages:t.settings.general_messages,memoizeTime:t.settings.calcs_memoize_time||300}),c(this.element).forminatorFrontMergeTags({forminatorFields:t.settings.forminator_fields}),this.init_pagination();var e=c(this.element).find('div[data-is-payment="true"], input[data-is-payment="true"]').first();if(e.length){var r=e.data("paymentType");"stripe"===r&&c(this.element).forminatorFrontPayment({type:r,paymentEl:e,paymentRequireSsl:t.settings.payment_require_ssl,generalMessages:t.settings.general_messages,fadeout_time:t.settings.fadeout_time,has_loader:t.settings.has_loader,loader_label:t.settings.loader_label}),"paypal"===r&&c(this.element).forminatorFrontPayPal({type:r,paymentEl:this.settings.paypal_config,paymentRequireSsl:t.settings.payment_require_ssl,generalMessages:t.settings.general_messages,has_loader:t.settings.has_loader,loader_label:t.settings.loader_label})}c(this.element).forminatorFrontCondition(this.settings.conditions,this.settings.calendar),this.init_fui(),c(this.element).find(".forminator-datepicker").forminatorFrontDatePicker(this.settings.calendar),this.responsive_captcha(),this.field_counter(),this.field_number(),this.field_time(),c(this.element).find(".forminator-multi-upload").forminatorFrontMultiFile(this.$el),this.upload_field(),c(a).on("resize",function(){t.responsive_captcha()}),void 0!==t.settings.hasLeads&&("beginning"===t.settings.form_placement&&c("#forminator-module-"+this.settings.quiz_id).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),"end"===t.settings.form_placement&&c(this.element).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}))},init_poll_form:function(){var i=this,a=this.$el.find("fieldset"),t=this.$el.find(".forminator-radio input"),s=this.$el.find(".forminator-input"),l=s.closest(".forminator-field");FUI.inputStates(s),t.on("click",function(){l.addClass("forminator-hidden"),l.attr("aria-hidden","true"),s.removeAttr("tabindex"),s.attr("name","");var t=this.checked,e=c(this).attr("id"),r=c(this).attr("name");if(a.removeClass("forminator-has_error"),i.$el.find(".forminator-input#"+e+"-extra").length){var n=i.$el.find(".forminator-input#"+e+"-extra"),o=n.closest(".forminator-field");t?(n.attr("name",r+"-extra"),o.removeClass("forminator-hidden"),o.removeAttr("aria-hidden"),n.attr("tabindex","-1"),n.focus()):(o.addClass("forminator-hidden"),o.attr("aria-hidden","true"),n.removeAttr("tabindex"))}return!0}),this.$el.hasClass("forminator-poll-disabled")&&this.$el.find(".forminator-radio").each(function(){c(this).addClass("forminator-disabled"),c(this).find("input").attr("disabled",!0)})},init_quiz_form:function(){var n=this,t=void 0!==n.settings.form_placement?n.settings.form_placement:"",e=void 0!==n.settings.quiz_id?n.settings.quiz_id:0;this.$el.find(".forminator-button").each(function(){c(this).prop("disabled",!0)}),this.$el.find(".forminator-answer input").each(function(){c(this).attr("checked",!1)}),this.$el.find(".forminator-result--info button").on("click",function(){location.reload()}),"end"!==t&&this.$el.find(".forminator-submit-rightaway").click(function(){n.$el.submit(),c(this).closest(".forminator-question").find(".forminator-submit-rightaway").addClass("forminator-has-been-disabled").attr("disabled","disabled")}),n.settings.hasLeads&&("beginning"===t&&n.$el.css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),"end"===t&&(n.$el.closest("div").find("#forminator-module-"+n.settings.leads_id).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),c("#forminator-quiz-leads-"+e+" .forminator-lead-form-skip").hide())),this.$el.on("click",".forminator-social--icon a",function(t){t.preventDefault();var e=c(this).data("social"),r=c(this).closest(".forminator-social--icons").data("url"),n=c(this).closest(".forminator-social--icons").data("message"),o={facebook:"https://www.facebook.com/sharer/sharer.php?u="+r+"&t="+(n=encodeURIComponent(n)),twitter:"https://twitter.com/intent/tweet?&url="+r+"&text="+n,google:"https://plus.google.com/share?url="+r,linkedin:"https://www.linkedin.com/shareArticle?mini=true&url="+r+"&title="+n};if(void 0!==o[e]){var i=a.open(o[e],e,"height="+c(a).height()+",width="+c(a).width());return a.focus&&i.focus(),!1}}),this.$el.on("change",".forminator-answer input",function(t){var e=0,r=n.$el.find(".forminator-question").length;n.$el.find(".forminator-answer input").each(function(){c(this).prop("checked")&&e++,e===r&&n.$el.find(".forminator-button").each(function(){c(this).prop("disabled",!1)})})})},small_form:function(){var t=c(this.element),e=t.width();if(783<Math.max(n.documentElement.clientWidth,a.innerWidth||0))if(t.hasClass("forminator-size--small"))480<e&&t.removeClass("forminator-size--small");else{var r=t.closest(".hustle-content");e<=480&&!r.length&&t.addClass("forminator-size--small")}},init_intlTelInput_validation:function(){var t=c(this.element),o=t.is(".forminator-design--material");t.find(".forminator-field--phone").each(function(){var t=c(this).data("national_mode"),e=c(this).data("country"),r=c(this).data("validation");if(void 0!==t){var n={nationalMode:"enabled"===t,initialCountry:void 0!==e?e:"us",utilsScript:a.ForminatorFront.cform.intlTelInput_utils_script};void 0!==r&&"standard"===r&&(n.allowDropdown=!1),c(this).intlTelInput(n),o?c(this).closest(".forminator-field").find("div.intl-tel-input").addClass("forminator-input-with-phone"):c(this).closest(".forminator-field").find("div.intl-tel-input").addClass("forminator-phone")}})},init_fui:function(){var t=c(this.element),e=t.find(".forminator-input"),r=t.find(".forminator-textarea"),n=t.find(".forminator-select"),o=t.find(".forminator-select2"),i=t.find(".forminator-multiselect"),a=t.find(".forminator-stripe-element"),s="default"===t.attr("data-design"),l="bold"===t.attr("data-design"),f="flat"===t.attr("data-design"),u="material"===t.attr("data-design");e.length&&e.each(function(){FUI.inputStates(this)}),r.length&&r.each(function(){FUI.textareaStates(this)}),o.length&&FUI.select2(),(s||l||f||u)&&n.length&&n.each(function(){FUI.select(this)}),i.length&&FUI.multiSelectStates(i),t.hasClass("forminator-design--material")&&(e.length&&e.each(function(){FUI.inputMaterial(this)}),r.length&&r.each(function(){FUI.textareaMaterial(this)}),a.length&&a.each(function(){var t=c(this).closest(".forminator-field"),e=t.find(".forminator-label");e.length&&(t.addClass("forminator-stripe-floating"),e.addClass("forminator-floating--input"))}))},responsive_captcha:function(){c(this.element).find(".forminator-g-recaptcha").each(function(){if(c(this).is(":visible")){var t=c(this).parent().width(),e=1;t<302&&(e=t/302),c(this).css("transform","scale("+e+")"),c(this).css("-webkit-transform","scale("+e+")"),c(this).css("transform-origin","0 0"),c(this).css("-webkit-transform-origin","0 0")}})},init_pagination:function(){var t=c(this.element).find(".forminator-pagination").length,e=a.location.hash,r=!1,n=0;0<t&&(void 0!==e&&0<=e.indexOf("step-")&&(r=!0,n=e.substr(6,8)),c(this.element).forminatorFrontPagination({totalSteps:t,hashStep:r,step:n,inline_validation:this.settings.inline_validation}))},activate_field:function(){var t=c(this.element),e=t.find(".forminator-input"),r=t.find(".forminator-textarea");function n(t){var n=c(t),o=n.val().trim(),i=n.closest(".forminator-field"),a=n.attr("data-field"),s=n.closest(".forminator-timepicker").parent(),l=i.find(".forminator-error-message");n.on("load change keyup keydown",function(t){if(void 0!==a&&!1!==a){if("hours"===n.data("field")){var e=s.find('.forminator-error-message[data-error-field="hours"]');""!==o&&0!==e.length&&e.remove()}if("minutes"===n.data("field")){var r=s.find('.forminator-error-message[data-error-field="minutes"]');""!==o&&0!==r.length&&r.remove()}}else""!==o&&l.text()&&(l.remove(),i.removeClass("forminator-has_error"));t.stopPropagation()})}function o(){t.find(".select2-container").hasClass("select2-container--open")?setTimeout(o,300):t.find(".select2-container").closest(".forminator-field").removeClass("forminator-is_active")}e.length&&e.each(function(){n(this)}),r.length&&r.each(function(){n(this)}),t.find(".forminator-select + .select2, .forminator-time + .select2").each(function(){var e=c(this);e.mouseover(function(t){t.stopPropagation(),c(this).closest(".forminator-field").addClass("forminator-is_hover")}).mouseout(function(t){t.stopPropagation(),c(this).closest(".forminator-field").removeClass("forminator-is_hover")}),e.on("click",function(t){t.stopPropagation(),o(),e.hasClass("select2-container--open")?c(this).closest(".forminator-field").addClass("forminator-is_active"):c(this).closest(".forminator-field").removeClass("forminator-is_active")})})},field_counter:function(){c(this.element).find(".forminator-input, .forminator-textarea").each(function(){var t=c(this),r=0;t.on("change keyup keydown",function(t){t.stopPropagation();var e=c(this).closest(".forminator-col").find(".forminator-description span");e.length&&e.data("limit")&&("words"!==e.data("type")?r=c(this).val().length:(r=c(this).val().trim().split(/\s+/).length,c(this).val().trim().split(/\s+/).length>=e.data("limit")&&32===t.which&&t.preventDefault()),e.html(r+" / "+e.data("limit")))})})},field_number:function(){var t=c(this.element);t.find("input[type=number]").each(function(){c(this).keypress(function(t){var e,r=[44,45,46],n=t.which;for(e=48;e<58;e++)r.push(e);0<=r.indexOf(n)||t.preventDefault()})}),t.find(".forminator-currency").each(function(){var e=c(this).data("decimals");c(this).change(function(t){this.value=parseFloat(this.value).toFixed(e)})})},field_time:function(){c(".forminator-input-time").on("input",function(t){var e=c(this),r=e.val();r&&2<=r.length&&e.val(r.substr(0,2))})},material_field:function(){},toggle_file_input:function(){c(this.element).find(".forminator-file-upload").each(function(){var t=c(this),e=t.find("input"),r=t.find(".forminator-button-delete");""!==e.val()?r.show():r.hide()})},upload_field:function(){var n=this,r=c(this.element);this.toggle_file_input(),r.find(".forminator-button-delete").on("click",function(t){t.preventDefault();var e=c(this),r=e.siblings("input"),n=e.closest(".forminator-file-upload").find("> span");r.val(""),n.html(n.data("empty-text")),e.hide()}),r.find(".forminator-input-file, .forminator-input-file-required").change(function(){var t=c(this).closest(".forminator-file-upload").find("> span"),e=c(this).val(),r=e.length?e.split("\\").pop():"";t.text(r),n.toggle_file_input()}),r.find(".forminator-button-upload").on("click",function(t){t.preventDefault();var e=c(this).attr("data-id");r.find("input#"+e).trigger("click")}),r.find(".forminator-input-file, .forminator-input-file-required").on("change",function(t){t.preventDefault();var e=c(this)[0].files.length,r=c(this).find(".forminator-button-delete");0===e?r.hide():r.show()})},renderCaptcha:function(t){var e=this;if(void 0===c(t).data("forminator-recapchta-widget")){var r=c(t).data("size"),n={sitekey:c(t).data("sitekey"),theme:c(t).data("theme"),size:r};if("invisible"===r&&(n.badge="inline",n.callback=function(t){c(e.element).trigger("submit.frontSubmit")}),""!==n.sitekey){var o=a.grecaptcha.render(t,n);c(t).data("forminator-recapchta-widget",o),this.responsive_captcha()}}},hide:function(){this.$el.hide()},maybeParseStringToJson:function(t,e){var r={};if("object"==typeof t)return t;if("object"===e)t="{"+t.trim()+"}";else{if("array"!==e)return{};t="["+t.trim()+"]"}try{t=t.replace(/\,(?!\s*?[\{\[\"\'\w])/g,""),r=JSON.parse(t)}catch(t){console.error(t.message),"object"===e?r={}:"array"===e&&(r=[])}return r}}),c.fn[r]=function(t){return this.each(function(){c.data(this,r)||c.data(this,r,new e(this,t))})},c(n).on("tinymce-editor-init",function(t,r){var n=0;r.on("change",function(){0===r.id.indexOf("forminator-wp-editor-")&&r.save();var t=r.id,e=c("#"+t).closest(".forminator-col").find(".forminator-description span");e.length&&e.data("limit")&&(n="words"!==e.data("type")?r.getContent({format:"text"}).length:r.getContent({format:"text"}).split(/\s+/).length,e.html(n+" / "+e.data("limit")))})})}(jQuery,window,document);var forminator_render_captcha=function(){jQuery(".forminator-g-recaptcha").each(function(){var t=jQuery(this).closest("form");if(0<t.length){var e=t.data("forminatorFront");void 0!==e&&e.renderCaptcha(jQuery(this)[0])}})},forminatorDateUtil={month_number:function(t){if(t.constructor===Number)return t;var e=NaN;if(t.constructor===String){t=t.toLowerCase();var r=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"].indexOf(t);-1===r&&(r=["january","february","march","april","may","june","july","august","september","october","november","december"].indexOf(t)),e=-1===r?NaN:r}return e},convert:function(t){return t.constructor===Date?t:t.constructor===Array?new Date(t[0],this.month_number(t[1]),t[2]):t.constructor===Number?new Date(t):t.constructor===String?new Date(t):"object"==typeof t?new Date(t.year,this.month_number(t.month),t.date):NaN},compare:function(t,e){return isFinite(t=this.convert(t).valueOf())&&isFinite(e=this.convert(e).valueOf())?(e<t)-(t<e):NaN},inRange:function(t,e,r){return isFinite(t=this.convert(t).valueOf())&&isFinite(e=this.convert(e).valueOf())&&isFinite(r=this.convert(r).valueOf())?e<=t&&t<=r:NaN},diffInDays:function(t,e){if(t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth)return NaN;var r=e.getTime(),n=t.getTime();return parseFloat((r-n)/864e5)},diffInWeeks:function(t,e){if(t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth)return NaN;var r=e.getTime(),n=t.getTime();return parseInt((r-n)/6048e5)},diffInMonths:function(t,e){if(t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth)return NaN;var r=t.getFullYear(),n=e.getFullYear(),o=t.getMonth();return e.getMonth()+12*n-(o+12*r)},diffInYears:function(t,e){return t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth?NaN:e.getFullYear()-t.getFullYear()}};!function(s,i,t,d){"use strict";var r="forminatorFrontCalculate",n={forminatorFields:[],maxExpand:5,generalMessages:{}};function e(t,e){this.element=t,this.$el=s(this.element),this.settings=s.extend({},n,e),this._defaults=n,this._name=r,this.calculationFields=[],this.currentExpand=0,this.triggerInputs=[],this.isError=!1,this.init()}s.extend(e.prototype,{init:function(){var e=this,t=this.$el.find("input.forminator-calculation");if(0<t.length){t.each(function(){if(e.calculationFields.push({$input:s(this),formula:s(this).data("formula"),name:s(this).attr("name"),isHidden:s(this).data("isHidden"),precision:s(this).data("precision")}),s(this).data("isHidden")){s(this).closest(".forminator-col").addClass("forminator-hidden forminator-hidden-option");var t=s(this).closest(".forminator-row");0===t.find("> .forminator-col:not(.forminator-hidden)").length&&t.addClass("forminator-hidden forminator-hidden-option")}});var r=this.settings.memoizeTime||300;this.debouncedReCalculateAll=this.debounce(this.recalculateAll,1e3),this.memoizeDebounceRender=this.memoize(this.recalculate,r),this.$el.on("forminator:field:condition:toggled",function(t){e.debouncedReCalculateAll()}),this.parseCalcFieldsFormula(),this.attachEventToTriggeringFields(),this.debouncedReCalculateAll()}},memoize:function(e,r){var n,o={},i=Array.prototype.slice;return function(){var t=i.call(arguments);return clearTimeout(n),n=setTimeout(function(){n=null,o={}},r),t[0].name in o?o[t[0].name]:o[t[0].name]=e.apply(this,t)}},debounce:function(n,o,i){var a;return function(){var t=this,e=arguments,r=i&&!a;clearTimeout(a),a=setTimeout(function(){a=null,i||n.apply(t,e)},o),r&&n.apply(t,e)}},parseCalcFieldsFormula:function(){for(var t=0;t<this.calculationFields.length;t++){var e=this.calculationFields[t],r=e.formula;this.currentExpand=0,e.formula=r,this.calculationFields[t]=e}},maybeExpandCalculationFieldOnFormula:function(t){if(this.currentExpand>this.settings.maxExpand)return t;for(var e,r=this.settings.forminatorFields.join("|"),n=new RegExp("\\{("+("("+r+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g"),o=t,i=!1;e=n.exec(t);){var a=e[0],s=e[1],l=e[2],f=a;a!==d&&s!==d&&l!==d&&("calculation"===l&&(i=!0,f="("+this.$el.find('input[name="'+s+'"]').data("formula")+")"),o=o.replace(a,f))}return i&&(this.currentExpand++,o=this.maybeExpandCalculationFieldOnFormula(o)),o},findTriggerInputs:function(t){for(var e,r=t.formula,n=this.settings.forminatorFields.join("|"),o=new RegExp("\\{("+("("+n+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g");e=o.exec(r);){var i=e[0],a=e[1],s=e[2];if(i!==d&&a!==d&&s!==d){var l=this.get_form_field(a);if(l.length){var f=l.data("calcFields");f===d&&(f=[]);for(var u=!1,c=0;c<f.length;c++){if(f[c].name===t.name){u=!0;break}}u||f.push(t),l.data("calcFields",f),this.triggerInputs.push(l)}}}},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},attachEventToTriggeringFields:function(){for(var n=this,t=0;t<this.calculationFields.length;t++){var e=this.calculationFields[t];this.findTriggerInputs(e)}if(0<this.triggerInputs.length)for(var r=[],o=0;o<this.triggerInputs.length;o++){var i=this.triggerInputs[o],a=i.attr("id");r.indexOf(a)<0&&(i.on("change.forminatorFrontCalculate, blur",function(){var t=s(this).data("calcFields");if(t!==d&&0<t.length)for(var e=0;e<t.length;e++){var r=t[e];n.field_is_checkbox(s(this))||n.field_is_radio(s(this))?n.recalculate(r):n.memoizeDebounceRender(r)}}),r.push(a))}},recalculateAll:function(){for(var t=0;t<this.calculationFields.length;t++)this.recalculate(this.calculationFields[t])},recalculate:function(t){var e=t.$input;this.hideErrorMessage(e);var r=this.maybeReplaceFieldOnFormula(t.formula),n=0,o=new i.forminatorCalculator(r);try{if(n=o.calculate(),!isFinite(n))throw"Infinity calculation result.";n=parseFloat(n).toFixed(t.precision)}catch(t){this.isError=!0,console.log(t),this.displayErrorMessage(e,this.settings.generalMessages.calculation_error),n=0}e.val()!==String(n)&&e.val(n).trigger("change")},maybeReplaceFieldOnFormula:function(t){for(var e,r=this.settings.forminatorFields.join("|"),n=new RegExp("\\{("+("("+r+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g"),o=t;e=n.exec(t);){var i=e[0],a=e[1],s=e[2],l=i;if(i!==d&&a!==d&&s!==d){if(this.is_hidden(a)){l=0;var f=i.replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),u=new RegExp("([\\+\\-\\*\\/]?)[^\\+\\-\\*\\/\\(]*"+f+"[^\\)\\+\\-\\*\\/]*([\\+\\-\\*\\/]?)").exec(t);u&&("*"!==u[1]&&"/"!==u[1]&&"*"!==u[2]&&"/"!==u[2]||(l=1))}else{if("calculation"===s){var c=this.get_calculation_field(a);c&&this.memoizeDebounceRender(c)}l=this.get_field_value(a)}l="("+l+")",o=o.replace(i,l)}}return o},get_calculation_field:function(t){for(var e=0;e<this.calculationFields.length;e++)if(this.calculationFields[e].name===t)return this.calculationFields[e];return!1},is_hidden:function(t){var e=this.get_form_field(t).closest(".forminator-col"),r=e.closest(".forminator-row");return!r.hasClass("forminator-hidden-option")&&!e.hasClass("forminator-hidden-option")&&!(!r.hasClass("forminator-hidden")&&!e.hasClass("forminator-hidden"))},get_field_value:function(t){var e=this.get_form_field(t),r=0,n=0,o=null;return this.field_is_radio(e)?(o=e.filter(":checked")).length&&(n=o.data("calculation"))!==d&&(r=Number(n)):this.field_is_checkbox(e)?e.each(function(){s(this).is(":checked")&&(n=s(this).data("calculation"))!==d&&(r+=Number(n))}):this.field_is_select(e)?(o=e.find("option").filter(":selected")).length&&(n=o.data("calculation"))!==d&&(r=Number(n)):r=Number(e.val()),isNaN(r)?0:r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===s(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===s(this).attr("type"))return!(e=!0)}),e},field_is_select:function(t){return t.is("select")},displayErrorMessage:function(t,e){var r=t.closest(".forminator-field--inner");0===r.length&&(r=t.closest(".forminator-field"));var n=r.find(".forminator-error-message");0===n.length&&(r.append('<span class="forminator-error-message" aria-hidden="true"></span>'),n=r.find(".forminator-error-message")),t.attr("aria-invalid","true"),n.html(e),r.addClass("forminator-has_error")},hideErrorMessage:function(t){var e=t.closest(".forminator-field--inner");0===e.length&&(e=t.closest(".forminator-field"));var r=e.find(".forminator-error-message");t.removeAttr("aria-invalid"),r.remove(),e.removeClass("forminator-has_error")}}),s.fn[r]=function(t){return this.each(function(){s.data(this,r)||s.data(this,r,new e(this,t))})}}(jQuery,window,document),function(o,t,e,f){"use strict";var r="forminatorFrontMergeTags",n={forminatorFields:[]};function i(t,e){this.element=t,this.$el=o(this.element),this.settings=o.extend({},n,e),this._defaults=n,this._name=r,this.formFields=[],this.init()}o.extend(i.prototype,{init:function(){var t=this,e=this.$el.find(".forminator-merge-tags");0<e.length&&e.each(function(){t.formFields.push({$input:o(this),value:o(this).html()})}),this.replaceAll(),this.attachEvents()},attachEvents:function(){var t=this;this.$el.find("input.forminator-input, .forminator-select, .forminator-checkbox, .forminator-radio, .forminator-input-file, .forminator-select2").each(function(){o(this).on("change",function(){setTimeout(function(){t.replaceAll()},300)})})},replaceAll:function(){for(var t=0;t<this.formFields.length;t++)this.replace(this.formFields[t])},replace:function(t){var e=t.$input,r=this.maybeReplaceValue(t.value);e.html(r)},maybeReplaceValue:function(t){for(var e,r=this.settings.forminatorFields.join("|"),n=new RegExp("\\{("+("("+r+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g"),o=t;e=n.exec(t);){var i=e[0],a=i.replace("{","").replace("}",""),s=e[2],l=i;i!==f&&a!==f&&s!==f&&(l=l=this.get_field_value(a),o=o.replace(i,l))}return o},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},is_calculation:function(t){return!!this.get_form_field(t).hasClass("forminator-calculation")},get_field_value:function(t){var e=this.get_form_field(t),r="",n=null;if(this.is_hidden(t)&&!this.is_calculation(t))return"";if(this.is_calculation(t)&&(!this.get_form_field(t).closest(".forminator-col").closest(".forminator-row").hasClass("forminator-hidden-option")&&this.is_hidden(t)))return"";return this.field_is_radio(e)?(n=e.filter(":checked")).length&&(r=n.val()):this.field_is_checkbox(e)?e.each(function(){o(this).is(":checked")&&(""!==r&&(r+=", "),r+=o(this).val())}):this.field_is_select(e)?(n=e.find("option").filter(":selected")).length&&(r=n.val()):r=this.field_is_upload(e)?e.val().split("\\").pop():e.val(),r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===o(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===o(this).attr("type"))return!(e=!0)}),e},field_is_upload:function(t){return"file"===t.attr("type")},field_is_select:function(t){return t.is("select")},is_hidden:function(t){var e=this.get_form_field(t).closest(".forminator-col"),r=e.closest(".forminator-row");return!(!r.hasClass("forminator-hidden-option")&&!r.hasClass("forminator-hidden"))||!!e.hasClass("forminator-hidden")}}),o.fn[r]=function(t){return this.each(function(){o.data(this,r)||o.data(this,r,new i(this,t))})}}(jQuery,window,document),function(c,a,t,u){"use strict";Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){if(t===u||null===t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==u&&null!==o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var l=i[a],f=Object.getOwnPropertyDescriptor(o,l);f!==u&&f.enumerable&&(r[l]=o[l])}}return r}});var r="forminatorFrontPayment",n={type:"stripe",paymentEl:null,paymentRequireSsl:!1,generalMessages:{}};function e(t,e){this.element=t,this.$el=c(this.element),this.settings=c.extend({},n,e),this._defaults=n,this._name=r,this._stripeData=null,this._stripe=null,this._cardElement=null,this._stripeToken=null,this._beforeSubmitCallback=null,this._form=null,this._paymentIntent=null,this.init()}c.extend(e.prototype,{init:function(){if(this.settings.paymentEl){var n=this;this._stripeData=this.settings.paymentEl.data(),this.mountCardField(),c(this.element).on("payment.before.submit.forminator",function(t,e,r){n._form=n.getForm(t),n._beforeSubmitCallback=r,n.validateStripe(t,e)}),this.$el.find("input.forminator-input, .forminator-select, .forminator-checkbox, .forminator-radio, .forminator-select2").each(function(){c(this).on("change",function(t){n.mapZip(t)})})}},validateStripe:function(e,r){var n=this;this._stripe.createToken(this._cardElement).then(function(t){t.error?n.showCardError(t.error.message,!0):(n.hideCardError(),n.updateAmount(e,r))})},isValid:function(e){var r=this;this._stripe.createToken(this._cardElement).then(function(t){t.error?r.showCardError(t.error.message,e):r.hideCardError()})},getForm:function(t){var e=c(t.target);return e.hasClass("forminator-custom-form")||(e=e.closets("form.forminator-custom-form")),e},updateAmount:function(n,o){n.preventDefault();var i=this,t=o;t.append("action","forminator_update_payment_amount"),t.append("paymentid",this.getStripeData("paymentid")),c.ajax({type:"POST",url:a.ForminatorFront.ajaxUrl,data:t,cache:!1,contentType:!1,processData:!1,beforeSend:function(){if(void 0!==i.settings.has_loader&&i.settings.has_loader){i._form.addClass("forminator-fields-disabled");var t=i._form.find(".forminator-response-message");t.html("<p>"+i.settings.loader_label+"</p>"),i.focus_to_element(t),t.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show")}i._form.find("button").attr("disabled",!0)},success:function(t){if(!0===t.success)void 0!==t.data&&void 0!==t.data.paymentid?(i.$el.find("#forminator-stripe-paymentid").val(t.data.paymentid),i._stripeData.paymentid=t.data.paymentid,i.handleCardPayment(t,n,o)):i.show_error("Invalid Payment Intent ID");else{i.show_error(t.data.message),t.data.errors.length&&i.show_messages(t.data.errors);var e=i._form.find(".forminator-g-recaptcha");if(e.length){var r=(e=c(e.get(0))).data("forminator-recapchta-widget");"invisible"===e.data("size")&&a.grecaptcha.reset(r)}}},error:function(t){var e=400===t.status?a.ForminatorFront.cform.upload_error:a.ForminatorFront.cform.error;i.show_error(e)}})},show_error:function(t){var e=this._form.find(".forminator-response-message");this._form.find("button").removeAttr("disabled"),e.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-loading").addClass("forminator-error forminator-show"),e.html("<p>"+t+"</p>"),this.focus_to_element(e),this.enable_form()},enable_form:function(){if(void 0!==this.settings.has_loader&&this.settings.has_loader){var t=this._form.find(".forminator-response-message");this._form.removeClass("forminator-fields-disabled"),t.removeClass("forminator-loading")}},mapZip:function(t){var e=this.getStripeData("veifyZip"),r=this.getStripeData("zipField"),n=c(t.currentTarget).attr("name");if(e&&""!==r&&n===r&&t.originalEvent!==u){var o=this.get_field_value(r);this._cardElement.update({value:{postalCode:o}})}},focus_to_element:function(t,e){e=(e=e||!1)&&this.settings.fadeout;var r=this.settings.fadeout_time;t.show(),c("html,body").animate({scrollTop:t.offset().top-(c(a).height()-t.outerHeight(!0))/2},500,function(){t.attr("tabindex")||t.attr("tabindex",-1),t.focus(),e&&t.show().delay(r).fadeOut("slow")})},show_messages:function(t){var l=this,f=l.$el.data("forminatorFrontCondition");if(void 0!==f){this.$el.find(".forminator-error-message").remove();var u=0;t.forEach(function(t){var e=Object.keys(t),r=Object.values(t),n=f.get_form_field(e);if(n.length){if(0===u&&(l.$el.trigger("forminator.front.pagination.focus.input",[n]),l.focus_to_element(n)),c(n).hasClass("forminator-input-time")){var o=c(n).closest(".forminator-field:not(.forminator-field--inner)"),i=o.children(".forminator-error-message");0===i.length&&(o.append('<span class="forminator-error-message" aria-hidden="true"></span>'),i=o.children(".forminator-error-message")),i.html(r)}var a=c(n).closest(".forminator-field--inner");0===a.length&&0===(a=c(n).closest(".forminator-field")).length&&1<(a=c(n).find(".forminator-field")).length&&(a=a.first());var s=a.find(".forminator-error-message");0===s.length&&(a.append('<span class="forminator-error-message" aria-hidden="true"></span>'),s=a.find(".forminator-error-message")),c(n).attr("aria-invalid","true"),s.html(r),a.addClass("forminator-has_error"),u++}})}return this},getBillingData:function(t){if(!this.getStripeData("billing"))return{};var e=this.getStripeData("billingName"),r=this.getStripeData("billingEmail"),n=this.getStripeData("billingAddress"),o={address:{}};if(e){var i=this.get_field_value(e);if(!i)i=(this.get_field_value(e+"-first-name")||"")+" "+(this.get_field_value(e+"-last-name")||"");i&&(o.name=i)}if(r){var a=this.get_field_value(r)||"";a&&(o.email=a)}var s=this.get_field_value(n+"-street_address")||"";s&&(o.address.line1=s);var l=this.get_field_value(n+"-address_line")||"";l&&(o.address.line2=l);var f=this.get_field_value(n+"-city")||"";f&&(o.address.city=f);var u=this.get_field_value(n+"-state")||"";u&&(o.address.state=u);var c=this.get_form_field(n+"-country").find(":selected").data("country-code");c&&(o.address.country=c);var d=this.get_field_value(n+"-zip")||"";return d&&(o.address.postal_code=d),{payment_method_data:{billing_details:o}}},handleCardPayment:function(t,e,r){var n=this,o=t.data.paymentsecret||!1;if(null===this._paymentIntent||void 0===this._paymentIntent.paymentIntent||"succeeded"!==this._paymentIntent.paymentIntent.status){var i=this.getStripeData("receipt"),a=this.getStripeData("receiptEmail"),s={};i&&a&&(s={receipt_email:this.get_field_value(a)||""}),this._stripe.handleCardPayment(o,this._cardElement,Object.assign(s,this.getBillingData())).then(function(t){t.error?n.show_error(t.error.message):(n._paymentIntent=t,n._beforeSubmitCallback&&n._beforeSubmitCallback.call())})}else n._beforeSubmitCallback&&n._beforeSubmitCallback.call()},mountCardField:function(){var t=this.getStripeData("key"),e=this.getStripeData("cardIcon"),r=this.getStripeData("veifyZip"),n=(this.getStripeData("zipField"),this.getStripeData("fieldId"));this._stripe=Stripe(t,{locale:this.getStripeData("language")});var o={};r?o.value={postalCode:""}:o.hidePostalCode=!0;var i={},a=this.getStripeData("fontFamily"),s=this.getStripeData("customFonts");a&&s&&(i.fonts=[{cssSrc:"https://fonts.googleapis.com/css?family="+a}]);var l=this._stripe.elements(i);this._cardElement=l.create("card",Object.assign({classes:{base:this.getStripeData("baseClass"),complete:this.getStripeData("completeClass"),empty:this.getStripeData("emptyClass"),focus:this.getStripeData("focusedClass"),invalid:this.getStripeData("invalidClass"),webkitAutofill:this.getStripeData("autofilledClass")},style:{base:{iconColor:this.getStripeData("iconColor"),color:this.getStripeData("fontColor"),lineHeight:this.getStripeData("lineHeight"),fontWeight:this.getStripeData("fontWeight"),fontFamily:this.getStripeData("fontFamily"),fontSmoothing:"antialiased",fontSize:this.getStripeData("fontSize"),"::placeholder":{color:this.getStripeData("placeholder")},":hover":{iconColor:this.getStripeData("iconColorHover")}},invalid:{iconColor:this.getStripeData("iconColorError"),color:this.getStripeData("fontColorError")}},iconStyle:"solid",hideIcon:!e},o)),this._cardElement.mount("#card-element-"+n),this.validateCard()},validateCard:function(){var e=this;this._cardElement.on("change",function(t){e.$el.find(".forminator-stripe-element").hasClass("StripeElement--empty")?e.$el.find(".forminator-stripe-element").closest(".forminator-field").removeClass("forminator-is_filled"):e.$el.find(".forminator-stripe-element").closest(".forminator-field").addClass("forminator-is_filled"),e.$el.find(".forminator-stripe-element").hasClass("StripeElement--invalid")&&e.$el.find(".forminator-stripe-element").closest(".forminator-field").addClass("forminator-has_error")}),this._cardElement.on("focus",function(t){e.$el.find(".forminator-stripe-element").closest(".forminator-field").addClass("forminator-is_active")}),this._cardElement.on("blur",function(t){e.$el.find(".forminator-stripe-element").closest(".forminator-field").removeClass("forminator-is_active"),e.isValid(!1)})},hideCardError:function(){var t=this.$el.find(".forminator-card-message"),e=t.find(".forminator-error-message");0===e.length&&(t.append('<span class="forminator-error-message" aria-hidden="true"></span>'),e=t.find(".forminator-error-message")),t.closest(".forminator-field").removeClass("forminator-has_error"),e.html("")},showCardError:function(t,e){var r=this.$el.find(".forminator-card-message"),n=r.find(".forminator-error-message");0===n.length&&(r.append('<span class="forminator-error-message" aria-hidden="true"></span>'),n=r.find(".forminator-error-message")),r.closest(".forminator-field").addClass("forminator-has_error"),r.closest(".forminator-field").addClass("forminator-is_filled"),n.html(t),e&&this.focus_to_element(r.closest(".forminator-field"))},getStripeData:function(t){return void 0!==this._stripeData[t]?this._stripeData[t]:null},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},get_field_value:function(t){var e=this.get_form_field(t),r="",n=null;return this.field_is_radio(e)?(n=e.filter(":checked")).length&&(r=n.val()):this.field_is_checkbox(e)?e.each(function(){c(this).is(":checked")&&(r=c(this).val())}):r=(this.field_is_select(e),e.val()),r},get_field_calculation:function(t){var e=this.get_form_field(t),r=0,n=0,o=null;return this.field_is_radio(e)?(o=e.filter(":checked")).length&&(n=o.data("calculation"))!==u&&(r=Number(n)):this.field_is_checkbox(e)?e.each(function(){c(this).is(":checked")&&(n=c(this).data("calculation"))!==u&&(r+=Number(n))}):this.field_is_select(e)?(o=e.find("option").filter(":selected")).length&&(n=o.data("calculation"))!==u&&(r=Number(n)):r=Number(e.val()),isNaN(r)?0:r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===c(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===c(this).attr("type"))return!(e=!0)}),e},field_is_select:function(t){return t.is("select")}}),c.fn[r]=function(t){return this.each(function(){c.data(this,r)||c.data(this,r,new e(this,t))})}}(jQuery,window,document),function(s,n){"use strict";var r="forminatorFrontPagination",o={totalSteps:0,step:0,hashStep:0,inline_validation:!1};function e(t,e){this.element=s(t),this.$el=this.element,this.totalSteps=0,this.step=0,this.hashStep=!1,this.next_button=n.ForminatorFront.cform.pagination_next,this.prev_button=n.ForminatorFront.cform.pagination_prev,this.next_button_txt="",this.prev_button_txt="",this.custom_label=[],this.form_id=0,this.element="",this.settings=s.extend({},o,e),this._defaults=o,this._name=r,this.init()}s.extend(e.prototype,{init:function(){0<this.$el.find("input[name=form_id]").length&&(this.form_id=this.$el.find("input[name=form_id]").val()),this.totalSteps=this.settings.totalSteps,this.step=this.settings.step,this.element=this.$el.find("[data-step="+this.step+"]").data("name"),this.form_id&&"object"==typeof n.Forminator_Cform_Paginations&&"object"==typeof n.Forminator_Cform_Paginations[this.form_id]&&(this.custom_label=n.Forminator_Cform_Paginations[this.form_id]),this.settings.hashStep&&0<this.step?this.go_to(this.step,!0):this.go_to(0,!1),this.render_navigation(),this.render_bar_navigation(),this.render_footer_navigation(this.form_id),this.init_events(),this.update_buttons(),this.update_navigation()},init_events:function(){var r=this;this.$el.find(".forminator-button-back").click(function(t){t.preventDefault(),r.handle_click("prev")}),this.$el.find(".forminator-button-next").click(function(t){t.preventDefault(),r.handle_click("next")}),this.$el.find(".forminator-step").click(function(t){t.preventDefault();var e=s(this).data("nav");r.handle_step(e)}),this.$el.on("reset",function(t){r.on_form_reset(t)}),this.$el.on("forminator.front.pagination.focus.input",function(t,e){r.on_focus_input(t,e)})},on_form_reset:function(t){this.go_to(0,!0),this.update_buttons()},on_focus_input:function(t,e){var r=this.get_page_of_input(e);this.go_to(r,!0),this.update_buttons()},render_footer_navigation:function(t){var e="";this.custom_label[this.element]&&"custom"===this.custom_label["pagination-labels"]?(this.prev_button_txt=""!==this.custom_label[this.element]["prev-text"]?this.custom_label[this.element]["prev-text"]:this.prev_button,this.next_button_txt=""!==this.custom_label[this.element]["next-text"]?this.custom_label[this.element]["next-text"]:this.next_button):(this.prev_button_txt=this.prev_button,this.next_button_txt=this.next_button),e=this.$el.hasClass("forminator-design--material")?'<div class="forminator-pagination-footer"><button class="forminator-button forminator-button-back"><span class="forminator-button--mask" aria-label="hidden"></span><span class="forminator-button--text">'+this.prev_button_txt+'</span></button><button class="forminator-button forminator-button-next"><span class="forminator-button--mask" aria-label="hidden"></span><span class="forminator-button--text">'+this.next_button_txt+"</span></button>":'<div class="forminator-pagination-footer"><button class="forminator-button forminator-button-back">'+this.prev_button_txt+'</button><button class="forminator-button forminator-button-next">'+this.next_button_txt+"</button>",!0===this.custom_label["has-paypal"]&&(e+='<div class="forminator-payment forminator-button-paypal forminator-hidden '+(this.custom_label["paypal-id"]?this.custom_label["paypal-id"]:"")+'-payment" id="paypal-button-container-'+t+'">'),e+="</div>",this.$el.append(e)},render_bar_navigation:function(){var t=this.$el.find(".forminator-pagination-progress");t.length&&(t.html('<div class="forminator-progress-label">0%</div><div class="forminator-progress-bar"><span style="width: 0%"></span></div>'),this.calculate_bar_percentage())},calculate_bar_percentage:function(){var t=this.totalSteps,e=this.step+1,r=this.$el;if(r.length){var n=Math.round(e/t*100);r.find(".forminator-progress-label").html(n+"%"),r.find(".forminator-progress-bar span").css("width",n+"%")}},render_navigation:function(){var i=this.$el.find(".forminator-pagination-steps"),t=this.$el.find(".forminator-pagination-start");if(i.length){var o=this.$el.find(".forminator-pagination").not(".forminator-pagination-start");i.append('<div class="forminator-break"></div>');var a=this;o.each(function(){var t=s(this),e=t.data("label"),r=t.data("step")-1,n="forminator-custom-form-"+a.form_id+"--page-"+r,o='<button role="tab" id="'+(n+"-label")+'" class="forminator-step forminator-step-'+r+'" aria-selected="false" aria-controls="'+n+'" data-nav="'+r+'"><span class="forminator-step-label">'+e+'</span><span class="forminator-step-dot" aria-hidden="true"></span></button>';i.append(o+'<div class="forminator-break" aria-hidden="true"></div>')}),t.each(function(){var t=s(this).data("label"),e=o.length,r="forminator-custom-form-"+a.form_id+"--page-"+e,n='<button role="tab" id="'+(r+"-label")+'" class="forminator-step forminator-step-'+e+'" data-nav="'+e+'" aria-selected="false" aria-controls="'+r+'"><span class="forminator-step-label">'+t+'</span><span class="forminator-step-dot" aria-hidden="true"></span></button>';i.append(n+'<div class="forminator-break" aria-hidden="true"></div>')})}},handle_step:function(t){if(this.settings.inline_validation)for(var e=0;e<t;e++)if(this.step<=e&&!this.is_step_inputs_valid(e))return void this.go_to(e,!0);this.go_to(t,!0),this.update_buttons()},handle_click:function(t){var e=this;if("prev"===t&&0!==this.step)this.go_to(this.step-1,!0),this.update_buttons();else if("next"===t){if(this.settings.inline_validation&&!this.is_step_inputs_valid(this.step))return;if(void 0!==this.$el.data().forminatorFrontPayment){var r=this.$el.data().forminatorFrontPayment;0<this.$el.find("[data-step="+this.step+"]").find(".forminator-stripe-element").not(".forminator-hidden .forminator-stripe-element").length?r._stripe.createToken(r._cardElement).then(function(t){t.error?r.showCardError(t.error.message,!0):(r.hideCardError(),e.go_to(e.step+1,!0),e.update_buttons())}):(this.go_to(this.step+1,!0),this.update_buttons())}else this.go_to(this.step+1,!0),this.update_buttons()}},is_step_inputs_valid:function(t){var r=0,n=this.$el.data("validator"),e=this.$el.find("[data-step="+t+"]");return void 0===n||(e.find("input, select, textarea").not(":submit, :reset, :image, :disabled").not(':hidden:not(.forminator-wp-editor-required, .forminator-input-file-required, input[name$="_data"])').not('[gramm="true"]').each(function(t,e){n.element(e)||(0===r&&e.focus(),r++)}),0===r)},get_page_of_input:function(t){var e=this.step,r=s(t).closest(".forminator-pagination");if(0<r.length){var n=s(r).data("step");void 0!==n&&(e=+n)}return e},update_buttons:function(){if(0===this.step?(this.$el.find(".forminator-button-back").closest(".forminator-pagination-footer").css({"justify-content":"flex-end"}),this.$el.find(".forminator-button-back").addClass("forminator-hidden")):(this.$el.find(".forminator-button-back").closest(".forminator-pagination-footer").css({"justify-content":""}),this.$el.find(".forminator-button-back").removeClass("forminator-hidden")),this.step===this.totalSteps&&(this.step--,this.$el.submit()),this.step===this.totalSteps-1){var t=this.$el.find(".forminator-pagination-submit").html(),e="custom"===this.custom_label["pagination-labels"]&&""!==this.custom_label["last-previous"]?this.custom_label["last-previous"]:this.prev_button;this.$el.hasClass("forminator-design--material")?(this.$el.find(".forminator-button-back .forminator-button--text").html(e),this.$el.find(".forminator-button-next").removeClass("forminator-button-next").attr("id","forminator-submit").addClass("forminator-button-submit").find(".forminator-button--text").html("").html(t)):(this.$el.find(".forminator-button-back").html(e),this.$el.find(".forminator-button-next").removeClass("forminator-button-next").attr("id","forminator-submit").addClass("forminator-button-submit").html(t)),!0===this.custom_label["has-paypal"]&&(this.$el.find(".forminator-button-submit").addClass("forminator-hidden"),this.$el.find(".forminator-payment").attr("id","forminator-paypal-submit").removeClass("forminator-hidden")),0<this.$el.find(".forminator-payment iframe").length&&this.$el.find(".forminator-payment iframe").width("100%")}else this.element=this.$el.find("[data-step="+this.step+"]").data("name"),this.custom_label[this.element]&&"custom"===this.custom_label["pagination-labels"]?(this.prev_button_txt=""!==this.custom_label[this.element]["prev-text"]?this.custom_label[this.element]["prev-text"]:this.prev_button,this.next_button_txt=""!==this.custom_label[this.element]["next-text"]?this.custom_label[this.element]["next-text"]:this.next_button):(this.prev_button_txt=this.prev_button,this.next_button_txt=this.next_button),this.$el.hasClass("forminator-design--material")?(this.$el.find("#forminator-submit").removeAttr("id").removeClass("forminator-button-submit").addClass("forminator-button-next"),!0===this.custom_label["has-paypal"]&&(this.$el.find("#forminator-paypal-submit").removeAttr("id").addClass("forminator-hidden"),this.$el.find(".forminator-button-next").removeClass("forminator-button-submit forminator-hidden")),this.$el.find(".forminator-button-back .forminator-button--text").html(this.prev_button_txt),this.$el.find(".forminator-button-next .forminator-button--text").html(this.next_button_txt)):(this.$el.find("#forminator-submit").removeAttr("id").removeClass("forminator-button-submit").addClass("forminator-button-next"),!0===this.custom_label["has-paypal"]&&(this.$el.find("#forminator-paypal-submit").removeAttr("id").addClass("forminator-hidden"),this.$el.find(".forminator-button-next").removeClass("forminator-button-submit forminator-hidden")),this.$el.find(".forminator-button-back").html(this.prev_button_txt),this.$el.find(".forminator-button-next").html(this.next_button_txt))},go_to:function(t,e){if((this.step=t)===this.totalSteps)return!1;this.$el.find(".forminator-pagination").css({height:"0",opacity:"0",visibility:"hidden",overflow:"hidden"}).attr("aria-hidden","true").attr("hidden",!0),this.$el.find(".forminator-pagination .forminator-pagination--content").hide(),this.$el.find("[data-step="+t+"]").css({height:"auto",opacity:"1",visibility:"visible"}).removeAttr("aria-hidden").removeAttr("hidden"),this.$el.find("[data-step="+t+"] .forminator-pagination--content").show();var r=this.$el.data("forminatorFront");void 0!==r&&r.responsive_captcha(),this.update_navigation(),e&&this.scroll_to_top_form()},update_navigation:function(){this.$el.find(".forminator-current").attr("aria-selected","false"),this.$el.find(".forminator-current").removeClass("forminator-current"),this.$el.find(".forminator-step-"+this.step).attr("aria-selected","true"),this.$el.find(".forminator-step-"+this.step).addClass("forminator-current"),this.calculate_bar_percentage()},scroll_to_top_form:function(){var t=this.$el,e=this.$el.find(".forminator-row").not(":hidden").first();if(e.length&&(t=e),t.length){var r="html,body";0<this.$el.closest(".sui-dialog").length&&(r=".sui-dialog"),0<this.$el.closest(".wph-modal").length&&(r=".wph-modal"),s(r).animate({scrollTop:t.offset().top-(s(n).height()-t.outerHeight(!0))/2},500,function(){t.attr("tabindex")||t.attr("tabindex",-1),t.focus()})}}}),s.fn[r]=function(t){return this.each(function(){s.data(this,r)||s.data(this,r,new e(this,t))})}}(jQuery,window,document),function(i,n,t,a){"use strict";var r="forminatorFrontPayPal",o={type:"paypal",paymentEl:null,paymentRequireSsl:!1,generalMessages:{}};function e(t,e){this.element=t,this.$el=i(this.element),this.settings=i.extend({},o,e),this._defaults=o,this._name=r,this.paypalData=null,this.init()}i.extend(e.prototype,{init:function(){if(this.settings.paymentEl){this.paypalData=this.settings.paymentEl,this.render_paypal_button()}},is_data_valid:function(){var t=this.configurePayPal(),e=this.settings.paymentRequireSsl;return!(t.amount<=0)&&(!e||"https:"===location.protocol)},is_form_valid:function(){var t=this.$el.validate(),e=t.checkForm();return t.submitted={},e},render_paypal_button:function(){var o=this.$el,i=this,r=this.configurePayPal(),a=o.find(".forminator-response-message"),s=ForminatorFront.cform.gateway.error,t=this.settings.paymentRequireSsl,e=this.settings.generalMessages,n={shape:r.shape,color:r.color,label:r.label,layout:r.layout,height:parseInt(r.height)};"vertical"!==r.layout&&(n.tagline=r.tagline),paypal.Buttons({onInit:function(t,e){e.disable(),"variable"===r.amount_type&&""!==r.variable&&(r.amount=i.get_field_calculation(r.variable)),o.find("input, select, textarea").change(function(){i.is_data_valid()&&i.is_form_valid()&&e.enable()}),i.is_data_valid()&&i.is_form_valid()&&e.enable()},env:r.mode,style:n,onClick:function(){!o.valid()&&r.amount<=0?(a.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),a.html('<label class="forminator-label--error"><span>'+e.payment_require_amount_error+"</span></label>"),i.focus_to_element(a)):t&&"https:"!==location.protocol&&(a.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),a.html('<label class="forminator-label--error"><span>'+e.payment_require_ssl_error+"</span></label>"),i.focus_to_element(a)),"variable"===r.amount_type&&""!==r.variable&&(r.amount=i.get_field_calculation(r.variable))},createOrder:function(t,e){return o.addClass("forminator-partial-disabled"),e.order.create({purchase_units:[{amount:{value:r.amount}}]})},onApprove:function(t,e){return void 0!==i.settings.has_loader&&i.settings.has_loader&&(o.addClass("forminator-fields-disabled"),a.html("<p>"+i.settings.loader_label+"</p>"),a.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show"),i.focus_to_element(a)),e.order.capture().then(function(t){var e=t.purchase_units[0].payments.captures[0].id;if(void 0===e)return!1;var r=o.find('input[name="forminator_nonce"]').val(),n={details:t,payment_id:e,forminator_nonce:r,action:"forminator_submit_form_custom-forms"};jQuery.ajax({type:"POST",url:ForminatorFront.ajaxUrl,data:jQuery.param(n),success:function(t){t&&!0===t.data.success?(o.find(".forminator-paypal-input").val(e),o.trigger("submit")):(s=t.data.error?t.data.error:s,a.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),a.html('<label class="forminator-label--error"><span>'+s+"</span></label>"),i.focus_to_element(a))},error:function(t){s=t.data?t.error_message:s,a.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),a.html('<label class="forminator-label--error"><span>'+s+"</span></label>"),i.focus_to_element(a)}})})},onCancel:function(t,e){return void 0!==i.settings.has_loader&&i.settings.has_loader&&(o.removeClass("forminator-fields-disabled forminator-partial-disabled"),a.removeClass("forminator-loading")),e.redirect()},onError:function(){void 0!==i.settings.has_loader&&i.settings.has_loader&&(o.removeClass("forminator-fields-disabled forminator-partial-disabled"),a.removeClass("forminator-loading")),a.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),a.html('<label class="forminator-label--error"><span>'+s+"</span></label>"),i.focus_to_element(a)}}).render(o.find(".forminator-button-paypal")[0])},configurePayPal:function(){var t={form_id:this.getPayPalData("form_id"),sandbox_id:this.getPayPalData("sandbox_id"),currency:this.getPayPalData("currency"),live_id:this.getPayPalData("live_id"),amount:0};t.color=this.getPayPalData("color")?this.getPayPalData("color"):"gold",t.shape=this.getPayPalData("shape")?this.getPayPalData("shape"):"rect",t.label=this.getPayPalData("label")?this.getPayPalData("label"):"checkout",t.layout=this.getPayPalData("layout")?this.getPayPalData("layout"):"vertical",t.tagline=this.getPayPalData("tagline")?this.getPayPalData("tagline"):"true",t.redirect_url=this.getPayPalData("redirect_url")?this.getPayPalData("redirect_url"):"",t.mode=this.getPayPalData("mode"),t.locale=this.getPayPalData("locale")?this.getPayPalData("locale"):"en_US",t.debug_mode=this.getPayPalData("debug_mode")?this.getPayPalData("debug_mode"):"disable",t.amount_type=this.getPayPalData("amount_type")?this.getPayPalData("amount_type"):"fixed",t.variable=this.getPayPalData("variable")?this.getPayPalData("variable"):"",t.height=this.getPayPalData("height")?this.getPayPalData("height"):55;var e=this.getPayPalData("amount_type");return"fixed"===e?t.amount=this.getPayPalData("amount"):"variable"===e&&""!==t.variable&&(t.amount=this.get_field_calculation(t.variable)),t},getPayPalData:function(t){return void 0!==this.paypalData[t]?this.paypalData[t]:null},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},get_field_calculation:function(t){var e=this.get_form_field(t),r=0,n=0,o=null;return this.field_is_radio(e)?(o=e.filter(":checked")).length&&(n=o.data("calculation"))!==a&&(r=Number(n)):this.field_is_checkbox(e)?e.each(function(){i(this).is(":checked")&&(n=i(this).data("calculation"))!==a&&(r+=Number(n))}):this.field_is_select(e)?(o=e.find("option").filter(":selected")).length&&(n=o.data("calculation"))!==a&&(r=Number(n)):r=Number(e.val()),isNaN(r)?0:r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===i(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===i(this).attr("type"))return!(e=!0)}),e},field_is_select:function(t){return t.is("select")},focus_to_element:function(t,e){e=(e=e||!1)&&this.settings.fadeout;var r=this.settings.fadeout_time;t.show(),i("html,body").animate({scrollTop:t.offset().top-(i(n).height()-t.outerHeight(!0))/2},500,function(){t.attr("tabindex")||t.attr("tabindex",-1),t.focus(),e&&t.show().delay(r).fadeOut("slow")})}}),i.fn[r]=function(t){return this.each(function(){i.data(this,r)||i.data(this,r,new e(this,t))})}}(jQuery,window,document),function(P){"use strict";var r="forminatorFrontDatePicker",n={};function e(t,e){this.element=t,this.$el=P(this.element),this.settings=P.extend({},n,e),this._defaults=n,this._name=r,this.init()}P.extend(e.prototype,{init:function(){var e=this,b=this.$el.data("format"),t=(this.$el.data("restrict-type"),this.$el.data("restrict")),r=this.$el.data("restrict"),n=this.$el.data("start-year"),o=this.$el.data("end-year"),_=this.$el.data("past-dates"),g=this.$el.val(),i=this.$el.data("start-of-week"),y=this.$el.data("start-date"),v=this.$el.data("end-date"),w=this.$el.data("start-field"),C=this.$el.data("end-field"),O=this.$el.data("start-offset"),x=this.$el.data("end-offset"),a=this.$el.data("disable-date"),s=this.$el.data("disable-range");r=!isNaN(parseFloat(r))&&isFinite(r)?[r.toString()]:t.split(","),a=a.split(","),s=s.split(","),n=n||"c-95",o=o||"c+95";var k=this.$el.closest(".forminator-custom-form"),j="forminator-calendar";k.hasClass("forminator-design--default")?j="forminator-calendar--default":k.hasClass("forminator-design--material")?j="forminator-calendar--material":k.hasClass("forminator-design--flat")?j="forminator-calendar--flat":k.hasClass("forminator-design--bold")&&(j="forminator-calendar--bold"),this.$el.datepicker({beforeShow:function(t,e){if(e.dpDiv.removeClass(function(t,e){return(e.match(/\bhustle-\S+/g)||[]).join(" ")}),e.dpDiv.removeClass(function(t,e){return(e.match(/\bforminator-\S+/g)||[]).join(" ")}),e.dpDiv.addClass("forminator-custom-form-"+k.data("form-id")+" "+j),"disable"===_?P(this).datepicker("option","minDate",g):P(this).datepicker("option","minDate",null),y){var r=new Date(y);P(this).datepicker("option","minDate",r)}if(v){var n=new Date(v);P(this).datepicker("option","maxDate",n)}if(w){var o=P('input[name ="'+w+'"]').val();if(void 0!==o){var i=new Date(o),a=O.split("_"),s=moment(i).add(a[1],a[2]);"-"===a[0]&&(s=moment(i).subtract(a[1],a[2]));var l=moment(s).format(b.toUpperCase()),f=new Date(l);P(this).datepicker("option","minDate",f)}}if(C){var u=P('input[name ="'+C+'"]').val();if(void 0!==u){var c=new Date(u),d=x.split("_"),m=moment(c).add(d[1],d[2]);"-"===d[0]&&(m=moment(c).subtract(d[1],d[2]));var h=moment(m).format(b.toUpperCase()),p=new Date(h);P(this).datepicker("option","maxDate",p)}}},beforeShowDay:function(t){return e.restrict_date(r,a,s,t)},monthNames:datepickerLang.monthNames,monthNamesShort:datepickerLang.monthNamesShort,dayNames:datepickerLang.dayNames,dayNamesShort:datepickerLang.dayNamesShort,dayNamesMin:datepickerLang.dayNamesMin,changeMonth:!0,changeYear:!0,dateFormat:b,yearRange:n+":"+o,minDate:new Date(n,0,1),maxDate:new Date(o,11,31),firstDay:i,onClose:function(){P(this).valid()}}),P(".ui-datepicker").addClass("notranslate")},restrict_date:function(t,e,r,n){for(var o=!0,i=n.getDay(),a=jQuery.datepicker.formatDate("mm/dd/yy",n),s=0;s<r.length;s++){var l=r[s].split("-"),f=new Date(P.trim(l[0])),u=new Date(P.trim(l[1]));if(f<=n&&n<=u){o=!1;break}}return-1!==t.indexOf(i.toString())||-1!==e.indexOf(a)||!1===o?[!1,"disabledDate"]:[!0,"enabledDate"]}}),P.fn[r]=function(t){return this.each(function(){P.data(this,r)||P.data(this,r,new e(this,t))})}}(jQuery,window,document),function(d){"use strict";var r="forminatorFrontValidate",n={rules:{},messages:{}};function e(t,e){this.element=t,this.$el=d(this.element),this.settings=d.extend({},n,e),this._defaults=n,this._name=r,this.init()}d.extend(e.prototype,{init:function(){var r=!1,n=this.$el;d(this.element).validate({ignore:":hidden:not(.do-validate)",errorPlacement:function(t,e){n.trigger("validation:error")},showErrors:function(t,e){r&&0<e.length&&(n.find(".forminator-response-message").html("<ul></ul>"),jQuery.each(e,function(t,e){n.find(".forminator-response-message ul").append("<li>"+e.message+"</li>")}),n.find(".forminator-response-message").removeAttr("aria-hidden").prop("tabindex","-1").addClass("forminator-accessible")),r=!1,this.defaultShowErrors(),n.trigger("validation:showError",e)},invalidHandler:function(t,e){r=!0,n.trigger("validation:invalid")},onfocusout:function(t){!1===d(t).hasClass("hasDatepicker")&&d(t).valid(),d(t).trigger("validation:focusout")},highlight:function(t,e,r){var n=d(t),o=n.closest(".forminator-field"),i=n.closest(".forminator-date-input"),a=n.closest(".forminator-timepicker"),s=!1,l=!1,f=!1,u=this.errorMap[t.name],c='<span class="forminator-error-message" aria-hidden="true"></span>';if(0<i.length)l=(s=i.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("day"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="year"]').length?d(c).insertBefore(s.find('.forminator-error-message[data-error-field="year"]')):0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"month"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="day"]').length?d(c).insertBefore(s.find('.forminator-error-message[data-error-field="day"]')):0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"year"===n.data("field")&&(0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else if(0<a.length)l=(s=a.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("hours"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="minutes"]').length?d(c).insertBefore(s.find('.forminator-error-message[data-error-field="minutes"]')):0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"minutes"===n.data("field")&&(0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else{l=o.find(".forminator-error-message"),f=o.find(".forminator-description");0===l.length&&(0===f.length?o.append(c):d(c).insertBefore(f)),o.find(".forminator-error-message").html(u)}n.attr("aria-invalid","true"),o.addClass("forminator-has_error"),n.trigger("validation:highlight")},unhighlight:function(t,e,r){var n=d(t),o=n.closest(".forminator-field"),i=n.closest(".forminator-timepicker"),a=n.closest(".forminator-date-input"),s="",l=(s=0<a.length?a.parent().find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'):0<i.length?i.parent().find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'):o.find(".forminator-error-message")).closest("ul.forminator-uploaded-files");n.removeAttr("aria-invalid"),l.length<0&&s.remove(),o.removeClass("forminator-has_error"),n.trigger("validation:unhighlight")},rules:this.settings.rules,messages:this.settings.messages}),d(this.element).on("forminator.validate.signature",function(){d(this).validate().form()})}}),d.fn[r]=function(t){return this.each(function(){d.data(this,r)||d.data(this,r,new e(this,t))})},d.validator.addMethod("validurl",function(t,e){var r=d.validator.methods.url.bind(this);return r(t,e)||r("http://"+t,e)}),d.validator.addMethod("forminatorPhoneNational",function(t,e){return this.optional(e)||d(e).intlTelInput("isValidNumber")}),d.validator.addMethod("forminatorPhoneInternational",function(t,e){return this.optional(e)||d(e).intlTelInput("isValidNumber")}),d.validator.addMethod("dateformat",function(t,e,r){var n,o,i,a,s,l=!1,f="yy-mm-dd"===r||"yy/mm/dd"===r||"yy.mm.dd"===r?/^\d{4}-\d{1,2}-\d{1,2}$/:/^\d{1,2}-\d{1,2}-\d{4}$/;return t=t.replace(/[ /.]/g,"-"),l=!!f.test(t)&&("dd/mm/yy"===r||"dd-mm-yy"===r||"dd.mm.yy"===r?(n=t.split("-"),o=parseInt(n[0],10),i=parseInt(n[1],10),a=parseInt(n[2],10)):"mm/dd/yy"===r||"mm.dd.yy"===r||"mm-dd-yy"===r?(n=t.split("-"),i=parseInt(n[0],10),o=parseInt(n[1],10),a=parseInt(n[2],10)):(n=t.split("-"),a=parseInt(n[0],10),i=parseInt(n[1],10),o=parseInt(n[2],10)),(s=new Date(Date.UTC(a,i-1,o,12,0,0,0))).getUTCFullYear()===a&&s.getUTCMonth()===i-1&&s.getUTCDate()===o),this.optional(e)||l}),d.validator.addMethod("maxwords",function(t,e,r){return this.optional(e)||jQuery.trim(t).split(/\s+/).length<=r}),d.validator.addMethod("trim",function(t,e,r){return!0===this.optional(e)||0!==t.trim().length}),d.validator.addMethod("emailWP",function(t,e,r){if(this.optional(e))return!0;if(t.trim().length<6)return!1;if(t.indexOf("@",1)<0)return!1;var n=t.split("@",2);if(!n[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(n[1].match(/\.{2,}/))return!1;var o=n[1].split(".");if(o.length<2)return!1;for(var i=o.length,a=0;a<i;a++)if(!o[a].match(/^[a-z0-9-]+$/i))return!1;return!0}),d.validator.addMethod("forminatorPasswordStrength",function(t,e,r){var n=t.trim();if(!n||n.length<8)return!1;var o=0;return n.match(/[0-9]/)&&(o+=10),n.match(/[a-z]/)&&(o+=20),n.match(/[A-Z]/)&&(o+=20),n.match(/[^a-zA-Z0-9]/)&&(o+=30),n.match(/[=!\-@.,_*#&?^`%$+\/{\[\]|}^?~]/)&&(o+=30),54<=Math.log(Math.pow(o,n.length))/Math.LN2}),d.validator.addMethod("extension",function(t,e,r){var n=!1;if(""!==d.trim(t)){var o=t.replace(/^.*\./,"");o=o==t?"notExt":o.toLowerCase(),-1!=r.indexOf(o)&&(n=!0)}return this.optional(e)||n}),d.validator.methods.number=function(t,e,r){return this.optional(e)||/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/.test(t)}}(jQuery,window,document),function(o){"use strict";var n="forminatorFrontCondition",i={fields:{},relations:{}};function r(t,e,r){this.element=t,this.$el=o(this.element),this.settings=o.extend({},i,e),this._defaults=i,this._name=n,this.calendar=r[0],this.init()}o.extend(r.prototype,{init:function(){var n=this,e=this.$el;this.add_missing_relations(),this.$el.find(".forminator-field input, .forminator-field select, .forminator-field textarea, .forminator-field-signature").change(function(t){var e=o(this),r=e.closest(".forminator-col").attr("id");return void 0===r&&(r=e.attr("id")),r=o.trim(r),!(!n.has_relations(r)&&!n.has_siblings(r))&&(n.has_siblings(r)&&n.trigger_fake_parent_date_field(r),!n.has_relations(r)&&n.has_siblings(r)?(n.trigger_siblings(r),!1):void n.process_relations(r,e,t))}),this.$el.find(".forminator-button.forminator-button-back, .forminator-button.forminator-button-next").click(function(t){e.find(".forminator-field input, .forminator-field select, .forminator-field textarea").change()}),this.$el.find(".forminator-field input, .forminator-field select, .forminator-field textarea").change(),this.init_events()},process_relations:function(t,s,l){var f=this;f.get_relations(t).forEach(function(t){var e=f.get_field_logic(t),r=e.action,n=e.rule,o=e.conditions,i=0;if(o.forEach(function(t){f.is_applicable_rule(t,r)&&i++}),"all"===n&&i===o.length||"any"===n&&0<i){if(s instanceof jQuery)var a=s.closest(".forminator-pagination");"submit"===t&&void 0!==a&&f.toggle_field(t,"show","valid"),f.toggle_field(t,r,"valid"),f.has_relations(t)&&("hide"===r?f.hide_element(t,l):f.show_element(t,l))}else f.toggle_field(t,r,"invalid"),f.has_relations(t)&&("show"===r?f.hide_element(t,l):f.show_element(t,l))})},init_events:function(){var e=this;this.$el.on("forminator.front.condition.restart",function(t){e.on_restart(t)})},on_restart:function(t){this.$el.find(".forminator-field input, .forminator-field select, .forminator-field textarea").change()},add_missing_relations:function(){var n=this,o={};if(void 0!==this.settings.fields){var t=this.settings.fields;Object.keys(t).forEach(function(r){t[r].conditions.forEach(function(t){var e=t.field;n.has_relations(e)||(void 0===o[e]&&(o[e]=[]),o[e].push(r))})})}Object.keys(o).forEach(function(t){n.settings.relations[t]=o[t]})},get_field_logic:function(t){return void 0===this.settings.fields[t]?[]:this.settings.fields[t]},has_relations:function(t){return void 0!==this.settings.relations[t]},get_relations:function(t){return this.has_relations(t)?this.settings.relations[t]:[]},get_field_value:function(t){var e=this.get_form_field(t),r=e.val();return this.field_is_radio(e)?r=e.filter(":checked").val():this.field_is_signature(e)?r=e.find("input[id$='_data']").val():this.field_is_checkbox(e)&&(r=[],e.each(function(){o(this).is(":checked")&&r.push(o(this).val().toLowerCase())})),r||""},get_date_field_value:function(t){var e=this.get_form_field(t),r=!0;e instanceof jQuery&&(r=!1,e.hasClass("forminator-col")&&(r=!0));var n="";if(!r&&this.field_is_datepicker(e)){switch(n=e.val(),e.data("format")){case"dd/mm/yy":n=e.val().split("/").reverse().join("-");break;case"dd.mm.yy":n=e.val().split(".").reverse().join("-");break;case"dd-mm-yy":n=e.val().split("-").reverse().join("-")}var o=new Date;""!==n&&(o=new Date(n)),n={year:o.getFullYear(),month:this.calendar.months[o.getMonth()].toLowerCase(),date:o.getDate(),day:this.calendar.days[o.getDay()].toLowerCase()}}else{var i=!0===r?t:e.data("parent"),a=this.get_form_field_value(i+"-year"),s=this.get_form_field_value(i+"-month"),l=this.get_form_field_value(i+"-day");if(""!==a&&""!==s&&""!==l){o=new Date(a+"-"+s+"-"+l);if(!0===r)return o;n={year:o.getFullYear(),month:this.calendar.months[o.getMonth()].toLowerCase(),date:o.getDate(),day:this.calendar.days[o.getDay()].toLowerCase()}}}return n||""},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===o(this).attr("type"))return!(e=!0)}),e},field_is_signature:function(t){var e=!1;return t.each(function(){if(0<o(this).find(".forminator-field-signature").length)return!(e=!0)}),e},field_is_datepicker:function(t){var e=!1;return t.each(function(){if(o(this).hasClass("forminator-datepicker"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===o(this).attr("type"))return!(e=!0)}),e},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("."+t+"-payment")).length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&0===(e=this.$el.find("select[name="+t+"]")).length&&(e=this.$el.find("#"+t)),e},get_form_field_value:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&0===(e=this.$el.find("select[name="+t+"]")).length&&(e=this.$el.find("#"+t)),e.val()},is_numeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},is_date_rule:function(t){return["day_is","day_is_not","month_is","month_is_not","is_before","is_after","is_before_n_or_more_days","is_before_less_than_n_days","is_after_n_or_more_days","is_after_less_than_n_days"].includes(t)},has_siblings:function(t){return!!(t=this.get_form_field(t)).data("parent")},trigger_fake_parent_date_field:function(t){var e=this.get_form_field(t).data("parent");this.process_relations(e,{},{})},trigger_siblings:function(r){var t,n=this,e=n.get_form_field(r).data("parent");t=[e+"-year",e+"-month",e+"-day"],o.each(t,function(t,e){r!==e&&n.has_relations(e)&&n.get_form_field(e).trigger("change")})},is_applicable_rule:function(t,e){if(void 0===t)return!1;if(this.is_date_rule(t.operator))var r=this.get_date_field_value(t.field);else r=this.get_field_value(t.field);var n=t.value,o=t.operator;return"show"===e?this.is_matching(r,n,o)&&this.is_hidden(t.field):this.is_matching(r,n,o)},is_hidden:function(t){var e=this.get_form_field(t).closest(".forminator-col").closest(".forminator-row");return!!e.hasClass("forminator-hidden-option")||!e.hasClass("forminator-hidden")},is_matching:function(t,e,r){var n=Array.isArray(t);switch("string"==typeof t&&(t=t.toLowerCase()),"string"==typeof e&&(e=e.toLowerCase()),r){case"is":return n?-1<o.inArray(e,t):t===e;case"is_not":return n?-1===o.inArray(e,t):t!==e;case"is_great":return t=+t,e=+e,!(!this.is_numeric(t)||!this.is_numeric(e))&&e<t;case"is_less":return t=+t,e=+e,!(!this.is_numeric(t)||!this.is_numeric(e))&&t<e;case"contains":return this.contains(t,e);case"starts":return t.startsWith(e);case"ends":return t.endsWith(e);case"month_is":return t.month===e;case"month_is_not":return t.month!==e;case"day_is":return t.day===e;case"day_is_not":return t.day!==e;case"is_before":return this.date_is_smaller(t,e);case"is_after":return this.date_is_grater(t,e);case"is_before_n_or_more_days":return this.date_is_n_days_before_current_date(t,e);case"is_before_less_than_n_days":return this.date_is_less_than_n_days_before_current_date(t,e);case"is_after_n_or_more_days":return this.date_is_n_days_after_current_date(t,e);case"is_after_less_than_n_days":return this.date_is_less_than_n_days_after_current_date(t,e)}return!1},contains:function(t,e){return 0<=t.toLowerCase().indexOf(e)},date_is_grater:function(t,e){return 1===forminatorDateUtil.compare(t,e)},date_is_smaller:function(t,e){return-1===forminatorDateUtil.compare(t,e)},date_is_equal:function(t,e){return 0===forminatorDateUtil.compare(t,e)},date_is_n_days_before_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(t,r);return!isNaN(n)&&(0===e?n===e:e<=n)},date_is_less_than_n_days_before_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(t,r);return!isNaN(n)&&(n<e&&0<n)},date_is_n_days_after_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(r,t);return!isNaN(n)&&(0===e?n===e:e<=n)},date_is_less_than_n_days_after_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(r,t);return!isNaN(n)&&(n<e&&0<n)},get_current_date:function(){return new Date},toggle_field:function(t,e,r){var n=this.get_form_field(t).closest(".forminator-col"),o=n.find(".forminator-input-file-required"),i=n.find("[id ^=ctlSignature][id $=_data]"),a=n.find(".forminator-wp-editor-required"),s=n.closest(".forminator-row"),l=this.$el.find(".forminator-pagination-footer").find(".forminator-button-next"),f=this.$el.find(".forminator-pagination-footer").find("#forminator-paypal-submit");if("submit"===t)var u=this.$el.find(".forminator-pagination-footer").find(".forminator-button-submit");else u=this.$el.find(".forminator-pagination-footer").find("#forminator-paypal-submit");"show"===e&&("valid"===r?(s.removeClass("forminator-hidden"),n.removeClass("forminator-hidden"),u.removeClass("forminator-hidden"),l.removeClass("forminator-hidden"),0<o.length&&o.addClass("do-validate"),0<a.length&&a.addClass("do-validate"),0<i.length&&i.addClass("do-validate"),0<f.length&&f.removeClass("forminator-hidden")):(n.addClass("forminator-hidden"),u.addClass("forminator-hidden"),0<o.length&&o.removeClass("do-validate"),0<a.length&&a.removeClass("do-validate"),0<i.length&&i.removeClass("do-validate"),0===s.find("> .forminator-col:not(.forminator-hidden)").length&&s.addClass("forminator-hidden"))),"hide"===e&&("valid"===r?(n.addClass("forminator-hidden"),u.addClass("forminator-hidden"),0<o.length&&o.removeClass("do-validate"),0<a.length&&a.removeClass("do-validate"),0<i.length&&i.removeClass("do-validate"),0===s.find("> .forminator-col:not(.forminator-hidden)").length&&s.addClass("forminator-hidden")):(s.removeClass("forminator-hidden"),n.removeClass("forminator-hidden"),u.removeClass("forminator-hidden"),0<o.length&&o.addClass("do-validate"),0<a.length&&a.addClass("do-validate"),0<i.length&&i.addClass("do-validate"))),this.$el.trigger("forminator:field:condition:toggled")},clear_value:function(t,e){var r=this.get_form_field(t),n=this.get_field_value(t);void 0!==e.originalEvent&&(this.field_is_radio(r)?(r.data("previous-value",n),r.removeAttr("checked")):this.field_is_checkbox(r)?r.each(function(){o(this).is(":checked")&&o(this).data("previous-value",n),o(this).removeAttr("checked")}):(r.data("previous-value",n),r.val("")))},restore_value:function(t,e){var r=this.get_form_field(t),n=r.data("previous-value");n&&void 0!==e.originalEvent&&(this.field_is_radio(r)?r.val([n]):this.field_is_checkbox(r)?r.each(function(){var t=o(this).data("previous-value");t&&0<=t.indexOf(o(this).val())&&o(this).attr("checked","checked")}):r.val(n))},hide_element:function(t,e){var r=this,n=r.get_relations(t);r.clear_value(t,e),n.forEach(function(t){r.toggle_field(t,"hide","valid"),r.has_relations(t)&&(n=r.hide_element(t,e))})},show_element:function(t,a){var s=this,l=s.get_relations(t);this.restore_value(t,a),l.forEach(function(t){var e=s.get_field_logic(t),r=e.action,n=e.rule,o=e.conditions,i=0;o.forEach(function(t){s.is_applicable_rule(t,r)&&i++}),"all"===n&&i===o.length||"any"===n&&0<i?s.toggle_field(t,r,"valid"):s.toggle_field(t,r,"invalid"),s.has_relations(t)&&(l=s.show_element(t,a))})}}),o.fn[n]=function(t,e){return this.each(function(){o.data(this,n)||o.data(this,n,new r(this,t,e))})}}(jQuery,window,document),function(p,b){"use strict";var r="forminatorFrontSubmit",n={form_type:"custom-form",forminatorFront:!1,forminator_selector:"",chart_design:"bar",chart_options:{}};function e(t,e){this.element=t,this.$el=p(this.element),this.forminatorFront=null,this.settings=p.extend({},n,e),this._defaults=n,this._name=r,this.init()}p.extend(e.prototype,{init:function(){switch(this.forminatorFront=this.$el.data("forminatorFront"),this.settings.form_type){case"custom-form":this.settings.forminator_selector&&p(this.settings.forminator_selector).length||(this.settings.forminator_selector=".forminator-custom-form"),this.handle_submit_custom_form();break;case"quiz":this.settings.forminator_selector&&p(this.settings.forminator_selector).length||(this.settings.forminator_selector=".forminator-quiz"),this.handle_submit_quiz();break;case"poll":this.settings.forminator_selector&&p(this.settings.forminator_selector).length||(this.settings.forminator_selector=".forminator-poll"),this.handle_submit_poll()}},decodeHtmlEntity:function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})},handle_submit_custom_form:function(){var m=this,h=p(this.element);m.$el.find(".forminator-response-message").find(".forminator-label--success").not(":hidden").length&&m.focus_to_element(m.$el.find(".forminator-response-message"),!0),p(".def-ajaxloader").hide();var r=!1;p("body").on("click","#lostPhone",function(t){t.preventDefault();var e=p(this);!1===r&&(r=!0,p.ajax({type:"GET",url:e.attr("href"),beforeSend:function(){e.attr("disabled","disabled"),p(".def-ajaxloader").show()},success:function(t){e.removeAttr("disabled"),p(".def-ajaxloader").hide(),p(".notification").text(t.data.message),r=!1}}))}),p("body").on("click",".auth-back",function(t){t.preventDefault();var e=m.$el.attr("id");p("#"+(e+"-authentication")+"-input").attr("disabled","disabled"),FUI.closeAuthentication()}),p("body").on("submit.frontSubmit",this.settings.forminator_selector,function(n){var u=p(this),t=this,o=n,c=new FormData(this),d=u.find(".forminator-response-message"),i=u.find(".forminator-g-recaptcha");if(m.settings.inline_validation&&0<m.$el.find(".forminator-uploaded-files").length&&0<m.$el.find(".forminator-uploaded-files li.forminator-has_error").length)return!1;if(void 0!==o.originalEvent){var e=p(this).find(".forminator-button-submit").first();if(0===e.length||p(e).closest(".forminator-col").hasClass("forminator-hidden"))return!1}if(m.$el.data("forminatorFrontPayment")&&i.length){var r=(i=p(i.get(0))).data("forminator-recapchta-widget"),a=i.data("size"),s=b.grecaptcha.getResponse(r);if("invisible"===a&&0===s.length)return b.grecaptcha.execute(r),!1;if(m.$el.hasClass("forminator_ajax")&&b.grecaptcha.reset(r),d.html(""),i.hasClass("error")&&i.removeClass("error"),0===s.length)return i.hasClass("error")||i.addClass("error"),d.html('<label class="forminator-label--error"><span>'+b.ForminatorFront.cform.captcha_error+"</span></label>"),m.focus_to_element(d),!1}function l(){if(c=new FormData(this),!m.$el.data("forminatorFrontPayment")&&i.length){var t=(i=p(i.get(0))).data("forminator-recapchta-widget"),e=i.data("size"),r=b.grecaptcha.getResponse(t);if("invisible"===e&&0===r.length)return b.grecaptcha.execute(t),!1;if(m.$el.hasClass("forminator_ajax")&&b.grecaptcha.reset(t),d.html(""),i.hasClass("error")&&i.removeClass("error"),0===r.length)return i.hasClass("error")||i.addClass("error"),d.html('<label class="forminator-label--error"><span>'+b.ForminatorFront.cform.captcha_error+"</span></label>"),m.focus_to_element(d),!1}if(m.$el.hasClass("forminator_ajax")){d.html(""),m.$el.find(".forminator-button-submit").addClass("forminator-button-onload"),m.$el.find("input[type=file]").each(function(){""===p(this).val()&&"function"==typeof b.FormData.prototype.delete&&c.delete(p(this).attr("name"))});void 0!==m.settings.has_loader&&m.settings.has_loader&&("login"!==m.$el.find('input[name="form_type"]').val()&&h.addClass("forminator-fields-disabled"),d.html("<p>"+m.settings.loader_label+"</p>"),m.focus_to_element(d),d.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show")),n.preventDefault(),p.ajax({type:"POST",url:b.ForminatorFront.ajaxUrl,data:c,cache:!1,contentType:!1,processData:!1,beforeSend:function(){u.find("button").attr("disabled",!0),u.trigger("before:forminator:form:submit",c)},success:function(t){if(u.find(".forminator-error-message").not(".forminator-uploaded-files .forminator-error-message").remove(),u.find(".forminator-field").removeClass("forminator-has_error"),u.find("button").removeAttr("disabled"),d.html("").removeClass("forminator-accessible forminator-error forminator-success"),m.settings.hasLeads&&void 0!==t.data.entry_id)return h.css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),p("#forminator-quiz-leads-"+m.settings.quiz_id+" .forminator-lead-form-skip").hide(),"beginning"===m.settings.form_placement&&p("#forminator-module-"+m.settings.quiz_id).css({height:"",opacity:"",overflow:"",visibility:"","pointer-events":"",margin:"",padding:"",border:""}),p("#forminator-module-"+m.settings.quiz_id+" input[name=entry_id]").val(t.data.entry_id),"end"===m.settings.form_placement&&p("#forminator-module-"+m.settings.quiz_id).submit(),!1;if(void 0!==t.data.authentication&&("show"===t.data.authentication||"invalid"===t.data.authentication)){var e=m.$el.attr("id"),r=e+"-authentication",n=p("#"+r),o=p("#"+r+"-input");return n.find(".forminator-authentication-notice").removeClass("error"),n.find(".lost-device-url").attr("href",t.data.lost_url),"show"===t.data.authentication&&(o.removeAttr("disabled"),FUI.openAuthentication(r,e,r+"-input")),"invalid"===t.data.authentication&&(n.find(".forminator-authentication-notice").addClass("error"),n.find(".forminator-authentication-notice").html("<p>"+t.data.message+"</p>")),!1}var i=t.success?"forminator-success":"forminator-error";if(void 0!==t.message){if(d.removeAttr("aria-hidden").prop("tabindex","-1").addClass(i+" forminator-show"),m.focus_to_element(d,"forminator-success"==i),d.html("<p>"+t.message+"</p>"),!t.data.success&&t.data.errors.length){var a='<ul class="forminator-screen-reader-only">';p.each(t.data.errors,function(t,e){for(var r in e)e.hasOwnProperty(r)&&(a+="<li>"+e[r]+"</li>")}),a+="</ul>",d.append(a)}}else if(void 0!==t.data){var s=!0;if(void 0!==t.data.url&&""===p.trim(t.data.message)&&(s=!1),s&&(d.removeAttr("aria-hidden").prop("tabindex","-1").addClass(i+" forminator-show"),m.focus_to_element(d,"forminator-success"==i),d.html("<p>"+t.data.message+"</p>")),!t.data.success&&void 0!==t.data.errors&&t.data.errors.length){a='<ul class="forminator-screen-reader-only">';p.each(t.data.errors,function(t,e){for(var r in e)e.hasOwnProperty(r)&&(a+="<li>"+e[r]+"</li>")}),a+="</ul>",d.append(a)}}if(!t.data.success&&void 0!==t.data.errors&&t.data.errors.length&&(u.trigger("forminator:form:submit:failed",c),m.show_messages(t.data.errors)),!0===t.success){if(u[0]){if(m.settings.resetEnabled&&u[0].reset(),m.$el.trigger("forminator:field:condition:toggled"),u.find(".forminator-field-signature img").trigger("click"),void 0!==t.data.select_field&&p.each(t.data.select_field,function(r,t){0<t.length&&p.each(t,function(t,e){e.value&&("multiselect"===e.type?u.find("#"+r+" input[value="+e.value+"]").closest("li").remove().trigger("change"):u.find("#"+r+" option[value="+e.value+"]").remove().trigger("change"))})}),u.find(".forminator-button-delete").hide(),u.find(".forminator-file-upload input").val(""),u.find(".forminator-file-upload > span").html(b.ForminatorFront.cform.no_file_chosen),u.find("ul.forminator-uploaded-files").html(""),m.$el.find("ul.forminator-uploaded-files").html(""),m.$el.find(".forminator-multifile-hidden").val(""),0<u.find(".forminator-select").length&&u.find(".forminator-select").each(function(t,e){var r=p(e).data("default-value");""===r&&(r=p(e).val()),p(e).val(r).trigger("fui:change")}),0<u.find(".multiselect-default-values").length&&""!==u.find(".multiselect-default-values").val()){var l=p.parseJSON(u.find(".multiselect-default-values").val()),f=Object.values(l);u.find('.forminator-multiselect input[type="checkbox"]').each(function(t,e){-1!==p.inArray(p(e).val(),f)?(p(e).prop("checked",!0),p(e).closest("label").addClass("forminator-is_checked")):(p(e).prop("checked",!1),p(e).closest("label").removeClass("forminator-is_checked"))})}u.trigger("forminator:form:submit:success",c),u.trigger("forminator.front.condition.restart")}void 0!==t.data.url&&(void 0!==t.data.newtab&&"sametab"!==t.data.newtab?("newtab_hide"===t.data.newtab&&m.$el.hide(),b.open(m.decodeHtmlEntity(t.data.url),"_blank")):b.location.href=m.decodeHtmlEntity(t.data.url)),void 0!==t.data.behav&&"behaviour-hide"===t.data.behav&&(m.$el.find(".forminator-row").hide(),m.$el.find(".forminator-pagination-steps").hide(),m.$el.find(".forminator-pagination-footer").hide(),m.$el.find(".forminator-pagination-steps, .forminator-pagination-progress").hide())}},error:function(t){u.find("button").removeAttr("disabled"),d.html("");var e=400===t.status?b.ForminatorFront.cform.upload_error:b.ForminatorFront.cform.error;d.html('<label class="forminator-label--notice"><span>'+e+"</span></label>"),m.focus_to_element(d),u.trigger("forminator:form:submit:failed",c)},complete:function(t,e){m.$el.find(".forminator-button-submit").removeClass("forminator-button-onload"),u.trigger("forminator:form:submit:complete",c)}}).always(function(){void 0!==m.settings.has_loader&&m.settings.has_loader&&(h.removeClass("forminator-fields-disabled forminator-partial-disabled"),d.removeClass("forminator-loading")),u.trigger("after:forminator:form:submit",c)})}else void 0!==m.settings.has_loader&&m.settings.has_loader&&(h.addClass("forminator-fields-disabled"),d.html("<p>"+m.settings.loader_label+"</p>"),d.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show")),o.currentTarget.submit()}var f=m.$el.find('div[data-is-payment="true"]').closest(".forminator-row").hasClass("forminator-hidden");return m.$el.data("forminatorFrontPayment")&&!f?m.$el.trigger("payment.before.submit.forminator",[c,function(){l.apply(t)}]):l.apply(t),!1})},handle_submit_quiz:function(t){var u=this,c=void 0!==u.settings.hasLeads&&u.settings.hasLeads,d=void 0!==u.settings.leads_id?u.settings.leads_id:0,m=void 0!==u.settings.quiz_id?u.settings.quiz_id:0;p("body").on("submit.frontSubmit",this.settings.forminator_selector,function(t){var e,r=p(this),n=new FormData(this),o=r.find(".forminator-answer"),i=u.$el.find(".forminator-button"),a=i.data("loading"),s=void 0!==u.settings.form_placement?u.settings.form_placement:"",l=void 0!==u.settings.skip_form?u.settings.skip_form:"";if(t.preventDefault(),t.stopPropagation(),u.$el.find(".forminator-has-been-disabled").removeAttr("disabled"),e=r.serialize(),u.$el.find(".forminator-has-been-disabled").attr("disabled","disabled"),c){var f="";if(0<u.$el.find("input[name=entry_id]").length&&(f=u.$el.find("input[name=entry_id]").val()),"end"===s&&""===f)return p("#forminator-module-"+d).css({height:"",opacity:"",overflow:"",visibility:"","pointer-events":"",margin:"",padding:"",border:""}),u.$el.find(".forminator-quiz--result").addClass("forminator-hidden"),p("#forminator-quiz-leads-"+m+" .forminator-lead-form-skip").show(),!1;if(!l&&""===f)return!1}return""!==a&&i.text(a),u.settings.has_quiz_loader&&o.each(function(){var t=p(this),e=t.find("input"),r=t.find(".forminator-answer--status");e.is(":checked")&&0===r.html().length&&r.html('<i class="forminator-icon-loader forminator-loading"></i>')}),p.ajax({type:"POST",url:b.ForminatorFront.ajaxUrl,data:e,beforeSend:function(){u.$el.find("button").attr("disabled","disabled"),r.trigger("before:forminator:quiz:submit",[e,n])},success:function(l){l.success?(u.$el.find(".forminator-quiz--result").removeClass("forminator-hidden"),"nowrong"===l.data.type?(b.history.pushState("forminator","Forminator",l.data.result_url),u.$el.find(".forminator-quiz--result").html(l.data.result),u.$el.find(".forminator-answer input").attr("disabled","disabled")):"knowledge"===l.data.type&&(b.history.pushState("forminator","Forminator",l.data.result_url),0<u.$el.find(".forminator-quiz--result").length&&u.$el.find(".forminator-quiz--result").html(l.data.finalText),Object.keys(l.data.result).forEach(function(t){var e,r,n=u.$el.find("#"+t),o=n.find(".forminator-question--result"),i=n.find(".forminator-submit-rightaway"),a=n.find('[id|="'+l.data.result[t].answer+'"]').closest(".forminator-answer"),s=n.find(".forminator-answer input");r=l.data.result[t].isCorrect?(e="forminator-is_correct",'<i class="forminator-icon-check"></i>'):(e="forminator-is_incorrect",'<i class="forminator-icon-cancel"></i>'),o.text(l.data.result[t].message),o.addClass("forminator-show"),i.attr("disabled",!0),i.attr("aria-disabled",!0),s.attr("disabled",!0),s.attr("aria-disabled",!0),a.addClass(e),0===a.find(".forminator-answer--status").html().length?a.find(".forminator-answer--status").html(r):0!==a.find(".forminator-answer--status .forminator-icon-loader").length&&a.find(".forminator-answer--status").html(r)})),r.trigger("forminator:quiz:submit:success",[e,n])):(u.$el.find("button").removeAttr("disabled"),r.trigger("forminator:quiz:submit:failed",[e,n]))}}).always(function(){r.trigger("after:forminator:quiz:submit",[e,n])}),!1}),p("body").on("click","#forminator-quiz-leads-"+m+" .forminator-lead-form-skip",function(t){p("#forminator-module-"+d).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),p(this).hide(),void 0!==u.settings.form_placement&&"beginning"===u.settings.form_placement&&u.$el.css({height:"",opacity:"",overflow:"",visibility:"","pointer-events":"",margin:"",padding:"",border:""}),void 0!==u.settings.form_placement&&"end"===u.settings.form_placement&&(u.settings.form_placement="skip",u.$el.submit())}),p("body").on("click",".forminator-result--retake",function(t){var e={action:"forminator_reload_quiz",pageId:u.$el.find('input[name="page_id"]').val(),nonce:u.$el.find('input[name="forminator_nonce"]').val()};t.preventDefault(),p.post(b.ForminatorFront.ajaxUrl,e,function(t){1==t.success&&t.html&&b.location.replace(t.html)})})},handle_submit_poll:function(){var u=this,c=u.$el.html();u.$el.find(".forminator-response-message").not(":hidden").length&&u.focus_to_element(u.$el.find(".forminator-response-message"),!0,!0),p("body").on("submit.frontSubmit",this.settings.forminator_selector,function(t){var r=p(this),n=new FormData(this),o=r.serialize(),i=u.$el.find(".forminator-response-message"),a=u.$el.find("fieldset"),s=u.$el.find(".forminator-button");function l(){i.html(""),i.removeClass("forminator-show"),i.removeClass("forminator-error"),i.removeClass("forminator-success"),i.removeAttr("tabindex"),i.attr("aria-hidden",!0),a.removeClass("forminator-has_error")}function f(t,e){i.html("<p>"+t+"</p>"),i.addClass("forminator-"+e),i.addClass("forminator-show"),i.removeAttr("aria-hidden"),i.attr("tabindex","-1"),i.focus(),"error"===e&&(a.find('input[type="radio"]').is(":checked")||a.addClass("forminator-has_error"))}return!u.$el.hasClass("forminator_ajax")||(l(),p.ajax({type:"POST",url:b.ForminatorFront.ajaxUrl,data:o,beforeSend:function(){s.addClass("forminator-onload"),r.trigger("before:forminator:poll:submit",[o,n])},success:function(t){var e=t.success?"success":"error";s.removeClass("forminator-onload"),!1===t.success?(f(t.data.message,e),r.trigger("forminator:poll:submit:failed",[o,n])):void 0!==t.data&&(e=t.data.success?"success":"error",f(t.data.message,e),setTimeout(function(){l()},2500)),!0===t.success&&(void 0!==t.data.url?b.location.href=t.data.url:void 0!==t.data.chart_data&&1<t.data.chart_data.length&&("link_on"===t.data.results_behav&&r.find(".forminator-note").length&&(r.find(".forminator-note").remove(),r.find(".forminator-poll-footer").append(t.data.results_link)),"show_after"===t.data.results_behav&&(u.render_poll_chart(t.data.chart_data,t.data.back_button,u,c,[t.data.votes_text,t.data.votes_count,[t.data.grids_color,t.data.labels_color,t.data.onchart_label],[t.data.tooltips_bg,t.data.tooltips_color]]),console.log(t.data.grids_color))),r.trigger("forminator:poll:submit:success",[o,n]))},error:function(){l(),s.removeClass(".forminator-onload"),r.trigger("forminator:poll:submit:failed",[o,n])}}).always(function(){r.trigger("after:forminator:poll:submit",[o,n])}),!1)})},render_poll_chart:function(t,e,r,n,o){var i,a,s,l,f,u,c,d="forminator-chart-poll-"+(r.$el.attr("id")+"-"+r.$el.data("forminatorRender")),m=r.$el.find(".forminator-poll-body"),h=r.$el.find(".forminator-poll-footer");i=r.$el.find(".forminator-chart-wrapper"),a=r.$el.find(".forminator-chart"),i.remove(),a.remove(),s=p('<canvas id="'+d+'" class="forminator-chart" role="img" aria-hidden="true"></canvas>'),m.append(s),FUI.pollChart("#"+d,t,r.settings.chart_design,o),(l=m.find(".forminator-field")).hide(),l.attr("aria-hidden","true"),f=r.$el.find(".forminator-chart"),(u=r.$el.find(".forminator-chart-wrapper")).length?(f.addClass("forminator-show"),u.addClass("forminator-show"),u.removeAttr("aria-hidden"),u.attr("tabindex","-1"),u.focus()):(f.html("<p>Fallback text...</p>"),f.addClass("forminator-show"),f.removeAttr("aria-hidden"),f.attr("tabindex","-1"),f.focus()),c=p(e),h.empty(),h.append(c),r.$el.find(".forminator-button").click(function(t){r.$el.hasClass("forminator_ajax")?r.$el.html(n):location.reload(),t.preventDefault()})},focus_to_element:function(t,e,r){r=r||!1,e=(e=e||!1)&&this.settings.fadeout;var n=this.settings.fadeout_time;function o(t){t.attr("tabindex")||t.attr("tabindex",-1),t.focus(),e&&t.show().delay(n).fadeOut("slow")}t.show(),r?o(t):p("html,body").animate({scrollTop:t.offset().top-(p(b).height()-t.outerHeight(!0))/2},500,function(){o(t)})},show_messages:function(t){var d=this,m=d.$el.data("forminatorFrontCondition");if(void 0!==m){this.$el.find(".forminator-error-message").remove();var h=0;t.forEach(function(t){var e=Object.keys(t),r=m.get_form_field(e),n=p(r),o=n.closest(".forminator-field"),i=n.closest(".forminator-date-input"),a=n.closest(".forminator-timepicker"),s=!1,l=!1,f=!1,u=Object.values(t),c='<span class="forminator-error-message" aria-hidden="true"></span>';if(r.length){if(0===h&&(d.$el.trigger("forminator.front.pagination.focus.input",[r]),d.focus_to_element(r)),0<i.length)l=(s=i.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("day"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="year"]').length?p(c).insertBefore(s.find('.forminator-error-message[data-error-field="year"]')):0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"month"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="day"]').length?p(c).insertBefore(s.find('.forminator-error-message[data-error-field="day"]')):0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"year"===n.data("field")&&(0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else if(0<a.length&&0<u[0].length)l=(s=a.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("hours"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="minutes"]').length?p(c).insertBefore(s.find('.forminator-error-message[data-error-field="minutes"]')):0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"minutes"===n.data("field")&&(0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else{l=o.find(".forminator-error-message"),f=o.find(".forminator-description");0===l.length&&(0===f.length?o.append(c):p(c).insertBefore(f)),o.find(".forminator-error-message").html(u)}n.attr("aria-invalid","true"),o.addClass("forminator-has_error"),h++}})}return this}}),p.fn[r]=function(t){return this.each(function(){p.data(this,r)||p.data(this,r,new e(this,t))})}}(jQuery,window,document),function(p,b,f){"use strict";var r="forminatorFrontMultiFile",n={};function e(t,e){this.element=t,this.$el=p(this.element),this.form=p.extend({},n,e),this._defaults=n,this._name=r,this.form_id=0,this.uploader=this.$el,this.element=this.uploader.data("element"),this.init()}p.extend(e.prototype,{init:function(){var a=this,s=[],l=[];0<this.form.find("input[name=form_id]").length&&(this.form_id=this.form.find("input[name=form_id]").val()),this.uploader.on("drag dragstart dragend dragover dragenter dragleave drop",function(t){t.preventDefault(),t.stopPropagation()}),this.uploader.on("dragover dragenter",function(t){p(this).addClass("forminator-dragover")}),this.uploader.on("dragleave dragend drop",function(t){p(this).removeClass("forminator-dragover")}),this.uploader.find(".forminator-upload-file--forminator-field-"+this.element).on("click",function(t){a.form.find(".forminator-field-"+a.element+"-"+a.form_id).click()}),this.uploader.on("drop",function(t){f.querySelector(".forminator-field-"+a.element+"-"+a.form_id).files=t.originalEvent.dataTransfer.files,a.form.find(".forminator-field-"+a.element+"-"+a.form_id).change()}),this.uploader.on("click",function(t){t.target===t.currentTarget&&a.form.find(".forminator-field-"+a.element+"-"+a.form_id).click()}),this.uploader.find(".forminator-multi-upload-message, .forminator-multi-upload-message p, .forminator-multi-upload-message .forminator-icon-upload").on("click",function(t){t.target===t.currentTarget&&a.form.find(".forminator-field-"+a.element+"-"+a.form_id).click()}),this.form.on("forminator:form:submit:success",function(t){s=[]}),this.form.find(".forminator-field-"+a.element+"-"+a.form_id).on("change",function(t){var e=p(this),r=this.files,n=[];e.closest(".forminator-field").removeClass("forminator-has_error");for(var o=0;o<r.length;o++)n.push(r[o]),s.push(r[o]);l=a.handleChangeCallback(n,e,l);var i=Array.prototype.slice.call(s);this.files=a.FileObjectItem(i)}),this.delete_files(s,l)},handleChangeCallback:function(l,f,u){var c=this,d=0,m=new FormData,t=this.form.find('input[name="forminator_nonce"]').val(),h=f.data("method");return m.append("action","forminator_multiple_file_upload"),m.append("form_id",this.form_id),m.append("element_id",c.element),m.append("nonce",t),p.each(l,function(t,n){var o=c.progress_bar(n,h),e=c.form.find(".upload-container-"+c.element+" li").length,r=void 0!==f.data("filetype")?f.data("filetype"):"",i=new RegExp("(.*?).("+r+")$");if(void 0!==f.data("size")&&f.data("size")<=n.size)return s=f.data("size-message"),void c.upload_fail_response(o,s);if(!i.test(n.name))return s="."+n.name.split(".").pop()+" "+f.data("filetype-message"),void c.upload_fail_response(o,s);if("ajax"===h)m.delete(c.element),m.delete("totalFiles"),m.append("totalFiles",e),m.append(c.element,n),u.push(p.ajax({xhr:function(){var t=new b.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total*100;e<90&&c.form.find("#"+o+" .progress-percentage").html(Math.round(e)+"% of ")}},!1),t},type:"POST",url:b.ForminatorFront.ajaxUrl,data:m,cache:!1,contentType:!1,processData:!1,beforeSend:function(){c.form.find(".forminator-button-submit").attr("disabled",!0),c.$el.trigger("before:forminator:multiple:upload",m)},success:function(t){var e=c.element,r={success:t.success,message:"undefined"!==t.data.message?t.data.message:"",file_id:o,file_name:n.name};c.add_upload_file(e,r),!0===t.success&&!0===t.data.success&&void 0!==t.data?(c.upload_success_response(o),c.$el.trigger("success:forminator:multiple:upload",m)):(c.upload_fail_response(o,t.data.message),void 0!==t.data.error_type&&"limit"===t.data.error_type&&c.form.find("#"+o).addClass("forminator-upload-limit_error"),c.$el.trigger("fail:forminator:multiple:upload",m))},complete:function(t,e){d++,l.length===d&&c.form.find(".forminator-button-submit").attr("disabled",!1),c.$el.trigger("complete:forminator:multiple:upload",m)},error:function(t){c.upload_fail_response(o,b.ForminatorFront.cform.process_error)}}));else{var a=!0,s=b.ForminatorFront.cform.process_error;void 0!==f.data("limit")&&f.data("limit")<e&&(a=!1,c.form.find("#"+o).addClass("forminator-upload-limit_error"),s=f.data("limit-message")),a?c.upload_success_response(o):c.upload_fail_response(o,s)}}),u},upload_fail_response:function(t,e){this.form.find("#"+t).addClass("forminator-has_error"),this.form.find("#"+t).find('.forminator-uploaded-file--size [class*="forminator-icon-"]').addClass("forminator-icon-warning").removeClass("forminator-icon-loader").removeClass("forminator-loading"),this.form.find("#"+t+" .progress-percentage").html("0% of "),this.form.find("#"+t+" .forminator-uploaded-file--content").after('<div class="forminator-error-message">'+e+"</div>")},upload_success_response:function(t){this.form.find("#"+t+" .progress-percentage").html("100% of "),this.form.find("#"+t+' .forminator-uploaded-file--size [class*="forminator-icon-"]').remove(),this.form.find("#"+t+" .progress-percentage").remove()},progress_bar:function(t,e){var r="upload-process-"+Math.random().toString(36).substr(2,7),n=t.name,o=this.bytes_to_size(t.size,2),i=this.uploader.closest(".forminator-field").find(".forminator-uploaded-files"),a="";this.progress_image_preview(t,r);var s='<div class="forminator-uploaded-file--preview" aria-hidden="true"><span class="forminator-icon-file" aria-hidden="true"></span></div>';return function(t){switch(function(t){var e=t.split(".");return e[e.length-1]}(t).toLowerCase()){case"jpg":case"jpe":case"jpeg":case"png":case"gif":case"ico":return!0}return!1}(n)&&(s='<div class="forminator-uploaded-file--image" aria-hidden="true"><div class="forminator-img-preview" role="image"></div></div>'),a+='<li id="'+r+'" class="forminator-uploaded-file">',a+='<div class="forminator-uploaded-file--content">',a+=s,a+='<div class="forminator-uploaded-file--text">',a+='<p class="forminator-uploaded-file--title">'+n+"</p>",a+='<p class="forminator-uploaded-file--size"><span class="forminator-icon-loader forminator-loading" aria-hidden="true"></span><span class="progress-percentage">29% of </span>'+o+"</p>",a+="</div>",a+='<button type="button" class="forminator-uploaded-file--delete forminator-button-delete" data-method="'+e+'" data-element="'+this.element+'" data-value="'+r+'"><span class="forminator-icon-close" aria-hidden="true"></span><span class="forminator-screen-reader-only">Delete uploaded file</span></button>',a+="</div>",a+="</li>",i.hasClass(".forminator-has-files")||i.addClass("forminator-has-files"),i.append(a),r},bytes_to_size:function(t,e){if(0===t)return"0 Bytes";var r=e<0?0:e,n=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,n)).toFixed(r))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},progress_image_preview:function(t,e){if(t){var r=new FileReader;r.onload=function(t){p("#"+e+" .forminator-img-preview").css("background-image","url("+t.target.result+")")},r.readAsDataURL(t)}},get_uplaoded_files:function(){var t;return t=void 0===(t=this.form.find(".forminator-multifile-hidden").val())||""===t?{}:p.parseJSON(t)},get_uplaoded_file:function(t){var e=this.get_uplaoded_files();return void 0===e[t]&&(e[t]=[]),e[t]},add_upload_file:function(t,e){var r=this.get_uplaoded_file(t);r.unshift(e),this.set_upload_file(t,r)},set_upload_file:function(t,e){var r=this.get_uplaoded_files(),n=this.form.find(".forminator-multifile-hidden");r[t]=e,n.val(JSON.stringify(r))},get_uploaded_file_id:function(t,r){var n=null,e=this.get_uplaoded_file(t);return p.each(e,function(t,e){r===e.file_id&&(n=t)}),n},delete_files:function(d,m){var h=this;p(f).on("click",".forminator-uploaded-file--delete",function(t){t.preventDefault();var e=p(this),r=e.data("value"),n=e.data("method"),o=e.data("element");if(void 0!==r&&void 0!==o&&void 0!==n){var i=h.form.find("#"+r).index(),a=p(e).closest("li#"+r),s=h.get_uplaoded_files();if(s&&"ajax"===n){var l=h.form.find(".forminator-multifile-hidden");if(void 0!==m[i]&&(m[i].abort(),m.splice(i,1)),void 0!==l){var f=h.get_uploaded_file_id(o,r);""!==f&&null!==f&&s[o].splice(f,1),l.val(JSON.stringify(s))}}void 0!==n&&"submission"===n&&h.remove_object(i,d,o),p(a).remove()}var u=h.form.find(".forminator-field-"+h.element+"-"+h.form_id);if(void 0!==u.data("limit")){var c=h.form.find(".upload-container-"+o+" li");p.each(c,function(t){if(u.data("limit")>t&&p(this).hasClass("forminator-upload-limit_error")){var e=p(this).attr("id"),r=h.get_uploaded_file_id(o,e);p(this).removeClass("forminator-has_error"),p(this).find(".forminator-error-message, .forminator-icon-warning, .progress-percentage").remove(),""!==r&&null!==r&&void 0!==s[o][r]&&(s[o][r].success=!0)}}),l.val(JSON.stringify(s))}})},remove_object:function(t,e,r){var n=f.querySelector(".forminator-field-"+r+"-"+this.form_id);if(void 0!==n){var o=n.files;if(0<o.length){var i=Array.prototype.slice.call(o);e.splice(t,1),i.splice(t,1),n.files=this.FileObjectItem(i)}}},FileObjectItem:function(t){for(var e,r=e=(t=(t=[].slice.call(Array.isArray(t)?t:arguments)).reverse()).length,n=!0;r--&&n;)n=t[r]instanceof File;if(!n)throw new TypeError("expected argument to FileList is File or array of File objects");for(r=new ClipboardEvent("").clipboardData||new DataTransfer;e--;)r.items.add(t[e]);return r.files}}),p.fn[r]=function(t){return this.each(function(){p.data(this,r)||p.data(this,r,new e(this,t))})}}(jQuery,window,document);
|
1 |
+
!function i(a,s,l){function f(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=s[e]={exports:{}};a[e][0].call(o.exports,function(t){return f(a[e][1][t]||t)},o,o.exports,i,a,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)f(l[t]);return f}({1:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=d(t("./parser/front.calculator.parser.tokenizer")),o=d(t("./symbol/front.calculator.symbol.loader")),i=d(t("./parser/front.calculator.parser")),a=d(t("./symbol/front.calculator.symbol.number")),s=d(t("./symbol/abstract/front.calculator.symbol.constant.abstract")),l=d(t("./parser/node/front.calculator.parser.node.symbol")),f=d(t("./symbol/abstract/front.calculator.symbol.operator.abstract")),u=d(t("./symbol/front.calculator.symbol.separator")),p=d(t("./parser/node/front.calculator.parser.node.function")),c=d(t("./parser/node/front.calculator.parser.node.container"));function d(t){return t&&t.__esModule?t:{default:t}}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var h=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.term=t,this.tokenizer=new n.default(this.term),this.symbolLoader=new o.default,this.parser=new i.default(this.symbolLoader)}return function(t,e,r){e&&m(t.prototype,e),r&&m(t,r)}(e,[{key:"parse",value:function(){this.tokenizer.input=this.term,this.tokenizer.reset();var t=this.tokenizer.tokenize();if(0===t.length)throw"Error: Empty token of calculator term.";var e=this.parser.parse(t);if(e.isEmpty())throw"Error: Empty nodes of calculator tokens.";return e}},{key:"calculate",value:function(){var t=this.parse();return!1===t?0:this.calculateNode(t)}},{key:"calculateNode",value:function(t){if(t instanceof l.default)return this.calculateSymbolNode(t);if(t instanceof p.default)return this.calculateFunctionNode(t);if(t instanceof c.default)return this.calculateContainerNode(t);throw'Error: Cannot calculate node of unknown type "'+t.constructor.name+'"'}},{key:"calculateContainerNode",value:function(t){if(t instanceof p.default)throw"Error: Expected container node but got a function node";for(var e=0,r=t.childNodes,n=this.detectCalculationOrder(r),o=0;o<n.length;o++){for(var i=n[o].node,a=n[o].index,s=null,l=null,f=0;f!==a;)void 0!==r[f]&&(s=r[f],l=f),f++;for(f++;void 0===r[f];)f++;var u=r[f],c=f,d=isNaN(u)?this.calculateNode(u):u,m=i.symbol;if(i.isUnaryOperator)e=m.operate(null,d),delete r[c],r[a]=e;else if(null!==l&&null!==s){var h=isNaN(s)?this.calculateNode(s):s;e=m.operate(h,d),delete r[l],delete r[c],r[a]=e}}if(0===(r=r.filter(function(t){return void 0!==t})).length)throw"Error: Missing calculable subterm. Are there empty brackets?";if(1<r.length)throw"Error: Missing operators between parts of the term.";return e=r.pop(),isNaN(e)?this.calculateNode(e):e}},{key:"calculateFunctionNode",value:function(t){for(var e=t.childNodes,r=[],n=[],o=null,i=0;i<e.length;i++){var a=e[i];a instanceof l.default&&a.symbol instanceof u.default?(o=new c.default(n),r.push(this.calculateNode(o)),n=[]):n.push(a)}return 0<n.length&&(o=new c.default(n),r.push(this.calculateNode(o))),t.symbolNode.symbol.execute(r)}},{key:"calculateSymbolNode",value:function(t){var e=t.symbol,r=0;if(e instanceof a.default)r=t.token.value,r=Number(r);else{if(!(e instanceof s.default))throw'Error: Found symbol of unexpected type "'+e.constructor.name+'", expected number or constant';r=e.value}return r}},{key:"detectCalculationOrder",value:function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n instanceof l.default&&n.symbol instanceof f.default){var o={index:r,node:n};e.push(o)}}return e.sort(function(t,e){var r=t.node,n=e.node,o=r.symbol,i=2;r.isUnaryOperator&&(i=3);var a=n.symbol,s=2;return n.isUnaryOperator&&(s=3),i===s&&(i=o.precedence,s=a.precedence),i===s?r.token.position<n.token.position?-1:1:i<s?1:-1}),e}}]),e}();r.default=h,void 0===window.forminatorCalculator&&(window.forminatorCalculator=function(t){return new h(t)})},{"./parser/front.calculator.parser":2,"./parser/front.calculator.parser.tokenizer":4,"./parser/node/front.calculator.parser.node.container":6,"./parser/node/front.calculator.parser.node.function":7,"./parser/node/front.calculator.parser.node.symbol":8,"./symbol/abstract/front.calculator.symbol.constant.abstract":10,"./symbol/abstract/front.calculator.symbol.operator.abstract":12,"./symbol/front.calculator.symbol.loader":16,"./symbol/front.calculator.symbol.number":17,"./symbol/front.calculator.symbol.separator":18}],2:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var c=n(t("./front.calculator.parser.token")),d=n(t("../symbol/front.calculator.symbol.number")),m=n(t("../symbol/brackets/front.calculator.symbol.opening.bracket")),h=n(t("../symbol/brackets/front.calculator.symbol.closing.bracket")),p=n(t("../symbol/abstract/front.calculator.symbol.function.abstract")),a=n(t("../symbol/abstract/front.calculator.symbol.operator.abstract")),s=n(t("../symbol/front.calculator.symbol.separator")),b=n(t("./node/front.calculator.parser.node.symbol")),l=n(t("./node/front.calculator.parser.node.container")),f=n(t("./node/front.calculator.parser.node.function"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.symbolLoader=t}return function(t,e,r){e&&o(t.prototype,e),r&&o(t,r)}(e,[{key:"parse",value:function(t){var e=this.detectSymbols(t),r=this.createTreeByBrackets(e);return r=this.transformTreeByFunctions(r),this.checkGrammar(r),new l.default(r)}},{key:"detectSymbols",value:function(t){for(var e=[],r=null,n=null,o=!1,i=0,a=0;a<t.length;a++){var s=t[a],l=s.type;if(c.default.TYPE_WORD===l){if(n=s.value,null===(r=this.symbolLoader.find(n)))throw"Error: Detected unknown or invalid string identifier: "+n+"."}else if(l===c.default.TYPE_NUMBER){var f=this.symbolLoader.findSubTypes(d.default);if(f.length<1||!(f instanceof Array))throw"Error: Unavailable number symbol processor.";r=f[0]}else{if(n=s.value,null===(r=this.symbolLoader.find(n)))throw"Error: Detected unknown or invalid string identifier: "+n+".";if(r instanceof m.default&&i++,r instanceof h.default&&--i<0)throw"Error: Found closing bracket that does not have an opening bracket."}if(o){if(!(r instanceof m.default))throw"Error: Expected opening bracket (after a function) but got something else.";o=!1}else r instanceof p.default&&(o=!0);var u=new b.default(s,r);e.push(u)}if(o)throw"Error: Expected opening bracket (after a function) but reached the end of the term";if(0<i)throw"Error: There is at least one opening bracket that does not have a closing bracket";return e}},{key:"createTreeByBrackets",value:function(t){for(var e=[],r=[],n=0,o=0;o<t.length;o++){var i=t[o];if(!(i instanceof b.default))throw'Error: Expected symbol node, but got "'+i.constructor.name+'"';if(i.symbol instanceof m.default)1<++n&&r.push(i);else if(i.symbol instanceof h.default)if(0===--n){var a=this.createTreeByBrackets(r);e.push(new l.default(a)),r=[]}else r.push(i);else 0===n?e.push(i):r.push(i)}return e}},{key:"transformTreeByFunctions",value:function(t){for(var e=[],r=null,n=0;n<t.length;n++){var o=t[n];if(o instanceof l.default){var i=this.transformTreeByFunctions(o.childNodes);if(null!==r){var a=new f.default(i,r);e.push(a),r=null}else o.childNodes=i,e.push(o)}else{if(!(o instanceof b.default))throw'Error: Expected array node or symbol node, got "'+o.constructor.name+'"';o.symbol instanceof p.default?r=o:e.push(o)}}return e}},{key:"checkGrammar",value:function(t){for(var e=0;e<t.length;e++){var r=t[e];if(r instanceof b.default){var n=r.symbol;if(n instanceof a.default){if(e+1>=t.length)throw"Error: Found operator that does not stand before an operand.";var o=e-1,i=null;if(0<=o&&(i=t[o])instanceof b.default&&(i.symbol instanceof a.default||i.symbol instanceof s.default)&&(i=null),null===i){if(!n.operatesUnary)throw"Error: Found operator in unary notation that is not unary.";r.setIsUnaryOperator(!0)}else if(!n.operatesBinary)throw console.log(n),"Error: Found operator in binary notation that is not binary."}}else this.checkGrammar(r.childNodes)}}}]),e}();r.default=i},{"../symbol/abstract/front.calculator.symbol.function.abstract":11,"../symbol/abstract/front.calculator.symbol.operator.abstract":12,"../symbol/brackets/front.calculator.symbol.closing.bracket":13,"../symbol/brackets/front.calculator.symbol.opening.bracket":14,"../symbol/front.calculator.symbol.number":17,"../symbol/front.calculator.symbol.separator":18,"./front.calculator.parser.token":3,"./node/front.calculator.parser.node.container":6,"./node/front.calculator.parser.node.function":7,"./node/front.calculator.parser.node.symbol":8}],3:[function(t,e,r){"use strict";function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(){function n(t,e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.type=t,this.value=e,this.position=r}return function(t,e,r){e&&o(t.prototype,e),r&&o(t,r)}(n,null,[{key:"TYPE_WORD",get:function(){return 1}},{key:"TYPE_CHAR",get:function(){return 2}},{key:"TYPE_NUMBER",get:function(){return 3}}]),n}();r.default=n},{}],4:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.parser.token"))&&n.__esModule?n:{default:n};function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.currentPosition=0}return function(t,e,r){e&&i(t.prototype,e),r&&i(t,r)}(e,[{key:"tokenize",value:function(){this.reset();for(var t=[],e=this.readToken();e;)t.push(e),e=this.readToken();return t}},{key:"readToken",value:function(){this.stepOverWhitespace();var t=this.readCurrent();if(null===t)return null;var e=null,r=null;return r=this.isLetter(t)?(e=this.readWord(),o.default.TYPE_WORD):this.isDigit(t)||this.isPeriod(t)?(e=this.readNumber(),o.default.TYPE_NUMBER):(e=this.readChar(),o.default.TYPE_CHAR),new o.default(r,e,this.currentPosition)}},{key:"isLetter",value:function(t){if(null===t)return!1;var e=t.charCodeAt(0);return 65<=e&&e<=90||97<=e&&e<=122}},{key:"isDigit",value:function(t){if(null===t)return!1;var e=t.charCodeAt(0);return 48<=e&&e<=57}},{key:"isPeriod",value:function(t){return"."===t}},{key:"isWhitespace",value:function(t){return 0<=[" ","\t","\n"].indexOf(t)}},{key:"stepOverWhitespace",value:function(){for(;this.isWhitespace(this.readCurrent());)this.readNext()}},{key:"readWord",value:function(){for(var t="",e=this.readCurrent();null!==e&&this.isLetter(e);)t+=e,e=this.readNext();return t}},{key:"readNumber",value:function(){for(var t="",e=!1,r=this.readCurrent();null!==r&&(this.isPeriod(r)||this.isDigit(r));){if(this.isPeriod(r)){if(e)throw"Error: A number cannot have more than one period";e=!0}t+=r,r=this.readNext()}return t}},{key:"readChar",value:function(){var t=this.readCurrent();return this.readNext(),t}},{key:"readCurrent",value:function(){var t=null;return this.hasCurrent()&&(t=this.input[this.currentPosition]),t}},{key:"readNext",value:function(){return this.currentPosition++,this.readCurrent()}},{key:"hasCurrent",value:function(){return this.currentPosition<this.input.length}},{key:"reset",value:function(){this.currentPosition=0}}]),e}();r.default=a},{"./front.calculator.parser.token":3}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}},{}],6:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.parser.node.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=s(this,l(r).call(this))).childNodes=null,e.setChildNodes(t),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(r,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(r,[{key:"setChildNodes",value:function(t){t.forEach(function(t){if(!(t instanceof o.default))throw"Expected AbstractNode, but got "+t.constructor.name}),this.childNodes=t}},{key:"size",value:function(){try{return this.childNodes.length}catch(t){return 0}}},{key:"isEmpty",value:function(){return!this.size()}}]),r}();r.default=u},{"./front.calculator.parser.node.abstract":5}],7:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.parser.node.container"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function n(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=a(this,s(n).call(this,t))).symbolNode=e,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,o.default),n}();r.default=f},{"./front.calculator.parser.node.container":6}],8:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(t("../../symbol/abstract/front.calculator.symbol.operator.abstract")),i=n(t("./front.calculator.parser.node.abstract"));function n(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(){function n(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=l(this,f(n).call(this))).token=t,r.symbol=e,r.isUnaryOperator=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(n,i.default),function(t,e,r){e&&s(t.prototype,e),r&&s(t,r)}(n,[{key:"setIsUnaryOperator",value:function(t){if(!(this.symbol instanceof o.default))throw"Error: Cannot mark node as unary operator, because symbol is not an operator but of type "+this.symbol.constructor.name;this.isUnaryOperator=t}}]),n}();r.default=c},{"../../symbol/abstract/front.calculator.symbol.operator.abstract":12,"./front.calculator.parser.node.abstract":5}],9:[function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.identifiers=[]}return function(t,e,r){e&&n(t.prototype,e),r&&n(t,r)}(t,[{key:"getIdentifiers",value:function(){var e=[];return this.identifiers.forEach(function(t){e.push(t.toLowerCase())}),e}}]),t}();r.default=o},{}],10:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).value=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"./front.calculator.symbol.abstract":9}],11:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(t,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(t,[{key:"execute",value:function(t){return 0}}]),t}();r.default=u},{"./front.calculator.symbol.abstract":9}],12:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).precedence=0,t.operatesUnary=!1,t.operatesBinary=!0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return 0}}]),e}();r.default=u},{"./front.calculator.symbol.abstract":9}],13:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=[")"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"../abstract/front.calculator.symbol.abstract":9}],14:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=["("],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"../abstract/front.calculator.symbol.abstract":9}],15:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.constant.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=["pi"],t.value=Math.PI,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"../abstract/front.calculator.symbol.constant.abstract":10}],16:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=w(t("./front.calculator.symbol.number")),o=w(t("./front.calculator.symbol.separator")),i=w(t("./brackets/front.calculator.symbol.opening.bracket")),a=w(t("./brackets/front.calculator.symbol.closing.bracket")),s=w(t("./constants/front.calculator.symbol.constant.pi")),l=w(t("./operators/front.calculator.symbol.operator.addition")),f=w(t("./operators/front.calculator.symbol.operator.division")),u=w(t("./operators/front.calculator.symbol.operator.exponentiation")),c=w(t("./operators/front.calculator.symbol.operator.modulo")),d=w(t("./operators/front.calculator.symbol.operator.multiplication")),m=w(t("./operators/front.calculator.symbol.operator.subtraction")),h=w(t("./functions/front.calculator.symbol.function.abs")),p=w(t("./functions/front.calculator.symbol.function.avg")),b=w(t("./functions/front.calculator.symbol.function.ceil")),_=w(t("./functions/front.calculator.symbol.function.floor")),g=w(t("./functions/front.calculator.symbol.function.max")),y=w(t("./functions/front.calculator.symbol.function.min")),v=w(t("./functions/front.calculator.symbol.function.round"));function w(t){return t&&t.__esModule?t:{default:t}}function C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var O=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.symbols={FrontCalculatorSymbolNumber:new n.default,FrontCalculatorSymbolSeparator:new o.default,FrontCalculatorSymbolOpeningBracket:new i.default,FrontCalculatorSymbolClosingBracket:new a.default,FrontCalculatorSymbolConstantPi:new s.default,FrontCalculatorSymbolOperatorAddition:new l.default,FrontCalculatorSymbolOperatorDivision:new f.default,FrontCalculatorSymbolOperatorExponentiation:new u.default,FrontCalculatorSymbolOperatorModulo:new c.default,FrontCalculatorSymbolOperatorMultiplication:new d.default,FrontCalculatorSymbolOperatorSubtraction:new m.default,FrontCalculatorSymbolFunctionAbs:new h.default,FrontCalculatorSymbolFunctionAvg:new p.default,FrontCalculatorSymbolFunctionCeil:new b.default,FrontCalculatorSymbolFunctionFloor:new _.default,FrontCalculatorSymbolFunctionMax:new g.default,FrontCalculatorSymbolFunctionMin:new y.default,FrontCalculatorSymbolFunctionRound:new v.default}}return function(t,e,r){e&&C(t.prototype,e),r&&C(t,r)}(t,[{key:"find",value:function(t){for(var e in t=t.toLowerCase(),this.symbols)if(this.symbols.hasOwnProperty(e)){var r=this.symbols[e];if(0<=r.getIdentifiers().indexOf(t))return r}return null}},{key:"findSubTypes",value:function(t){var e=[];for(var r in this.symbols)if(this.symbols.hasOwnProperty(r)){var n=this.symbols[r];n instanceof t&&e.push(n)}return e}}]),t}();r.default=O},{"./brackets/front.calculator.symbol.closing.bracket":13,"./brackets/front.calculator.symbol.opening.bracket":14,"./constants/front.calculator.symbol.constant.pi":15,"./front.calculator.symbol.number":17,"./front.calculator.symbol.separator":18,"./functions/front.calculator.symbol.function.abs":19,"./functions/front.calculator.symbol.function.avg":20,"./functions/front.calculator.symbol.function.ceil":21,"./functions/front.calculator.symbol.function.floor":22,"./functions/front.calculator.symbol.function.max":23,"./functions/front.calculator.symbol.function.min":24,"./functions/front.calculator.symbol.function.round":25,"./operators/front.calculator.symbol.operator.addition":26,"./operators/front.calculator.symbol.operator.division":27,"./operators/front.calculator.symbol.operator.exponentiation":28,"./operators/front.calculator.symbol.operator.modulo":29,"./operators/front.calculator.symbol.operator.multiplication":30,"./operators/front.calculator.symbol.operator.subtraction":31}],17:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,s(t).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(t,o.default),t}();r.default=f},{"./abstract/front.calculator.symbol.abstract":9}],18:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./abstract/front.calculator.symbol.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,s(e).call(this))).identifiers=[","],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o.default),e}();r.default=f},{"./abstract/front.calculator.symbol.abstract":9}],19:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["abs"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;var e=t[0];return Math.abs(e)}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],20:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["avg"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;for(var e=0,r=0;r<t.length;r++)e+=t[r];return e/t.length}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],21:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["ceil"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.ceil(t[0])}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],22:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["floor"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.floor(t[0])}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],23:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,f(e).call(this))).identifiers=["max"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,o.default),function(t,e,r){e&&s(t.prototype,e),r&&s(t,r)}(e,[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;return Math.max.apply(Math,a(t))}}]),e}();r.default=c},{"../abstract/front.calculator.symbol.function.abstract":11}],24:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,f(e).call(this))).identifiers=["min"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,o.default),function(t,e,r){e&&s(t.prototype,e),r&&s(t,r)}(e,[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;return Math.min.apply(Math,a(t))}}]),e}();r.default=c},{"../abstract/front.calculator.symbol.function.abstract":11}],25:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.function.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["round"],t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.round(t[0])}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.function.abstract":11}],26:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["+"],t.precedence=100,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t+e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],27:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["/"],t.precedence=200,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t/e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],28:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["^"],t.precedence=300,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return Math.pow(t,e)}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],29:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["%"],t.precedence=200,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t%e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],30:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["*"],t.precedence=200,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t*e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}],31:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("../abstract/front.calculator.symbol.operator.abstract"))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).call(this))).identifiers=["-"],t.precedence=100,t.operatesUnary=!0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,o.default),function(t,e,r){e&&a(t.prototype,e),r&&a(t,r)}(e,[{key:"operate",value:function(t,e){return t-e}}]),e}();r.default=u},{"../abstract/front.calculator.symbol.operator.abstract":12}]},{},[1]),[].includes||(Array.prototype.includes=function(t,e){"use strict";var r=Object(this),n=parseInt(r.length)||0;if(0===n)return!1;var o,i=parseInt(e)||0;for(0<=i?o=i:(o=n+i)<0&&(o=0);o<n;){var a=r[o];if(t===a||t!=t&&a!=a)return!0;o++}return!1}),function(s,l,f){"use strict";var r="forminatorLoader",n={action:"",type:"",id:"",render_id:"",is_preview:"",preview_data:[],nonce:!1,last_submit_data:{},extra:{}};function e(t,e){this.element=t,this.$el=s(this.element),this.settings=s.extend({},n,e),this._defaults=n,this._name=r,this.frontInitCalled=!1,this.scriptsQue=[],this.frontOptions=null,this.leadFrontOptions=null,this.init()}s.extend(e.prototype,{init:function(){var t=f.location.search.replace(/(^\?)/,"").split("&").map(function(t){return this[(t=t.split("="))[0]]=t[1],this}.bind({}))[0];t.action=this.settings.action,t.type=this.settings.type,t.id=this.settings.id,t.render_id=this.settings.render_id,t.is_preview=this.settings.is_preview,t.preview_data=JSON.stringify(this.settings.preview_data),t.last_submit_data=this.settings.last_submit_data,t.extra=this.settings.extra,t.nonce=this.settings.nonce,void 0!==this.settings.has_lead&&(t.has_lead=this.settings.has_lead,t.leads_id=this.settings.leads_id),this.load_ajax(t)},load_ajax:function(i){var a=this;s.ajax({type:"POST",url:l.ForminatorFront.ajaxUrl,data:i,cache:!1,beforeSend:function(){s(f).trigger("before.load.forminator",i.id)},success:function(t){if(t.success){var e=t.data;if(s(f).trigger("response.success.load.forminator",i.id,t),!e.is_ajax_load)return!1;var r=[];if(void 0===e.pagination_config&&void 0!==e.options.pagination_config&&(r=e.options.pagination_config),r&&(l.Forminator_Cform_Paginations=l.Forminator_Cform_Paginations||[],l.Forminator_Cform_Paginations[i.id]=r),a.frontOptions=e.options||null,void 0===l.Forminator_Cform_Paginations&&a.frontOptions.pagination_config&&(l.Forminator_Cform_Paginations=l.Forminator_Cform_Paginations||[],l.Forminator_Cform_Paginations[i.id]=a.frontOptions.pagination_config),void 0!==e.lead_options&&(a.leadFrontOptions=e.lead_options||null,void 0===l.Forminator_Cform_Paginations&&a.leadFrontOptions.pagination_config&&(l.Forminator_Cform_Paginations=l.Forminator_Cform_Paginations||[],l.Forminator_Cform_Paginations[i.leads_id]=a.leadFrontOptions.pagination_config)),e.html){var n=e.style||null,o=e.script||null;a.render_html(e.html,n,o)}e.styles&&a.maybe_append_styles(e.styles),e.scripts&&a.maybe_append_scripts(e.scripts),!e.scripts&&a.frontOptions&&a.init_front()}else s(f).trigger("response.error.load.forminator",i.id,t)},error:function(){s(f).trigger("request.error.load.forminator",i.id)}}).always(function(){s(f).trigger("after.load.forminator",i.id)})},render_html:function(t,e,r){var n=this.settings.id,o=this.settings.render_id,i="",a=null;(a=this.$el.find(".forminator-response-message")).length&&(i=a.get(0).outerHTML),(a=this.$el.find(".forminator-poll-response-message")).length&&(i=a.get(0).outerHTML),this.$el.parent().hasClass("forminator-guttenberg")?this.$el.parent().html(t):this.$el.replaceWith(t),i&&(s("#forminator-module-"+n+"[data-forminator-render="+o+"] .forminator-response-message").replaceWith(i),s("#forminator-module-"+n+"[data-forminator-render="+o+"] .forminator-poll-response-message").replaceWith(i)),e&&(s("style#forminator-module-"+n).length&&s("style#forminator-module-"+n).remove(),s("body").append(e)),r&&s("body").append(r)},maybe_append_styles:function(t){for(var e in t)if(t.hasOwnProperty(e)&&!s("link#"+e).length){var r=s("<link>");r.attr("rel","stylesheet"),r.attr("id",e),r.attr("type","text/css"),r.attr("media","all"),r.attr("href",t[e].src),s("head").append(r)}},maybe_append_scripts:function(t){var e=[];for(var r in t)if(t.hasOwnProperty(r)){var n=t[r].on,o=t[r].load;if("window"===n){if(l[o])continue}else if("$"===n&&s.fn[o])continue;var i={};i.src=t[r].src,e.push(i),this.scriptsQue.push(r)}if(this.scriptsQue.length)for(var a in e)e.hasOwnProperty(a)&&this.load_script(e[a]);else this.init_front()},load_script:function(t){var e=this,r=f.createElement("script"),n=f.getElementsByTagName("body")[0];r.type="text/javascript",r.src=t.src,r.async=!0,r.defer=!0,r.onload=function(){e.script_on_load()},n.appendChild(r)},script_on_load:function(){this.scriptsQue.pop(),this.scriptsQue.length||this.init_front()},init_front:function(){if(!this.frontInitCalled){this.frontInitCalled=!0;var t=this.settings.id,e=this.settings.render_id,r=this.frontOptions||null,n=this.leadFrontOptions||null;if(r&&s("#forminator-module-"+t+"[data-forminator-render="+e+"]").forminatorFront(r),void 0!==this.settings.has_lead&&n){var o=this.settings.leads_id;s("#forminator-module-"+o+"[data-forminator-render="+e+"]").forminatorFront(n)}this.init_window_vars()}},init_window_vars:function(){if("undefined"!=typeof ForminatorValidationErrors){var t=jQuery(ForminatorValidationErrors.selector).data("forminatorFrontSubmit");void 0!==t&&t.show_messages(ForminatorValidationErrors.errors)}if("undefined"!=typeof ForminatorFormHider){var e=jQuery(ForminatorFormHider.selector).data("forminatorFront");void 0!==e&&e.hide()}}}),s.fn[r]=function(t){return this.each(function(){s.data(this,r)||s.data(this,r,new e(this,t))})}}(jQuery,window,document),function(c,a,n){"use strict";var r="forminatorFront",o={form_type:"custom-form",rules:{},messages:{},conditions:{},inline_validation:!1,chart_design:"bar",chart_options:{},forminator_fields:[],max_nested_formula:5,general_messages:{calculation_error:"Failed to calculate field.",payment_require_ssl_error:"SSL required to submit this form, please check your URL.",payment_require_amount_error:"PayPal amount must be greater than 0."},payment_require_ssl:!1};function e(t,e){this.element=t,this.$el=c(this.element),this.forminator_selector="#"+c(this.element).attr("id")+'[data-forminator-render="'+c(this.element).data("forminator-render")+'"]',this.forminator_loader_selector='div[data-forminator-render="'+c(this.element).data("forminator-render")+'"][data-form="'+c(this.element).attr("id")+'"]',this.settings=c.extend({},o,e),void 0!==this.settings.messages&&(this.settings.messages=this.maybeParseStringToJson(this.settings.messages,"object")),void 0!==this.settings.rules&&(this.settings.rules=this.maybeParseStringToJson(this.settings.rules,"object")),void 0!==this.settings.calendar&&(this.settings.calendar=this.maybeParseStringToJson(this.settings.calendar,"array")),this._defaults=o,this._name=r,this.form_id=0,this.template_type="",this.init()}c.extend(e.prototype,{init:function(){var t=this;switch(0<this.$el.find("input[name=form_id]").length&&(this.form_id=this.$el.find("input[name=form_id]").val()),0<this.$el.find("input[name=form_type]").length&&(this.template_type=this.$el.find("input[name=form_type]").val()),c(this.forminator_loader_selector).remove(),0===this.$el.closest(".wph-modal").length&&this.$el.show(),c(n).on("hustle:module:displayed",function(t,e){c(".wph-modal-active").find("form").css("display","")}),setTimeout(function(){c(".wph-modal-active").find("form").css("display","")},10),this.settings.form_type){case"custom-form":this.init_custom_form();break;case"poll":this.init_poll_form();break;case"quiz":this.init_quiz_form()}var e={form_type:t.settings.form_type,forminator_selector:t.forminator_selector,chart_design:t.settings.chart_design,chart_options:t.settings.chart_options,fadeout:t.settings.fadeout,fadeout_time:t.settings.fadeout_time,has_quiz_loader:t.settings.has_quiz_loader,has_loader:t.settings.has_loader,loader_label:t.settings.loader_label,resetEnabled:t.settings.is_reset_enabled,inline_validation:t.settings.inline_validation};"leads"!==this.template_type&&"quiz"!==this.settings.form_type||(e.form_placement=t.settings.form_placement,e.hasLeads=t.settings.hasLeads,e.leads_id=t.settings.leads_id,e.quiz_id=t.settings.quiz_id,e.skip_form=t.settings.skip_form),c(this.element).forminatorFrontSubmit(e),this.activate_field(),this.small_form()},init_custom_form:function(){var t=this;this.init_intlTelInput_validation(),this.settings.inline_validation&&c(this.element).forminatorFrontValidate({rules:t.settings.rules,messages:t.settings.messages}),c(this.element).forminatorFrontCalculate({forminatorFields:t.settings.forminator_fields,maxExpand:t.settings.max_nested_formula,generalMessages:t.settings.general_messages,memoizeTime:t.settings.calcs_memoize_time||300}),c(this.element).forminatorFrontMergeTags({forminatorFields:t.settings.forminator_fields}),this.init_pagination();var e=c(this.element).find('div[data-is-payment="true"], input[data-is-payment="true"]').first();if(e.length){var r=e.data("paymentType");"stripe"===r&&c(this.element).forminatorFrontPayment({type:r,paymentEl:e,paymentRequireSsl:t.settings.payment_require_ssl,generalMessages:t.settings.general_messages,fadeout_time:t.settings.fadeout_time,has_loader:t.settings.has_loader,loader_label:t.settings.loader_label}),"paypal"===r&&c(this.element).forminatorFrontPayPal({type:r,paymentEl:this.settings.paypal_config,paymentRequireSsl:t.settings.payment_require_ssl,generalMessages:t.settings.general_messages,has_loader:t.settings.has_loader,loader_label:t.settings.loader_label})}c(this.element).forminatorFrontCondition(this.settings.conditions,this.settings.calendar),this.init_fui(),c(this.element).find(".forminator-datepicker").forminatorFrontDatePicker(this.settings.calendar),this.responsive_captcha(),this.field_counter(),this.field_number(),this.field_time(),c(this.element).find(".forminator-multi-upload").forminatorFrontMultiFile(this.$el),this.upload_field(),c(a).on("resize",function(){t.responsive_captcha()}),void 0!==t.settings.hasLeads&&("beginning"===t.settings.form_placement&&c("#forminator-module-"+this.settings.quiz_id).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),"end"===t.settings.form_placement&&c(this.element).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}))},init_poll_form:function(){var i=this,a=this.$el.find("fieldset"),t=this.$el.find(".forminator-radio input"),s=this.$el.find(".forminator-input"),l=s.closest(".forminator-field");FUI.inputStates(s),t.on("click",function(){l.addClass("forminator-hidden"),l.attr("aria-hidden","true"),s.removeAttr("tabindex"),s.attr("name","");var t=this.checked,e=c(this).attr("id"),r=c(this).attr("name");if(a.removeClass("forminator-has_error"),i.$el.find(".forminator-input#"+e+"-extra").length){var n=i.$el.find(".forminator-input#"+e+"-extra"),o=n.closest(".forminator-field");t?(n.attr("name",r+"-extra"),o.removeClass("forminator-hidden"),o.removeAttr("aria-hidden"),n.attr("tabindex","-1"),n.focus()):(o.addClass("forminator-hidden"),o.attr("aria-hidden","true"),n.removeAttr("tabindex"))}return!0}),this.$el.hasClass("forminator-poll-disabled")&&this.$el.find(".forminator-radio").each(function(){c(this).addClass("forminator-disabled"),c(this).find("input").attr("disabled",!0)})},init_quiz_form:function(){var n=this,t=void 0!==n.settings.form_placement?n.settings.form_placement:"",e=void 0!==n.settings.quiz_id?n.settings.quiz_id:0;this.$el.find(".forminator-button").each(function(){c(this).prop("disabled",!0)}),this.$el.find(".forminator-answer input").each(function(){c(this).attr("checked",!1)}),this.$el.find(".forminator-result--info button").on("click",function(){location.reload()}),"end"!==t&&this.$el.find(".forminator-submit-rightaway").click(function(){n.$el.submit(),c(this).closest(".forminator-question").find(".forminator-submit-rightaway").addClass("forminator-has-been-disabled").attr("disabled","disabled")}),n.settings.hasLeads&&("beginning"===t&&n.$el.css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),"end"===t&&(n.$el.closest("div").find("#forminator-module-"+n.settings.leads_id).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),c("#forminator-quiz-leads-"+e+" .forminator-lead-form-skip").hide())),this.$el.on("click",".forminator-social--icon a",function(t){t.preventDefault();var e=c(this).data("social"),r=c(this).closest(".forminator-social--icons").data("url"),n=c(this).closest(".forminator-social--icons").data("message"),o={facebook:"https://www.facebook.com/sharer/sharer.php?u="+r+"&t="+(n=encodeURIComponent(n)),twitter:"https://twitter.com/intent/tweet?&url="+r+"&text="+n,google:"https://plus.google.com/share?url="+r,linkedin:"https://www.linkedin.com/shareArticle?mini=true&url="+r+"&title="+n};if(void 0!==o[e]){var i=a.open(o[e],e,"height="+c(a).height()+",width="+c(a).width());return a.focus&&i.focus(),!1}}),this.$el.on("change",".forminator-answer input",function(t){var e=0,r=n.$el.find(".forminator-question").length;n.$el.find(".forminator-answer input").each(function(){c(this).prop("checked")&&e++,e===r&&n.$el.find(".forminator-button").each(function(){c(this).prop("disabled",!1)})})})},small_form:function(){var t=c(this.element),e=t.width();if(783<Math.max(n.documentElement.clientWidth,a.innerWidth||0))if(t.hasClass("forminator-size--small"))480<e&&t.removeClass("forminator-size--small");else{var r=t.closest(".hustle-content");e<=480&&!r.length&&t.addClass("forminator-size--small")}},init_intlTelInput_validation:function(){var t=c(this.element),o=t.is(".forminator-design--material");t.find(".forminator-field--phone").each(function(){var t=c(this).data("national_mode"),e=c(this).data("country"),r=c(this).data("validation");if(void 0!==t){var n={nationalMode:"enabled"===t,initialCountry:void 0!==e?e:"us",utilsScript:a.ForminatorFront.cform.intlTelInput_utils_script};void 0!==r&&"standard"===r&&(n.allowDropdown=!1),c(this).intlTelInput(n),o?c(this).closest(".forminator-field").find("div.intl-tel-input").addClass("forminator-input-with-phone"):c(this).closest(".forminator-field").find("div.intl-tel-input").addClass("forminator-phone")}})},init_fui:function(){var t=c(this.element),e=t.find(".forminator-input"),r=t.find(".forminator-textarea"),n=t.find(".forminator-select"),o=t.find(".forminator-select2"),i=t.find(".forminator-multiselect"),a=t.find(".forminator-stripe-element"),s="default"===t.attr("data-design"),l="bold"===t.attr("data-design"),f="flat"===t.attr("data-design"),u="material"===t.attr("data-design");e.length&&e.each(function(){FUI.inputStates(this)}),r.length&&r.each(function(){FUI.textareaStates(this)}),o.length&&FUI.select2(),(s||l||f||u)&&n.length&&n.each(function(){FUI.select(this)}),i.length&&FUI.multiSelectStates(i),t.hasClass("forminator-design--material")&&(e.length&&e.each(function(){FUI.inputMaterial(this)}),r.length&&r.each(function(){FUI.textareaMaterial(this)}),a.length&&a.each(function(){var t=c(this).closest(".forminator-field"),e=t.find(".forminator-label");e.length&&(t.addClass("forminator-stripe-floating"),e.addClass("forminator-floating--input"))}))},responsive_captcha:function(){c(this.element).find(".forminator-g-recaptcha").each(function(){if(c(this).is(":visible")){var t=c(this).parent().width(),e=1;t<302&&(e=t/302),c(this).css("transform","scale("+e+")"),c(this).css("-webkit-transform","scale("+e+")"),c(this).css("transform-origin","0 0"),c(this).css("-webkit-transform-origin","0 0")}})},init_pagination:function(){var t=c(this.element).find(".forminator-pagination").length,e=a.location.hash,r=!1,n=0;0<t&&(void 0!==e&&0<=e.indexOf("step-")&&(r=!0,n=e.substr(6,8)),c(this.element).forminatorFrontPagination({totalSteps:t,hashStep:r,step:n,inline_validation:this.settings.inline_validation}))},activate_field:function(){var t=c(this.element),e=t.find(".forminator-input"),r=t.find(".forminator-textarea");function n(t){var n=c(t),o=n.val().trim(),i=n.closest(".forminator-field"),a=n.attr("data-field"),s=n.closest(".forminator-timepicker").parent(),l=i.find(".forminator-error-message");n.on("load change keyup keydown",function(t){if(void 0!==a&&!1!==a){if("hours"===n.data("field")){var e=s.find('.forminator-error-message[data-error-field="hours"]');""!==o&&0!==e.length&&e.remove()}if("minutes"===n.data("field")){var r=s.find('.forminator-error-message[data-error-field="minutes"]');""!==o&&0!==r.length&&r.remove()}}else""!==o&&l.text()&&(l.remove(),i.removeClass("forminator-has_error"));t.stopPropagation()})}function o(){t.find(".select2-container").hasClass("select2-container--open")?setTimeout(o,300):t.find(".select2-container").closest(".forminator-field").removeClass("forminator-is_active")}e.length&&e.each(function(){n(this)}),r.length&&r.each(function(){n(this)}),t.find(".forminator-select + .select2, .forminator-time + .select2").each(function(){var e=c(this);e.mouseover(function(t){t.stopPropagation(),c(this).closest(".forminator-field").addClass("forminator-is_hover")}).mouseout(function(t){t.stopPropagation(),c(this).closest(".forminator-field").removeClass("forminator-is_hover")}),e.on("click",function(t){t.stopPropagation(),o(),e.hasClass("select2-container--open")?c(this).closest(".forminator-field").addClass("forminator-is_active"):c(this).closest(".forminator-field").removeClass("forminator-is_active")})})},field_counter:function(){c(this.element).find(".forminator-input, .forminator-textarea").each(function(){var t=c(this),r=0;t.on("change keyup keydown",function(t){t.stopPropagation();var e=c(this).closest(".forminator-col").find(".forminator-description span");e.length&&e.data("limit")&&("words"!==e.data("type")?r=c(this).val().length:(r=c(this).val().trim().split(/\s+/).length,c(this).val().trim().split(/\s+/).length>=e.data("limit")&&32===t.which&&t.preventDefault()),e.html(r+" / "+e.data("limit")))})})},field_number:function(){var t=c(this.element);t.find("input[type=number]").each(function(){c(this).keypress(function(t){var e,r=[44,45,46],n=t.which;for(e=48;e<58;e++)r.push(e);0<=r.indexOf(n)||t.preventDefault()})}),t.find(".forminator-currency").each(function(){var e=c(this).data("decimals");c(this).change(function(t){this.value=parseFloat(this.value).toFixed(e)})})},field_time:function(){c(".forminator-input-time").on("input",function(t){var e=c(this),r=e.val();r&&2<=r.length&&e.val(r.substr(0,2))})},material_field:function(){},toggle_file_input:function(){c(this.element).find(".forminator-file-upload").each(function(){var t=c(this),e=t.find("input"),r=t.find(".forminator-button-delete");""!==e.val()?r.show():r.hide()})},upload_field:function(){var n=this,r=c(this.element);this.toggle_file_input(),r.find(".forminator-button-delete").on("click",function(t){t.preventDefault();var e=c(this),r=e.siblings("input"),n=e.closest(".forminator-file-upload").find("> span");r.val(""),n.html(n.data("empty-text")),e.hide()}),r.find(".forminator-input-file, .forminator-input-file-required").change(function(){var t=c(this).closest(".forminator-file-upload").find("> span"),e=c(this).val(),r=e.length?e.split("\\").pop():"";t.text(r),n.toggle_file_input()}),r.find(".forminator-button-upload").on("click",function(t){t.preventDefault();var e=c(this).attr("data-id");r.find("input#"+e).trigger("click")}),r.find(".forminator-input-file, .forminator-input-file-required").on("change",function(t){t.preventDefault();var e=c(this)[0].files.length,r=c(this).find(".forminator-button-delete");0===e?r.hide():r.show()})},renderCaptcha:function(t){var e=this;if(void 0===c(t).data("forminator-recapchta-widget")){var r=c(t).data("size"),n={sitekey:c(t).data("sitekey"),theme:c(t).data("theme"),size:r};if("invisible"===r&&(n.badge="inline",n.callback=function(t){c(e.element).trigger("submit.frontSubmit")}),""!==n.sitekey){var o=a.grecaptcha.render(t,n);c(t).data("forminator-recapchta-widget",o),this.responsive_captcha()}}},hide:function(){this.$el.hide()},maybeParseStringToJson:function(t,e){var r={};if("object"==typeof t)return t;if("object"===e)t="{"+t.trim()+"}";else{if("array"!==e)return{};t="["+t.trim()+"]"}try{t=t.replace(/\,(?!\s*?[\{\[\"\'\w])/g,""),r=JSON.parse(t)}catch(t){console.error(t.message),"object"===e?r={}:"array"===e&&(r=[])}return r}}),c.fn[r]=function(t){return this.each(function(){c.data(this,r)||c.data(this,r,new e(this,t))})},c(n).on("tinymce-editor-init",function(t,r){var n=0;r.on("change",function(){0===r.id.indexOf("forminator-wp-editor-")&&r.save();var t=r.id,e=c("#"+t).closest(".forminator-col").find(".forminator-description span");e.length&&e.data("limit")&&(n="words"!==e.data("type")?r.getContent({format:"text"}).length:r.getContent({format:"text"}).split(/\s+/).length,e.html(n+" / "+e.data("limit")))})})}(jQuery,window,document);var forminator_render_captcha=function(){jQuery(".forminator-g-recaptcha").each(function(){var t=jQuery(this).closest("form");if(0<t.length){var e=t.data("forminatorFront");void 0!==e&&e.renderCaptcha(jQuery(this)[0])}})},forminatorDateUtil={month_number:function(t){if(t.constructor===Number)return t;var e=NaN;if(t.constructor===String){t=t.toLowerCase();var r=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"].indexOf(t);-1===r&&(r=["january","february","march","april","may","june","july","august","september","october","november","december"].indexOf(t)),e=-1===r?NaN:r}return e},convert:function(t){return t.constructor===Date?t:t.constructor===Array?new Date(t[0],this.month_number(t[1]),t[2]):t.constructor===Number?new Date(t):t.constructor===String?new Date(t):"object"==typeof t?new Date(t.year,this.month_number(t.month),t.date):NaN},compare:function(t,e){return isFinite(t=this.convert(t).valueOf())&&isFinite(e=this.convert(e).valueOf())?(e<t)-(t<e):NaN},inRange:function(t,e,r){return isFinite(t=this.convert(t).valueOf())&&isFinite(e=this.convert(e).valueOf())&&isFinite(r=this.convert(r).valueOf())?e<=t&&t<=r:NaN},diffInDays:function(t,e){if(t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth)return NaN;var r=e.getTime(),n=t.getTime();return parseFloat((r-n)/864e5)},diffInWeeks:function(t,e){if(t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth)return NaN;var r=e.getTime(),n=t.getTime();return parseInt((r-n)/6048e5)},diffInMonths:function(t,e){if(t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth)return NaN;var r=t.getFullYear(),n=e.getFullYear(),o=t.getMonth();return e.getMonth()+12*n-(o+12*r)},diffInYears:function(t,e){return t=this.convert(t),e=this.convert(e),"function"!=typeof t.getMonth||"function"!=typeof e.getMonth?NaN:e.getFullYear()-t.getFullYear()}};!function(s,i,t,d){"use strict";var r="forminatorFrontCalculate",n={forminatorFields:[],maxExpand:5,generalMessages:{}};function e(t,e){this.element=t,this.$el=s(this.element),this.settings=s.extend({},n,e),this._defaults=n,this._name=r,this.calculationFields=[],this.currentExpand=0,this.triggerInputs=[],this.isError=!1,this.init()}s.extend(e.prototype,{init:function(){var e=this,t=this.$el.find("input.forminator-calculation");if(0<t.length){t.each(function(){if(e.calculationFields.push({$input:s(this),formula:s(this).data("formula"),name:s(this).attr("name"),isHidden:s(this).data("isHidden"),precision:s(this).data("precision")}),s(this).data("isHidden")){s(this).closest(".forminator-col").addClass("forminator-hidden forminator-hidden-option");var t=s(this).closest(".forminator-row");0===t.find("> .forminator-col:not(.forminator-hidden)").length&&t.addClass("forminator-hidden forminator-hidden-option")}});var r=this.settings.memoizeTime||300;this.debouncedReCalculateAll=this.debounce(this.recalculateAll,1e3),this.memoizeDebounceRender=this.memoize(this.recalculate,r),this.$el.on("forminator:field:condition:toggled",function(t){e.debouncedReCalculateAll()}),this.parseCalcFieldsFormula(),this.attachEventToTriggeringFields(),this.debouncedReCalculateAll()}},memoize:function(e,r){var n,o={},i=Array.prototype.slice;return function(){var t=i.call(arguments);return clearTimeout(n),n=setTimeout(function(){n=null,o={}},r),t[0].name in o?o[t[0].name]:o[t[0].name]=e.apply(this,t)}},debounce:function(n,o,i){var a;return function(){var t=this,e=arguments,r=i&&!a;clearTimeout(a),a=setTimeout(function(){a=null,i||n.apply(t,e)},o),r&&n.apply(t,e)}},parseCalcFieldsFormula:function(){for(var t=0;t<this.calculationFields.length;t++){var e=this.calculationFields[t],r=e.formula;this.currentExpand=0,e.formula=r,this.calculationFields[t]=e}},maybeExpandCalculationFieldOnFormula:function(t){if(this.currentExpand>this.settings.maxExpand)return t;for(var e,r=this.settings.forminatorFields.join("|"),n=new RegExp("\\{("+("("+r+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g"),o=t,i=!1;e=n.exec(t);){var a=e[0],s=e[1],l=e[2],f=a;a!==d&&s!==d&&l!==d&&("calculation"===l&&(i=!0,f="("+this.$el.find('input[name="'+s+'"]').data("formula")+")"),o=o.replace(a,f))}return i&&(this.currentExpand++,o=this.maybeExpandCalculationFieldOnFormula(o)),o},findTriggerInputs:function(t){for(var e,r=t.formula,n=this.settings.forminatorFields.join("|"),o=new RegExp("\\{("+("("+n+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g");e=o.exec(r);){var i=e[0],a=e[1],s=e[2];if(i!==d&&a!==d&&s!==d){var l=this.get_form_field(a);if(l.length){var f=l.data("calcFields");f===d&&(f=[]);for(var u=!1,c=0;c<f.length;c++){if(f[c].name===t.name){u=!0;break}}u||f.push(t),l.data("calcFields",f),this.triggerInputs.push(l)}}}},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},attachEventToTriggeringFields:function(){for(var n=this,t=0;t<this.calculationFields.length;t++){var e=this.calculationFields[t];this.findTriggerInputs(e)}if(0<this.triggerInputs.length)for(var r=[],o=0;o<this.triggerInputs.length;o++){var i=this.triggerInputs[o],a=i.attr("id");r.indexOf(a)<0&&(i.on("change.forminatorFrontCalculate, blur",function(){var t=s(this).data("calcFields");if(t!==d&&0<t.length)for(var e=0;e<t.length;e++){var r=t[e];n.field_is_checkbox(s(this))||n.field_is_radio(s(this))?n.recalculate(r):n.memoizeDebounceRender(r)}}),r.push(a))}},recalculateAll:function(){for(var t=0;t<this.calculationFields.length;t++)this.recalculate(this.calculationFields[t])},recalculate:function(t){var e=t.$input;this.hideErrorMessage(e);var r=this.maybeReplaceFieldOnFormula(t.formula),n=0,o=new i.forminatorCalculator(r);try{if(n=o.calculate(),!isFinite(n))throw"Infinity calculation result.";n=parseFloat(n).toFixed(t.precision)}catch(t){this.isError=!0,console.log(t),this.displayErrorMessage(e,this.settings.generalMessages.calculation_error),n=0}e.val()!==String(n)&&e.val(n).trigger("change")},maybeReplaceFieldOnFormula:function(t){for(var e,r=this.settings.forminatorFields.join("|"),n=new RegExp("\\{("+("("+r+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g"),o=t;e=n.exec(t);){var i=e[0],a=e[1],s=e[2],l=i;if(i!==d&&a!==d&&s!==d){if(this.is_hidden(a)){l=0;var f=i.replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),u=new RegExp("([\\+\\-\\*\\/]?)[^\\+\\-\\*\\/\\(]*"+f+"[^\\)\\+\\-\\*\\/]*([\\+\\-\\*\\/]?)").exec(t);u&&("*"!==u[1]&&"/"!==u[1]&&"*"!==u[2]&&"/"!==u[2]||(l=1))}else{if("calculation"===s){var c=this.get_calculation_field(a);c&&this.memoizeDebounceRender(c)}l=this.get_field_value(a)}l="("+l+")",o=o.replace(i,l)}}return o},get_calculation_field:function(t){for(var e=0;e<this.calculationFields.length;e++)if(this.calculationFields[e].name===t)return this.calculationFields[e];return!1},is_hidden:function(t){var e=this.get_form_field(t).closest(".forminator-col"),r=e.closest(".forminator-row");return!r.hasClass("forminator-hidden-option")&&!e.hasClass("forminator-hidden-option")&&!(!r.hasClass("forminator-hidden")&&!e.hasClass("forminator-hidden"))},get_field_value:function(t){var e=this.get_form_field(t),r=0,n=0,o=null;return this.field_is_radio(e)?(o=e.filter(":checked")).length&&(n=o.data("calculation"))!==d&&(r=Number(n)):this.field_is_checkbox(e)?e.each(function(){s(this).is(":checked")&&(n=s(this).data("calculation"))!==d&&(r+=Number(n))}):this.field_is_select(e)?(o=e.find("option").filter(":selected")).length&&(n=o.data("calculation"))!==d&&(r=Number(n)):r=Number(e.val()),isNaN(r)?0:r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===s(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===s(this).attr("type"))return!(e=!0)}),e},field_is_select:function(t){return t.is("select")},displayErrorMessage:function(t,e){var r=t.closest(".forminator-field--inner");0===r.length&&(r=t.closest(".forminator-field"));var n=r.find(".forminator-error-message");0===n.length&&(r.append('<span class="forminator-error-message" aria-hidden="true"></span>'),n=r.find(".forminator-error-message")),t.attr("aria-invalid","true"),n.html(e),r.addClass("forminator-has_error")},hideErrorMessage:function(t){var e=t.closest(".forminator-field--inner");0===e.length&&(e=t.closest(".forminator-field"));var r=e.find(".forminator-error-message");t.removeAttr("aria-invalid"),r.remove(),e.removeClass("forminator-has_error")}}),s.fn[r]=function(t){return this.each(function(){s.data(this,r)||s.data(this,r,new e(this,t))})}}(jQuery,window,document),function(o,t,e,f){"use strict";var r="forminatorFrontMergeTags",n={forminatorFields:[]};function i(t,e){this.element=t,this.$el=o(this.element),this.settings=o.extend({},n,e),this._defaults=n,this._name=r,this.formFields=[],this.init()}o.extend(i.prototype,{init:function(){var t=this,e=this.$el.find(".forminator-merge-tags");0<e.length&&e.each(function(){t.formFields.push({$input:o(this),value:o(this).html()})}),this.replaceAll(),this.attachEvents()},attachEvents:function(){var t=this;this.$el.find("input.forminator-input, .forminator-select, .forminator-checkbox, .forminator-radio, .forminator-input-file, .forminator-select2").each(function(){o(this).on("change",function(){setTimeout(function(){t.replaceAll()},300)})})},replaceAll:function(){for(var t=0;t<this.formFields.length;t++)this.replace(this.formFields[t])},replace:function(t){var e=t.$input,r=this.maybeReplaceValue(t.value);e.html(r)},maybeReplaceValue:function(t){for(var e,r=this.settings.forminatorFields.join("|"),n=new RegExp("\\{("+("("+r+")-\\d+")+")(\\-[A-Za-z-_]+)?\\}","g"),o=t;e=n.exec(t);){var i=e[0],a=i.replace("{","").replace("}",""),s=e[2],l=i;i!==f&&a!==f&&s!==f&&(l=l=this.get_field_value(a),o=o.replace(i,l))}return o},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},is_calculation:function(t){return!!this.get_form_field(t).hasClass("forminator-calculation")},get_field_value:function(t){var e=this.get_form_field(t),r="",n=null;if(this.is_hidden(t)&&!this.is_calculation(t))return"";if(this.is_calculation(t)&&(!this.get_form_field(t).closest(".forminator-col").closest(".forminator-row").hasClass("forminator-hidden-option")&&this.is_hidden(t)))return"";return this.field_is_radio(e)?(n=e.filter(":checked")).length&&(r=n.val()):this.field_is_checkbox(e)?e.each(function(){o(this).is(":checked")&&(""!==r&&(r+=", "),r+=o(this).val())}):this.field_is_select(e)?(n=e.find("option").filter(":selected")).length&&(r=n.val()):r=this.field_is_upload(e)?e.val().split("\\").pop():e.val(),r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===o(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===o(this).attr("type"))return!(e=!0)}),e},field_is_upload:function(t){return"file"===t.attr("type")},field_is_select:function(t){return t.is("select")},is_hidden:function(t){var e=this.get_form_field(t).closest(".forminator-col"),r=e.closest(".forminator-row");return!(!r.hasClass("forminator-hidden-option")&&!r.hasClass("forminator-hidden"))||!!e.hasClass("forminator-hidden")}}),o.fn[r]=function(t){return this.each(function(){o.data(this,r)||o.data(this,r,new i(this,t))})}}(jQuery,window,document),function(c,a,t,u){"use strict";Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){if(t===u||null===t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==u&&null!==o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var l=i[a],f=Object.getOwnPropertyDescriptor(o,l);f!==u&&f.enumerable&&(r[l]=o[l])}}return r}});var r="forminatorFrontPayment",n={type:"stripe",paymentEl:null,paymentRequireSsl:!1,generalMessages:{}};function e(t,e){this.element=t,this.$el=c(this.element),this.settings=c.extend({},n,e),this._defaults=n,this._name=r,this._stripeData=null,this._stripe=null,this._cardElement=null,this._stripeToken=null,this._beforeSubmitCallback=null,this._form=null,this._paymentIntent=null,this.init()}c.extend(e.prototype,{init:function(){if(this.settings.paymentEl){var n=this;this._stripeData=this.settings.paymentEl.data(),this.mountCardField(),c(this.element).on("payment.before.submit.forminator",function(t,e,r){n._form=n.getForm(t),n._beforeSubmitCallback=r,n.validateStripe(t,e)}),this.$el.find("input.forminator-input, .forminator-select, .forminator-checkbox, .forminator-radio, .forminator-select2").each(function(){c(this).on("change",function(t){n.mapZip(t)})})}},validateStripe:function(e,r){var n=this;this._stripe.createToken(this._cardElement).then(function(t){t.error?n.showCardError(t.error.message,!0):(n.hideCardError(),n.updateAmount(e,r))})},isValid:function(e){var r=this;this._stripe.createToken(this._cardElement).then(function(t){t.error?r.showCardError(t.error.message,e):r.hideCardError()})},getForm:function(t){var e=c(t.target);return e.hasClass("forminator-custom-form")||(e=e.closets("form.forminator-custom-form")),e},updateAmount:function(n,o){n.preventDefault();var i=this,t=o;t.append("action","forminator_update_payment_amount"),t.append("paymentid",this.getStripeData("paymentid")),c.ajax({type:"POST",url:a.ForminatorFront.ajaxUrl,data:t,cache:!1,contentType:!1,processData:!1,beforeSend:function(){if(void 0!==i.settings.has_loader&&i.settings.has_loader){i._form.addClass("forminator-fields-disabled");var t=i._form.find(".forminator-response-message");t.html("<p>"+i.settings.loader_label+"</p>"),i.focus_to_element(t),t.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show")}i._form.find("button").attr("disabled",!0)},success:function(t){if(!0===t.success)void 0!==t.data&&void 0!==t.data.paymentid?(i.$el.find("#forminator-stripe-paymentid").val(t.data.paymentid),i._stripeData.paymentid=t.data.paymentid,i.handleCardPayment(t,n,o)):i.show_error("Invalid Payment Intent ID");else{i.show_error(t.data.message),t.data.errors.length&&i.show_messages(t.data.errors);var e=i._form.find(".forminator-g-recaptcha");if(e.length){var r=(e=c(e.get(0))).data("forminator-recapchta-widget");"invisible"===e.data("size")&&a.grecaptcha.reset(r)}}},error:function(t){var e=400===t.status?a.ForminatorFront.cform.upload_error:a.ForminatorFront.cform.error;i.show_error(e)}})},show_error:function(t){var e=this._form.find(".forminator-response-message");this._form.find("button").removeAttr("disabled"),e.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-loading").addClass("forminator-error forminator-show"),e.html("<p>"+t+"</p>"),this.focus_to_element(e),this.enable_form()},enable_form:function(){if(void 0!==this.settings.has_loader&&this.settings.has_loader){var t=this._form.find(".forminator-response-message");this._form.removeClass("forminator-fields-disabled"),t.removeClass("forminator-loading")}},mapZip:function(t){var e=this.getStripeData("veifyZip"),r=this.getStripeData("zipField"),n=c(t.currentTarget).attr("name");if(e&&""!==r&&n===r&&t.originalEvent!==u){var o=this.get_field_value(r);this._cardElement.update({value:{postalCode:o}})}},focus_to_element:function(t,e){e=(e=e||!1)&&this.settings.fadeout;var r=this.settings.fadeout_time;t.show(),c("html,body").animate({scrollTop:t.offset().top-(c(a).height()-t.outerHeight(!0))/2},500,function(){t.attr("tabindex")||t.attr("tabindex",-1),t.focus(),e&&t.show().delay(r).fadeOut("slow")})},show_messages:function(t){var l=this,f=l.$el.data("forminatorFrontCondition");if(void 0!==f){this.$el.find(".forminator-error-message").remove();var u=0;t.forEach(function(t){var e=Object.keys(t),r=Object.values(t),n=f.get_form_field(e);if(n.length){if(0===u&&(l.$el.trigger("forminator.front.pagination.focus.input",[n]),l.focus_to_element(n)),c(n).hasClass("forminator-input-time")){var o=c(n).closest(".forminator-field:not(.forminator-field--inner)"),i=o.children(".forminator-error-message");0===i.length&&(o.append('<span class="forminator-error-message" aria-hidden="true"></span>'),i=o.children(".forminator-error-message")),i.html(r)}var a=c(n).closest(".forminator-field--inner");0===a.length&&0===(a=c(n).closest(".forminator-field")).length&&1<(a=c(n).find(".forminator-field")).length&&(a=a.first());var s=a.find(".forminator-error-message");0===s.length&&(a.append('<span class="forminator-error-message" aria-hidden="true"></span>'),s=a.find(".forminator-error-message")),c(n).attr("aria-invalid","true"),s.html(r),a.addClass("forminator-has_error"),u++}})}return this},getBillingData:function(t){if(!this.getStripeData("billing"))return{};var e=this.getStripeData("billingName"),r=this.getStripeData("billingEmail"),n=this.getStripeData("billingAddress"),o={address:{}};if(e){var i=this.get_field_value(e);if(!i)i=(this.get_field_value(e+"-first-name")||"")+" "+(this.get_field_value(e+"-last-name")||"");i&&(o.name=i)}if(r){var a=this.get_field_value(r)||"";a&&(o.email=a)}var s=this.get_field_value(n+"-street_address")||"";s&&(o.address.line1=s);var l=this.get_field_value(n+"-address_line")||"";l&&(o.address.line2=l);var f=this.get_field_value(n+"-city")||"";f&&(o.address.city=f);var u=this.get_field_value(n+"-state")||"";u&&(o.address.state=u);var c=this.get_form_field(n+"-country").find(":selected").data("country-code");c&&(o.address.country=c);var d=this.get_field_value(n+"-zip")||"";return d&&(o.address.postal_code=d),{payment_method_data:{billing_details:o}}},handleCardPayment:function(t,e,r){var n=this,o=t.data.paymentsecret||!1;if(null===this._paymentIntent||void 0===this._paymentIntent.paymentIntent||"succeeded"!==this._paymentIntent.paymentIntent.status){var i=this.getStripeData("receipt"),a=this.getStripeData("receiptEmail"),s={};i&&a&&(s={receipt_email:this.get_field_value(a)||""}),this._stripe.handleCardPayment(o,this._cardElement,Object.assign(s,this.getBillingData())).then(function(t){t.error?n.show_error(t.error.message):(n._paymentIntent=t,n._beforeSubmitCallback&&n._beforeSubmitCallback.call())})}else n._beforeSubmitCallback&&n._beforeSubmitCallback.call()},mountCardField:function(){var t=this.getStripeData("key"),e=this.getStripeData("cardIcon"),r=this.getStripeData("veifyZip"),n=(this.getStripeData("zipField"),this.getStripeData("fieldId"));this._stripe=Stripe(t,{locale:this.getStripeData("language")});var o={};r?o.value={postalCode:""}:o.hidePostalCode=!0;var i={},a=this.getStripeData("fontFamily"),s=this.getStripeData("customFonts");a&&s&&(i.fonts=[{cssSrc:"https://fonts.googleapis.com/css?family="+a}]);var l=this._stripe.elements(i);this._cardElement=l.create("card",Object.assign({classes:{base:this.getStripeData("baseClass"),complete:this.getStripeData("completeClass"),empty:this.getStripeData("emptyClass"),focus:this.getStripeData("focusedClass"),invalid:this.getStripeData("invalidClass"),webkitAutofill:this.getStripeData("autofilledClass")},style:{base:{iconColor:this.getStripeData("iconColor"),color:this.getStripeData("fontColor"),lineHeight:this.getStripeData("lineHeight"),fontWeight:this.getStripeData("fontWeight"),fontFamily:this.getStripeData("fontFamily"),fontSmoothing:"antialiased",fontSize:this.getStripeData("fontSize"),"::placeholder":{color:this.getStripeData("placeholder")},":hover":{iconColor:this.getStripeData("iconColorHover")}},invalid:{iconColor:this.getStripeData("iconColorError"),color:this.getStripeData("fontColorError")}},iconStyle:"solid",hideIcon:!e},o)),this._cardElement.mount("#card-element-"+n),this.validateCard()},validateCard:function(){var e=this;this._cardElement.on("change",function(t){e.$el.find(".forminator-stripe-element").hasClass("StripeElement--empty")?e.$el.find(".forminator-stripe-element").closest(".forminator-field").removeClass("forminator-is_filled"):e.$el.find(".forminator-stripe-element").closest(".forminator-field").addClass("forminator-is_filled"),e.$el.find(".forminator-stripe-element").hasClass("StripeElement--invalid")&&e.$el.find(".forminator-stripe-element").closest(".forminator-field").addClass("forminator-has_error")}),this._cardElement.on("focus",function(t){e.$el.find(".forminator-stripe-element").closest(".forminator-field").addClass("forminator-is_active")}),this._cardElement.on("blur",function(t){e.$el.find(".forminator-stripe-element").closest(".forminator-field").removeClass("forminator-is_active"),e.isValid(!1)})},hideCardError:function(){var t=this.$el.find(".forminator-card-message"),e=t.find(".forminator-error-message");0===e.length&&(t.append('<span class="forminator-error-message" aria-hidden="true"></span>'),e=t.find(".forminator-error-message")),t.closest(".forminator-field").removeClass("forminator-has_error"),e.html("")},showCardError:function(t,e){var r=this.$el.find(".forminator-card-message"),n=r.find(".forminator-error-message");0===n.length&&(r.append('<span class="forminator-error-message" aria-hidden="true"></span>'),n=r.find(".forminator-error-message")),r.closest(".forminator-field").addClass("forminator-has_error"),r.closest(".forminator-field").addClass("forminator-is_filled"),n.html(t),e&&this.focus_to_element(r.closest(".forminator-field"))},getStripeData:function(t){return void 0!==this._stripeData[t]?this._stripeData[t]:null},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},get_field_value:function(t){var e=this.get_form_field(t),r="",n=null;return this.field_is_radio(e)?(n=e.filter(":checked")).length&&(r=n.val()):this.field_is_checkbox(e)?e.each(function(){c(this).is(":checked")&&(r=c(this).val())}):r=(this.field_is_select(e),e.val()),r},get_field_calculation:function(t){var e=this.get_form_field(t),r=0,n=0,o=null;return this.field_is_radio(e)?(o=e.filter(":checked")).length&&(n=o.data("calculation"))!==u&&(r=Number(n)):this.field_is_checkbox(e)?e.each(function(){c(this).is(":checked")&&(n=c(this).data("calculation"))!==u&&(r+=Number(n))}):this.field_is_select(e)?(o=e.find("option").filter(":selected")).length&&(n=o.data("calculation"))!==u&&(r=Number(n)):r=Number(e.val()),isNaN(r)?0:r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===c(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===c(this).attr("type"))return!(e=!0)}),e},field_is_select:function(t){return t.is("select")}}),c.fn[r]=function(t){return this.each(function(){c.data(this,r)||c.data(this,r,new e(this,t))})}}(jQuery,window,document),function(s,n){"use strict";var r="forminatorFrontPagination",o={totalSteps:0,step:0,hashStep:0,inline_validation:!1};function e(t,e){this.element=s(t),this.$el=this.element,this.totalSteps=0,this.step=0,this.hashStep=!1,this.next_button=n.ForminatorFront.cform.pagination_next,this.prev_button=n.ForminatorFront.cform.pagination_prev,this.next_button_txt="",this.prev_button_txt="",this.custom_label=[],this.form_id=0,this.element="",this.settings=s.extend({},o,e),this._defaults=o,this._name=r,this.init()}s.extend(e.prototype,{init:function(){0<this.$el.find("input[name=form_id]").length&&(this.form_id=this.$el.find("input[name=form_id]").val()),this.totalSteps=this.settings.totalSteps,this.step=this.settings.step,this.element=this.$el.find("[data-step="+this.step+"]").data("name"),this.form_id&&"object"==typeof n.Forminator_Cform_Paginations&&"object"==typeof n.Forminator_Cform_Paginations[this.form_id]&&(this.custom_label=n.Forminator_Cform_Paginations[this.form_id]),this.settings.hashStep&&0<this.step?this.go_to(this.step,!0):this.go_to(0,!1),this.render_navigation(),this.render_bar_navigation(),this.render_footer_navigation(this.form_id),this.init_events(),this.update_buttons(),this.update_navigation()},init_events:function(){var r=this;this.$el.find(".forminator-button-back").click(function(t){t.preventDefault(),r.handle_click("prev")}),this.$el.find(".forminator-button-next").click(function(t){t.preventDefault(),r.handle_click("next")}),this.$el.find(".forminator-step").click(function(t){t.preventDefault();var e=s(this).data("nav");r.handle_step(e)}),this.$el.on("reset",function(t){r.on_form_reset(t)}),this.$el.on("forminator.front.pagination.focus.input",function(t,e){r.on_focus_input(t,e)})},on_form_reset:function(t){this.go_to(0,!0),this.update_buttons()},on_focus_input:function(t,e){var r=this.get_page_of_input(e);this.go_to(r,!0),this.update_buttons()},render_footer_navigation:function(t){var e="";this.custom_label[this.element]&&"custom"===this.custom_label["pagination-labels"]?(this.prev_button_txt=""!==this.custom_label[this.element]["prev-text"]?this.custom_label[this.element]["prev-text"]:this.prev_button,this.next_button_txt=""!==this.custom_label[this.element]["next-text"]?this.custom_label[this.element]["next-text"]:this.next_button):(this.prev_button_txt=this.prev_button,this.next_button_txt=this.next_button),e=this.$el.hasClass("forminator-design--material")?'<div class="forminator-pagination-footer"><button class="forminator-button forminator-button-back"><span class="forminator-button--mask" aria-label="hidden"></span><span class="forminator-button--text">'+this.prev_button_txt+'</span></button><button class="forminator-button forminator-button-next"><span class="forminator-button--mask" aria-label="hidden"></span><span class="forminator-button--text">'+this.next_button_txt+"</span></button>":'<div class="forminator-pagination-footer"><button class="forminator-button forminator-button-back">'+this.prev_button_txt+'</button><button class="forminator-button forminator-button-next">'+this.next_button_txt+"</button>",!0===this.custom_label["has-paypal"]&&(e+='<div class="forminator-payment forminator-button-paypal forminator-hidden '+(this.custom_label["paypal-id"]?this.custom_label["paypal-id"]:"")+'-payment" id="paypal-button-container-'+t+'">'),e+="</div>",this.$el.append(e)},render_bar_navigation:function(){var t=this.$el.find(".forminator-pagination-progress");t.length&&(t.html('<div class="forminator-progress-label">0%</div><div class="forminator-progress-bar"><span style="width: 0%"></span></div>'),this.calculate_bar_percentage())},calculate_bar_percentage:function(){var t=this.totalSteps,e=this.step+1,r=this.$el;if(r.length){var n=Math.round(e/t*100);r.find(".forminator-progress-label").html(n+"%"),r.find(".forminator-progress-bar span").css("width",n+"%")}},render_navigation:function(){var i=this.$el.find(".forminator-pagination-steps"),t=this.$el.find(".forminator-pagination-start");if(i.length){var o=this.$el.find(".forminator-pagination").not(".forminator-pagination-start");i.append('<div class="forminator-break"></div>');var a=this;o.each(function(){var t=s(this),e=t.data("label"),r=t.data("step")-1,n="forminator-custom-form-"+a.form_id+"--page-"+r,o='<button role="tab" id="'+(n+"-label")+'" class="forminator-step forminator-step-'+r+'" aria-selected="false" aria-controls="'+n+'" data-nav="'+r+'"><span class="forminator-step-label">'+e+'</span><span class="forminator-step-dot" aria-hidden="true"></span></button>';i.append(o+'<div class="forminator-break" aria-hidden="true"></div>')}),t.each(function(){var t=s(this).data("label"),e=o.length,r="forminator-custom-form-"+a.form_id+"--page-"+e,n='<button role="tab" id="'+(r+"-label")+'" class="forminator-step forminator-step-'+e+'" data-nav="'+e+'" aria-selected="false" aria-controls="'+r+'"><span class="forminator-step-label">'+t+'</span><span class="forminator-step-dot" aria-hidden="true"></span></button>';i.append(n+'<div class="forminator-break" aria-hidden="true"></div>')})}},handle_step:function(t){if(this.settings.inline_validation)for(var e=0;e<t;e++)if(this.step<=e&&!this.is_step_inputs_valid(e))return void this.go_to(e,!0);this.go_to(t,!0),this.update_buttons()},handle_click:function(t){var e=this;if("prev"===t&&0!==this.step)this.go_to(this.step-1,!0),this.update_buttons();else if("next"===t){if(this.settings.inline_validation&&!this.is_step_inputs_valid(this.step))return;if(void 0!==this.$el.data().forminatorFrontPayment){var r=this.$el.data().forminatorFrontPayment;0<this.$el.find("[data-step="+this.step+"]").find(".forminator-stripe-element").not(".forminator-hidden .forminator-stripe-element").length?r._stripe.createToken(r._cardElement).then(function(t){t.error?r.showCardError(t.error.message,!0):(r.hideCardError(),e.go_to(e.step+1,!0),e.update_buttons())}):(this.go_to(this.step+1,!0),this.update_buttons())}else this.go_to(this.step+1,!0),this.update_buttons()}},is_step_inputs_valid:function(t){var r=0,n=this.$el.data("validator"),e=this.$el.find("[data-step="+t+"]");return void 0===n||(e.find("input, select, textarea").not(":submit, :reset, :image, :disabled").not(':hidden:not(.forminator-wp-editor-required, .forminator-input-file-required, input[name$="_data"])').not('[gramm="true"]').each(function(t,e){n.element(e)||(0===r&&e.focus(),r++)}),0===r)},get_page_of_input:function(t){var e=this.step,r=s(t).closest(".forminator-pagination");if(0<r.length){var n=s(r).data("step");void 0!==n&&(e=+n)}return e},update_buttons:function(){if(0===this.step?(this.$el.find(".forminator-button-back").closest(".forminator-pagination-footer").css({"justify-content":"flex-end"}),this.$el.find(".forminator-button-back").addClass("forminator-hidden")):(this.$el.find(".forminator-button-back").closest(".forminator-pagination-footer").css({"justify-content":""}),this.$el.find(".forminator-button-back").removeClass("forminator-hidden")),this.step===this.totalSteps&&(this.step--,this.$el.submit()),this.step===this.totalSteps-1){var t=this.$el.find(".forminator-pagination-submit").html(),e="custom"===this.custom_label["pagination-labels"]&&""!==this.custom_label["last-previous"]?this.custom_label["last-previous"]:this.prev_button;this.$el.hasClass("forminator-design--material")?(this.$el.find(".forminator-button-back .forminator-button--text").html(e),this.$el.find(".forminator-button-next").removeClass("forminator-button-next").attr("id","forminator-submit").addClass("forminator-button-submit").find(".forminator-button--text").html("").html(t)):(this.$el.find(".forminator-button-back").html(e),this.$el.find(".forminator-button-next").removeClass("forminator-button-next").attr("id","forminator-submit").addClass("forminator-button-submit").html(t)),!0===this.custom_label["has-paypal"]&&(this.$el.find(".forminator-button-submit").addClass("forminator-hidden"),this.$el.find(".forminator-payment").attr("id","forminator-paypal-submit").removeClass("forminator-hidden")),0<this.$el.find(".forminator-payment iframe").length&&this.$el.find(".forminator-payment iframe").width("100%")}else this.element=this.$el.find("[data-step="+this.step+"]").data("name"),this.custom_label[this.element]&&"custom"===this.custom_label["pagination-labels"]?(this.prev_button_txt=""!==this.custom_label[this.element]["prev-text"]?this.custom_label[this.element]["prev-text"]:this.prev_button,this.next_button_txt=""!==this.custom_label[this.element]["next-text"]?this.custom_label[this.element]["next-text"]:this.next_button):(this.prev_button_txt=this.prev_button,this.next_button_txt=this.next_button),this.$el.hasClass("forminator-design--material")?(this.$el.find("#forminator-submit").removeAttr("id").removeClass("forminator-button-submit").addClass("forminator-button-next"),!0===this.custom_label["has-paypal"]&&(this.$el.find("#forminator-paypal-submit").removeAttr("id").addClass("forminator-hidden"),this.$el.find(".forminator-button-next").removeClass("forminator-button-submit forminator-hidden")),this.$el.find(".forminator-button-back .forminator-button--text").html(this.prev_button_txt),this.$el.find(".forminator-button-next .forminator-button--text").html(this.next_button_txt)):(this.$el.find("#forminator-submit").removeAttr("id").removeClass("forminator-button-submit").addClass("forminator-button-next"),!0===this.custom_label["has-paypal"]&&(this.$el.find("#forminator-paypal-submit").removeAttr("id").addClass("forminator-hidden"),this.$el.find(".forminator-button-next").removeClass("forminator-button-submit forminator-hidden")),this.$el.find(".forminator-button-back").html(this.prev_button_txt),this.$el.find(".forminator-button-next").html(this.next_button_txt))},go_to:function(t,e){if((this.step=t)===this.totalSteps)return!1;this.$el.find(".forminator-pagination").css({height:"0",opacity:"0",visibility:"hidden",overflow:"hidden"}).attr("aria-hidden","true").attr("hidden",!0),this.$el.find(".forminator-pagination .forminator-pagination--content").hide(),this.$el.find("[data-step="+t+"]").css({height:"auto",opacity:"1",visibility:"visible"}).removeAttr("aria-hidden").removeAttr("hidden"),this.$el.find("[data-step="+t+"] .forminator-pagination--content").show();var r=this.$el.data("forminatorFront");void 0!==r&&r.responsive_captcha(),this.update_navigation(),e&&this.scroll_to_top_form()},update_navigation:function(){this.$el.find(".forminator-current").attr("aria-selected","false"),this.$el.find(".forminator-current").removeClass("forminator-current"),this.$el.find(".forminator-step-"+this.step).attr("aria-selected","true"),this.$el.find(".forminator-step-"+this.step).addClass("forminator-current"),this.calculate_bar_percentage()},scroll_to_top_form:function(){var t=this.$el,e=this.$el.find(".forminator-row").not(":hidden").first();if(e.length&&(t=e),t.length){var r="html,body";0<this.$el.closest(".sui-dialog").length&&(r=".sui-dialog"),0<this.$el.closest(".wph-modal").length&&(r=".wph-modal"),s(r).animate({scrollTop:t.offset().top-(s(n).height()-t.outerHeight(!0))/2},500,function(){t.attr("tabindex")||t.attr("tabindex",-1),t.focus()})}}}),s.fn[r]=function(t){return this.each(function(){s.data(this,r)||s.data(this,r,new e(this,t))})}}(jQuery,window,document),function(i,n,t,a){"use strict";var r="forminatorFrontPayPal",o={type:"paypal",paymentEl:null,paymentRequireSsl:!1,generalMessages:{}};function e(t,e){this.element=t,this.$el=i(this.element),this.settings=i.extend({},o,e),this._defaults=o,this._name=r,this.paypalData=null,this.init()}i.extend(e.prototype,{init:function(){if(this.settings.paymentEl){this.paypalData=this.settings.paymentEl,this.render_paypal_button()}},is_data_valid:function(){var t=this.configurePayPal(),e=this.settings.paymentRequireSsl;return!(t.amount<=0)&&(!e||"https:"===location.protocol)},is_form_valid:function(){var t=this.$el.validate(),e=t.checkForm();return t.submitted={},e},render_paypal_button:function(){var o=this.$el,i=this,a=this.configurePayPal(),r=o.find(".forminator-response-message"),s=ForminatorFront.cform.gateway.error,t=this.settings.paymentRequireSsl,e=this.settings.generalMessages,n={shape:a.shape,color:a.color,label:a.label,layout:a.layout,height:parseInt(a.height)};"vertical"!==a.layout&&(n.tagline=a.tagline),paypal.Buttons({onInit:function(t,e){e.disable(),"variable"===a.amount_type&&""!==a.variable&&(a.amount=i.get_field_calculation(a.variable)),o.find("input, select, textarea").change(function(){i.is_data_valid()&&i.is_form_valid()&&e.enable()}),i.is_data_valid()&&i.is_form_valid()&&e.enable()},env:a.mode,style:n,onClick:function(){!o.valid()&&a.amount<=0?(r.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),r.html('<label class="forminator-label--error"><span>'+e.payment_require_amount_error+"</span></label>"),i.focus_to_element(r)):t&&"https:"!==location.protocol&&(r.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),r.html('<label class="forminator-label--error"><span>'+e.payment_require_ssl_error+"</span></label>"),i.focus_to_element(r)),"variable"===a.amount_type&&""!==a.variable&&(a.amount=i.get_field_calculation(a.variable))},createOrder:function(t,e){o.addClass("forminator-partial-disabled");var r=o.find('input[name="forminator_nonce"]').val(),n=i.getPayPalData("form_id");return fetch(ForminatorFront.ajaxUrl+"?action=forminator_pp_create_order",{method:"POST",mode:"same-origin",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({nonce:r,form_id:n,mode:i.getPayPalData("mode"),form_data:{purchase_units:[{amount:{currency_code:i.getPayPalData("currency"),value:a.amount}}]}})}).then(function(t){return t.json()}).then(function(t){if(!0!==t.success)return s=t.data,!1;var e=t.data.order_id;return o.find(".forminator-paypal-input").val(e),e})},onApprove:function(t,e){void 0!==i.settings.has_loader&&i.settings.has_loader&&(o.addClass("forminator-fields-disabled"),r.html("<p>"+i.settings.loader_label+"</p>"),r.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show"),i.focus_to_element(r)),o.trigger("submit")},onCancel:function(t,e){return void 0!==i.settings.has_loader&&i.settings.has_loader&&(o.removeClass("forminator-fields-disabled forminator-partial-disabled"),r.removeClass("forminator-loading")),e.redirect()},onError:function(){void 0!==i.settings.has_loader&&i.settings.has_loader&&(o.removeClass("forminator-fields-disabled forminator-partial-disabled"),r.removeClass("forminator-loading")),r.removeClass("forminator-accessible").addClass("forminator-error").html("").removeAttr("aria-hidden"),r.html('<label class="forminator-label--error"><span>'+s+"</span></label>"),i.focus_to_element(r)}}).render(o.find(".forminator-button-paypal")[0])},configurePayPal:function(){var t={form_id:this.getPayPalData("form_id"),sandbox_id:this.getPayPalData("sandbox_id"),currency:this.getPayPalData("currency"),live_id:this.getPayPalData("live_id"),amount:0};t.color=this.getPayPalData("color")?this.getPayPalData("color"):"gold",t.shape=this.getPayPalData("shape")?this.getPayPalData("shape"):"rect",t.label=this.getPayPalData("label")?this.getPayPalData("label"):"checkout",t.layout=this.getPayPalData("layout")?this.getPayPalData("layout"):"vertical",t.tagline=this.getPayPalData("tagline")?this.getPayPalData("tagline"):"true",t.redirect_url=this.getPayPalData("redirect_url")?this.getPayPalData("redirect_url"):"",t.mode=this.getPayPalData("mode"),t.locale=this.getPayPalData("locale")?this.getPayPalData("locale"):"en_US",t.debug_mode=this.getPayPalData("debug_mode")?this.getPayPalData("debug_mode"):"disable",t.amount_type=this.getPayPalData("amount_type")?this.getPayPalData("amount_type"):"fixed",t.variable=this.getPayPalData("variable")?this.getPayPalData("variable"):"",t.height=this.getPayPalData("height")?this.getPayPalData("height"):55;var e=this.getPayPalData("amount_type");return"fixed"===e?t.amount=this.getPayPalData("amount"):"variable"===e&&""!==t.variable&&(t.amount=this.get_field_calculation(t.variable)),t},getPayPalData:function(t){return void 0!==this.paypalData[t]?this.paypalData[t]:null},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&(e=this.$el.find("#"+t)),e},get_field_calculation:function(t){var e=this.get_form_field(t),r=0,n=0,o=null;return this.field_is_radio(e)?(o=e.filter(":checked")).length&&(n=o.data("calculation"))!==a&&(r=Number(n)):this.field_is_checkbox(e)?e.each(function(){i(this).is(":checked")&&(n=i(this).data("calculation"))!==a&&(r+=Number(n))}):this.field_is_select(e)?(o=e.find("option").filter(":selected")).length&&(n=o.data("calculation"))!==a&&(r=Number(n)):r=Number(e.val()),isNaN(r)?0:r},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===i(this).attr("type"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===i(this).attr("type"))return!(e=!0)}),e},field_is_select:function(t){return t.is("select")},focus_to_element:function(t,e){e=(e=e||!1)&&this.settings.fadeout;var r=this.settings.fadeout_time;t.show(),i("html,body").animate({scrollTop:t.offset().top-(i(n).height()-t.outerHeight(!0))/2},500,function(){t.attr("tabindex")||t.attr("tabindex",-1),t.focus(),e&&t.show().delay(r).fadeOut("slow")})}}),i.fn[r]=function(t){return this.each(function(){i.data(this,r)||i.data(this,r,new e(this,t))})}}(jQuery,window,document),function(j){"use strict";var r="forminatorFrontDatePicker",n={};function e(t,e){this.element=t,this.$el=j(this.element),this.settings=j.extend({},n,e),this._defaults=n,this._name=r,this.init()}j.extend(e.prototype,{init:function(){var e=this,b=this.$el.data("format"),t=(this.$el.data("restrict-type"),this.$el.data("restrict")),r=this.$el.data("restrict"),n=this.$el.data("start-year"),o=this.$el.data("end-year"),_=this.$el.data("past-dates"),g=this.$el.val(),i=this.$el.data("start-of-week"),y=this.$el.data("start-date"),v=this.$el.data("end-date"),w=this.$el.data("start-field"),C=this.$el.data("end-field"),O=this.$el.data("start-offset"),x=this.$el.data("end-offset"),a=this.$el.data("disable-date"),s=this.$el.data("disable-range");r=!isNaN(parseFloat(r))&&isFinite(r)?[r.toString()]:t.split(","),a=a.split(","),s=s.split(","),n=n||"c-95",o=o||"c+95";var k=this.$el.closest(".forminator-custom-form"),P="forminator-calendar";k.hasClass("forminator-design--default")?P="forminator-calendar--default":k.hasClass("forminator-design--material")?P="forminator-calendar--material":k.hasClass("forminator-design--flat")?P="forminator-calendar--flat":k.hasClass("forminator-design--bold")&&(P="forminator-calendar--bold"),this.$el.datepicker({beforeShow:function(t,e){if(e.dpDiv.removeClass(function(t,e){return(e.match(/\bhustle-\S+/g)||[]).join(" ")}),e.dpDiv.removeClass(function(t,e){return(e.match(/\bforminator-\S+/g)||[]).join(" ")}),e.dpDiv.addClass("forminator-custom-form-"+k.data("form-id")+" "+P),"disable"===_?j(this).datepicker("option","minDate",g):j(this).datepicker("option","minDate",null),y){var r=new Date(y);j(this).datepicker("option","minDate",r)}if(v){var n=new Date(v);j(this).datepicker("option","maxDate",n)}if(w){var o=j('input[name ="'+w+'"]').val();if(void 0!==o){var i=new Date(o),a=O.split("_"),s=moment(i).add(a[1],a[2]);"-"===a[0]&&(s=moment(i).subtract(a[1],a[2]));var l=moment(s).format(b.toUpperCase()),f=new Date(l);j(this).datepicker("option","minDate",f)}}if(C){var u=j('input[name ="'+C+'"]').val();if(void 0!==u){var c=new Date(u),d=x.split("_"),m=moment(c).add(d[1],d[2]);"-"===d[0]&&(m=moment(c).subtract(d[1],d[2]));var h=moment(m).format(b.toUpperCase()),p=new Date(h);j(this).datepicker("option","maxDate",p)}}},beforeShowDay:function(t){return e.restrict_date(r,a,s,t)},monthNames:datepickerLang.monthNames,monthNamesShort:datepickerLang.monthNamesShort,dayNames:datepickerLang.dayNames,dayNamesShort:datepickerLang.dayNamesShort,dayNamesMin:datepickerLang.dayNamesMin,changeMonth:!0,changeYear:!0,dateFormat:b,yearRange:n+":"+o,minDate:new Date(n,0,1),maxDate:new Date(o,11,31),firstDay:i,onClose:function(){j(this).valid()}}),j(".ui-datepicker").addClass("notranslate")},restrict_date:function(t,e,r,n){for(var o=!0,i=n.getDay(),a=jQuery.datepicker.formatDate("mm/dd/yy",n),s=0;s<r.length;s++){var l=r[s].split("-"),f=new Date(j.trim(l[0])),u=new Date(j.trim(l[1]));if(f<=n&&n<=u){o=!1;break}}return-1!==t.indexOf(i.toString())||-1!==e.indexOf(a)||!1===o?[!1,"disabledDate"]:[!0,"enabledDate"]}}),j.fn[r]=function(t){return this.each(function(){j.data(this,r)||j.data(this,r,new e(this,t))})}}(jQuery,window,document),function(d){"use strict";var r="forminatorFrontValidate",n={rules:{},messages:{}};function e(t,e){this.element=t,this.$el=d(this.element),this.settings=d.extend({},n,e),this._defaults=n,this._name=r,this.init()}d.extend(e.prototype,{init:function(){var r=!1,n=this.$el;d(this.element).validate({ignore:":hidden:not(.do-validate)",errorPlacement:function(t,e){n.trigger("validation:error")},showErrors:function(t,e){r&&0<e.length&&(n.find(".forminator-response-message").html("<ul></ul>"),jQuery.each(e,function(t,e){n.find(".forminator-response-message ul").append("<li>"+e.message+"</li>")}),n.find(".forminator-response-message").removeAttr("aria-hidden").prop("tabindex","-1").addClass("forminator-accessible")),r=!1,this.defaultShowErrors(),n.trigger("validation:showError",e)},invalidHandler:function(t,e){r=!0,n.trigger("validation:invalid")},onfocusout:function(t){!1===d(t).hasClass("hasDatepicker")&&d(t).valid(),d(t).trigger("validation:focusout")},highlight:function(t,e,r){var n=d(t),o=n.closest(".forminator-field"),i=n.closest(".forminator-date-input"),a=n.closest(".forminator-timepicker"),s=!1,l=!1,f=!1,u=this.errorMap[t.name],c='<span class="forminator-error-message" aria-hidden="true"></span>';if(0<i.length)l=(s=i.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("day"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="year"]').length?d(c).insertBefore(s.find('.forminator-error-message[data-error-field="year"]')):0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"month"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="day"]').length?d(c).insertBefore(s.find('.forminator-error-message[data-error-field="day"]')):0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"year"===n.data("field")&&(0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else if(0<a.length)l=(s=a.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("hours"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="minutes"]').length?d(c).insertBefore(s.find('.forminator-error-message[data-error-field="minutes"]')):0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"minutes"===n.data("field")&&(0===f.length?s.append(c):d(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else{l=o.find(".forminator-error-message"),f=o.find(".forminator-description");0===l.length&&(0===f.length?o.append(c):d(c).insertBefore(f)),o.find(".forminator-error-message").html(u)}n.attr("aria-invalid","true"),o.addClass("forminator-has_error"),n.trigger("validation:highlight")},unhighlight:function(t,e,r){var n=d(t),o=n.closest(".forminator-field"),i=n.closest(".forminator-timepicker"),a=n.closest(".forminator-date-input"),s="";s=0<a.length?a.parent().find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'):0<i.length?i.parent().find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'):o.find(".forminator-error-message"),n.removeAttr("aria-invalid"),s.remove(),o.removeClass("forminator-has_error"),n.trigger("validation:unhighlight")},rules:this.settings.rules,messages:this.settings.messages}),d(this.element).on("forminator.validate.signature",function(){d(this).validate().form()})}}),d.fn[r]=function(t){return this.each(function(){d.data(this,r)||d.data(this,r,new e(this,t))})},d.validator.addMethod("validurl",function(t,e){var r=d.validator.methods.url.bind(this);return r(t,e)||r("http://"+t,e)}),d.validator.addMethod("forminatorPhoneNational",function(t,e){return this.optional(e)||d(e).intlTelInput("isValidNumber")}),d.validator.addMethod("forminatorPhoneInternational",function(t,e){return this.optional(e)||d(e).intlTelInput("isValidNumber")}),d.validator.addMethod("dateformat",function(t,e,r){var n,o,i,a,s,l=!1,f="yy-mm-dd"===r||"yy/mm/dd"===r||"yy.mm.dd"===r?/^\d{4}-\d{1,2}-\d{1,2}$/:/^\d{1,2}-\d{1,2}-\d{4}$/;return t=t.replace(/[ /.]/g,"-"),l=!!f.test(t)&&("dd/mm/yy"===r||"dd-mm-yy"===r||"dd.mm.yy"===r?(n=t.split("-"),o=parseInt(n[0],10),i=parseInt(n[1],10),a=parseInt(n[2],10)):"mm/dd/yy"===r||"mm.dd.yy"===r||"mm-dd-yy"===r?(n=t.split("-"),i=parseInt(n[0],10),o=parseInt(n[1],10),a=parseInt(n[2],10)):(n=t.split("-"),a=parseInt(n[0],10),i=parseInt(n[1],10),o=parseInt(n[2],10)),(s=new Date(Date.UTC(a,i-1,o,12,0,0,0))).getUTCFullYear()===a&&s.getUTCMonth()===i-1&&s.getUTCDate()===o),this.optional(e)||l}),d.validator.addMethod("maxwords",function(t,e,r){return this.optional(e)||jQuery.trim(t).split(/\s+/).length<=r}),d.validator.addMethod("trim",function(t,e,r){return!0===this.optional(e)||0!==t.trim().length}),d.validator.addMethod("emailWP",function(t,e,r){if(this.optional(e))return!0;if(t.trim().length<6)return!1;if(t.indexOf("@",1)<0)return!1;var n=t.split("@",2);if(!n[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(n[1].match(/\.{2,}/))return!1;var o=n[1].split(".");if(o.length<2)return!1;for(var i=o.length,a=0;a<i;a++)if(!o[a].match(/^[a-z0-9-]+$/i))return!1;return!0}),d.validator.addMethod("forminatorPasswordStrength",function(t,e,r){var n=t.trim();if(!n||n.length<8)return!1;var o=0;return n.match(/[0-9]/)&&(o+=10),n.match(/[a-z]/)&&(o+=20),n.match(/[A-Z]/)&&(o+=20),n.match(/[^a-zA-Z0-9]/)&&(o+=30),n.match(/[=!\-@.,_*#&?^`%$+\/{\[\]|}^?~]/)&&(o+=30),54<=Math.log(Math.pow(o,n.length))/Math.LN2}),d.validator.addMethod("extension",function(t,e,r){var n=!1;if(""!==d.trim(t)){var o=t.replace(/^.*\./,"");o=o==t?"notExt":o.toLowerCase(),-1!=r.indexOf(o)&&(n=!0)}return this.optional(e)||n}),d.validator.methods.number=function(t,e,r){return this.optional(e)||/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/.test(t)}}(jQuery,window,document),function(o){"use strict";var n="forminatorFrontCondition",i={fields:{},relations:{}};function r(t,e,r){this.element=t,this.$el=o(this.element),this.settings=o.extend({},i,e),this._defaults=i,this._name=n,this.calendar=r[0],this.init()}o.extend(r.prototype,{init:function(){var n=this,e=this.$el;this.add_missing_relations(),this.$el.find(".forminator-field input, .forminator-field select, .forminator-field textarea, .forminator-field-signature").change(function(t){var e=o(this),r=e.closest(".forminator-col").attr("id");return void 0===r&&(r=e.attr("id")),r=o.trim(r),!(!n.has_relations(r)&&!n.has_siblings(r))&&(n.has_siblings(r)&&n.trigger_fake_parent_date_field(r),!n.has_relations(r)&&n.has_siblings(r)?(n.trigger_siblings(r),!1):void n.process_relations(r,e,t))}),this.$el.find(".forminator-button.forminator-button-back, .forminator-button.forminator-button-next").click(function(t){e.find(".forminator-field input, .forminator-field select, .forminator-field textarea").change()}),this.$el.find(".forminator-field input, .forminator-field select, .forminator-field textarea").change(),this.init_events()},process_relations:function(t,s,l){var f=this;f.get_relations(t).forEach(function(t){var e=f.get_field_logic(t),r=e.action,n=e.rule,o=e.conditions,i=0;if(o.forEach(function(t){f.is_applicable_rule(t,r)&&i++}),"all"===n&&i===o.length||"any"===n&&0<i){if(s instanceof jQuery)var a=s.closest(".forminator-pagination");"submit"===t&&void 0!==a&&f.toggle_field(t,"show","valid"),f.toggle_field(t,r,"valid"),f.has_relations(t)&&("hide"===r?f.hide_element(t,l):f.show_element(t,l))}else f.toggle_field(t,r,"invalid"),f.has_relations(t)&&("show"===r?f.hide_element(t,l):f.show_element(t,l))})},init_events:function(){var e=this;this.$el.on("forminator.front.condition.restart",function(t){e.on_restart(t)})},on_restart:function(t){this.$el.find(".forminator-field input, .forminator-field select, .forminator-field textarea").change()},add_missing_relations:function(){var n=this,o={};if(void 0!==this.settings.fields){var t=this.settings.fields;Object.keys(t).forEach(function(r){t[r].conditions.forEach(function(t){var e=t.field;n.has_relations(e)||(void 0===o[e]&&(o[e]=[]),o[e].push(r))})})}Object.keys(o).forEach(function(t){n.settings.relations[t]=o[t]})},get_field_logic:function(t){return void 0===this.settings.fields[t]?[]:this.settings.fields[t]},has_relations:function(t){return void 0!==this.settings.relations[t]},get_relations:function(t){return this.has_relations(t)?this.settings.relations[t]:[]},get_field_value:function(t){var e=this.get_form_field(t),r=e.val();return this.field_is_radio(e)?r=e.filter(":checked").val():this.field_is_signature(e)?r=e.find("input[id$='_data']").val():this.field_is_checkbox(e)&&(r=[],e.each(function(){o(this).is(":checked")&&r.push(o(this).val().toLowerCase())})),r||""},get_date_field_value:function(t){var e=this.get_form_field(t),r=!0;e instanceof jQuery&&(r=!1,e.hasClass("forminator-col")&&(r=!0));var n="";if(!r&&this.field_is_datepicker(e)){switch(n=e.val(),e.data("format")){case"dd/mm/yy":n=e.val().split("/").reverse().join("-");break;case"dd.mm.yy":n=e.val().split(".").reverse().join("-");break;case"dd-mm-yy":n=e.val().split("-").reverse().join("-")}var o=new Date;""!==n&&(o=new Date(n)),n={year:o.getFullYear(),month:this.calendar.months[o.getMonth()].toLowerCase(),date:o.getDate(),day:this.calendar.days[o.getDay()].toLowerCase()}}else{var i=!0===r?t:e.data("parent"),a=this.get_form_field_value(i+"-year"),s=this.get_form_field_value(i+"-month"),l=this.get_form_field_value(i+"-day");if(""!==a&&""!==s&&""!==l){o=new Date(a+"-"+s+"-"+l);if(!0===r)return o;n={year:o.getFullYear(),month:this.calendar.months[o.getMonth()].toLowerCase(),date:o.getDate(),day:this.calendar.days[o.getDay()].toLowerCase()}}}return n||""},field_is_radio:function(t){var e=!1;return t.each(function(){if("radio"===o(this).attr("type"))return!(e=!0)}),e},field_is_signature:function(t){var e=!1;return t.each(function(){if(0<o(this).find(".forminator-field-signature").length)return!(e=!0)}),e},field_is_datepicker:function(t){var e=!1;return t.each(function(){if(o(this).hasClass("forminator-datepicker"))return!(e=!0)}),e},field_is_checkbox:function(t){var e=!1;return t.each(function(){if("checkbox"===o(this).attr("type"))return!(e=!0)}),e},get_form_field:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("."+t+"-payment")).length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&0===(e=this.$el.find("select[name="+t+"]")).length&&(e=this.$el.find("#"+t)),e},get_form_field_value:function(t){var e=this.$el.find("#"+t+"-field");return 0===e.length&&0===(e=this.$el.find("input[name="+t+"]")).length&&0===(e=this.$el.find("textarea[name="+t+"]")).length&&0===(e=this.$el.find('input[name="'+t+'[]"]')).length&&0===(e=this.$el.find("select[name="+t+"]")).length&&(e=this.$el.find("#"+t)),e.val()},is_numeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},is_date_rule:function(t){return["day_is","day_is_not","month_is","month_is_not","is_before","is_after","is_before_n_or_more_days","is_before_less_than_n_days","is_after_n_or_more_days","is_after_less_than_n_days"].includes(t)},has_siblings:function(t){return!!(t=this.get_form_field(t)).data("parent")},trigger_fake_parent_date_field:function(t){var e=this.get_form_field(t).data("parent");this.process_relations(e,{},{})},trigger_siblings:function(r){var t,n=this,e=n.get_form_field(r).data("parent");t=[e+"-year",e+"-month",e+"-day"],o.each(t,function(t,e){r!==e&&n.has_relations(e)&&n.get_form_field(e).trigger("change")})},is_applicable_rule:function(t,e){if(void 0===t)return!1;if(this.is_date_rule(t.operator))var r=this.get_date_field_value(t.field);else r=this.get_field_value(t.field);var n=t.value,o=t.operator;return"show"===e?this.is_matching(r,n,o)&&this.is_hidden(t.field):this.is_matching(r,n,o)},is_hidden:function(t){var e=this.get_form_field(t).closest(".forminator-col").closest(".forminator-row");return!!e.hasClass("forminator-hidden-option")||!e.hasClass("forminator-hidden")},is_matching:function(t,e,r){var n=Array.isArray(t);switch("string"==typeof t&&(t=t.toLowerCase()),"string"==typeof e&&(e=e.toLowerCase()),r){case"is":return n?-1<o.inArray(e,t):t===e;case"is_not":return n?-1===o.inArray(e,t):t!==e;case"is_great":return t=+t,e=+e,!(!this.is_numeric(t)||!this.is_numeric(e))&&e<t;case"is_less":return t=+t,e=+e,!(!this.is_numeric(t)||!this.is_numeric(e))&&t<e;case"contains":return this.contains(t,e);case"starts":return t.startsWith(e);case"ends":return t.endsWith(e);case"month_is":return t.month===e;case"month_is_not":return t.month!==e;case"day_is":return t.day===e;case"day_is_not":return t.day!==e;case"is_before":return this.date_is_smaller(t,e);case"is_after":return this.date_is_grater(t,e);case"is_before_n_or_more_days":return this.date_is_n_days_before_current_date(t,e);case"is_before_less_than_n_days":return this.date_is_less_than_n_days_before_current_date(t,e);case"is_after_n_or_more_days":return this.date_is_n_days_after_current_date(t,e);case"is_after_less_than_n_days":return this.date_is_less_than_n_days_after_current_date(t,e)}return!1},contains:function(t,e){return 0<=t.toLowerCase().indexOf(e)},date_is_grater:function(t,e){return 1===forminatorDateUtil.compare(t,e)},date_is_smaller:function(t,e){return-1===forminatorDateUtil.compare(t,e)},date_is_equal:function(t,e){return 0===forminatorDateUtil.compare(t,e)},date_is_n_days_before_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(t,r);return!isNaN(n)&&(0===e?n===e:e<=n)},date_is_less_than_n_days_before_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(t,r);return!isNaN(n)&&(n<e&&0<n)},date_is_n_days_after_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(r,t);return!isNaN(n)&&(0===e?n===e:e<=n)},date_is_less_than_n_days_after_current_date:function(t,e){e=parseInt(e);var r=this.get_current_date(),n=forminatorDateUtil.diffInDays(r,t);return!isNaN(n)&&(n<e&&0<n)},get_current_date:function(){return new Date},toggle_field:function(t,e,r){var n=this.get_form_field(t).closest(".forminator-col"),o=n.find(".forminator-input-file-required"),i=n.find("[id ^=ctlSignature][id $=_data]"),a=n.find(".forminator-wp-editor-required"),s=n.closest(".forminator-row"),l=this.$el.find(".forminator-pagination-footer").find(".forminator-button-next"),f=this.$el.find(".forminator-pagination-footer").find("#forminator-paypal-submit");if("submit"===t)var u=this.$el.find(".forminator-pagination-footer").find(".forminator-button-submit");else u=this.$el.find(".forminator-pagination-footer").find("#forminator-paypal-submit");"show"===e&&("valid"===r?(s.removeClass("forminator-hidden"),n.removeClass("forminator-hidden"),u.removeClass("forminator-hidden"),l.removeClass("forminator-hidden"),0<o.length&&o.addClass("do-validate"),0<a.length&&a.addClass("do-validate"),0<i.length&&i.addClass("do-validate"),0<f.length&&f.removeClass("forminator-hidden")):(n.addClass("forminator-hidden"),u.addClass("forminator-hidden"),0<o.length&&o.removeClass("do-validate"),0<a.length&&a.removeClass("do-validate"),0<i.length&&i.removeClass("do-validate"),0===s.find("> .forminator-col:not(.forminator-hidden)").length&&s.addClass("forminator-hidden"))),"hide"===e&&("valid"===r?(n.addClass("forminator-hidden"),u.addClass("forminator-hidden"),0<o.length&&o.removeClass("do-validate"),0<a.length&&a.removeClass("do-validate"),0<i.length&&i.removeClass("do-validate"),0===s.find("> .forminator-col:not(.forminator-hidden)").length&&s.addClass("forminator-hidden")):(s.removeClass("forminator-hidden"),n.removeClass("forminator-hidden"),u.removeClass("forminator-hidden"),0<o.length&&o.addClass("do-validate"),0<a.length&&a.addClass("do-validate"),0<i.length&&i.addClass("do-validate"))),this.$el.trigger("forminator:field:condition:toggled")},clear_value:function(t,e){var r=this.get_form_field(t),n=this.get_field_value(t);void 0!==e.originalEvent&&(this.field_is_radio(r)?(r.data("previous-value",n),r.removeAttr("checked")):this.field_is_checkbox(r)?r.each(function(){o(this).is(":checked")&&o(this).data("previous-value",n),o(this).removeAttr("checked")}):(r.data("previous-value",n),r.val("")))},restore_value:function(t,e){var r=this.get_form_field(t),n=r.data("previous-value");n&&void 0!==e.originalEvent&&(this.field_is_radio(r)?r.val([n]):this.field_is_checkbox(r)?r.each(function(){var t=o(this).data("previous-value");t&&0<=t.indexOf(o(this).val())&&o(this).attr("checked","checked")}):r.val(n))},hide_element:function(t,e){var r=this,n=r.get_relations(t);r.clear_value(t,e),n.forEach(function(t){r.toggle_field(t,"hide","valid"),r.has_relations(t)&&(n=r.hide_element(t,e))})},show_element:function(t,a){var s=this,l=s.get_relations(t);this.restore_value(t,a),l.forEach(function(t){var e=s.get_field_logic(t),r=e.action,n=e.rule,o=e.conditions,i=0;o.forEach(function(t){s.is_applicable_rule(t,r)&&i++}),"all"===n&&i===o.length||"any"===n&&0<i?s.toggle_field(t,r,"valid"):s.toggle_field(t,r,"invalid"),s.has_relations(t)&&(l=s.show_element(t,a))})}}),o.fn[n]=function(t,e){return this.each(function(){o.data(this,n)||o.data(this,n,new r(this,t,e))})}}(jQuery,window,document),function(p,b){"use strict";var r="forminatorFrontSubmit",n={form_type:"custom-form",forminatorFront:!1,forminator_selector:"",chart_design:"bar",chart_options:{}};function e(t,e){this.element=t,this.$el=p(this.element),this.forminatorFront=null,this.settings=p.extend({},n,e),this._defaults=n,this._name=r,this.init()}p.extend(e.prototype,{init:function(){switch(this.forminatorFront=this.$el.data("forminatorFront"),this.settings.form_type){case"custom-form":this.settings.forminator_selector&&p(this.settings.forminator_selector).length||(this.settings.forminator_selector=".forminator-custom-form"),this.handle_submit_custom_form();break;case"quiz":this.settings.forminator_selector&&p(this.settings.forminator_selector).length||(this.settings.forminator_selector=".forminator-quiz"),this.handle_submit_quiz();break;case"poll":this.settings.forminator_selector&&p(this.settings.forminator_selector).length||(this.settings.forminator_selector=".forminator-poll"),this.handle_submit_poll()}},decodeHtmlEntity:function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})},handle_submit_custom_form:function(){var m=this,h=p(this.element);m.$el.find(".forminator-response-message").find(".forminator-label--success").not(":hidden").length&&m.focus_to_element(m.$el.find(".forminator-response-message"),!0),p(".def-ajaxloader").hide();var r=!1;p("body").on("click","#lostPhone",function(t){t.preventDefault();var e=p(this);!1===r&&(r=!0,p.ajax({type:"GET",url:e.attr("href"),beforeSend:function(){e.attr("disabled","disabled"),p(".def-ajaxloader").show()},success:function(t){e.removeAttr("disabled"),p(".def-ajaxloader").hide(),p(".notification").text(t.data.message),r=!1}}))}),p("body").on("click",".auth-back",function(t){t.preventDefault();var e=m.$el.attr("id");p("#"+(e+"-authentication")+"-input").attr("disabled","disabled"),FUI.closeAuthentication()}),p("body").on("submit.frontSubmit",this.settings.forminator_selector,function(n){var u=p(this),t=this,o=n,c=new FormData(this),d=u.find(".forminator-response-message"),i=u.find(".forminator-g-recaptcha");if(m.settings.inline_validation&&0<m.$el.find(".forminator-uploaded-files").length&&0<m.$el.find(".forminator-uploaded-files li.forminator-has_error").length)return!1;if(void 0!==o.originalEvent){var e=p(this).find(".forminator-button-submit").first();if(0===e.length||p(e).closest(".forminator-col").hasClass("forminator-hidden"))return!1}if(m.$el.data("forminatorFrontPayment")&&i.length){var r=(i=p(i.get(0))).data("forminator-recapchta-widget"),a=i.data("size"),s=b.grecaptcha.getResponse(r);if("invisible"===a&&0===s.length)return b.grecaptcha.execute(r),!1;if(m.$el.hasClass("forminator_ajax")&&b.grecaptcha.reset(r),d.html(""),i.hasClass("error")&&i.removeClass("error"),0===s.length)return i.hasClass("error")||i.addClass("error"),d.html('<label class="forminator-label--error"><span>'+b.ForminatorFront.cform.captcha_error+"</span></label>"),m.focus_to_element(d),!1}function l(){if(c=new FormData(this),!m.$el.data("forminatorFrontPayment")&&i.length){var t=(i=p(i.get(0))).data("forminator-recapchta-widget"),e=i.data("size"),r=b.grecaptcha.getResponse(t);if("invisible"===e&&0===r.length)return b.grecaptcha.execute(t),!1;if(m.$el.hasClass("forminator_ajax")&&b.grecaptcha.reset(t),d.html(""),i.hasClass("error")&&i.removeClass("error"),0===r.length)return i.hasClass("error")||i.addClass("error"),d.html('<label class="forminator-label--error"><span>'+b.ForminatorFront.cform.captcha_error+"</span></label>"),m.focus_to_element(d),!1}if(m.$el.hasClass("forminator_ajax")){d.html(""),m.$el.find(".forminator-button-submit").addClass("forminator-button-onload"),m.$el.find("input[type=file]").each(function(){""===p(this).val()&&"function"==typeof b.FormData.prototype.delete&&c.delete(p(this).attr("name"))});void 0!==m.settings.has_loader&&m.settings.has_loader&&("login"!==m.$el.find('input[name="form_type"]').val()&&h.addClass("forminator-fields-disabled"),d.html("<p>"+m.settings.loader_label+"</p>"),m.focus_to_element(d),d.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show")),n.preventDefault(),p.ajax({type:"POST",url:b.ForminatorFront.ajaxUrl,data:c,cache:!1,contentType:!1,processData:!1,beforeSend:function(){u.find("button").attr("disabled",!0),u.trigger("before:forminator:form:submit",c)},success:function(t){if(!t&&void 0!==t)return u.find("button").removeAttr("disabled"),d.addClass("forminator-error").html("<p>"+b.ForminatorFront.cform.error+"</p>"),m.focus_to_element(d,"forminator-error"),!1;if(u.find(".forminator-error-message").not(".forminator-uploaded-files .forminator-error-message").remove(),u.find(".forminator-field").removeClass("forminator-has_error"),u.find("button").removeAttr("disabled"),d.html("").removeClass("forminator-accessible forminator-error forminator-success"),m.settings.hasLeads&&void 0!==t.data.entry_id)return h.css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),p("#forminator-quiz-leads-"+m.settings.quiz_id+" .forminator-lead-form-skip").hide(),"beginning"===m.settings.form_placement&&p("#forminator-module-"+m.settings.quiz_id).css({height:"",opacity:"",overflow:"",visibility:"","pointer-events":"",margin:"",padding:"",border:""}),p("#forminator-module-"+m.settings.quiz_id+" input[name=entry_id]").val(t.data.entry_id),"end"===m.settings.form_placement&&p("#forminator-module-"+m.settings.quiz_id).submit(),!1;if(void 0!==t.data.authentication&&("show"===t.data.authentication||"invalid"===t.data.authentication)){var e=m.$el.attr("id"),r=e+"-authentication",n=p("#"+r),o=p("#"+r+"-input");return n.find(".forminator-authentication-notice").removeClass("error"),n.find(".lost-device-url").attr("href",t.data.lost_url),"show"===t.data.authentication&&(o.removeAttr("disabled"),FUI.openAuthentication(r,e,r+"-input")),"invalid"===t.data.authentication&&(n.find(".forminator-authentication-notice").addClass("error"),n.find(".forminator-authentication-notice").html("<p>"+t.data.message+"</p>")),!1}var i=t.success?"forminator-success":"forminator-error";if(void 0!==t.message){if(d.removeAttr("aria-hidden").prop("tabindex","-1").addClass(i+" forminator-show"),m.focus_to_element(d,"forminator-success"==i),d.html("<p>"+t.message+"</p>"),!t.data.success&&t.data.errors.length){var a='<ul class="forminator-screen-reader-only">';p.each(t.data.errors,function(t,e){for(var r in e)e.hasOwnProperty(r)&&(a+="<li>"+e[r]+"</li>")}),a+="</ul>",d.append(a)}}else if(void 0!==t.data){var s=!0;if(void 0!==t.data.url&&""===p.trim(t.data.message)&&(s=!1),s&&(d.removeAttr("aria-hidden").prop("tabindex","-1").addClass(i+" forminator-show"),m.focus_to_element(d,"forminator-success"==i),d.html("<p>"+t.data.message+"</p>")),!t.data.success&&void 0!==t.data.errors&&t.data.errors.length){a='<ul class="forminator-screen-reader-only">';p.each(t.data.errors,function(t,e){for(var r in e)e.hasOwnProperty(r)&&(a+="<li>"+e[r]+"</li>")}),a+="</ul>",d.append(a)}}if(!t.data.success&&void 0!==t.data.errors&&t.data.errors.length&&(u.trigger("forminator:form:submit:failed",c),m.show_messages(t.data.errors)),!0===t.success){if(u[0]){if(m.settings.resetEnabled&&u[0].reset(),m.$el.trigger("forminator:field:condition:toggled"),u.find(".forminator-field-signature img").trigger("click"),void 0!==t.data.select_field&&p.each(t.data.select_field,function(r,t){0<t.length&&p.each(t,function(t,e){e.value&&("multiselect"===e.type?u.find("#"+r+" input[value="+e.value+"]").closest("li").remove().trigger("change"):u.find("#"+r+" option[value="+e.value+"]").remove().trigger("change"))})}),u.find(".forminator-button-delete").hide(),u.find(".forminator-file-upload input").val(""),u.find(".forminator-file-upload > span").html(b.ForminatorFront.cform.no_file_chosen),u.find("ul.forminator-uploaded-files").html(""),m.$el.find("ul.forminator-uploaded-files").html(""),m.$el.find(".forminator-multifile-hidden").val(""),0<u.find(".forminator-select").length&&u.find(".forminator-select").each(function(t,e){var r=p(e).data("default-value");""===r&&(r=p(e).val()),p(e).val(r).trigger("fui:change")}),0<u.find(".multiselect-default-values").length&&""!==u.find(".multiselect-default-values").val()){var l=p.parseJSON(u.find(".multiselect-default-values").val()),f=Object.values(l);u.find('.forminator-multiselect input[type="checkbox"]').each(function(t,e){-1!==p.inArray(p(e).val(),f)?(p(e).prop("checked",!0),p(e).closest("label").addClass("forminator-is_checked")):(p(e).prop("checked",!1),p(e).closest("label").removeClass("forminator-is_checked"))})}u.trigger("forminator:form:submit:success",c),u.trigger("forminator.front.condition.restart")}void 0!==t.data.url&&(void 0!==t.data.newtab&&"sametab"!==t.data.newtab?("newtab_hide"===t.data.newtab&&m.$el.hide(),b.open(m.decodeHtmlEntity(t.data.url),"_blank")):b.location.href=m.decodeHtmlEntity(t.data.url)),void 0!==t.data.behav&&"behaviour-hide"===t.data.behav&&(m.$el.find(".forminator-row").hide(),m.$el.find(".forminator-pagination-steps").hide(),m.$el.find(".forminator-pagination-footer").hide(),m.$el.find(".forminator-pagination-steps, .forminator-pagination-progress").hide())}},error:function(t){u.find("button").removeAttr("disabled"),d.html("");var e=400===t.status?b.ForminatorFront.cform.upload_error:b.ForminatorFront.cform.error;d.html('<label class="forminator-label--notice"><span>'+e+"</span></label>"),m.focus_to_element(d),u.trigger("forminator:form:submit:failed",c)},complete:function(t,e){m.$el.find(".forminator-button-submit").removeClass("forminator-button-onload"),u.trigger("forminator:form:submit:complete",c)}}).always(function(){void 0!==m.settings.has_loader&&m.settings.has_loader&&(h.removeClass("forminator-fields-disabled forminator-partial-disabled"),d.removeClass("forminator-loading")),u.trigger("after:forminator:form:submit",c)})}else void 0!==m.settings.has_loader&&m.settings.has_loader&&(h.addClass("forminator-fields-disabled"),d.html("<p>"+m.settings.loader_label+"</p>"),d.removeAttr("aria-hidden").prop("tabindex","-1").removeClass("forminator-success forminator-error").addClass("forminator-loading forminator-show")),o.currentTarget.submit()}var f=m.$el.find('div[data-is-payment="true"]').closest(".forminator-row").hasClass("forminator-hidden");return m.$el.data("forminatorFrontPayment")&&!f?m.$el.trigger("payment.before.submit.forminator",[c,function(){l.apply(t)}]):l.apply(t),!1})},handle_submit_quiz:function(t){var u=this,c=void 0!==u.settings.hasLeads&&u.settings.hasLeads,d=void 0!==u.settings.leads_id?u.settings.leads_id:0,m=void 0!==u.settings.quiz_id?u.settings.quiz_id:0;p("body").on("submit.frontSubmit",this.settings.forminator_selector,function(t){var e,r=p(this),n=new FormData(this),o=r.find(".forminator-answer"),i=u.$el.find(".forminator-button"),a=i.data("loading"),s=void 0!==u.settings.form_placement?u.settings.form_placement:"",l=void 0!==u.settings.skip_form?u.settings.skip_form:"";if(t.preventDefault(),t.stopPropagation(),u.$el.find(".forminator-has-been-disabled").removeAttr("disabled"),e=r.serialize(),u.$el.find(".forminator-has-been-disabled").attr("disabled","disabled"),c){var f="";if(0<u.$el.find("input[name=entry_id]").length&&(f=u.$el.find("input[name=entry_id]").val()),"end"===s&&""===f)return p("#forminator-module-"+d).css({height:"",opacity:"",overflow:"",visibility:"","pointer-events":"",margin:"",padding:"",border:""}),u.$el.find(".forminator-quiz--result").addClass("forminator-hidden"),p("#forminator-quiz-leads-"+m+" .forminator-lead-form-skip").show(),!1;if(!l&&""===f)return!1}return""!==a&&i.text(a),u.settings.has_quiz_loader&&o.each(function(){var t=p(this),e=t.find("input"),r=t.find(".forminator-answer--status");e.is(":checked")&&0===r.html().length&&r.html('<i class="forminator-icon-loader forminator-loading"></i>')}),p.ajax({type:"POST",url:b.ForminatorFront.ajaxUrl,data:e,beforeSend:function(){u.$el.find("button").attr("disabled","disabled"),r.trigger("before:forminator:quiz:submit",[e,n])},success:function(l){l.success?(u.$el.find(".forminator-quiz--result").removeClass("forminator-hidden"),"nowrong"===l.data.type?(b.history.pushState("forminator","Forminator",l.data.result_url),u.$el.find(".forminator-quiz--result").html(l.data.result),u.$el.find(".forminator-answer input").attr("disabled","disabled")):"knowledge"===l.data.type&&(b.history.pushState("forminator","Forminator",l.data.result_url),0<u.$el.find(".forminator-quiz--result").length&&u.$el.find(".forminator-quiz--result").html(l.data.finalText),Object.keys(l.data.result).forEach(function(t){var e,r,n=u.$el.find("#"+t),o=n.find(".forminator-question--result"),i=n.find(".forminator-submit-rightaway"),a=n.find('[id|="'+l.data.result[t].answer+'"]').closest(".forminator-answer"),s=n.find(".forminator-answer input");r=l.data.result[t].isCorrect?(e="forminator-is_correct",'<i class="forminator-icon-check"></i>'):(e="forminator-is_incorrect",'<i class="forminator-icon-cancel"></i>'),o.text(l.data.result[t].message),o.addClass("forminator-show"),i.attr("disabled",!0),i.attr("aria-disabled",!0),s.attr("disabled",!0),s.attr("aria-disabled",!0),a.addClass(e),0===a.find(".forminator-answer--status").html().length?a.find(".forminator-answer--status").html(r):0!==a.find(".forminator-answer--status .forminator-icon-loader").length&&a.find(".forminator-answer--status").html(r)})),r.trigger("forminator:quiz:submit:success",[e,n])):(u.$el.find("button").removeAttr("disabled"),r.trigger("forminator:quiz:submit:failed",[e,n]))}}).always(function(){r.trigger("after:forminator:quiz:submit",[e,n])}),!1}),p("body").on("click","#forminator-quiz-leads-"+m+" .forminator-lead-form-skip",function(t){p("#forminator-module-"+d).css({height:0,opacity:0,overflow:"hidden",visibility:"hidden","pointer-events":"none",margin:0,padding:0,border:0}),p(this).hide(),void 0!==u.settings.form_placement&&"beginning"===u.settings.form_placement&&u.$el.css({height:"",opacity:"",overflow:"",visibility:"","pointer-events":"",margin:"",padding:"",border:""}),void 0!==u.settings.form_placement&&"end"===u.settings.form_placement&&(u.settings.form_placement="skip",u.$el.submit())}),p("body").on("click",".forminator-result--retake",function(t){var e={action:"forminator_reload_quiz",pageId:u.$el.find('input[name="page_id"]').val(),nonce:u.$el.find('input[name="forminator_nonce"]').val()};t.preventDefault(),p.post(b.ForminatorFront.ajaxUrl,e,function(t){1==t.success&&t.html&&b.location.replace(t.html)})})},handle_submit_poll:function(){var u=this,c=u.$el.html();u.$el.find(".forminator-response-message").not(":hidden").length&&u.focus_to_element(u.$el.find(".forminator-response-message"),!0,!0),p("body").on("submit.frontSubmit",this.settings.forminator_selector,function(t){var r=p(this),n=new FormData(this),o=r.serialize(),i=u.$el.find(".forminator-response-message"),a=u.$el.find("fieldset"),s=u.$el.find(".forminator-button");function l(){i.html(""),i.removeClass("forminator-show"),i.removeClass("forminator-error"),i.removeClass("forminator-success"),i.removeAttr("tabindex"),i.attr("aria-hidden",!0),a.removeClass("forminator-has_error")}function f(t,e){i.html("<p>"+t+"</p>"),i.addClass("forminator-"+e),i.addClass("forminator-show"),i.removeAttr("aria-hidden"),i.attr("tabindex","-1"),i.focus(),"error"===e&&(a.find('input[type="radio"]').is(":checked")||a.addClass("forminator-has_error"))}return!u.$el.hasClass("forminator_ajax")||(l(),p.ajax({type:"POST",url:b.ForminatorFront.ajaxUrl,data:o,beforeSend:function(){s.addClass("forminator-onload"),r.trigger("before:forminator:poll:submit",[o,n])},success:function(t){var e=t.success?"success":"error";s.removeClass("forminator-onload"),!1===t.success?(f(t.data.message,e),r.trigger("forminator:poll:submit:failed",[o,n])):void 0!==t.data&&(e=t.data.success?"success":"error",f(t.data.message,e),setTimeout(function(){l()},2500)),!0===t.success&&(void 0!==t.data.url?b.location.href=t.data.url:void 0!==t.data.chart_data&&1<t.data.chart_data.length&&("link_on"===t.data.results_behav&&r.find(".forminator-note").length&&(r.find(".forminator-note").remove(),r.find(".forminator-poll-footer").append(t.data.results_link)),"show_after"===t.data.results_behav&&(u.render_poll_chart(t.data.chart_data,t.data.back_button,u,c,[t.data.votes_text,t.data.votes_count,[t.data.grids_color,t.data.labels_color,t.data.onchart_label],[t.data.tooltips_bg,t.data.tooltips_color]]),console.log(t.data.grids_color))),r.trigger("forminator:poll:submit:success",[o,n]))},error:function(){l(),s.removeClass(".forminator-onload"),r.trigger("forminator:poll:submit:failed",[o,n])}}).always(function(){r.trigger("after:forminator:poll:submit",[o,n])}),!1)})},render_poll_chart:function(t,e,r,n,o){var i,a,s,l,f,u,c,d="forminator-chart-poll-"+(r.$el.attr("id")+"-"+r.$el.data("forminatorRender")),m=r.$el.find(".forminator-poll-body"),h=r.$el.find(".forminator-poll-footer");i=r.$el.find(".forminator-chart-wrapper"),a=r.$el.find(".forminator-chart"),i.remove(),a.remove(),s=p('<canvas id="'+d+'" class="forminator-chart" role="img" aria-hidden="true"></canvas>'),m.append(s),FUI.pollChart("#"+d,t,r.settings.chart_design,o),(l=m.find(".forminator-field")).hide(),l.attr("aria-hidden","true"),f=r.$el.find(".forminator-chart"),(u=r.$el.find(".forminator-chart-wrapper")).length?(f.addClass("forminator-show"),u.addClass("forminator-show"),u.removeAttr("aria-hidden"),u.attr("tabindex","-1"),u.focus()):(f.html("<p>Fallback text...</p>"),f.addClass("forminator-show"),f.removeAttr("aria-hidden"),f.attr("tabindex","-1"),f.focus()),c=p(e),h.empty(),h.append(c),r.$el.find(".forminator-button").click(function(t){r.$el.hasClass("forminator_ajax")?r.$el.html(n):location.reload(),t.preventDefault()})},focus_to_element:function(t,e,r){r=r||!1,e=(e=e||!1)&&this.settings.fadeout;var n=this.settings.fadeout_time;function o(t){t.attr("tabindex")||t.attr("tabindex",-1),t.focus(),e&&t.show().delay(n).fadeOut("slow")}t.show(),r?o(t):p("html,body").animate({scrollTop:t.offset().top-(p(b).height()-t.outerHeight(!0))/2},500,function(){o(t)})},show_messages:function(t){var d=this,m=d.$el.data("forminatorFrontCondition");if(void 0!==m){this.$el.find(".forminator-error-message").remove();var h=0;t.forEach(function(t){var e=Object.keys(t),r=m.get_form_field(e),n=p(r),o=n.closest(".forminator-field"),i=n.closest(".forminator-date-input"),a=n.closest(".forminator-timepicker"),s=!1,l=!1,f=!1,u=Object.values(t),c='<span class="forminator-error-message" aria-hidden="true"></span>';if(r.length){if(0===h&&(d.$el.trigger("forminator.front.pagination.focus.input",[r]),d.focus_to_element(r)),0<i.length)l=(s=i.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("day"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="year"]').length?p(c).insertBefore(s.find('.forminator-error-message[data-error-field="year"]')):0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"month"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="day"]').length?p(c).insertBefore(s.find('.forminator-error-message[data-error-field="day"]')):0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"year"===n.data("field")&&(0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else if(0<a.length&&0<u[0].length)l=(s=a.parent()).find('.forminator-error-message[data-error-field="'+n.data("field")+'"]'),f=s.find(".forminator-description"),c='<span class="forminator-error-message" data-error-field="'+n.data("field")+'" aria-hidden="true"></span>',0===l.length&&("hours"===n.data("field")&&(s.find('.forminator-error-message[data-error-field="minutes"]').length?p(c).insertBefore(s.find('.forminator-error-message[data-error-field="minutes"]')):0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>')),"minutes"===n.data("field")&&(0===f.length?s.append(c):p(c).insertBefore(f),0===o.find(".forminator-error-message").length&&o.append('<span class="forminator-error-message" aria-hidden="true"></span>'))),s.find('.forminator-error-message[data-error-field="'+n.data("field")+'"]').html(u),o.find(".forminator-error-message").html(u);else{l=o.find(".forminator-error-message"),f=o.find(".forminator-description");0===l.length&&(0===f.length?o.append(c):p(c).insertBefore(f)),o.find(".forminator-error-message").html(u)}n.attr("aria-invalid","true"),o.addClass("forminator-has_error"),h++}})}return this}}),p.fn[r]=function(t){return this.each(function(){p.data(this,r)||p.data(this,r,new e(this,t))})}}(jQuery,window,document),function(p,b,f){"use strict";var r="forminatorFrontMultiFile",n={};function e(t,e){this.element=t,this.$el=p(this.element),this.form=p.extend({},n,e),this._defaults=n,this._name=r,this.form_id=0,this.uploader=this.$el,this.element=this.uploader.data("element"),this.init()}p.extend(e.prototype,{init:function(){var a=this,s=[],l=[];0<this.form.find("input[name=form_id]").length&&(this.form_id=this.form.find("input[name=form_id]").val()),this.uploader.on("drag dragstart dragend dragover dragenter dragleave drop",function(t){t.preventDefault(),t.stopPropagation()}),this.uploader.on("dragover dragenter",function(t){p(this).addClass("forminator-dragover")}),this.uploader.on("dragleave dragend drop",function(t){p(this).removeClass("forminator-dragover")}),this.uploader.find(".forminator-upload-file--forminator-field-"+this.element).on("click",function(t){a.form.find(".forminator-field-"+a.element+"-"+a.form_id).click()}),this.uploader.on("drop",function(t){f.querySelector(".forminator-field-"+a.element+"-"+a.form_id).files=t.originalEvent.dataTransfer.files,a.form.find(".forminator-field-"+a.element+"-"+a.form_id).change()}),this.uploader.on("click",function(t){t.target===t.currentTarget&&a.form.find(".forminator-field-"+a.element+"-"+a.form_id).click()}),this.uploader.find(".forminator-multi-upload-message, .forminator-multi-upload-message p, .forminator-multi-upload-message .forminator-icon-upload").on("click",function(t){t.target===t.currentTarget&&a.form.find(".forminator-field-"+a.element+"-"+a.form_id).click()}),this.form.on("forminator:form:submit:success",function(t){s=[]}),this.form.find(".forminator-field-"+a.element+"-"+a.form_id).on("change",function(t){var e=p(this),r=this.files,n=[];e.closest(".forminator-field").removeClass("forminator-has_error");for(var o=0;o<r.length;o++)n.push(r[o]),s.push(r[o]);l=a.handleChangeCallback(n,e,l);var i=Array.prototype.slice.call(s);this.files=a.FileObjectItem(i)}),this.delete_files(s,l)},handleChangeCallback:function(l,f,u){var c=this,d=0,m=new FormData,t=this.form.find('input[name="forminator_nonce"]').val(),h=f.data("method");return m.append("action","forminator_multiple_file_upload"),m.append("form_id",this.form_id),m.append("element_id",c.element),m.append("nonce",t),p.each(l,function(t,n){var o=c.progress_bar(n,h),e=c.form.find(".upload-container-"+c.element+" li").length,r=void 0!==f.data("filetype")?f.data("filetype"):"",i=new RegExp("(.*?).("+r+")$");if(void 0!==f.data("size")&&f.data("size")<=n.size)return s=f.data("size-message"),void c.upload_fail_response(o,s);if(!i.test(n.name))return s="."+n.name.split(".").pop()+" "+f.data("filetype-message"),void c.upload_fail_response(o,s);if("ajax"===h)m.delete(c.element),m.delete("totalFiles"),m.append("totalFiles",e),m.append(c.element,n),u.push(p.ajax({xhr:function(){var t=new b.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total*100;e<90&&c.form.find("#"+o+" .progress-percentage").html(Math.round(e)+"% of ")}},!1),t},type:"POST",url:b.ForminatorFront.ajaxUrl,data:m,cache:!1,contentType:!1,processData:!1,beforeSend:function(){c.form.find(".forminator-button-submit").attr("disabled",!0),c.$el.trigger("before:forminator:multiple:upload",m)},success:function(t){var e=c.element,r={success:t.success,message:"undefined"!==t.data.message?t.data.message:"",file_id:o,file_name:n.name};c.add_upload_file(e,r),!0===t.success&&!0===t.data.success&&void 0!==t.data?(c.upload_success_response(o),c.$el.trigger("success:forminator:multiple:upload",m)):(c.upload_fail_response(o,t.data.message),void 0!==t.data.error_type&&"limit"===t.data.error_type&&c.form.find("#"+o).addClass("forminator-upload-limit_error"),c.$el.trigger("fail:forminator:multiple:upload",m))},complete:function(t,e){d++,l.length===d&&c.form.find(".forminator-button-submit").attr("disabled",!1),c.$el.trigger("complete:forminator:multiple:upload",m)},error:function(t){c.upload_fail_response(o,b.ForminatorFront.cform.process_error)}}));else{var a=!0,s=b.ForminatorFront.cform.process_error;void 0!==f.data("limit")&&f.data("limit")<e&&(a=!1,c.form.find("#"+o).addClass("forminator-upload-limit_error"),s=f.data("limit-message")),a?c.upload_success_response(o):c.upload_fail_response(o,s)}}),u},upload_fail_response:function(t,e){this.form.find("#"+t).addClass("forminator-has_error"),this.form.find("#"+t).find('.forminator-uploaded-file--size [class*="forminator-icon-"]').addClass("forminator-icon-warning").removeClass("forminator-icon-loader").removeClass("forminator-loading"),this.form.find("#"+t+" .progress-percentage").html("0% of "),this.form.find("#"+t+" .forminator-uploaded-file--content").after('<div class="forminator-error-message">'+e+"</div>")},upload_success_response:function(t){this.form.find("#"+t+" .progress-percentage").html("100% of "),this.form.find("#"+t+' .forminator-uploaded-file--size [class*="forminator-icon-"]').remove(),this.form.find("#"+t+" .progress-percentage").remove()},progress_bar:function(t,e){var r="upload-process-"+Math.random().toString(36).substr(2,7),n=t.name,o=this.bytes_to_size(t.size,2),i=this.uploader.closest(".forminator-field").find(".forminator-uploaded-files"),a="";this.progress_image_preview(t,r);var s='<div class="forminator-uploaded-file--preview" aria-hidden="true"><span class="forminator-icon-file" aria-hidden="true"></span></div>';return function(t){switch(function(t){var e=t.split(".");return e[e.length-1]}(t).toLowerCase()){case"jpg":case"jpe":case"jpeg":case"png":case"gif":case"ico":return!0}return!1}(n)&&(s='<div class="forminator-uploaded-file--image" aria-hidden="true"><div class="forminator-img-preview" role="image"></div></div>'),a+='<li id="'+r+'" class="forminator-uploaded-file">',a+='<div class="forminator-uploaded-file--content">',a+=s,a+='<div class="forminator-uploaded-file--text">',a+='<p class="forminator-uploaded-file--title">'+n+"</p>",a+='<p class="forminator-uploaded-file--size"><span class="forminator-icon-loader forminator-loading" aria-hidden="true"></span><span class="progress-percentage">29% of </span>'+o+"</p>",a+="</div>",a+='<button type="button" class="forminator-uploaded-file--delete forminator-button-delete" data-method="'+e+'" data-element="'+this.element+'" data-value="'+r+'"><span class="forminator-icon-close" aria-hidden="true"></span><span class="forminator-screen-reader-only">Delete uploaded file</span></button>',a+="</div>",a+="</li>",i.hasClass(".forminator-has-files")||i.addClass("forminator-has-files"),i.append(a),r},bytes_to_size:function(t,e){if(0===t)return"0 Bytes";var r=e<0?0:e,n=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,n)).toFixed(r))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},progress_image_preview:function(t,e){if(t){var r=new FileReader;r.onload=function(t){p("#"+e+" .forminator-img-preview").css("background-image","url("+t.target.result+")")},r.readAsDataURL(t)}},get_uplaoded_files:function(){var t;return t=void 0===(t=this.form.find(".forminator-multifile-hidden").val())||""===t?{}:p.parseJSON(t)},get_uplaoded_file:function(t){var e=this.get_uplaoded_files();return void 0===e[t]&&(e[t]=[]),e[t]},add_upload_file:function(t,e){var r=this.get_uplaoded_file(t);r.unshift(e),this.set_upload_file(t,r)},set_upload_file:function(t,e){var r=this.get_uplaoded_files(),n=this.form.find(".forminator-multifile-hidden");r[t]=e,n.val(JSON.stringify(r))},get_uploaded_file_id:function(t,r){var n=null,e=this.get_uplaoded_file(t);return p.each(e,function(t,e){r===e.file_id&&(n=t)}),n},delete_files:function(d,m){var h=this;p(f).on("click",".forminator-uploaded-file--delete",function(t){t.preventDefault();var e=p(this),r=e.data("value"),n=e.data("method"),o=e.data("element");if(void 0!==r&&void 0!==o&&void 0!==n){var i=h.form.find("#"+r).index(),a=p(e).closest("li#"+r),s=h.get_uplaoded_files();if(s&&"ajax"===n){var l=h.form.find(".forminator-multifile-hidden");if(void 0!==m[i]&&(m[i].abort(),m.splice(i,1)),void 0!==l){var f=h.get_uploaded_file_id(o,r);""!==f&&null!==f&&s[o].splice(f,1),l.val(JSON.stringify(s))}}void 0!==n&&"submission"===n&&h.remove_object(i,d,o),p(a).remove()}var u=h.form.find(".forminator-field-"+h.element+"-"+h.form_id);if(void 0!==u.data("limit")){var c=h.form.find(".upload-container-"+o+" li");p.each(c,function(t){if(u.data("limit")>t&&p(this).hasClass("forminator-upload-limit_error")){var e=p(this).attr("id"),r=h.get_uploaded_file_id(o,e);p(this).removeClass("forminator-has_error"),p(this).find(".forminator-error-message, .forminator-icon-warning, .progress-percentage").remove(),""!==r&&null!==r&&void 0!==s[o][r]&&(s[o][r].success=!0)}}),l.val(JSON.stringify(s))}})},remove_object:function(t,e,r){var n=f.querySelector(".forminator-field-"+r+"-"+this.form_id);if(void 0!==n){var o=n.files;if(0<o.length){var i=Array.prototype.slice.call(o);e.splice(t,1),i.splice(t,1),n.files=this.FileObjectItem(i)}}},FileObjectItem:function(t){for(var e,r=e=(t=(t=[].slice.call(Array.isArray(t)?t:arguments)).reverse()).length,n=!0;r--&&n;)n=t[r]instanceof File;if(!n)throw new TypeError("expected argument to FileList is File or array of File objects");for(r=new ClipboardEvent("").clipboardData||new DataTransfer;e--;)r.items.add(t[e]);return r.files}}),p.fn[r]=function(t){return this.each(function(){p.data(this,r)||p.data(this,r,new e(this,t))})}}(jQuery,window,document);
|
build/main.js
CHANGED
@@ -9,8 +9,8 @@
|
|
9 |
* see: http://github.com/requirejs/text for details
|
10 |
*/
|
11 |
|
12 |
-
var formintorjs;!function(){if(!formintorjs||!formintorjs.requirejs){formintorjs?require=formintorjs:formintorjs={};var requirejs,require,define;!function(global,setTimeout){function commentReplace(t,e){return e||""}function isFunction(t){return"[object Function]"===ostring.call(t)}function isArray(t){return"[object Array]"===ostring.call(t)}function each(t,e){if(t){var i;for(i=0;i<t.length&&(!t[i]||!e(t[i],i,t));i+=1);}}function eachReverse(t,e){if(t){var i;for(i=t.length-1;i>-1&&(!t[i]||!e(t[i],i,t));i-=1);}}function hasProp(t,e){return hasOwn.call(t,e)}function getOwn(t,e){return hasProp(t,e)&&t[e]}function eachProp(t,e){var i;for(i in t)if(hasProp(t,i)&&e(t[i],i))break}function mixin(t,e,i,n){return e&&eachProp(e,function(e,o){!i&&hasProp(t,o)||(!n||"object"!=typeof e||!e||isArray(e)||isFunction(e)||e instanceof RegExp?t[o]=e:(t[o]||(t[o]={}),mixin(t[o],e,i,n)))}),t}function bind(t,e){return function(){return e.apply(t,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(t){throw t}function getGlobal(t){if(!t)return t;var e=global;return each(t.split("."),function(t){e=e[t]}),e}function makeError(t,e,i,n){var o=new Error(e+"\nhttp://requirejs.org/docs/errors.html#"+t);return o.requireType=t,o.requireModules=n,i&&(o.originalError=i),o}function newContext(t){function e(t){var e,i;for(e=0;e<t.length;e++)if("."===(i=t[e]))t.splice(e,1),e-=1;else if(".."===i){if(0===e||1===e&&".."===t[2]||".."===t[e-1])continue;e>0&&(t.splice(e-1,2),e-=2)}}function i(t,i,n){var o,r,a,s,l,d,p,u,c,m,f,h=i&&i.split("/"),_=F.map,v=_&&_["*"];if(t&&(t=t.split("/"),d=t.length-1,F.nodeIdCompat&&jsSuffixRegExp.test(t[d])&&(t[d]=t[d].replace(jsSuffixRegExp,"")),"."===t[0].charAt(0)&&h&&(f=h.slice(0,h.length-1),t=f.concat(t)),e(t),t=t.join("/")),n&&_&&(h||v)){r=t.split("/");t:for(a=r.length;a>0;a-=1){if(l=r.slice(0,a).join("/"),h)for(s=h.length;s>0;s-=1)if((o=getOwn(_,h.slice(0,s).join("/")))&&(o=getOwn(o,l))){p=o,u=a;break t}!c&&v&&getOwn(v,l)&&(c=getOwn(v,l),m=a)}!p&&c&&(p=c,u=m),p&&(r.splice(0,u,p),t=r.join("/"))}return getOwn(F.pkgs,t)||t}function n(t){isBrowser&&each(scripts(),function(e){if(e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===x.contextName)return e.parentNode.removeChild(e),!0})}function o(t){var e=getOwn(F.paths,t);if(e&&isArray(e)&&e.length>1)return e.shift(),x.require.undef(t),x.makeRequire(null,{skipMap:!0})([t]),!0}function r(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function a(t,e,n,o){var a,s,l,d,p=null,u=e?e.name:null,c=t,m=!0,f="";return t||(m=!1,t="_@r"+(T+=1)),d=r(t),p=d[0],t=d[1],p&&(p=i(p,u,o),s=getOwn($,p)),t&&(p?f=n?t:s&&s.normalize?s.normalize(t,function(t){return i(t,u,o)}):-1===t.indexOf("!")?i(t,u,o):t:(f=i(t,u,o),d=r(f),p=d[0],f=d[1],n=!0,a=x.nameToUrl(f))),l=!p||s||n?"":"_unnormalized"+(D+=1),{prefix:p,name:f,parentMap:e,unnormalized:!!l,url:a,originalName:c,isDefine:m,id:(p?p+"!"+f:f)+l}}function s(t){var e=t.id,i=getOwn(k,e);return i||(i=k[e]=new x.Module(t)),i}function l(t,e,i){var n=t.id,o=getOwn(k,n);!hasProp($,n)||o&&!o.defineEmitComplete?(o=s(t),o.error&&"error"===e?i(o.error):o.on(e,i)):"defined"===e&&i($[n])}function d(t,e){var i=t.requireModules,n=!1;e?e(t):(each(i,function(e){var i=getOwn(k,e);i&&(i.error=t,i.events.error&&(n=!0,i.emit("error",t)))}),n||req.onError(t))}function p(){globalDefQueue.length&&(each(globalDefQueue,function(t){var e=t[0];"string"==typeof e&&(x.defQueueMap[e]=!0),q.push(t)}),globalDefQueue=[])}function u(t){delete k[t],delete j[t]}function c(t,e,i){var n=t.map.id;t.error?t.emit("error",t.error):(e[n]=!0,each(t.depMaps,function(n,o){var r=n.id,a=getOwn(k,r);!a||t.depMatched[o]||i[r]||(getOwn(e,r)?(t.defineDep(o,$[r]),t.check()):c(a,e,i))}),i[n]=!0)}function m(){var t,e,i=1e3*F.waitSeconds,r=i&&x.startTime+i<(new Date).getTime(),a=[],s=[],l=!1,p=!0;if(!g){if(g=!0,eachProp(j,function(t){var i=t.map,d=i.id;if(t.enabled&&(i.isDefine||s.push(t),!t.error))if(!t.inited&&r)o(d)?(e=!0,l=!0):(a.push(d),n(d));else if(!t.inited&&t.fetched&&i.isDefine&&(l=!0,!i.prefix))return p=!1}),r&&a.length)return t=makeError("timeout","Load timeout for modules: "+a,null,a),t.contextName=x.contextName,d(t);p&&each(s,function(t){c(t,{},{})}),r&&!e||!l||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,m()},50)),g=!1}}function f(t){hasProp($,t[0])||s(a(t[0],null,!0)).init(t[1],t[2])}function h(t,e,i,n){t.detachEvent&&!isOpera?n&&t.detachEvent(n,e):t.removeEventListener(i,e,!1)}function _(t){var e=t.currentTarget||t.srcElement;return h(e,x.onScriptLoad,"load","onreadystatechange"),h(e,x.onScriptError,"error"),{node:e,id:e&&e.getAttribute("data-requiremodule")}}function v(){var t;for(p();q.length;){if(t=q.shift(),null===t[0])return d(makeError("mismatch","Mismatched anonymous define() module: "+t[t.length-1]));f(t)}x.defQueueMap={}}var g,b,x,y,w,F={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},k={},j={},U={},q=[],$={},z={},C={},T=1,D=1;return y={require:function(t){return t.require?t.require:t.require=x.makeRequire(t.map)},exports:function(t){if(t.usingExports=!0,t.map.isDefine)return t.exports?$[t.map.id]=t.exports:t.exports=$[t.map.id]={}},module:function(t){return t.module?t.module:t.module={id:t.map.id,uri:t.map.url,config:function(){return getOwn(F.config,t.map.id)||{}},exports:t.exports||(t.exports={})}}},b=function(t){this.events=getOwn(U,t.id)||{},this.map=t,this.shim=getOwn(F.shim,t.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(t,e,i,n){n=n||{},this.inited||(this.factory=e,i?this.on("error",i):this.events.error&&(i=bind(this,function(t){this.emit("error",t)})),this.depMaps=t&&t.slice(0),this.errback=i,this.inited=!0,this.ignore=n.ignore,n.enabled||this.enabled?this.enable():this.check())},defineDep:function(t,e){this.depMatched[t]||(this.depMatched[t]=!0,this.depCount-=1,this.depExports[t]=e)},fetch:function(){if(!this.fetched){this.fetched=!0,x.startTime=(new Date).getTime();var t=this.map;if(!this.shim)return t.prefix?this.callPlugin():this.load();x.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return t.prefix?this.callPlugin():this.load()}))}},load:function(){var t=this.map.url;z[t]||(z[t]=!0,x.load(this.map.id,t))},check:function(){if(this.enabled&&!this.enabling){var t,e,i=this.map.id,n=this.depExports,o=this.exports,r=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(r)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{o=x.execCb(i,r,n,o)}catch(e){t=e}else o=x.execCb(i,r,n,o);if(this.map.isDefine&&void 0===o&&(e=this.module,e?o=e.exports:this.usingExports&&(o=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",d(this.error=t)}else o=r;if(this.exports=o,this.map.isDefine&&!this.ignore&&($[i]=o,req.onResourceLoad)){var a=[];each(this.depMaps,function(t){a.push(t.normalizedMap||t)}),req.onResourceLoad(x,this.map,a)}u(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(x.defQueueMap,i)||this.fetch()}},callPlugin:function(){var t=this.map,e=t.id,n=a(t.prefix);this.depMaps.push(n),l(n,"defined",bind(this,function(n){var o,r,p,c=getOwn(C,this.map.id),m=this.map.name,f=this.map.parentMap?this.map.parentMap.name:null,h=x.makeRequire(t.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(n.normalize&&(m=n.normalize(m,function(t){return i(t,f,!0)})||""),r=a(t.prefix+"!"+m,this.map.parentMap,!0),l(r,"defined",bind(this,function(t){this.map.normalizedMap=r,this.init([],function(){return t},null,{enabled:!0,ignore:!0})})),void((p=getOwn(k,r.id))&&(this.depMaps.push(r),this.events.error&&p.on("error",bind(this,function(t){this.emit("error",t)})),p.enable()))):c?(this.map.url=x.nameToUrl(c),void this.load()):(o=bind(this,function(t){this.init([],function(){return t},null,{enabled:!0})}),o.error=bind(this,function(t){this.inited=!0,this.error=t,t.requireModules=[e],eachProp(k,function(t){0===t.map.id.indexOf(e+"_unnormalized")&&u(t.map.id)}),d(t)}),o.fromText=bind(this,function(i,n){var r=t.name,l=a(r),p=useInteractive;n&&(i=n),p&&(useInteractive=!1),s(l),hasProp(F.config,e)&&(F.config[r]=F.config[e]);try{req.exec(i)}catch(t){return d(makeError("fromtexteval","fromText eval for "+e+" failed: "+t,t,[e]))}p&&(useInteractive=!0),this.depMaps.push(l),x.completeLoad(r),h([r],o)}),void n.load(t.name,h,o,F))})),x.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){j[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(t,e){var i,n,o;if("string"==typeof t){if(t=a(t,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[e]=t,o=getOwn(y,t.id))return void(this.depExports[e]=o(this));this.depCount+=1,l(t,"defined",bind(this,function(t){this.undefed||(this.defineDep(e,t),this.check())})),this.errback?l(t,"error",bind(this,this.errback)):this.events.error&&l(t,"error",bind(this,function(t){this.emit("error",t)}))}i=t.id,n=k[i],hasProp(y,i)||!n||n.enabled||x.enable(t,this)})),eachProp(this.pluginMaps,bind(this,function(t){var e=getOwn(k,t.id);e&&!e.enabled&&x.enable(t,this)})),this.enabling=!1,this.check()},on:function(t,e){var i=this.events[t];i||(i=this.events[t]=[]),i.push(e)},emit:function(t,e){each(this.events[t],function(t){t(e)}),"error"===t&&delete this.events[t]}},x={config:F,contextName:t,registry:k,defined:$,urlFetched:z,defQueue:q,defQueueMap:{},Module:b,makeModuleMap:a,nextTick:req.nextTick,onError:d,configure:function(t){if(t.baseUrl&&"/"!==t.baseUrl.charAt(t.baseUrl.length-1)&&(t.baseUrl+="/"),"string"==typeof t.urlArgs){var e=t.urlArgs;t.urlArgs=function(t,i){return(-1===i.indexOf("?")?"?":"&")+e}}var i=F.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(t,function(t,e){n[e]?(F[e]||(F[e]={}),mixin(F[e],t,!0,!0)):F[e]=t}),t.bundles&&eachProp(t.bundles,function(t,e){each(t,function(t){t!==e&&(C[t]=e)})}),t.shim&&(eachProp(t.shim,function(t,e){isArray(t)&&(t={deps:t}),!t.exports&&!t.init||t.exportsFn||(t.exportsFn=x.makeShimExports(t)),i[e]=t}),F.shim=i),t.packages&&each(t.packages,function(t){var e,i;t="string"==typeof t?{name:t}:t,i=t.name,e=t.location,e&&(F.paths[i]=t.location),F.pkgs[i]=t.name+"/"+(t.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(k,function(t,e){t.inited||t.map.unnormalized||(t.map=a(e,null,!0))}),(t.deps||t.callback)&&x.require(t.deps||[],t.callback)},makeShimExports:function(t){function e(){var e;return t.init&&(e=t.init.apply(global,arguments)),e||t.exports&&getGlobal(t.exports)}return e},makeRequire:function(e,o){function r(i,n,l){var p,u,c;return o.enableBuildCallback&&n&&isFunction(n)&&(n.__requireJsBuild=!0),"string"==typeof i?isFunction(n)?d(makeError("requireargs","Invalid require call"),l):e&&hasProp(y,i)?y[i](k[e.id]):req.get?req.get(x,i,e,r):(u=a(i,e,!1,!0),p=u.id,hasProp($,p)?$[p]:d(makeError("notloaded",'Module name "'+p+'" has not been loaded yet for context: '+t+(e?"":". Use require([])")))):(v(),x.nextTick(function(){v(),c=s(a(null,e)),c.skipMap=o.skipMap,c.init(i,n,l,{enabled:!0}),m()}),r)}return o=o||{},mixin(r,{isBrowser:isBrowser,toUrl:function(t){var n,o=t.lastIndexOf("."),r=t.split("/")[0],a="."===r||".."===r;return-1!==o&&(!a||o>1)&&(n=t.substring(o,t.length),t=t.substring(0,o)),x.nameToUrl(i(t,e&&e.id,!0),n,!0)},defined:function(t){return hasProp($,a(t,e,!1,!0).id)},specified:function(t){return t=a(t,e,!1,!0).id,hasProp($,t)||hasProp(k,t)}}),e||(r.undef=function(t){p();var i=a(t,e,!0),o=getOwn(k,t);o.undefed=!0,n(t),delete $[t],delete z[i.url],delete U[t],eachReverse(q,function(e,i){e[0]===t&&q.splice(i,1)}),delete x.defQueueMap[t],o&&(o.events.defined&&(U[t]=o.events),u(t))}),r},enable:function(t){getOwn(k,t.id)&&s(t).enable()},completeLoad:function(t){var e,i,n,r=getOwn(F.shim,t)||{},a=r.exports;for(p();q.length;){if(i=q.shift(),null===i[0]){if(i[0]=t,e)break;e=!0}else i[0]===t&&(e=!0);f(i)}if(x.defQueueMap={},n=getOwn(k,t),!e&&!hasProp($,t)&&n&&!n.inited){if(!(!F.enforceDefine||a&&getGlobal(a)))return o(t)?void 0:d(makeError("nodefine","No define call for "+t,null,[t]));f([t,r.deps||[],r.exportsFn])}m()},nameToUrl:function(t,e,i){var n,o,r,a,s,l,d,p=getOwn(F.pkgs,t);if(p&&(t=p),d=getOwn(C,t))return x.nameToUrl(d,e,i);if(req.jsExtRegExp.test(t))s=t+(e||"");else{for(n=F.paths,o=t.split("/"),r=o.length;r>0;r-=1)if(a=o.slice(0,r).join("/"),l=getOwn(n,a)){isArray(l)&&(l=l[0]),o.splice(0,r,l);break}s=o.join("/"),s+=e||(/^data\:|^blob\:|\?/.test(s)||i?"":".js"),s=("/"===s.charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":F.baseUrl)+s}return F.urlArgs&&!/^blob\:/.test(s)?s+F.urlArgs(t,s):s},load:function(t,e){req.load(x,t,e)},execCb:function(t,e,i,n){return e.apply(n,i)},onScriptLoad:function(t){if("load"===t.type||readyRegExp.test((t.currentTarget||t.srcElement).readyState)){interactiveScript=null;var e=_(t);x.completeLoad(e.id)}},onScriptError:function(t){var e=_(t);if(!o(e.id)){var i=[];return eachProp(k,function(t,n){0!==n.indexOf("_@r")&&each(t.depMaps,function(t){if(t.id===e.id)return i.push(n),!0})}),d(makeError("scripterror",'Script error for "'+e.id+(i.length?'", needed by: '+i.join(", "):'"'),t,[e.id]))}}},x.require=x.makeRequire(),x}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(t){if("interactive"===t.readyState)return interactiveScript=t}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.3",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(t,e,i,n){var o,r,a=defContextName;return isArray(t)||"string"==typeof t||(r=t,isArray(e)?(t=e,e=i,i=n):t=[]),r&&r.context&&(a=r.context),o=getOwn(contexts,a),o||(o=contexts[a]=req.s.newContext(a)),r&&o.configure(r),o.require(t,e,i)},req.config=function(t){return req(t)},req.nextTick=void 0!==setTimeout?function(t){setTimeout(t,4)}:function(t){t()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(t){req[t]=function(){var e=contexts[defContextName];return e.require[t].apply(e,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],(baseElement=document.getElementsByTagName("base")[0])&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(t,e,i){var n=t.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return n.type=t.scriptType||"text/javascript",n.charset="utf-8",n.async=!0,n},req.load=function(t,e,i){var n,o=t&&t.config||{};if(isBrowser)return n=req.createNode(o,e,i),n.setAttribute("data-requirecontext",t.contextName),n.setAttribute("data-requiremodule",e),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||isOpera?(n.addEventListener("load",t.onScriptLoad,!1),n.addEventListener("error",t.onScriptError,!1)):(useInteractive=!0,n.attachEvent("onreadystatechange",t.onScriptLoad)),n.src=i,o.onNodeCreated&&o.onNodeCreated(n,o,e,i),currentlyAddingScript=n,baseElement?head.insertBefore(n,baseElement):head.appendChild(n),currentlyAddingScript=null,n;if(isWebWorker)try{setTimeout(function(){},0),importScripts(i),t.completeLoad(e)}catch(n){t.onError(makeError("importscripts","importScripts failed for "+e+" at "+i,n,[e]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(t){if(head||(head=t.parentNode),dataMain=t.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(t,e,i){var n,o;"string"!=typeof t&&(i=e,e=t,t=null),isArray(e)||(i=e,e=null),!e&&isFunction(i)&&(e=[],i.length&&(i.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(t,i){e.push(i)}),e=(1===i.length?["require"]:["require","exports","module"]).concat(e))),useInteractive&&(n=currentlyAddingScript||getInteractiveScript())&&(t||(t=n.getAttribute("data-requiremodule")),o=contexts[n.getAttribute("data-requirecontext")]),o?(o.defQueue.push([t,e,i]),o.defQueueMap[t]=!0):globalDefQueue.push([t,e,i])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),formintorjs.requirejs=requirejs,formintorjs.require=require,formintorjs.define=define}}(),formintorjs.define("requireLib",function(){}),formintorjs.define("text",["module"],function(t){"use strict";var e,i,n=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],o=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,r=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,a="undefined"!=typeof location&&location.href,s=a&&location.protocol&&location.protocol.replace(/\:/,""),l=a&&location.hostname,d=a&&(location.port||void 0),p=[],u=t.config&&t.config()||{};return e={version:"2.0.3",strip:function(t){if(t){t=t.replace(o,"");var e=t.match(r);e&&(t=e[1])}else t="";return t},jsEscape:function(t){return t.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:u.createXhr||function(){var t,e,i;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(e=0;e<3;e+=1){i=n[e];try{t=new ActiveXObject(i)}catch(t){}if(t){n=[i];break}}return t},parseName:function(t){var e=!1,i=t.indexOf("."),n=t.substring(0,i),o=t.substring(i+1,t.length);return i=o.indexOf("!"),-1!==i&&(e=o.substring(i+1,o.length),e="strip"===e,o=o.substring(0,i)),{moduleName:n,ext:o,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(t,i,n,o){var r,a,s,l=e.xdRegExp.exec(t);return!l||(r=l[2],a=l[3],a=a.split(":"),s=a[1],a=a[0],!(r&&r!==i||a&&a.toLowerCase()!==n.toLowerCase()||(s||a)&&s!==o))},finishLoad:function(t,i,n,o){n=i?e.strip(n):n,u.isBuild&&(p[t]=n),o(n)},load:function(t,i,n,o){if(o.isBuild&&!o.inlineText)return void n();u.isBuild=o.isBuild;var r=e.parseName(t),p=r.moduleName+"."+r.ext,c=i.toUrl(p),m=u.useXhr||e.useXhr;!a||m(c,s,l,d)?e.get(c,function(i){e.finishLoad(t,r.strip,i,n)},function(t){n.error&&n.error(t)}):i([p],function(t){e.finishLoad(r.moduleName+"."+r.ext,r.strip,t,n)})},write:function(t,i,n,o){if(p.hasOwnProperty(i)){var r=e.jsEscape(p[i]);n.asModule(t+"!"+i,"define(function () { return '"+r+"';});\n")}},writeFile:function(t,i,n,o,r){var a=e.parseName(i),s=a.moduleName+"."+a.ext,l=n.toUrl(a.moduleName+"."+a.ext)+".js";e.load(s,n,function(i){var n=function(t){return o(l,t)};n.asModule=function(t,e){return o.asModule(t,l,e)},e.write(t,s,n,r)},r)}},"node"===u.env||!u.env&&"undefined"!=typeof process&&process.versions&&process.versions.node?(i=require.nodeRequire("fs"),e.get=function(t,e){var n=i.readFileSync(t,"utf8");0===n.indexOf("\ufeff")&&(n=n.substring(1)),e(n)}):"xhr"===u.env||!u.env&&e.createXhr()?e.get=function(t,i,n){var o=e.createXhr();o.open("GET",t,!0),u.onXhr&&u.onXhr(o,t),o.onreadystatechange=function(e){var r,a;4===o.readyState&&(r=o.status,r>399&&r<600?(a=new Error(t+" HTTP status: "+r),a.xhr=o,n(a)):i(o.responseText))},o.send(null)}:("rhino"===u.env||!u.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java)&&(e.get=function(t,e){var i,n,o=new java.io.File(t),r=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),"utf-8")),s="";try{for(i=new java.lang.StringBuffer,n=a.readLine(),n&&n.length()&&65279===n.charAt(0)&&(n=n.substring(1)),i.append(n);null!==(n=a.readLine());)i.append(r),i.append(n);s=String(i.toString())}finally{a.close()}e(s)}),e}),formintorjs.define("text!admin/templates/popups.html",[],function(){return'<div>\r\n\r\n\t<script type="text/template" id="popup-integration-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc="{{ image }}"\r\n\t\t\t\t\tsrcset="{{ image }} 1x, {{ image_x2 }} 2x"\r\n\t\t\t\t\talt="{{ title }}"\r\n\t\t\t\t/>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="sui-box-content integration-header"></div>\r\n\r\n\t\t\t<button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-new-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-tpl">\r\n\r\n\t\t<div class="sui-dialog" id="forminator-popup" aria-hidden="true">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-header-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-loader-tpl">\r\n\r\n\t\t<p class="fui-loading-dialog" aria-label="Loading content">\r\n\r\n\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\r\n\t\t</p>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-stripe-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img src="{{ image }}"\r\n\t\t\t\t srcset="{{ image }} 1x, {{ image_x2 }} 2x" alt="{{ title }}" />\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle2" style="display: none;">{{ title }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-block-content-center sui-box-body-slim"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'}),function(t){window.empty=function(t){return void 0===t||!t},window.count=function(t){return void 0===t?0:t&&t.length?t.length:0},window.stripslashes=function(t){return(t+"").replace(/\\(.?)/g,function(t,e){switch(e){case"\\":return"\\";case"0":return"\0";case"":return"";default:return e}})},window.forminator_array_value_exists=function(t,e){return!_.isUndefined(t[e])&&!_.isEmpty(t[e])},window.decodeHtmlEntity=function(t){return void 0===t?t:t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})},window.encodeHtmlEntity=function(t){if(void 0===t)return t;for(var e=[],i=t.length-1;i>=0;i--)e.unshift(["&#",t[i].charCodeAt(),";"].join(""));return e.join("")},formintorjs.define("admin/utils",["text!admin/templates/popups.html"],function(e){var i={fields_ids:[],google_font_families:[],is_touch:function(){return Forminator.Data.is_touch},is_mobile_size:function(){return window.screen.width<=782},is_mobile:function(){return!(!Forminator.Utils.is_touch()&&!Forminator.Utils.is_mobile_size())},template:function(t){return _.templateSettings={evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g},_.template(t)},template_php:function(t){var e=_.templateSettings,i=!1;return _.templateSettings={interpolate:/<\?php echo (.+?) \?>/g,evaluate:/<\?php (.+?) \?>/g},i=_.template(t),_.templateSettings=e,function(t){return _.each(t,function(e,i){t["$"+i]=e}),i(t)}},ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},get_slug:function(t){return t=t.replace(" ","-"),t=t.replace(/[^-a-zA-Z0-9]/,"")},sanitize_uri_string:function(t){var e=decodeURIComponent(t);return e=e.replace(/-/g," ")},get_url_param:function(t){for(var e=window.location.search.substring(1),i=e.split("&"),n=0;n<i.length;n++){var o=i[n].split("=");if(o[0]===t)return o[1]}return!1},is_email_wp:function(t){if(t.length<6)return!1;if(t.indexOf("@",1)<0)return!1;var e=t.split("@",2);if(!e[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(e[1].match(/\.{2,}/))return!1;var i=e[1],n=i.split(".");if(n.length<2)return!1;for(var o=n.length,r=0;r<o;r++)if(!n[r].match(/^[a-z0-9-]+$/i))return!1;return!0},forminator_select2_tags:function(e,i){i=_.defaults(i,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){t(this).attr("data-reorder")&&t(this).on("select2:select",function(e){var i=e.params.data.element,n=t(i),o=t(this);o.append(n),o.trigger("change.select2")}),t(this).SUIselect2(i)})},forminator_select2_custom:function(e,i){i=_.defaults(i,{dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.custom-select2").each(function(){t(this).attr("data-reorder")&&t(this).on("select2:select",function(e){var i=e.params.data.element,n=t(i),o=t(this);o.append(n),o.trigger("change.select2")}),t(this).SUIselect2(i)})},init_select2:function(){window.SUI},load_google_fonts:function(e){var i=this;t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_google_fonts",_wpnonce:Forminator.Data.gFontNonce}}).done(function(t){!0===t.success&&(i.google_font_families=t.data),e.apply(t,[i.google_font_families])})},sui_delegate_events:function(){"object"==typeof window.SUI&&setTimeout(function(){SUI.suiAccordion(t(".sui-accordion")),SUI.suiTabs(t(".sui-tabs")),t("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(t(this))}),t("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){t(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(t(".sui-circle-score")),SUI.showHidePassword()},50)}},n={$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-tpl").html());t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({})),this.$popup=t("#forminator-popup")},open:function(i,n,o){this.data=n,this.title="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0;var r=Forminator.Utils.template(t(e).find("#popup-header-tpl").html());_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.has_footer)||(this.has_footer=this.data.has_footer),_.isUndefined(this.data.action_callback)||_.isUndefined(this.data.action_text)||(this.action_callback=this.data.action_callback,this.action_text=this.data.action_text,_.isUndefined(this.data.action_css_class)||(this.action_css_class=this.data.action_css_class)),_.isUndefined(this.data.has_custom_box)||(this.has_custom_box=this.data.has_custom_box)),this.initialize(),this.$popup.find(".sui-box").html(r({title:this.title}));var a=this,s=function(){return a.close(),!1};if(o&&this.$popup.addClass(o),this.has_custom_box)i.apply(this.$popup.find(".sui-box").get(),n);else{var l='<div class="sui-box-body"></div>';this.has_footer&&(l+='<div class="sui-box-footer"><button class="sui-button forminator-popup-cancel" data-a11y-dialog-hide="forminator-popup">'+Forminator.l10n.popup.cancel+"</button></div>"),this.$popup.find(".sui-box").append(l),i.apply(this.$popup.find(".sui-box-body").get(),n)}if(this.action_text&&this.action_callback){var d=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){d&&d.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.find(".sui-dialog-overlay").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},o={$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-new-tpl").html())
|
13 |
-
;t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({})),this.$popup=t("#forminator-popup")},open:function(e,i,n){this.data=i,this.title="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,this.initialize(),e.apply(this.$popup.find(".sui-box").get(),i);var o=this,r=function(){return o.close(),!1};return this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},r={$notification:{},_deferred:{},initialize:function(){t("#forminator-notification").length?(t("#forminator-notification").remove(),this.initialize()):t("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=t("#forminator-notification")},open:function(e,i,n){var o=this;return this.type=e||"notice",this.text=i,this.initialize(),t(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),o.close(),!1}),_.isUndefined(n)||setTimeout(function(){o.close()},n),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e){var i=t("#forminator-notification");i.stop().slideUp("slow"),this._deferred.resolve(i,e)}};return{Utils:i,Popup:n,New_Popup:o,Integrations_Popup:{$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-integration-tpl").html());t("#forminator-integration-popup").length?(t("#forminator-integration-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-integration-popup")},open:function(i,n,o){this.data=n,this.title="",this.image="",this.image_x2="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.image)||(this.image=this.data.image),_.isUndefined(this.data.image_x2)||(this.image_x2=this.data.image_x2)),this.initialize();var r=Forminator.Utils.template(t(e).find("#popup-integration-content-tpl").html());this.$popup.find(".sui-box").html(r({image:this.image,image_x2:this.image_x2,title:this.title}));var a=this,s=function(){return a.close(),!1};if(o&&this.$popup.addClass(o),i.apply(this.$popup.get(),n),this.action_text&&this.action_callback){var l=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){l&&l.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.find(".sui-dialog-overlay").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),t("body").css("overflow","hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-integration-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),t("body").css("overflow","auto"),Forminator.Events.trigger("forminator:addons:reload"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},Stripe_Popup:{$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-stripe-tpl").html());t("#forminator-stripe-popup").length?(t("#forminator-stripe-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-stripe-popup")},open:function(i,n,o){this.data=n,this.title="",this.image="",this.image_x2="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.image)||(this.image=this.data.image),_.isUndefined(this.data.image_x2)||(this.image_x2=this.data.image_x2)),this.initialize();var r=Forminator.Utils.template(t(e).find("#popup-stripe-content-tpl").html());this.$popup.find(".sui-box").html(r({image:this.image,image_x2:this.image_x2,title:this.title})),this.$popup.find(".sui-box-footer").css({"padding-top":"0"});var a=this,s=function(){return a.close(),!1};if(o&&this.$popup.addClass(o),i.apply(this.$popup.get(),n),this.action_text&&this.action_callback){var l=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){l&&l.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.find(".sui-dialog-overlay").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),t("body").css("overflow","hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-stripe-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),t("body").css("overflow","auto"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},Notification:r}})}(jQuery),function(t){formintorjs.define("admin/dashboard",[],function(e){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var e=Forminator.Utils.get_url_param("notification"),i=Forminator.Utils.get_url_param("title"),n=Forminator.Utils.get_url_param("createnew");if(setTimeout(function(){t(".forminator-scroll-to").length&&t("html, body").animate({scrollTop:t(".forminator-scroll-to").offset().top},"slow")},100),e){var o=_.template("<strong>{{ formName }}</strong> {{ Forminator.l10n.options.been_published }}");Forminator.Notification.open("success",o({formName:Forminator.Utils.sanitize_uri_string(i)}),4e3)}return n&&setTimeout(function(){jQuery(".forminator-create-"+n).click()},200),this.render()},dismiss_welcome:function(e){e.preventDefault();var i=t(e.target).closest(".sui-box"),n=t(e.target).data("nonce");i.slideToggle(300,function(){t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_dismiss_welcome",_ajax_nonce:n},complete:function(t){i.remove()}})})},render:function(){setTimeout(function(){void 0!==SUI.dialogs&&void 0!==SUI.dialogs["forminator-new-feature"]&&SUI.dialogs["forminator-new-feature"].show(),void 0!==SUI.dialogs&&void 0!==SUI.dialogs["forminator-black-friday"]&&SUI.dialogs["forminator-black-friday"].show()},1e3)}}))})}(jQuery),function(t){formintorjs.define("admin/settings-page",[],function(){var e=Backbone.View.extend({el:".wpmudev-forminator-forminator-settings",events:{"click .sui-side-tabs label.sui-tab-item input":"sidetabs","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select","click .stripe-connect-modal":"open_stripe_connect_modal","click .paypal-connect-modal":"open_paypal_connect_modal","click .forminator-stripe-connect":"connect_stripe","click .disconnect_stripe":"disconnect_stripe","click .forminator-paypal-connect":"connect_paypal","click .disconnect_paypal":"disconnect_paypal","click button.sui-tab-item":"buttonTabs","click .forminator-toggle-unsupported-settings":"show_unsupported_settings","click .forminator-dismiss-unsupported":"hide_unsupported_settings"},initialize:function(){var e=this;if(t(".wpmudev-forminator-forminator-settings").length){this.$el.find(".forminator-settings-save").submit(function(i){i.preventDefault();var n=t(this),o=n.find(".wpmudev-action-done").data("nonce"),r=n.find(".wpmudev-action-done").data("action"),a=n.find(".wpmudev-action-done").data("title"),s=n.find(".wpmudev-action-done").data("isReload");e.submitForm(t(this),r,o,a,s)});var i=window.location.hash;_.isUndefined(i)||_.isEmpty(i)||this.sidenav_go_to(i.substring(1),!0),this.render("v2"),this.render("v2-invisible"),this.render("v3")}},render:function(e){var i=this.$el.find("#"+e+"-recaptcha-preview");i.html('<p class="fui-loading-dialog"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_recaptcha_preview",captcha:e}}).done(function(t){t.success&&i.html(t.data)})},submitForm:function(e,i,n,o,r){var a={},s=this;a.action="forminator_save_"+i+"_popup",a._ajax_nonce=n;var l=e.serialize()+"&"+t.param(a);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:l,beforeSend:function(){e.find(".sui-button").addClass("sui-button-onload")},success:function(t){var e=_.template("<strong>{{ tab }}</strong> {{ Forminator.l10n.commons.update_successfully }}");Forminator.Notification.open("success",e({tab:o}),4e3),"captcha"===i&&(s.render("v2"),s.render("v2-invisible"),s.render("v3")),r&&window.location.reload()},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.update_unsuccessfull,4e3)}}).always(function(){e.find(".sui-button").removeClass("sui-button-onload")})},sidetabs:function(t){var e=this.$(t.target),i=e.parent("label"),n=e.data("tab-menu"),o=e.closest(".sui-side-tabs"),r=o.find(".sui-tabs-menu .sui-tab-item"),a=r.find("input");e.is("input")&&(r.removeClass("active"),a.removeAttr("checked"),o.find(".sui-tabs-content > div").removeClass("active"),i.addClass("active"),e.attr("checked","checked"),o.find('.sui-tabs-content div[data-tab-content="'+n+'"]').length&&o.find('.sui-tabs-content div[data-tab-content="'+n+'"]').addClass("active"))},sidenav:function(e){var i=t(e.target).data("nav");i&&this.sidenav_go_to(i,!0),e.preventDefault()},sidenav_select:function(e){var i=t(e.target).val();i&&this.sidenav_go_to(i,!0),e.preventDefault()},sidenav_go_to:function(t,e){var i=this.$el.find('a[data-nav="'+t+'"]'),n=i.closest(".sui-vertical-tabs"),o=n.find(".sui-vertical-tab"),r=this.$el.find(".sui-box[data-nav]"),a=this.$el.find('.sui-box[data-nav="'+t+'"]');e&&history.pushState({selected_tab:t},"Global Settings","admin.php?page=forminator-settings§ion="+t),o.removeClass("current"),r.hide(),i.parent().addClass("current"),a.show()},open_stripe_connect_modal:function(e){e.preventDefault();var i=this,n=t(e.target),o=n.data("modalImage"),r=n.data("modalImageX2"),a=n.data("modalTitle"),s=n.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var e=t(this);i.render_stripe_connect_modal_content(e,"small",s,{})},{title:a,image:o,image_x2:r}),!1},render_stripe_connect_modal_content:function(e,i,n,o){var r=this;o.action="forminator_stripe_settings_modal",o._ajax_nonce=n,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:o}).done(function(o){if(o&&o.success){e.find(".sui-box-header h3.sui-box-title").show(),e.find(".sui-box-body").html(o.data.html);var a=o.data.buttons;if(e.find(".sui-box-footer").html(""),_.each(a,function(t){e.find(".sui-box-footer").append(t.markup)}),e.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(i)){var s=t("#forminator-stripe-popup");"normal"===i&&s.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===i&&(s.addClass("sui-dialog-sm"),s.removeClass("sui-dialog-lg")),"large"===i&&(s.addClass("sui-dialog-lg"),s.removeClass("sui-dialog-sm"))}_.isUndefined(o.data.notification)||_.isUndefined(o.data.notification.type)||_.isUndefined(o.data.notification.text)||_.isUndefined(o.data.notification.duration)||(Forminator.Notification.open(o.data.notification.type,o.data.notification.text,o.data.notification.duration).done(function(){}),r.update_stripe_page(n))}})},update_stripe_page:function(e){var i={action:"forminator_stripe_update_page",_ajax_nonce:e};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-stripe").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},show_unsupported_settings:function(e){e.preventDefault(),t(".forminator-unsupported-settings").show()},hide_unsupported_settings:function(e){e.preventDefault(),t(".forminator-unsupported-settings").hide()},connect_stripe:function(e){e.preventDefault();var i=t(e.target);i.addClass("sui-button-onload");var n=i.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),r=o.find("form"),a=r.serializeArray(),s={};return t.map(a,function(t,e){s[t.name]=t.value}),s.connect=!0,this.render_stripe_connect_modal_content(o,"small",n,s),!1},buttonTabs:function(t){var e=this.$(t.target),i=e.closest(".sui-tabs"),n=i.find(".sui-tabs-menu .sui-tab-item"),o=i.find(".sui-tabs-content .sui-tab-content");e.is("button")&&(n.removeClass("active"),n.attr("tabindex","-1"),o.attr("hidden",!0),o.removeClass("active"),e.removeAttr("tabindex"),e.addClass("active"),i.find("#"+e.attr("aria-controls")).addClass("active"),i.find("#"+e.attr("aria-controls")).attr("hidden",!1),i.find("#"+e.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},open_paypal_connect_modal:function(e){e.preventDefault();var i=this,n=t(e.target),o=n.data("modalImage"),r=n.data("modalImageX2"),a=n.data("modalTitle"),s=n.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var e=t(this);i.render_paypal_connect_modal_content(e,"small",s,{})},{title:a,image:o,image_x2:r}),!1},render_paypal_connect_modal_content:function(e,i,n,o){var r=this;o.action="forminator_paypal_settings_modal",o._ajax_nonce=n,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:o}).done(function(o){if(o&&o.success){e.find(".sui-box-header h3.sui-box-title").show(),e.find(".sui-box-body").html(o.data.html);var a=o.data.buttons;if(e.find(".sui-box-footer").html(""),_.each(a,function(t){e.find(".sui-box-footer").append(t.markup)}),e.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(i)){var s=t("#forminator-paypal-popup");"normal"===i&&s.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===i&&(s.addClass("sui-dialog-sm"),s.removeClass("sui-dialog-lg")),"large"===i&&(s.addClass("sui-dialog-lg"),s.removeClass("sui-dialog-sm"))}_.isUndefined(o.data.notification)||_.isUndefined(o.data.notification.type)||_.isUndefined(o.data.notification.text)||_.isUndefined(o.data.notification.duration)||(Forminator.Notification.open(o.data.notification.type,o.data.notification.text,o.data.notification.duration).done(function(){}),r.update_paypal_page(n))}})},update_paypal_page:function(e){var i={action:"forminator_paypal_update_page",_ajax_nonce:e};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-paypal").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},connect_paypal:function(e){e.preventDefault();var i=t(e.target);i.addClass("sui-button-onload");var n=i.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),r=o.find("form"),a=r.serializeArray(),s={};return t.map(a,function(t,e){s[t.name]=t.value}),s.connect=!0,this.render_paypal_connect_modal_content(o,"small",n,s),!1},disconnect_stripe:function(e){var i=t(e.target),n={action:"forminator_disconnect_stripe",_ajax_nonce:i.data("nonce")};i.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-stripe").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})},disconnect_paypal:function(e){var i=t(e.target),n={action:"forminator_disconnect_paypal",_ajax_nonce:i.data("nonce")};i.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-paypal").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})}}),e=new e;return e})}(jQuery);var forminator_render_admin_captcha=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n})},100)},forminator_render_admin_captcha_v2=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n})},100)},forminator_render_admin_captcha_v2_invisible=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2-invisible"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n,badge:"inline"})},100)},forminator_render_admin_captcha_v3=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v3"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n,badge:"inline"})},100)};formintorjs.define("text!tpl/dashboard.html",[],function(){
|
14 |
return'<div>\r\n\r\n\t<script type="text/template" id="forminator-new-form-content-tpl">\r\n\t\t<p><small>{{ Forminator.l10n.popup.new_form_desc2 }}</small></p>\r\n\t\t<div class="sui-notice" id="forminator-template-register-notice" style="display: none;">\r\n\t\t\t<p>{{ Forminator.l10n.popup.registration_notice }}</p>\r\n\t\t</div>\r\n\t\t<div class="sui-notice" id="forminator-template-login-notice" style="display: none;">\r\n\t\t\t<p>{{ Forminator.l10n.popup.login_notice }}</p>\r\n\t\t</div>\r\n\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-form-name" class="sui-screen-reader-text">{{ Forminator.l10n.popup.input_label }}</label>\r\n\t\t\t<input type="text"\r\n\t\t\t id="forminator-form-name"\r\n\t\t\t class="sui-form-control fui-required"\r\n\t\t\t placeholder="{{Forminator.l10n.popup.new_form_placeholder}}" autofocus>\r\n\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.form_name_validation}}</span>\r\n\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-poll-content-tpl">\r\n\t\t<p><small>{{ Forminator.l10n.popup.new_poll_desc2 }}</small></p>\r\n\r\n\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-form-name" class="sui-screen-reader-text">{{ Forminator.l10n.popup.input_label }}</label>\r\n\t\t\t<input type="text"\r\n\t\t\t id="forminator-form-name"\r\n\t\t\t class="sui-form-control fui-required"\r\n\t\t\t placeholder="{{Forminator.l10n.popup.new_poll_placeholder}}" autofocus>\r\n\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.poll_name_validation}}</span>\r\n\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-quiz-content-tpl">\r\n\r\n\t\t<p><small>{{ Forminator.l10n.popup.new_quiz_desc2 }}\r\n\t\t\t{[ if( Forminator.Data.showDocLink ) { ]}\r\n\t\t\t<a href="https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/?utm_source=forminator&utm_medium=plugin&utm_campaign=capture_leads_learnmore_link#leads" target="_blank">\r\n\t\t\t\t{{ Forminator.l10n.popup.learn_more }}\r\n\t\t\t</a>\r\n\t\t\t{[ } ]}\r\n\t\t</small></p>\r\n\r\n\t\t<div class="sui-form-field" style="margin-bottom: 0;">\r\n\r\n\t\t\t<label for="forminator-new-quiz-leads" class="sui-toggle fui-highlighted-toggle">\r\n\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\tid="forminator-new-quiz-leads"\r\n\t\t\t\t\taria-labelledby="forminator-new-quiz-leads-label"\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t<span class="sui-toggle-slider" aria-hidden="true"></span>\r\n\r\n\t\t\t\t<span id="forminator-new-quiz-leads-label" class="sui-toggle-label">{{ Forminator.l10n.quiz.quiz_leads_toggle }}</span>\r\n\r\n\t\t\t</label>\r\n\r\n\t\t\t<div id="sui-quiz-leads-description" class="sui-notice sui-notice-info" style="display: none; margin-top: 30px;">\r\n\t\t\t\t<p>{{ Forminator.l10n.quiz.quiz_leads_desc }}</p>\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-form-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.popup.enter_name }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-cancel-create-form" data-a11y-dialog-hide aria-label="Close this dialog window"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-box-body-slim sui-block-content-center">\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-right" style="padding-top: 0;">\r\n\r\n\t\t\t<button id="forminator-build-your-form" class="sui-button sui-button-blue">\r\n\t\t\t\t<span class="sui-loading-text"><i class="sui-icon-plus" aria-hidden="true"></i> {{Forminator.l10n.popup.create}}</span>\r\n\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-quiz-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.quiz.collect_leads }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-cancel-create-form" data-a11y-dialog-hide aria-label="Close this dialog window"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-box-body-slim sui-block-content-center">\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-right" style="padding-top: 0;">\r\n\r\n\t\t\t<button id="forminator-build-your-form" class="sui-button sui-button-blue">\r\n\t\t\t\t<span class="sui-loading-text"><i class="sui-icon-plus" aria-hidden="true"></i> {{ Forminator.l10n.quiz.create_quiz }}</span>\r\n\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-login-popup-tpl">\r\n\r\n <div class="wpmudev-row">\r\n\r\n <div class="wpmudev-col col-12 col-sm-6">\r\n\r\n <a class="wpmudev-popup--logreg" href="{{ loginUrl }}">\r\n\r\n <div class="wpmudev-logreg--header">\r\n\r\n <span class="wpdui-icon wpdui-icon-key"></span>\r\n\r\n <h3 class="wpmudev-logreg--title">{{ Forminator.l10n.login.login_label }}</h3>\r\n\r\n </div>\r\n\r\n <div class="wpmudev-logreg--section">\r\n\r\n <p class="wpmudev-logreg--description">{{ Forminator.l10n.login.login_description }}</p>\r\n\r\n <div class="wpmudev-logreg--image">\r\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\r\n width="110" height="140" viewBox="0 0 110 140" preserveAspectRatio="none"\r\n class="wpmudev-svg-login">\r\n <defs>\r\n <path id="b" d="M0 40h100v94H0z"/>\r\n <filter id="a" width="116%" height="117%" x="-8%" y="-7.4%"\r\n filterUnits="objectBoundingBox">\r\n <feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"/>\r\n <feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1"\r\n stdDeviation="2.5"/>\r\n <feColorMatrix in="shadowBlurOuter1"\r\n values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>\r\n </filter>\r\n <path id="c" d="M10 112h6v6h-6z"/>\r\n <path id="d" d="M10 90h80v15H10z"/>\r\n <path id="e" d="M10 60h80v15H10z"/>\r\n </defs>\r\n <g fill="none" fill-rule="evenodd" transform="translate(5)">\r\n <use fill="#000" filter="url(#a)" xlink:href="#b"/>\r\n <use fill="#FFF" xlink:href="#b"/>\r\n <rect width="22" height="12" x="68" y="112" fill="#0472AC" rx="3"/>\r\n <path fill="#808285" d="M19 114h26v2H19z"/>\r\n <use fill="#FBFBFB" xlink:href="#c"/>\r\n <path stroke="#E1E1E1" d="M10.5 112.5h5v5h-5z"/>\r\n <use fill="#FBFBFB" xlink:href="#d"/>\r\n <path stroke="#E1E1E1" d="M10.5 90.5h79v14h-79z"/>\r\n <path fill="#808285" d="M10 85h26v2H10z"/>\r\n <use fill="#FBFBFB" xlink:href="#e"/>\r\n <path stroke="#E1E1E1" d="M10.5 60.5h79v14h-79z"/>\r\n <path fill="#808285" d="M10 55h50v2H10z"/>\r\n <circle cx="50" cy="15" r="15" fill="#0272AC"/>\r\n </g>\r\n </svg>\r\n </div>\r\n\r\n </div>\r\n\r\n </a>\r\n\r\n </div>\r\n\r\n <div class="wpmudev-col col-12 col-sm-6">\r\n\r\n <a class="wpmudev-popup--logreg" href="{{ registerUrl }}">\r\n\r\n <div class="wpmudev-logreg--header">\r\n\r\n <span class="wpdui-icon wpdui-icon-profile-female"></span>\r\n\r\n <h3 class="wpmudev-logreg--title">{{ Forminator.l10n.login.registration_label }}</h3>\r\n\r\n </div>\r\n\r\n <div class="wpmudev-logreg--section">\r\n\r\n <p class="wpmudev-logreg--description">{{ Forminator.l10n.login.registration_description }}</p>\r\n\r\n <div class="wpmudev-logreg--image">\r\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\r\n width="183" height="97" viewBox="0 0 183 97" preserveAspectRatio="none"\r\n class="wpmudev-svg-registration">\r\n <defs>\r\n <path id="a" d="M0 58h183v15H0z"/>\r\n <path id="b" d="M0 23h183v15H0z"/>\r\n </defs>\r\n <g fill="none" fill-rule="evenodd">\r\n <rect width="50" height="14" y="83" fill="#353535" rx="3"/>\r\n <path fill="#FBFBFB" stroke="#E1E1E1" d="M.5 58.5h182v14H.5z"/>\r\n <path fill="#808285" d="M0 51h40v2H0z"/>\r\n <path fill="#FBFBFB" stroke="#E1E1E1" d="M.5 23.5h182v14H.5z"/>\r\n <path fill="#808285" d="M0 16h40v2H0z"/>\r\n <path fill="#353535" d="M0 0h120v6H0z"/>\r\n </g>\r\n </svg>\r\n </div>\r\n\r\n </div>\r\n\r\n </a>\r\n\r\n </div>\r\n\r\n </div>\r\n <\/script>\r\n\r\n\t<script type="text/template" id="forminator-quizzes-popup-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.quiz.choose_quiz_title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body" style="padding-top: 10px; padding-bottom: 5px;">\r\n\r\n\t\t\t<p class="sui-description sui-block-content-center">{{ Forminator.l10n.quiz.choose_quiz_description }}</p>\r\n\r\n\t\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t\t<label for="forminator-form-name" class="sui-label">{{ Forminator.l10n.quiz.quiz_name }}</label>\r\n\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="text"\r\n\t\t\t\t\tid="forminator-form-name"\r\n\t\t\t\t\tclass="sui-form-control"\r\n\t\t\t\t\tplaceholder="{{Forminator.l10n.popup.new_quiz_placeholder}}"\r\n\t\t\t\t\tautofocus\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t<div id="sui-quiz-name-error" class="sui-notice sui-notice-error forminator-validate-answers" style="display: none;">\r\n\t\t\t\t\t <p>{{Forminator.l10n.popup.quiz_name_validation}}</p>\r\n\t\t\t\t </div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<label class="sui-label">{{ Forminator.l10n.quiz.quiz_type }}</label>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t<li><label for="forminator-new-quiz--knowledge" class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-new-quiz"\r\n\t\t\t\t\t\tid="forminator-new-quiz--knowledge"\r\n\t\t\t\t\t\tclass="forminator-new-quiz-type"\r\n\t\t\t\t\t\tvalue="knowledge"\r\n\t\t\t\t\t\tchecked="checked"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<i class="sui-icon-academy" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.knowledge_label }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span>{{ Forminator.l10n.quiz.knowledge_description }}</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t\t<li><label for="forminator-new-quiz--nowrong" class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-new-quiz"\r\n\t\t\t\t\t\tid="forminator-new-quiz--nowrong"\r\n\t\t\t\t\t\tclass="forminator-new-quiz-type"\r\n\t\t\t\t\t\tvalue="nowrong"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<i class="sui-icon-community-people" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.nowrong_label }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span>{{ Forminator.l10n.quiz.nowrong_description }}</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-template">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-form-popup-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.form.form_template_title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-block-content-center" style="padding-top: 10px;">\r\n\r\n\t\t\t<p class="sui-description">{{ Forminator.l10n.form.form_template_description }}</p>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors sui-box-selectors-col-2">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t{[ _.each(templates, function(template){ ]}\r\n\r\n\t\t\t\t\t{[ if( template.options.id !== \'leads\' ) { ]}\r\n\r\n\t\t\t\t\t\t<li>\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-new-quiz--{{ template.options.id }}" class="sui-box-selector">\r\n\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\t\tname="forminator-form-template"\r\n\t\t\t\t\t\t\t\t\t\tid="forminator-new-quiz--{{ template.options.id }}"\r\n\t\t\t\t\t\t\t\t\t\tclass="forminator-new-form-type"\r\n\t\t\t\t\t\t\t\t\t\tvalue="{{ template.options.id }}"\r\n\t\t\t\t\t\t\t\t\t\t{[ if( template.options.id === \'blank\' ) { ]}\r\n\t\t\t\t\t\t\t\t\t\tchecked="checked"\r\n\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t<i class="sui-icon-{{template.options.icon}}" aria-hidden="true"></i>\r\n\t\t\t\t\t\t\t\t\t{{ template.options.name }}\r\n\t\t\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t{[ }); ]}\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-template">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-exports-schedule-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\r\n\t\t\t<div class="sui-box-settings-row">\r\n\r\n\t\t\t\t<div class="sui-box-settings-col-2">\r\n\r\n\t\t\t\t\t<span class="sui-settings-label sui-dark">{{ Forminator.l10n.popup.manual_exports }}</span>\r\n\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.manual_description }}</span>\r\n\r\n\t\t\t\t\t<form method="post" style="margin-top: 10px;">\r\n\r\n\t\t\t\t\t\t<input type="hidden" name="forminator_export" value="1" />\r\n\t\t\t\t\t\t<input type="hidden" name="form_id" value="{{ Forminator.l10n.exporter.form_id }}" />\r\n\t\t\t\t\t\t<input type="hidden" name="form_type" value="{{ Forminator.l10n.exporter.form_type }}" />\r\n\t\t\t\t\t\t<input type="hidden" name="_forminator_nonce" value="{{ Forminator.l10n.exporter.export_nonce }}" />\r\n\r\n\t\t\t\t\t\t<button class="sui-button sui-button-ghost">{{ Forminator.l10n.popup.download_csv }}</button>\r\n\r\n\t\t\t\t\t\t{[ if( \'cform\' === Forminator.l10n.exporter.form_type || \'quiz\' === Forminator.l10n.exporter.form_type ) { ]}\r\n\t\t\t\t\t\t\t<label for="apply-submission-filter" class="sui-checkbox sui-checkbox-sm sui-checkbox-stacked" style="margin-top: 20px;">\r\n\t\t\t\t\t\t\t\t<input type="checkbox" name="submission-filter" id="apply-submission-filter" value="yes" />\r\n\t\t\t\t\t\t\t\t<span aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t<span>{{ Forminator.l10n.popup.apply_submission_filter }}</span>\r\n\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t\t</form>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<form method="post" class="sui-box-settings-row schedule-action">\r\n\r\n\t\t\t\t<div class="sui-box-settings-col-2">\r\n\r\n\t\t\t\t\t<span class="sui-settings-label sui-dark">{{ Forminator.l10n.popup.scheduled_exports }}</span>\r\n\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.scheduled_description }}</span>\r\n\r\n\t\t\t\t\t<div class="sui-side-tabs" style="margin-top: 10px;">\r\n\r\n\t\t\t\t\t\t<div class="sui-tabs-menu tab-labels">\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-disable-scheduled-exports" class="sui-tab-item tab-label-disable">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\tname="enabled"\r\n\t\t\t\t\t\t\t\t\tvalue="false"\r\n\t\t\t\t\t\t\t\t\tid="forminator-disable-scheduled-exports"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.disable }}\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-enable-scheduled-exports" class="sui-tab-item tab-label-enable">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\tname="enabled"\r\n\t\t\t\t\t\t\t\t\tvalue="true"\r\n\t\t\t\t\t\t\t\t\tid="forminator-enable-scheduled-exports"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.enable }}\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<div class="sui-tabs-content schedule-enabled">\r\n\r\n\t\t\t\t\t\t\t<div id="forminator-export-schedule-timeframe" class="sui-tab-content sui-tab-boxed active">\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-row">\r\n\r\n\t\t\t\t\t\t\t\t\t<div class="sui-col-md-6">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.frequency }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<select name="interval" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="daily">{{ Forminator.l10n.popup.daily }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="weekly">{{ Forminator.l10n.popup.weekly }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="monthly">{{ Forminator.l10n.popup.monthly }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class="sui-col-md-6">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.day_time }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<select name="hour" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="00:00">12:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="01:00">01:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="02:00">02:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="03:00">03:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="04:00">04:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="05:00">05:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="06:00">06:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="07:00">07:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="08:00">08:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="09:00">09:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="10:00">10:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="11:00">11:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="12:00">12:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="13:00">01:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="14:00">02:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="15:00">03:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="16:00">04:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="17:00">05:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="18:00">06:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="19:00">07:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="20:00">08:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="21:00">09:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="22:00">10:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="23:00">11:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.week_day }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="day" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t<option value="mon">{{ Forminator.l10n.popup.monday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="tue">{{ Forminator.l10n.popup.tuesday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="wed">{{ Forminator.l10n.popup.wednesday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="thu">{{ Forminator.l10n.popup.thursday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="fri">{{ Forminator.l10n.popup.friday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="sat">{{ Forminator.l10n.popup.saturday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="sun">{{ Forminator.l10n.popup.sunday }}</option>\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.day_month }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="month_day" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t<option value="1">1</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="2">2</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="3">3</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="4">4</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="5">5</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="6">6</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="7">7</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="8">8</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="9">9</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="10">10</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="11">11</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="12">12</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="13">13</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="14">14</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="15">15</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="16">16</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="17">17</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="18">18</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="19">19</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="20">20</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="21">21</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="22">22</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="23">23</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="24">24</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="25">25</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="26">26</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="27">27</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="28">28</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="29">29</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="30">30</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="31">31</option>\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div id="forminator-export-schedule-email" class="sui-form-field" style="margin-bottom: 20px;">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.email_to }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="email[]" class="sui-select fui-multi-select wpmudev-select" multiple="multiple">\r\n\t\t\t\t\t\t\t\t\t\t{[ _.each( Forminator.l10n.exporter.email, function ( email ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t<option value="{{ email }}" selected="selected">{{ email }}</option>\r\n\t\t\t\t\t\t\t\t\t\t{[ }) ]}\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="form_id" value="{{ Forminator.l10n.exporter.form_id }}"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="form_type" value="{{ Forminator.l10n.exporter.form_type }}"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="action" value="forminator_export_entries"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="_forminator_nonce" value="{{ Forminator.l10n.exporter.export_nonce }}"/>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<label for="forminator-send-if-new-exports" class="sui-checkbox sui-checkbox-sm sui-checkbox-stacked">\r\n\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\t\t\tname="if_new"\r\n\t\t\t\t\t\t\t\t\t\tvalue="true"\r\n\t\t\t\t\t\t\t\t\t\tid="forminator-send-if-new-exports"\r\n\t\t\t\t\t\t\t\t\t\tclass="forminator-field-singular"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t<span aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.scheduled_export_if_new }}</span>\r\n\t\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</form>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<button class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide="forminator-popup">{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button type="submit" class="sui-button wpmudev-action-done">{{ Forminator.l10n.popup.save }}</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-new-form-popup-tpl">\r\n\r\n <div class="wpmudev-box--congrats">\r\n\r\n <div class="wpmudev-congrats--image"></div>\r\n\r\n <div class="wpmudev-congrats--message">\r\n\r\n <p><strong>{{ title }}</strong> {{ Forminator.l10n.popup.is_ready }}<br/>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.new_form_desc }}</p>\r\n\r\n </div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-delete-popup-tpl">\r\n\r\n\t <div class="sui-box-body">\r\n\t\t <span class="sui-description">{{ content }}</span>\r\n\t </div>\r\n\r\n\t <div class="sui-box-footer">\r\n\t\t <button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t <form method="post" class="delete-action">\r\n\t\t\t <input type="hidden" name="forminator_action" value="delete">\r\n\t\t\t <input type="hidden" name="id" value="{{ id }}">\r\n\t\t\t <input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" id="forminatorEntryNonce" name="forminatorEntryNonce" value="{{ nonce }}">\r\n\t\t\t <input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t <button type="submit" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm">\r\n\t\t\t\t <i class="sui-icon-trash" aria-hidden="true"></i>\r\n\t\t\t\t {{ Forminator.l10n.popup.delete }}\r\n\t\t\t </button>\r\n\t\t </form>\r\n\t </div>\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-confirmation-popup-tpl">\r\n\r\n\t <div class="sui-box-body">\r\n\t\t <p>{{ confirmation_message }}</p>\r\n\t </div>\r\n\r\n <form class="sui-box-footer" method="post">\r\n\t\t\t<button type="button" class="sui-button popup-confirmation-cancel">{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<div class="sui-actions-right">\r\n\t\t\t\t<button type="button" class="sui-button sui-button-red popup-confirmation-confirm">{{ Forminator.l10n.popup.delete }}</button>\r\n\t\t\t</div>\r\n </form>\r\n\r\n <\/script>\r\n\r\n\t<script type="text/template" id="forminator-reset-plugin-settings-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="delete-action">\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="reset_plugin_settings">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm">\r\n\t\t\t\t\t<i class="sui-icon-refresh" aria-hidden="true"></i>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.reset }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-disconnect-stripe-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="disconnect_stripe sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-action="disconnect_stripe">\r\n\t\t\t\t<i class="sui-icon-refresh" aria-hidden="true"></i>\r\n\t\t\t\t{{ Forminator.l10n.popup.disconnect }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\t<script type="text/template" id="forminator-disconnect-paypal-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="disconnect_paypal sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-action="disconnect_paypal">\r\n\t\t\t\t{{ Forminator.l10n.popup.disconnect }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-delete-poll-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="delete-poll-submission sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-id="{{ id }}" data-action="delete_poll_submissions">\r\n\t\t\t\t{{ Forminator.l10n.popup.delete }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-approve-user-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="form-approve-user">\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="approve_user">\r\n\t\t\t\t<input type="hidden" name="id" value="{{ id }}">\r\n\t\t\t\t<input type="hidden" name="activationKey" value="{{ activationKey }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" id="forminatorEntryNonce" name="forminatorEntryNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button approve-user popup-confirmation-confirm">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.approve_user }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-delete-unconfirmed-user-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="form-delete-unconfirmed-user">\r\n\t\t\t\t<input type="hidden" name="forminatorAction" value="delete-unconfirmed-user">\r\n\t\t\t\t<input type="hidden" name="formId" value="{{ formId }}">\r\n\t\t\t\t<input type="hidden" name="entryId" value="{{ entryId }}">\r\n\t\t\t\t<input type="hidden" name="activationKey" value="{{ activationKey }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonceDeleteUnconfirmedUser" name="forminatorNonceDeleteUnconfirmedUser" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red delete-unconfirmed-user popup-confirmation-confirm">\r\n\t\t\t\t\t<i class="sui-icon-trash" aria-hidden="true"></i>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.delete }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'
|
15 |
-
}),function(t){formintorjs.define("admin/popup/templates",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-popup--quiz",step:"1",template:"blank",events:{"click .select-quiz-template":"selectTemplate","click .sui-dialog-close":"close","change .forminator-new-form-type":"clickTemplate","click #forminator-build-your-form":"handleMouseClick",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(e).find("#forminator-form-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-tpl").html()),newFormContent:Forminator.Utils.template(t(e).find("#forminator-new-form-content-tpl").html()),render:function(){var t=jQuery("#forminator-popup");"1"===this.step&&(this.$el.html(this.popupTpl({templates:Forminator.Data.modules.custom_form.templates})),this.$el.find(".select-quiz-template").prop("disabled",!1),t.removeClass("sui-dialog-sm")),"2"===this.step&&(this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newFormContent()),"registration"===this.template&&(this.$el.find("#forminator-template-register-notice").show(),this.$el.find("#forminator-form-name").val(Forminator.l10n.popup.registration_name)),"login"===this.template&&(this.$el.find("#forminator-template-login-notice").show(),this.$el.find("#forminator-form-name").val(Forminator.l10n.popup.login_name)),t.addClass("sui-dialog-sm"))},close:function(t){t.preventDefault(),Forminator.New_Popup.close()},clickTemplate:function(t){this.$el.find(".select-quiz-template").prop("disabled",!1)},selectTemplate:function(t){t.preventDefault();var e=this.$el.find("input[name=forminator-form-template]:checked").val();this.template=e,this.step="2",this.render()},handleMouseClick:function(t){this.createQuiz(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&this.createQuiz(t)},createQuiz:function(e){var i=t(e.target).closest(".sui-box").find("#forminator-form-name");if(""===i.val())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var n=Forminator.Data.modules.custom_form.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),form_url=n+"&name="+i.val(),form_url=form_url+"&template="+this.template,window.location.href=form_url}}})})}(jQuery),function(t){formintorjs.define("admin/popup/login",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-login-popup-tpl").html()),render:function(){this.$el.html(this.popupTpl({loginUrl:Forminator.Data.modules.login.login_url,registerUrl:Forminator.Data.modules.login.register_url}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/quizzes",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-popup--quiz",step:"1",type:"knowledge",events:{"click .select-quiz-template":"selectTemplate","click .sui-dialog-close":"close","change .forminator-new-quiz-type":"clickTemplate","click #forminator-build-your-form":"handleMouseClick","click #forminator-new-quiz-leads":"handleToggle",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(e).find("#forminator-quizzes-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-quiz-tpl").html()),newFormContent:Forminator.Utils.template(t(e).find("#forminator-new-quiz-content-tpl").html()),render:function(){var t=jQuery("#forminator-popup");"1"===this.step&&(this.$el.html(this.popupTpl()),this.$el.find(".select-quiz-template").prop("disabled",!1),t.removeClass("sui-dialog-sm")),"2"===this.step&&(this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newFormContent()),t.addClass("sui-dialog-sm forminator-create-quiz-second-step"))},close:function(t){t.preventDefault(),Forminator.New_Popup.close()},clickTemplate:function(t){this.$el.find(".select-quiz-template").prop("disabled",!1)},selectTemplate:function(e){e.preventDefault();var i=this.$el.find("input[name=forminator-new-quiz]:checked").val(),n=this.$el.find("#forminator-form-name").val();""===n?t(e.target).closest(".sui-box").find("#sui-quiz-name-error").show():(this.type=i,this.name=n,this.step="2",this.render())},handleMouseClick:function(t){this.createQuiz(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&("1"===this.step?this.selectTemplate(t):this.createQuiz(t))},handleToggle:function(e){var i=t(e.target).is(":checked"),n=t(e.target).closest(".sui-box").find("#sui-quiz-leads-description");i?n.show():n.hide()},createQuiz:function(e){var i=t(e.target).closest(".sui-box").find("#forminator-new-quiz-leads").is(":checked"),n=Forminator.Data.modules.quizzes.knowledge_url;"nowrong"===this.type&&(n=Forminator.Data.modules.quizzes.nowrong_url),form_url=n+"&name="+this.name,i&&(form_url+="&leads=true"),window.location.href=form_url}})})}(jQuery),function(t){formintorjs.define("admin/popup/schedule",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({popupTpl:Forminator.Utils.template(t(e).find("#forminator-exports-schedule-popup-tpl").html()),events:{'change select[name="interval"]':"on_change_interval","click .sui-toggle-label":"click_label","click .tab-labels .sui-tab-item":"click_tab_label","click .wpmudev-action-done":"submit_schedule"},render:function(){this.$el.html(this.popupTpl({})),Forminator.Utils.sui_delegate_events();var t=forminatorl10n.exporter,e={tags:!0,tokenSeparators:[","," "],language:{searching:function(){return t.searching},noResults:function(){return t.noResults}},ajax:{url:forminatorData.ajaxUrl,type:"POST",delay:350,data:function(t){return{action:"forminator_builder_search_emails",_wpnonce:forminatorData.searchNonce,q:t.term}},processResults:function(t){return{results:t.data}},cache:!0},createTag:function(t){const e=jQuery.trim(t.term);return Forminator.Utils.is_email_wp(e)?{id:e,text:e}:null},insertTag:function(t,e){t.push(e)}};Forminator.Utils.forminator_select2_tags(this.$el,e),this.$el.find('input[name="if_new"]').prop("checked",t.if_new),this.set_enabled(t.enabled),this.$el.find('select[name="interval"]').change(),null!==t.email&&(this.$el.find('select[name="interval"]').val(t.interval),this.$el.find('select[name="day"]').val(t.day),this.$el.find('select[name="month_day"]').val(t.month_day?t.month_day:1),this.$el.find('select[name="hour"]').val(t.hour),"weekly"===t.interval?this.$el.find('select[name="day"]').closest(".sui-form-field").show():"monthly"===t.interval&&this.$el.find('select[name="month_day"]').closest(".sui-form-field").show())},set_enabled:function(t){t?(this.$el.find('input[name="enabled"][value="true"]').prop("checked",!0),this.$el.find('input[name="enabled"][value="false"]').prop("checked",!1),this.$el.find(".tab-label-disable").removeClass("active"),this.$el.find(".tab-label-enable").addClass("active"),this.$el.find(".schedule-enabled").show(),this.$el.find('input[name="email"]').prop("required",!0)):(this.$el.find('input[name="enabled"][value="false"]').prop("checked",!0),this.$el.find('input[name="enabled"][value="true"]').prop("checked",!1),this.$el.find(".tab-label-disable").addClass("active"),this.$el.find(".tab-label-enable").removeClass("active"),this.$el.find(".schedule-enabled").hide())},on_change_interval:function(t){this.$el.find('select[name="day"]').closest(".sui-form-field").hide(),this.$el.find('select[name="month_day"]').closest(".sui-form-field").hide(),"weekly"===t.target.value?(this.$el.find('select[name="month-day"]').closest(".sui-form-field").hide(),this.$el.find('select[name="day"]').closest(".sui-form-field").show()):"monthly"===t.target.value&&(this.$el.find('select[name="month_day"]').closest(".sui-form-field").show(),this.$el.find('select[name="day"]').closest(".sui-form-field").hide())},click_label:function(t){t.preventDefault(),this.$el.closest(".sui-form-field").find(".sui-toggle input").click()},click_tab_label:function(e){var i=t(e.target);i.closest(".sui-tab-item").hasClass("tab-label-disable")?this.set_enabled(!1):i.closest(".sui-tab-item").hasClass("tab-label-enable")&&this.set_enabled(!0)},submit_schedule:function(t){this.$el.find("form.schedule-action").trigger("submit")}})})}(jQuery),function(t){formintorjs.define("admin/popup/new-form",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-popup-tpl").html()),initialize:function(t){this.title=t.title,this.title=Forminator.Utils.sanitize_uri_string(this.title)},render:function(){this.$el.html(this.popupTpl({title:this.title}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/polls",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-popup-templates",newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-tpl").html()),newPollContent:Forminator.Utils.template(t(e).find("#forminator-new-poll-content-tpl").html()),events:{"click #forminator-build-your-form":"handleMouseClick",keyup:"handleKeyClick"},initialize:function(t){this.options=t},render:function(){this.$el.html(this.newFormTpl()),"form"===this.options.type&&this.$el.find(".sui-box-body").html(this.newFormContent()),"poll"===this.options.type&&this.$el.find(".sui-box-body").html(this.newPollContent())},handleMouseClick:function(t){"form"===this.options.type&&this.create_form(t),"poll"===this.options.type&&this.create_poll(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&("form"===this.options.type&&this.create_form(t),"poll"===this.options.type&&this.create_poll(t))},create_form:function(e){e.preventDefault();var i=t(e.target).closest(".sui-box").find("#forminator-form-name");if(""===i.val())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var n=Forminator.Data.modules.custom_form.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),n=n+"&name="+i.val(),window.location.href=n}},create_poll:function(e){e.preventDefault();var i=t(e.target).closest(".sui-box").find("#forminator-form-name");if(""===i.val())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var n=Forminator.Data.modules.polls.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),n=n+"&name="+i.val(),window.location.href=n}}})})}(jQuery),function(t){formintorjs.define("admin/popup/ajax",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"sui-box-body",events:{"click .wpmudev-action-done":"save","click .wpmudev-action-ajax-done":"ajax_save","click .wpmudev-action-ajax-cf7-import":"ajax_cf7_import","click .wpmudev-button-clear-exports":"clear_exports","click .forminator-radio--field":"show_poll_custom_input","click .forminator-popup-close":"close_popup","click .forminator-retry-import":"ajax_cf7_import","change #forminator-choose-import-form":"import_form_action","change .forminator-import-forms":"import_form_action"},initialize:function(t){return t=_.extend({action:"",nonce:"",data:"",id:"",enable_loader:!0},t),this.action=t.action,this.nonce=t.nonce,this.data=t.data,this.id=t.id,this.enable_loader=t.enable_loader,this.render()},render:function(){var e=this,i={};if(i.action="forminator_load_"+this.action+"_popup",i._ajax_nonce=this.nonce,i.data=this.data,this.id&&(i.id=this.id),this.enable_loader){var n="";"sui-box-body"!==this.className&&(n+='<div class="sui-box-body">'),n+='<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>',"sui-box-body"!==this.className&&(n+="</div>"),e.$el.html(n)}t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).done(function(t){if(t&&t.success){e.$el.html(t.data),e.$el.find(".wpmudev-hidden-popup").show(400),Forminator.Utils.sui_delegate_events();e.$el.find(".forminator-custom-form");e.delegateEvents()}}).always(function(){e.$el.find(".fui-loading-dialog").remove()})},save:function(e){e.preventDefault();var i={},n=t(e.target).data("nonce");i.action="forminator_save_"+this.action+"_popup",i._ajax_nonce=n,t(".wpmudev-popup-form input, .wpmudev-popup-form select").each(function(){var e=t(this);i[e.attr("name")]=e.val()}),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,success:function(t){Forminator.Popup.close(!1,function(){window.location.reload()})}})},ajax_save:function(e){var i=this;e.preventDefault();var n={},o=t(e.target).data("nonce");n.action="forminator_save_"+this.action+"_popup",n._ajax_nonce=o,t(".wpmudev-popup-form input, .wpmudev-popup-form select, .wpmudev-popup-form textarea").each(function(){var e=t(this);n[e.attr("name")]=e.val()}),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.$el.find(".wpmudev-ajax-error-placeholder").addClass("sui-hidden"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:n,success:function(t){if(!0===t.success){var e=!1;_.isUndefined(t.data.url)||(e=t.data.url),Forminator.Popup.close(!1,function(){e&&(location.href=e)})}else _.isUndefined(t.data)||i.$el.find(".wpmudev-ajax-error-placeholder").removeClass("sui-hidden").find("p").text(t.data)}}).always(function(){i.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload")})},clear_exports:function(e){e.preventDefault();var i={},n=this,o=t(e.target).data("nonce"),r=t(e.target).data("form-id");i.action="forminator_clear_"+this.action+"_popup",i._ajax_nonce=o,i.id=r,t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,success:function(){n.render()}})},show_poll_custom_input:function(e){var i=this,n=this.$el.find(".forminator-input"),o=e.target.checked,r=t(e.target).attr("id");if(n.hide(),i.$el.find(".forminator-input#"+r+"-extra").length){var a=i.$el.find(".forminator-input#"+r+"-extra");o?a.show():a.hide()}},ajax_cf7_import:function(e){var i=this,n=i.$el.find("form").serializeArray();e.preventDefault(),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.$el.find(".wpmudev-ajax-error-placeholder").addClass("sui-hidden"),this.$el.find(".forminator-cf7-imported-fail").addClass("sui-hidden"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:n,xhr:function(){var t=new window.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;e=parseInt(100*e),i.$el.find(".forminator-cf7-importing .sui-progress-text").html(e+"%"),i.$el.find(".forminator-cf7-importing .sui-progress-bar span").css("width",e+"%")}},!1),t},success:function(t){!0===t.success?setTimeout(function(){i.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),i.$el.find(".forminator-cf7-imported").removeClass("sui-hidden")},1e3):_.isUndefined(t.data)||(setTimeout(function(){i.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),i.$el.find(".forminator-cf7-imported-fail").removeClass("sui-hidden")},1e3),i.$el.find(".wpmudev-ajax-error-placeholder").removeClass("sui-hidden").find("p").text(t.data))}}).always(function(t){i.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload"),i.$el.find(".forminator-cf7-import").addClass("sui-hidden"),i.$el.find(".forminator-cf7-importing").removeClass("sui-hidden")})},close_popup:function(){Forminator.Popup.close()},import_form_action:function(e){e.preventDefault();var i=t(e.target),n=i.val(),o=!1;"specific"===n&&(o=!0),(null==n||Array.isArray(n)&&n.length<1)&&(o=!0),this.$el.find(".wpmudev-action-ajax-cf7-import").prop("disabled",o)}})})}(jQuery),function(t){formintorjs.define("admin/popup/delete",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-delete-popup-tpl").html()),popupPollTpl:Forminator.Utils.template(t(e).find("#forminator-delete-poll-popup-tpl").html()),initialize:function(t){this.module=t.module,this.nonce=t.nonce,this.id=t.id,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){"poll"===this.module?this.$el.html(this.popupPollTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content})):this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/preview",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"sui-box-body",initialize:function(e){var i=this,n={action:"",type:"",id:"",preview_data:{},enable_loader:!0};return"forminator_quizzes"===e.type&&(n.has_lead=e.has_lead,n.leads_id=e.leads_id),e=_.extend(n,e),this.action=e.action,this.type=e.type,this.nonce=e.nonce,this.id=e.id,this.render_id=0,this.preview_data=e.preview_data,this.enable_loader=e.enable_loader,"forminator_quizzes"===e.type&&(this.has_lead=e.has_lead,this.leads_id=e.leads_id),t(document).off("after.load.forminator"),t(document).on("after.load.forminator",function(t){i.after_load()}),this.render()},render:function(){var e=this,i={};if(i.action=this.action,i.type=this.type,i.id=this.id,i.render_id=this.render_id,i.nonce=this.nonce,i.is_preview=1,i.preview_data=this.preview_data,i.last_submit_data={},"forminator_quizzes"===this.type&&(i.has_lead=this.has_lead,i.leads_id=this.leads_id),this.enable_loader){var n="";"sui-box-body"!==this.className&&(n+='<div class="sui-box-body">'),n+='<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>',"sui-box-body"!==this.className&&(n+="</div>"),e.$el.html(n)}var o=t('<form id="forminator-module-'+this.id+'" data-forminator-render="'+this.render_id+'" style="display:none"></form>');e.$el.append(o),t(e.$el.find("#forminator-module-"+this.id+'[data-forminator-render="'+this.render_id+'"]').get(0)).forminatorLoader(i)},after_load:function(){var t=this;t.$el.find('div[data-form="forminator-module-'+this.id+'"]').remove(),t.$el.find(".fui-loading-dialog").remove()}})})}(jQuery),function(t){formintorjs.define("admin/popup/reset-plugin-settings",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-reset-plugin-settings-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-stripe",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup delete-stripe--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-disconnect-stripe-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-paypal",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-disconnect-paypal-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/approve-user",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-approve-user-popup-tpl").html()),events:{"click .approve-user.popup-confirmation-confirm":"approveUser"},initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.activationKey=t.activationKey},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content,activationKey:this.activationKey}))},submitForm:function(e,i,n){var o={};o.action="forminator_approve_user_popup",o._ajax_nonce=i,o.activation_key=n;var r=e.serialize()+"&"+t.param(o);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:r,beforeSend:function(){e.find(".sui-button").addClass("sui-button-onload")},success:function(t){t&&t.success?(Forminator.Notification.open("success",Forminator.l10n.commons.approve_user_successfull,4e3),window.location.reload()):Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.approve_user_unsuccessfull,4e3)}}).always(function(){e.find(".sui-button").removeClass("sui-button-onload")})},approveUser:function(e){e.preventDefault(),t(e.target).addClass("sui-button-onload");var i=this.$el.find(".form-approve-user"),n=i.find("form");return this.submitForm(n,this.nonce,this.activationKey),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/delete-unconfirmed-user",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-delete-unconfirmed-user-popup-tpl").html()),events:{"click .delete-unconfirmed-user.popup-confirmation-confirm":"deleteUnconfirmedUser"},initialize:function(t){this.nonce=t.nonce,this.formId=t.formId,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.activationKey=t.activationKey,this.entryId=t.entryId},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,formId:this.formId,referrer:this.referrer,content:this.content,activationKey:this.activationKey,entryId:this.entryId}))},submitForm:function(e,i,n,o,r){var a={action:"forminator_delete_unconfirmed_user_popup",_ajax_nonce:i,activation_key:n,form_id:o,entry_id:r},s=e.serialize()+"&"+t.param(a);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:s,beforeSend:function(){e.find(".sui-button").addClass("sui-button-onload")},success:function(t){t&&t.success?window.location.reload():Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",t.data,4e3)}}).always(function(){e.find(".sui-button").removeClass("sui-button-onload")})},deleteUnconfirmedUser:function(e){e.preventDefault(),t(e.target).addClass("sui-button-onload");var i=this.$el.find(".form-delete-unconfirmed-user"),n=i.find("form");return this.submitForm(n,this.nonce,this.activationKey,this.formId,this.entryId),!1}})})}(jQuery),function(t){formintorjs.define("admin/popups",["admin/popup/templates","admin/popup/login","admin/popup/quizzes","admin/popup/schedule","admin/popup/new-form","admin/popup/polls","admin/popup/ajax","admin/popup/delete","admin/popup/preview","admin/popup/reset-plugin-settings","admin/popup/disconnect-stripe","admin/popup/disconnect-paypal","admin/popup/approve-user","admin/popup/delete-unconfirmed-user"],function(e,i,n,o,r,a,s,l,d,p,u,c,m,f){var h=Backbone.View.extend({el:"main.sui-wrap",events:{"click .wpmudev-open-modal":"open_modal","click .wpmudev-button-open-modal":"open_modal"},initialize:function(){var t=Forminator.Utils.get_url_param("new"),e=Forminator.Utils.get_url_param("title");if(t){var i=new r({title:e});i.render(),this.open_popup(i,Forminator.l10n.popup.congratulations)}return this.open_export(),this.open_delete(),this.render()},render:function(){return this},open_delete:function(){var t=Forminator.Utils.get_url_param("delete"),e=Forminator.Utils.get_url_param("module_id"),i=Forminator.Utils.get_url_param("nonce"),n=Forminator.Utils.get_url_param("module_type"),o=Forminator.l10n.popup.delete_form,r=Forminator.l10n.popup.are_you_sure_form,a=this;"poll"===n&&(o=Forminator.l10n.popup.delete_poll,r=Forminator.l10n.popup.are_you_sure_poll),"quiz"===n&&(o=Forminator.l10n.popup.delete_quiz,r=Forminator.l10n.popup.are_you_sure_quiz),t&&setTimeout(function(){a.open_delete_popup("",e,i,o,r)},100)},open_export:function(){var t=Forminator.Utils.get_url_param("export"),e=Forminator.Utils.get_url_param("module_id"),i=Forminator.Utils.get_url_param("exportnonce"),n=Forminator.Utils.get_url_param("module_type"),o=this;t&&setTimeout(function(){o.open_export_module_modal(n,i,e,Forminator.l10n.popup.export_cform,!1,!0,"wpmudev-ajax-popup")},100)},open_modal:function(e){e.preventDefault();var i=t(e.target);t(e.target).closest(".wpmudev-split--item");i.hasClass("wpmudev-open-modal")||i.hasClass("wpmudev-button-open-modal")||(i=i.closest(".wpmudev-open-modal"));var n=i.data("modal"),o=i.data("nonce"),r=i.data("form-id"),a=i.data("has-leads"),s=i.data("leads-id"),l=i.data("modal-title"),d=i.data("modal-content"),p=i.data("nonce-preview");switch(n){case"custom_forms":this.open_cform_popup();break;case"login_registration_forms":this.open_login_popup();break;case"polls":this.open_polls_popup();break;case"quizzes":this.open_quizzes_popup();break;case"exports":this.open_settings_modal(n,o,r,Forminator.l10n.popup.your_exports);break;case"exports-schedule":this.open_exports_schedule_popup();break;case"delete-module":this.open_delete_popup("",r,o,l,d);break;case"delete-poll-submission":this.open_delete_popup("poll",r,o,l,d);break;case"paypal":this.open_settings_modal(n,o,r,Forminator.l10n.popup.paypal_settings);break;case"preview_cforms":_.isUndefined(l)&&(l=Forminator.l10n.popup.preview_cforms),this.open_preview_popup(r,l,"forminator_load_cform","forminator_forms",p);break;case"preview_polls":_.isUndefined(l)&&(l=Forminator.l10n.popup.preview_polls),this.open_preview_popup(r,l,"forminator_load_poll","forminator_polls",p);break;case"preview_quizzes":_.isUndefined(l)&&(l=Forminator.l10n.popup.preview_quizzes),this.open_quiz_preview_popup(r,l,"forminator_load_quiz","forminator_quizzes",a,s,p);break;case"captcha":this.open_settings_modal(n,o,r,Forminator.l10n.popup.captcha_settings,!1,!0,"wpmudev-ajax-popup");break;case"currency":this.open_settings_modal(n,o,r,Forminator.l10n.popup.currency_settings,!1,!0,"wpmudev-ajax-popup");break;case"pagination_entries":this.open_settings_modal(n,o,r,Forminator.l10n.popup.pagination_entries,!1,!0,"wpmudev-ajax-popup");break;case"pagination_listings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.pagination_listings,!1,!0,"wpmudev-ajax-popup");break;case"email_settings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.email_settings,!1,!0,"wpmudev-ajax-popup");break;case"uninstall_settings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.uninstall_settings,!1,!0,"wpmudev-ajax-popup");break;case"privacy_settings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.privacy_settings,!1,!0,"wpmudev-ajax-popup");break;case"export_cform":this.open_export_module_modal("custom_form",o,r,Forminator.l10n.popup.export_cform,!1,!0,"wpmudev-ajax-popup");break;case"export_poll":this.open_export_module_modal("poll",o,r,Forminator.l10n.popup.export_poll,!1,!0,"wpmudev-ajax-popup");break;case"export_quiz":this.open_export_module_modal("quiz",o,r,Forminator.l10n.popup.export_quiz,!1,!0,"wpmudev-ajax-popup");break;case"import_cform":this.open_import_module_modal("custom_form",o,r,Forminator.l10n.popup.import_cform,!1,!0,"wpmudev-ajax-popup");break;case"import_cform_cf7":this.open_import_module_modal("custom_form_cf7",o,r,Forminator.l10n.popup.import_cform_cf7,!1,!0,"wpmudev-ajax-popup");break;case"import_cform_ninja":this.open_import_module_modal("custom_form_ninja",o,r,Forminator.l10n.popup.import_cform_ninja,!1,!0,"wpmudev-ajax-popup");break;case"import_cform_gravity":this.open_import_module_modal("custom_form_gravity",o,r,Forminator.l10n.popup.import_cform_gravity,!1,!0,"wpmudev-ajax-popup");break;case"import_poll":this.open_import_module_modal("poll",o,r,Forminator.l10n.popup.import_poll,!1,!0,"wpmudev-ajax-popup");break;case"import_quiz":this.open_import_module_modal("quiz",o,r,Forminator.l10n.popup.import_quiz,!1,!0,"wpmudev-ajax-popup");break;case"reset-plugin-settings":this.open_reset_plugin_settings_popup(o,l,d);break;case"disconnect-stripe":this.open_disconnect_stripe_popup(o,l,d);break;case"disconnect-paypal":this.open_disconnect_paypal_popup(o,l,d);break;case"approve-user-module":var u=i.data("activation-key");this.open_approve_user_popup(o,l,d,u);break;case"delete-unconfirmed-user-module":this.open_unconfirmed_user_popup(i.data("form-id"),o,l,d,i.data("activation-key"),i.data("entry-id"))}},open_popup:function(e,i,n,o,r,a,s){_.isUndefined(i)&&(i=Forminator.l10n.custom_form.popup_label);var l={title:i};_.isUndefined(n)||(l.has_custom_box=n),_.isUndefined(o)||(l.action_text=o),_.isUndefined(r)||(l.action_css_class=r),_.isUndefined(a)||(l.action_callback=a),Forminator.Popup.open(function(){_.isUndefined(e.el)?t(this).append(e):t(this).append(e.el),"function"==typeof s&&s.apply(this)},l)},open_ajax_popup:function(e,i,n,o,r,a,l){_.isUndefined(o)&&(o=Forminator.l10n.custom_form.popup_label),_.isUndefined(r)&&(r=!0),_.isUndefined(a)&&(a=!1),_.isUndefined(l)&&(l="sui-box-body");var d=new s({action:e,nonce:i,id:n,enable_loader:!0,className:l}),p={title:o,has_custom_box:a};Forminator.Popup.open(function(){t(this).append(d.el)},p)},open_cform_popup:function(){var i=new e({type:"form"});i.render();var n=i;Forminator.New_Popup.open(function(){_.isUndefined(n.el)?t(this).append(n):t(this).append(n.el),t(this).closest(".sui-dialog").removeClass("sui-dialog-sm"),t(this).closest(".sui-dialog").addClass("sui-dialog-alt"),t(this).closest(".sui-dialog").find(".sui-box-header").addClass("sui-block-content-center")},{title:"",has_custom_box:!0})},open_delete_popup:function(e,i,n,o,r){var a=new l({module:e,id:i,nonce:n,referrer:window.location.pathname+window.location.search,content:r});a.render();var s=a;Forminator.Popup.open(function(){_.isUndefined(s.el)?t(this).append(s):t(this).append(s.el)},{title:o,has_custom_box:!0})},open_login_popup:function(){var t=new i;t.render(),this.open_popup(t,Forminator.l10n.popup.edit_login_form)},open_polls_popup:function(){var e=new a({type:"poll"});e.render();var i=e;Forminator.New_Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el)},{title:""})},open_quizzes_popup:function(){var e=new n;e.render();var i=e;Forminator.New_Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el),t(this).closest(".sui-dialog").removeClass("sui-dialog-sm"),t(this).closest(".sui-dialog").addClass("sui-dialog-alt"),t(this).closest(".sui-dialog").find(".sui-box-header").addClass("sui-block-content-center")},{title:Forminator.l10n.quiz.choose_quiz_title,has_custom_box:!0})},open_exports_schedule_popup:function(){var t=new o;t.render(),this.open_popup(t,Forminator.l10n.popup.edit_scheduled_export,!0)},open_settings_modal:function(t,e,i,n,o,r,a){this.open_ajax_popup(t,e,i,n,o,r,a)},open_export_module_modal:function(t,e,i,n,o,r,a){var s="";switch(t){case"custom_form":s="export_custom_form";break;case"poll":s="export_poll";break;case"quiz":s="export_quiz"}this.open_ajax_popup(s,e,i,n,o,r,a)},open_import_module_modal:function(t,e,i,n,o,r,a){var s="";switch(t){case"custom_form":s="import_custom_form";break;case"custom_form_cf7":s="import_custom_form_cf7";break;case"custom_form_ninja":s="import_custom_form_ninja";break;case"custom_form_gravity":s="import_custom_form_gravity";break;case"poll":s="import_poll";break;case"quiz":s="import_quiz"}this.open_ajax_popup(s,e,i,n,o,r,a)},open_preview_popup:function(e,i,n,o,r){_.isUndefined(i)&&(i=Forminator.l10n.custom_form.popup_label);var a=new d({action:n,type:o,nonce:r,id:e,enable_loader:!0,className:"sui-box-body"}),s={title:i,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(a.el)},s)},open_quiz_preview_popup:function(e,i,n,o,r,a,s){_.isUndefined(i)&&(i=Forminator.l10n.custom_form.popup_label);var l=new d({action:n,type:o,id:e,enable_loader:!0,className:"sui-box-body",has_lead:r,leads_id:a,nonce:s}),p={title:i,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(l.el)},p)},
|
16 |
-
open_reset_plugin_settings_popup:function(e,i,n){var o=new p({nonce:e,referrer:window.location.pathname+window.location.search,content:n});o.render();var r=o;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_disconnect_stripe_popup:function(e,i,n){var o=new u({nonce:e,referrer:window.location.pathname+window.location.search,content:n});o.render();var r=o;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_disconnect_paypal_popup:function(e,i,n){var o=new c({nonce:e,referrer:window.location.pathname+window.location.search,content:n});o.render();var r=o;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_approve_user_popup:function(e,i,n,o){var r=new m({nonce:e,referrer:window.location.pathname+window.location.search,content:n,activationKey:o});r.render();var a=r;Forminator.Popup.open(function(){_.isUndefined(a.el)?t(this).append(a):t(this).append(a.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_unconfirmed_user_popup:function(e,i,n,o,r,a){var s=new f({formId:e,nonce:i,referrer:window.location.pathname+window.location.search,content:o,activationKey:r,entryId:a});s.render();var l=s;Forminator.Popup.open(function(){_.isUndefined(l.el)?t(this).append(l):t(this).append(l.el)},{title:n,has_custom_box:!0})}});jQuery(document).ready(function(){new h})})}(jQuery),formintorjs.define("text!tpl/popups.html",[],function(){return'<div>\r\n\r\n\t<script type="text/template" id="popup-integration-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc="{{ image }}"\r\n\t\t\t\t\tsrcset="{{ image }} 1x, {{ image_x2 }} 2x"\r\n\t\t\t\t\talt="{{ title }}"\r\n\t\t\t\t/>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="sui-box-content integration-header"></div>\r\n\r\n\t\t\t<button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-new-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-tpl">\r\n\r\n\t\t<div class="sui-dialog" id="forminator-popup" aria-hidden="true">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-header-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-loader-tpl">\r\n\r\n\t\t<p class="fui-loading-dialog" aria-label="Loading content">\r\n\r\n\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\r\n\t\t</p>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-stripe-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img src="{{ image }}"\r\n\t\t\t\t srcset="{{ image }} 1x, {{ image_x2 }} 2x" alt="{{ title }}" />\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle2" style="display: none;">{{ title }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-block-content-center sui-box-body-slim"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'}),function(t){formintorjs.define("admin/addons/view",["text!tpl/popups.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--integrations",loaderTpl:Forminator.Utils.template(t(e).find("#popup-loader-tpl").html()),model:{},events:{"click .forminator-addon-connect":"connect_addon","click .forminator-addon-disconnect":"disconnect_addon","click .forminator-addon-form-disconnect":"form_disconnect_addon","click .forminator-addon-next":"submit_next_step","click .forminator-addon-back":"go_prev_step","click .forminator-addon-finish":"finish_steps"},initialize:function(t){this.slug=t.slug,this.nonce=t.nonce,this.action=t.action,this.form_id=t.form_id,this.multi_id=t.multi_id,this.step=0,this.next_step=!1,this.prev_step=!1,this.scrollbar_width=this.get_scrollbar_width();var e=this;return this.$el.find(".forminator-integration-close, .forminator-addon-close").on("click",function(){e.close(e)}),this.render()},render:function(){var t={};t.action=this.action,t._ajax_nonce=this.nonce,t.data={},t.data.slug=this.slug,t.data.step=this.step,t.data.current_step=this.step,this.form_id&&(t.data.form_id=this.form_id),this.multi_id&&(t.data.multi_id=this.multi_id),this.request(t,!1,!0)},request:function(e,i,n){var o=this,r={data:e,close:i,loader:n};n&&(this.$el.find(".sui-box-body").html(this.loaderTpl()),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){o.render_body(e),o.render_footer(e);var n=e.data.data;if(o.on_render(n),o.$el.find(".sui-button").removeClass("sui-button-onload"),(i||!_.isUndefined(n.is_close)&&n.is_close)&&o.close(o),o.$el.find(".forminator-addon-close").on("click",function(){o.close(o)}),_.isUndefined(n.notification)||_.isUndefined(n.notification.type)||_.isUndefined(n.notification.text)||Forminator.Notification.open(n.notification.type,n.notification.text,4e3),_.isUndefined(n.has_back)?o.$el.find(".forminator-addon-back").hide():n.has_back?o.$el.find(".forminator-addon-back").show():o.$el.find(".forminator-addon-back").hide(),!_.isUndefined(n.size)){var a=t("#forminator-integration-popup");"normal"===n.size&&a.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n.size&&(a.addClass("sui-dialog-sm"),a.removeClass("sui-dialog-lg")),"large"===n.size&&(a.addClass("sui-dialog-lg"),a.removeClass("sui-dialog-sm"))}n.is_poll&&setTimeout(o.request(r.data,r.close,r.loader),5e3);t("#forminator-integration-popup .sui-box").height()>t(window).height()?t("#forminator-integration-popup .sui-dialog-overlay").css("right",o.scrollbar_width+"px"):t("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){o.$el.find(".fui-loading-dialog").remove()})},render_body:function(t){this.$el.find(".sui-box-body").html(t.data.data.html);var e=this.$el.find(".sui-box-body .integration-header").remove();e.length>0&&this.$el.find(".integration-header").html(e.html()),t.data.data.nopadding&&this.$el.find(".sui-box-body").css({padding:"10px"})},render_footer:function(t){var e=this,i=t.data.data.buttons;e.$el.find(".sui-box-footer").html(""),_.each(i,function(t){e.$el.find(".sui-box-footer").append(t.markup)})},on_render:function(t){this.delegateEvents(),Forminator.Utils.sui_delegate_events(),Forminator.Utils.forminator_select2_tags(this.$el,{}),_.isUndefined(t.forminator_addon_current_step)||(this.step=+t.forminator_addon_current_step),_.isUndefined(t.forminator_addon_has_next_step)||(this.next_step=t.forminator_addon_has_next_step),_.isUndefined(t.forminator_addon_has_prev_step)||(this.prev_step=t.forminator_addon_has_prev_step)},get_step:function(){return this.next_step?this.step+1:this.step},get_prev_step:function(){return this.prev_step?this.step-1:this.step},connect_addon:function(e){var i={},n=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),current_step:this.step},r=n.serialize();this.form_id&&(o.form_id=this.form_id),this.multi_id&&(o.multi_id=this.multi_id),r=r+"&"+t.param(o),i.action=this.action,i._ajax_nonce=this.nonce,i.data=r,this.request(i,!1,!1)},submit_next_step:function(e){var i={},n=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),current_step:this.step},r=n.serialize();this.form_id&&(o.form_id=this.form_id),r=r+"&"+t.param(o),i.action=this.action,i._ajax_nonce=this.nonce,i.data=r,this.request(i,!1,!1)},go_prev_step:function(t){var e={},i={slug:this.slug,step:this.get_prev_step(),current_step:this.step};this.form_id&&(i.form_id=this.form_id),this.multi_id&&(i.multi_id=this.multi_id),e.action=this.action,e._ajax_nonce=this.nonce,e.data=i,this.request(e,!1,!1)},finish_steps:function(e){var i={},n=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),current_step:this.step},r=n.serialize();this.form_id&&(o.form_id=this.form_id),this.multi_id&&(o.multi_id=this.multi_id),r=r+"&"+t.param(o),i.action=this.action,i._ajax_nonce=this.nonce,i.data=r,this.request(i,!1,!1)},disconnect_addon:function(t){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,this.request(e,!0,!1)},form_disconnect_addon:function(t){var e={};e.action="forminator_addon_form_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.form_id=this.form_id,this.multi_id&&(e.data.multi_id=this.multi_id),this.request(e,!0,!1)},close:function(t){t.ajax.abort(),t.remove(),Forminator.Integrations_Popup.close(),Forminator.Events.trigger("forminator:addons:reload")},get_scrollbar_width:function(){var e=0;if(navigator.userAgent.match("MSIE")){var i=t('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),n=t('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=i.width()-n.width(),i.add(n).remove()}else{var o=t("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200});e=100-o.width(),o.parent().remove()}return e}})})}(jQuery),function(t){formintorjs.define("admin/addons/addons",["admin/addons/view"],function(e){var i=Backbone.View.extend({el:".sui-wrap.wpmudev-forminator-forminator-integrations",currentTab:"forminator-integrations",events:{"change .forminator-addon-toggle-enabled":"toggle_state","click .connect-integration":"connect_integration","click .forminator-integrations-wrapper .sui-vertical-tab a":"go_to_tab","change .forminator-integrations-wrapper .sui-sidenav-hide-lg select":"go_to_tab","keyup input.sui-form-control":"required_settings"},initialize:function(e){if(t(this.el).length>0)return this.listenTo(Forminator.Events,"forminator:addons:reload",this.render_addons_page),this.render()},render:function(){this.render_addons_page(),this.update_tab()},render_addons_page:function(){var e=this,i={};this.$el.find("#forminator-integrations-display").html('<div class="sui-notice sui-notice-loading"><p>Fetching integration list…</p></div>'),i.action="forminator_addon_get_addons",i._ajax_nonce=Forminator.Data.addonNonce,i.data={},t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).done(function(t){t&&t.success&&e.$el.find("#forminator-integrations-page").html(t.data.data)}).always(function(){e.$el.find(".sui-notice sui-notice-loading").remove()})},connect_integration:function(i){i.preventDefault();var n=t(i.target);n.hasClass("connect-integration")||(n=n.closest(".connect-integration"));var o=n.data("nonce"),r=n.data("slug"),a=n.data("title"),s=n.data("image"),l=n.data("imagex2"),d=n.data("action"),p=n.data("form-id"),u=n.data("multi-id");Forminator.Integrations_Popup.open(function(){new e({slug:r,nonce:o,action:d,form_id:p,multi_id:u,el:t(this)})},{title:a,image:s,image_x2:l})},go_to_tab:function(e){e.preventDefault();var i=t(e.target),n=i.attr("href"),o="";if(_.isUndefined(n)){o=i.val()}else o=n.replace("#","",n);_.isEmpty(o)||(this.currentTab=o),this.update_tab(),e.stopPropagation()},update_tab_select:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.$el.find(".sui-sidenav-hide-lg select").val(this.currentTab),this.$el.find(".sui-sidenav-hide-lg select").trigger("sui:change"))},update_tab:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.clear_tabs(),this.$el.find("[data-tab-id="+this.currentTab+"]").addClass("current"),this.$el.find(".wpmudev-settings--box#"+this.currentTab).show())},clear_tabs:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.$el.find(".sui-vertical-tab ").removeClass("current"),this.$el.find(".wpmudev-settings--box").hide())},required_settings:function(e){var i=t(e.target),n=i.parent(),o=n.find(".sui-error-message"),r=i.closest("div[data-nav]"),a=r.find(".sui-box-footer"),s=a.find(".wpmudev-action-done");this.$el.hasClass("wpmudev-forminator-forminator-settings")&&(i.hasClass("forminator-required")&&!i.val()&&n.hasClass("sui-form-field")&&(n.addClass("sui-form-field-error"),o.show()),i.hasClass("forminator-required")&&i.val()&&n.hasClass("sui-form-field")&&(n.removeClass("sui-form-field-error"),o.hide()),r.find("input.sui-form-control").hasClass("forminator-required")&&(0===r.find("div.sui-form-field-error").length?s.prop("disabled",!1):s.prop("disabled",!0))),e.stopPropagation()}});jQuery(document).ready(function(){new i})})}(jQuery),function(t){formintorjs.define("admin/views",["admin/dashboard","admin/settings-page","admin/popups","admin/addons/addons"],function(t,e,i,n){return{Views:{Dashboard:t,SettingsPage:e,Popups:i}}})}(jQuery),function(t){formintorjs.define("admin/application",["admin/views"],function(t){return _.extend(Forminator,t),new(Backbone.Router.extend({app:!1,data:!1,layout:!1,module_id:null,routes:{"":"run","*path":"run"},events:{},init:function(){if(!this.data)return this.app=Forminator.Data.application||!1,this.data={},!1},run:function(t){this.init(),this.module_id=t}}))})}(jQuery),formintorjs.define("jquery",[],function(){return jQuery}),formintorjs.define("forminator_global_data",function(){return forminatorData}),formintorjs.define("forminator_language",function(){return forminatorl10n});var Forminator=window.Forminator||{};Forminator.Events={},Forminator.Data={},Forminator.l10n={},formintorjs.require.config({baseUrl:".",paths:{js:".",admin:"admin"},shim:{backbone:{deps:["underscore","jquery","forminator_global_data","forminator_language"],exports:"Backbone"},underscore:{exports:"_"}},waitSeconds:60}),formintorjs.require(["admin/utils"],function(t){_.templateSettings={evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g},_.extend(Forminator.Data,forminatorData),_.extend(Forminator.l10n,forminatorl10n),_.extend(Forminator,t),_.extend(Forminator.Events,Backbone.Events),formintorjs.require(["admin/application"],function(t){jQuery(document).ready(function(){_.extend(Forminator,t),Forminator.Events.trigger("application:booted"),Backbone.history.start()})})}),formintorjs.define("admin/setup",function(){}),formintorjs.define("main",function(){});
|
9 |
* see: http://github.com/requirejs/text for details
|
10 |
*/
|
11 |
|
12 |
+
var formintorjs;!function(){if(!formintorjs||!formintorjs.requirejs){formintorjs?require=formintorjs:formintorjs={};var requirejs,require,define;!function(global,setTimeout){function commentReplace(t,e){return e||""}function isFunction(t){return"[object Function]"===ostring.call(t)}function isArray(t){return"[object Array]"===ostring.call(t)}function each(t,e){if(t){var i;for(i=0;i<t.length&&(!t[i]||!e(t[i],i,t));i+=1);}}function eachReverse(t,e){if(t){var i;for(i=t.length-1;i>-1&&(!t[i]||!e(t[i],i,t));i-=1);}}function hasProp(t,e){return hasOwn.call(t,e)}function getOwn(t,e){return hasProp(t,e)&&t[e]}function eachProp(t,e){var i;for(i in t)if(hasProp(t,i)&&e(t[i],i))break}function mixin(t,e,i,n){return e&&eachProp(e,function(e,o){!i&&hasProp(t,o)||(!n||"object"!=typeof e||!e||isArray(e)||isFunction(e)||e instanceof RegExp?t[o]=e:(t[o]||(t[o]={}),mixin(t[o],e,i,n)))}),t}function bind(t,e){return function(){return e.apply(t,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(t){throw t}function getGlobal(t){if(!t)return t;var e=global;return each(t.split("."),function(t){e=e[t]}),e}function makeError(t,e,i,n){var o=new Error(e+"\nhttp://requirejs.org/docs/errors.html#"+t);return o.requireType=t,o.requireModules=n,i&&(o.originalError=i),o}function newContext(t){function e(t){var e,i;for(e=0;e<t.length;e++)if("."===(i=t[e]))t.splice(e,1),e-=1;else if(".."===i){if(0===e||1===e&&".."===t[2]||".."===t[e-1])continue;e>0&&(t.splice(e-1,2),e-=2)}}function i(t,i,n){var o,r,a,s,l,p,d,u,c,m,f,h=i&&i.split("/"),_=F.map,v=_&&_["*"];if(t&&(t=t.split("/"),p=t.length-1,F.nodeIdCompat&&jsSuffixRegExp.test(t[p])&&(t[p]=t[p].replace(jsSuffixRegExp,"")),"."===t[0].charAt(0)&&h&&(f=h.slice(0,h.length-1),t=f.concat(t)),e(t),t=t.join("/")),n&&_&&(h||v)){r=t.split("/");t:for(a=r.length;a>0;a-=1){if(l=r.slice(0,a).join("/"),h)for(s=h.length;s>0;s-=1)if((o=getOwn(_,h.slice(0,s).join("/")))&&(o=getOwn(o,l))){d=o,u=a;break t}!c&&v&&getOwn(v,l)&&(c=getOwn(v,l),m=a)}!d&&c&&(d=c,u=m),d&&(r.splice(0,u,d),t=r.join("/"))}return getOwn(F.pkgs,t)||t}function n(t){isBrowser&&each(scripts(),function(e){if(e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===x.contextName)return e.parentNode.removeChild(e),!0})}function o(t){var e=getOwn(F.paths,t);if(e&&isArray(e)&&e.length>1)return e.shift(),x.require.undef(t),x.makeRequire(null,{skipMap:!0})([t]),!0}function r(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function a(t,e,n,o){var a,s,l,p,d=null,u=e?e.name:null,c=t,m=!0,f="";return t||(m=!1,t="_@r"+(T+=1)),p=r(t),d=p[0],t=p[1],d&&(d=i(d,u,o),s=getOwn($,d)),t&&(d?f=n?t:s&&s.normalize?s.normalize(t,function(t){return i(t,u,o)}):-1===t.indexOf("!")?i(t,u,o):t:(f=i(t,u,o),p=r(f),d=p[0],f=p[1],n=!0,a=x.nameToUrl(f))),l=!d||s||n?"":"_unnormalized"+(D+=1),{prefix:d,name:f,parentMap:e,unnormalized:!!l,url:a,originalName:c,isDefine:m,id:(d?d+"!"+f:f)+l}}function s(t){var e=t.id,i=getOwn(k,e);return i||(i=k[e]=new x.Module(t)),i}function l(t,e,i){var n=t.id,o=getOwn(k,n);!hasProp($,n)||o&&!o.defineEmitComplete?(o=s(t),o.error&&"error"===e?i(o.error):o.on(e,i)):"defined"===e&&i($[n])}function p(t,e){var i=t.requireModules,n=!1;e?e(t):(each(i,function(e){var i=getOwn(k,e);i&&(i.error=t,i.events.error&&(n=!0,i.emit("error",t)))}),n||req.onError(t))}function d(){globalDefQueue.length&&(each(globalDefQueue,function(t){var e=t[0];"string"==typeof e&&(x.defQueueMap[e]=!0),U.push(t)}),globalDefQueue=[])}function u(t){delete k[t],delete j[t]}function c(t,e,i){var n=t.map.id;t.error?t.emit("error",t.error):(e[n]=!0,each(t.depMaps,function(n,o){var r=n.id,a=getOwn(k,r);!a||t.depMatched[o]||i[r]||(getOwn(e,r)?(t.defineDep(o,$[r]),t.check()):c(a,e,i))}),i[n]=!0)}function m(){var t,e,i=1e3*F.waitSeconds,r=i&&x.startTime+i<(new Date).getTime(),a=[],s=[],l=!1,d=!0;if(!g){if(g=!0,eachProp(j,function(t){var i=t.map,p=i.id;if(t.enabled&&(i.isDefine||s.push(t),!t.error))if(!t.inited&&r)o(p)?(e=!0,l=!0):(a.push(p),n(p));else if(!t.inited&&t.fetched&&i.isDefine&&(l=!0,!i.prefix))return d=!1}),r&&a.length)return t=makeError("timeout","Load timeout for modules: "+a,null,a),t.contextName=x.contextName,p(t);d&&each(s,function(t){c(t,{},{})}),r&&!e||!l||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,m()},50)),g=!1}}function f(t){hasProp($,t[0])||s(a(t[0],null,!0)).init(t[1],t[2])}function h(t,e,i,n){t.detachEvent&&!isOpera?n&&t.detachEvent(n,e):t.removeEventListener(i,e,!1)}function _(t){var e=t.currentTarget||t.srcElement;return h(e,x.onScriptLoad,"load","onreadystatechange"),h(e,x.onScriptError,"error"),{node:e,id:e&&e.getAttribute("data-requiremodule")}}function v(){var t;for(d();U.length;){if(t=U.shift(),null===t[0])return p(makeError("mismatch","Mismatched anonymous define() module: "+t[t.length-1]));f(t)}x.defQueueMap={}}var g,b,x,y,w,F={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},k={},j={},q={},U=[],$={},z={},C={},T=1,D=1;return y={require:function(t){return t.require?t.require:t.require=x.makeRequire(t.map)},exports:function(t){if(t.usingExports=!0,t.map.isDefine)return t.exports?$[t.map.id]=t.exports:t.exports=$[t.map.id]={}},module:function(t){return t.module?t.module:t.module={id:t.map.id,uri:t.map.url,config:function(){return getOwn(F.config,t.map.id)||{}},exports:t.exports||(t.exports={})}}},b=function(t){this.events=getOwn(q,t.id)||{},this.map=t,this.shim=getOwn(F.shim,t.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(t,e,i,n){n=n||{},this.inited||(this.factory=e,i?this.on("error",i):this.events.error&&(i=bind(this,function(t){this.emit("error",t)})),this.depMaps=t&&t.slice(0),this.errback=i,this.inited=!0,this.ignore=n.ignore,n.enabled||this.enabled?this.enable():this.check())},defineDep:function(t,e){this.depMatched[t]||(this.depMatched[t]=!0,this.depCount-=1,this.depExports[t]=e)},fetch:function(){if(!this.fetched){this.fetched=!0,x.startTime=(new Date).getTime();var t=this.map;if(!this.shim)return t.prefix?this.callPlugin():this.load();x.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return t.prefix?this.callPlugin():this.load()}))}},load:function(){var t=this.map.url;z[t]||(z[t]=!0,x.load(this.map.id,t))},check:function(){if(this.enabled&&!this.enabling){var t,e,i=this.map.id,n=this.depExports,o=this.exports,r=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(r)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{o=x.execCb(i,r,n,o)}catch(e){t=e}else o=x.execCb(i,r,n,o);if(this.map.isDefine&&void 0===o&&(e=this.module,e?o=e.exports:this.usingExports&&(o=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",p(this.error=t)}else o=r;if(this.exports=o,this.map.isDefine&&!this.ignore&&($[i]=o,req.onResourceLoad)){var a=[];each(this.depMaps,function(t){a.push(t.normalizedMap||t)}),req.onResourceLoad(x,this.map,a)}u(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(x.defQueueMap,i)||this.fetch()}},callPlugin:function(){var t=this.map,e=t.id,n=a(t.prefix);this.depMaps.push(n),l(n,"defined",bind(this,function(n){var o,r,d,c=getOwn(C,this.map.id),m=this.map.name,f=this.map.parentMap?this.map.parentMap.name:null,h=x.makeRequire(t.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(n.normalize&&(m=n.normalize(m,function(t){return i(t,f,!0)})||""),r=a(t.prefix+"!"+m,this.map.parentMap,!0),l(r,"defined",bind(this,function(t){this.map.normalizedMap=r,this.init([],function(){return t},null,{enabled:!0,ignore:!0})})),void((d=getOwn(k,r.id))&&(this.depMaps.push(r),this.events.error&&d.on("error",bind(this,function(t){this.emit("error",t)})),d.enable()))):c?(this.map.url=x.nameToUrl(c),void this.load()):(o=bind(this,function(t){this.init([],function(){return t},null,{enabled:!0})}),o.error=bind(this,function(t){this.inited=!0,this.error=t,t.requireModules=[e],eachProp(k,function(t){0===t.map.id.indexOf(e+"_unnormalized")&&u(t.map.id)}),p(t)}),o.fromText=bind(this,function(i,n){var r=t.name,l=a(r),d=useInteractive;n&&(i=n),d&&(useInteractive=!1),s(l),hasProp(F.config,e)&&(F.config[r]=F.config[e]);try{req.exec(i)}catch(t){return p(makeError("fromtexteval","fromText eval for "+e+" failed: "+t,t,[e]))}d&&(useInteractive=!0),this.depMaps.push(l),x.completeLoad(r),h([r],o)}),void n.load(t.name,h,o,F))})),x.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){j[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(t,e){var i,n,o;if("string"==typeof t){if(t=a(t,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[e]=t,o=getOwn(y,t.id))return void(this.depExports[e]=o(this));this.depCount+=1,l(t,"defined",bind(this,function(t){this.undefed||(this.defineDep(e,t),this.check())})),this.errback?l(t,"error",bind(this,this.errback)):this.events.error&&l(t,"error",bind(this,function(t){this.emit("error",t)}))}i=t.id,n=k[i],hasProp(y,i)||!n||n.enabled||x.enable(t,this)})),eachProp(this.pluginMaps,bind(this,function(t){var e=getOwn(k,t.id);e&&!e.enabled&&x.enable(t,this)})),this.enabling=!1,this.check()},on:function(t,e){var i=this.events[t];i||(i=this.events[t]=[]),i.push(e)},emit:function(t,e){each(this.events[t],function(t){t(e)}),"error"===t&&delete this.events[t]}},x={config:F,contextName:t,registry:k,defined:$,urlFetched:z,defQueue:U,defQueueMap:{},Module:b,makeModuleMap:a,nextTick:req.nextTick,onError:p,configure:function(t){if(t.baseUrl&&"/"!==t.baseUrl.charAt(t.baseUrl.length-1)&&(t.baseUrl+="/"),"string"==typeof t.urlArgs){var e=t.urlArgs;t.urlArgs=function(t,i){return(-1===i.indexOf("?")?"?":"&")+e}}var i=F.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(t,function(t,e){n[e]?(F[e]||(F[e]={}),mixin(F[e],t,!0,!0)):F[e]=t}),t.bundles&&eachProp(t.bundles,function(t,e){each(t,function(t){t!==e&&(C[t]=e)})}),t.shim&&(eachProp(t.shim,function(t,e){isArray(t)&&(t={deps:t}),!t.exports&&!t.init||t.exportsFn||(t.exportsFn=x.makeShimExports(t)),i[e]=t}),F.shim=i),t.packages&&each(t.packages,function(t){var e,i;t="string"==typeof t?{name:t}:t,i=t.name,e=t.location,e&&(F.paths[i]=t.location),F.pkgs[i]=t.name+"/"+(t.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(k,function(t,e){t.inited||t.map.unnormalized||(t.map=a(e,null,!0))}),(t.deps||t.callback)&&x.require(t.deps||[],t.callback)},makeShimExports:function(t){function e(){var e;return t.init&&(e=t.init.apply(global,arguments)),e||t.exports&&getGlobal(t.exports)}return e},makeRequire:function(e,o){function r(i,n,l){var d,u,c;return o.enableBuildCallback&&n&&isFunction(n)&&(n.__requireJsBuild=!0),"string"==typeof i?isFunction(n)?p(makeError("requireargs","Invalid require call"),l):e&&hasProp(y,i)?y[i](k[e.id]):req.get?req.get(x,i,e,r):(u=a(i,e,!1,!0),d=u.id,hasProp($,d)?$[d]:p(makeError("notloaded",'Module name "'+d+'" has not been loaded yet for context: '+t+(e?"":". Use require([])")))):(v(),x.nextTick(function(){v(),c=s(a(null,e)),c.skipMap=o.skipMap,c.init(i,n,l,{enabled:!0}),m()}),r)}return o=o||{},mixin(r,{isBrowser:isBrowser,toUrl:function(t){var n,o=t.lastIndexOf("."),r=t.split("/")[0],a="."===r||".."===r;return-1!==o&&(!a||o>1)&&(n=t.substring(o,t.length),t=t.substring(0,o)),x.nameToUrl(i(t,e&&e.id,!0),n,!0)},defined:function(t){return hasProp($,a(t,e,!1,!0).id)},specified:function(t){return t=a(t,e,!1,!0).id,hasProp($,t)||hasProp(k,t)}}),e||(r.undef=function(t){d();var i=a(t,e,!0),o=getOwn(k,t);o.undefed=!0,n(t),delete $[t],delete z[i.url],delete q[t],eachReverse(U,function(e,i){e[0]===t&&U.splice(i,1)}),delete x.defQueueMap[t],o&&(o.events.defined&&(q[t]=o.events),u(t))}),r},enable:function(t){getOwn(k,t.id)&&s(t).enable()},completeLoad:function(t){var e,i,n,r=getOwn(F.shim,t)||{},a=r.exports;for(d();U.length;){if(i=U.shift(),null===i[0]){if(i[0]=t,e)break;e=!0}else i[0]===t&&(e=!0);f(i)}if(x.defQueueMap={},n=getOwn(k,t),!e&&!hasProp($,t)&&n&&!n.inited){if(!(!F.enforceDefine||a&&getGlobal(a)))return o(t)?void 0:p(makeError("nodefine","No define call for "+t,null,[t]));f([t,r.deps||[],r.exportsFn])}m()},nameToUrl:function(t,e,i){var n,o,r,a,s,l,p,d=getOwn(F.pkgs,t);if(d&&(t=d),p=getOwn(C,t))return x.nameToUrl(p,e,i);if(req.jsExtRegExp.test(t))s=t+(e||"");else{for(n=F.paths,o=t.split("/"),r=o.length;r>0;r-=1)if(a=o.slice(0,r).join("/"),l=getOwn(n,a)){isArray(l)&&(l=l[0]),o.splice(0,r,l);break}s=o.join("/"),s+=e||(/^data\:|^blob\:|\?/.test(s)||i?"":".js"),s=("/"===s.charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":F.baseUrl)+s}return F.urlArgs&&!/^blob\:/.test(s)?s+F.urlArgs(t,s):s},load:function(t,e){req.load(x,t,e)},execCb:function(t,e,i,n){return e.apply(n,i)},onScriptLoad:function(t){if("load"===t.type||readyRegExp.test((t.currentTarget||t.srcElement).readyState)){interactiveScript=null;var e=_(t);x.completeLoad(e.id)}},onScriptError:function(t){var e=_(t);if(!o(e.id)){var i=[];return eachProp(k,function(t,n){0!==n.indexOf("_@r")&&each(t.depMaps,function(t){if(t.id===e.id)return i.push(n),!0})}),p(makeError("scripterror",'Script error for "'+e.id+(i.length?'", needed by: '+i.join(", "):'"'),t,[e.id]))}}},x.require=x.makeRequire(),x}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(t){if("interactive"===t.readyState)return interactiveScript=t}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.3",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(t,e,i,n){var o,r,a=defContextName;return isArray(t)||"string"==typeof t||(r=t,isArray(e)?(t=e,e=i,i=n):t=[]),r&&r.context&&(a=r.context),o=getOwn(contexts,a),o||(o=contexts[a]=req.s.newContext(a)),r&&o.configure(r),o.require(t,e,i)},req.config=function(t){return req(t)},req.nextTick=void 0!==setTimeout?function(t){setTimeout(t,4)}:function(t){t()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(t){req[t]=function(){var e=contexts[defContextName];return e.require[t].apply(e,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],(baseElement=document.getElementsByTagName("base")[0])&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(t,e,i){var n=t.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return n.type=t.scriptType||"text/javascript",n.charset="utf-8",n.async=!0,n},req.load=function(t,e,i){var n,o=t&&t.config||{};if(isBrowser)return n=req.createNode(o,e,i),n.setAttribute("data-requirecontext",t.contextName),n.setAttribute("data-requiremodule",e),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||isOpera?(n.addEventListener("load",t.onScriptLoad,!1),n.addEventListener("error",t.onScriptError,!1)):(useInteractive=!0,n.attachEvent("onreadystatechange",t.onScriptLoad)),n.src=i,o.onNodeCreated&&o.onNodeCreated(n,o,e,i),currentlyAddingScript=n,baseElement?head.insertBefore(n,baseElement):head.appendChild(n),currentlyAddingScript=null,n;if(isWebWorker)try{setTimeout(function(){},0),importScripts(i),t.completeLoad(e)}catch(n){t.onError(makeError("importscripts","importScripts failed for "+e+" at "+i,n,[e]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(t){if(head||(head=t.parentNode),dataMain=t.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(t,e,i){var n,o;"string"!=typeof t&&(i=e,e=t,t=null),isArray(e)||(i=e,e=null),!e&&isFunction(i)&&(e=[],i.length&&(i.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(t,i){e.push(i)}),e=(1===i.length?["require"]:["require","exports","module"]).concat(e))),useInteractive&&(n=currentlyAddingScript||getInteractiveScript())&&(t||(t=n.getAttribute("data-requiremodule")),o=contexts[n.getAttribute("data-requirecontext")]),o?(o.defQueue.push([t,e,i]),o.defQueueMap[t]=!0):globalDefQueue.push([t,e,i])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),formintorjs.requirejs=requirejs,formintorjs.require=require,formintorjs.define=define}}(),formintorjs.define("requireLib",function(){}),formintorjs.define("text",["module"],function(t){"use strict";var e,i,n=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],o=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,r=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,a="undefined"!=typeof location&&location.href,s=a&&location.protocol&&location.protocol.replace(/\:/,""),l=a&&location.hostname,p=a&&(location.port||void 0),d=[],u=t.config&&t.config()||{};return e={version:"2.0.3",strip:function(t){if(t){t=t.replace(o,"");var e=t.match(r);e&&(t=e[1])}else t="";return t},jsEscape:function(t){return t.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:u.createXhr||function(){var t,e,i;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(e=0;e<3;e+=1){i=n[e];try{t=new ActiveXObject(i)}catch(t){}if(t){n=[i];break}}return t},parseName:function(t){var e=!1,i=t.indexOf("."),n=t.substring(0,i),o=t.substring(i+1,t.length);return i=o.indexOf("!"),-1!==i&&(e=o.substring(i+1,o.length),e="strip"===e,o=o.substring(0,i)),{moduleName:n,ext:o,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(t,i,n,o){var r,a,s,l=e.xdRegExp.exec(t);return!l||(r=l[2],a=l[3],a=a.split(":"),s=a[1],a=a[0],!(r&&r!==i||a&&a.toLowerCase()!==n.toLowerCase()||(s||a)&&s!==o))},finishLoad:function(t,i,n,o){n=i?e.strip(n):n,u.isBuild&&(d[t]=n),o(n)},load:function(t,i,n,o){if(o.isBuild&&!o.inlineText)return void n();u.isBuild=o.isBuild;var r=e.parseName(t),d=r.moduleName+"."+r.ext,c=i.toUrl(d),m=u.useXhr||e.useXhr;!a||m(c,s,l,p)?e.get(c,function(i){e.finishLoad(t,r.strip,i,n)},function(t){n.error&&n.error(t)}):i([d],function(t){e.finishLoad(r.moduleName+"."+r.ext,r.strip,t,n)})},write:function(t,i,n,o){if(d.hasOwnProperty(i)){var r=e.jsEscape(d[i]);n.asModule(t+"!"+i,"define(function () { return '"+r+"';});\n")}},writeFile:function(t,i,n,o,r){var a=e.parseName(i),s=a.moduleName+"."+a.ext,l=n.toUrl(a.moduleName+"."+a.ext)+".js";e.load(s,n,function(i){var n=function(t){return o(l,t)};n.asModule=function(t,e){return o.asModule(t,l,e)},e.write(t,s,n,r)},r)}},"node"===u.env||!u.env&&"undefined"!=typeof process&&process.versions&&process.versions.node?(i=require.nodeRequire("fs"),e.get=function(t,e){var n=i.readFileSync(t,"utf8");0===n.indexOf("\ufeff")&&(n=n.substring(1)),e(n)}):"xhr"===u.env||!u.env&&e.createXhr()?e.get=function(t,i,n){var o=e.createXhr();o.open("GET",t,!0),u.onXhr&&u.onXhr(o,t),o.onreadystatechange=function(e){var r,a;4===o.readyState&&(r=o.status,r>399&&r<600?(a=new Error(t+" HTTP status: "+r),a.xhr=o,n(a)):i(o.responseText))},o.send(null)}:("rhino"===u.env||!u.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java)&&(e.get=function(t,e){var i,n,o=new java.io.File(t),r=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),"utf-8")),s="";try{for(i=new java.lang.StringBuffer,n=a.readLine(),n&&n.length()&&65279===n.charAt(0)&&(n=n.substring(1)),i.append(n);null!==(n=a.readLine());)i.append(r),i.append(n);s=String(i.toString())}finally{a.close()}e(s)}),e}),formintorjs.define("text!admin/templates/popups.html",[],function(){return'<div>\r\n\r\n\t<script type="text/template" id="popup-integration-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc="{{ image }}"\r\n\t\t\t\t\tsrcset="{{ image }} 1x, {{ image_x2 }} 2x"\r\n\t\t\t\t\talt="{{ title }}"\r\n\t\t\t\t/>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="sui-box-content integration-header"></div>\r\n\r\n\t\t\t<button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-new-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-tpl">\r\n\r\n\t\t<div class="sui-dialog" id="forminator-popup" aria-hidden="true">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-header-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-loader-tpl">\r\n\r\n\t\t<p class="fui-loading-dialog" aria-label="Loading content">\r\n\r\n\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\r\n\t\t</p>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-stripe-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img src="{{ image }}"\r\n\t\t\t\t srcset="{{ image }} 1x, {{ image_x2 }} 2x" alt="{{ title }}" />\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle2" style="display: none;">{{ title }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-block-content-center sui-box-body-slim"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'}),function(t){window.empty=function(t){return void 0===t||!t},window.count=function(t){return void 0===t?0:t&&t.length?t.length:0},window.stripslashes=function(t){return(t+"").replace(/\\(.?)/g,function(t,e){switch(e){case"\\":return"\\";case"0":return"\0";case"":return"";default:return e}})},window.forminator_array_value_exists=function(t,e){return!_.isUndefined(t[e])&&!_.isEmpty(t[e])},window.decodeHtmlEntity=function(t){return void 0===t?t:t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})},window.encodeHtmlEntity=function(t){if(void 0===t)return t;for(var e=[],i=t.length-1;i>=0;i--)e.unshift(["&#",t[i].charCodeAt(),";"].join(""));return e.join("")},formintorjs.define("admin/utils",["text!admin/templates/popups.html"],function(e){var i={fields_ids:[],google_font_families:[],is_touch:function(){return Forminator.Data.is_touch},is_mobile_size:function(){return window.screen.width<=782},is_mobile:function(){return!(!Forminator.Utils.is_touch()&&!Forminator.Utils.is_mobile_size())},template:function(t){return _.templateSettings={evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g},_.template(t)},template_php:function(t){var e=_.templateSettings,i=!1;return _.templateSettings={interpolate:/<\?php echo (.+?) \?>/g,evaluate:/<\?php (.+?) \?>/g},i=_.template(t),_.templateSettings=e,function(t){return _.each(t,function(e,i){t["$"+i]=e}),i(t)}},ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},get_slug:function(t){return t=t.replace(" ","-"),t=t.replace(/[^-a-zA-Z0-9]/,"")},sanitize_uri_string:function(t){var e=decodeURIComponent(t);return e=e.replace(/-/g," ")},get_url_param:function(t){for(var e=window.location.search.substring(1),i=e.split("&"),n=0;n<i.length;n++){var o=i[n].split("=");if(o[0]===t)return o[1]}return!1},is_email_wp:function(t){if(t.length<6)return!1;if(t.indexOf("@",1)<0)return!1;var e=t.split("@",2);if(!e[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(e[1].match(/\.{2,}/))return!1;var i=e[1],n=i.split(".");if(n.length<2)return!1;for(var o=n.length,r=0;r<o;r++)if(!n[r].match(/^[a-z0-9-]+$/i))return!1;return!0},forminator_select2_tags:function(e,i){i=_.defaults(i,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){t(this).attr("data-reorder")&&t(this).on("select2:select",function(e){var i=e.params.data.element,n=t(i),o=t(this);o.append(n),o.trigger("change.select2")}),t(this).SUIselect2(i)})},forminator_select2_custom:function(e,i){i=_.defaults(i,{dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.custom-select2").each(function(){t(this).attr("data-reorder")&&t(this).on("select2:select",function(e){var i=e.params.data.element,n=t(i),o=t(this);o.append(n),o.trigger("change.select2")}),t(this).SUIselect2(i)})},init_select2:function(){window.SUI},load_google_fonts:function(e){var i=this;t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_google_fonts",_wpnonce:Forminator.Data.gFontNonce}}).done(function(t){!0===t.success&&(i.google_font_families=t.data),e.apply(t,[i.google_font_families])})},sui_delegate_events:function(){"object"==typeof window.SUI&&setTimeout(function(){SUI.suiAccordion(t(".sui-accordion")),SUI.suiTabs(t(".sui-tabs")),t("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(t(this))}),t("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){t(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(t(".sui-circle-score")),SUI.showHidePassword()},50)}},n={$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-tpl").html());t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({})),this.$popup=t("#forminator-popup")},open:function(i,n,o){this.data=n,this.title="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0;var r=Forminator.Utils.template(t(e).find("#popup-header-tpl").html());_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.has_footer)||(this.has_footer=this.data.has_footer),_.isUndefined(this.data.action_callback)||_.isUndefined(this.data.action_text)||(this.action_callback=this.data.action_callback,this.action_text=this.data.action_text,_.isUndefined(this.data.action_css_class)||(this.action_css_class=this.data.action_css_class)),_.isUndefined(this.data.has_custom_box)||(this.has_custom_box=this.data.has_custom_box)),this.initialize(),this.$popup.find(".sui-box").html(r({title:this.title}));var a=this,s=function(){return a.close(),!1};if(o&&this.$popup.addClass(o),this.has_custom_box)i.apply(this.$popup.find(".sui-box").get(),n);else{var l='<div class="sui-box-body"></div>';this.has_footer&&(l+='<div class="sui-box-footer"><button class="sui-button forminator-popup-cancel" data-a11y-dialog-hide="forminator-popup">'+Forminator.l10n.popup.cancel+"</button></div>"),this.$popup.find(".sui-box").append(l),i.apply(this.$popup.find(".sui-box-body").get(),n)}if(this.action_text&&this.action_callback){var p=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){p&&p.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.find(".sui-dialog-overlay").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},o={$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-new-tpl").html())
|
13 |
+
;t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({})),this.$popup=t("#forminator-popup")},open:function(e,i,n){this.data=i,this.title="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,this.initialize(),e.apply(this.$popup.find(".sui-box").get(),i);var o=this,r=function(){return o.close(),!1};return this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},r={$notification:{},_deferred:{},initialize:function(){t("#forminator-notification").length?(t("#forminator-notification").remove(),this.initialize()):t("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=t("#forminator-notification")},open:function(e,i,n){var o=this;return this.type=e||"notice",this.text=i,this.initialize(),t(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),o.close(),!1}),_.isUndefined(n)||setTimeout(function(){o.close()},n),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e){var i=t("#forminator-notification");i.stop().slideUp("slow"),this._deferred.resolve(i,e)}};return{Utils:i,Popup:n,New_Popup:o,Integrations_Popup:{$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-integration-tpl").html());t("#forminator-integration-popup").length?(t("#forminator-integration-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-integration-popup")},open:function(i,n,o){this.data=n,this.title="",this.image="",this.image_x2="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.image)||(this.image=this.data.image),_.isUndefined(this.data.image_x2)||(this.image_x2=this.data.image_x2)),this.initialize();var r=Forminator.Utils.template(t(e).find("#popup-integration-content-tpl").html());this.$popup.find(".sui-box").html(r({image:this.image,image_x2:this.image_x2,title:this.title}));var a=this,s=function(){return a.close(),!1};if(o&&this.$popup.addClass(o),i.apply(this.$popup.get(),n),this.action_text&&this.action_callback){var l=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){l&&l.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.find(".sui-dialog-overlay").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),t("body").css("overflow","hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-integration-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),t("body").css("overflow","auto"),Forminator.Events.trigger("forminator:addons:reload"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},Stripe_Popup:{$popup:{},_deferred:{},initialize:function(){var i=Forminator.Utils.template(t(e).find("#popup-stripe-tpl").html());t("#forminator-stripe-popup").length?(t("#forminator-stripe-popup").remove(),this.initialize()):t("main.sui-wrap").append(i({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-stripe-popup")},open:function(i,n,o){this.data=n,this.title="",this.image="",this.image_x2="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.image)||(this.image=this.data.image),_.isUndefined(this.data.image_x2)||(this.image_x2=this.data.image_x2)),this.initialize();var r=Forminator.Utils.template(t(e).find("#popup-stripe-content-tpl").html());this.$popup.find(".sui-box").html(r({image:this.image,image_x2:this.image_x2,title:this.title})),this.$popup.find(".sui-box-footer").css({"padding-top":"0"});var a=this,s=function(){return a.close(),!1};if(o&&this.$popup.addClass(o),i.apply(this.$popup.get(),n),this.action_text&&this.action_callback){var l=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){l&&l.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.find(".sui-dialog-overlay").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),t("body").css("overflow","hidden"),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(e,i){var n=t("#forminator-stripe-popup");n.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),n.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),t("body").css("overflow","auto"),setTimeout(function(){n.attr("aria-hidden","true"),i&&i.apply()},300),this._deferred.resolve(this.$popup,e)}},Notification:r}})}(jQuery),function(t){formintorjs.define("admin/dashboard",[],function(e){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var e=Forminator.Utils.get_url_param("notification"),i=Forminator.Utils.get_url_param("title"),n=Forminator.Utils.get_url_param("createnew");if(setTimeout(function(){t(".forminator-scroll-to").length&&t("html, body").animate({scrollTop:t(".forminator-scroll-to").offset().top},"slow")},100),e){var o=_.template("<strong>{{ formName }}</strong> {{ Forminator.l10n.options.been_published }}");Forminator.Notification.open("success",o({formName:Forminator.Utils.sanitize_uri_string(i)}),4e3)}return n&&setTimeout(function(){jQuery(".forminator-create-"+n).click()},200),this.render()},dismiss_welcome:function(e){e.preventDefault();var i=t(e.target).closest(".sui-box"),n=t(e.target).data("nonce");i.slideToggle(300,function(){t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_dismiss_welcome",_ajax_nonce:n},complete:function(t){i.remove()}})})},render:function(){setTimeout(function(){void 0!==SUI.dialogs&&void 0!==SUI.dialogs["forminator-new-feature"]&&SUI.dialogs["forminator-new-feature"].show()},1e3)}}))})}(jQuery),function(t){formintorjs.define("admin/settings-page",[],function(){var e=Backbone.View.extend({el:".wpmudev-forminator-forminator-settings",events:{"click .sui-side-tabs label.sui-tab-item input":"sidetabs","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select","click .stripe-connect-modal":"open_stripe_connect_modal","click .paypal-connect-modal":"open_paypal_connect_modal","click .forminator-stripe-connect":"connect_stripe","click .disconnect_stripe":"disconnect_stripe","click .forminator-paypal-connect":"connect_paypal","click .disconnect_paypal":"disconnect_paypal","click button.sui-tab-item":"buttonTabs","click .forminator-toggle-unsupported-settings":"show_unsupported_settings","click .forminator-dismiss-unsupported":"hide_unsupported_settings"},initialize:function(){var e=this;if(t(".wpmudev-forminator-forminator-settings").length){this.$el.find(".forminator-settings-save").submit(function(i){i.preventDefault();var n=t(this),o=n.find(".wpmudev-action-done").data("nonce"),r=n.find(".wpmudev-action-done").data("action"),a=n.find(".wpmudev-action-done").data("title"),s=n.find(".wpmudev-action-done").data("isReload");e.submitForm(t(this),r,o,a,s)});var i=window.location.hash;_.isUndefined(i)||_.isEmpty(i)||this.sidenav_go_to(i.substring(1),!0),this.render("v2"),this.render("v2-invisible"),this.render("v3")}},render:function(e){var i=this.$el.find("#"+e+"-recaptcha-preview");i.html('<p class="fui-loading-dialog"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_recaptcha_preview",captcha:e}}).done(function(t){t.success&&i.html(t.data)})},submitForm:function(e,i,n,o,r){var a={},s=this;a.action="forminator_save_"+i+"_popup",a._ajax_nonce=n;var l=e.serialize()+"&"+t.param(a);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:l,beforeSend:function(){e.find(".sui-button").addClass("sui-button-onload")},success:function(t){var e=_.template("<strong>{{ tab }}</strong> {{ Forminator.l10n.commons.update_successfully }}");Forminator.Notification.open("success",e({tab:o}),4e3),"captcha"===i&&(s.render("v2"),s.render("v2-invisible"),s.render("v3")),r&&window.location.reload()},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.update_unsuccessfull,4e3)}}).always(function(){e.find(".sui-button").removeClass("sui-button-onload")})},sidetabs:function(t){var e=this.$(t.target),i=e.parent("label"),n=e.data("tab-menu"),o=e.closest(".sui-side-tabs"),r=o.find(".sui-tabs-menu .sui-tab-item"),a=r.find("input");e.is("input")&&(r.removeClass("active"),a.removeAttr("checked"),o.find(".sui-tabs-content > div").removeClass("active"),i.addClass("active"),e.prop("checked","checked"),o.find('.sui-tabs-content div[data-tab-content="'+n+'"]').length&&o.find('.sui-tabs-content div[data-tab-content="'+n+'"]').addClass("active"))},sidenav:function(e){var i=t(e.target).data("nav");i&&this.sidenav_go_to(i,!0),e.preventDefault()},sidenav_select:function(e){var i=t(e.target).val();i&&this.sidenav_go_to(i,!0),e.preventDefault()},sidenav_go_to:function(t,e){var i=this.$el.find('a[data-nav="'+t+'"]'),n=i.closest(".sui-vertical-tabs"),o=n.find(".sui-vertical-tab"),r=this.$el.find(".sui-box[data-nav]"),a=this.$el.find('.sui-box[data-nav="'+t+'"]');e&&history.pushState({selected_tab:t},"Global Settings","admin.php?page=forminator-settings§ion="+t),o.removeClass("current"),r.hide(),i.parent().addClass("current"),a.show()},open_stripe_connect_modal:function(e){e.preventDefault();var i=this,n=t(e.target),o=n.data("modalImage"),r=n.data("modalImageX2"),a=n.data("modalTitle"),s=n.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var e=t(this);i.render_stripe_connect_modal_content(e,"small",s,{})},{title:a,image:o,image_x2:r}),!1},render_stripe_connect_modal_content:function(e,i,n,o){var r=this;o.action="forminator_stripe_settings_modal",o._ajax_nonce=n,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:o}).done(function(o){if(o&&o.success){e.find(".sui-box-header h3.sui-box-title").show(),e.find(".sui-box-body").html(o.data.html);var a=o.data.buttons;if(e.find(".sui-box-footer").html(""),_.each(a,function(t){e.find(".sui-box-footer").append(t.markup)}),e.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(i)){var s=t("#forminator-stripe-popup");"normal"===i&&s.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===i&&(s.addClass("sui-dialog-sm"),s.removeClass("sui-dialog-lg")),"large"===i&&(s.addClass("sui-dialog-lg"),s.removeClass("sui-dialog-sm"))}_.isUndefined(o.data.notification)||_.isUndefined(o.data.notification.type)||_.isUndefined(o.data.notification.text)||_.isUndefined(o.data.notification.duration)||(Forminator.Notification.open(o.data.notification.type,o.data.notification.text,o.data.notification.duration).done(function(){}),r.update_stripe_page(n))}})},update_stripe_page:function(e){var i={action:"forminator_stripe_update_page",_ajax_nonce:e};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-stripe").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},show_unsupported_settings:function(e){e.preventDefault(),t(".forminator-unsupported-settings").show()},hide_unsupported_settings:function(e){e.preventDefault(),t(".forminator-unsupported-settings").hide()},connect_stripe:function(e){e.preventDefault();var i=t(e.target);i.addClass("sui-button-onload");var n=i.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),r=o.find("form"),a=r.serializeArray(),s={};return t.map(a,function(t,e){s[t.name]=t.value}),s.connect=!0,this.render_stripe_connect_modal_content(o,"small",n,s),!1},buttonTabs:function(t){var e=this.$(t.target),i=e.closest(".sui-tabs"),n=i.find(".sui-tabs-menu .sui-tab-item"),o=i.find(".sui-tabs-content .sui-tab-content");e.is("button")&&(n.removeClass("active"),n.attr("tabindex","-1"),o.attr("hidden",!0),o.removeClass("active"),e.removeAttr("tabindex"),e.addClass("active"),i.find("#"+e.attr("aria-controls")).addClass("active"),i.find("#"+e.attr("aria-controls")).attr("hidden",!1),i.find("#"+e.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},open_paypal_connect_modal:function(e){e.preventDefault();var i=this,n=t(e.target),o=n.data("modalImage"),r=n.data("modalImageX2"),a=n.data("modalTitle"),s=n.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var e=t(this);i.render_paypal_connect_modal_content(e,"small",s,{})},{title:a,image:o,image_x2:r}),!1},render_paypal_connect_modal_content:function(e,i,n,o){var r=this;o.action="forminator_paypal_settings_modal",o._ajax_nonce=n,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:o}).done(function(o){if(o&&o.success){e.find(".sui-box-header h3.sui-box-title").show(),e.find(".sui-box-body").html(o.data.html);var a=o.data.buttons;if(e.find(".sui-box-footer").html(""),_.each(a,function(t){e.find(".sui-box-footer").append(t.markup)}),e.find(".sui-button").removeClass("sui-button-onload"),!_.isUndefined(i)){var s=t("#forminator-paypal-popup");"normal"===i&&s.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===i&&(s.addClass("sui-dialog-sm"),s.removeClass("sui-dialog-lg")),"large"===i&&(s.addClass("sui-dialog-lg"),s.removeClass("sui-dialog-sm"))}_.isUndefined(o.data.notification)||_.isUndefined(o.data.notification.type)||_.isUndefined(o.data.notification.text)||_.isUndefined(o.data.notification.duration)||(Forminator.Notification.open(o.data.notification.type,o.data.notification.text,o.data.notification.duration).done(function(){}),r.update_paypal_page(n))}})},update_paypal_page:function(e){var i={action:"forminator_paypal_update_page",_ajax_nonce:e};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-paypal").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},connect_paypal:function(e){e.preventDefault();var i=t(e.target);i.addClass("sui-button-onload");var n=i.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),r=o.find("form"),a=r.serializeArray(),s={};return t.map(a,function(t,e){s[t.name]=t.value}),s.connect=!0,this.render_paypal_connect_modal_content(o,"small",n,s),!1},disconnect_stripe:function(e){var i=t(e.target),n={action:"forminator_disconnect_stripe",_ajax_nonce:i.data("nonce")};i.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-stripe").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})},disconnect_paypal:function(e){var i=t(e.target),n={action:"forminator_disconnect_paypal",_ajax_nonce:i.data("nonce")};i.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-paypal").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})}}),e=new e;return e})}(jQuery);var forminator_render_admin_captcha=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n})},100)},forminator_render_admin_captcha_v2=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n})},100)},forminator_render_admin_captcha_v2_invisible=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2-invisible"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n,badge:"inline"})},100)},forminator_render_admin_captcha_v3=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v3"),e=t.data("sitekey"),i=t.data("theme"),n=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:i,size:n,badge:"inline"})},100)};formintorjs.define("text!tpl/dashboard.html",[],function(){
|
14 |
return'<div>\r\n\r\n\t<script type="text/template" id="forminator-new-form-content-tpl">\r\n\t\t<p><small>{{ Forminator.l10n.popup.new_form_desc2 }}</small></p>\r\n\t\t<div class="sui-notice" id="forminator-template-register-notice" style="display: none;">\r\n\t\t\t<p>{{ Forminator.l10n.popup.registration_notice }}</p>\r\n\t\t</div>\r\n\t\t<div class="sui-notice" id="forminator-template-login-notice" style="display: none;">\r\n\t\t\t<p>{{ Forminator.l10n.popup.login_notice }}</p>\r\n\t\t</div>\r\n\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-form-name" class="sui-screen-reader-text">{{ Forminator.l10n.popup.input_label }}</label>\r\n\t\t\t<input type="text"\r\n\t\t\t id="forminator-form-name"\r\n\t\t\t class="sui-form-control fui-required"\r\n\t\t\t placeholder="{{Forminator.l10n.popup.new_form_placeholder}}" autofocus>\r\n\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.form_name_validation}}</span>\r\n\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-poll-content-tpl">\r\n\t\t<p><small>{{ Forminator.l10n.popup.new_poll_desc2 }}</small></p>\r\n\r\n\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-form-name" class="sui-screen-reader-text">{{ Forminator.l10n.popup.input_label }}</label>\r\n\t\t\t<input type="text"\r\n\t\t\t id="forminator-form-name"\r\n\t\t\t class="sui-form-control fui-required"\r\n\t\t\t placeholder="{{Forminator.l10n.popup.new_poll_placeholder}}" autofocus>\r\n\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.poll_name_validation}}</span>\r\n\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-quiz-content-tpl">\r\n\r\n\t\t<p><small>{{ Forminator.l10n.popup.new_quiz_desc2 }}\r\n\t\t\t{[ if( Forminator.Data.showDocLink ) { ]}\r\n\t\t\t<a href="https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/?utm_source=forminator&utm_medium=plugin&utm_campaign=capture_leads_learnmore_link#leads" target="_blank">\r\n\t\t\t\t{{ Forminator.l10n.popup.learn_more }}\r\n\t\t\t</a>\r\n\t\t\t{[ } ]}\r\n\t\t</small></p>\r\n\r\n\t\t<div class="sui-form-field" style="margin-bottom: 0;">\r\n\r\n\t\t\t<label for="forminator-new-quiz-leads" class="sui-toggle fui-highlighted-toggle">\r\n\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\tid="forminator-new-quiz-leads"\r\n\t\t\t\t\taria-labelledby="forminator-new-quiz-leads-label"\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t<span class="sui-toggle-slider" aria-hidden="true"></span>\r\n\r\n\t\t\t\t<span id="forminator-new-quiz-leads-label" class="sui-toggle-label">{{ Forminator.l10n.quiz.quiz_leads_toggle }}</span>\r\n\r\n\t\t\t</label>\r\n\r\n\t\t\t<div id="sui-quiz-leads-description" class="sui-notice sui-notice-info" style="display: none; margin-top: 30px;">\r\n\t\t\t\t<p>{{ Forminator.l10n.quiz.quiz_leads_desc }}</p>\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-form-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.popup.enter_name }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-cancel-create-form" data-a11y-dialog-hide aria-label="Close this dialog window"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-box-body-slim sui-block-content-center">\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-right" style="padding-top: 0;">\r\n\r\n\t\t\t<button id="forminator-build-your-form" class="sui-button sui-button-blue">\r\n\t\t\t\t<span class="sui-loading-text"><i class="sui-icon-plus" aria-hidden="true"></i> {{Forminator.l10n.popup.create}}</span>\r\n\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-new-quiz-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.quiz.collect_leads }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-cancel-create-form" data-a11y-dialog-hide aria-label="Close this dialog window"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-box-body-slim sui-block-content-center">\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-right" style="padding-top: 0;">\r\n\r\n\t\t\t<button id="forminator-build-your-form" class="sui-button sui-button-blue">\r\n\t\t\t\t<span class="sui-loading-text"><i class="sui-icon-plus" aria-hidden="true"></i> {{ Forminator.l10n.quiz.create_quiz }}</span>\r\n\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-login-popup-tpl">\r\n\r\n <div class="wpmudev-row">\r\n\r\n <div class="wpmudev-col col-12 col-sm-6">\r\n\r\n <a class="wpmudev-popup--logreg" href="{{ loginUrl }}">\r\n\r\n <div class="wpmudev-logreg--header">\r\n\r\n <span class="wpdui-icon wpdui-icon-key"></span>\r\n\r\n <h3 class="wpmudev-logreg--title">{{ Forminator.l10n.login.login_label }}</h3>\r\n\r\n </div>\r\n\r\n <div class="wpmudev-logreg--section">\r\n\r\n <p class="wpmudev-logreg--description">{{ Forminator.l10n.login.login_description }}</p>\r\n\r\n <div class="wpmudev-logreg--image">\r\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\r\n width="110" height="140" viewBox="0 0 110 140" preserveAspectRatio="none"\r\n class="wpmudev-svg-login">\r\n <defs>\r\n <path id="b" d="M0 40h100v94H0z"/>\r\n <filter id="a" width="116%" height="117%" x="-8%" y="-7.4%"\r\n filterUnits="objectBoundingBox">\r\n <feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"/>\r\n <feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1"\r\n stdDeviation="2.5"/>\r\n <feColorMatrix in="shadowBlurOuter1"\r\n values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>\r\n </filter>\r\n <path id="c" d="M10 112h6v6h-6z"/>\r\n <path id="d" d="M10 90h80v15H10z"/>\r\n <path id="e" d="M10 60h80v15H10z"/>\r\n </defs>\r\n <g fill="none" fill-rule="evenodd" transform="translate(5)">\r\n <use fill="#000" filter="url(#a)" xlink:href="#b"/>\r\n <use fill="#FFF" xlink:href="#b"/>\r\n <rect width="22" height="12" x="68" y="112" fill="#0472AC" rx="3"/>\r\n <path fill="#808285" d="M19 114h26v2H19z"/>\r\n <use fill="#FBFBFB" xlink:href="#c"/>\r\n <path stroke="#E1E1E1" d="M10.5 112.5h5v5h-5z"/>\r\n <use fill="#FBFBFB" xlink:href="#d"/>\r\n <path stroke="#E1E1E1" d="M10.5 90.5h79v14h-79z"/>\r\n <path fill="#808285" d="M10 85h26v2H10z"/>\r\n <use fill="#FBFBFB" xlink:href="#e"/>\r\n <path stroke="#E1E1E1" d="M10.5 60.5h79v14h-79z"/>\r\n <path fill="#808285" d="M10 55h50v2H10z"/>\r\n <circle cx="50" cy="15" r="15" fill="#0272AC"/>\r\n </g>\r\n </svg>\r\n </div>\r\n\r\n </div>\r\n\r\n </a>\r\n\r\n </div>\r\n\r\n <div class="wpmudev-col col-12 col-sm-6">\r\n\r\n <a class="wpmudev-popup--logreg" href="{{ registerUrl }}">\r\n\r\n <div class="wpmudev-logreg--header">\r\n\r\n <span class="wpdui-icon wpdui-icon-profile-female"></span>\r\n\r\n <h3 class="wpmudev-logreg--title">{{ Forminator.l10n.login.registration_label }}</h3>\r\n\r\n </div>\r\n\r\n <div class="wpmudev-logreg--section">\r\n\r\n <p class="wpmudev-logreg--description">{{ Forminator.l10n.login.registration_description }}</p>\r\n\r\n <div class="wpmudev-logreg--image">\r\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\r\n width="183" height="97" viewBox="0 0 183 97" preserveAspectRatio="none"\r\n class="wpmudev-svg-registration">\r\n <defs>\r\n <path id="a" d="M0 58h183v15H0z"/>\r\n <path id="b" d="M0 23h183v15H0z"/>\r\n </defs>\r\n <g fill="none" fill-rule="evenodd">\r\n <rect width="50" height="14" y="83" fill="#353535" rx="3"/>\r\n <path fill="#FBFBFB" stroke="#E1E1E1" d="M.5 58.5h182v14H.5z"/>\r\n <path fill="#808285" d="M0 51h40v2H0z"/>\r\n <path fill="#FBFBFB" stroke="#E1E1E1" d="M.5 23.5h182v14H.5z"/>\r\n <path fill="#808285" d="M0 16h40v2H0z"/>\r\n <path fill="#353535" d="M0 0h120v6H0z"/>\r\n </g>\r\n </svg>\r\n </div>\r\n\r\n </div>\r\n\r\n </a>\r\n\r\n </div>\r\n\r\n </div>\r\n <\/script>\r\n\r\n\t<script type="text/template" id="forminator-quizzes-popup-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.quiz.choose_quiz_title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body" style="padding-top: 10px; padding-bottom: 5px;">\r\n\r\n\t\t\t<p class="sui-description sui-block-content-center">{{ Forminator.l10n.quiz.choose_quiz_description }}</p>\r\n\r\n\t\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t\t<label for="forminator-form-name" class="sui-label">{{ Forminator.l10n.quiz.quiz_name }}</label>\r\n\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="text"\r\n\t\t\t\t\tid="forminator-form-name"\r\n\t\t\t\t\tclass="sui-form-control"\r\n\t\t\t\t\tplaceholder="{{Forminator.l10n.popup.new_quiz_placeholder}}"\r\n\t\t\t\t\tautofocus\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t<div id="sui-quiz-name-error" class="sui-notice sui-notice-error forminator-validate-answers" style="display: none;">\r\n\t\t\t\t\t <p>{{Forminator.l10n.popup.quiz_name_validation}}</p>\r\n\t\t\t\t </div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<label class="sui-label">{{ Forminator.l10n.quiz.quiz_type }}</label>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t<li><label for="forminator-new-quiz--knowledge" class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-new-quiz"\r\n\t\t\t\t\t\tid="forminator-new-quiz--knowledge"\r\n\t\t\t\t\t\tclass="forminator-new-quiz-type"\r\n\t\t\t\t\t\tvalue="knowledge"\r\n\t\t\t\t\t\tchecked="checked"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<i class="sui-icon-academy" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.knowledge_label }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span>{{ Forminator.l10n.quiz.knowledge_description }}</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t\t<li><label for="forminator-new-quiz--nowrong" class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-new-quiz"\r\n\t\t\t\t\t\tid="forminator-new-quiz--nowrong"\r\n\t\t\t\t\t\tclass="forminator-new-quiz-type"\r\n\t\t\t\t\t\tvalue="nowrong"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<i class="sui-icon-community-people" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.nowrong_label }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span>{{ Forminator.l10n.quiz.nowrong_description }}</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-template">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-form-popup-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ Forminator.l10n.form.form_template_title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-block-content-center" style="padding-top: 10px;">\r\n\r\n\t\t\t<p class="sui-description">{{ Forminator.l10n.form.form_template_description }}</p>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors sui-box-selectors-col-2">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t{[ _.each(templates, function(template){ ]}\r\n\r\n\t\t\t\t\t{[ if( template.options.id !== \'leads\' ) { ]}\r\n\r\n\t\t\t\t\t\t<li>\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-new-quiz--{{ template.options.id }}" class="sui-box-selector">\r\n\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\t\tname="forminator-form-template"\r\n\t\t\t\t\t\t\t\t\t\tid="forminator-new-quiz--{{ template.options.id }}"\r\n\t\t\t\t\t\t\t\t\t\tclass="forminator-new-form-type"\r\n\t\t\t\t\t\t\t\t\t\tvalue="{{ template.options.id }}"\r\n\t\t\t\t\t\t\t\t\t\t{[ if( template.options.id === \'blank\' ) { ]}\r\n\t\t\t\t\t\t\t\t\t\tchecked="checked"\r\n\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t<i class="sui-icon-{{template.options.icon}}" aria-hidden="true"></i>\r\n\t\t\t\t\t\t\t\t\t{{ template.options.name }}\r\n\t\t\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t{[ }); ]}\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-template">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t{[ if( Forminator.Data.showBranding ) { ]}\r\n\t\t<img src="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png"\r\n\t\t srcset="{{ Forminator.Data.imagesUrl }}/forminator-create-modal.png 1x, {{ Forminator.Data.imagesUrl }}/forminator-create-modal@2x.png 2x"\r\n\t\t class="sui-image sui-image-center"\r\n\t\t aria-hidden="true"\r\n\t\t alt="Forminator">\r\n\t\t{[ } ]}\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-exports-schedule-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\r\n\t\t\t<div class="sui-box-settings-row">\r\n\r\n\t\t\t\t<div class="sui-box-settings-col-2">\r\n\r\n\t\t\t\t\t<span class="sui-settings-label sui-dark">{{ Forminator.l10n.popup.manual_exports }}</span>\r\n\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.manual_description }}</span>\r\n\r\n\t\t\t\t\t<form method="post" style="margin-top: 10px;">\r\n\r\n\t\t\t\t\t\t<input type="hidden" name="forminator_export" value="1" />\r\n\t\t\t\t\t\t<input type="hidden" name="form_id" value="{{ Forminator.l10n.exporter.form_id }}" />\r\n\t\t\t\t\t\t<input type="hidden" name="form_type" value="{{ Forminator.l10n.exporter.form_type }}" />\r\n\t\t\t\t\t\t<input type="hidden" name="_forminator_nonce" value="{{ Forminator.l10n.exporter.export_nonce }}" />\r\n\r\n\t\t\t\t\t\t<button class="sui-button sui-button-ghost">{{ Forminator.l10n.popup.download_csv }}</button>\r\n\r\n\t\t\t\t\t\t{[ if( \'cform\' === Forminator.l10n.exporter.form_type || \'quiz\' === Forminator.l10n.exporter.form_type ) { ]}\r\n\t\t\t\t\t\t\t<label for="apply-submission-filter" class="sui-checkbox sui-checkbox-sm sui-checkbox-stacked" style="margin-top: 20px;">\r\n\t\t\t\t\t\t\t\t<input type="checkbox" name="submission-filter" id="apply-submission-filter" value="yes" />\r\n\t\t\t\t\t\t\t\t<span aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t<span>{{ Forminator.l10n.popup.apply_submission_filter }}</span>\r\n\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t\t</form>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<form method="post" class="sui-box-settings-row schedule-action">\r\n\r\n\t\t\t\t<div class="sui-box-settings-col-2">\r\n\r\n\t\t\t\t\t<span class="sui-settings-label sui-dark">{{ Forminator.l10n.popup.scheduled_exports }}</span>\r\n\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.scheduled_description }}</span>\r\n\r\n\t\t\t\t\t<div class="sui-side-tabs" style="margin-top: 10px;">\r\n\r\n\t\t\t\t\t\t<div class="sui-tabs-menu tab-labels">\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-disable-scheduled-exports" class="sui-tab-item tab-label-disable">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\tname="enabled"\r\n\t\t\t\t\t\t\t\t\tvalue="false"\r\n\t\t\t\t\t\t\t\t\tid="forminator-disable-scheduled-exports"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.disable }}\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-enable-scheduled-exports" class="sui-tab-item tab-label-enable">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\tname="enabled"\r\n\t\t\t\t\t\t\t\t\tvalue="true"\r\n\t\t\t\t\t\t\t\t\tid="forminator-enable-scheduled-exports"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.enable }}\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<div class="sui-tabs-content schedule-enabled">\r\n\r\n\t\t\t\t\t\t\t<div id="forminator-export-schedule-timeframe" class="sui-tab-content sui-tab-boxed active">\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-row">\r\n\r\n\t\t\t\t\t\t\t\t\t<div class="sui-col-md-6">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.frequency }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<select name="interval" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="daily">{{ Forminator.l10n.popup.daily }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="weekly">{{ Forminator.l10n.popup.weekly }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="monthly">{{ Forminator.l10n.popup.monthly }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class="sui-col-md-6">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.day_time }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<select name="hour" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="00:00">12:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="01:00">01:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="02:00">02:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="03:00">03:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="04:00">04:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="05:00">05:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="06:00">06:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="07:00">07:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="08:00">08:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="09:00">09:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="10:00">10:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="11:00">11:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="12:00">12:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="13:00">01:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="14:00">02:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="15:00">03:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="16:00">04:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="17:00">05:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="18:00">06:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="19:00">07:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="20:00">08:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="21:00">09:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="22:00">10:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="23:00">11:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.week_day }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="day" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t<option value="mon">{{ Forminator.l10n.popup.monday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="tue">{{ Forminator.l10n.popup.tuesday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="wed">{{ Forminator.l10n.popup.wednesday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="thu">{{ Forminator.l10n.popup.thursday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="fri">{{ Forminator.l10n.popup.friday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="sat">{{ Forminator.l10n.popup.saturday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="sun">{{ Forminator.l10n.popup.sunday }}</option>\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.day_month }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="month_day" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t<option value="1">1</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="2">2</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="3">3</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="4">4</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="5">5</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="6">6</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="7">7</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="8">8</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="9">9</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="10">10</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="11">11</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="12">12</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="13">13</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="14">14</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="15">15</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="16">16</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="17">17</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="18">18</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="19">19</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="20">20</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="21">21</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="22">22</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="23">23</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="24">24</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="25">25</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="26">26</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="27">27</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="28">28</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="29">29</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="30">30</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="31">31</option>\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div id="forminator-export-schedule-email" class="sui-form-field" style="margin-bottom: 20px;">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.email_to }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="email[]" class="sui-select fui-multi-select wpmudev-select" multiple="multiple">\r\n\t\t\t\t\t\t\t\t\t\t{[ _.each( Forminator.l10n.exporter.email, function ( email ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t<option value="{{ email }}" selected="selected">{{ email }}</option>\r\n\t\t\t\t\t\t\t\t\t\t{[ }) ]}\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="form_id" value="{{ Forminator.l10n.exporter.form_id }}"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="form_type" value="{{ Forminator.l10n.exporter.form_type }}"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="action" value="forminator_export_entries"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="_forminator_nonce" value="{{ Forminator.l10n.exporter.export_nonce }}"/>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<label for="forminator-send-if-new-exports" class="sui-checkbox sui-checkbox-sm sui-checkbox-stacked">\r\n\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\t\t\tname="if_new"\r\n\t\t\t\t\t\t\t\t\t\tvalue="true"\r\n\t\t\t\t\t\t\t\t\t\tid="forminator-send-if-new-exports"\r\n\t\t\t\t\t\t\t\t\t\tclass="forminator-field-singular"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t<span aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.scheduled_export_if_new }}</span>\r\n\t\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</form>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<button class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide="forminator-popup">{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button type="submit" class="sui-button wpmudev-action-done">{{ Forminator.l10n.popup.save }}</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-new-form-popup-tpl">\r\n\r\n <div class="wpmudev-box--congrats">\r\n\r\n <div class="wpmudev-congrats--image"></div>\r\n\r\n <div class="wpmudev-congrats--message">\r\n\r\n <p><strong>{{ title }}</strong> {{ Forminator.l10n.popup.is_ready }}<br/>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.new_form_desc }}</p>\r\n\r\n </div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-delete-popup-tpl">\r\n\r\n\t <div class="sui-box-body">\r\n\t\t <span class="sui-description">{{ content }}</span>\r\n\t </div>\r\n\r\n\t <div class="sui-box-footer">\r\n\t\t <button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t <form method="post" class="delete-action">\r\n\t\t\t <input type="hidden" name="forminator_action" value="delete">\r\n\t\t\t <input type="hidden" name="id" value="{{ id }}">\r\n\t\t\t <input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" id="forminatorEntryNonce" name="forminatorEntryNonce" value="{{ nonce }}">\r\n\t\t\t <input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t <button type="submit" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm">\r\n\t\t\t\t <i class="sui-icon-trash" aria-hidden="true"></i>\r\n\t\t\t\t {{ Forminator.l10n.popup.delete }}\r\n\t\t\t </button>\r\n\t\t </form>\r\n\t </div>\r\n\r\n\t<\/script>\r\n\r\n <script type="text/template" id="forminator-confirmation-popup-tpl">\r\n\r\n\t <div class="sui-box-body">\r\n\t\t <p>{{ confirmation_message }}</p>\r\n\t </div>\r\n\r\n <form class="sui-box-footer" method="post">\r\n\t\t\t<button type="button" class="sui-button popup-confirmation-cancel">{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<div class="sui-actions-right">\r\n\t\t\t\t<button type="button" class="sui-button sui-button-red popup-confirmation-confirm">{{ Forminator.l10n.popup.delete }}</button>\r\n\t\t\t</div>\r\n </form>\r\n\r\n <\/script>\r\n\r\n\t<script type="text/template" id="forminator-reset-plugin-settings-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="delete-action">\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="reset_plugin_settings">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm">\r\n\t\t\t\t\t<i class="sui-icon-refresh" aria-hidden="true"></i>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.reset }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-disconnect-stripe-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="disconnect_stripe sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-action="disconnect_stripe">\r\n\t\t\t\t<i class="sui-icon-refresh" aria-hidden="true"></i>\r\n\t\t\t\t{{ Forminator.l10n.popup.disconnect }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\t<script type="text/template" id="forminator-disconnect-paypal-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="disconnect_paypal sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-action="disconnect_paypal">\r\n\t\t\t\t{{ Forminator.l10n.popup.disconnect }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-delete-poll-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="delete-poll-submission sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-id="{{ id }}" data-action="delete_poll_submissions">\r\n\t\t\t\t{{ Forminator.l10n.popup.delete }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-approve-user-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="form-approve-user">\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="approve_user">\r\n\t\t\t\t<input type="hidden" name="id" value="{{ id }}">\r\n\t\t\t\t<input type="hidden" name="activationKey" value="{{ activationKey }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" id="forminatorEntryNonce" name="forminatorEntryNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button approve-user popup-confirmation-confirm">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.approve_user }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-delete-unconfirmed-user-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="form-delete-unconfirmed-user">\r\n\t\t\t\t<input type="hidden" name="forminatorAction" value="delete-unconfirmed-user">\r\n\t\t\t\t<input type="hidden" name="formId" value="{{ formId }}">\r\n\t\t\t\t<input type="hidden" name="entryId" value="{{ entryId }}">\r\n\t\t\t\t<input type="hidden" name="activationKey" value="{{ activationKey }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonceDeleteUnconfirmedUser" name="forminatorNonceDeleteUnconfirmedUser" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red delete-unconfirmed-user popup-confirmation-confirm">\r\n\t\t\t\t\t<i class="sui-icon-trash" aria-hidden="true"></i>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.delete }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'
|
15 |
+
}),function(t){formintorjs.define("admin/popup/templates",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-popup--quiz",step:"1",template:"blank",events:{"click .select-quiz-template":"selectTemplate","click .sui-dialog-close":"close","change .forminator-new-form-type":"clickTemplate","click #forminator-build-your-form":"handleMouseClick",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(e).find("#forminator-form-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-tpl").html()),newFormContent:Forminator.Utils.template(t(e).find("#forminator-new-form-content-tpl").html()),render:function(){var t=jQuery("#forminator-popup");"1"===this.step&&(this.$el.html(this.popupTpl({templates:Forminator.Data.modules.custom_form.templates})),this.$el.find(".select-quiz-template").prop("disabled",!1),t.removeClass("sui-dialog-sm")),"2"===this.step&&(this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newFormContent()),"registration"===this.template&&(this.$el.find("#forminator-template-register-notice").show(),this.$el.find("#forminator-form-name").val(Forminator.l10n.popup.registration_name)),"login"===this.template&&(this.$el.find("#forminator-template-login-notice").show(),this.$el.find("#forminator-form-name").val(Forminator.l10n.popup.login_name)),t.addClass("sui-dialog-sm"))},close:function(t){t.preventDefault(),Forminator.New_Popup.close()},clickTemplate:function(t){this.$el.find(".select-quiz-template").prop("disabled",!1)},selectTemplate:function(t){t.preventDefault();var e=this.$el.find("input[name=forminator-form-template]:checked").val();this.template=e,this.step="2",this.render()},handleMouseClick:function(t){this.createQuiz(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&this.createQuiz(t)},createQuiz:function(e){var i=t(e.target).closest(".sui-box").find("#forminator-form-name");if(""===i.val())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var n=Forminator.Data.modules.custom_form.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),form_url=n+"&name="+i.val(),form_url=form_url+"&template="+this.template,window.location.href=form_url}}})})}(jQuery),function(t){formintorjs.define("admin/popup/login",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-login-popup-tpl").html()),render:function(){this.$el.html(this.popupTpl({loginUrl:Forminator.Data.modules.login.login_url,registerUrl:Forminator.Data.modules.login.register_url}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/quizzes",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-popup--quiz",step:"1",type:"knowledge",events:{"click .select-quiz-template":"selectTemplate","click .sui-dialog-close":"close","change .forminator-new-quiz-type":"clickTemplate","click #forminator-build-your-form":"handleMouseClick","click #forminator-new-quiz-leads":"handleToggle",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(e).find("#forminator-quizzes-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-quiz-tpl").html()),newFormContent:Forminator.Utils.template(t(e).find("#forminator-new-quiz-content-tpl").html()),render:function(){var t=jQuery("#forminator-popup");"1"===this.step&&(this.$el.html(this.popupTpl()),this.$el.find(".select-quiz-template").prop("disabled",!1),t.removeClass("sui-dialog-sm")),"2"===this.step&&(this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newFormContent()),t.addClass("sui-dialog-sm forminator-create-quiz-second-step"))},close:function(t){t.preventDefault(),Forminator.New_Popup.close()},clickTemplate:function(t){this.$el.find(".select-quiz-template").prop("disabled",!1)},selectTemplate:function(e){e.preventDefault();var i=this.$el.find("input[name=forminator-new-quiz]:checked").val(),n=this.$el.find("#forminator-form-name").val();""===n?t(e.target).closest(".sui-box").find("#sui-quiz-name-error").show():(this.type=i,this.name=n,this.step="2",this.render())},handleMouseClick:function(t){this.createQuiz(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&("1"===this.step?this.selectTemplate(t):this.createQuiz(t))},handleToggle:function(e){var i=t(e.target).is(":checked"),n=t(e.target).closest(".sui-box").find("#sui-quiz-leads-description");i?n.show():n.hide()},createQuiz:function(e){var i=t(e.target).closest(".sui-box").find("#forminator-new-quiz-leads").is(":checked"),n=Forminator.Data.modules.quizzes.knowledge_url;"nowrong"===this.type&&(n=Forminator.Data.modules.quizzes.nowrong_url),form_url=n+"&name="+this.name,i&&(form_url+="&leads=true"),window.location.href=form_url}})})}(jQuery),function(t){formintorjs.define("admin/popup/schedule",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({popupTpl:Forminator.Utils.template(t(e).find("#forminator-exports-schedule-popup-tpl").html()),events:{'change select[name="interval"]':"on_change_interval","click .sui-toggle-label":"click_label","click .tab-labels .sui-tab-item":"click_tab_label","click .wpmudev-action-done":"submit_schedule"},render:function(){this.$el.html(this.popupTpl({})),Forminator.Utils.sui_delegate_events();var t=forminatorl10n.exporter,e={tags:!0,tokenSeparators:[","," "],language:{searching:function(){return t.searching},noResults:function(){return t.noResults}},ajax:{url:forminatorData.ajaxUrl,type:"POST",delay:350,data:function(t){return{action:"forminator_builder_search_emails",_wpnonce:forminatorData.searchNonce,q:t.term}},processResults:function(t){return{results:t.data}},cache:!0},createTag:function(t){const e=jQuery.trim(t.term);return Forminator.Utils.is_email_wp(e)?{id:e,text:e}:null},insertTag:function(t,e){t.push(e)}};Forminator.Utils.forminator_select2_tags(this.$el,e),this.$el.find('input[name="if_new"]').prop("checked",t.if_new),this.set_enabled(t.enabled),this.$el.find('select[name="interval"]').change(),null!==t.email&&(this.$el.find('select[name="interval"]').val(t.interval),this.$el.find('select[name="day"]').val(t.day),this.$el.find('select[name="month_day"]').val(t.month_day?t.month_day:1),this.$el.find('select[name="hour"]').val(t.hour),"weekly"===t.interval?this.$el.find('select[name="day"]').closest(".sui-form-field").show():"monthly"===t.interval&&this.$el.find('select[name="month_day"]').closest(".sui-form-field").show())},set_enabled:function(t){t?(this.$el.find('input[name="enabled"][value="true"]').prop("checked",!0),this.$el.find('input[name="enabled"][value="false"]').prop("checked",!1),this.$el.find(".tab-label-disable").removeClass("active"),this.$el.find(".tab-label-enable").addClass("active"),this.$el.find(".schedule-enabled").show(),this.$el.find('input[name="email"]').prop("required",!0)):(this.$el.find('input[name="enabled"][value="false"]').prop("checked",!0),this.$el.find('input[name="enabled"][value="true"]').prop("checked",!1),this.$el.find(".tab-label-disable").addClass("active"),this.$el.find(".tab-label-enable").removeClass("active"),this.$el.find(".schedule-enabled").hide())},on_change_interval:function(t){this.$el.find('select[name="day"]').closest(".sui-form-field").hide(),this.$el.find('select[name="month_day"]').closest(".sui-form-field").hide(),"weekly"===t.target.value?(this.$el.find('select[name="month-day"]').closest(".sui-form-field").hide(),this.$el.find('select[name="day"]').closest(".sui-form-field").show()):"monthly"===t.target.value&&(this.$el.find('select[name="month_day"]').closest(".sui-form-field").show(),this.$el.find('select[name="day"]').closest(".sui-form-field").hide())},click_label:function(t){t.preventDefault(),this.$el.closest(".sui-form-field").find(".sui-toggle input").click()},click_tab_label:function(e){var i=t(e.target);i.closest(".sui-tab-item").hasClass("tab-label-disable")?this.set_enabled(!1):i.closest(".sui-tab-item").hasClass("tab-label-enable")&&this.set_enabled(!0)},submit_schedule:function(t){this.$el.find("form.schedule-action").trigger("submit")}})})}(jQuery),function(t){formintorjs.define("admin/popup/new-form",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-popup-tpl").html()),initialize:function(t){this.title=t.title,this.title=Forminator.Utils.sanitize_uri_string(this.title)},render:function(){this.$el.html(this.popupTpl({title:this.title}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/polls",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-popup-templates",newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-tpl").html()),newPollContent:Forminator.Utils.template(t(e).find("#forminator-new-poll-content-tpl").html()),events:{"click #forminator-build-your-form":"handleMouseClick",keyup:"handleKeyClick"},initialize:function(t){this.options=t},render:function(){this.$el.html(this.newFormTpl()),"form"===this.options.type&&this.$el.find(".sui-box-body").html(this.newFormContent()),"poll"===this.options.type&&this.$el.find(".sui-box-body").html(this.newPollContent())},handleMouseClick:function(t){"form"===this.options.type&&this.create_form(t),"poll"===this.options.type&&this.create_poll(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&("form"===this.options.type&&this.create_form(t),"poll"===this.options.type&&this.create_poll(t))},create_form:function(e){e.preventDefault();var i=t(e.target).closest(".sui-box").find("#forminator-form-name");if(""===i.val())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var n=Forminator.Data.modules.custom_form.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),n=n+"&name="+i.val(),window.location.href=n}},create_poll:function(e){e.preventDefault();var i=t(e.target).closest(".sui-box").find("#forminator-form-name");if(""===i.val())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var n=Forminator.Data.modules.polls.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),n=n+"&name="+i.val(),window.location.href=n}}})})}(jQuery),function(t){formintorjs.define("admin/popup/ajax",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"sui-box-body",events:{"click .wpmudev-action-done":"save","click .wpmudev-action-ajax-done":"ajax_save","click .wpmudev-action-ajax-cf7-import":"ajax_cf7_import","click .wpmudev-button-clear-exports":"clear_exports","click .forminator-radio--field":"show_poll_custom_input","click .forminator-popup-close":"close_popup","click .forminator-retry-import":"ajax_cf7_import","change #forminator-choose-import-form":"import_form_action","change .forminator-import-forms":"import_form_action"},initialize:function(t){return t=_.extend({action:"",nonce:"",data:"",id:"",enable_loader:!0},t),this.action=t.action,this.nonce=t.nonce,this.data=t.data,this.id=t.id,this.enable_loader=t.enable_loader,this.render()},render:function(){var e=this,i={};if(i.action="forminator_load_"+this.action+"_popup",i._ajax_nonce=this.nonce,i.data=this.data,this.id&&(i.id=this.id),this.enable_loader){var n="";"sui-box-body"!==this.className&&(n+='<div class="sui-box-body">'),n+='<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>',"sui-box-body"!==this.className&&(n+="</div>"),e.$el.html(n)}t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).done(function(t){if(t&&t.success){e.$el.html(t.data),e.$el.find(".wpmudev-hidden-popup").show(400),Forminator.Utils.sui_delegate_events();e.$el.find(".forminator-custom-form");e.delegateEvents()}}).always(function(){e.$el.find(".fui-loading-dialog").remove()})},save:function(e){e.preventDefault();var i={},n=t(e.target).data("nonce");i.action="forminator_save_"+this.action+"_popup",i._ajax_nonce=n,t(".wpmudev-popup-form input, .wpmudev-popup-form select").each(function(){var e=t(this);i[e.attr("name")]=e.val()}),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,success:function(t){Forminator.Popup.close(!1,function(){window.location.reload()})}})},ajax_save:function(e){var i=this;e.preventDefault();var n={},o=t(e.target).data("nonce");n.action="forminator_save_"+this.action+"_popup",n._ajax_nonce=o,t(".wpmudev-popup-form input, .wpmudev-popup-form select, .wpmudev-popup-form textarea").each(function(){var e=t(this);n[e.attr("name")]=e.val()}),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.$el.find(".wpmudev-ajax-error-placeholder").addClass("sui-hidden"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:n,success:function(t){if(!0===t.success){var e=!1;_.isUndefined(t.data.url)||(e=t.data.url),Forminator.Popup.close(!1,function(){e&&(location.href=e)})}else _.isUndefined(t.data)||i.$el.find(".wpmudev-ajax-error-placeholder").removeClass("sui-hidden").find("p").text(t.data)}}).always(function(){i.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload")})},clear_exports:function(e){e.preventDefault();var i={},n=this,o=t(e.target).data("nonce"),r=t(e.target).data("form-id");i.action="forminator_clear_"+this.action+"_popup",i._ajax_nonce=o,i.id=r,t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,success:function(){n.render()}})},show_poll_custom_input:function(e){var i=this,n=this.$el.find(".forminator-input"),o=e.target.checked,r=t(e.target).attr("id");if(n.hide(),i.$el.find(".forminator-input#"+r+"-extra").length){var a=i.$el.find(".forminator-input#"+r+"-extra");o?a.show():a.hide()}},ajax_cf7_import:function(e){var i=this,n=i.$el.find("form").serializeArray();e.preventDefault(),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.$el.find(".wpmudev-ajax-error-placeholder").addClass("sui-hidden"),this.$el.find(".forminator-cf7-imported-fail").addClass("sui-hidden"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:n,xhr:function(){var t=new window.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;e=parseInt(100*e),i.$el.find(".forminator-cf7-importing .sui-progress-text").html(e+"%"),i.$el.find(".forminator-cf7-importing .sui-progress-bar span").css("width",e+"%")}},!1),t},success:function(t){!0===t.success?setTimeout(function(){i.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),i.$el.find(".forminator-cf7-imported").removeClass("sui-hidden")},1e3):_.isUndefined(t.data)||(setTimeout(function(){i.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),i.$el.find(".forminator-cf7-imported-fail").removeClass("sui-hidden")},1e3),i.$el.find(".wpmudev-ajax-error-placeholder").removeClass("sui-hidden").find("p").text(t.data))}}).always(function(t){i.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload"),i.$el.find(".forminator-cf7-import").addClass("sui-hidden"),i.$el.find(".forminator-cf7-importing").removeClass("sui-hidden")})},close_popup:function(){Forminator.Popup.close()},import_form_action:function(e){e.preventDefault();var i=t(e.target),n=i.val(),o=!1;"specific"===n&&(o=!0),(null==n||Array.isArray(n)&&n.length<1)&&(o=!0),this.$el.find(".wpmudev-action-ajax-cf7-import").prop("disabled",o)}})})}(jQuery),function(t){formintorjs.define("admin/popup/delete",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-delete-popup-tpl").html()),popupPollTpl:Forminator.Utils.template(t(e).find("#forminator-delete-poll-popup-tpl").html()),initialize:function(t){this.module=t.module,this.nonce=t.nonce,this.id=t.id,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){"poll"===this.module?this.$el.html(this.popupPollTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content})):this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/preview",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"sui-box-body",initialize:function(e){var i=this,n={action:"",type:"",id:"",preview_data:{},enable_loader:!0};return"forminator_quizzes"===e.type&&(n.has_lead=e.has_lead,n.leads_id=e.leads_id),e=_.extend(n,e),this.action=e.action,this.type=e.type,this.nonce=e.nonce,this.id=e.id,this.render_id=0,this.preview_data=e.preview_data,this.enable_loader=e.enable_loader,"forminator_quizzes"===e.type&&(this.has_lead=e.has_lead,this.leads_id=e.leads_id),t(document).off("after.load.forminator"),t(document).on("after.load.forminator",function(t){i.after_load()}),this.render()},render:function(){var e=this,i={};if(i.action=this.action,i.type=this.type,i.id=this.id,i.render_id=this.render_id,i.nonce=this.nonce,i.is_preview=1,i.preview_data=this.preview_data,i.last_submit_data={},"forminator_quizzes"===this.type&&(i.has_lead=this.has_lead,i.leads_id=this.leads_id),this.enable_loader){var n="";"sui-box-body"!==this.className&&(n+='<div class="sui-box-body">'),n+='<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>',"sui-box-body"!==this.className&&(n+="</div>"),e.$el.html(n)}var o=t('<form id="forminator-module-'+this.id+'" data-forminator-render="'+this.render_id+'" style="display:none"></form>');e.$el.append(o),t(e.$el.find("#forminator-module-"+this.id+'[data-forminator-render="'+this.render_id+'"]').get(0)).forminatorLoader(i)},after_load:function(){var t=this;t.$el.find('div[data-form="forminator-module-'+this.id+'"]').remove(),t.$el.find(".fui-loading-dialog").remove()}})})}(jQuery),function(t){formintorjs.define("admin/popup/reset-plugin-settings",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-reset-plugin-settings-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-stripe",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup delete-stripe--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-disconnect-stripe-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-paypal",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-disconnect-paypal-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/approve-user",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-approve-user-popup-tpl").html()),events:{"click .approve-user.popup-confirmation-confirm":"approveUser"},initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.activationKey=t.activationKey},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content,activationKey:this.activationKey}))},submitForm:function(e,i,n){var o={};o.action="forminator_approve_user_popup",o._ajax_nonce=i,o.activation_key=n;var r=e.serialize()+"&"+t.param(o);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:r,beforeSend:function(){e.find(".sui-button").addClass("sui-button-onload")},success:function(t){t&&t.success?(Forminator.Notification.open("success",Forminator.l10n.commons.approve_user_successfull,4e3),window.location.reload()):Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.approve_user_unsuccessfull,4e3)}}).always(function(){e.find(".sui-button").removeClass("sui-button-onload")})},approveUser:function(e){e.preventDefault(),t(e.target).addClass("sui-button-onload");var i=this.$el.find(".form-approve-user"),n=i.find("form");return this.submitForm(n,this.nonce,this.activationKey),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/delete-unconfirmed-user",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-delete-unconfirmed-user-popup-tpl").html()),events:{"click .delete-unconfirmed-user.popup-confirmation-confirm":"deleteUnconfirmedUser"},initialize:function(t){this.nonce=t.nonce,this.formId=t.formId,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.activationKey=t.activationKey,this.entryId=t.entryId},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,formId:this.formId,referrer:this.referrer,content:this.content,activationKey:this.activationKey,entryId:this.entryId}))},submitForm:function(e,i,n,o,r){var a={action:"forminator_delete_unconfirmed_user_popup",_ajax_nonce:i,activation_key:n,form_id:o,entry_id:r},s=e.serialize()+"&"+t.param(a);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:s,beforeSend:function(){e.find(".sui-button").addClass("sui-button-onload")},success:function(t){t&&t.success?window.location.reload():Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",t.data,4e3)}}).always(function(){e.find(".sui-button").removeClass("sui-button-onload")})},deleteUnconfirmedUser:function(e){e.preventDefault(),t(e.target).addClass("sui-button-onload");var i=this.$el.find(".form-delete-unconfirmed-user"),n=i.find("form");return this.submitForm(n,this.nonce,this.activationKey,this.formId,this.entryId),!1}})})}(jQuery),function(t){formintorjs.define("admin/popups",["admin/popup/templates","admin/popup/login","admin/popup/quizzes","admin/popup/schedule","admin/popup/new-form","admin/popup/polls","admin/popup/ajax","admin/popup/delete","admin/popup/preview","admin/popup/reset-plugin-settings","admin/popup/disconnect-stripe","admin/popup/disconnect-paypal","admin/popup/approve-user","admin/popup/delete-unconfirmed-user"],function(e,i,n,o,r,a,s,l,p,d,u,c,m,f){var h=Backbone.View.extend({el:"main.sui-wrap",events:{"click .wpmudev-open-modal":"open_modal","click .wpmudev-button-open-modal":"open_modal"},initialize:function(){var t=Forminator.Utils.get_url_param("new"),e=Forminator.Utils.get_url_param("title");if(t){var i=new r({title:e});i.render(),this.open_popup(i,Forminator.l10n.popup.congratulations)}return this.open_export(),this.open_delete(),this.render()},render:function(){return this},open_delete:function(){var t=Forminator.Utils.get_url_param("delete"),e=Forminator.Utils.get_url_param("module_id"),i=Forminator.Utils.get_url_param("nonce"),n=Forminator.Utils.get_url_param("module_type"),o=Forminator.l10n.popup.delete_form,r=Forminator.l10n.popup.are_you_sure_form,a=this;"poll"===n&&(o=Forminator.l10n.popup.delete_poll,r=Forminator.l10n.popup.are_you_sure_poll),"quiz"===n&&(o=Forminator.l10n.popup.delete_quiz,r=Forminator.l10n.popup.are_you_sure_quiz),t&&setTimeout(function(){a.open_delete_popup("",e,i,o,r)},100)},open_export:function(){var t=Forminator.Utils.get_url_param("export"),e=Forminator.Utils.get_url_param("module_id"),i=Forminator.Utils.get_url_param("exportnonce"),n=Forminator.Utils.get_url_param("module_type"),o=this;t&&setTimeout(function(){o.open_export_module_modal(n,i,e,Forminator.l10n.popup.export_cform,!1,!0,"wpmudev-ajax-popup")},100)},open_modal:function(e){e.preventDefault();var i=t(e.target);t(e.target).closest(".wpmudev-split--item");i.hasClass("wpmudev-open-modal")||i.hasClass("wpmudev-button-open-modal")||(i=i.closest(".wpmudev-open-modal"));var n=i.data("modal"),o=i.data("nonce"),r=i.data("form-id"),a=i.data("has-leads"),s=i.data("leads-id"),l=i.data("modal-title"),p=i.data("modal-content"),d=i.data("nonce-preview");switch(n){case"custom_forms":this.open_cform_popup();break;case"login_registration_forms":this.open_login_popup();break;case"polls":this.open_polls_popup();break;case"quizzes":this.open_quizzes_popup();break;case"exports":this.open_settings_modal(n,o,r,Forminator.l10n.popup.your_exports);break;case"exports-schedule":this.open_exports_schedule_popup();break;case"delete-module":this.open_delete_popup("",r,o,l,p);break;case"delete-poll-submission":this.open_delete_popup("poll",r,o,l,p);break;case"paypal":this.open_settings_modal(n,o,r,Forminator.l10n.popup.paypal_settings);break;case"preview_cforms":_.isUndefined(l)&&(l=Forminator.l10n.popup.preview_cforms),this.open_preview_popup(r,l,"forminator_load_cform","forminator_forms",d);break;case"preview_polls":_.isUndefined(l)&&(l=Forminator.l10n.popup.preview_polls),this.open_preview_popup(r,l,"forminator_load_poll","forminator_polls",d);break;case"preview_quizzes":_.isUndefined(l)&&(l=Forminator.l10n.popup.preview_quizzes),this.open_quiz_preview_popup(r,l,"forminator_load_quiz","forminator_quizzes",a,s,d);break;case"captcha":this.open_settings_modal(n,o,r,Forminator.l10n.popup.captcha_settings,!1,!0,"wpmudev-ajax-popup");break;case"currency":this.open_settings_modal(n,o,r,Forminator.l10n.popup.currency_settings,!1,!0,"wpmudev-ajax-popup");break;case"pagination_entries":this.open_settings_modal(n,o,r,Forminator.l10n.popup.pagination_entries,!1,!0,"wpmudev-ajax-popup");break;case"pagination_listings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.pagination_listings,!1,!0,"wpmudev-ajax-popup");break;case"email_settings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.email_settings,!1,!0,"wpmudev-ajax-popup");break;case"uninstall_settings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.uninstall_settings,!1,!0,"wpmudev-ajax-popup");break;case"privacy_settings":this.open_settings_modal(n,o,r,Forminator.l10n.popup.privacy_settings,!1,!0,"wpmudev-ajax-popup");break;case"export_cform":this.open_export_module_modal("custom_form",o,r,Forminator.l10n.popup.export_cform,!1,!0,"wpmudev-ajax-popup");break;case"export_poll":this.open_export_module_modal("poll",o,r,Forminator.l10n.popup.export_poll,!1,!0,"wpmudev-ajax-popup");break;case"export_quiz":this.open_export_module_modal("quiz",o,r,Forminator.l10n.popup.export_quiz,!1,!0,"wpmudev-ajax-popup");break;case"import_cform":this.open_import_module_modal("custom_form",o,r,Forminator.l10n.popup.import_cform,!1,!0,"wpmudev-ajax-popup");break;case"import_cform_cf7":this.open_import_module_modal("custom_form_cf7",o,r,Forminator.l10n.popup.import_cform_cf7,!1,!0,"wpmudev-ajax-popup");break;case"import_cform_ninja":this.open_import_module_modal("custom_form_ninja",o,r,Forminator.l10n.popup.import_cform_ninja,!1,!0,"wpmudev-ajax-popup");break;case"import_cform_gravity":this.open_import_module_modal("custom_form_gravity",o,r,Forminator.l10n.popup.import_cform_gravity,!1,!0,"wpmudev-ajax-popup");break;case"import_poll":this.open_import_module_modal("poll",o,r,Forminator.l10n.popup.import_poll,!1,!0,"wpmudev-ajax-popup");break;case"import_quiz":this.open_import_module_modal("quiz",o,r,Forminator.l10n.popup.import_quiz,!1,!0,"wpmudev-ajax-popup");break;case"reset-plugin-settings":this.open_reset_plugin_settings_popup(o,l,p);break;case"disconnect-stripe":this.open_disconnect_stripe_popup(o,l,p);break;case"disconnect-paypal":this.open_disconnect_paypal_popup(o,l,p);break;case"approve-user-module":var u=i.data("activation-key");this.open_approve_user_popup(o,l,p,u);break;case"delete-unconfirmed-user-module":this.open_unconfirmed_user_popup(i.data("form-id"),o,l,p,i.data("activation-key"),i.data("entry-id"))}},open_popup:function(e,i,n,o,r,a,s){_.isUndefined(i)&&(i=Forminator.l10n.custom_form.popup_label);var l={title:i};_.isUndefined(n)||(l.has_custom_box=n),_.isUndefined(o)||(l.action_text=o),_.isUndefined(r)||(l.action_css_class=r),_.isUndefined(a)||(l.action_callback=a),Forminator.Popup.open(function(){_.isUndefined(e.el)?t(this).append(e):t(this).append(e.el),"function"==typeof s&&s.apply(this)},l)},open_ajax_popup:function(e,i,n,o,r,a,l){_.isUndefined(o)&&(o=Forminator.l10n.custom_form.popup_label),_.isUndefined(r)&&(r=!0),_.isUndefined(a)&&(a=!1),_.isUndefined(l)&&(l="sui-box-body");var p=new s({action:e,nonce:i,id:n,enable_loader:!0,className:l}),d={title:o,has_custom_box:a};Forminator.Popup.open(function(){t(this).append(p.el)},d)},open_cform_popup:function(){var i=new e({type:"form"});i.render();var n=i;Forminator.New_Popup.open(function(){_.isUndefined(n.el)?t(this).append(n):t(this).append(n.el),t(this).closest(".sui-dialog").removeClass("sui-dialog-sm"),t(this).closest(".sui-dialog").addClass("sui-dialog-alt"),t(this).closest(".sui-dialog").find(".sui-box-header").addClass("sui-block-content-center")},{title:"",has_custom_box:!0})},open_delete_popup:function(e,i,n,o,r){var a=new l({module:e,id:i,nonce:n,referrer:window.location.pathname+window.location.search,content:r});a.render();var s=a;Forminator.Popup.open(function(){_.isUndefined(s.el)?t(this).append(s):t(this).append(s.el)},{title:o,has_custom_box:!0})},open_login_popup:function(){var t=new i;t.render(),this.open_popup(t,Forminator.l10n.popup.edit_login_form)},open_polls_popup:function(){var e=new a({type:"poll"});e.render();var i=e;Forminator.New_Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el)},{title:""})},open_quizzes_popup:function(){var e=new n;e.render();var i=e;Forminator.New_Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el),t(this).closest(".sui-dialog").removeClass("sui-dialog-sm"),t(this).closest(".sui-dialog").addClass("sui-dialog-alt"),t(this).closest(".sui-dialog").find(".sui-box-header").addClass("sui-block-content-center")},{title:Forminator.l10n.quiz.choose_quiz_title,has_custom_box:!0})},open_exports_schedule_popup:function(){var t=new o;t.render(),this.open_popup(t,Forminator.l10n.popup.edit_scheduled_export,!0)},open_settings_modal:function(t,e,i,n,o,r,a){this.open_ajax_popup(t,e,i,n,o,r,a)},open_export_module_modal:function(t,e,i,n,o,r,a){var s="";switch(t){case"custom_form":s="export_custom_form";break;case"poll":s="export_poll";break;case"quiz":s="export_quiz"}this.open_ajax_popup(s,e,i,n,o,r,a)},open_import_module_modal:function(t,e,i,n,o,r,a){var s="";switch(t){case"custom_form":s="import_custom_form";break;case"custom_form_cf7":s="import_custom_form_cf7";break;case"custom_form_ninja":s="import_custom_form_ninja";break;case"custom_form_gravity":s="import_custom_form_gravity";break;case"poll":s="import_poll";break;case"quiz":s="import_quiz"}this.open_ajax_popup(s,e,i,n,o,r,a)},open_preview_popup:function(e,i,n,o,r){_.isUndefined(i)&&(i=Forminator.l10n.custom_form.popup_label);var a=new p({action:n,type:o,nonce:r,id:e,enable_loader:!0,className:"sui-box-body"}),s={title:i,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(a.el)},s)},open_quiz_preview_popup:function(e,i,n,o,r,a,s){_.isUndefined(i)&&(i=Forminator.l10n.custom_form.popup_label);var l=new p({action:n,type:o,id:e,enable_loader:!0,className:"sui-box-body",has_lead:r,leads_id:a,nonce:s}),d={title:i,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(l.el)},d)},
|
16 |
+
open_reset_plugin_settings_popup:function(e,i,n){var o=new d({nonce:e,referrer:window.location.pathname+window.location.search,content:n});o.render();var r=o;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_disconnect_stripe_popup:function(e,i,n){var o=new u({nonce:e,referrer:window.location.pathname+window.location.search,content:n});o.render();var r=o;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_disconnect_paypal_popup:function(e,i,n){var o=new c({nonce:e,referrer:window.location.pathname+window.location.search,content:n});o.render();var r=o;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_approve_user_popup:function(e,i,n,o){var r=new m({nonce:e,referrer:window.location.pathname+window.location.search,content:n,activationKey:o});r.render();var a=r;Forminator.Popup.open(function(){_.isUndefined(a.el)?t(this).append(a):t(this).append(a.el),t(this).closest(".sui-dialog").addClass("sui-dialog-alt sui-dialog-sm"),t(this).closest(".sui-dialog").find(".sui-box-header, .sui-box-body").addClass("sui-block-content-center"),t(this).closest(".sui-dialog").find(".sui-box-body").css({"padding-top":"10px"}),t(this).closest(".sui-dialog").find(".sui-box-footer").css({"padding-top":"0","padding-bottom":"40px","justify-content":"center"})},{title:i,has_custom_box:!0})},open_unconfirmed_user_popup:function(e,i,n,o,r,a){var s=new f({formId:e,nonce:i,referrer:window.location.pathname+window.location.search,content:o,activationKey:r,entryId:a});s.render();var l=s;Forminator.Popup.open(function(){_.isUndefined(l.el)?t(this).append(l):t(this).append(l.el)},{title:n,has_custom_box:!0})}});jQuery(document).ready(function(){new h})})}(jQuery),formintorjs.define("text!tpl/popups.html",[],function(){return'<div>\r\n\r\n\t<script type="text/template" id="popup-integration-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc="{{ image }}"\r\n\t\t\t\t\tsrcset="{{ image }} 1x, {{ image_x2 }} 2x"\r\n\t\t\t\t\talt="{{ title }}"\r\n\t\t\t\t/>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="sui-box-content integration-header"></div>\r\n\r\n\t\t\t<button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-new-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-tpl">\r\n\r\n\t\t<div class="sui-dialog" id="forminator-popup" aria-hidden="true">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-header-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle">{{ title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button data-a11y-dialog-hide="" class="sui-dialog-close" aria-label=""></button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-loader-tpl">\r\n\r\n\t\t<p class="fui-loading-dialog" aria-label="Loading content">\r\n\r\n\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\r\n\t\t</p>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-tpl">\r\n\r\n\t\t<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-stripe-popup">\r\n\r\n\t\t\t<div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div>\r\n\r\n\t\t\t<div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog">\r\n\r\n\t\t\t\t<div class="sui-box" role="document"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-block-content-center">\r\n\r\n\t\t\t<div class="sui-dialog-image" aria-hidden="true">\r\n\r\n\t\t\t\t<img src="{{ image }}"\r\n\t\t\t\t srcset="{{ image }} 1x, {{ image_x2 }} 2x" alt="{{ title }}" />\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<h3 class="sui-box-title" id="dialogTitle2" style="display: none;">{{ title }}</h3>\r\n\r\n\t\t\t<button class="sui-dialog-close forminator-integration-close" aria-label="{{ Forminator.l10n.popup.close_label }}"></button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-block-content-center sui-box-body-slim"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-box-footer-center"></div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'}),function(t){formintorjs.define("admin/addons/view",["text!tpl/popups.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--integrations",loaderTpl:Forminator.Utils.template(t(e).find("#popup-loader-tpl").html()),model:{},events:{"click .forminator-addon-connect":"connect_addon","click .forminator-addon-disconnect":"disconnect_addon","click .forminator-addon-form-disconnect":"form_disconnect_addon","click .forminator-addon-next":"submit_next_step","click .forminator-addon-back":"go_prev_step","click .forminator-addon-finish":"finish_steps"},initialize:function(t){this.slug=t.slug,this.nonce=t.nonce,this.action=t.action,this.form_id=t.form_id,this.multi_id=t.multi_id,this.step=0,this.next_step=!1,this.prev_step=!1,this.scrollbar_width=this.get_scrollbar_width();var e=this;return this.$el.find(".forminator-integration-close, .forminator-addon-close").on("click",function(){e.close(e)}),this.render()},render:function(){var t={};t.action=this.action,t._ajax_nonce=this.nonce,t.data={},t.data.slug=this.slug,t.data.step=this.step,t.data.current_step=this.step,this.form_id&&(t.data.form_id=this.form_id),this.multi_id&&(t.data.multi_id=this.multi_id),this.request(t,!1,!0)},request:function(e,i,n){var o=this,r={data:e,close:i,loader:n};n&&(this.$el.find(".sui-box-body").html(this.loaderTpl()),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){o.render_body(e),o.render_footer(e);var n=e.data.data;if(o.on_render(n),o.$el.find(".sui-button").removeClass("sui-button-onload"),(i||!_.isUndefined(n.is_close)&&n.is_close)&&o.close(o),o.$el.find(".forminator-addon-close").on("click",function(){o.close(o)}),_.isUndefined(n.notification)||_.isUndefined(n.notification.type)||_.isUndefined(n.notification.text)||Forminator.Notification.open(n.notification.type,n.notification.text,4e3),_.isUndefined(n.has_back)?o.$el.find(".forminator-addon-back").hide():n.has_back?o.$el.find(".forminator-addon-back").show():o.$el.find(".forminator-addon-back").hide(),!_.isUndefined(n.size)){var a=t("#forminator-integration-popup");"normal"===n.size&&a.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n.size&&(a.addClass("sui-dialog-sm"),a.removeClass("sui-dialog-lg")),"large"===n.size&&(a.addClass("sui-dialog-lg"),a.removeClass("sui-dialog-sm"))}n.is_poll&&setTimeout(o.request(r.data,r.close,r.loader),5e3);t("#forminator-integration-popup .sui-box").height()>t(window).height()?t("#forminator-integration-popup .sui-dialog-overlay").css("right",o.scrollbar_width+"px"):t("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){o.$el.find(".fui-loading-dialog").remove()})},render_body:function(t){this.$el.find(".sui-box-body").html(t.data.data.html);var e=this.$el.find(".sui-box-body .integration-header").remove();e.length>0&&this.$el.find(".integration-header").html(e.html()),t.data.data.nopadding&&this.$el.find(".sui-box-body").css({padding:"10px"})},render_footer:function(t){var e=this,i=t.data.data.buttons;e.$el.find(".sui-box-footer").html(""),_.each(i,function(t){e.$el.find(".sui-box-footer").append(t.markup)})},on_render:function(t){this.delegateEvents(),Forminator.Utils.sui_delegate_events(),Forminator.Utils.forminator_select2_tags(this.$el,{}),_.isUndefined(t.forminator_addon_current_step)||(this.step=+t.forminator_addon_current_step),_.isUndefined(t.forminator_addon_has_next_step)||(this.next_step=t.forminator_addon_has_next_step),_.isUndefined(t.forminator_addon_has_prev_step)||(this.prev_step=t.forminator_addon_has_prev_step)},get_step:function(){return this.next_step?this.step+1:this.step},get_prev_step:function(){return this.prev_step?this.step-1:this.step},connect_addon:function(e){var i={},n=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),current_step:this.step},r=n.serialize();this.form_id&&(o.form_id=this.form_id),this.multi_id&&(o.multi_id=this.multi_id),r=r+"&"+t.param(o),i.action=this.action,i._ajax_nonce=this.nonce,i.data=r,this.request(i,!1,!1)},submit_next_step:function(e){var i={},n=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),current_step:this.step},r=n.serialize();this.form_id&&(o.form_id=this.form_id),r=r+"&"+t.param(o),i.action=this.action,i._ajax_nonce=this.nonce,i.data=r,this.request(i,!1,!1)},go_prev_step:function(t){var e={},i={slug:this.slug,step:this.get_prev_step(),current_step:this.step};this.form_id&&(i.form_id=this.form_id),this.multi_id&&(i.multi_id=this.multi_id),e.action=this.action,e._ajax_nonce=this.nonce,e.data=i,this.request(e,!1,!1)},finish_steps:function(e){var i={},n=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),current_step:this.step},r=n.serialize();this.form_id&&(o.form_id=this.form_id),this.multi_id&&(o.multi_id=this.multi_id),r=r+"&"+t.param(o),i.action=this.action,i._ajax_nonce=this.nonce,i.data=r,this.request(i,!1,!1)},disconnect_addon:function(t){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,this.request(e,!0,!1)},form_disconnect_addon:function(t){var e={};e.action="forminator_addon_form_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.form_id=this.form_id,this.multi_id&&(e.data.multi_id=this.multi_id),this.request(e,!0,!1)},close:function(t){t.ajax.abort(),t.remove(),Forminator.Integrations_Popup.close(),Forminator.Events.trigger("forminator:addons:reload")},get_scrollbar_width:function(){var e=0;if(navigator.userAgent.match("MSIE")){var i=t('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),n=t('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=i.width()-n.width(),i.add(n).remove()}else{var o=t("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200});e=100-o.width(),o.parent().remove()}return e}})})}(jQuery),function(t){formintorjs.define("admin/addons/addons",["admin/addons/view"],function(e){var i=Backbone.View.extend({el:".sui-wrap.wpmudev-forminator-forminator-integrations",currentTab:"forminator-integrations",events:{"change .forminator-addon-toggle-enabled":"toggle_state","click .connect-integration":"connect_integration","click .forminator-integrations-wrapper .sui-vertical-tab a":"go_to_tab","change .forminator-integrations-wrapper .sui-sidenav-hide-lg select":"go_to_tab","keyup input.sui-form-control":"required_settings"},initialize:function(e){if(t(this.el).length>0)return this.listenTo(Forminator.Events,"forminator:addons:reload",this.render_addons_page),this.render()},render:function(){this.render_addons_page(),this.update_tab()},render_addons_page:function(){var e=this,i={};this.$el.find("#forminator-integrations-display").html('<div class="sui-notice sui-notice-loading"><p>Fetching integration list…</p></div>'),i.action="forminator_addon_get_addons",i._ajax_nonce=Forminator.Data.addonNonce,i.data={},t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).done(function(t){t&&t.success&&e.$el.find("#forminator-integrations-page").html(t.data.data)}).always(function(){e.$el.find(".sui-notice sui-notice-loading").remove()})},connect_integration:function(i){i.preventDefault();var n=t(i.target);n.hasClass("connect-integration")||(n=n.closest(".connect-integration"));var o=n.data("nonce"),r=n.data("slug"),a=n.data("title"),s=n.data("image"),l=n.data("imagex2"),p=n.data("action"),d=n.data("form-id"),u=n.data("multi-id");Forminator.Integrations_Popup.open(function(){new e({slug:r,nonce:o,action:p,form_id:d,multi_id:u,el:t(this)})},{title:a,image:s,image_x2:l})},go_to_tab:function(e){e.preventDefault();var i=t(e.target),n=i.attr("href"),o="";if(_.isUndefined(n)){o=i.val()}else o=n.replace("#","",n);_.isEmpty(o)||(this.currentTab=o),this.update_tab(),e.stopPropagation()},update_tab_select:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.$el.find(".sui-sidenav-hide-lg select").val(this.currentTab),this.$el.find(".sui-sidenav-hide-lg select").trigger("sui:change"))},update_tab:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.clear_tabs(),this.$el.find("[data-tab-id="+this.currentTab+"]").addClass("current"),this.$el.find(".wpmudev-settings--box#"+this.currentTab).show())},clear_tabs:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.$el.find(".sui-vertical-tab ").removeClass("current"),this.$el.find(".wpmudev-settings--box").hide())},required_settings:function(e){var i=t(e.target),n=i.parent(),o=n.find(".sui-error-message"),r=i.closest("div[data-nav]"),a=r.find(".sui-box-footer"),s=a.find(".wpmudev-action-done");this.$el.hasClass("wpmudev-forminator-forminator-settings")&&(i.hasClass("forminator-required")&&!i.val()&&n.hasClass("sui-form-field")&&(n.addClass("sui-form-field-error"),o.show()),i.hasClass("forminator-required")&&i.val()&&n.hasClass("sui-form-field")&&(n.removeClass("sui-form-field-error"),o.hide()),r.find("input.sui-form-control").hasClass("forminator-required")&&(0===r.find("div.sui-form-field-error").length?s.prop("disabled",!1):s.prop("disabled",!0))),e.stopPropagation()}});jQuery(document).ready(function(){new i})})}(jQuery),function(t){formintorjs.define("admin/views",["admin/dashboard","admin/settings-page","admin/popups","admin/addons/addons"],function(t,e,i,n){return{Views:{Dashboard:t,SettingsPage:e,Popups:i}}})}(jQuery),function(t){formintorjs.define("admin/application",["admin/views"],function(t){return _.extend(Forminator,t),new(Backbone.Router.extend({app:!1,data:!1,layout:!1,module_id:null,routes:{"":"run","*path":"run"},events:{},init:function(){if(!this.data)return this.app=Forminator.Data.application||!1,this.data={},!1},run:function(t){this.init(),this.module_id=t}}))})}(jQuery),formintorjs.define("jquery",[],function(){return jQuery}),formintorjs.define("forminator_global_data",function(){return forminatorData}),formintorjs.define("forminator_language",function(){return forminatorl10n});var Forminator=window.Forminator||{};Forminator.Events={},Forminator.Data={},Forminator.l10n={},formintorjs.require.config({baseUrl:".",paths:{js:".",admin:"admin"},shim:{backbone:{deps:["underscore","jquery","forminator_global_data","forminator_language"],exports:"Backbone"},underscore:{exports:"_"}},waitSeconds:60}),formintorjs.require(["admin/utils"],function(t){_.templateSettings={evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g},_.extend(Forminator.Data,forminatorData),_.extend(Forminator.l10n,forminatorl10n),_.extend(Forminator,t),_.extend(Forminator.Events,Backbone.Events),formintorjs.require(["admin/application"],function(t){jQuery(document).ready(function(){_.extend(Forminator,t),Forminator.Events.trigger("application:booted"),Backbone.history.start()})})}),formintorjs.define("admin/setup",function(){}),formintorjs.define("main",function(){});
|
forminator.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Forminator
|
4 |
-
* Version: 1.14.
|
5 |
* Plugin URI: https://premium.wpmudev.org/project/forminator/
|
6 |
* Description: Capture user information (as detailed as you like), engage users with interactive polls that show real-time results and graphs, “no wrong answer” Facebook-style quizzes and knowledge tests.
|
7 |
* Author: WPMU DEV
|
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'FORMINATOR_VERSION' ) ) {
|
37 |
-
define( 'FORMINATOR_VERSION', '1.14.
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'FORMINATOR_SUI_VERSION' ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Forminator
|
4 |
+
* Version: 1.14.7
|
5 |
* Plugin URI: https://premium.wpmudev.org/project/forminator/
|
6 |
* Description: Capture user information (as detailed as you like), engage users with interactive polls that show real-time results and graphs, “no wrong answer” Facebook-style quizzes and knowledge tests.
|
7 |
* Author: WPMU DEV
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'FORMINATOR_VERSION' ) ) {
|
37 |
+
define( 'FORMINATOR_VERSION', '1.14.7' );
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'FORMINATOR_SUI_VERSION' ) ) {
|
languages/forminator.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Forminator package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Forminator 1.14.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/forminator\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -331,7 +331,7 @@ msgstr ""
|
|
331 |
#: addons/pro/trello/class-forminator-addon-trello-quiz-settings.php:127
|
332 |
#: addons/pro/trello/class-forminator-addon-trello-quiz-settings.php:260
|
333 |
#: addons/pro/trello/class-forminator-addon-trello-quiz-settings.php:400
|
334 |
-
#: admin/locale.php:945 library/helpers/helper-core.php:
|
335 |
msgid "Next"
|
336 |
msgstr ""
|
337 |
|
@@ -671,7 +671,7 @@ msgstr ""
|
|
671 |
#: addons/pro/slack/class-forminator-addon-slack.php:281
|
672 |
#: addons/pro/zapier/class-forminator-addon-zapier.php:176
|
673 |
#: admin/classes/class-admin-l10n.php:134
|
674 |
-
#: admin/views/settings/payments/section-paypal.php:
|
675 |
#: admin/views/settings/payments/section-stripe.php:122
|
676 |
msgid "Disconnect"
|
677 |
msgstr ""
|
@@ -732,9 +732,9 @@ msgstr ""
|
|
732 |
#: addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php:254
|
733 |
#: addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php:220
|
734 |
#: addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php:223
|
735 |
-
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:
|
736 |
-
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:
|
737 |
-
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:
|
738 |
#: addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php:244
|
739 |
#: addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php:247
|
740 |
#: addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php:256
|
@@ -1199,7 +1199,7 @@ msgid "Missing required API Credentials"
|
|
1199 |
msgstr ""
|
1200 |
|
1201 |
#: addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php:229
|
1202 |
-
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:
|
1203 |
#: addons/pro/slack/lib/class-forminator-addon-slack-wp-api.php:208
|
1204 |
msgid ""
|
1205 |
"Failed to process request, make sure your API URL is correct and your "
|
@@ -1857,9 +1857,9 @@ msgstr ""
|
|
1857 |
|
1858 |
#: addons/pro/googlesheet/class-forminator-addon-googlesheet.php:623
|
1859 |
#: addons/pro/trello/class-forminator-addon-trello.php:503
|
1860 |
-
#: admin/classes/class-admin.php:
|
1861 |
#: admin/views/dashboard/widgets/widget-upgrade.php:5
|
1862 |
-
#: library/helpers/helper-core.php:
|
1863 |
msgid "Forminator Pro"
|
1864 |
msgstr ""
|
1865 |
|
@@ -2757,8 +2757,8 @@ msgid "is connected successfully."
|
|
2757 |
msgstr ""
|
2758 |
|
2759 |
#: addons/pro/mailchimp/class-forminator-addon-mailchimp.php:659
|
2760 |
-
#: admin/classes/class-admin-ajax.php:
|
2761 |
-
#: admin/classes/class-admin-ajax.php:
|
2762 |
msgid "Connect"
|
2763 |
msgstr ""
|
2764 |
|
@@ -3698,110 +3698,110 @@ msgstr ""
|
|
3698 |
|
3699 |
#: admin/abstracts/class-admin-import-mediator.php:234
|
3700 |
#: admin/abstracts/class-admin-import-mediator.php:238
|
3701 |
-
#: admin/classes/class-admin-ajax.php:
|
3702 |
-
#: admin/classes/class-admin-ajax.php:
|
3703 |
-
#: admin/classes/class-admin-ajax.php:
|
3704 |
-
#: admin/classes/class-admin-ajax.php:
|
3705 |
-
#: admin/classes/class-admin-ajax.php:
|
3706 |
-
#: admin/classes/class-admin-ajax.php:
|
3707 |
msgid ""
|
3708 |
"Oops, looks like we found an issue. Import text can not include whitespace "
|
3709 |
"or special characters."
|
3710 |
msgstr ""
|
3711 |
|
3712 |
#: admin/abstracts/class-admin-import-mediator.php:251
|
3713 |
-
#: admin/classes/class-admin-ajax.php:
|
3714 |
msgid "Failed to import form, please make sure import text is valid, and try again."
|
3715 |
msgstr ""
|
3716 |
|
3717 |
-
#: admin/abstracts/class-admin-page.php:
|
3718 |
#. translators: ...
|
3719 |
msgid "Made with %s by WPMU DEV"
|
3720 |
msgstr ""
|
3721 |
|
3722 |
-
#: admin/abstracts/class-admin-page.php:
|
3723 |
-
#: admin/abstracts/class-admin-page.php:
|
3724 |
msgid "The Hub"
|
3725 |
msgstr ""
|
3726 |
|
3727 |
-
#: admin/abstracts/class-admin-page.php:
|
3728 |
msgid "Plugins"
|
3729 |
msgstr ""
|
3730 |
|
3731 |
-
#: admin/abstracts/class-admin-page.php:
|
3732 |
-
#: admin/abstracts/class-admin-page.php:
|
3733 |
msgid "Roadmap"
|
3734 |
msgstr ""
|
3735 |
|
3736 |
-
#: admin/abstracts/class-admin-page.php:
|
3737 |
-
#: admin/abstracts/class-admin-page.php:
|
3738 |
msgid "Support"
|
3739 |
msgstr ""
|
3740 |
|
3741 |
-
#: admin/abstracts/class-admin-page.php:
|
3742 |
-
#: admin/abstracts/class-admin-page.php:
|
3743 |
msgid "Docs"
|
3744 |
msgstr ""
|
3745 |
|
3746 |
-
#: admin/abstracts/class-admin-page.php:
|
3747 |
msgid "Community"
|
3748 |
msgstr ""
|
3749 |
|
3750 |
-
#: admin/abstracts/class-admin-page.php:
|
3751 |
msgid "Academy"
|
3752 |
msgstr ""
|
3753 |
|
3754 |
-
#: admin/abstracts/class-admin-page.php:
|
3755 |
-
#: admin/abstracts/class-admin-page.php:
|
3756 |
msgid "Terms of Service"
|
3757 |
msgstr ""
|
3758 |
|
3759 |
-
#: admin/abstracts/class-admin-page.php:
|
3760 |
-
#: admin/abstracts/class-admin-page.php:
|
3761 |
msgid "Privacy Policy"
|
3762 |
msgstr ""
|
3763 |
|
3764 |
-
#: admin/abstracts/class-admin-page.php:
|
3765 |
msgid "Free Plugins"
|
3766 |
msgstr ""
|
3767 |
|
3768 |
-
#: admin/abstracts/class-admin-page.php:
|
3769 |
msgid "Membership"
|
3770 |
msgstr ""
|
3771 |
|
3772 |
-
#: admin/abstracts/class-admin-page.php:
|
3773 |
#: admin/classes/class-admin-l10n.php:326 admin/locale.php:1141
|
3774 |
#: library/modules/quizzes/admin/admin-loader.php:552
|
3775 |
msgid "Facebook"
|
3776 |
msgstr ""
|
3777 |
|
3778 |
-
#: admin/abstracts/class-admin-page.php:
|
3779 |
#: admin/classes/class-admin-l10n.php:327 admin/locale.php:1142
|
3780 |
#: library/modules/quizzes/admin/admin-loader.php:553
|
3781 |
msgid "Twitter"
|
3782 |
msgstr ""
|
3783 |
|
3784 |
-
#: admin/abstracts/class-admin-page.php:
|
3785 |
msgid "Instagram"
|
3786 |
msgstr ""
|
3787 |
|
3788 |
-
#: admin/classes/class-admin-ajax.php:
|
3789 |
-
#: admin/classes/class-admin-ajax.php:
|
3790 |
-
#: admin/classes/class-admin-ajax.php:
|
3791 |
-
#: library/class-export.php:162 library/helpers/helper-core.php:
|
3792 |
msgid "Invalid request, you are not allowed to do that action."
|
3793 |
msgstr ""
|
3794 |
|
3795 |
-
#: admin/classes/class-admin-ajax.php:
|
3796 |
msgid "Quiz model doesn't exist"
|
3797 |
msgstr ""
|
3798 |
|
3799 |
-
#: admin/classes/class-admin-ajax.php:
|
3800 |
msgid "Poll model doesn't exist"
|
3801 |
msgstr ""
|
3802 |
|
3803 |
-
#: admin/classes/class-admin-ajax.php:
|
3804 |
-
#: admin/classes/class-admin-ajax.php:
|
3805 |
#: library/class-api.php:328 library/class-api.php:367
|
3806 |
#: library/class-api.php:487 library/class-api.php:529
|
3807 |
#: library/class-api.php:564 library/class-api.php:604
|
@@ -3810,155 +3810,155 @@ msgstr ""
|
|
3810 |
msgid "Form model doesn't exist"
|
3811 |
msgstr ""
|
3812 |
|
3813 |
-
#: admin/classes/class-admin-ajax.php:
|
3814 |
msgid "You have to first save your credentials to load the reCAPTCHA . "
|
3815 |
msgstr ""
|
3816 |
|
3817 |
-
#: admin/classes/class-admin-ajax.php:
|
3818 |
-
#: admin/classes/class-admin-ajax.php:
|
3819 |
-
#: admin/classes/class-admin-ajax.php:
|
3820 |
msgid "Limit per page can not be less than one."
|
3821 |
msgstr ""
|
3822 |
|
3823 |
-
#: admin/classes/class-admin-ajax.php:
|
3824 |
msgid "Not valid module ID provided."
|
3825 |
msgstr ""
|
3826 |
|
3827 |
-
#: admin/classes/class-admin-ajax.php:
|
3828 |
msgid "No ID was provided."
|
3829 |
msgstr ""
|
3830 |
|
3831 |
-
#: admin/classes/class-admin-ajax.php:
|
3832 |
msgid "Exports cleared."
|
3833 |
msgstr ""
|
3834 |
|
3835 |
-
#: admin/classes/class-admin-ajax.php:
|
3836 |
msgid "Exports couldn't be cleared."
|
3837 |
msgstr ""
|
3838 |
|
3839 |
-
#: admin/classes/class-admin-ajax.php:
|
3840 |
-
#: admin/classes/class-admin-ajax.php:
|
3841 |
-
#: admin/classes/class-admin-ajax.php:
|
3842 |
-
#: admin/classes/class-admin-ajax.php:
|
3843 |
-
#: admin/classes/class-admin-ajax.php:
|
3844 |
-
#: admin/classes/class-admin-ajax.php:
|
3845 |
msgid "Import Export Feature disabled."
|
3846 |
msgstr ""
|
3847 |
|
3848 |
-
#: admin/classes/class-admin-ajax.php:
|
3849 |
-
#: admin/classes/class-admin-ajax.php:
|
3850 |
-
#: admin/classes/class-admin-ajax.php:
|
3851 |
msgid "Import text can not be empty."
|
3852 |
msgstr ""
|
3853 |
|
3854 |
-
#: admin/classes/class-admin-ajax.php:
|
3855 |
msgid "Can't find form to import"
|
3856 |
msgstr ""
|
3857 |
|
3858 |
-
#: admin/classes/class-admin-ajax.php:
|
3859 |
-
#: admin/classes/class-admin-ajax.php:
|
3860 |
msgid "Could not import the forms. Check if the selected form plugin is active"
|
3861 |
msgstr ""
|
3862 |
|
3863 |
-
#: admin/classes/class-admin-ajax.php:
|
3864 |
msgid "Failed to import poll, please make sure import text is valid, and try again."
|
3865 |
msgstr ""
|
3866 |
|
3867 |
-
#: admin/classes/class-admin-ajax.php:
|
3868 |
msgid "Failed to import quiz, please make sure import text is valid, and try again."
|
3869 |
msgstr ""
|
3870 |
|
3871 |
-
#: admin/classes/class-admin-ajax.php:
|
3872 |
msgid "Calculation formula validated successfully."
|
3873 |
msgstr ""
|
3874 |
|
3875 |
-
#: admin/classes/class-admin-ajax.php:
|
3876 |
msgid "Invalid calculation formula. Please check again."
|
3877 |
msgstr ""
|
3878 |
|
3879 |
-
#: admin/classes/class-admin-ajax.php:
|
3880 |
msgid "Stripe account disconnected successfully."
|
3881 |
msgstr ""
|
3882 |
|
3883 |
-
#: admin/classes/class-admin-ajax.php:
|
3884 |
msgid "PayPal account disconnected successfully."
|
3885 |
msgstr ""
|
3886 |
|
3887 |
-
#: admin/classes/class-admin-ajax.php:
|
3888 |
msgid ""
|
3889 |
"Stripe account connected successfully. You can now add the Stripe field to "
|
3890 |
"your forms and start collecting payments."
|
3891 |
msgstr ""
|
3892 |
|
3893 |
-
#: admin/classes/class-admin-ajax.php:
|
3894 |
msgid "Please input test publishable key"
|
3895 |
msgstr ""
|
3896 |
|
3897 |
-
#: admin/classes/class-admin-ajax.php:
|
3898 |
msgid "Please input test secret key"
|
3899 |
msgstr ""
|
3900 |
|
3901 |
-
#: admin/classes/class-admin-ajax.php:
|
3902 |
msgid "Please input live publishable key"
|
3903 |
msgstr ""
|
3904 |
|
3905 |
-
#: admin/classes/class-admin-ajax.php:
|
3906 |
-
#: admin/classes/class-admin-ajax.php:
|
3907 |
msgid "Please input live secret key"
|
3908 |
msgstr ""
|
3909 |
|
3910 |
-
#: admin/classes/class-admin-ajax.php:
|
3911 |
msgid "You've entered an invalid test secret key"
|
3912 |
msgstr ""
|
3913 |
|
3914 |
-
#: admin/classes/class-admin-ajax.php:
|
3915 |
-
#: admin/classes/class-admin-ajax.php:
|
3916 |
msgid "You've entered an invalid live secret key"
|
3917 |
msgstr ""
|
3918 |
|
3919 |
-
#: admin/classes/class-admin-ajax.php:
|
3920 |
msgid "You've entered an invalid test publishable key"
|
3921 |
msgstr ""
|
3922 |
|
3923 |
-
#: admin/classes/class-admin-ajax.php:
|
3924 |
msgid "You've entered an invalid live publishable key"
|
3925 |
msgstr ""
|
3926 |
|
3927 |
-
#: admin/classes/class-admin-ajax.php:
|
3928 |
msgid ""
|
3929 |
"PayPal account connected successfully. You can now add the PayPal field to "
|
3930 |
"your forms and start collecting payments."
|
3931 |
msgstr ""
|
3932 |
|
3933 |
-
#: admin/classes/class-admin-ajax.php:
|
3934 |
msgid "Please input sandbox client id"
|
3935 |
msgstr ""
|
3936 |
|
3937 |
-
#: admin/classes/class-admin-ajax.php:
|
3938 |
msgid "Please input sandbox secret key"
|
3939 |
msgstr ""
|
3940 |
|
3941 |
-
#: admin/classes/class-admin-ajax.php:
|
3942 |
msgid "Please input live client id"
|
3943 |
msgstr ""
|
3944 |
|
3945 |
-
#: admin/classes/class-admin-ajax.php:
|
3946 |
msgid "You've entered an invalid sandbox secret key"
|
3947 |
msgstr ""
|
3948 |
|
3949 |
-
#: admin/classes/class-admin-ajax.php:
|
3950 |
msgid "You've entered an invalid sandbox client id"
|
3951 |
msgstr ""
|
3952 |
|
3953 |
-
#: admin/classes/class-admin-ajax.php:
|
3954 |
msgid "You've entered an invalid live client id"
|
3955 |
msgstr ""
|
3956 |
|
3957 |
-
#: admin/classes/class-admin-ajax.php:
|
3958 |
msgid "All the submissions deleted successfully."
|
3959 |
msgstr ""
|
3960 |
|
3961 |
-
#: admin/classes/class-admin-ajax.php:
|
3962 |
msgid "Submission delete failed."
|
3963 |
msgstr ""
|
3964 |
|
@@ -4023,43 +4023,43 @@ msgstr ""
|
|
4023 |
|
4024 |
#: admin/classes/class-admin-l10n.php:56 admin/locale.php:918
|
4025 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:25
|
4026 |
-
#: library/helpers/helper-core.php:
|
4027 |
msgid "Monday"
|
4028 |
msgstr ""
|
4029 |
|
4030 |
#: admin/classes/class-admin-l10n.php:57 admin/locale.php:920
|
4031 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:26
|
4032 |
-
#: library/helpers/helper-core.php:
|
4033 |
msgid "Tuesday"
|
4034 |
msgstr ""
|
4035 |
|
4036 |
#: admin/classes/class-admin-l10n.php:58 admin/locale.php:916
|
4037 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:27
|
4038 |
-
#: library/helpers/helper-core.php:
|
4039 |
msgid "Wednesday"
|
4040 |
msgstr ""
|
4041 |
|
4042 |
#: admin/classes/class-admin-l10n.php:59 admin/locale.php:919
|
4043 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:28
|
4044 |
-
#: library/helpers/helper-core.php:
|
4045 |
msgid "Thursday"
|
4046 |
msgstr ""
|
4047 |
|
4048 |
#: admin/classes/class-admin-l10n.php:60 admin/locale.php:921
|
4049 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:29
|
4050 |
-
#: library/helpers/helper-core.php:
|
4051 |
msgid "Friday"
|
4052 |
msgstr ""
|
4053 |
|
4054 |
#: admin/classes/class-admin-l10n.php:61 admin/locale.php:917
|
4055 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:30
|
4056 |
-
#: library/helpers/helper-core.php:
|
4057 |
msgid "Saturday"
|
4058 |
msgstr ""
|
4059 |
|
4060 |
#: admin/classes/class-admin-l10n.php:62 admin/locale.php:915
|
4061 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:31
|
4062 |
-
#: library/helpers/helper-core.php:
|
4063 |
msgid "Sunday"
|
4064 |
msgstr ""
|
4065 |
|
@@ -4160,7 +4160,6 @@ msgid "Form name cannot be empty! Please pick a name for your form."
|
|
4160 |
msgstr ""
|
4161 |
|
4162 |
#: admin/classes/class-admin-l10n.php:83 admin/locale.php:654
|
4163 |
-
#: admin/views/dashboard/black-friday.php:37
|
4164 |
#: admin/views/dashboard/new-feature-notice.php:40
|
4165 |
msgid "Close this dialog window"
|
4166 |
msgstr ""
|
@@ -4369,7 +4368,7 @@ msgid ""
|
|
4369 |
"etc.) on your quiz."
|
4370 |
msgstr ""
|
4371 |
|
4372 |
-
#: admin/classes/class-admin-l10n.php:124 admin/classes/class-admin.php:
|
4373 |
#: admin/views/dashboard/footer-free.php:64
|
4374 |
msgid "Learn more"
|
4375 |
msgstr ""
|
@@ -4580,7 +4579,7 @@ msgstr ""
|
|
4580 |
msgid "Browse"
|
4581 |
msgstr ""
|
4582 |
|
4583 |
-
#: admin/classes/class-admin-l10n.php:188 library/helpers/helper-core.php:
|
4584 |
#: library/modules/quizzes/admin/admin-loader.php:482
|
4585 |
msgid "Clear"
|
4586 |
msgstr ""
|
@@ -5100,7 +5099,7 @@ msgstr ""
|
|
5100 |
#: admin/classes/class-admin-l10n.php:319
|
5101 |
#: library/abstracts/abstract-class-field.php:691
|
5102 |
#: library/abstracts/abstract-class-field.php:692
|
5103 |
-
#: library/helpers/helper-core.php:
|
5104 |
msgid "No file chosen"
|
5105 |
msgstr ""
|
5106 |
|
@@ -5131,43 +5130,43 @@ msgstr ""
|
|
5131 |
|
5132 |
#: admin/classes/class-admin-l10n.php:333
|
5133 |
#: admin/classes/class-admin-l10n.php:384
|
5134 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5135 |
msgid "Su"
|
5136 |
msgstr ""
|
5137 |
|
5138 |
#: admin/classes/class-admin-l10n.php:334
|
5139 |
#: admin/classes/class-admin-l10n.php:385
|
5140 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5141 |
msgid "Mo"
|
5142 |
msgstr ""
|
5143 |
|
5144 |
#: admin/classes/class-admin-l10n.php:335
|
5145 |
#: admin/classes/class-admin-l10n.php:386
|
5146 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5147 |
msgid "Tu"
|
5148 |
msgstr ""
|
5149 |
|
5150 |
#: admin/classes/class-admin-l10n.php:336
|
5151 |
#: admin/classes/class-admin-l10n.php:387
|
5152 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5153 |
msgid "We"
|
5154 |
msgstr ""
|
5155 |
|
5156 |
#: admin/classes/class-admin-l10n.php:337
|
5157 |
#: admin/classes/class-admin-l10n.php:388
|
5158 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5159 |
msgid "Th"
|
5160 |
msgstr ""
|
5161 |
|
5162 |
#: admin/classes/class-admin-l10n.php:338
|
5163 |
#: admin/classes/class-admin-l10n.php:389
|
5164 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5165 |
msgid "Fr"
|
5166 |
msgstr ""
|
5167 |
|
5168 |
#: admin/classes/class-admin-l10n.php:339
|
5169 |
#: admin/classes/class-admin-l10n.php:390
|
5170 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5171 |
msgid "Sa"
|
5172 |
msgstr ""
|
5173 |
|
@@ -5193,7 +5192,7 @@ msgstr ""
|
|
5193 |
|
5194 |
#: admin/classes/class-admin-l10n.php:346
|
5195 |
#: admin/classes/class-admin-l10n.php:406
|
5196 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5197 |
msgid "May"
|
5198 |
msgstr ""
|
5199 |
|
@@ -5244,35 +5243,35 @@ msgstr ""
|
|
5244 |
msgid "Forminator"
|
5245 |
msgstr ""
|
5246 |
|
5247 |
-
#: admin/classes/class-admin.php:
|
5248 |
msgid "Forminator Dashboard"
|
5249 |
msgstr ""
|
5250 |
|
5251 |
-
#: admin/classes/class-admin.php:
|
5252 |
#: admin/views/settings/tab-dashboard.php:19
|
5253 |
msgid "Dashboard"
|
5254 |
msgstr ""
|
5255 |
|
5256 |
-
#: admin/classes/class-admin.php:
|
5257 |
#: admin/locale.php:619 admin/views/integrations/header.php:1
|
5258 |
msgid "Integrations"
|
5259 |
msgstr ""
|
5260 |
|
5261 |
-
#: admin/classes/class-admin.php:
|
5262 |
msgid "Global Settings"
|
5263 |
msgstr ""
|
5264 |
|
5265 |
-
#: admin/classes/class-admin.php:
|
5266 |
#: admin/locale.php:176 admin/views/settings/header.php:1
|
5267 |
#: library/modules/quizzes/admin/admin-loader.php:464
|
5268 |
msgid "Settings"
|
5269 |
msgstr ""
|
5270 |
|
5271 |
-
#: admin/classes/class-admin.php:
|
5272 |
msgid "Forminator Submissions"
|
5273 |
msgstr ""
|
5274 |
|
5275 |
-
#: admin/classes/class-admin.php:
|
5276 |
#: admin/views/custom-form/entries/header.php:1
|
5277 |
#: admin/views/custom-form/list/content.php:313
|
5278 |
#: admin/views/custom-form/list/content.php:465
|
@@ -5286,16 +5285,16 @@ msgstr ""
|
|
5286 |
msgid "Submissions"
|
5287 |
msgstr ""
|
5288 |
|
5289 |
-
#: admin/classes/class-admin.php:
|
5290 |
#: admin/views/upgrade/upgrade-content.php:17
|
5291 |
msgid "Upgrade to Forminator Pro"
|
5292 |
msgstr ""
|
5293 |
|
5294 |
-
#: admin/classes/class-admin.php:
|
5295 |
msgid "Forminator - Import your Contact Form 7 forms automatically"
|
5296 |
msgstr ""
|
5297 |
|
5298 |
-
#: admin/classes/class-admin.php:
|
5299 |
msgid ""
|
5300 |
"We noticed that Contact Form 7 is active on your website. You can use our "
|
5301 |
"built-in Contact Form 7 importer to import your existing forms and the "
|
@@ -5303,19 +5302,18 @@ msgid ""
|
|
5303 |
"supports the most widely used add-ons as well."
|
5304 |
msgstr ""
|
5305 |
|
5306 |
-
#: admin/classes/class-admin.php:
|
5307 |
msgid "Import Contact Form 7 Forms"
|
5308 |
msgstr ""
|
5309 |
|
5310 |
-
#: admin/classes/class-admin.php:
|
5311 |
-
#: admin/classes/class-admin.php:610
|
5312 |
#: library/lib/dash-notice/wpmudev-dash-notification.php:248
|
5313 |
#: library/lib/dash-notice/wpmudev-dash-notification.php:289
|
5314 |
#: library/lib/recommended-plugins/notice.php:491
|
5315 |
msgid "Dismiss"
|
5316 |
msgstr ""
|
5317 |
|
5318 |
-
#: admin/classes/class-admin.php:
|
5319 |
msgid ""
|
5320 |
"To make Forminator's Stripe field <a href=\"%s\" target=\"_blank\">SCA "
|
5321 |
"Compliant</a>, we have replaced the Stripe Checkout modal with Stripe "
|
@@ -5324,7 +5322,7 @@ msgid ""
|
|
5324 |
"updated, but we recommend checking them to ensure everything works fine."
|
5325 |
msgstr ""
|
5326 |
|
5327 |
-
#: admin/classes/class-admin.php:
|
5328 |
msgid ""
|
5329 |
"Awesome! You've published more than %d modules with Forminator. Hope you "
|
5330 |
"are enjoying it so far. We have spent countless hours developing this free "
|
@@ -5332,8 +5330,8 @@ msgid ""
|
|
5332 |
"rating on wp.org to help us spread the word and boost our motivation."
|
5333 |
msgstr ""
|
5334 |
|
5335 |
-
#: admin/classes/class-admin.php:
|
5336 |
-
#: admin/classes/class-admin.php:
|
5337 |
#: admin/views/custom-form/entries/prompt.php:24
|
5338 |
#: admin/views/custom-form/entries/prompt.php:49
|
5339 |
#: admin/views/poll/entries/prompt.php:21
|
@@ -5341,7 +5339,7 @@ msgstr ""
|
|
5341 |
msgid "Rate Forminator"
|
5342 |
msgstr ""
|
5343 |
|
5344 |
-
#: admin/classes/class-admin.php:
|
5345 |
#: admin/views/custom-form/entries/prompt.php:28
|
5346 |
#: admin/views/custom-form/entries/prompt.php:53
|
5347 |
#: admin/views/poll/entries/prompt.php:25
|
@@ -5349,7 +5347,7 @@ msgstr ""
|
|
5349 |
msgid "Maybe later"
|
5350 |
msgstr ""
|
5351 |
|
5352 |
-
#: admin/classes/class-admin.php:
|
5353 |
#: admin/views/custom-form/entries/prompt.php:32
|
5354 |
#: admin/views/custom-form/entries/prompt.php:57
|
5355 |
#: admin/views/poll/entries/prompt.php:29
|
@@ -5357,7 +5355,7 @@ msgstr ""
|
|
5357 |
msgid "No Thanks"
|
5358 |
msgstr ""
|
5359 |
|
5360 |
-
#: admin/classes/class-admin.php:
|
5361 |
msgid ""
|
5362 |
"Excellent! You've been using Forminator for a while now. Hope you are "
|
5363 |
"enjoying it so far. We have spent countless hours developing this free "
|
@@ -5365,59 +5363,19 @@ msgid ""
|
|
5365 |
"rating on wp.org to help us spread the word and boost our motivation."
|
5366 |
msgstr ""
|
5367 |
|
5368 |
-
#: admin/classes/class-admin.php:
|
5369 |
-
msgid "60% OFF"
|
5370 |
-
msgstr ""
|
5371 |
-
|
5372 |
-
#: admin/classes/class-admin.php:549
|
5373 |
-
msgid "Black Friday 60% OFF Forminator Pro!"
|
5374 |
-
msgstr ""
|
5375 |
-
|
5376 |
-
#: admin/classes/class-admin.php:555
|
5377 |
-
msgid "Limited Black Friday offer!"
|
5378 |
-
msgstr ""
|
5379 |
-
|
5380 |
-
#: admin/classes/class-admin.php:561 admin/locale.php:852
|
5381 |
-
msgid "Days"
|
5382 |
-
msgstr ""
|
5383 |
-
|
5384 |
-
#: admin/classes/class-admin.php:571 admin/locale.php:577
|
5385 |
-
#: library/fields/time.php:71
|
5386 |
-
msgid "Hours"
|
5387 |
-
msgstr ""
|
5388 |
-
|
5389 |
-
#: admin/classes/class-admin.php:581 admin/locale.php:578
|
5390 |
-
#: library/fields/time.php:73
|
5391 |
-
msgid "Minutes"
|
5392 |
-
msgstr ""
|
5393 |
-
|
5394 |
-
#: admin/classes/class-admin.php:599
|
5395 |
-
msgid ""
|
5396 |
-
"Get Forminator Pro for the lowest price you will ever see and unlock "
|
5397 |
-
"eSignature, 24/7 support, and upcoming subscription payments!"
|
5398 |
-
msgstr ""
|
5399 |
-
|
5400 |
-
#: admin/classes/class-admin.php:601
|
5401 |
-
msgid "*Only admin users can see this message"
|
5402 |
-
msgstr ""
|
5403 |
-
|
5404 |
-
#: admin/classes/class-admin.php:606
|
5405 |
-
msgid "Get 60% OFF Forminator Pro"
|
5406 |
-
msgstr ""
|
5407 |
-
|
5408 |
-
#: admin/classes/class-admin.php:688
|
5409 |
msgid "Go to Forminator Settings"
|
5410 |
msgstr ""
|
5411 |
|
5412 |
-
#: admin/classes/class-admin.php:
|
5413 |
-
msgid "Upgrade
|
5414 |
msgstr ""
|
5415 |
|
5416 |
-
#: admin/classes/class-admin.php:
|
5417 |
msgid "Renew Your Membership"
|
5418 |
msgstr ""
|
5419 |
|
5420 |
-
#: admin/classes/class-admin.php:
|
5421 |
msgid "Renew Membership"
|
5422 |
msgstr ""
|
5423 |
|
@@ -5425,26 +5383,26 @@ msgstr ""
|
|
5425 |
msgid "WPMU DEV"
|
5426 |
msgstr ""
|
5427 |
|
5428 |
-
#: admin/classes/class-admin.php:
|
5429 |
msgid "By %s"
|
5430 |
msgstr ""
|
5431 |
|
5432 |
-
#: admin/classes/class-admin.php:
|
5433 |
#. translators: %s: Plugin name.
|
5434 |
msgid "More information about %s"
|
5435 |
msgstr ""
|
5436 |
|
5437 |
-
#: admin/classes/class-admin.php:
|
5438 |
msgid "View details"
|
5439 |
msgstr ""
|
5440 |
|
5441 |
-
#: admin/classes/class-admin.php:
|
5442 |
msgid "Premium Support"
|
5443 |
msgstr ""
|
5444 |
|
5445 |
#: admin/classes/thirdparty-importers/class-importer-cf7.php:94
|
5446 |
#: library/modules/custom-forms/admin/admin-loader.php:434
|
5447 |
-
#: library/modules/custom-forms/front/front-render.php:
|
5448 |
msgid "Submitting..."
|
5449 |
msgstr ""
|
5450 |
|
@@ -5600,7 +5558,7 @@ msgstr ""
|
|
5600 |
msgid "Arrows color"
|
5601 |
msgstr ""
|
5602 |
|
5603 |
-
#: admin/locale.php:47 library/helpers/helper-core.php:
|
5604 |
msgid "Default"
|
5605 |
msgstr ""
|
5606 |
|
@@ -6413,7 +6371,7 @@ msgid "Edit field"
|
|
6413 |
msgstr ""
|
6414 |
|
6415 |
#: admin/locale.php:257
|
6416 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
6417 |
msgid "PayPal Checkout"
|
6418 |
msgstr ""
|
6419 |
|
@@ -6421,7 +6379,7 @@ msgstr ""
|
|
6421 |
msgid "Pay with PayPal"
|
6422 |
msgstr ""
|
6423 |
|
6424 |
-
#: admin/locale.php:259 admin/views/settings/payments/section-paypal.php:
|
6425 |
#: library/fields/paypal.php:58
|
6426 |
msgid "PayPal"
|
6427 |
msgstr ""
|
@@ -6433,10 +6391,10 @@ msgid ""
|
|
6433 |
"after a successful payment."
|
6434 |
msgstr ""
|
6435 |
|
6436 |
-
#: admin/locale.php:261 library/helpers/helper-core.php:
|
6437 |
#: library/modules/custom-forms/form-templates/template-leads.php:117
|
6438 |
#: library/modules/custom-forms/front/front-render.php:2129
|
6439 |
-
#: library/modules/polls/front/front-render.php:
|
6440 |
#: library/modules/quizzes/admin/admin-loader.php:527
|
6441 |
#: library/render/class-render-form.php:530
|
6442 |
msgid "Submit"
|
@@ -6695,8 +6653,8 @@ msgstr ""
|
|
6695 |
|
6696 |
#: admin/locale.php:321 library/class-export.php:1002
|
6697 |
#: library/fields/currency.php:66 library/fields/currency.php:84
|
6698 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
6699 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
6700 |
msgid "Currency"
|
6701 |
msgstr ""
|
6702 |
|
@@ -7063,11 +7021,11 @@ msgid ""
|
|
7063 |
"to the {{strong}}Live{{/strong}} payments mode."
|
7064 |
msgstr ""
|
7065 |
|
7066 |
-
#: admin/locale.php:406 admin/views/settings/payments/section-paypal.php:
|
7067 |
msgid "Sandbox"
|
7068 |
msgstr ""
|
7069 |
|
7070 |
-
#: admin/locale.php:407 admin/views/settings/payments/section-paypal.php:
|
7071 |
#: admin/views/settings/payments/section-stripe.php:97
|
7072 |
msgid "Live"
|
7073 |
msgstr ""
|
@@ -7361,8 +7319,8 @@ msgstr ""
|
|
7361 |
#: admin/views/settings/dashboard/forms.php:34
|
7362 |
#: admin/views/settings/dashboard/polls.php:32
|
7363 |
#: admin/views/settings/dashboard/quizzes.php:33 library/class-export.php:994
|
7364 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
7365 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
7366 |
msgid "Status"
|
7367 |
msgstr ""
|
7368 |
|
@@ -7839,6 +7797,14 @@ msgstr ""
|
|
7839 |
msgid "24 hour"
|
7840 |
msgstr ""
|
7841 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7842 |
#: admin/locale.php:579
|
7843 |
msgid "Increments"
|
7844 |
msgstr ""
|
@@ -9041,6 +9007,10 @@ msgstr ""
|
|
9041 |
msgid "Your default setting value is to keep the submissions"
|
9042 |
msgstr ""
|
9043 |
|
|
|
|
|
|
|
|
|
9044 |
#: admin/locale.php:853
|
9045 |
msgid "Weeks"
|
9046 |
msgstr ""
|
@@ -9385,7 +9355,7 @@ msgstr ""
|
|
9385 |
msgid "No Previous button"
|
9386 |
msgstr ""
|
9387 |
|
9388 |
-
#: admin/locale.php:944 library/helpers/helper-core.php:
|
9389 |
#: library/modules/custom-forms/front/front-render.php:960
|
9390 |
msgid "Previous"
|
9391 |
msgstr ""
|
@@ -10393,7 +10363,7 @@ msgid "Link text"
|
|
10393 |
msgstr ""
|
10394 |
|
10395 |
#: admin/locale.php:1179
|
10396 |
-
#: library/modules/custom-forms/front/front-render.php:
|
10397 |
msgid "Skip and continue"
|
10398 |
msgstr ""
|
10399 |
|
@@ -11635,58 +11605,6 @@ msgstr ""
|
|
11635 |
msgid "Paste exported form above."
|
11636 |
msgstr ""
|
11637 |
|
11638 |
-
#: admin/views/dashboard/black-friday.php:44
|
11639 |
-
msgid "Forminator Pro 60% OFF"
|
11640 |
-
msgstr ""
|
11641 |
-
|
11642 |
-
#: admin/views/dashboard/black-friday.php:46
|
11643 |
-
msgid "For all your form needs."
|
11644 |
-
msgstr ""
|
11645 |
-
|
11646 |
-
#: admin/views/dashboard/black-friday.php:48
|
11647 |
-
msgid "Before $60 per year, now $24 per year. A total of 8 months free!"
|
11648 |
-
msgstr ""
|
11649 |
-
|
11650 |
-
#: admin/views/dashboard/black-friday.php:55
|
11651 |
-
msgid "year"
|
11652 |
-
msgstr ""
|
11653 |
-
|
11654 |
-
#: admin/views/dashboard/black-friday.php:58
|
11655 |
-
msgid "Total of 8 months free!"
|
11656 |
-
msgstr ""
|
11657 |
-
|
11658 |
-
#: admin/views/dashboard/black-friday.php:62
|
11659 |
-
msgid "Get 60% Off Forminator Pro"
|
11660 |
-
msgstr ""
|
11661 |
-
|
11662 |
-
#: admin/views/dashboard/black-friday.php:64
|
11663 |
-
msgid "Forminator Pro Benefits"
|
11664 |
-
msgstr ""
|
11665 |
-
|
11666 |
-
#: admin/views/dashboard/black-friday.php:70
|
11667 |
-
msgid "eSignature Module"
|
11668 |
-
msgstr ""
|
11669 |
-
|
11670 |
-
#: admin/views/dashboard/black-friday.php:75
|
11671 |
-
msgid "Subscription Payments"
|
11672 |
-
msgstr ""
|
11673 |
-
|
11674 |
-
#: admin/views/dashboard/black-friday.php:75
|
11675 |
-
msgid "Coming Soon"
|
11676 |
-
msgstr ""
|
11677 |
-
|
11678 |
-
#: admin/views/dashboard/black-friday.php:80
|
11679 |
-
msgid "All Future Pro Extensions"
|
11680 |
-
msgstr ""
|
11681 |
-
|
11682 |
-
#: admin/views/dashboard/black-friday.php:85
|
11683 |
-
msgid "24/7 Support"
|
11684 |
-
msgstr ""
|
11685 |
-
|
11686 |
-
#: admin/views/dashboard/black-friday.php:98
|
11687 |
-
msgid "Check All Plans"
|
11688 |
-
msgstr ""
|
11689 |
-
|
11690 |
#: admin/views/dashboard/footer-free.php:3
|
11691 |
msgid "Check out our other free wordpress.org plugins!"
|
11692 |
msgstr ""
|
@@ -11818,7 +11736,7 @@ msgid "Active Modules"
|
|
11818 |
msgstr ""
|
11819 |
|
11820 |
#: admin/views/dashboard/widgets/widget-resume.php:33
|
11821 |
-
#: library/helpers/helper-forms.php:
|
11822 |
msgid "Never"
|
11823 |
msgstr ""
|
11824 |
|
@@ -12454,72 +12372,66 @@ msgstr ""
|
|
12454 |
msgid "Enter your live secret id"
|
12455 |
msgstr ""
|
12456 |
|
12457 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12458 |
msgid "Use PayPal Checkout to process payments in your forms."
|
12459 |
msgstr ""
|
12460 |
|
12461 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12462 |
#. translators: ...
|
12463 |
msgid ""
|
12464 |
"To be able to use PayPal Payments feature please upgrade your PHP to "
|
12465 |
"%1$sversion %2$s%3$s or above."
|
12466 |
msgstr ""
|
12467 |
|
12468 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12469 |
-
msgid ""
|
12470 |
-
"Failed to load PayPal Library, possibly conflict with other plugins. Please "
|
12471 |
-
"contact our support ."
|
12472 |
-
msgstr ""
|
12473 |
-
|
12474 |
-
#: admin/views/settings/payments/section-paypal.php:51
|
12475 |
#: admin/views/settings/payments/section-stripe.php:52
|
12476 |
msgid "Authorization"
|
12477 |
msgstr ""
|
12478 |
|
12479 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12480 |
msgid ""
|
12481 |
"Connect your PayPal business account with Forminator to use PayPal field "
|
12482 |
"for collecting payments in your forms."
|
12483 |
msgstr ""
|
12484 |
|
12485 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12486 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12487 |
msgid "Connect PayPal Account"
|
12488 |
msgstr ""
|
12489 |
|
12490 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12491 |
msgid "Connect To PayPal"
|
12492 |
msgstr ""
|
12493 |
|
12494 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12495 |
msgid "Account Type"
|
12496 |
msgstr ""
|
12497 |
|
12498 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12499 |
msgid "Client Id"
|
12500 |
msgstr ""
|
12501 |
|
12502 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12503 |
msgid "Disconnect PayPal Account"
|
12504 |
msgstr ""
|
12505 |
|
12506 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12507 |
msgid ""
|
12508 |
"Are you sure you want to disconnect your PayPal Account? This will affect "
|
12509 |
"the forms using the PayPal field."
|
12510 |
msgstr ""
|
12511 |
|
12512 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12513 |
#: admin/views/settings/payments/section-stripe.php:139
|
12514 |
msgid "Configure"
|
12515 |
msgstr ""
|
12516 |
|
12517 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12518 |
#: admin/views/settings/payments/section-stripe.php:155
|
12519 |
msgid "Default charge currency"
|
12520 |
msgstr ""
|
12521 |
|
12522 |
-
#: admin/views/settings/payments/section-paypal.php:
|
12523 |
msgid ""
|
12524 |
"Choose the default charge currency for your PayPal payments. You can "
|
12525 |
"override this while setting up the PayPal field in your forms."
|
@@ -13401,7 +13313,7 @@ msgstr ""
|
|
13401 |
msgid "Poll ID is required!"
|
13402 |
msgstr ""
|
13403 |
|
13404 |
-
#: library/class-api.php:1166 library/modules/polls/front/front-render.php:
|
13405 |
msgid "Poll not found!"
|
13406 |
msgstr ""
|
13407 |
|
@@ -13473,8 +13385,8 @@ msgstr ""
|
|
13473 |
msgid "Post Custom Data"
|
13474 |
msgstr ""
|
13475 |
|
13476 |
-
#: library/class-export.php:133 library/helpers/helper-core.php:
|
13477 |
-
#: library/modules/custom-forms/admin/admin-page-view.php:
|
13478 |
#: library/modules/polls/admin/admin-page-view.php:414
|
13479 |
#: library/modules/quizzes/admin/admin-page-view.php:495
|
13480 |
msgid "forminator"
|
@@ -13502,20 +13414,20 @@ msgid "Submission Time"
|
|
13502 |
msgstr ""
|
13503 |
|
13504 |
#: library/class-export.php:990
|
13505 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13506 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13507 |
msgid "Mode"
|
13508 |
msgstr ""
|
13509 |
|
13510 |
#: library/class-export.php:998
|
13511 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13512 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13513 |
msgid "Amount"
|
13514 |
msgstr ""
|
13515 |
|
13516 |
#: library/class-export.php:1006 library/helpers/helper-fields.php:415
|
13517 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13518 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13519 |
msgid "Transaction ID"
|
13520 |
msgstr ""
|
13521 |
|
@@ -13601,8 +13513,8 @@ msgid "Select Quiz"
|
|
13601 |
msgstr ""
|
13602 |
|
13603 |
#: library/field-autofill-providers/class-wp-post.php:26
|
13604 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13605 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
13606 |
#: library/modules/quizzes/admin/admin-page-entries.php:669
|
13607 |
msgid "ID"
|
13608 |
msgstr ""
|
@@ -14007,6 +13919,22 @@ msgstr ""
|
|
14007 |
msgid "This field is required. Please enter text."
|
14008 |
msgstr ""
|
14009 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14010 |
#: library/fields/phone.php:84
|
14011 |
msgid "E.g. +1 300 400 5000"
|
14012 |
msgstr ""
|
@@ -14212,15 +14140,11 @@ msgstr ""
|
|
14212 |
msgid "This field is required. Please input a valid URL."
|
14213 |
msgstr ""
|
14214 |
|
14215 |
-
#: library/gateways/class-paypal-express.php:
|
14216 |
-
msgid "PayPal payment fail"
|
14217 |
-
msgstr ""
|
14218 |
-
|
14219 |
-
#: library/gateways/class-paypal-express.php:314
|
14220 |
msgid "Failed to configure PayPal payment"
|
14221 |
msgstr ""
|
14222 |
|
14223 |
-
#: library/gateways/class-paypal-express.php:
|
14224 |
msgid ""
|
14225 |
"Some error has occurred while connecting to your PayPal account. Please "
|
14226 |
"resolve the following errors and try to connect again."
|
@@ -14242,355 +14166,355 @@ msgstr ""
|
|
14242 |
msgid "Unlock this as part of a WPMU DEV Membership"
|
14243 |
msgstr ""
|
14244 |
|
14245 |
-
#: library/helpers/helper-core.php:
|
14246 |
msgid "Clear color"
|
14247 |
msgstr ""
|
14248 |
|
14249 |
-
#: library/helpers/helper-core.php:
|
14250 |
msgid "Select default color"
|
14251 |
msgstr ""
|
14252 |
|
14253 |
-
#: library/helpers/helper-core.php:
|
14254 |
msgid "Select Color"
|
14255 |
msgstr ""
|
14256 |
|
14257 |
-
#: library/helpers/helper-core.php:
|
14258 |
msgid "Color value"
|
14259 |
msgstr ""
|
14260 |
|
14261 |
-
#: library/helpers/helper-core.php:
|
14262 |
msgid "Submitting form, please wait"
|
14263 |
msgstr ""
|
14264 |
|
14265 |
-
#: library/helpers/helper-core.php:
|
14266 |
msgid "An error occurred processing the form. Please try again"
|
14267 |
msgstr ""
|
14268 |
|
14269 |
-
#: library/helpers/helper-core.php:
|
14270 |
msgid "An upload error occurred processing the form. Please try again"
|
14271 |
msgstr ""
|
14272 |
|
14273 |
-
#: library/helpers/helper-core.php:
|
14274 |
msgid "Processing payment, please wait"
|
14275 |
msgstr ""
|
14276 |
|
14277 |
-
#: library/helpers/helper-core.php:
|
14278 |
msgid "Success! Payment confirmed. Submitting form, please wait"
|
14279 |
msgstr ""
|
14280 |
|
14281 |
-
#: library/helpers/helper-core.php:
|
14282 |
msgid "Error! Something went wrong when verifying the payment"
|
14283 |
msgstr ""
|
14284 |
|
14285 |
-
#: library/helpers/helper-core.php:
|
14286 |
msgid "Invalid CAPTCHA"
|
14287 |
msgstr ""
|
14288 |
|
14289 |
-
#: library/helpers/helper-core.php:
|
14290 |
msgid "Please try again"
|
14291 |
msgstr ""
|
14292 |
|
14293 |
-
#: library/helpers/helper-core.php:
|
14294 |
msgid "Submitting vote, please wait"
|
14295 |
msgstr ""
|
14296 |
|
14297 |
-
#: library/helpers/helper-core.php:
|
14298 |
msgid "An error occurred saving the vote. Please try again"
|
14299 |
msgstr ""
|
14300 |
|
14301 |
-
#: library/helpers/helper-core.php:
|
14302 |
msgid "Loading more results…"
|
14303 |
msgstr ""
|
14304 |
|
14305 |
-
#: library/helpers/helper-core.php:
|
14306 |
msgid "No results found"
|
14307 |
msgstr ""
|
14308 |
|
14309 |
-
#: library/helpers/helper-core.php:
|
14310 |
msgid "Searching…"
|
14311 |
msgstr ""
|
14312 |
|
14313 |
-
#: library/helpers/helper-core.php:
|
14314 |
msgid "The results could not be loaded."
|
14315 |
msgstr ""
|
14316 |
|
14317 |
-
#: library/helpers/helper-core.php:
|
14318 |
msgid "Arabic"
|
14319 |
msgstr ""
|
14320 |
|
14321 |
-
#: library/helpers/helper-core.php:
|
14322 |
msgid "Afrikaans"
|
14323 |
msgstr ""
|
14324 |
|
14325 |
-
#: library/helpers/helper-core.php:
|
14326 |
msgid "Amharic"
|
14327 |
msgstr ""
|
14328 |
|
14329 |
-
#: library/helpers/helper-core.php:
|
14330 |
msgid "Armenian"
|
14331 |
msgstr ""
|
14332 |
|
14333 |
-
#: library/helpers/helper-core.php:
|
14334 |
msgid "Azerbaijani"
|
14335 |
msgstr ""
|
14336 |
|
14337 |
-
#: library/helpers/helper-core.php:
|
14338 |
msgid "Basque"
|
14339 |
msgstr ""
|
14340 |
|
14341 |
-
#: library/helpers/helper-core.php:
|
14342 |
msgid "Bengali"
|
14343 |
msgstr ""
|
14344 |
|
14345 |
-
#: library/helpers/helper-core.php:
|
14346 |
msgid "Bulgarian"
|
14347 |
msgstr ""
|
14348 |
|
14349 |
-
#: library/helpers/helper-core.php:
|
14350 |
msgid "Catalan"
|
14351 |
msgstr ""
|
14352 |
|
14353 |
-
#: library/helpers/helper-core.php:
|
14354 |
msgid "Chinese (Hong Kong)"
|
14355 |
msgstr ""
|
14356 |
|
14357 |
-
#: library/helpers/helper-core.php:
|
14358 |
msgid "Chinese (Simplified)"
|
14359 |
msgstr ""
|
14360 |
|
14361 |
-
#: library/helpers/helper-core.php:
|
14362 |
msgid "Chinese (Traditional)"
|
14363 |
msgstr ""
|
14364 |
|
14365 |
-
#: library/helpers/helper-core.php:
|
14366 |
msgid "Croatian"
|
14367 |
msgstr ""
|
14368 |
|
14369 |
-
#: library/helpers/helper-core.php:
|
14370 |
msgid "Czech"
|
14371 |
msgstr ""
|
14372 |
|
14373 |
-
#: library/helpers/helper-core.php:
|
14374 |
msgid "Danish"
|
14375 |
msgstr ""
|
14376 |
|
14377 |
-
#: library/helpers/helper-core.php:
|
14378 |
msgid "Dutch"
|
14379 |
msgstr ""
|
14380 |
|
14381 |
-
#: library/helpers/helper-core.php:
|
14382 |
msgid "English (UK)"
|
14383 |
msgstr ""
|
14384 |
|
14385 |
-
#: library/helpers/helper-core.php:
|
14386 |
msgid "English (US)"
|
14387 |
msgstr ""
|
14388 |
|
14389 |
-
#: library/helpers/helper-core.php:
|
14390 |
msgid "Estonian"
|
14391 |
msgstr ""
|
14392 |
|
14393 |
-
#: library/helpers/helper-core.php:
|
14394 |
msgid "Filipino"
|
14395 |
msgstr ""
|
14396 |
|
14397 |
-
#: library/helpers/helper-core.php:
|
14398 |
msgid "Finnish"
|
14399 |
msgstr ""
|
14400 |
|
14401 |
-
#: library/helpers/helper-core.php:
|
14402 |
msgid "French"
|
14403 |
msgstr ""
|
14404 |
|
14405 |
-
#: library/helpers/helper-core.php:
|
14406 |
msgid "French (Canadian)"
|
14407 |
msgstr ""
|
14408 |
|
14409 |
-
#: library/helpers/helper-core.php:
|
14410 |
msgid "Galician"
|
14411 |
msgstr ""
|
14412 |
|
14413 |
-
#: library/helpers/helper-core.php:
|
14414 |
msgid "Georgian"
|
14415 |
msgstr ""
|
14416 |
|
14417 |
-
#: library/helpers/helper-core.php:
|
14418 |
msgid "German"
|
14419 |
msgstr ""
|
14420 |
|
14421 |
-
#: library/helpers/helper-core.php:
|
14422 |
msgid "German (Austria)"
|
14423 |
msgstr ""
|
14424 |
|
14425 |
-
#: library/helpers/helper-core.php:
|
14426 |
msgid "German (Switzerland)"
|
14427 |
msgstr ""
|
14428 |
|
14429 |
-
#: library/helpers/helper-core.php:
|
14430 |
msgid "Greek"
|
14431 |
msgstr ""
|
14432 |
|
14433 |
-
#: library/helpers/helper-core.php:
|
14434 |
msgid "Gujarati"
|
14435 |
msgstr ""
|
14436 |
|
14437 |
-
#: library/helpers/helper-core.php:
|
14438 |
msgid "Hebrew"
|
14439 |
msgstr ""
|
14440 |
|
14441 |
-
#: library/helpers/helper-core.php:
|
14442 |
msgid "Hindi"
|
14443 |
msgstr ""
|
14444 |
|
14445 |
-
#: library/helpers/helper-core.php:
|
14446 |
msgid "Hungarain"
|
14447 |
msgstr ""
|
14448 |
|
14449 |
-
#: library/helpers/helper-core.php:
|
14450 |
msgid "Icelandic"
|
14451 |
msgstr ""
|
14452 |
|
14453 |
-
#: library/helpers/helper-core.php:
|
14454 |
msgid "Indonesian"
|
14455 |
msgstr ""
|
14456 |
|
14457 |
-
#: library/helpers/helper-core.php:
|
14458 |
msgid "Italian"
|
14459 |
msgstr ""
|
14460 |
|
14461 |
-
#: library/helpers/helper-core.php:
|
14462 |
msgid "Japanese"
|
14463 |
msgstr ""
|
14464 |
|
14465 |
-
#: library/helpers/helper-core.php:
|
14466 |
msgid "Kannada"
|
14467 |
msgstr ""
|
14468 |
|
14469 |
-
#: library/helpers/helper-core.php:
|
14470 |
msgid "Korean"
|
14471 |
msgstr ""
|
14472 |
|
14473 |
-
#: library/helpers/helper-core.php:
|
14474 |
msgid "Laothian"
|
14475 |
msgstr ""
|
14476 |
|
14477 |
-
#: library/helpers/helper-core.php:
|
14478 |
msgid "Latvian"
|
14479 |
msgstr ""
|
14480 |
|
14481 |
-
#: library/helpers/helper-core.php:
|
14482 |
msgid "Lithuanian"
|
14483 |
msgstr ""
|
14484 |
|
14485 |
-
#: library/helpers/helper-core.php:
|
14486 |
msgid "Malay"
|
14487 |
msgstr ""
|
14488 |
|
14489 |
-
#: library/helpers/helper-core.php:
|
14490 |
msgid "Malayalam"
|
14491 |
msgstr ""
|
14492 |
|
14493 |
-
#: library/helpers/helper-core.php:
|
14494 |
msgid "Marathi"
|
14495 |
msgstr ""
|
14496 |
|
14497 |
-
#: library/helpers/helper-core.php:
|
14498 |
msgid "Mongolian"
|
14499 |
msgstr ""
|
14500 |
|
14501 |
-
#: library/helpers/helper-core.php:
|
14502 |
msgid "Norwegian"
|
14503 |
msgstr ""
|
14504 |
|
14505 |
-
#: library/helpers/helper-core.php:
|
14506 |
msgid "Persian"
|
14507 |
msgstr ""
|
14508 |
|
14509 |
-
#: library/helpers/helper-core.php:
|
14510 |
msgid "Polish"
|
14511 |
msgstr ""
|
14512 |
|
14513 |
-
#: library/helpers/helper-core.php:
|
14514 |
msgid "Portuguese"
|
14515 |
msgstr ""
|
14516 |
|
14517 |
-
#: library/helpers/helper-core.php:
|
14518 |
msgid "Portuguese (Brazil)"
|
14519 |
msgstr ""
|
14520 |
|
14521 |
-
#: library/helpers/helper-core.php:
|
14522 |
msgid "Portuguese (Portugal)"
|
14523 |
msgstr ""
|
14524 |
|
14525 |
-
#: library/helpers/helper-core.php:
|
14526 |
msgid "Romanian"
|
14527 |
msgstr ""
|
14528 |
|
14529 |
-
#: library/helpers/helper-core.php:
|
14530 |
msgid "Russian"
|
14531 |
msgstr ""
|
14532 |
|
14533 |
-
#: library/helpers/helper-core.php:
|
14534 |
msgid "Serbian"
|
14535 |
msgstr ""
|
14536 |
|
14537 |
-
#: library/helpers/helper-core.php:
|
14538 |
msgid "Sinhalese"
|
14539 |
msgstr ""
|
14540 |
|
14541 |
-
#: library/helpers/helper-core.php:
|
14542 |
msgid "Slovak"
|
14543 |
msgstr ""
|
14544 |
|
14545 |
-
#: library/helpers/helper-core.php:
|
14546 |
msgid "Slovenian"
|
14547 |
msgstr ""
|
14548 |
|
14549 |
-
#: library/helpers/helper-core.php:
|
14550 |
msgid "Spanish"
|
14551 |
msgstr ""
|
14552 |
|
14553 |
-
#: library/helpers/helper-core.php:
|
14554 |
msgid "Spanish (Latin America)"
|
14555 |
msgstr ""
|
14556 |
|
14557 |
-
#: library/helpers/helper-core.php:
|
14558 |
msgid "Swahili"
|
14559 |
msgstr ""
|
14560 |
|
14561 |
-
#: library/helpers/helper-core.php:
|
14562 |
msgid "Swedish"
|
14563 |
msgstr ""
|
14564 |
|
14565 |
-
#: library/helpers/helper-core.php:
|
14566 |
msgid "Tamil"
|
14567 |
msgstr ""
|
14568 |
|
14569 |
-
#: library/helpers/helper-core.php:
|
14570 |
msgid "Telugu"
|
14571 |
msgstr ""
|
14572 |
|
14573 |
-
#: library/helpers/helper-core.php:
|
14574 |
msgid "Thai"
|
14575 |
msgstr ""
|
14576 |
|
14577 |
-
#: library/helpers/helper-core.php:
|
14578 |
msgid "Turkish"
|
14579 |
msgstr ""
|
14580 |
|
14581 |
-
#: library/helpers/helper-core.php:
|
14582 |
msgid "Ukrainian"
|
14583 |
msgstr ""
|
14584 |
|
14585 |
-
#: library/helpers/helper-core.php:
|
14586 |
msgid "Urdu"
|
14587 |
msgstr ""
|
14588 |
|
14589 |
-
#: library/helpers/helper-core.php:
|
14590 |
msgid "Vietnamese"
|
14591 |
msgstr ""
|
14592 |
|
14593 |
-
#: library/helpers/helper-core.php:
|
14594 |
msgid "Zulu"
|
14595 |
msgstr ""
|
14596 |
|
@@ -15670,16 +15594,16 @@ msgstr ""
|
|
15670 |
msgid "%1$sTotal Question Answered%2$s : %3$d"
|
15671 |
msgstr ""
|
15672 |
|
15673 |
-
#: library/helpers/helper-forms.php:
|
15674 |
msgid "…"
|
15675 |
msgstr ""
|
15676 |
|
15677 |
-
#: library/helpers/helper-forms.php:
|
15678 |
#. translators: ...
|
15679 |
msgid "%s ago"
|
15680 |
msgstr ""
|
15681 |
|
15682 |
-
#: library/helpers/helper-forms.php:
|
15683 |
msgid "I got {quiz_result} on {quiz_name} quiz!"
|
15684 |
msgstr ""
|
15685 |
|
@@ -15797,36 +15721,36 @@ msgstr ""
|
|
15797 |
msgid "Generate leads with pop-ups, slide-ins and email opt-ins."
|
15798 |
msgstr ""
|
15799 |
|
15800 |
-
#: library/model/class-base-form-model.php:
|
15801 |
msgid "Export Import feature disabled"
|
15802 |
msgstr ""
|
15803 |
|
15804 |
-
#: library/model/class-base-form-model.php:
|
15805 |
msgid "Model loader for importer does not exist."
|
15806 |
msgstr ""
|
15807 |
|
15808 |
-
#: library/model/class-base-form-model.php:
|
15809 |
msgid "Invalid format of import data type"
|
15810 |
msgstr ""
|
15811 |
|
15812 |
-
#: library/model/class-base-form-model.php:
|
15813 |
msgid "Invalid format of import data"
|
15814 |
msgstr ""
|
15815 |
|
15816 |
-
#: library/model/class-base-form-model.php:
|
15817 |
msgid "Invalid format of import data settings"
|
15818 |
msgstr ""
|
15819 |
|
15820 |
-
#: library/model/class-base-form-model.php:
|
15821 |
msgid "Invalid format of import data name"
|
15822 |
msgstr ""
|
15823 |
|
15824 |
-
#: library/model/class-base-form-model.php:
|
15825 |
msgid "Failed to load imported Forminator model"
|
15826 |
msgstr ""
|
15827 |
|
15828 |
#: library/model/class-custom-form-model.php:284
|
15829 |
-
#: library/modules/custom-forms/front/front-action.php:
|
15830 |
msgid "Only logged in users can submit this form."
|
15831 |
msgstr ""
|
15832 |
|
@@ -16105,17 +16029,17 @@ msgstr ""
|
|
16105 |
msgid "Delete Entries"
|
16106 |
msgstr ""
|
16107 |
|
16108 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
16109 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
16110 |
#: library/modules/quizzes/admin/admin-page-entries.php:672
|
16111 |
msgid "Date Submitted"
|
16112 |
msgstr ""
|
16113 |
|
16114 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
16115 |
msgid "Stripe Payment"
|
16116 |
msgstr ""
|
16117 |
|
16118 |
-
#: library/modules/custom-forms/admin/admin-page-entries.php:
|
16119 |
msgid "Select all entries"
|
16120 |
msgstr ""
|
16121 |
|
@@ -16123,7 +16047,7 @@ msgstr ""
|
|
16123 |
msgid "New Form"
|
16124 |
msgstr ""
|
16125 |
|
16126 |
-
#: library/modules/custom-forms/admin/admin-page-view.php:
|
16127 |
#: library/modules/polls/admin/admin-page-view.php:313
|
16128 |
#: library/modules/quizzes/admin/admin-page-view.php:386
|
16129 |
msgid "Copy of %s"
|
@@ -16166,7 +16090,7 @@ msgstr ""
|
|
16166 |
#: library/modules/custom-forms/form-templates/template-post.php:84
|
16167 |
#: library/modules/custom-forms/form-templates/template-quote.php:151
|
16168 |
#: library/modules/custom-forms/form-templates/template-registration.php:111
|
16169 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16170 |
msgid "Error: Your form is not valid, please fix the errors!"
|
16171 |
msgstr ""
|
16172 |
|
@@ -16294,46 +16218,56 @@ msgstr ""
|
|
16294 |
msgid "Register"
|
16295 |
msgstr ""
|
16296 |
|
16297 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16298 |
-
|
16299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16300 |
msgid "SSL required to submit this form, please check your URL."
|
16301 |
msgstr ""
|
16302 |
|
16303 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16304 |
msgid "Error: Stripe field doesn't exist in your form!"
|
16305 |
msgstr ""
|
16306 |
|
16307 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16308 |
msgid "Error: Form object is corrupted!"
|
16309 |
msgstr ""
|
16310 |
|
16311 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16312 |
msgid "Error: Your form ID doesn't exist!"
|
16313 |
msgstr ""
|
16314 |
|
16315 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16316 |
msgid "This form is not published."
|
16317 |
msgstr ""
|
16318 |
|
16319 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16320 |
msgid "At least one field must be filled out to submit the form."
|
16321 |
msgstr ""
|
16322 |
|
16323 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16324 |
msgid "There was an error saving the post data. Please try again"
|
16325 |
msgstr ""
|
16326 |
|
16327 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16328 |
msgid "Whoops, the passcode you entered was incorrect or expired."
|
16329 |
msgstr ""
|
16330 |
|
16331 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16332 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16333 |
msgid "Form entry saved"
|
16334 |
msgstr ""
|
16335 |
|
16336 |
-
#: library/modules/custom-forms/front/front-action.php:
|
16337 |
msgid "form not found"
|
16338 |
msgstr ""
|
16339 |
|
@@ -16375,51 +16309,51 @@ msgstr ""
|
|
16375 |
msgid "Page "
|
16376 |
msgstr ""
|
16377 |
|
16378 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16379 |
msgid "Jan"
|
16380 |
msgstr ""
|
16381 |
|
16382 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16383 |
msgid "Feb"
|
16384 |
msgstr ""
|
16385 |
|
16386 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16387 |
msgid "Mar"
|
16388 |
msgstr ""
|
16389 |
|
16390 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16391 |
msgid "Apr"
|
16392 |
msgstr ""
|
16393 |
|
16394 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16395 |
msgid "Jun"
|
16396 |
msgstr ""
|
16397 |
|
16398 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16399 |
msgid "Jul"
|
16400 |
msgstr ""
|
16401 |
|
16402 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16403 |
msgid "Aug"
|
16404 |
msgstr ""
|
16405 |
|
16406 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16407 |
msgid "Sep"
|
16408 |
msgstr ""
|
16409 |
|
16410 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16411 |
msgid "Oct"
|
16412 |
msgstr ""
|
16413 |
|
16414 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16415 |
msgid "Nov"
|
16416 |
msgstr ""
|
16417 |
|
16418 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16419 |
msgid "Dec"
|
16420 |
msgstr ""
|
16421 |
|
16422 |
-
#: library/modules/custom-forms/front/front-render.php:
|
16423 |
msgid "PayPal amount must be greater than 0."
|
16424 |
msgstr ""
|
16425 |
|
@@ -17015,7 +16949,7 @@ msgstr ""
|
|
17015 |
|
17016 |
#: library/modules/polls/admin/admin-page-entries.php:397
|
17017 |
#: library/modules/polls/front/front-action.php:414
|
17018 |
-
#: library/modules/polls/front/front-render.php:
|
17019 |
msgid "vote(s)"
|
17020 |
msgstr ""
|
17021 |
|
@@ -17033,8 +16967,8 @@ msgid "Your vote has been saved"
|
|
17033 |
msgstr ""
|
17034 |
|
17035 |
#: library/modules/polls/front/front-action.php:420
|
17036 |
-
#: library/modules/polls/front/front-render.php:
|
17037 |
-
#: library/modules/polls/front/front-render.php:
|
17038 |
msgid "View results"
|
17039 |
msgstr ""
|
17040 |
|
@@ -17050,24 +16984,24 @@ msgstr ""
|
|
17050 |
msgid "You have already submitted a vote to this poll"
|
17051 |
msgstr ""
|
17052 |
|
17053 |
-
#: library/modules/polls/front/front-render.php:
|
17054 |
msgid "Your vote has been saved."
|
17055 |
msgstr ""
|
17056 |
|
17057 |
-
#: library/modules/polls/front/front-render.php:
|
17058 |
msgid "You have already voted for this poll."
|
17059 |
msgstr ""
|
17060 |
|
17061 |
-
#: library/modules/polls/front/front-render.php:
|
17062 |
msgid "No votes yet"
|
17063 |
msgstr ""
|
17064 |
|
17065 |
-
#: library/modules/polls/front/front-render.php:
|
17066 |
msgid "Poll ID attribute is required!"
|
17067 |
msgstr ""
|
17068 |
|
17069 |
-
#: library/modules/polls/front/front-render.php:931
|
17070 |
#: library/modules/polls/front/front-render.php:936
|
|
|
17071 |
msgid "Back to poll"
|
17072 |
msgstr ""
|
17073 |
|
@@ -17611,47 +17545,47 @@ msgid "Form not found"
|
|
17611 |
msgstr ""
|
17612 |
|
17613 |
#: library/modules/quizzes/front/front-action.php:88
|
17614 |
-
#: library/modules/quizzes/front/front-action.php:
|
17615 |
msgid "Quiz submissions disabled."
|
17616 |
msgstr ""
|
17617 |
|
17618 |
-
#: library/modules/quizzes/front/front-action.php:
|
17619 |
-
#: library/modules/quizzes/front/front-action.php:
|
17620 |
-
#: library/modules/quizzes/front/front-action.php:
|
17621 |
msgid "Retake Quiz"
|
17622 |
msgstr ""
|
17623 |
|
17624 |
-
#: library/modules/quizzes/front/front-action.php:
|
17625 |
-
#: library/modules/quizzes/front/front-action.php:
|
17626 |
msgid "Share your results"
|
17627 |
msgstr ""
|
17628 |
|
17629 |
-
#: library/modules/quizzes/front/front-action.php:
|
17630 |
-
#: library/modules/quizzes/front/front-action.php:
|
17631 |
-
#: library/modules/quizzes/front/front-action.php:
|
17632 |
-
#: library/modules/quizzes/front/front-action.php:
|
17633 |
msgid "Share on Facebook"
|
17634 |
msgstr ""
|
17635 |
|
17636 |
-
#: library/modules/quizzes/front/front-action.php:
|
17637 |
-
#: library/modules/quizzes/front/front-action.php:
|
17638 |
-
#: library/modules/quizzes/front/front-action.php:
|
17639 |
-
#: library/modules/quizzes/front/front-action.php:
|
17640 |
msgid "Share on Twitter"
|
17641 |
msgstr ""
|
17642 |
|
17643 |
-
#: library/modules/quizzes/front/front-action.php:
|
17644 |
-
#: library/modules/quizzes/front/front-action.php:
|
17645 |
-
#: library/modules/quizzes/front/front-action.php:
|
17646 |
-
#: library/modules/quizzes/front/front-action.php:
|
17647 |
msgid "Share on LinkedIn"
|
17648 |
msgstr ""
|
17649 |
|
17650 |
-
#: library/modules/quizzes/front/front-action.php:
|
17651 |
msgid "You haven't answered any questions"
|
17652 |
msgstr ""
|
17653 |
|
17654 |
-
#: library/modules/quizzes/front/front-action.php:
|
17655 |
msgid "Please answer all the questions"
|
17656 |
msgstr ""
|
17657 |
|
2 |
# This file is distributed under the same license as the Forminator package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Forminator 1.14.7\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/forminator\n"
|
7 |
+
"POT-Creation-Date: 2020-12-21 10:37:12+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
331 |
#: addons/pro/trello/class-forminator-addon-trello-quiz-settings.php:127
|
332 |
#: addons/pro/trello/class-forminator-addon-trello-quiz-settings.php:260
|
333 |
#: addons/pro/trello/class-forminator-addon-trello-quiz-settings.php:400
|
334 |
+
#: admin/locale.php:945 library/helpers/helper-core.php:601
|
335 |
msgid "Next"
|
336 |
msgstr ""
|
337 |
|
671 |
#: addons/pro/slack/class-forminator-addon-slack.php:281
|
672 |
#: addons/pro/zapier/class-forminator-addon-zapier.php:176
|
673 |
#: admin/classes/class-admin-l10n.php:134
|
674 |
+
#: admin/views/settings/payments/section-paypal.php:106
|
675 |
#: admin/views/settings/payments/section-stripe.php:122
|
676 |
msgid "Disconnect"
|
677 |
msgstr ""
|
732 |
#: addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php:254
|
733 |
#: addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php:220
|
734 |
#: addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php:223
|
735 |
+
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:231
|
736 |
+
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:234
|
737 |
+
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:249
|
738 |
#: addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php:244
|
739 |
#: addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php:247
|
740 |
#: addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php:256
|
1199 |
msgstr ""
|
1200 |
|
1201 |
#: addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php:229
|
1202 |
+
#: addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php:217
|
1203 |
#: addons/pro/slack/lib/class-forminator-addon-slack-wp-api.php:208
|
1204 |
msgid ""
|
1205 |
"Failed to process request, make sure your API URL is correct and your "
|
1857 |
|
1858 |
#: addons/pro/googlesheet/class-forminator-addon-googlesheet.php:623
|
1859 |
#: addons/pro/trello/class-forminator-addon-trello.php:503
|
1860 |
+
#: admin/classes/class-admin.php:97 admin/classes/class-admin.php:196
|
1861 |
#: admin/views/dashboard/widgets/widget-upgrade.php:5
|
1862 |
+
#: library/helpers/helper-core.php:808
|
1863 |
msgid "Forminator Pro"
|
1864 |
msgstr ""
|
1865 |
|
2757 |
msgstr ""
|
2758 |
|
2759 |
#: addons/pro/mailchimp/class-forminator-addon-mailchimp.php:659
|
2760 |
+
#: admin/classes/class-admin-ajax.php:2151
|
2761 |
+
#: admin/classes/class-admin-ajax.php:2277
|
2762 |
msgid "Connect"
|
2763 |
msgstr ""
|
2764 |
|
3698 |
|
3699 |
#: admin/abstracts/class-admin-import-mediator.php:234
|
3700 |
#: admin/abstracts/class-admin-import-mediator.php:238
|
3701 |
+
#: admin/classes/class-admin-ajax.php:1360
|
3702 |
+
#: admin/classes/class-admin-ajax.php:1364
|
3703 |
+
#: admin/classes/class-admin-ajax.php:1684
|
3704 |
+
#: admin/classes/class-admin-ajax.php:1688
|
3705 |
+
#: admin/classes/class-admin-ajax.php:1774
|
3706 |
+
#: admin/classes/class-admin-ajax.php:1778
|
3707 |
msgid ""
|
3708 |
"Oops, looks like we found an issue. Import text can not include whitespace "
|
3709 |
"or special characters."
|
3710 |
msgstr ""
|
3711 |
|
3712 |
#: admin/abstracts/class-admin-import-mediator.php:251
|
3713 |
+
#: admin/classes/class-admin-ajax.php:1374
|
3714 |
msgid "Failed to import form, please make sure import text is valid, and try again."
|
3715 |
msgstr ""
|
3716 |
|
3717 |
+
#: admin/abstracts/class-admin-page.php:235
|
3718 |
#. translators: ...
|
3719 |
msgid "Made with %s by WPMU DEV"
|
3720 |
msgstr ""
|
3721 |
|
3722 |
+
#: admin/abstracts/class-admin-page.php:253
|
3723 |
+
#: admin/abstracts/class-admin-page.php:273
|
3724 |
msgid "The Hub"
|
3725 |
msgstr ""
|
3726 |
|
3727 |
+
#: admin/abstracts/class-admin-page.php:254
|
3728 |
msgid "Plugins"
|
3729 |
msgstr ""
|
3730 |
|
3731 |
+
#: admin/abstracts/class-admin-page.php:255
|
3732 |
+
#: admin/abstracts/class-admin-page.php:270 admin/classes/class-admin.php:548
|
3733 |
msgid "Roadmap"
|
3734 |
msgstr ""
|
3735 |
|
3736 |
+
#: admin/abstracts/class-admin-page.php:256
|
3737 |
+
#: admin/abstracts/class-admin-page.php:271 admin/classes/class-admin.php:536
|
3738 |
msgid "Support"
|
3739 |
msgstr ""
|
3740 |
|
3741 |
+
#: admin/abstracts/class-admin-page.php:257
|
3742 |
+
#: admin/abstracts/class-admin-page.php:272 admin/classes/class-admin.php:470
|
3743 |
msgid "Docs"
|
3744 |
msgstr ""
|
3745 |
|
3746 |
+
#: admin/abstracts/class-admin-page.php:258
|
3747 |
msgid "Community"
|
3748 |
msgstr ""
|
3749 |
|
3750 |
+
#: admin/abstracts/class-admin-page.php:259
|
3751 |
msgid "Academy"
|
3752 |
msgstr ""
|
3753 |
|
3754 |
+
#: admin/abstracts/class-admin-page.php:260
|
3755 |
+
#: admin/abstracts/class-admin-page.php:274
|
3756 |
msgid "Terms of Service"
|
3757 |
msgstr ""
|
3758 |
|
3759 |
+
#: admin/abstracts/class-admin-page.php:261
|
3760 |
+
#: admin/abstracts/class-admin-page.php:275
|
3761 |
msgid "Privacy Policy"
|
3762 |
msgstr ""
|
3763 |
|
3764 |
+
#: admin/abstracts/class-admin-page.php:268
|
3765 |
msgid "Free Plugins"
|
3766 |
msgstr ""
|
3767 |
|
3768 |
+
#: admin/abstracts/class-admin-page.php:269
|
3769 |
msgid "Membership"
|
3770 |
msgstr ""
|
3771 |
|
3772 |
+
#: admin/abstracts/class-admin-page.php:284
|
3773 |
#: admin/classes/class-admin-l10n.php:326 admin/locale.php:1141
|
3774 |
#: library/modules/quizzes/admin/admin-loader.php:552
|
3775 |
msgid "Facebook"
|
3776 |
msgstr ""
|
3777 |
|
3778 |
+
#: admin/abstracts/class-admin-page.php:288
|
3779 |
#: admin/classes/class-admin-l10n.php:327 admin/locale.php:1142
|
3780 |
#: library/modules/quizzes/admin/admin-loader.php:553
|
3781 |
msgid "Twitter"
|
3782 |
msgstr ""
|
3783 |
|
3784 |
+
#: admin/abstracts/class-admin-page.php:292
|
3785 |
msgid "Instagram"
|
3786 |
msgstr ""
|
3787 |
|
3788 |
+
#: admin/classes/class-admin-ajax.php:119
|
3789 |
+
#: admin/classes/class-admin-ajax.php:292
|
3790 |
+
#: admin/classes/class-admin-ajax.php:415 library/addon/admin/class-ajax.php:94
|
3791 |
+
#: library/class-export.php:162 library/helpers/helper-core.php:114
|
3792 |
msgid "Invalid request, you are not allowed to do that action."
|
3793 |
msgstr ""
|
3794 |
|
3795 |
+
#: admin/classes/class-admin-ajax.php:156 library/class-api.php:1582
|
3796 |
msgid "Quiz model doesn't exist"
|
3797 |
msgstr ""
|
3798 |
|
3799 |
+
#: admin/classes/class-admin-ajax.php:324 library/class-api.php:1314
|
3800 |
msgid "Poll model doesn't exist"
|
3801 |
msgstr ""
|
3802 |
|
3803 |
+
#: admin/classes/class-admin-ajax.php:444
|
3804 |
+
#: admin/classes/class-admin-ajax.php:592 library/class-api.php:254
|
3805 |
#: library/class-api.php:328 library/class-api.php:367
|
3806 |
#: library/class-api.php:487 library/class-api.php:529
|
3807 |
#: library/class-api.php:564 library/class-api.php:604
|
3810 |
msgid "Form model doesn't exist"
|
3811 |
msgstr ""
|
3812 |
|
3813 |
+
#: admin/classes/class-admin-ajax.php:825
|
3814 |
msgid "You have to first save your credentials to load the reCAPTCHA . "
|
3815 |
msgstr ""
|
3816 |
|
3817 |
+
#: admin/classes/class-admin-ajax.php:864
|
3818 |
+
#: admin/classes/class-admin-ajax.php:1819
|
3819 |
+
#: admin/classes/class-admin-ajax.php:1897
|
3820 |
msgid "Limit per page can not be less than one."
|
3821 |
msgstr ""
|
3822 |
|
3823 |
+
#: admin/classes/class-admin-ajax.php:1024
|
3824 |
msgid "Not valid module ID provided."
|
3825 |
msgstr ""
|
3826 |
|
3827 |
+
#: admin/classes/class-admin-ajax.php:1040
|
3828 |
msgid "No ID was provided."
|
3829 |
msgstr ""
|
3830 |
|
3831 |
+
#: admin/classes/class-admin-ajax.php:1046
|
3832 |
msgid "Exports cleared."
|
3833 |
msgstr ""
|
3834 |
|
3835 |
+
#: admin/classes/class-admin-ajax.php:1048
|
3836 |
msgid "Exports couldn't be cleared."
|
3837 |
msgstr ""
|
3838 |
|
3839 |
+
#: admin/classes/class-admin-ajax.php:1339
|
3840 |
+
#: admin/classes/class-admin-ajax.php:1449
|
3841 |
+
#: admin/classes/class-admin-ajax.php:1515
|
3842 |
+
#: admin/classes/class-admin-ajax.php:1583
|
3843 |
+
#: admin/classes/class-admin-ajax.php:1666
|
3844 |
+
#: admin/classes/class-admin-ajax.php:1756
|
3845 |
msgid "Import Export Feature disabled."
|
3846 |
msgstr ""
|
3847 |
|
3848 |
+
#: admin/classes/class-admin-ajax.php:1356
|
3849 |
+
#: admin/classes/class-admin-ajax.php:1678
|
3850 |
+
#: admin/classes/class-admin-ajax.php:1768
|
3851 |
msgid "Import text can not be empty."
|
3852 |
msgstr ""
|
3853 |
|
3854 |
+
#: admin/classes/class-admin-ajax.php:1481
|
3855 |
msgid "Can't find form to import"
|
3856 |
msgstr ""
|
3857 |
|
3858 |
+
#: admin/classes/class-admin-ajax.php:1485
|
3859 |
+
#: admin/classes/class-admin-ajax.php:1555
|
3860 |
msgid "Could not import the forms. Check if the selected form plugin is active"
|
3861 |
msgstr ""
|
3862 |
|
3863 |
+
#: admin/classes/class-admin-ajax.php:1698
|
3864 |
msgid "Failed to import poll, please make sure import text is valid, and try again."
|
3865 |
msgstr ""
|
3866 |
|
3867 |
+
#: admin/classes/class-admin-ajax.php:1789
|
3868 |
msgid "Failed to import quiz, please make sure import text is valid, and try again."
|
3869 |
msgstr ""
|
3870 |
|
3871 |
+
#: admin/classes/class-admin-ajax.php:1931
|
3872 |
msgid "Calculation formula validated successfully."
|
3873 |
msgstr ""
|
3874 |
|
3875 |
+
#: admin/classes/class-admin-ajax.php:1934
|
3876 |
msgid "Invalid calculation formula. Please check again."
|
3877 |
msgstr ""
|
3878 |
|
3879 |
+
#: admin/classes/class-admin-ajax.php:1952
|
3880 |
msgid "Stripe account disconnected successfully."
|
3881 |
msgstr ""
|
3882 |
|
3883 |
+
#: admin/classes/class-admin-ajax.php:1979
|
3884 |
msgid "PayPal account disconnected successfully."
|
3885 |
msgstr ""
|
3886 |
|
3887 |
+
#: admin/classes/class-admin-ajax.php:2105
|
3888 |
msgid ""
|
3889 |
"Stripe account connected successfully. You can now add the Stripe field to "
|
3890 |
"your forms and start collecting payments."
|
3891 |
msgstr ""
|
3892 |
|
3893 |
+
#: admin/classes/class-admin-ajax.php:2115
|
3894 |
msgid "Please input test publishable key"
|
3895 |
msgstr ""
|
3896 |
|
3897 |
+
#: admin/classes/class-admin-ajax.php:2118
|
3898 |
msgid "Please input test secret key"
|
3899 |
msgstr ""
|
3900 |
|
3901 |
+
#: admin/classes/class-admin-ajax.php:2121
|
3902 |
msgid "Please input live publishable key"
|
3903 |
msgstr ""
|
3904 |
|
3905 |
+
#: admin/classes/class-admin-ajax.php:2124
|
3906 |
+
#: admin/classes/class-admin-ajax.php:2250
|
3907 |
msgid "Please input live secret key"
|
3908 |
msgstr ""
|
3909 |
|
3910 |
+
#: admin/classes/class-admin-ajax.php:2127
|
3911 |
msgid "You've entered an invalid test secret key"
|
3912 |
msgstr ""
|
3913 |
|
3914 |
+
#: admin/classes/class-admin-ajax.php:2130
|
3915 |
+
#: admin/classes/class-admin-ajax.php:2256
|
3916 |
msgid "You've entered an invalid live secret key"
|
3917 |
msgstr ""
|
3918 |
|
3919 |
+
#: admin/classes/class-admin-ajax.php:2133
|
3920 |
msgid "You've entered an invalid test publishable key"
|
3921 |
msgstr ""
|
3922 |
|
3923 |
+
#: admin/classes/class-admin-ajax.php:2136
|
3924 |
msgid "You've entered an invalid live publishable key"
|
3925 |
msgstr ""
|
3926 |
|
3927 |
+
#: admin/classes/class-admin-ajax.php:2231
|
3928 |
msgid ""
|
3929 |
"PayPal account connected successfully. You can now add the PayPal field to "
|
3930 |
"your forms and start collecting payments."
|
3931 |
msgstr ""
|
3932 |
|
3933 |
+
#: admin/classes/class-admin-ajax.php:2241
|
3934 |
msgid "Please input sandbox client id"
|
3935 |
msgstr ""
|
3936 |
|
3937 |
+
#: admin/classes/class-admin-ajax.php:2244
|
3938 |
msgid "Please input sandbox secret key"
|
3939 |
msgstr ""
|
3940 |
|
3941 |
+
#: admin/classes/class-admin-ajax.php:2247
|
3942 |
msgid "Please input live client id"
|
3943 |
msgstr ""
|
3944 |
|
3945 |
+
#: admin/classes/class-admin-ajax.php:2253
|
3946 |
msgid "You've entered an invalid sandbox secret key"
|
3947 |
msgstr ""
|
3948 |
|
3949 |
+
#: admin/classes/class-admin-ajax.php:2259
|
3950 |
msgid "You've entered an invalid sandbox client id"
|
3951 |
msgstr ""
|
3952 |
|
3953 |
+
#: admin/classes/class-admin-ajax.php:2262
|
3954 |
msgid "You've entered an invalid live client id"
|
3955 |
msgstr ""
|
3956 |
|
3957 |
+
#: admin/classes/class-admin-ajax.php:2411
|
3958 |
msgid "All the submissions deleted successfully."
|
3959 |
msgstr ""
|
3960 |
|
3961 |
+
#: admin/classes/class-admin-ajax.php:2418
|
3962 |
msgid "Submission delete failed."
|
3963 |
msgstr ""
|
3964 |
|
4023 |
|
4024 |
#: admin/classes/class-admin-l10n.php:56 admin/locale.php:918
|
4025 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:25
|
4026 |
+
#: library/helpers/helper-core.php:1024 library/helpers/helper-fields.php:449
|
4027 |
msgid "Monday"
|
4028 |
msgstr ""
|
4029 |
|
4030 |
#: admin/classes/class-admin-l10n.php:57 admin/locale.php:920
|
4031 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:26
|
4032 |
+
#: library/helpers/helper-core.php:1025 library/helpers/helper-fields.php:450
|
4033 |
msgid "Tuesday"
|
4034 |
msgstr ""
|
4035 |
|
4036 |
#: admin/classes/class-admin-l10n.php:58 admin/locale.php:916
|
4037 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:27
|
4038 |
+
#: library/helpers/helper-core.php:1026 library/helpers/helper-fields.php:451
|
4039 |
msgid "Wednesday"
|
4040 |
msgstr ""
|
4041 |
|
4042 |
#: admin/classes/class-admin-l10n.php:59 admin/locale.php:919
|
4043 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:28
|
4044 |
+
#: library/helpers/helper-core.php:1027 library/helpers/helper-fields.php:452
|
4045 |
msgid "Thursday"
|
4046 |
msgstr ""
|
4047 |
|
4048 |
#: admin/classes/class-admin-l10n.php:60 admin/locale.php:921
|
4049 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:29
|
4050 |
+
#: library/helpers/helper-core.php:1028 library/helpers/helper-fields.php:453
|
4051 |
msgid "Friday"
|
4052 |
msgstr ""
|
4053 |
|
4054 |
#: admin/classes/class-admin-l10n.php:61 admin/locale.php:917
|
4055 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:30
|
4056 |
+
#: library/helpers/helper-core.php:1029 library/helpers/helper-fields.php:454
|
4057 |
msgid "Saturday"
|
4058 |
msgstr ""
|
4059 |
|
4060 |
#: admin/classes/class-admin-l10n.php:62 admin/locale.php:915
|
4061 |
#: admin/views/custom-form/entries/popup/schedule-export-content.php:31
|
4062 |
+
#: library/helpers/helper-core.php:1030 library/helpers/helper-fields.php:448
|
4063 |
msgid "Sunday"
|
4064 |
msgstr ""
|
4065 |
|
4160 |
msgstr ""
|
4161 |
|
4162 |
#: admin/classes/class-admin-l10n.php:83 admin/locale.php:654
|
|
|
4163 |
#: admin/views/dashboard/new-feature-notice.php:40
|
4164 |
msgid "Close this dialog window"
|
4165 |
msgstr ""
|
4368 |
"etc.) on your quiz."
|
4369 |
msgstr ""
|
4370 |
|
4371 |
+
#: admin/classes/class-admin-l10n.php:124 admin/classes/class-admin.php:330
|
4372 |
#: admin/views/dashboard/footer-free.php:64
|
4373 |
msgid "Learn more"
|
4374 |
msgstr ""
|
4579 |
msgid "Browse"
|
4580 |
msgstr ""
|
4581 |
|
4582 |
+
#: admin/classes/class-admin-l10n.php:188 library/helpers/helper-core.php:298
|
4583 |
#: library/modules/quizzes/admin/admin-loader.php:482
|
4584 |
msgid "Clear"
|
4585 |
msgstr ""
|
5099 |
#: admin/classes/class-admin-l10n.php:319
|
5100 |
#: library/abstracts/abstract-class-field.php:691
|
5101 |
#: library/abstracts/abstract-class-field.php:692
|
5102 |
+
#: library/helpers/helper-core.php:609
|
5103 |
msgid "No file chosen"
|
5104 |
msgstr ""
|
5105 |
|
5130 |
|
5131 |
#: admin/classes/class-admin-l10n.php:333
|
5132 |
#: admin/classes/class-admin-l10n.php:384
|
5133 |
+
#: library/modules/custom-forms/front/front-render.php:2416
|
5134 |
msgid "Su"
|
5135 |
msgstr ""
|
5136 |
|
5137 |
#: admin/classes/class-admin-l10n.php:334
|
5138 |
#: admin/classes/class-admin-l10n.php:385
|
5139 |
+
#: library/modules/custom-forms/front/front-render.php:2417
|
5140 |
msgid "Mo"
|
5141 |
msgstr ""
|
5142 |
|
5143 |
#: admin/classes/class-admin-l10n.php:335
|
5144 |
#: admin/classes/class-admin-l10n.php:386
|
5145 |
+
#: library/modules/custom-forms/front/front-render.php:2418
|
5146 |
msgid "Tu"
|
5147 |
msgstr ""
|
5148 |
|
5149 |
#: admin/classes/class-admin-l10n.php:336
|
5150 |
#: admin/classes/class-admin-l10n.php:387
|
5151 |
+
#: library/modules/custom-forms/front/front-render.php:2419
|
5152 |
msgid "We"
|
5153 |
msgstr ""
|
5154 |
|
5155 |
#: admin/classes/class-admin-l10n.php:337
|
5156 |
#: admin/classes/class-admin-l10n.php:388
|
5157 |
+
#: library/modules/custom-forms/front/front-render.php:2420
|
5158 |
msgid "Th"
|
5159 |
msgstr ""
|
5160 |
|
5161 |
#: admin/classes/class-admin-l10n.php:338
|
5162 |
#: admin/classes/class-admin-l10n.php:389
|
5163 |
+
#: library/modules/custom-forms/front/front-render.php:2421
|
5164 |
msgid "Fr"
|
5165 |
msgstr ""
|
5166 |
|
5167 |
#: admin/classes/class-admin-l10n.php:339
|
5168 |
#: admin/classes/class-admin-l10n.php:390
|
5169 |
+
#: library/modules/custom-forms/front/front-render.php:2422
|
5170 |
msgid "Sa"
|
5171 |
msgstr ""
|
5172 |
|
5192 |
|
5193 |
#: admin/classes/class-admin-l10n.php:346
|
5194 |
#: admin/classes/class-admin-l10n.php:406
|
5195 |
+
#: library/modules/custom-forms/front/front-render.php:2429
|
5196 |
msgid "May"
|
5197 |
msgstr ""
|
5198 |
|
5243 |
msgid "Forminator"
|
5244 |
msgstr ""
|
5245 |
|
5246 |
+
#: admin/classes/class-admin.php:101
|
5247 |
msgid "Forminator Dashboard"
|
5248 |
msgstr ""
|
5249 |
|
5250 |
+
#: admin/classes/class-admin.php:101 admin/views/dashboard/header.php:1
|
5251 |
#: admin/views/settings/tab-dashboard.php:19
|
5252 |
msgid "Dashboard"
|
5253 |
msgstr ""
|
5254 |
|
5255 |
+
#: admin/classes/class-admin.php:122 admin/classes/class-admin.php:123
|
5256 |
#: admin/locale.php:619 admin/views/integrations/header.php:1
|
5257 |
msgid "Integrations"
|
5258 |
msgstr ""
|
5259 |
|
5260 |
+
#: admin/classes/class-admin.php:154
|
5261 |
msgid "Global Settings"
|
5262 |
msgstr ""
|
5263 |
|
5264 |
+
#: admin/classes/class-admin.php:154 admin/classes/class-admin.php:467
|
5265 |
#: admin/locale.php:176 admin/views/settings/header.php:1
|
5266 |
#: library/modules/quizzes/admin/admin-loader.php:464
|
5267 |
msgid "Settings"
|
5268 |
msgstr ""
|
5269 |
|
5270 |
+
#: admin/classes/class-admin.php:175
|
5271 |
msgid "Forminator Submissions"
|
5272 |
msgstr ""
|
5273 |
|
5274 |
+
#: admin/classes/class-admin.php:176 admin/locale.php:195
|
5275 |
#: admin/views/custom-form/entries/header.php:1
|
5276 |
#: admin/views/custom-form/list/content.php:313
|
5277 |
#: admin/views/custom-form/list/content.php:465
|
5285 |
msgid "Submissions"
|
5286 |
msgstr ""
|
5287 |
|
5288 |
+
#: admin/classes/class-admin.php:196 admin/classes/class-admin.php:477
|
5289 |
#: admin/views/upgrade/upgrade-content.php:17
|
5290 |
msgid "Upgrade to Forminator Pro"
|
5291 |
msgstr ""
|
5292 |
|
5293 |
+
#: admin/classes/class-admin.php:254
|
5294 |
msgid "Forminator - Import your Contact Form 7 forms automatically"
|
5295 |
msgstr ""
|
5296 |
|
5297 |
+
#: admin/classes/class-admin.php:256
|
5298 |
msgid ""
|
5299 |
"We noticed that Contact Form 7 is active on your website. You can use our "
|
5300 |
"built-in Contact Form 7 importer to import your existing forms and the "
|
5302 |
"supports the most widely used add-ons as well."
|
5303 |
msgstr ""
|
5304 |
|
5305 |
+
#: admin/classes/class-admin.php:260
|
5306 |
msgid "Import Contact Form 7 Forms"
|
5307 |
msgstr ""
|
5308 |
|
5309 |
+
#: admin/classes/class-admin.php:262 admin/classes/class-admin.php:331
|
|
|
5310 |
#: library/lib/dash-notice/wpmudev-dash-notification.php:248
|
5311 |
#: library/lib/dash-notice/wpmudev-dash-notification.php:289
|
5312 |
#: library/lib/recommended-plugins/notice.php:491
|
5313 |
msgid "Dismiss"
|
5314 |
msgstr ""
|
5315 |
|
5316 |
+
#: admin/classes/class-admin.php:327
|
5317 |
msgid ""
|
5318 |
"To make Forminator's Stripe field <a href=\"%s\" target=\"_blank\">SCA "
|
5319 |
"Compliant</a>, we have replaced the Stripe Checkout modal with Stripe "
|
5322 |
"updated, but we recommend checking them to ensure everything works fine."
|
5323 |
msgstr ""
|
5324 |
|
5325 |
+
#: admin/classes/class-admin.php:386
|
5326 |
msgid ""
|
5327 |
"Awesome! You've published more than %d modules with Forminator. Hope you "
|
5328 |
"are enjoying it so far. We have spent countless hours developing this free "
|
5330 |
"rating on wp.org to help us spread the word and boost our motivation."
|
5331 |
msgstr ""
|
5332 |
|
5333 |
+
#: admin/classes/class-admin.php:389 admin/classes/class-admin.php:413
|
5334 |
+
#: admin/classes/class-admin.php:535
|
5335 |
#: admin/views/custom-form/entries/prompt.php:24
|
5336 |
#: admin/views/custom-form/entries/prompt.php:49
|
5337 |
#: admin/views/poll/entries/prompt.php:21
|
5339 |
msgid "Rate Forminator"
|
5340 |
msgstr ""
|
5341 |
|
5342 |
+
#: admin/classes/class-admin.php:391 admin/classes/class-admin.php:417
|
5343 |
#: admin/views/custom-form/entries/prompt.php:28
|
5344 |
#: admin/views/custom-form/entries/prompt.php:53
|
5345 |
#: admin/views/poll/entries/prompt.php:25
|
5347 |
msgid "Maybe later"
|
5348 |
msgstr ""
|
5349 |
|
5350 |
+
#: admin/classes/class-admin.php:393
|
5351 |
#: admin/views/custom-form/entries/prompt.php:32
|
5352 |
#: admin/views/custom-form/entries/prompt.php:57
|
5353 |
#: admin/views/poll/entries/prompt.php:29
|
5355 |
msgid "No Thanks"
|
5356 |
msgstr ""
|
5357 |
|
5358 |
+
#: admin/classes/class-admin.php:409
|
5359 |
msgid ""
|
5360 |
"Excellent! You've been using Forminator for a while now. Hope you are "
|
5361 |
"enjoying it so far. We have spent countless hours developing this free "
|
5363 |
"rating on wp.org to help us spread the word and boost our motivation."
|
5364 |
msgstr ""
|
5365 |
|
5366 |
+
#: admin/classes/class-admin.php:467
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5367 |
msgid "Go to Forminator Settings"
|
5368 |
msgstr ""
|
5369 |
|
5370 |
+
#: admin/classes/class-admin.php:477
|
5371 |
+
msgid "Upgrade"
|
5372 |
msgstr ""
|
5373 |
|
5374 |
+
#: admin/classes/class-admin.php:479
|
5375 |
msgid "Renew Your Membership"
|
5376 |
msgstr ""
|
5377 |
|
5378 |
+
#: admin/classes/class-admin.php:479
|
5379 |
msgid "Renew Membership"
|
5380 |
msgstr ""
|
5381 |
|
5383 |
msgid "WPMU DEV"
|
5384 |
msgstr ""
|
5385 |
|
5386 |
+
#: admin/classes/class-admin.php:511
|
5387 |
msgid "By %s"
|
5388 |
msgstr ""
|
5389 |
|
5390 |
+
#: admin/classes/class-admin.php:527
|
5391 |
#. translators: %s: Plugin name.
|
5392 |
msgid "More information about %s"
|
5393 |
msgstr ""
|
5394 |
|
5395 |
+
#: admin/classes/class-admin.php:529 admin/classes/class-admin.php:543
|
5396 |
msgid "View details"
|
5397 |
msgstr ""
|
5398 |
|
5399 |
+
#: admin/classes/class-admin.php:546
|
5400 |
msgid "Premium Support"
|
5401 |
msgstr ""
|
5402 |
|
5403 |
#: admin/classes/thirdparty-importers/class-importer-cf7.php:94
|
5404 |
#: library/modules/custom-forms/admin/admin-loader.php:434
|
5405 |
+
#: library/modules/custom-forms/front/front-render.php:2941
|
5406 |
msgid "Submitting..."
|
5407 |
msgstr ""
|
5408 |
|
5558 |
msgid "Arrows color"
|
5559 |
msgstr ""
|
5560 |
|
5561 |
+
#: admin/locale.php:47 library/helpers/helper-core.php:300
|
5562 |
msgid "Default"
|
5563 |
msgstr ""
|
5564 |
|
6371 |
msgstr ""
|
6372 |
|
6373 |
#: admin/locale.php:257
|
6374 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:802
|
6375 |
msgid "PayPal Checkout"
|
6376 |
msgstr ""
|
6377 |
|
6379 |
msgid "Pay with PayPal"
|
6380 |
msgstr ""
|
6381 |
|
6382 |
+
#: admin/locale.php:259 admin/views/settings/payments/section-paypal.php:22
|
6383 |
#: library/fields/paypal.php:58
|
6384 |
msgid "PayPal"
|
6385 |
msgstr ""
|
6391 |
"after a successful payment."
|
6392 |
msgstr ""
|
6393 |
|
6394 |
+
#: admin/locale.php:261 library/helpers/helper-core.php:602
|
6395 |
#: library/modules/custom-forms/form-templates/template-leads.php:117
|
6396 |
#: library/modules/custom-forms/front/front-render.php:2129
|
6397 |
+
#: library/modules/polls/front/front-render.php:347
|
6398 |
#: library/modules/quizzes/admin/admin-loader.php:527
|
6399 |
#: library/render/class-render-form.php:530
|
6400 |
msgid "Submit"
|
6653 |
|
6654 |
#: admin/locale.php:321 library/class-export.php:1002
|
6655 |
#: library/fields/currency.php:66 library/fields/currency.php:84
|
6656 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:789
|
6657 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:820
|
6658 |
msgid "Currency"
|
6659 |
msgstr ""
|
6660 |
|
7021 |
"to the {{strong}}Live{{/strong}} payments mode."
|
7022 |
msgstr ""
|
7023 |
|
7024 |
+
#: admin/locale.php:406 admin/views/settings/payments/section-paypal.php:76
|
7025 |
msgid "Sandbox"
|
7026 |
msgstr ""
|
7027 |
|
7028 |
+
#: admin/locale.php:407 admin/views/settings/payments/section-paypal.php:81
|
7029 |
#: admin/views/settings/payments/section-stripe.php:97
|
7030 |
msgid "Live"
|
7031 |
msgstr ""
|
7319 |
#: admin/views/settings/dashboard/forms.php:34
|
7320 |
#: admin/views/settings/dashboard/polls.php:32
|
7321 |
#: admin/views/settings/dashboard/quizzes.php:33 library/class-export.php:994
|
7322 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:780
|
7323 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:811
|
7324 |
msgid "Status"
|
7325 |
msgstr ""
|
7326 |
|
7797 |
msgid "24 hour"
|
7798 |
msgstr ""
|
7799 |
|
7800 |
+
#: admin/locale.php:577 library/fields/time.php:71
|
7801 |
+
msgid "Hours"
|
7802 |
+
msgstr ""
|
7803 |
+
|
7804 |
+
#: admin/locale.php:578 library/fields/time.php:73
|
7805 |
+
msgid "Minutes"
|
7806 |
+
msgstr ""
|
7807 |
+
|
7808 |
#: admin/locale.php:579
|
7809 |
msgid "Increments"
|
7810 |
msgstr ""
|
9007 |
msgid "Your default setting value is to keep the submissions"
|
9008 |
msgstr ""
|
9009 |
|
9010 |
+
#: admin/locale.php:852
|
9011 |
+
msgid "Days"
|
9012 |
+
msgstr ""
|
9013 |
+
|
9014 |
#: admin/locale.php:853
|
9015 |
msgid "Weeks"
|
9016 |
msgstr ""
|
9355 |
msgid "No Previous button"
|
9356 |
msgstr ""
|
9357 |
|
9358 |
+
#: admin/locale.php:944 library/helpers/helper-core.php:600
|
9359 |
#: library/modules/custom-forms/front/front-render.php:960
|
9360 |
msgid "Previous"
|
9361 |
msgstr ""
|
10363 |
msgstr ""
|
10364 |
|
10365 |
#: admin/locale.php:1179
|
10366 |
+
#: library/modules/custom-forms/front/front-render.php:3365
|
10367 |
msgid "Skip and continue"
|
10368 |
msgstr ""
|
10369 |
|
11605 |
msgid "Paste exported form above."
|
11606 |
msgstr ""
|
11607 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11608 |
#: admin/views/dashboard/footer-free.php:3
|
11609 |
msgid "Check out our other free wordpress.org plugins!"
|
11610 |
msgstr ""
|
11736 |
msgstr ""
|
11737 |
|
11738 |
#: admin/views/dashboard/widgets/widget-resume.php:33
|
11739 |
+
#: library/helpers/helper-forms.php:892 library/helpers/helper-forms.php:922
|
11740 |
msgid "Never"
|
11741 |
msgstr ""
|
11742 |
|
12372 |
msgid "Enter your live secret id"
|
12373 |
msgstr ""
|
12374 |
|
12375 |
+
#: admin/views/settings/payments/section-paypal.php:24
|
12376 |
msgid "Use PayPal Checkout to process payments in your forms."
|
12377 |
msgstr ""
|
12378 |
|
12379 |
+
#: admin/views/settings/payments/section-paypal.php:34
|
12380 |
#. translators: ...
|
12381 |
msgid ""
|
12382 |
"To be able to use PayPal Payments feature please upgrade your PHP to "
|
12383 |
"%1$sversion %2$s%3$s or above."
|
12384 |
msgstr ""
|
12385 |
|
12386 |
+
#: admin/views/settings/payments/section-paypal.php:40
|
|
|
|
|
|
|
|
|
|
|
|
|
12387 |
#: admin/views/settings/payments/section-stripe.php:52
|
12388 |
msgid "Authorization"
|
12389 |
msgstr ""
|
12390 |
|
12391 |
+
#: admin/views/settings/payments/section-paypal.php:42
|
12392 |
msgid ""
|
12393 |
"Connect your PayPal business account with Forminator to use PayPal field "
|
12394 |
"for collecting payments in your forms."
|
12395 |
msgstr ""
|
12396 |
|
12397 |
+
#: admin/views/settings/payments/section-paypal.php:53
|
12398 |
+
#: admin/views/settings/payments/section-paypal.php:120
|
12399 |
msgid "Connect PayPal Account"
|
12400 |
msgstr ""
|
12401 |
|
12402 |
+
#: admin/views/settings/payments/section-paypal.php:56
|
12403 |
msgid "Connect To PayPal"
|
12404 |
msgstr ""
|
12405 |
|
12406 |
+
#: admin/views/settings/payments/section-paypal.php:67
|
12407 |
msgid "Account Type"
|
12408 |
msgstr ""
|
12409 |
|
12410 |
+
#: admin/views/settings/payments/section-paypal.php:68
|
12411 |
msgid "Client Id"
|
12412 |
msgstr ""
|
12413 |
|
12414 |
+
#: admin/views/settings/payments/section-paypal.php:100
|
12415 |
msgid "Disconnect PayPal Account"
|
12416 |
msgstr ""
|
12417 |
|
12418 |
+
#: admin/views/settings/payments/section-paypal.php:101
|
12419 |
msgid ""
|
12420 |
"Are you sure you want to disconnect your PayPal Account? This will affect "
|
12421 |
"the forms using the PayPal field."
|
12422 |
msgstr ""
|
12423 |
|
12424 |
+
#: admin/views/settings/payments/section-paypal.php:123
|
12425 |
#: admin/views/settings/payments/section-stripe.php:139
|
12426 |
msgid "Configure"
|
12427 |
msgstr ""
|
12428 |
|
12429 |
+
#: admin/views/settings/payments/section-paypal.php:138
|
12430 |
#: admin/views/settings/payments/section-stripe.php:155
|
12431 |
msgid "Default charge currency"
|
12432 |
msgstr ""
|
12433 |
|
12434 |
+
#: admin/views/settings/payments/section-paypal.php:140
|
12435 |
msgid ""
|
12436 |
"Choose the default charge currency for your PayPal payments. You can "
|
12437 |
"override this while setting up the PayPal field in your forms."
|
13313 |
msgid "Poll ID is required!"
|
13314 |
msgstr ""
|
13315 |
|
13316 |
+
#: library/class-api.php:1166 library/modules/polls/front/front-render.php:478
|
13317 |
msgid "Poll not found!"
|
13318 |
msgstr ""
|
13319 |
|
13385 |
msgid "Post Custom Data"
|
13386 |
msgstr ""
|
13387 |
|
13388 |
+
#: library/class-export.php:133 library/helpers/helper-core.php:806
|
13389 |
+
#: library/modules/custom-forms/admin/admin-page-view.php:436
|
13390 |
#: library/modules/polls/admin/admin-page-view.php:414
|
13391 |
#: library/modules/quizzes/admin/admin-page-view.php:495
|
13392 |
msgid "forminator"
|
13414 |
msgstr ""
|
13415 |
|
13416 |
#: library/class-export.php:990
|
13417 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:775
|
13418 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:806
|
13419 |
msgid "Mode"
|
13420 |
msgstr ""
|
13421 |
|
13422 |
#: library/class-export.php:998
|
13423 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:785
|
13424 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:816
|
13425 |
msgid "Amount"
|
13426 |
msgstr ""
|
13427 |
|
13428 |
#: library/class-export.php:1006 library/helpers/helper-fields.php:415
|
13429 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:794
|
13430 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:825
|
13431 |
msgid "Transaction ID"
|
13432 |
msgstr ""
|
13433 |
|
13513 |
msgstr ""
|
13514 |
|
13515 |
#: library/field-autofill-providers/class-wp-post.php:26
|
13516 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:625
|
13517 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:918
|
13518 |
#: library/modules/quizzes/admin/admin-page-entries.php:669
|
13519 |
msgid "ID"
|
13520 |
msgstr ""
|
13919 |
msgid "This field is required. Please enter text."
|
13920 |
msgstr ""
|
13921 |
|
13922 |
+
#: library/fields/paypal.php:289
|
13923 |
+
msgid "Invalid payment intent"
|
13924 |
+
msgstr ""
|
13925 |
+
|
13926 |
+
#: library/fields/paypal.php:296
|
13927 |
+
msgid "Invalid order status"
|
13928 |
+
msgstr ""
|
13929 |
+
|
13930 |
+
#: library/fields/paypal.php:303
|
13931 |
+
msgid "Invalid payment amount"
|
13932 |
+
msgstr ""
|
13933 |
+
|
13934 |
+
#: library/fields/paypal.php:310
|
13935 |
+
msgid "Invalid currency code"
|
13936 |
+
msgstr ""
|
13937 |
+
|
13938 |
#: library/fields/phone.php:84
|
13939 |
msgid "E.g. +1 300 400 5000"
|
13940 |
msgstr ""
|
14140 |
msgid "This field is required. Please input a valid URL."
|
14141 |
msgstr ""
|
14142 |
|
14143 |
+
#: library/gateways/class-paypal-express.php:289
|
|
|
|
|
|
|
|
|
14144 |
msgid "Failed to configure PayPal payment"
|
14145 |
msgstr ""
|
14146 |
|
14147 |
+
#: library/gateways/class-paypal-express.php:294
|
14148 |
msgid ""
|
14149 |
"Some error has occurred while connecting to your PayPal account. Please "
|
14150 |
"resolve the following errors and try to connect again."
|
14166 |
msgid "Unlock this as part of a WPMU DEV Membership"
|
14167 |
msgstr ""
|
14168 |
|
14169 |
+
#: library/helpers/helper-core.php:299
|
14170 |
msgid "Clear color"
|
14171 |
msgstr ""
|
14172 |
|
14173 |
+
#: library/helpers/helper-core.php:301
|
14174 |
msgid "Select default color"
|
14175 |
msgstr ""
|
14176 |
|
14177 |
+
#: library/helpers/helper-core.php:302
|
14178 |
msgid "Select Color"
|
14179 |
msgstr ""
|
14180 |
|
14181 |
+
#: library/helpers/helper-core.php:303
|
14182 |
msgid "Color value"
|
14183 |
msgstr ""
|
14184 |
|
14185 |
+
#: library/helpers/helper-core.php:597
|
14186 |
msgid "Submitting form, please wait"
|
14187 |
msgstr ""
|
14188 |
|
14189 |
+
#: library/helpers/helper-core.php:598
|
14190 |
msgid "An error occurred processing the form. Please try again"
|
14191 |
msgstr ""
|
14192 |
|
14193 |
+
#: library/helpers/helper-core.php:599
|
14194 |
msgid "An upload error occurred processing the form. Please try again"
|
14195 |
msgstr ""
|
14196 |
|
14197 |
+
#: library/helpers/helper-core.php:604
|
14198 |
msgid "Processing payment, please wait"
|
14199 |
msgstr ""
|
14200 |
|
14201 |
+
#: library/helpers/helper-core.php:605
|
14202 |
msgid "Success! Payment confirmed. Submitting form, please wait"
|
14203 |
msgstr ""
|
14204 |
|
14205 |
+
#: library/helpers/helper-core.php:606
|
14206 |
msgid "Error! Something went wrong when verifying the payment"
|
14207 |
msgstr ""
|
14208 |
|
14209 |
+
#: library/helpers/helper-core.php:608
|
14210 |
msgid "Invalid CAPTCHA"
|
14211 |
msgstr ""
|
14212 |
|
14213 |
+
#: library/helpers/helper-core.php:612
|
14214 |
msgid "Please try again"
|
14215 |
msgstr ""
|
14216 |
|
14217 |
+
#: library/helpers/helper-core.php:615
|
14218 |
msgid "Submitting vote, please wait"
|
14219 |
msgstr ""
|
14220 |
|
14221 |
+
#: library/helpers/helper-core.php:616
|
14222 |
msgid "An error occurred saving the vote. Please try again"
|
14223 |
msgstr ""
|
14224 |
|
14225 |
+
#: library/helpers/helper-core.php:619
|
14226 |
msgid "Loading more results…"
|
14227 |
msgstr ""
|
14228 |
|
14229 |
+
#: library/helpers/helper-core.php:620
|
14230 |
msgid "No results found"
|
14231 |
msgstr ""
|
14232 |
|
14233 |
+
#: library/helpers/helper-core.php:621
|
14234 |
msgid "Searching…"
|
14235 |
msgstr ""
|
14236 |
|
14237 |
+
#: library/helpers/helper-core.php:622
|
14238 |
msgid "The results could not be loaded."
|
14239 |
msgstr ""
|
14240 |
|
14241 |
+
#: library/helpers/helper-core.php:1172
|
14242 |
msgid "Arabic"
|
14243 |
msgstr ""
|
14244 |
|
14245 |
+
#: library/helpers/helper-core.php:1173
|
14246 |
msgid "Afrikaans"
|
14247 |
msgstr ""
|
14248 |
|
14249 |
+
#: library/helpers/helper-core.php:1174
|
14250 |
msgid "Amharic"
|
14251 |
msgstr ""
|
14252 |
|
14253 |
+
#: library/helpers/helper-core.php:1175
|
14254 |
msgid "Armenian"
|
14255 |
msgstr ""
|
14256 |
|
14257 |
+
#: library/helpers/helper-core.php:1176
|
14258 |
msgid "Azerbaijani"
|
14259 |
msgstr ""
|
14260 |
|
14261 |
+
#: library/helpers/helper-core.php:1177
|
14262 |
msgid "Basque"
|
14263 |
msgstr ""
|
14264 |
|
14265 |
+
#: library/helpers/helper-core.php:1178
|
14266 |
msgid "Bengali"
|
14267 |
msgstr ""
|
14268 |
|
14269 |
+
#: library/helpers/helper-core.php:1179
|
14270 |
msgid "Bulgarian"
|
14271 |
msgstr ""
|
14272 |
|
14273 |
+
#: library/helpers/helper-core.php:1180
|
14274 |
msgid "Catalan"
|
14275 |
msgstr ""
|
14276 |
|
14277 |
+
#: library/helpers/helper-core.php:1181
|
14278 |
msgid "Chinese (Hong Kong)"
|
14279 |
msgstr ""
|
14280 |
|
14281 |
+
#: library/helpers/helper-core.php:1182
|
14282 |
msgid "Chinese (Simplified)"
|
14283 |
msgstr ""
|
14284 |
|
14285 |
+
#: library/helpers/helper-core.php:1183
|
14286 |
msgid "Chinese (Traditional)"
|
14287 |
msgstr ""
|
14288 |
|
14289 |
+
#: library/helpers/helper-core.php:1184
|
14290 |
msgid "Croatian"
|
14291 |
msgstr ""
|
14292 |
|
14293 |
+
#: library/helpers/helper-core.php:1185
|
14294 |
msgid "Czech"
|
14295 |
msgstr ""
|
14296 |
|
14297 |
+
#: library/helpers/helper-core.php:1186
|
14298 |
msgid "Danish"
|
14299 |
msgstr ""
|
14300 |
|
14301 |
+
#: library/helpers/helper-core.php:1187
|
14302 |
msgid "Dutch"
|
14303 |
msgstr ""
|
14304 |
|
14305 |
+
#: library/helpers/helper-core.php:1188
|
14306 |
msgid "English (UK)"
|
14307 |
msgstr ""
|
14308 |
|
14309 |
+
#: library/helpers/helper-core.php:1189
|
14310 |
msgid "English (US)"
|
14311 |
msgstr ""
|
14312 |
|
14313 |
+
#: library/helpers/helper-core.php:1190
|
14314 |
msgid "Estonian"
|
14315 |
msgstr ""
|
14316 |
|
14317 |
+
#: library/helpers/helper-core.php:1191
|
14318 |
msgid "Filipino"
|
14319 |
msgstr ""
|
14320 |
|
14321 |
+
#: library/helpers/helper-core.php:1192
|
14322 |
msgid "Finnish"
|
14323 |
msgstr ""
|
14324 |
|
14325 |
+
#: library/helpers/helper-core.php:1193
|
14326 |
msgid "French"
|
14327 |
msgstr ""
|
14328 |
|
14329 |
+
#: library/helpers/helper-core.php:1194
|
14330 |
msgid "French (Canadian)"
|
14331 |
msgstr ""
|
14332 |
|
14333 |
+
#: library/helpers/helper-core.php:1195
|
14334 |
msgid "Galician"
|
14335 |
msgstr ""
|
14336 |
|
14337 |
+
#: library/helpers/helper-core.php:1196
|
14338 |
msgid "Georgian"
|
14339 |
msgstr ""
|
14340 |
|
14341 |
+
#: library/helpers/helper-core.php:1197
|
14342 |
msgid "German"
|
14343 |
msgstr ""
|
14344 |
|
14345 |
+
#: library/helpers/helper-core.php:1198
|
14346 |
msgid "German (Austria)"
|
14347 |
msgstr ""
|
14348 |
|
14349 |
+
#: library/helpers/helper-core.php:1199
|
14350 |
msgid "German (Switzerland)"
|
14351 |
msgstr ""
|
14352 |
|
14353 |
+
#: library/helpers/helper-core.php:1200
|
14354 |
msgid "Greek"
|
14355 |
msgstr ""
|
14356 |
|
14357 |
+
#: library/helpers/helper-core.php:1201
|
14358 |
msgid "Gujarati"
|
14359 |
msgstr ""
|
14360 |
|
14361 |
+
#: library/helpers/helper-core.php:1202
|
14362 |
msgid "Hebrew"
|
14363 |
msgstr ""
|
14364 |
|
14365 |
+
#: library/helpers/helper-core.php:1203
|
14366 |
msgid "Hindi"
|
14367 |
msgstr ""
|
14368 |
|
14369 |
+
#: library/helpers/helper-core.php:1204
|
14370 |
msgid "Hungarain"
|
14371 |
msgstr ""
|
14372 |
|
14373 |
+
#: library/helpers/helper-core.php:1205
|
14374 |
msgid "Icelandic"
|
14375 |
msgstr ""
|
14376 |
|
14377 |
+
#: library/helpers/helper-core.php:1206
|
14378 |
msgid "Indonesian"
|
14379 |
msgstr ""
|
14380 |
|
14381 |
+
#: library/helpers/helper-core.php:1207
|
14382 |
msgid "Italian"
|
14383 |
msgstr ""
|
14384 |
|
14385 |
+
#: library/helpers/helper-core.php:1208
|
14386 |
msgid "Japanese"
|
14387 |
msgstr ""
|
14388 |
|
14389 |
+
#: library/helpers/helper-core.php:1209
|
14390 |
msgid "Kannada"
|
14391 |
msgstr ""
|
14392 |
|
14393 |
+
#: library/helpers/helper-core.php:1210
|
14394 |
msgid "Korean"
|
14395 |
msgstr ""
|
14396 |
|
14397 |
+
#: library/helpers/helper-core.php:1211
|
14398 |
msgid "Laothian"
|
14399 |
msgstr ""
|
14400 |
|
14401 |
+
#: library/helpers/helper-core.php:1212
|
14402 |
msgid "Latvian"
|
14403 |
msgstr ""
|
14404 |
|
14405 |
+
#: library/helpers/helper-core.php:1213
|
14406 |
msgid "Lithuanian"
|
14407 |
msgstr ""
|
14408 |
|
14409 |
+
#: library/helpers/helper-core.php:1214
|
14410 |
msgid "Malay"
|
14411 |
msgstr ""
|
14412 |
|
14413 |
+
#: library/helpers/helper-core.php:1215
|
14414 |
msgid "Malayalam"
|
14415 |
msgstr ""
|
14416 |
|
14417 |
+
#: library/helpers/helper-core.php:1216
|
14418 |
msgid "Marathi"
|
14419 |
msgstr ""
|
14420 |
|
14421 |
+
#: library/helpers/helper-core.php:1217
|
14422 |
msgid "Mongolian"
|
14423 |
msgstr ""
|
14424 |
|
14425 |
+
#: library/helpers/helper-core.php:1218
|
14426 |
msgid "Norwegian"
|
14427 |
msgstr ""
|
14428 |
|
14429 |
+
#: library/helpers/helper-core.php:1219
|
14430 |
msgid "Persian"
|
14431 |
msgstr ""
|
14432 |
|
14433 |
+
#: library/helpers/helper-core.php:1220
|
14434 |
msgid "Polish"
|
14435 |
msgstr ""
|
14436 |
|
14437 |
+
#: library/helpers/helper-core.php:1221
|
14438 |
msgid "Portuguese"
|
14439 |
msgstr ""
|
14440 |
|
14441 |
+
#: library/helpers/helper-core.php:1222
|
14442 |
msgid "Portuguese (Brazil)"
|
14443 |
msgstr ""
|
14444 |
|
14445 |
+
#: library/helpers/helper-core.php:1223
|
14446 |
msgid "Portuguese (Portugal)"
|
14447 |
msgstr ""
|
14448 |
|
14449 |
+
#: library/helpers/helper-core.php:1224
|
14450 |
msgid "Romanian"
|
14451 |
msgstr ""
|
14452 |
|
14453 |
+
#: library/helpers/helper-core.php:1225
|
14454 |
msgid "Russian"
|
14455 |
msgstr ""
|
14456 |
|
14457 |
+
#: library/helpers/helper-core.php:1226
|
14458 |
msgid "Serbian"
|
14459 |
msgstr ""
|
14460 |
|
14461 |
+
#: library/helpers/helper-core.php:1227
|
14462 |
msgid "Sinhalese"
|
14463 |
msgstr ""
|
14464 |
|
14465 |
+
#: library/helpers/helper-core.php:1228
|
14466 |
msgid "Slovak"
|
14467 |
msgstr ""
|
14468 |
|
14469 |
+
#: library/helpers/helper-core.php:1229
|
14470 |
msgid "Slovenian"
|
14471 |
msgstr ""
|
14472 |
|
14473 |
+
#: library/helpers/helper-core.php:1230
|
14474 |
msgid "Spanish"
|
14475 |
msgstr ""
|
14476 |
|
14477 |
+
#: library/helpers/helper-core.php:1231
|
14478 |
msgid "Spanish (Latin America)"
|
14479 |
msgstr ""
|
14480 |
|
14481 |
+
#: library/helpers/helper-core.php:1232
|
14482 |
msgid "Swahili"
|
14483 |
msgstr ""
|
14484 |
|
14485 |
+
#: library/helpers/helper-core.php:1233
|
14486 |
msgid "Swedish"
|
14487 |
msgstr ""
|
14488 |
|
14489 |
+
#: library/helpers/helper-core.php:1234
|
14490 |
msgid "Tamil"
|
14491 |
msgstr ""
|
14492 |
|
14493 |
+
#: library/helpers/helper-core.php:1235
|
14494 |
msgid "Telugu"
|
14495 |
msgstr ""
|
14496 |
|
14497 |
+
#: library/helpers/helper-core.php:1236
|
14498 |
msgid "Thai"
|
14499 |
msgstr ""
|
14500 |
|
14501 |
+
#: library/helpers/helper-core.php:1237
|
14502 |
msgid "Turkish"
|
14503 |
msgstr ""
|
14504 |
|
14505 |
+
#: library/helpers/helper-core.php:1238
|
14506 |
msgid "Ukrainian"
|
14507 |
msgstr ""
|
14508 |
|
14509 |
+
#: library/helpers/helper-core.php:1239
|
14510 |
msgid "Urdu"
|
14511 |
msgstr ""
|
14512 |
|
14513 |
+
#: library/helpers/helper-core.php:1240
|
14514 |
msgid "Vietnamese"
|
14515 |
msgstr ""
|
14516 |
|
14517 |
+
#: library/helpers/helper-core.php:1241
|
14518 |
msgid "Zulu"
|
14519 |
msgstr ""
|
14520 |
|
15594 |
msgid "%1$sTotal Question Answered%2$s : %3$d"
|
15595 |
msgstr ""
|
15596 |
|
15597 |
+
#: library/helpers/helper-forms.php:793
|
15598 |
msgid "…"
|
15599 |
msgstr ""
|
15600 |
|
15601 |
+
#: library/helpers/helper-forms.php:888
|
15602 |
#. translators: ...
|
15603 |
msgid "%s ago"
|
15604 |
msgstr ""
|
15605 |
|
15606 |
+
#: library/helpers/helper-forms.php:1036
|
15607 |
msgid "I got {quiz_result} on {quiz_name} quiz!"
|
15608 |
msgstr ""
|
15609 |
|
15721 |
msgid "Generate leads with pop-ups, slide-ins and email opt-ins."
|
15722 |
msgstr ""
|
15723 |
|
15724 |
+
#: library/model/class-base-form-model.php:771
|
15725 |
msgid "Export Import feature disabled"
|
15726 |
msgstr ""
|
15727 |
|
15728 |
+
#: library/model/class-base-form-model.php:775
|
15729 |
msgid "Model loader for importer does not exist."
|
15730 |
msgstr ""
|
15731 |
|
15732 |
+
#: library/model/class-base-form-model.php:792
|
15733 |
msgid "Invalid format of import data type"
|
15734 |
msgstr ""
|
15735 |
|
15736 |
+
#: library/model/class-base-form-model.php:798
|
15737 |
msgid "Invalid format of import data"
|
15738 |
msgstr ""
|
15739 |
|
15740 |
+
#: library/model/class-base-form-model.php:802
|
15741 |
msgid "Invalid format of import data settings"
|
15742 |
msgstr ""
|
15743 |
|
15744 |
+
#: library/model/class-base-form-model.php:806
|
15745 |
msgid "Invalid format of import data name"
|
15746 |
msgstr ""
|
15747 |
|
15748 |
+
#: library/model/class-base-form-model.php:853
|
15749 |
msgid "Failed to load imported Forminator model"
|
15750 |
msgstr ""
|
15751 |
|
15752 |
#: library/model/class-custom-form-model.php:284
|
15753 |
+
#: library/modules/custom-forms/front/front-action.php:605
|
15754 |
msgid "Only logged in users can submit this form."
|
15755 |
msgstr ""
|
15756 |
|
16029 |
msgid "Delete Entries"
|
16030 |
msgstr ""
|
16031 |
|
16032 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:631
|
16033 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:921
|
16034 |
#: library/modules/quizzes/admin/admin-page-entries.php:672
|
16035 |
msgid "Date Submitted"
|
16036 |
msgstr ""
|
16037 |
|
16038 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:771
|
16039 |
msgid "Stripe Payment"
|
16040 |
msgstr ""
|
16041 |
|
16042 |
+
#: library/modules/custom-forms/admin/admin-page-entries.php:916
|
16043 |
msgid "Select all entries"
|
16044 |
msgstr ""
|
16045 |
|
16047 |
msgid "New Form"
|
16048 |
msgstr ""
|
16049 |
|
16050 |
+
#: library/modules/custom-forms/admin/admin-page-view.php:325
|
16051 |
#: library/modules/polls/admin/admin-page-view.php:313
|
16052 |
#: library/modules/quizzes/admin/admin-page-view.php:386
|
16053 |
msgid "Copy of %s"
|
16090 |
#: library/modules/custom-forms/form-templates/template-post.php:84
|
16091 |
#: library/modules/custom-forms/form-templates/template-quote.php:151
|
16092 |
#: library/modules/custom-forms/form-templates/template-registration.php:111
|
16093 |
+
#: library/modules/custom-forms/front/front-action.php:1546
|
16094 |
msgid "Error: Your form is not valid, please fix the errors!"
|
16095 |
msgstr ""
|
16096 |
|
16218 |
msgid "Register"
|
16219 |
msgstr ""
|
16220 |
|
16221 |
+
#: library/modules/custom-forms/front/front-action.php:88
|
16222 |
+
msgid "The payment total must be greater than 0."
|
16223 |
+
msgstr ""
|
16224 |
+
|
16225 |
+
#: library/modules/custom-forms/front/front-action.php:98
|
16226 |
+
msgid ""
|
16227 |
+
"Cannot create a new order on PayPal. If the error persists, please contact "
|
16228 |
+
"us for further assistance."
|
16229 |
+
msgstr ""
|
16230 |
+
|
16231 |
+
#: library/modules/custom-forms/front/front-action.php:138
|
16232 |
+
#: library/modules/custom-forms/front/front-action.php:1193
|
16233 |
+
#: library/modules/custom-forms/front/front-render.php:2857
|
16234 |
msgid "SSL required to submit this form, please check your URL."
|
16235 |
msgstr ""
|
16236 |
|
16237 |
+
#: library/modules/custom-forms/front/front-action.php:331
|
16238 |
msgid "Error: Stripe field doesn't exist in your form!"
|
16239 |
msgstr ""
|
16240 |
|
16241 |
+
#: library/modules/custom-forms/front/front-action.php:337
|
16242 |
msgid "Error: Form object is corrupted!"
|
16243 |
msgstr ""
|
16244 |
|
16245 |
+
#: library/modules/custom-forms/front/front-action.php:343
|
16246 |
msgid "Error: Your form ID doesn't exist!"
|
16247 |
msgstr ""
|
16248 |
|
16249 |
+
#: library/modules/custom-forms/front/front-action.php:611
|
16250 |
msgid "This form is not published."
|
16251 |
msgstr ""
|
16252 |
|
16253 |
+
#: library/modules/custom-forms/front/front-action.php:648
|
16254 |
msgid "At least one field must be filled out to submit the form."
|
16255 |
msgstr ""
|
16256 |
|
16257 |
+
#: library/modules/custom-forms/front/front-action.php:933
|
16258 |
msgid "There was an error saving the post data. Please try again"
|
16259 |
msgstr ""
|
16260 |
|
16261 |
+
#: library/modules/custom-forms/front/front-action.php:1038
|
16262 |
msgid "Whoops, the passcode you entered was incorrect or expired."
|
16263 |
msgstr ""
|
16264 |
|
16265 |
+
#: library/modules/custom-forms/front/front-action.php:1086
|
16266 |
+
#: library/modules/custom-forms/front/front-action.php:1141
|
16267 |
msgid "Form entry saved"
|
16268 |
msgstr ""
|
16269 |
|
16270 |
+
#: library/modules/custom-forms/front/front-action.php:1454
|
16271 |
msgid "form not found"
|
16272 |
msgstr ""
|
16273 |
|
16309 |
msgid "Page "
|
16310 |
msgstr ""
|
16311 |
|
16312 |
+
#: library/modules/custom-forms/front/front-render.php:2425
|
16313 |
msgid "Jan"
|
16314 |
msgstr ""
|
16315 |
|
16316 |
+
#: library/modules/custom-forms/front/front-render.php:2426
|
16317 |
msgid "Feb"
|
16318 |
msgstr ""
|
16319 |
|
16320 |
+
#: library/modules/custom-forms/front/front-render.php:2427
|
16321 |
msgid "Mar"
|
16322 |
msgstr ""
|
16323 |
|
16324 |
+
#: library/modules/custom-forms/front/front-render.php:2428
|
16325 |
msgid "Apr"
|
16326 |
msgstr ""
|
16327 |
|
16328 |
+
#: library/modules/custom-forms/front/front-render.php:2430
|
16329 |
msgid "Jun"
|
16330 |
msgstr ""
|
16331 |
|
16332 |
+
#: library/modules/custom-forms/front/front-render.php:2431
|
16333 |
msgid "Jul"
|
16334 |
msgstr ""
|
16335 |
|
16336 |
+
#: library/modules/custom-forms/front/front-render.php:2432
|
16337 |
msgid "Aug"
|
16338 |
msgstr ""
|
16339 |
|
16340 |
+
#: library/modules/custom-forms/front/front-render.php:2433
|
16341 |
msgid "Sep"
|
16342 |
msgstr ""
|
16343 |
|
16344 |
+
#: library/modules/custom-forms/front/front-render.php:2434
|
16345 |
msgid "Oct"
|
16346 |
msgstr ""
|
16347 |
|
16348 |
+
#: library/modules/custom-forms/front/front-render.php:2435
|
16349 |
msgid "Nov"
|
16350 |
msgstr ""
|
16351 |
|
16352 |
+
#: library/modules/custom-forms/front/front-render.php:2436
|
16353 |
msgid "Dec"
|
16354 |
msgstr ""
|
16355 |
|
16356 |
+
#: library/modules/custom-forms/front/front-render.php:2859
|
16357 |
msgid "PayPal amount must be greater than 0."
|
16358 |
msgstr ""
|
16359 |
|
16949 |
|
16950 |
#: library/modules/polls/admin/admin-page-entries.php:397
|
16951 |
#: library/modules/polls/front/front-action.php:414
|
16952 |
+
#: library/modules/polls/front/front-render.php:1134
|
16953 |
msgid "vote(s)"
|
16954 |
msgstr ""
|
16955 |
|
16967 |
msgstr ""
|
16968 |
|
16969 |
#: library/modules/polls/front/front-action.php:420
|
16970 |
+
#: library/modules/polls/front/front-render.php:424
|
16971 |
+
#: library/modules/polls/front/front-render.php:452
|
16972 |
msgid "View results"
|
16973 |
msgstr ""
|
16974 |
|
16984 |
msgid "You have already submitted a vote to this poll"
|
16985 |
msgstr ""
|
16986 |
|
16987 |
+
#: library/modules/polls/front/front-render.php:274
|
16988 |
msgid "Your vote has been saved."
|
16989 |
msgstr ""
|
16990 |
|
16991 |
+
#: library/modules/polls/front/front-render.php:287
|
16992 |
msgid "You have already voted for this poll."
|
16993 |
msgstr ""
|
16994 |
|
16995 |
+
#: library/modules/polls/front/front-render.php:417
|
16996 |
msgid "No votes yet"
|
16997 |
msgstr ""
|
16998 |
|
16999 |
+
#: library/modules/polls/front/front-render.php:468
|
17000 |
msgid "Poll ID attribute is required!"
|
17001 |
msgstr ""
|
17002 |
|
|
|
17003 |
#: library/modules/polls/front/front-render.php:936
|
17004 |
+
#: library/modules/polls/front/front-render.php:941
|
17005 |
msgid "Back to poll"
|
17006 |
msgstr ""
|
17007 |
|
17545 |
msgstr ""
|
17546 |
|
17547 |
#: library/modules/quizzes/front/front-action.php:88
|
17548 |
+
#: library/modules/quizzes/front/front-action.php:380
|
17549 |
msgid "Quiz submissions disabled."
|
17550 |
msgstr ""
|
17551 |
|
17552 |
+
#: library/modules/quizzes/front/front-action.php:225
|
17553 |
+
#: library/modules/quizzes/front/front-action.php:250
|
17554 |
+
#: library/modules/quizzes/front/front-action.php:262
|
17555 |
msgid "Retake Quiz"
|
17556 |
msgstr ""
|
17557 |
|
17558 |
+
#: library/modules/quizzes/front/front-action.php:304
|
17559 |
+
#: library/modules/quizzes/front/front-action.php:576
|
17560 |
msgid "Share your results"
|
17561 |
msgstr ""
|
17562 |
|
17563 |
+
#: library/modules/quizzes/front/front-action.php:310
|
17564 |
+
#: library/modules/quizzes/front/front-action.php:312
|
17565 |
+
#: library/modules/quizzes/front/front-action.php:582
|
17566 |
+
#: library/modules/quizzes/front/front-action.php:584
|
17567 |
msgid "Share on Facebook"
|
17568 |
msgstr ""
|
17569 |
|
17570 |
+
#: library/modules/quizzes/front/front-action.php:318
|
17571 |
+
#: library/modules/quizzes/front/front-action.php:320
|
17572 |
+
#: library/modules/quizzes/front/front-action.php:590
|
17573 |
+
#: library/modules/quizzes/front/front-action.php:592
|
17574 |
msgid "Share on Twitter"
|
17575 |
msgstr ""
|
17576 |
|
17577 |
+
#: library/modules/quizzes/front/front-action.php:326
|
17578 |
+
#: library/modules/quizzes/front/front-action.php:328
|
17579 |
+
#: library/modules/quizzes/front/front-action.php:598
|
17580 |
+
#: library/modules/quizzes/front/front-action.php:600
|
17581 |
msgid "Share on LinkedIn"
|
17582 |
msgstr ""
|
17583 |
|
17584 |
+
#: library/modules/quizzes/front/front-action.php:390
|
17585 |
msgid "You haven't answered any questions"
|
17586 |
msgstr ""
|
17587 |
|
17588 |
+
#: library/modules/quizzes/front/front-action.php:402
|
17589 |
msgid "Please answer all the questions"
|
17590 |
msgstr ""
|
17591 |
|
library/class-export.php
CHANGED
@@ -218,7 +218,7 @@ class Forminator_Export {
|
|
218 |
'enabled' => $enabled,
|
219 |
'form_id' => $post_data['form_id'],
|
220 |
'form_type' => $post_data['form_type'],
|
221 |
-
'email' => $post_data['email'],
|
222 |
'interval' => $post_data['interval'],
|
223 |
'month_day' => $post_data['month_day'],
|
224 |
'day' => $post_data['day'],
|
@@ -790,8 +790,8 @@ class Forminator_Export {
|
|
790 |
$last_sent_array = explode( '-', date( 'Y-m-d', $last_sent ) );
|
791 |
|
792 |
$next_sent_array = array();
|
793 |
-
$next_sent_array[0] = 12
|
794 |
-
$next_sent_array[1] = 12
|
795 |
$next_sent_array[2] = $month_day;
|
796 |
|
797 |
$is_valid_date = checkdate( $next_sent_array[1], $next_sent_array[2], $next_sent_array[0] );
|
218 |
'enabled' => $enabled,
|
219 |
'form_id' => $post_data['form_id'],
|
220 |
'form_type' => $post_data['form_type'],
|
221 |
+
'email' => ! empty( $post_data['email'] ) ? $post_data['email'] : '',
|
222 |
'interval' => $post_data['interval'],
|
223 |
'month_day' => $post_data['month_day'],
|
224 |
'day' => $post_data['day'],
|
790 |
$last_sent_array = explode( '-', date( 'Y-m-d', $last_sent ) );
|
791 |
|
792 |
$next_sent_array = array();
|
793 |
+
$next_sent_array[0] = ( 12 == $last_sent_array[1] ) ? $last_sent_array[0] + 1 : $last_sent_array[0];
|
794 |
+
$next_sent_array[1] = ( 12 == $last_sent_array[1] ) ? 1 : $last_sent_array[1] + 1;
|
795 |
$next_sent_array[2] = $month_day;
|
796 |
|
797 |
$is_valid_date = checkdate( $next_sent_array[1], $next_sent_array[2], $next_sent_array[0] );
|
library/external/src/Forminator/PayPal/Api/Address.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Class Address
|
7 |
-
*
|
8 |
-
* Base Address object used as billing address in a payment or extended for Shipping Address.
|
9 |
-
*
|
10 |
-
* @package Forminator\PayPal\Api
|
11 |
-
*
|
12 |
-
* @property string phone
|
13 |
-
* @property string type
|
14 |
-
*/
|
15 |
-
class Address extends BaseAddress
|
16 |
-
{
|
17 |
-
/**
|
18 |
-
* Phone number in E.123 format. 50 characters max.
|
19 |
-
*
|
20 |
-
* @param string $phone
|
21 |
-
*
|
22 |
-
* @return $this
|
23 |
-
*/
|
24 |
-
public function setPhone($phone)
|
25 |
-
{
|
26 |
-
$this->phone = $phone;
|
27 |
-
return $this;
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Phone number in E.123 format. 50 characters max.
|
32 |
-
*
|
33 |
-
* @return string
|
34 |
-
*/
|
35 |
-
public function getPhone()
|
36 |
-
{
|
37 |
-
return $this->phone;
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
|
42 |
-
*
|
43 |
-
* @param string $type
|
44 |
-
*
|
45 |
-
* @return $this
|
46 |
-
*/
|
47 |
-
public function setType($type)
|
48 |
-
{
|
49 |
-
$this->type = $type;
|
50 |
-
return $this;
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
|
55 |
-
*
|
56 |
-
* @return string
|
57 |
-
*/
|
58 |
-
public function getType()
|
59 |
-
{
|
60 |
-
return $this->type;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Agreement.php
DELETED
@@ -1,647 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalResourceModel;
|
6 |
-
use Forminator\PayPal\Core\PayPalConstants;
|
7 |
-
use Forminator\PayPal\Rest\ApiContext;
|
8 |
-
use Forminator\PayPal\Transport\PayPalRestCall;
|
9 |
-
use Forminator\PayPal\Validation\ArgumentValidator;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Class Agreement
|
13 |
-
*
|
14 |
-
* A resource representing an agreement.
|
15 |
-
*
|
16 |
-
* @package Forminator\PayPal\Api
|
17 |
-
*
|
18 |
-
* @property string id
|
19 |
-
* @property string state
|
20 |
-
* @property string name
|
21 |
-
* @property string description
|
22 |
-
* @property string start_date
|
23 |
-
* @property \Forminator\PayPal\Api\Payer payer
|
24 |
-
* @property \Forminator\PayPal\Api\Address shipping_address
|
25 |
-
* @property \Forminator\PayPal\Api\MerchantPreferences override_merchant_preferences
|
26 |
-
* @property \Forminator\PayPal\Api\OverrideChargeModel[] override_charge_models
|
27 |
-
* @property \Forminator\PayPal\Api\Plan plan
|
28 |
-
* @property string create_time
|
29 |
-
* @property string update_time
|
30 |
-
* @property \Forminator\PayPal\Api\AgreementDetails agreement_details
|
31 |
-
*/
|
32 |
-
class Agreement extends PayPalResourceModel
|
33 |
-
{
|
34 |
-
/**
|
35 |
-
* Identifier of the agreement.
|
36 |
-
*
|
37 |
-
* @param string $id
|
38 |
-
*
|
39 |
-
* @return $this
|
40 |
-
*/
|
41 |
-
public function setId($id)
|
42 |
-
{
|
43 |
-
$this->id = $id;
|
44 |
-
return $this;
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Identifier of the agreement.
|
49 |
-
*
|
50 |
-
* @return string
|
51 |
-
*/
|
52 |
-
public function getId()
|
53 |
-
{
|
54 |
-
return $this->id;
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* State of the agreement.
|
59 |
-
*
|
60 |
-
* @param string $state
|
61 |
-
*
|
62 |
-
* @return $this
|
63 |
-
*/
|
64 |
-
public function setState($state)
|
65 |
-
{
|
66 |
-
$this->state = $state;
|
67 |
-
return $this;
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* State of the agreement.
|
72 |
-
*
|
73 |
-
* @return string
|
74 |
-
*/
|
75 |
-
public function getState()
|
76 |
-
{
|
77 |
-
return $this->state;
|
78 |
-
}
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Name of the agreement.
|
82 |
-
*
|
83 |
-
* @param string $name
|
84 |
-
*
|
85 |
-
* @return $this
|
86 |
-
*/
|
87 |
-
public function setName($name)
|
88 |
-
{
|
89 |
-
$this->name = $name;
|
90 |
-
return $this;
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* Name of the agreement.
|
95 |
-
*
|
96 |
-
* @return string
|
97 |
-
*/
|
98 |
-
public function getName()
|
99 |
-
{
|
100 |
-
return $this->name;
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Description of the agreement.
|
105 |
-
*
|
106 |
-
* @param string $description
|
107 |
-
*
|
108 |
-
* @return $this
|
109 |
-
*/
|
110 |
-
public function setDescription($description)
|
111 |
-
{
|
112 |
-
$this->description = $description;
|
113 |
-
return $this;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Description of the agreement.
|
118 |
-
*
|
119 |
-
* @return string
|
120 |
-
*/
|
121 |
-
public function getDescription()
|
122 |
-
{
|
123 |
-
return $this->description;
|
124 |
-
}
|
125 |
-
|
126 |
-
/**
|
127 |
-
* Start date of the agreement. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
128 |
-
*
|
129 |
-
* @param string $start_date
|
130 |
-
*
|
131 |
-
* @return $this
|
132 |
-
*/
|
133 |
-
public function setStartDate($start_date)
|
134 |
-
{
|
135 |
-
$this->start_date = $start_date;
|
136 |
-
return $this;
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* Start date of the agreement. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
141 |
-
*
|
142 |
-
* @return string
|
143 |
-
*/
|
144 |
-
public function getStartDate()
|
145 |
-
{
|
146 |
-
return $this->start_date;
|
147 |
-
}
|
148 |
-
|
149 |
-
/**
|
150 |
-
* Details of the buyer who is enrolling in this agreement. This information is gathered from execution of the approval URL.
|
151 |
-
*
|
152 |
-
* @param \Forminator\PayPal\Api\Payer $payer
|
153 |
-
*
|
154 |
-
* @return $this
|
155 |
-
*/
|
156 |
-
public function setPayer($payer)
|
157 |
-
{
|
158 |
-
$this->payer = $payer;
|
159 |
-
return $this;
|
160 |
-
}
|
161 |
-
|
162 |
-
/**
|
163 |
-
* Details of the buyer who is enrolling in this agreement. This information is gathered from execution of the approval URL.
|
164 |
-
*
|
165 |
-
* @return \Forminator\PayPal\Api\Payer
|
166 |
-
*/
|
167 |
-
public function getPayer()
|
168 |
-
{
|
169 |
-
return $this->payer;
|
170 |
-
}
|
171 |
-
|
172 |
-
/**
|
173 |
-
* Shipping address object of the agreement, which should be provided if it is different from the default address.
|
174 |
-
*
|
175 |
-
* @param \Forminator\PayPal\Api\Address $shipping_address
|
176 |
-
*
|
177 |
-
* @return $this
|
178 |
-
*/
|
179 |
-
public function setShippingAddress($shipping_address)
|
180 |
-
{
|
181 |
-
$this->shipping_address = $shipping_address;
|
182 |
-
return $this;
|
183 |
-
}
|
184 |
-
|
185 |
-
/**
|
186 |
-
* Shipping address object of the agreement, which should be provided if it is different from the default address.
|
187 |
-
*
|
188 |
-
* @return \Forminator\PayPal\Api\Address
|
189 |
-
*/
|
190 |
-
public function getShippingAddress()
|
191 |
-
{
|
192 |
-
return $this->shipping_address;
|
193 |
-
}
|
194 |
-
|
195 |
-
/**
|
196 |
-
* Default merchant preferences from the billing plan are used, unless override preferences are provided here.
|
197 |
-
*
|
198 |
-
* @param \Forminator\PayPal\Api\MerchantPreferences $override_merchant_preferences
|
199 |
-
*
|
200 |
-
* @return $this
|
201 |
-
*/
|
202 |
-
public function setOverrideMerchantPreferences($override_merchant_preferences)
|
203 |
-
{
|
204 |
-
$this->override_merchant_preferences = $override_merchant_preferences;
|
205 |
-
return $this;
|
206 |
-
}
|
207 |
-
|
208 |
-
/**
|
209 |
-
* Default merchant preferences from the billing plan are used, unless override preferences are provided here.
|
210 |
-
*
|
211 |
-
* @return \Forminator\PayPal\Api\MerchantPreferences
|
212 |
-
*/
|
213 |
-
public function getOverrideMerchantPreferences()
|
214 |
-
{
|
215 |
-
return $this->override_merchant_preferences;
|
216 |
-
}
|
217 |
-
|
218 |
-
/**
|
219 |
-
* Array of override_charge_model for this agreement if needed to change the default models from the billing plan.
|
220 |
-
*
|
221 |
-
* @param \Forminator\PayPal\Api\OverrideChargeModel[] $override_charge_models
|
222 |
-
*
|
223 |
-
* @return $this
|
224 |
-
*/
|
225 |
-
public function setOverrideChargeModels($override_charge_models)
|
226 |
-
{
|
227 |
-
$this->override_charge_models = $override_charge_models;
|
228 |
-
return $this;
|
229 |
-
}
|
230 |
-
|
231 |
-
/**
|
232 |
-
* Array of override_charge_model for this agreement if needed to change the default models from the billing plan.
|
233 |
-
*
|
234 |
-
* @return \Forminator\PayPal\Api\OverrideChargeModel[]
|
235 |
-
*/
|
236 |
-
public function getOverrideChargeModels()
|
237 |
-
{
|
238 |
-
return $this->override_charge_models;
|
239 |
-
}
|
240 |
-
|
241 |
-
/**
|
242 |
-
* Append OverrideChargeModels to the list.
|
243 |
-
*
|
244 |
-
* @param \Forminator\PayPal\Api\OverrideChargeModel $overrideChargeModel
|
245 |
-
* @return $this
|
246 |
-
*/
|
247 |
-
public function addOverrideChargeModel($overrideChargeModel)
|
248 |
-
{
|
249 |
-
if (!$this->getOverrideChargeModels()) {
|
250 |
-
return $this->setOverrideChargeModels(array($overrideChargeModel));
|
251 |
-
} else {
|
252 |
-
return $this->setOverrideChargeModels(
|
253 |
-
array_merge($this->getOverrideChargeModels(), array($overrideChargeModel))
|
254 |
-
);
|
255 |
-
}
|
256 |
-
}
|
257 |
-
|
258 |
-
/**
|
259 |
-
* Remove OverrideChargeModels from the list.
|
260 |
-
*
|
261 |
-
* @param \Forminator\PayPal\Api\OverrideChargeModel $overrideChargeModel
|
262 |
-
* @return $this
|
263 |
-
*/
|
264 |
-
public function removeOverrideChargeModel($overrideChargeModel)
|
265 |
-
{
|
266 |
-
return $this->setOverrideChargeModels(
|
267 |
-
array_diff($this->getOverrideChargeModels(), array($overrideChargeModel))
|
268 |
-
);
|
269 |
-
}
|
270 |
-
|
271 |
-
/**
|
272 |
-
* Plan details for this agreement.
|
273 |
-
*
|
274 |
-
* @param \Forminator\PayPal\Api\Plan $plan
|
275 |
-
*
|
276 |
-
* @return $this
|
277 |
-
*/
|
278 |
-
public function setPlan($plan)
|
279 |
-
{
|
280 |
-
$this->plan = $plan;
|
281 |
-
return $this;
|
282 |
-
}
|
283 |
-
|
284 |
-
/**
|
285 |
-
* Plan details for this agreement.
|
286 |
-
*
|
287 |
-
* @return \Forminator\PayPal\Api\Plan
|
288 |
-
*/
|
289 |
-
public function getPlan()
|
290 |
-
{
|
291 |
-
return $this->plan;
|
292 |
-
}
|
293 |
-
|
294 |
-
/**
|
295 |
-
* Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
296 |
-
*
|
297 |
-
* @param string $create_time
|
298 |
-
*
|
299 |
-
* @return $this
|
300 |
-
*/
|
301 |
-
public function setCreateTime($create_time)
|
302 |
-
{
|
303 |
-
$this->create_time = $create_time;
|
304 |
-
return $this;
|
305 |
-
}
|
306 |
-
|
307 |
-
/**
|
308 |
-
* Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
309 |
-
*
|
310 |
-
* @return string
|
311 |
-
*/
|
312 |
-
public function getCreateTime()
|
313 |
-
{
|
314 |
-
return $this->create_time;
|
315 |
-
}
|
316 |
-
|
317 |
-
/**
|
318 |
-
* Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
319 |
-
*
|
320 |
-
* @param string $update_time
|
321 |
-
*
|
322 |
-
* @return $this
|
323 |
-
*/
|
324 |
-
public function setUpdateTime($update_time)
|
325 |
-
{
|
326 |
-
$this->update_time = $update_time;
|
327 |
-
return $this;
|
328 |
-
}
|
329 |
-
|
330 |
-
/**
|
331 |
-
* Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
332 |
-
*
|
333 |
-
* @return string
|
334 |
-
*/
|
335 |
-
public function getUpdateTime()
|
336 |
-
{
|
337 |
-
return $this->update_time;
|
338 |
-
}
|
339 |
-
|
340 |
-
/**
|
341 |
-
* Agreement Details
|
342 |
-
*
|
343 |
-
* @param \Forminator\PayPal\Api\AgreementDetails $agreement_details
|
344 |
-
*
|
345 |
-
* @return $this
|
346 |
-
*/
|
347 |
-
public function setAgreementDetails($agreement_details)
|
348 |
-
{
|
349 |
-
$this->agreement_details = $agreement_details;
|
350 |
-
return $this;
|
351 |
-
}
|
352 |
-
|
353 |
-
/**
|
354 |
-
* Agreement Details
|
355 |
-
*
|
356 |
-
* @return \Forminator\PayPal\Api\AgreementDetails
|
357 |
-
*/
|
358 |
-
public function getAgreementDetails()
|
359 |
-
{
|
360 |
-
return $this->agreement_details;
|
361 |
-
}
|
362 |
-
|
363 |
-
/**
|
364 |
-
* Get Approval Link
|
365 |
-
*
|
366 |
-
* @return null|string
|
367 |
-
*/
|
368 |
-
public function getApprovalLink()
|
369 |
-
{
|
370 |
-
return $this->getLink(PayPalConstants::APPROVAL_URL);
|
371 |
-
}
|
372 |
-
|
373 |
-
/**
|
374 |
-
* Create a new billing agreement by passing the details for the agreement, including the name, description, start date, payer, and billing plan in the request JSON.
|
375 |
-
*
|
376 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
377 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
378 |
-
* @return Agreement
|
379 |
-
*/
|
380 |
-
public function create($apiContext = null, $restCall = null)
|
381 |
-
{
|
382 |
-
$payLoad = $this->toJSON();
|
383 |
-
$json = self::executeCall(
|
384 |
-
"/v1/payments/billing-agreements/",
|
385 |
-
"POST",
|
386 |
-
$payLoad,
|
387 |
-
null,
|
388 |
-
$apiContext,
|
389 |
-
$restCall
|
390 |
-
);
|
391 |
-
$this->fromJson($json);
|
392 |
-
return $this;
|
393 |
-
}
|
394 |
-
|
395 |
-
/**
|
396 |
-
* Execute a billing agreement after buyer approval by passing the payment token to the request URI.
|
397 |
-
*
|
398 |
-
* @param $paymentToken
|
399 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
400 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
401 |
-
* @return Agreement
|
402 |
-
*/
|
403 |
-
public function execute($paymentToken, $apiContext = null, $restCall = null)
|
404 |
-
{
|
405 |
-
ArgumentValidator::validate($paymentToken, 'paymentToken');
|
406 |
-
$payLoad = "";
|
407 |
-
$json = self::executeCall(
|
408 |
-
"/v1/payments/billing-agreements/$paymentToken/agreement-execute",
|
409 |
-
"POST",
|
410 |
-
$payLoad,
|
411 |
-
null,
|
412 |
-
$apiContext,
|
413 |
-
$restCall
|
414 |
-
);
|
415 |
-
$this->fromJson($json);
|
416 |
-
return $this;
|
417 |
-
}
|
418 |
-
|
419 |
-
/**
|
420 |
-
* Retrieve details for a particular billing agreement by passing the ID of the agreement to the request URI.
|
421 |
-
*
|
422 |
-
* @param string $agreementId
|
423 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
424 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
425 |
-
* @return Agreement
|
426 |
-
*/
|
427 |
-
public static function get($agreementId, $apiContext = null, $restCall = null)
|
428 |
-
{
|
429 |
-
ArgumentValidator::validate($agreementId, 'agreementId');
|
430 |
-
$payLoad = "";
|
431 |
-
$json = self::executeCall(
|
432 |
-
"/v1/payments/billing-agreements/$agreementId",
|
433 |
-
"GET",
|
434 |
-
$payLoad,
|
435 |
-
null,
|
436 |
-
$apiContext,
|
437 |
-
$restCall
|
438 |
-
);
|
439 |
-
$ret = new Agreement();
|
440 |
-
$ret->fromJson($json);
|
441 |
-
return $ret;
|
442 |
-
}
|
443 |
-
|
444 |
-
/**
|
445 |
-
* Update details of a billing agreement, such as the description, shipping address, and start date, by passing the ID of the agreement to the request URI.
|
446 |
-
*
|
447 |
-
* @param PatchRequest $patchRequest
|
448 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
449 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
450 |
-
* @return bool
|
451 |
-
*/
|
452 |
-
public function update($patchRequest, $apiContext = null, $restCall = null)
|
453 |
-
{
|
454 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
455 |
-
ArgumentValidator::validate($patchRequest, 'patchRequest');
|
456 |
-
$payLoad = $patchRequest->toJSON();
|
457 |
-
self::executeCall(
|
458 |
-
"/v1/payments/billing-agreements/{$this->getId()}",
|
459 |
-
"PATCH",
|
460 |
-
$payLoad,
|
461 |
-
null,
|
462 |
-
$apiContext,
|
463 |
-
$restCall
|
464 |
-
);
|
465 |
-
return true;
|
466 |
-
}
|
467 |
-
|
468 |
-
/**
|
469 |
-
* Suspend a particular billing agreement by passing the ID of the agreement to the request URI.
|
470 |
-
*
|
471 |
-
* @param AgreementStateDescriptor $agreementStateDescriptor
|
472 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
473 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
474 |
-
* @return bool
|
475 |
-
*/
|
476 |
-
public function suspend($agreementStateDescriptor, $apiContext = null, $restCall = null)
|
477 |
-
{
|
478 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
479 |
-
ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor');
|
480 |
-
$payLoad = $agreementStateDescriptor->toJSON();
|
481 |
-
self::executeCall(
|
482 |
-
"/v1/payments/billing-agreements/{$this->getId()}/suspend",
|
483 |
-
"POST",
|
484 |
-
$payLoad,
|
485 |
-
null,
|
486 |
-
$apiContext,
|
487 |
-
$restCall
|
488 |
-
);
|
489 |
-
return true;
|
490 |
-
}
|
491 |
-
|
492 |
-
/**
|
493 |
-
* Reactivate a suspended billing agreement by passing the ID of the agreement to the appropriate URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement.
|
494 |
-
*
|
495 |
-
* @param AgreementStateDescriptor $agreementStateDescriptor
|
496 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
497 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
498 |
-
* @return bool
|
499 |
-
*/
|
500 |
-
public function reActivate($agreementStateDescriptor, $apiContext = null, $restCall = null)
|
501 |
-
{
|
502 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
503 |
-
ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor');
|
504 |
-
$payLoad = $agreementStateDescriptor->toJSON();
|
505 |
-
self::executeCall(
|
506 |
-
"/v1/payments/billing-agreements/{$this->getId()}/re-activate",
|
507 |
-
"POST",
|
508 |
-
$payLoad,
|
509 |
-
null,
|
510 |
-
$apiContext,
|
511 |
-
$restCall
|
512 |
-
);
|
513 |
-
return true;
|
514 |
-
}
|
515 |
-
|
516 |
-
/**
|
517 |
-
* Cancel a billing agreement by passing the ID of the agreement to the request URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement.
|
518 |
-
*
|
519 |
-
* @param AgreementStateDescriptor $agreementStateDescriptor
|
520 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
521 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
522 |
-
* @return bool
|
523 |
-
*/
|
524 |
-
public function cancel($agreementStateDescriptor, $apiContext = null, $restCall = null)
|
525 |
-
{
|
526 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
527 |
-
ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor');
|
528 |
-
$payLoad = $agreementStateDescriptor->toJSON();
|
529 |
-
self::executeCall(
|
530 |
-
"/v1/payments/billing-agreements/{$this->getId()}/cancel",
|
531 |
-
"POST",
|
532 |
-
$payLoad,
|
533 |
-
null,
|
534 |
-
$apiContext,
|
535 |
-
$restCall
|
536 |
-
);
|
537 |
-
return true;
|
538 |
-
}
|
539 |
-
|
540 |
-
/**
|
541 |
-
* Bill an outstanding amount for an agreement by passing the ID of the agreement to the request URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement.
|
542 |
-
*
|
543 |
-
* @param AgreementStateDescriptor $agreementStateDescriptor
|
544 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
545 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
546 |
-
* @return bool
|
547 |
-
*/
|
548 |
-
public function billBalance($agreementStateDescriptor, $apiContext = null, $restCall = null)
|
549 |
-
{
|
550 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
551 |
-
ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor');
|
552 |
-
$payLoad = $agreementStateDescriptor->toJSON();
|
553 |
-
self::executeCall(
|
554 |
-
"/v1/payments/billing-agreements/{$this->getId()}/bill-balance",
|
555 |
-
"POST",
|
556 |
-
$payLoad,
|
557 |
-
null,
|
558 |
-
$apiContext,
|
559 |
-
$restCall
|
560 |
-
);
|
561 |
-
return true;
|
562 |
-
}
|
563 |
-
|
564 |
-
/**
|
565 |
-
* Set the balance for an agreement by passing the ID of the agreement to the request URI. In addition, pass a common_currency object in the request JSON that specifies the currency type and value of the balance.
|
566 |
-
*
|
567 |
-
* @param Currency $currency
|
568 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
569 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
570 |
-
* @return bool
|
571 |
-
*/
|
572 |
-
public function setBalance($currency, $apiContext = null, $restCall = null)
|
573 |
-
{
|
574 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
575 |
-
ArgumentValidator::validate($currency, 'currency');
|
576 |
-
$payLoad = $currency->toJSON();
|
577 |
-
self::executeCall(
|
578 |
-
"/v1/payments/billing-agreements/{$this->getId()}/set-balance",
|
579 |
-
"POST",
|
580 |
-
$payLoad,
|
581 |
-
null,
|
582 |
-
$apiContext,
|
583 |
-
$restCall
|
584 |
-
);
|
585 |
-
return true;
|
586 |
-
}
|
587 |
-
|
588 |
-
/**
|
589 |
-
* List transactions for a billing agreement by passing the ID of the agreement, as well as the start and end dates of the range of transactions to list, to the request URI.
|
590 |
-
*
|
591 |
-
* @deprecated Please use searchTransactions Instead
|
592 |
-
* @param string $agreementId
|
593 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
594 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
595 |
-
* @return AgreementTransactions
|
596 |
-
*/
|
597 |
-
public static function transactions($agreementId, $apiContext = null, $restCall = null)
|
598 |
-
{
|
599 |
-
ArgumentValidator::validate($agreementId, 'agreementId');
|
600 |
-
$payLoad = "";
|
601 |
-
$json = self::executeCall(
|
602 |
-
"/v1/payments/billing-agreements/$agreementId/transactions",
|
603 |
-
"GET",
|
604 |
-
$payLoad,
|
605 |
-
null,
|
606 |
-
$apiContext,
|
607 |
-
$restCall
|
608 |
-
);
|
609 |
-
$ret = new AgreementTransactions();
|
610 |
-
$ret->fromJson($json);
|
611 |
-
return $ret;
|
612 |
-
}
|
613 |
-
|
614 |
-
/**
|
615 |
-
* List transactions for a billing agreement by passing the ID of the agreement, as well as the start and end dates of the range of transactions to list, to the request URI.
|
616 |
-
*
|
617 |
-
* @param string $agreementId
|
618 |
-
* @param array $params Parameters for search string. Options: start_date, and end_date
|
619 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
620 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
621 |
-
* @return AgreementTransactions
|
622 |
-
*/
|
623 |
-
public static function searchTransactions($agreementId, $params = array(), $apiContext = null, $restCall = null)
|
624 |
-
{
|
625 |
-
ArgumentValidator::validate($agreementId, 'agreementId');
|
626 |
-
ArgumentValidator::validate($params, 'params');
|
627 |
-
|
628 |
-
$allowedParams = array(
|
629 |
-
'start_date' => 1,
|
630 |
-
'end_date' => 1,
|
631 |
-
);
|
632 |
-
|
633 |
-
$payLoad = "";
|
634 |
-
$json = self::executeCall(
|
635 |
-
"/v1/payments/billing-agreements/$agreementId/transactions?" . http_build_query(array_intersect_key($params, $allowedParams)),
|
636 |
-
"GET",
|
637 |
-
$payLoad,
|
638 |
-
null,
|
639 |
-
$apiContext,
|
640 |
-
$restCall
|
641 |
-
);
|
642 |
-
$ret = new AgreementTransactions();
|
643 |
-
$ret->fromJson($json);
|
644 |
-
return $ret;
|
645 |
-
}
|
646 |
-
|
647 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/AgreementDetails.php
DELETED
@@ -1,209 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class AgreementDetails
|
9 |
-
*
|
10 |
-
* A resource representing the agreement details.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property \Forminator\PayPal\Api\Currency outstanding_balance
|
15 |
-
* @property string cycles_remaining
|
16 |
-
* @property string cycles_completed
|
17 |
-
* @property string next_billing_date
|
18 |
-
* @property string last_payment_date
|
19 |
-
* @property \Forminator\PayPal\Api\Currency last_payment_amount
|
20 |
-
* @property string final_payment_date
|
21 |
-
* @property string failed_payment_count
|
22 |
-
*/
|
23 |
-
class AgreementDetails extends PayPalModel
|
24 |
-
{
|
25 |
-
/**
|
26 |
-
* The outstanding balance for this agreement.
|
27 |
-
*
|
28 |
-
* @param \Forminator\PayPal\Api\Currency $outstanding_balance
|
29 |
-
*
|
30 |
-
* @return $this
|
31 |
-
*/
|
32 |
-
public function setOutstandingBalance($outstanding_balance)
|
33 |
-
{
|
34 |
-
$this->outstanding_balance = $outstanding_balance;
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* The outstanding balance for this agreement.
|
40 |
-
*
|
41 |
-
* @return \Forminator\PayPal\Api\Currency
|
42 |
-
*/
|
43 |
-
public function getOutstandingBalance()
|
44 |
-
{
|
45 |
-
return $this->outstanding_balance;
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Number of cycles remaining for this agreement.
|
50 |
-
*
|
51 |
-
* @param string $cycles_remaining
|
52 |
-
*
|
53 |
-
* @return $this
|
54 |
-
*/
|
55 |
-
public function setCyclesRemaining($cycles_remaining)
|
56 |
-
{
|
57 |
-
$this->cycles_remaining = $cycles_remaining;
|
58 |
-
return $this;
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Number of cycles remaining for this agreement.
|
63 |
-
*
|
64 |
-
* @return string
|
65 |
-
*/
|
66 |
-
public function getCyclesRemaining()
|
67 |
-
{
|
68 |
-
return $this->cycles_remaining;
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Number of cycles completed for this agreement.
|
73 |
-
*
|
74 |
-
* @param string $cycles_completed
|
75 |
-
*
|
76 |
-
* @return $this
|
77 |
-
*/
|
78 |
-
public function setCyclesCompleted($cycles_completed)
|
79 |
-
{
|
80 |
-
$this->cycles_completed = $cycles_completed;
|
81 |
-
return $this;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Number of cycles completed for this agreement.
|
86 |
-
*
|
87 |
-
* @return string
|
88 |
-
*/
|
89 |
-
public function getCyclesCompleted()
|
90 |
-
{
|
91 |
-
return $this->cycles_completed;
|
92 |
-
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
|
96 |
-
*
|
97 |
-
* @param string $next_billing_date
|
98 |
-
*
|
99 |
-
* @return $this
|
100 |
-
*/
|
101 |
-
public function setNextBillingDate($next_billing_date)
|
102 |
-
{
|
103 |
-
$this->next_billing_date = $next_billing_date;
|
104 |
-
return $this;
|
105 |
-
}
|
106 |
-
|
107 |
-
/**
|
108 |
-
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
|
109 |
-
*
|
110 |
-
* @return string
|
111 |
-
*/
|
112 |
-
public function getNextBillingDate()
|
113 |
-
{
|
114 |
-
return $this->next_billing_date;
|
115 |
-
}
|
116 |
-
|
117 |
-
/**
|
118 |
-
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
|
119 |
-
*
|
120 |
-
* @param string $last_payment_date
|
121 |
-
*
|
122 |
-
* @return $this
|
123 |
-
*/
|
124 |
-
public function setLastPaymentDate($last_payment_date)
|
125 |
-
{
|
126 |
-
$this->last_payment_date = $last_payment_date;
|
127 |
-
return $this;
|
128 |
-
}
|
129 |
-
|
130 |
-
/**
|
131 |
-
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
|
132 |
-
*
|
133 |
-
* @return string
|
134 |
-
*/
|
135 |
-
public function getLastPaymentDate()
|
136 |
-
{
|
137 |
-
return $this->last_payment_date;
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* Last payment amount for this agreement.
|
142 |
-
*
|
143 |
-
* @param \Forminator\PayPal\Api\Currency $last_payment_amount
|
144 |
-
*
|
145 |
-
* @return $this
|
146 |
-
*/
|
147 |
-
public function setLastPaymentAmount($last_payment_amount)
|
148 |
-
{
|
149 |
-
$this->last_payment_amount = $last_payment_amount;
|
150 |
-
return $this;
|
151 |
-
}
|
152 |
-
|
153 |
-
/**
|
154 |
-
* Last payment amount for this agreement.
|
155 |
-
*
|
156 |
-
* @return \Forminator\PayPal\Api\Currency
|
157 |
-
*/
|
158 |
-
public function getLastPaymentAmount()
|
159 |
-
{
|
160 |
-
return $this->last_payment_amount;
|
161 |
-
}
|
162 |
-
|
163 |
-
/**
|
164 |
-
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
|
165 |
-
*
|
166 |
-
* @param string $final_payment_date
|
167 |
-
*
|
168 |
-
* @return $this
|
169 |
-
*/
|
170 |
-
public function setFinalPaymentDate($final_payment_date)
|
171 |
-
{
|
172 |
-
$this->final_payment_date = $final_payment_date;
|
173 |
-
return $this;
|
174 |
-
}
|
175 |
-
|
176 |
-
/**
|
177 |
-
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
|
178 |
-
*
|
179 |
-
* @return string
|
180 |
-
*/
|
181 |
-
public function getFinalPaymentDate()
|
182 |
-
{
|
183 |
-
return $this->final_payment_date;
|
184 |
-
}
|
185 |
-
|
186 |
-
/**
|
187 |
-
* Total number of failed payments for this agreement.
|
188 |
-
*
|
189 |
-
* @param string $failed_payment_count
|
190 |
-
*
|
191 |
-
* @return $this
|
192 |
-
*/
|
193 |
-
public function setFailedPaymentCount($failed_payment_count)
|
194 |
-
{
|
195 |
-
$this->failed_payment_count = $failed_payment_count;
|
196 |
-
return $this;
|
197 |
-
}
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Total number of failed payments for this agreement.
|
201 |
-
*
|
202 |
-
* @return string
|
203 |
-
*/
|
204 |
-
public function getFailedPaymentCount()
|
205 |
-
{
|
206 |
-
return $this->failed_payment_count;
|
207 |
-
}
|
208 |
-
|
209 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/AgreementStateDescriptor.php
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class AgreementStateDescriptor
|
9 |
-
*
|
10 |
-
* Description of the current state of the agreement.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string note
|
15 |
-
* @property \Forminator\PayPal\Api\Currency amount
|
16 |
-
*/
|
17 |
-
class AgreementStateDescriptor extends PayPalModel
|
18 |
-
{
|
19 |
-
/**
|
20 |
-
* Reason for changing the state of the agreement.
|
21 |
-
*
|
22 |
-
* @param string $note
|
23 |
-
*
|
24 |
-
* @return $this
|
25 |
-
*/
|
26 |
-
public function setNote($note)
|
27 |
-
{
|
28 |
-
$this->note = $note;
|
29 |
-
return $this;
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Reason for changing the state of the agreement.
|
34 |
-
*
|
35 |
-
* @return string
|
36 |
-
*/
|
37 |
-
public function getNote()
|
38 |
-
{
|
39 |
-
return $this->note;
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* The amount and currency of the agreement.
|
44 |
-
*
|
45 |
-
* @param \Forminator\PayPal\Api\Currency $amount
|
46 |
-
*
|
47 |
-
* @return $this
|
48 |
-
*/
|
49 |
-
public function setAmount($amount)
|
50 |
-
{
|
51 |
-
$this->amount = $amount;
|
52 |
-
return $this;
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* The amount and currency of the agreement.
|
57 |
-
*
|
58 |
-
* @return \Forminator\PayPal\Api\Currency
|
59 |
-
*/
|
60 |
-
public function getAmount()
|
61 |
-
{
|
62 |
-
return $this->amount;
|
63 |
-
}
|
64 |
-
|
65 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/AgreementTransaction.php
DELETED
@@ -1,257 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class AgreementTransaction
|
9 |
-
*
|
10 |
-
* A resource representing an agreement_transaction that is returned during a transaction search.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string transaction_id
|
15 |
-
* @property string status
|
16 |
-
* @property string transaction_type
|
17 |
-
* @property \Forminator\PayPal\Api\Currency amount
|
18 |
-
* @property \Forminator\PayPal\Api\Currency fee_amount
|
19 |
-
* @property \Forminator\PayPal\Api\Currency net_amount
|
20 |
-
* @property string payer_email
|
21 |
-
* @property string payer_name
|
22 |
-
* @property string time_stamp
|
23 |
-
* @property string time_zone
|
24 |
-
*/
|
25 |
-
class AgreementTransaction extends PayPalModel
|
26 |
-
{
|
27 |
-
/**
|
28 |
-
* Id corresponding to this transaction.
|
29 |
-
*
|
30 |
-
* @param string $transaction_id
|
31 |
-
*
|
32 |
-
* @return $this
|
33 |
-
*/
|
34 |
-
public function setTransactionId($transaction_id)
|
35 |
-
{
|
36 |
-
$this->transaction_id = $transaction_id;
|
37 |
-
return $this;
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Id corresponding to this transaction.
|
42 |
-
*
|
43 |
-
* @return string
|
44 |
-
*/
|
45 |
-
public function getTransactionId()
|
46 |
-
{
|
47 |
-
return $this->transaction_id;
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
* State of the subscription at this time.
|
52 |
-
*
|
53 |
-
* @param string $status
|
54 |
-
*
|
55 |
-
* @return $this
|
56 |
-
*/
|
57 |
-
public function setStatus($status)
|
58 |
-
{
|
59 |
-
$this->status = $status;
|
60 |
-
return $this;
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* State of the subscription at this time.
|
65 |
-
*
|
66 |
-
* @return string
|
67 |
-
*/
|
68 |
-
public function getStatus()
|
69 |
-
{
|
70 |
-
return $this->status;
|
71 |
-
}
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Type of transaction, usually Recurring Payment.
|
75 |
-
*
|
76 |
-
* @param string $transaction_type
|
77 |
-
*
|
78 |
-
* @return $this
|
79 |
-
*/
|
80 |
-
public function setTransactionType($transaction_type)
|
81 |
-
{
|
82 |
-
$this->transaction_type = $transaction_type;
|
83 |
-
return $this;
|
84 |
-
}
|
85 |
-
|
86 |
-
/**
|
87 |
-
* Type of transaction, usually Recurring Payment.
|
88 |
-
*
|
89 |
-
* @return string
|
90 |
-
*/
|
91 |
-
public function getTransactionType()
|
92 |
-
{
|
93 |
-
return $this->transaction_type;
|
94 |
-
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Amount for this transaction.
|
98 |
-
*
|
99 |
-
* @param \Forminator\PayPal\Api\Currency $amount
|
100 |
-
*
|
101 |
-
* @return $this
|
102 |
-
*/
|
103 |
-
public function setAmount($amount)
|
104 |
-
{
|
105 |
-
$this->amount = $amount;
|
106 |
-
return $this;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Amount for this transaction.
|
111 |
-
*
|
112 |
-
* @return \Forminator\PayPal\Api\Currency
|
113 |
-
*/
|
114 |
-
public function getAmount()
|
115 |
-
{
|
116 |
-
return $this->amount;
|
117 |
-
}
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Fee amount for this transaction.
|
121 |
-
*
|
122 |
-
* @param \Forminator\PayPal\Api\Currency $fee_amount
|
123 |
-
*
|
124 |
-
* @return $this
|
125 |
-
*/
|
126 |
-
public function setFeeAmount($fee_amount)
|
127 |
-
{
|
128 |
-
$this->fee_amount = $fee_amount;
|
129 |
-
return $this;
|
130 |
-
}
|
131 |
-
|
132 |
-
/**
|
133 |
-
* Fee amount for this transaction.
|
134 |
-
*
|
135 |
-
* @return \Forminator\PayPal\Api\Currency
|
136 |
-
*/
|
137 |
-
public function getFeeAmount()
|
138 |
-
{
|
139 |
-
return $this->fee_amount;
|
140 |
-
}
|
141 |
-
|
142 |
-
/**
|
143 |
-
* Net amount for this transaction.
|
144 |
-
*
|
145 |
-
* @param \Forminator\PayPal\Api\Currency $net_amount
|
146 |
-
*
|
147 |
-
* @return $this
|
148 |
-
*/
|
149 |
-
public function setNetAmount($net_amount)
|
150 |
-
{
|
151 |
-
$this->net_amount = $net_amount;
|
152 |
-
return $this;
|
153 |
-
}
|
154 |
-
|
155 |
-
/**
|
156 |
-
* Net amount for this transaction.
|
157 |
-
*
|
158 |
-
* @return \Forminator\PayPal\Api\Currency
|
159 |
-
*/
|
160 |
-
public function getNetAmount()
|
161 |
-
{
|
162 |
-
return $this->net_amount;
|
163 |
-
}
|
164 |
-
|
165 |
-
/**
|
166 |
-
* Email id of payer.
|
167 |
-
*
|
168 |
-
* @param string $payer_email
|
169 |
-
*
|
170 |
-
* @return $this
|
171 |
-
*/
|
172 |
-
public function setPayerEmail($payer_email)
|
173 |
-
{
|
174 |
-
$this->payer_email = $payer_email;
|
175 |
-
return $this;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* Email id of payer.
|
180 |
-
*
|
181 |
-
* @return string
|
182 |
-
*/
|
183 |
-
public function getPayerEmail()
|
184 |
-
{
|
185 |
-
return $this->payer_email;
|
186 |
-
}
|
187 |
-
|
188 |
-
/**
|
189 |
-
* Business name of payer.
|
190 |
-
*
|
191 |
-
* @param string $payer_name
|
192 |
-
*
|
193 |
-
* @return $this
|
194 |
-
*/
|
195 |
-
public function setPayerName($payer_name)
|
196 |
-
{
|
197 |
-
$this->payer_name = $payer_name;
|
198 |
-
return $this;
|
199 |
-
}
|
200 |
-
|
201 |
-
/**
|
202 |
-
* Business name of payer.
|
203 |
-
*
|
204 |
-
* @return string
|
205 |
-
*/
|
206 |
-
public function getPayerName()
|
207 |
-
{
|
208 |
-
return $this->payer_name;
|
209 |
-
}
|
210 |
-
|
211 |
-
/**
|
212 |
-
* Time at which this transaction happened.
|
213 |
-
*
|
214 |
-
* @param string $time_stamp
|
215 |
-
*
|
216 |
-
* @return $this
|
217 |
-
*/
|
218 |
-
public function setTimeStamp($time_stamp)
|
219 |
-
{
|
220 |
-
$this->time_stamp = $time_stamp;
|
221 |
-
return $this;
|
222 |
-
}
|
223 |
-
|
224 |
-
/**
|
225 |
-
* Time at which this transaction happened.
|
226 |
-
*
|
227 |
-
* @return string
|
228 |
-
*/
|
229 |
-
public function getTimeStamp()
|
230 |
-
{
|
231 |
-
return $this->time_stamp;
|
232 |
-
}
|
233 |
-
|
234 |
-
/**
|
235 |
-
* Time zone of time_updated field.
|
236 |
-
*
|
237 |
-
* @param string $time_zone
|
238 |
-
*
|
239 |
-
* @return $this
|
240 |
-
*/
|
241 |
-
public function setTimeZone($time_zone)
|
242 |
-
{
|
243 |
-
$this->time_zone = $time_zone;
|
244 |
-
return $this;
|
245 |
-
}
|
246 |
-
|
247 |
-
/**
|
248 |
-
* Time zone of time_updated field.
|
249 |
-
*
|
250 |
-
* @return string
|
251 |
-
*/
|
252 |
-
public function getTimeZone()
|
253 |
-
{
|
254 |
-
return $this->time_zone;
|
255 |
-
}
|
256 |
-
|
257 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/AgreementTransactions.php
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class AgreementTransactions
|
9 |
-
*
|
10 |
-
* A resource representing agreement_transactions that is returned during a transaction search.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property \Forminator\PayPal\Api\AgreementTransaction[] agreement_transaction_list
|
15 |
-
*/
|
16 |
-
class AgreementTransactions extends PayPalModel
|
17 |
-
{
|
18 |
-
/**
|
19 |
-
* Array of agreement_transaction object.
|
20 |
-
*
|
21 |
-
* @param \Forminator\PayPal\Api\AgreementTransaction[] $agreement_transaction_list
|
22 |
-
*
|
23 |
-
* @return $this
|
24 |
-
*/
|
25 |
-
public function setAgreementTransactionList($agreement_transaction_list)
|
26 |
-
{
|
27 |
-
$this->agreement_transaction_list = $agreement_transaction_list;
|
28 |
-
return $this;
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Array of agreement_transaction object.
|
33 |
-
*
|
34 |
-
* @return \Forminator\PayPal\Api\AgreementTransaction[]
|
35 |
-
*/
|
36 |
-
public function getAgreementTransactionList()
|
37 |
-
{
|
38 |
-
return $this->agreement_transaction_list;
|
39 |
-
}
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Append AgreementTransactionList to the list.
|
43 |
-
*
|
44 |
-
* @param \Forminator\PayPal\Api\AgreementTransaction $agreementTransaction
|
45 |
-
* @return $this
|
46 |
-
*/
|
47 |
-
public function addAgreementTransactionList($agreementTransaction)
|
48 |
-
{
|
49 |
-
if (!$this->getAgreementTransactionList()) {
|
50 |
-
return $this->setAgreementTransactionList(array($agreementTransaction));
|
51 |
-
} else {
|
52 |
-
return $this->setAgreementTransactionList(
|
53 |
-
array_merge($this->getAgreementTransactionList(), array($agreementTransaction))
|
54 |
-
);
|
55 |
-
}
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Remove AgreementTransactionList from the list.
|
60 |
-
*
|
61 |
-
* @param \Forminator\PayPal\Api\AgreementTransaction $agreementTransaction
|
62 |
-
* @return $this
|
63 |
-
*/
|
64 |
-
public function removeAgreementTransactionList($agreementTransaction)
|
65 |
-
{
|
66 |
-
return $this->setAgreementTransactionList(
|
67 |
-
array_diff($this->getAgreementTransactionList(), array($agreementTransaction))
|
68 |
-
);
|
69 |
-
}
|
70 |
-
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/AlternatePayment.php
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class AlternatePayment
|
9 |
-
*
|
10 |
-
* A resource representing a alternate payment account that can be used to fund a payment.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @deprecated Used for limited release only.
|
15 |
-
*
|
16 |
-
* @property string alternate_payment_account_id
|
17 |
-
* @property string external_customer_id
|
18 |
-
* @property string alternate_payment_provider_id
|
19 |
-
*/
|
20 |
-
class AlternatePayment extends PayPalModel
|
21 |
-
{
|
22 |
-
/**
|
23 |
-
* The unique identifier of the alternate payment account.
|
24 |
-
*
|
25 |
-
* @param string $alternate_payment_account_id
|
26 |
-
*
|
27 |
-
* @return $this
|
28 |
-
*/
|
29 |
-
public function setAlternatePaymentAccountId($alternate_payment_account_id)
|
30 |
-
{
|
31 |
-
$this->alternate_payment_account_id = $alternate_payment_account_id;
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* The unique identifier of the alternate payment account.
|
37 |
-
*
|
38 |
-
* @return string
|
39 |
-
*/
|
40 |
-
public function getAlternatePaymentAccountId()
|
41 |
-
{
|
42 |
-
return $this->alternate_payment_account_id;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* The unique identifier of the payer
|
47 |
-
*
|
48 |
-
* @param string $external_customer_id
|
49 |
-
*
|
50 |
-
* @return $this
|
51 |
-
*/
|
52 |
-
public function setExternalCustomerId($external_customer_id)
|
53 |
-
{
|
54 |
-
$this->external_customer_id = $external_customer_id;
|
55 |
-
return $this;
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* The unique identifier of the payer
|
60 |
-
*
|
61 |
-
* @return string
|
62 |
-
*/
|
63 |
-
public function getExternalCustomerId()
|
64 |
-
{
|
65 |
-
return $this->external_customer_id;
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
|
70 |
-
*
|
71 |
-
* @param string $alternate_payment_provider_id
|
72 |
-
*
|
73 |
-
* @return $this
|
74 |
-
*/
|
75 |
-
public function setAlternatePaymentProviderId($alternate_payment_provider_id)
|
76 |
-
{
|
77 |
-
$this->alternate_payment_provider_id = $alternate_payment_provider_id;
|
78 |
-
return $this;
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
|
83 |
-
*
|
84 |
-
* @return string
|
85 |
-
*/
|
86 |
-
public function getAlternatePaymentProviderId()
|
87 |
-
{
|
88 |
-
return $this->alternate_payment_provider_id;
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Amount.php
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
use Forminator\PayPal\Converter\FormatConverter;
|
7 |
-
use Forminator\PayPal\Validation\NumericValidator;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Class Amount
|
11 |
-
*
|
12 |
-
* payment amount with break-ups.
|
13 |
-
*
|
14 |
-
* @package Forminator\PayPal\Api
|
15 |
-
*
|
16 |
-
* @property string currency
|
17 |
-
* @property string total
|
18 |
-
* @property \Forminator\PayPal\Api\Details details
|
19 |
-
*/
|
20 |
-
class Amount extends PayPalModel
|
21 |
-
{
|
22 |
-
/**
|
23 |
-
* 3-letter [currency code](https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/). PayPal does not support all currencies.
|
24 |
-
*
|
25 |
-
* @param string $currency
|
26 |
-
*
|
27 |
-
* @return $this
|
28 |
-
*/
|
29 |
-
public function setCurrency($currency)
|
30 |
-
{
|
31 |
-
$this->currency = $currency;
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* 3-letter [currency code](https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/). PayPal does not support all currencies.
|
37 |
-
*
|
38 |
-
* @return string
|
39 |
-
*/
|
40 |
-
public function getCurrency()
|
41 |
-
{
|
42 |
-
return $this->currency;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
|
47 |
-
*
|
48 |
-
* @param string|double $total
|
49 |
-
*
|
50 |
-
* @return $this
|
51 |
-
*/
|
52 |
-
public function setTotal($total)
|
53 |
-
{
|
54 |
-
NumericValidator::validate($total, "Total");
|
55 |
-
$total = FormatConverter::formatToPrice($total, $this->getCurrency());
|
56 |
-
$this->total = $total;
|
57 |
-
return $this;
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
|
62 |
-
*
|
63 |
-
* @return string
|
64 |
-
*/
|
65 |
-
public function getTotal()
|
66 |
-
{
|
67 |
-
return $this->total;
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Additional details of the payment amount.
|
72 |
-
*
|
73 |
-
* @param \Forminator\PayPal\Api\Details $details
|
74 |
-
*
|
75 |
-
* @return $this
|
76 |
-
*/
|
77 |
-
public function setDetails($details)
|
78 |
-
{
|
79 |
-
$this->details = $details;
|
80 |
-
return $this;
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* Additional details of the payment amount.
|
85 |
-
*
|
86 |
-
* @return \Forminator\PayPal\Api\Details
|
87 |
-
*/
|
88 |
-
public function getDetails()
|
89 |
-
{
|
90 |
-
return $this->details;
|
91 |
-
}
|
92 |
-
|
93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Authorization.php
DELETED
@@ -1,507 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalResourceModel;
|
6 |
-
use Forminator\PayPal\Validation\ArgumentValidator;
|
7 |
-
use Forminator\PayPal\Rest\ApiContext;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Class Authorization
|
11 |
-
*
|
12 |
-
* An authorization transaction.
|
13 |
-
*
|
14 |
-
* @package Forminator\PayPal\Api
|
15 |
-
*
|
16 |
-
* @property string id
|
17 |
-
* @property \Forminator\PayPal\Api\Amount amount
|
18 |
-
* @property string payment_mode
|
19 |
-
* @property string state
|
20 |
-
* @property string reason_code
|
21 |
-
* @property string pending_reason
|
22 |
-
* @property string protection_eligibility
|
23 |
-
* @property string protection_eligibility_type
|
24 |
-
* @property \Forminator\PayPal\Api\FmfDetails fmf_details
|
25 |
-
* @property string parent_payment
|
26 |
-
* @property \Forminator\PayPal\Api\ProcessorResponse processor_response
|
27 |
-
* @property string valid_until
|
28 |
-
* @property string create_time
|
29 |
-
* @property string update_time
|
30 |
-
* @property string reference_id
|
31 |
-
* @property string receipt_id
|
32 |
-
* @property \Forminator\PayPal\Api\Links[] links
|
33 |
-
*/
|
34 |
-
class Authorization extends PayPalResourceModel
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* ID of the authorization transaction.
|
38 |
-
*
|
39 |
-
* @param string $id
|
40 |
-
*
|
41 |
-
* @return $this
|
42 |
-
*/
|
43 |
-
public function setId($id)
|
44 |
-
{
|
45 |
-
$this->id = $id;
|
46 |
-
return $this;
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* ID of the authorization transaction.
|
51 |
-
*
|
52 |
-
* @return string
|
53 |
-
*/
|
54 |
-
public function getId()
|
55 |
-
{
|
56 |
-
return $this->id;
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Amount being authorized.
|
61 |
-
*
|
62 |
-
* @param \Forminator\PayPal\Api\Amount $amount
|
63 |
-
*
|
64 |
-
* @return $this
|
65 |
-
*/
|
66 |
-
public function setAmount($amount)
|
67 |
-
{
|
68 |
-
$this->amount = $amount;
|
69 |
-
return $this;
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Amount being authorized.
|
74 |
-
*
|
75 |
-
* @return \Forminator\PayPal\Api\Amount
|
76 |
-
*/
|
77 |
-
public function getAmount()
|
78 |
-
{
|
79 |
-
return $this->amount;
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Specifies the payment mode of the transaction.
|
84 |
-
* Valid Values: ["INSTANT_TRANSFER"]
|
85 |
-
*
|
86 |
-
* @param string $payment_mode
|
87 |
-
*
|
88 |
-
* @return $this
|
89 |
-
*/
|
90 |
-
public function setPaymentMode($payment_mode)
|
91 |
-
{
|
92 |
-
$this->payment_mode = $payment_mode;
|
93 |
-
return $this;
|
94 |
-
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Specifies the payment mode of the transaction.
|
98 |
-
*
|
99 |
-
* @return string
|
100 |
-
*/
|
101 |
-
public function getPaymentMode()
|
102 |
-
{
|
103 |
-
return $this->payment_mode;
|
104 |
-
}
|
105 |
-
|
106 |
-
/**
|
107 |
-
* State of the authorization.
|
108 |
-
* Valid Values: ["pending", "authorized", "partially_captured", "captured", "expired", "voided"]
|
109 |
-
*
|
110 |
-
* @param string $state
|
111 |
-
*
|
112 |
-
* @return $this
|
113 |
-
*/
|
114 |
-
public function setState($state)
|
115 |
-
{
|
116 |
-
$this->state = $state;
|
117 |
-
return $this;
|
118 |
-
}
|
119 |
-
|
120 |
-
/**
|
121 |
-
* State of the authorization.
|
122 |
-
*
|
123 |
-
* @return string
|
124 |
-
*/
|
125 |
-
public function getState()
|
126 |
-
{
|
127 |
-
return $this->state;
|
128 |
-
}
|
129 |
-
|
130 |
-
/**
|
131 |
-
* Reason code, `AUTHORIZATION`, for a transaction state of `pending`.
|
132 |
-
* Valid Values: ["AUTHORIZATION"]
|
133 |
-
*
|
134 |
-
* @param string $reason_code
|
135 |
-
*
|
136 |
-
* @return $this
|
137 |
-
*/
|
138 |
-
public function setReasonCode($reason_code)
|
139 |
-
{
|
140 |
-
$this->reason_code = $reason_code;
|
141 |
-
return $this;
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Reason code, `AUTHORIZATION`, for a transaction state of `pending`.
|
146 |
-
*
|
147 |
-
* @return string
|
148 |
-
*/
|
149 |
-
public function getReasonCode()
|
150 |
-
{
|
151 |
-
return $this->reason_code;
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* [DEPRECATED] Reason code for the transaction state being Pending.Obsolete. use reason_code field instead.
|
156 |
-
* Valid Values: ["AUTHORIZATION"]
|
157 |
-
*
|
158 |
-
* @param string $pending_reason
|
159 |
-
*
|
160 |
-
* @return $this
|
161 |
-
*/
|
162 |
-
public function setPendingReason($pending_reason)
|
163 |
-
{
|
164 |
-
$this->pending_reason = $pending_reason;
|
165 |
-
return $this;
|
166 |
-
}
|
167 |
-
|
168 |
-
/**
|
169 |
-
* @deprecated [DEPRECATED] Reason code for the transaction state being Pending.Obsolete. use reason_code field instead.
|
170 |
-
*
|
171 |
-
* @return string
|
172 |
-
*/
|
173 |
-
public function getPendingReason()
|
174 |
-
{
|
175 |
-
return $this->pending_reason;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* The level of seller protection in force for the transaction. Only supported when the `payment_method` is set to `paypal`. Allowed values:<br> `ELIGIBLE`- Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received.<br> `PARTIALLY_ELIGIBLE`- Merchant is protected by PayPal's Seller Protection Policy for Item Not Received or Unauthorized Payments. Refer to `protection_eligibility_type` for specifics. <br> `INELIGIBLE`- Merchant is not protected under the Seller Protection Policy.
|
180 |
-
* Valid Values: ["ELIGIBLE", "PARTIALLY_ELIGIBLE", "INELIGIBLE"]
|
181 |
-
*
|
182 |
-
* @param string $protection_eligibility
|
183 |
-
*
|
184 |
-
* @return $this
|
185 |
-
*/
|
186 |
-
public function setProtectionEligibility($protection_eligibility)
|
187 |
-
{
|
188 |
-
$this->protection_eligibility = $protection_eligibility;
|
189 |
-
return $this;
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
* The level of seller protection in force for the transaction. Only supported when the `payment_method` is set to `paypal`. Allowed values:<br> `ELIGIBLE`- Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received.<br> `PARTIALLY_ELIGIBLE`- Merchant is protected by PayPal's Seller Protection Policy for Item Not Received or Unauthorized Payments. Refer to `protection_eligibility_type` for specifics. <br> `INELIGIBLE`- Merchant is not protected under the Seller Protection Policy.
|
194 |
-
*
|
195 |
-
* @return string
|
196 |
-
*/
|
197 |
-
public function getProtectionEligibility()
|
198 |
-
{
|
199 |
-
return $this->protection_eligibility;
|
200 |
-
}
|
201 |
-
|
202 |
-
/**
|
203 |
-
* The kind of seller protection in force for the transaction. This property is returned only when the `protection_eligibility` property is set to `ELIGIBLE`or `PARTIALLY_ELIGIBLE`. Only supported when the `payment_method` is set to `paypal`. Allowed values:<br> `ITEM_NOT_RECEIVED_ELIGIBLE`- Sellers are protected against claims for items not received.<br> `UNAUTHORIZED_PAYMENT_ELIGIBLE`- Sellers are protected against claims for unauthorized payments.<br> One or both of the allowed values can be returned.
|
204 |
-
* Valid Values: ["ITEM_NOT_RECEIVED_ELIGIBLE", "UNAUTHORIZED_PAYMENT_ELIGIBLE", "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE"]
|
205 |
-
*
|
206 |
-
* @param string $protection_eligibility_type
|
207 |
-
*
|
208 |
-
* @return $this
|
209 |
-
*/
|
210 |
-
public function setProtectionEligibilityType($protection_eligibility_type)
|
211 |
-
{
|
212 |
-
$this->protection_eligibility_type = $protection_eligibility_type;
|
213 |
-
return $this;
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* The kind of seller protection in force for the transaction. This property is returned only when the `protection_eligibility` property is set to `ELIGIBLE`or `PARTIALLY_ELIGIBLE`. Only supported when the `payment_method` is set to `paypal`. Allowed values:<br> `ITEM_NOT_RECEIVED_ELIGIBLE`- Sellers are protected against claims for items not received.<br> `UNAUTHORIZED_PAYMENT_ELIGIBLE`- Sellers are protected against claims for unauthorized payments.<br> One or both of the allowed values can be returned.
|
218 |
-
*
|
219 |
-
* @return string
|
220 |
-
*/
|
221 |
-
public function getProtectionEligibilityType()
|
222 |
-
{
|
223 |
-
return $this->protection_eligibility_type;
|
224 |
-
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action. Returned in a payment response only if the merchant has enabled FMF in the profile settings and one of the fraud filters was triggered based on those settings. See [Fraud Management Filters Summary](https://developer.paypal.com/docs/classic/fmf/integration-guide/FMFSummary/) for more information.
|
228 |
-
*
|
229 |
-
* @param \Forminator\PayPal\Api\FmfDetails $fmf_details
|
230 |
-
*
|
231 |
-
* @return $this
|
232 |
-
*/
|
233 |
-
public function setFmfDetails($fmf_details)
|
234 |
-
{
|
235 |
-
$this->fmf_details = $fmf_details;
|
236 |
-
return $this;
|
237 |
-
}
|
238 |
-
|
239 |
-
/**
|
240 |
-
* Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action. Returned in a payment response only if the merchant has enabled FMF in the profile settings and one of the fraud filters was triggered based on those settings. See [Fraud Management Filters Summary](https://developer.paypal.com/docs/classic/fmf/integration-guide/FMFSummary/) for more information.
|
241 |
-
*
|
242 |
-
* @return \Forminator\PayPal\Api\FmfDetails
|
243 |
-
*/
|
244 |
-
public function getFmfDetails()
|
245 |
-
{
|
246 |
-
return $this->fmf_details;
|
247 |
-
}
|
248 |
-
|
249 |
-
/**
|
250 |
-
* ID of the Payment resource that this transaction is based on.
|
251 |
-
*
|
252 |
-
* @param string $parent_payment
|
253 |
-
*
|
254 |
-
* @return $this
|
255 |
-
*/
|
256 |
-
public function setParentPayment($parent_payment)
|
257 |
-
{
|
258 |
-
$this->parent_payment = $parent_payment;
|
259 |
-
return $this;
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
* ID of the Payment resource that this transaction is based on.
|
264 |
-
*
|
265 |
-
* @return string
|
266 |
-
*/
|
267 |
-
public function getParentPayment()
|
268 |
-
{
|
269 |
-
return $this->parent_payment;
|
270 |
-
}
|
271 |
-
|
272 |
-
/**
|
273 |
-
* Response codes returned by the processor concerning the submitted payment. Only supported when the `payment_method` is set to `credit_card`.
|
274 |
-
*
|
275 |
-
* @param \Forminator\PayPal\Api\ProcessorResponse $processor_response
|
276 |
-
*
|
277 |
-
* @return $this
|
278 |
-
*/
|
279 |
-
public function setProcessorResponse($processor_response)
|
280 |
-
{
|
281 |
-
$this->processor_response = $processor_response;
|
282 |
-
return $this;
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* Response codes returned by the processor concerning the submitted payment. Only supported when the `payment_method` is set to `credit_card`.
|
287 |
-
*
|
288 |
-
* @return \Forminator\PayPal\Api\ProcessorResponse
|
289 |
-
*/
|
290 |
-
public function getProcessorResponse()
|
291 |
-
{
|
292 |
-
return $this->processor_response;
|
293 |
-
}
|
294 |
-
|
295 |
-
/**
|
296 |
-
* Authorization expiration time and date as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
297 |
-
*
|
298 |
-
* @param string $valid_until
|
299 |
-
*
|
300 |
-
* @return $this
|
301 |
-
*/
|
302 |
-
public function setValidUntil($valid_until)
|
303 |
-
{
|
304 |
-
$this->valid_until = $valid_until;
|
305 |
-
return $this;
|
306 |
-
}
|
307 |
-
|
308 |
-
/**
|
309 |
-
* Authorization expiration time and date as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
310 |
-
*
|
311 |
-
* @return string
|
312 |
-
*/
|
313 |
-
public function getValidUntil()
|
314 |
-
{
|
315 |
-
return $this->valid_until;
|
316 |
-
}
|
317 |
-
|
318 |
-
/**
|
319 |
-
* Time of authorization as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
320 |
-
*
|
321 |
-
* @param string $create_time
|
322 |
-
*
|
323 |
-
* @return $this
|
324 |
-
*/
|
325 |
-
public function setCreateTime($create_time)
|
326 |
-
{
|
327 |
-
$this->create_time = $create_time;
|
328 |
-
return $this;
|
329 |
-
}
|
330 |
-
|
331 |
-
/**
|
332 |
-
* Time of authorization as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
333 |
-
*
|
334 |
-
* @return string
|
335 |
-
*/
|
336 |
-
public function getCreateTime()
|
337 |
-
{
|
338 |
-
return $this->create_time;
|
339 |
-
}
|
340 |
-
|
341 |
-
/**
|
342 |
-
* Time that the resource was last updated.
|
343 |
-
*
|
344 |
-
* @param string $update_time
|
345 |
-
*
|
346 |
-
* @return $this
|
347 |
-
*/
|
348 |
-
public function setUpdateTime($update_time)
|
349 |
-
{
|
350 |
-
$this->update_time = $update_time;
|
351 |
-
return $this;
|
352 |
-
}
|
353 |
-
|
354 |
-
/**
|
355 |
-
* Time that the resource was last updated.
|
356 |
-
*
|
357 |
-
* @return string
|
358 |
-
*/
|
359 |
-
public function getUpdateTime()
|
360 |
-
{
|
361 |
-
return $this->update_time;
|
362 |
-
}
|
363 |
-
|
364 |
-
/**
|
365 |
-
* Identifier to the purchase or transaction unit corresponding to this authorization transaction.
|
366 |
-
*
|
367 |
-
* @param string $reference_id
|
368 |
-
*
|
369 |
-
* @return $this
|
370 |
-
*/
|
371 |
-
public function setReferenceId($reference_id)
|
372 |
-
{
|
373 |
-
$this->reference_id = $reference_id;
|
374 |
-
return $this;
|
375 |
-
}
|
376 |
-
|
377 |
-
/**
|
378 |
-
* Identifier to the purchase or transaction unit corresponding to this authorization transaction.
|
379 |
-
*
|
380 |
-
* @return string
|
381 |
-
*/
|
382 |
-
public function getReferenceId()
|
383 |
-
{
|
384 |
-
return $this->reference_id;
|
385 |
-
}
|
386 |
-
|
387 |
-
/**
|
388 |
-
* Receipt id is 16 digit number payment identification number returned for guest users to identify the payment.
|
389 |
-
*
|
390 |
-
* @param string $receipt_id
|
391 |
-
*
|
392 |
-
* @return $this
|
393 |
-
*/
|
394 |
-
public function setReceiptId($receipt_id)
|
395 |
-
{
|
396 |
-
$this->receipt_id = $receipt_id;
|
397 |
-
return $this;
|
398 |
-
}
|
399 |
-
|
400 |
-
/**
|
401 |
-
* Receipt id is 16 digit number payment identification number returned for guest users to identify the payment.
|
402 |
-
*
|
403 |
-
* @return string
|
404 |
-
*/
|
405 |
-
public function getReceiptId()
|
406 |
-
{
|
407 |
-
return $this->receipt_id;
|
408 |
-
}
|
409 |
-
|
410 |
-
/**
|
411 |
-
* Shows details for an authorization, by ID.
|
412 |
-
*
|
413 |
-
* @param string $authorizationId
|
414 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
415 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
416 |
-
* @return Authorization
|
417 |
-
*/
|
418 |
-
public static function get($authorizationId, $apiContext = null, $restCall = null)
|
419 |
-
{
|
420 |
-
ArgumentValidator::validate($authorizationId, 'authorizationId');
|
421 |
-
$payLoad = "";
|
422 |
-
$json = self::executeCall(
|
423 |
-
"/v1/payments/authorization/$authorizationId",
|
424 |
-
"GET",
|
425 |
-
$payLoad,
|
426 |
-
null,
|
427 |
-
$apiContext,
|
428 |
-
$restCall
|
429 |
-
);
|
430 |
-
$ret = new Authorization();
|
431 |
-
$ret->fromJson($json);
|
432 |
-
return $ret;
|
433 |
-
}
|
434 |
-
|
435 |
-
/**
|
436 |
-
* Captures and processes an authorization, by ID. To use this call, the original payment call must specify an intent of `authorize`.
|
437 |
-
*
|
438 |
-
* @param Capture $capture
|
439 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
440 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
441 |
-
* @return Capture
|
442 |
-
*/
|
443 |
-
public function capture($capture, $apiContext = null, $restCall = null)
|
444 |
-
{
|
445 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
446 |
-
ArgumentValidator::validate($capture, 'capture');
|
447 |
-
$payLoad = $capture->toJSON();
|
448 |
-
$json = self::executeCall(
|
449 |
-
"/v1/payments/authorization/{$this->getId()}/capture",
|
450 |
-
"POST",
|
451 |
-
$payLoad,
|
452 |
-
null,
|
453 |
-
$apiContext,
|
454 |
-
$restCall
|
455 |
-
);
|
456 |
-
$ret = new Capture();
|
457 |
-
$ret->fromJson($json);
|
458 |
-
return $ret;
|
459 |
-
}
|
460 |
-
|
461 |
-
/**
|
462 |
-
* Voids, or cancels, an authorization, by ID. You cannot void a fully captured authorization.
|
463 |
-
*
|
464 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
465 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
466 |
-
* @return Authorization
|
467 |
-
*/
|
468 |
-
public function void($apiContext = null, $restCall = null)
|
469 |
-
{
|
470 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
471 |
-
$payLoad = "";
|
472 |
-
$json = self::executeCall(
|
473 |
-
"/v1/payments/authorization/{$this->getId()}/void",
|
474 |
-
"POST",
|
475 |
-
$payLoad,
|
476 |
-
null,
|
477 |
-
$apiContext,
|
478 |
-
$restCall
|
479 |
-
);
|
480 |
-
$this->fromJson($json);
|
481 |
-
return $this;
|
482 |
-
}
|
483 |
-
|
484 |
-
/**
|
485 |
-
* Reauthorizes a PayPal account payment, by authorization ID. To ensure that funds are still available, reauthorize a payment after the initial three-day honor period. Supports only the `amount` request parameter.
|
486 |
-
*
|
487 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
488 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
489 |
-
* @return Authorization
|
490 |
-
*/
|
491 |
-
public function reauthorize($apiContext = null, $restCall = null)
|
492 |
-
{
|
493 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
494 |
-
$payLoad = $this->toJSON();
|
495 |
-
$json = self::executeCall(
|
496 |
-
"/v1/payments/authorization/{$this->getId()}/reauthorize",
|
497 |
-
"POST",
|
498 |
-
$payLoad,
|
499 |
-
null,
|
500 |
-
$apiContext,
|
501 |
-
$restCall
|
502 |
-
);
|
503 |
-
$this->fromJson($json);
|
504 |
-
return $this;
|
505 |
-
}
|
506 |
-
|
507 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/BankAccount.php
DELETED
@@ -1,629 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class BankAccount
|
9 |
-
*
|
10 |
-
* A resource representing a bank account that can be used to fund a payment.
|
11 |
-
* @deprecated Deprecated. It is for internal use only. It may be removed in next major revision.
|
12 |
-
*
|
13 |
-
* @package Forminator\PayPal\Api
|
14 |
-
*
|
15 |
-
* @property string account_number
|
16 |
-
* @property string account_number_type
|
17 |
-
* @property string routing_number
|
18 |
-
* @property string account_type
|
19 |
-
* @property string account_name
|
20 |
-
* @property string check_type
|
21 |
-
* @property string auth_type
|
22 |
-
* @property string auth_capture_timestamp
|
23 |
-
* @property string bank_name
|
24 |
-
* @property string country_code
|
25 |
-
* @property string first_name
|
26 |
-
* @property string last_name
|
27 |
-
* @property string birth_date
|
28 |
-
* @property \Forminator\PayPal\Api\Address billing_address
|
29 |
-
* @property string state
|
30 |
-
* @property string confirmation_status
|
31 |
-
* @property string payer_id
|
32 |
-
* @property string external_customer_id
|
33 |
-
* @property string merchant_id
|
34 |
-
* @property string create_time
|
35 |
-
* @property string update_time
|
36 |
-
* @property string valid_until
|
37 |
-
* @property \Forminator\PayPal\Api\Links[] links
|
38 |
-
*/
|
39 |
-
class BankAccount extends PayPalModel
|
40 |
-
{
|
41 |
-
/**
|
42 |
-
* ID of the bank account being saved for later use.
|
43 |
-
* @deprecated Not publicly available
|
44 |
-
* @param string $id
|
45 |
-
*
|
46 |
-
* @return $this
|
47 |
-
*/
|
48 |
-
public function setId($id)
|
49 |
-
{
|
50 |
-
$this->id = $id;
|
51 |
-
return $this;
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* ID of the bank account being saved for later use.
|
56 |
-
* @deprecated Not publicly available
|
57 |
-
* @return string
|
58 |
-
*/
|
59 |
-
public function getId()
|
60 |
-
{
|
61 |
-
return $this->id;
|
62 |
-
}
|
63 |
-
|
64 |
-
/**
|
65 |
-
* Account number in either IBAN (max length 34) or BBAN (max length 17) format.
|
66 |
-
*
|
67 |
-
* @param string $account_number
|
68 |
-
*
|
69 |
-
* @return $this
|
70 |
-
*/
|
71 |
-
public function setAccountNumber($account_number)
|
72 |
-
{
|
73 |
-
$this->account_number = $account_number;
|
74 |
-
return $this;
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Account number in either IBAN (max length 34) or BBAN (max length 17) format.
|
79 |
-
*
|
80 |
-
* @return string
|
81 |
-
*/
|
82 |
-
public function getAccountNumber()
|
83 |
-
{
|
84 |
-
return $this->account_number;
|
85 |
-
}
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Type of the bank account number (International or Basic Bank Account Number). For more information refer to http://en.wikipedia.org/wiki/International_Bank_Account_Number.
|
89 |
-
* Valid Values: ["BBAN", "IBAN"]
|
90 |
-
*
|
91 |
-
* @param string $account_number_type
|
92 |
-
*
|
93 |
-
* @return $this
|
94 |
-
*/
|
95 |
-
public function setAccountNumberType($account_number_type)
|
96 |
-
{
|
97 |
-
$this->account_number_type = $account_number_type;
|
98 |
-
return $this;
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Type of the bank account number (International or Basic Bank Account Number). For more information refer to http://en.wikipedia.org/wiki/International_Bank_Account_Number.
|
103 |
-
*
|
104 |
-
* @return string
|
105 |
-
*/
|
106 |
-
public function getAccountNumberType()
|
107 |
-
{
|
108 |
-
return $this->account_number_type;
|
109 |
-
}
|
110 |
-
|
111 |
-
/**
|
112 |
-
* Routing transit number (aka Bank Code) of the bank (typically for domestic use only - for international use, IBAN includes bank code). For more information refer to http://en.wikipedia.org/wiki/Bank_code.
|
113 |
-
*
|
114 |
-
* @param string $routing_number
|
115 |
-
*
|
116 |
-
* @return $this
|
117 |
-
*/
|
118 |
-
public function setRoutingNumber($routing_number)
|
119 |
-
{
|
120 |
-
$this->routing_number = $routing_number;
|
121 |
-
return $this;
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* Routing transit number (aka Bank Code) of the bank (typically for domestic use only - for international use, IBAN includes bank code). For more information refer to http://en.wikipedia.org/wiki/Bank_code.
|
126 |
-
*
|
127 |
-
* @return string
|
128 |
-
*/
|
129 |
-
public function getRoutingNumber()
|
130 |
-
{
|
131 |
-
return $this->routing_number;
|
132 |
-
}
|
133 |
-
|
134 |
-
/**
|
135 |
-
* Type of the bank account.
|
136 |
-
* Valid Values: ["CHECKING", "SAVINGS"]
|
137 |
-
*
|
138 |
-
* @param string $account_type
|
139 |
-
*
|
140 |
-
* @return $this
|
141 |
-
*/
|
142 |
-
public function setAccountType($account_type)
|
143 |
-
{
|
144 |
-
$this->account_type = $account_type;
|
145 |
-
return $this;
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* Type of the bank account.
|
150 |
-
*
|
151 |
-
* @return string
|
152 |
-
*/
|
153 |
-
public function getAccountType()
|
154 |
-
{
|
155 |
-
return $this->account_type;
|
156 |
-
}
|
157 |
-
|
158 |
-
/**
|
159 |
-
* A customer designated name.
|
160 |
-
*
|
161 |
-
* @param string $account_name
|
162 |
-
*
|
163 |
-
* @return $this
|
164 |
-
*/
|
165 |
-
public function setAccountName($account_name)
|
166 |
-
{
|
167 |
-
$this->account_name = $account_name;
|
168 |
-
return $this;
|
169 |
-
}
|
170 |
-
|
171 |
-
/**
|
172 |
-
* A customer designated name.
|
173 |
-
*
|
174 |
-
* @return string
|
175 |
-
*/
|
176 |
-
public function getAccountName()
|
177 |
-
{
|
178 |
-
return $this->account_name;
|
179 |
-
}
|
180 |
-
|
181 |
-
/**
|
182 |
-
* Type of the check when this information was obtained through a check by the facilitator or merchant.
|
183 |
-
* Valid Values: ["PERSONAL", "COMPANY"]
|
184 |
-
*
|
185 |
-
* @param string $check_type
|
186 |
-
*
|
187 |
-
* @return $this
|
188 |
-
*/
|
189 |
-
public function setCheckType($check_type)
|
190 |
-
{
|
191 |
-
$this->check_type = $check_type;
|
192 |
-
return $this;
|
193 |
-
}
|
194 |
-
|
195 |
-
/**
|
196 |
-
* Type of the check when this information was obtained through a check by the facilitator or merchant.
|
197 |
-
*
|
198 |
-
* @return string
|
199 |
-
*/
|
200 |
-
public function getCheckType()
|
201 |
-
{
|
202 |
-
return $this->check_type;
|
203 |
-
}
|
204 |
-
|
205 |
-
/**
|
206 |
-
* How the check was obtained from the customer, if check was the source of the information provided.
|
207 |
-
* Valid Values: ["CCD", "PPD", "TEL", "POP", "ARC", "RCK", "WEB"]
|
208 |
-
*
|
209 |
-
* @param string $auth_type
|
210 |
-
*
|
211 |
-
* @return $this
|
212 |
-
*/
|
213 |
-
public function setAuthType($auth_type)
|
214 |
-
{
|
215 |
-
$this->auth_type = $auth_type;
|
216 |
-
return $this;
|
217 |
-
}
|
218 |
-
|
219 |
-
/**
|
220 |
-
* How the check was obtained from the customer, if check was the source of the information provided.
|
221 |
-
*
|
222 |
-
* @return string
|
223 |
-
*/
|
224 |
-
public function getAuthType()
|
225 |
-
{
|
226 |
-
return $this->auth_type;
|
227 |
-
}
|
228 |
-
|
229 |
-
/**
|
230 |
-
* Time at which the authorization (or check) was captured. Use this field if the user authorization needs to be captured due to any privacy requirements.
|
231 |
-
*
|
232 |
-
* @param string $auth_capture_timestamp
|
233 |
-
*
|
234 |
-
* @return $this
|
235 |
-
*/
|
236 |
-
public function setAuthCaptureTimestamp($auth_capture_timestamp)
|
237 |
-
{
|
238 |
-
$this->auth_capture_timestamp = $auth_capture_timestamp;
|
239 |
-
return $this;
|
240 |
-
}
|
241 |
-
|
242 |
-
/**
|
243 |
-
* Time at which the authorization (or check) was captured. Use this field if the user authorization needs to be captured due to any privacy requirements.
|
244 |
-
*
|
245 |
-
* @return string
|
246 |
-
*/
|
247 |
-
public function getAuthCaptureTimestamp()
|
248 |
-
{
|
249 |
-
return $this->auth_capture_timestamp;
|
250 |
-
}
|
251 |
-
|
252 |
-
/**
|
253 |
-
* Name of the bank.
|
254 |
-
*
|
255 |
-
* @param string $bank_name
|
256 |
-
*
|
257 |
-
* @return $this
|
258 |
-
*/
|
259 |
-
public function setBankName($bank_name)
|
260 |
-
{
|
261 |
-
$this->bank_name = $bank_name;
|
262 |
-
return $this;
|
263 |
-
}
|
264 |
-
|
265 |
-
/**
|
266 |
-
* Name of the bank.
|
267 |
-
*
|
268 |
-
* @return string
|
269 |
-
*/
|
270 |
-
public function getBankName()
|
271 |
-
{
|
272 |
-
return $this->bank_name;
|
273 |
-
}
|
274 |
-
|
275 |
-
/**
|
276 |
-
* 2 letter country code of the Bank.
|
277 |
-
*
|
278 |
-
* @param string $country_code
|
279 |
-
*
|
280 |
-
* @return $this
|
281 |
-
*/
|
282 |
-
public function setCountryCode($country_code)
|
283 |
-
{
|
284 |
-
$this->country_code = $country_code;
|
285 |
-
return $this;
|
286 |
-
}
|
287 |
-
|
288 |
-
/**
|
289 |
-
* 2 letter country code of the Bank.
|
290 |
-
*
|
291 |
-
* @return string
|
292 |
-
*/
|
293 |
-
public function getCountryCode()
|
294 |
-
{
|
295 |
-
return $this->country_code;
|
296 |
-
}
|
297 |
-
|
298 |
-
/**
|
299 |
-
* Account holder's first name.
|
300 |
-
*
|
301 |
-
* @param string $first_name
|
302 |
-
*
|
303 |
-
* @return $this
|
304 |
-
*/
|
305 |
-
public function setFirstName($first_name)
|
306 |
-
{
|
307 |
-
$this->first_name = $first_name;
|
308 |
-
return $this;
|
309 |
-
}
|
310 |
-
|
311 |
-
/**
|
312 |
-
* Account holder's first name.
|
313 |
-
*
|
314 |
-
* @return string
|
315 |
-
*/
|
316 |
-
public function getFirstName()
|
317 |
-
{
|
318 |
-
return $this->first_name;
|
319 |
-
}
|
320 |
-
|
321 |
-
/**
|
322 |
-
* Account holder's last name.
|
323 |
-
*
|
324 |
-
* @param string $last_name
|
325 |
-
*
|
326 |
-
* @return $this
|
327 |
-
*/
|
328 |
-
public function setLastName($last_name)
|
329 |
-
{
|
330 |
-
$this->last_name = $last_name;
|
331 |
-
return $this;
|
332 |
-
}
|
333 |
-
|
334 |
-
/**
|
335 |
-
* Account holder's last name.
|
336 |
-
*
|
337 |
-
* @return string
|
338 |
-
*/
|
339 |
-
public function getLastName()
|
340 |
-
{
|
341 |
-
return $this->last_name;
|
342 |
-
}
|
343 |
-
|
344 |
-
/**
|
345 |
-
* Birth date of the bank account holder.
|
346 |
-
*
|
347 |
-
* @param string $birth_date
|
348 |
-
*
|
349 |
-
* @return $this
|
350 |
-
*/
|
351 |
-
public function setBirthDate($birth_date)
|
352 |
-
{
|
353 |
-
$this->birth_date = $birth_date;
|
354 |
-
return $this;
|
355 |
-
}
|
356 |
-
|
357 |
-
/**
|
358 |
-
* Birth date of the bank account holder.
|
359 |
-
*
|
360 |
-
* @return string
|
361 |
-
*/
|
362 |
-
public function getBirthDate()
|
363 |
-
{
|
364 |
-
return $this->birth_date;
|
365 |
-
}
|
366 |
-
|
367 |
-
/**
|
368 |
-
* Billing address.
|
369 |
-
*
|
370 |
-
* @param \Forminator\PayPal\Api\Address $billing_address
|
371 |
-
*
|
372 |
-
* @return $this
|
373 |
-
*/
|
374 |
-
public function setBillingAddress($billing_address)
|
375 |
-
{
|
376 |
-
$this->billing_address = $billing_address;
|
377 |
-
return $this;
|
378 |
-
}
|
379 |
-
|
380 |
-
/**
|
381 |
-
* Billing address.
|
382 |
-
*
|
383 |
-
* @return \Forminator\PayPal\Api\Address
|
384 |
-
*/
|
385 |
-
public function getBillingAddress()
|
386 |
-
{
|
387 |
-
return $this->billing_address;
|
388 |
-
}
|
389 |
-
|
390 |
-
/**
|
391 |
-
* State of this funding instrument.
|
392 |
-
* Valid Values: ["ACTIVE", "INACTIVE", "DELETED"]
|
393 |
-
*
|
394 |
-
* @param string $state
|
395 |
-
*
|
396 |
-
* @return $this
|
397 |
-
*/
|
398 |
-
public function setState($state)
|
399 |
-
{
|
400 |
-
$this->state = $state;
|
401 |
-
return $this;
|
402 |
-
}
|
403 |
-
|
404 |
-
/**
|
405 |
-
* State of this funding instrument.
|
406 |
-
*
|
407 |
-
* @return string
|
408 |
-
*/
|
409 |
-
public function getState()
|
410 |
-
{
|
411 |
-
return $this->state;
|
412 |
-
}
|
413 |
-
|
414 |
-
/**
|
415 |
-
* Confirmation status of a bank account.
|
416 |
-
* Valid Values: ["UNCONFIRMED", "CONFIRMED"]
|
417 |
-
*
|
418 |
-
* @param string $confirmation_status
|
419 |
-
*
|
420 |
-
* @return $this
|
421 |
-
*/
|
422 |
-
public function setConfirmationStatus($confirmation_status)
|
423 |
-
{
|
424 |
-
$this->confirmation_status = $confirmation_status;
|
425 |
-
return $this;
|
426 |
-
}
|
427 |
-
|
428 |
-
/**
|
429 |
-
* Confirmation status of a bank account.
|
430 |
-
*
|
431 |
-
* @return string
|
432 |
-
*/
|
433 |
-
public function getConfirmationStatus()
|
434 |
-
{
|
435 |
-
return $this->confirmation_status;
|
436 |
-
}
|
437 |
-
|
438 |
-
/**
|
439 |
-
* [DEPRECATED] Use external_customer_id instead.
|
440 |
-
*
|
441 |
-
* @param string $payer_id
|
442 |
-
*
|
443 |
-
* @return $this
|
444 |
-
*/
|
445 |
-
public function setPayerId($payer_id)
|
446 |
-
{
|
447 |
-
$this->payer_id = $payer_id;
|
448 |
-
return $this;
|
449 |
-
}
|
450 |
-
|
451 |
-
/**
|
452 |
-
* @deprecated [DEPRECATED] Use external_customer_id instead.
|
453 |
-
*
|
454 |
-
* @return string
|
455 |
-
*/
|
456 |
-
public function getPayerId()
|
457 |
-
{
|
458 |
-
return $this->payer_id;
|
459 |
-
}
|
460 |
-
|
461 |
-
/**
|
462 |
-
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
|
463 |
-
*
|
464 |
-
* @param string $external_customer_id
|
465 |
-
*
|
466 |
-
* @return $this
|
467 |
-
*/
|
468 |
-
public function setExternalCustomerId($external_customer_id)
|
469 |
-
{
|
470 |
-
$this->external_customer_id = $external_customer_id;
|
471 |
-
return $this;
|
472 |
-
}
|
473 |
-
|
474 |
-
/**
|
475 |
-
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
|
476 |
-
*
|
477 |
-
* @return string
|
478 |
-
*/
|
479 |
-
public function getExternalCustomerId()
|
480 |
-
{
|
481 |
-
return $this->external_customer_id;
|
482 |
-
}
|
483 |
-
|
484 |
-
/**
|
485 |
-
* A unique identifier of the merchant for which this bank account has been stored for. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant.
|
486 |
-
*
|
487 |
-
* @param string $merchant_id
|
488 |
-
*
|
489 |
-
* @return $this
|
490 |
-
*/
|
491 |
-
public function setMerchantId($merchant_id)
|
492 |
-
{
|
493 |
-
$this->merchant_id = $merchant_id;
|
494 |
-
return $this;
|
495 |
-
}
|
496 |
-
|
497 |
-
/**
|
498 |
-
* A unique identifier of the merchant for which this bank account has been stored for. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant.
|
499 |
-
*
|
500 |
-
* @return string
|
501 |
-
*/
|
502 |
-
public function getMerchantId()
|
503 |
-
{
|
504 |
-
return $this->merchant_id;
|
505 |
-
}
|
506 |
-
|
507 |
-
/**
|
508 |
-
* Time the resource was created.
|
509 |
-
*
|
510 |
-
* @param string $create_time
|
511 |
-
*
|
512 |
-
* @return $this
|
513 |
-
*/
|
514 |
-
public function setCreateTime($create_time)
|
515 |
-
{
|
516 |
-
$this->create_time = $create_time;
|
517 |
-
return $this;
|
518 |
-
}
|
519 |
-
|
520 |
-
/**
|
521 |
-
* Time the resource was created.
|
522 |
-
*
|
523 |
-
* @return string
|
524 |
-
*/
|
525 |
-
public function getCreateTime()
|
526 |
-
{
|
527 |
-
return $this->create_time;
|
528 |
-
}
|
529 |
-
|
530 |
-
/**
|
531 |
-
* Time the resource was last updated.
|
532 |
-
*
|
533 |
-
* @param string $update_time
|
534 |
-
*
|
535 |
-
* @return $this
|
536 |
-
*/
|
537 |
-
public function setUpdateTime($update_time)
|
538 |
-
{
|
539 |
-
$this->update_time = $update_time;
|
540 |
-
return $this;
|
541 |
-
}
|
542 |
-
|
543 |
-
/**
|
544 |
-
* Time the resource was last updated.
|
545 |
-
*
|
546 |
-
* @return string
|
547 |
-
*/
|
548 |
-
public function getUpdateTime()
|
549 |
-
{
|
550 |
-
return $this->update_time;
|
551 |
-
}
|
552 |
-
|
553 |
-
/**
|
554 |
-
* Date/Time until this resource can be used to fund a payment.
|
555 |
-
*
|
556 |
-
* @param string $valid_until
|
557 |
-
*
|
558 |
-
* @return $this
|
559 |
-
*/
|
560 |
-
public function setValidUntil($valid_until)
|
561 |
-
{
|
562 |
-
$this->valid_until = $valid_until;
|
563 |
-
return $this;
|
564 |
-
}
|
565 |
-
|
566 |
-
/**
|
567 |
-
* Date/Time until this resource can be used to fund a payment.
|
568 |
-
*
|
569 |
-
* @return string
|
570 |
-
*/
|
571 |
-
public function getValidUntil()
|
572 |
-
{
|
573 |
-
return $this->valid_until;
|
574 |
-
}
|
575 |
-
|
576 |
-
/**
|
577 |
-
* Sets Links
|
578 |
-
*
|
579 |
-
* @param \Forminator\PayPal\Api\Links[] $links
|
580 |
-
*
|
581 |
-
* @return $this
|
582 |
-
*/
|
583 |
-
public function setLinks($links)
|
584 |
-
{
|
585 |
-
$this->links = $links;
|
586 |
-
return $this;
|
587 |
-
}
|
588 |
-
|
589 |
-
/**
|
590 |
-
* Gets Links
|
591 |
-
*
|
592 |
-
* @return \Forminator\PayPal\Api\Links[]
|
593 |
-
*/
|
594 |
-
public function getLinks()
|
595 |
-
{
|
596 |
-
return $this->links;
|
597 |
-
}
|
598 |
-
|
599 |
-
/**
|
600 |
-
* Append Links to the list.
|
601 |
-
*
|
602 |
-
* @param \Forminator\PayPal\Api\Links $links
|
603 |
-
* @return $this
|
604 |
-
*/
|
605 |
-
public function addLink($links)
|
606 |
-
{
|
607 |
-
if (!$this->getLinks()) {
|
608 |
-
return $this->setLinks(array($links));
|
609 |
-
} else {
|
610 |
-
return $this->setLinks(
|
611 |
-
array_merge($this->getLinks(), array($links))
|
612 |
-
);
|
613 |
-
}
|
614 |
-
}
|
615 |
-
|
616 |
-
/**
|
617 |
-
* Remove Links from the list.
|
618 |
-
*
|
619 |
-
* @param \Forminator\PayPal\Api\Links $links
|
620 |
-
* @return $this
|
621 |
-
*/
|
622 |
-
public function removeLink($links)
|
623 |
-
{
|
624 |
-
return $this->setLinks(
|
625 |
-
array_diff($this->getLinks(), array($links))
|
626 |
-
);
|
627 |
-
}
|
628 |
-
|
629 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/BankAccountsList.php
DELETED
@@ -1,119 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class BankAccountsList
|
9 |
-
*
|
10 |
-
* A list of Bank Account Resources
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property \Forminator\PayPal\Api\BankAccount[] bank_accounts
|
15 |
-
* @property int count
|
16 |
-
* @property string next_id
|
17 |
-
*/
|
18 |
-
class BankAccountsList extends PayPalModel
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* A list of bank account resources
|
22 |
-
*
|
23 |
-
* @param \Forminator\PayPal\Api\BankAccount[] $bank_accounts
|
24 |
-
*
|
25 |
-
* @return $this
|
26 |
-
*/
|
27 |
-
public function setBankAccounts($bank_accounts)
|
28 |
-
{
|
29 |
-
$this->{"bank-accounts"} = $bank_accounts;
|
30 |
-
return $this;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* A list of bank account resources
|
35 |
-
*
|
36 |
-
* @return \Forminator\PayPal\Api\BankAccount[]
|
37 |
-
*/
|
38 |
-
public function getBankAccounts()
|
39 |
-
{
|
40 |
-
return $this->{"bank-accounts"};
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Append BankAccounts to the list.
|
45 |
-
*
|
46 |
-
* @param \Forminator\PayPal\Api\BankAccount $bankAccount
|
47 |
-
* @return $this
|
48 |
-
*/
|
49 |
-
public function addBankAccount($bankAccount)
|
50 |
-
{
|
51 |
-
if (!$this->getBankAccounts()) {
|
52 |
-
return $this->setBankAccounts(array($bankAccount));
|
53 |
-
} else {
|
54 |
-
return $this->setBankAccounts(
|
55 |
-
array_merge($this->getBankAccounts(), array($bankAccount))
|
56 |
-
);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Remove BankAccounts from the list.
|
62 |
-
*
|
63 |
-
* @param \Forminator\PayPal\Api\BankAccount $bankAccount
|
64 |
-
* @return $this
|
65 |
-
*/
|
66 |
-
public function removeBankAccount($bankAccount)
|
67 |
-
{
|
68 |
-
return $this->setBankAccounts(
|
69 |
-
array_diff($this->getBankAccounts(), array($bankAccount))
|
70 |
-
);
|
71 |
-
}
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
|
75 |
-
*
|
76 |
-
* @param int $count
|
77 |
-
*
|
78 |
-
* @return $this
|
79 |
-
*/
|
80 |
-
public function setCount($count)
|
81 |
-
{
|
82 |
-
$this->count = $count;
|
83 |
-
return $this;
|
84 |
-
}
|
85 |
-
|
86 |
-
/**
|
87 |
-
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
|
88 |
-
*
|
89 |
-
* @return int
|
90 |
-
*/
|
91 |
-
public function getCount()
|
92 |
-
{
|
93 |
-
return $this->count;
|
94 |
-
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Identifier of the next element to get the next range of results.
|
98 |
-
*
|
99 |
-
* @param string $next_id
|
100 |
-
*
|
101 |
-
* @return $this
|
102 |
-
*/
|
103 |
-
public function setNextId($next_id)
|
104 |
-
{
|
105 |
-
$this->next_id = $next_id;
|
106 |
-
return $this;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Identifier of the next element to get the next range of results.
|
111 |
-
*
|
112 |
-
* @return string
|
113 |
-
*/
|
114 |
-
public function getNextId()
|
115 |
-
{
|
116 |
-
return $this->next_id;
|
117 |
-
}
|
118 |
-
|
119 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/BankToken.php
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class BankToken
|
9 |
-
*
|
10 |
-
* A resource representing a bank that can be used to fund a payment.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string bank_id
|
15 |
-
* @property string external_customer_id
|
16 |
-
* @property string mandate_reference_number
|
17 |
-
*/
|
18 |
-
class BankToken extends PayPalModel
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* ID of a previously saved Bank resource using /vault/bank API.
|
22 |
-
*
|
23 |
-
* @param string $bank_id
|
24 |
-
*
|
25 |
-
* @return $this
|
26 |
-
*/
|
27 |
-
public function setBankId($bank_id)
|
28 |
-
{
|
29 |
-
$this->bank_id = $bank_id;
|
30 |
-
return $this;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* ID of a previously saved Bank resource using /vault/bank API.
|
35 |
-
*
|
36 |
-
* @return string
|
37 |
-
*/
|
38 |
-
public function getBankId()
|
39 |
-
{
|
40 |
-
return $this->bank_id;
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* The unique identifier of the payer used when saving this bank using /vault/bank API.
|
45 |
-
*
|
46 |
-
* @param string $external_customer_id
|
47 |
-
*
|
48 |
-
* @return $this
|
49 |
-
*/
|
50 |
-
public function setExternalCustomerId($external_customer_id)
|
51 |
-
{
|
52 |
-
$this->external_customer_id = $external_customer_id;
|
53 |
-
return $this;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* The unique identifier of the payer used when saving this bank using /vault/bank API.
|
58 |
-
*
|
59 |
-
* @return string
|
60 |
-
*/
|
61 |
-
public function getExternalCustomerId()
|
62 |
-
{
|
63 |
-
return $this->external_customer_id;
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
|
68 |
-
*
|
69 |
-
* @param string $mandate_reference_number
|
70 |
-
*
|
71 |
-
* @return $this
|
72 |
-
*/
|
73 |
-
public function setMandateReferenceNumber($mandate_reference_number)
|
74 |
-
{
|
75 |
-
$this->mandate_reference_number = $mandate_reference_number;
|
76 |
-
return $this;
|
77 |
-
}
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
|
81 |
-
*
|
82 |
-
* @return string
|
83 |
-
*/
|
84 |
-
public function getMandateReferenceNumber()
|
85 |
-
{
|
86 |
-
return $this->mandate_reference_number;
|
87 |
-
}
|
88 |
-
|
89 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/BaseAddress.php
DELETED
@@ -1,211 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class BaseAddress
|
9 |
-
*
|
10 |
-
* Base Address object used as billing address in a payment or extended for Shipping Address.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string line1
|
15 |
-
* @property string line2
|
16 |
-
* @property string city
|
17 |
-
* @property string country_code
|
18 |
-
* @property string postal_code
|
19 |
-
* @property string state
|
20 |
-
* @property string normalization_status
|
21 |
-
* @property string status
|
22 |
-
*/
|
23 |
-
class BaseAddress extends PayPalModel
|
24 |
-
{
|
25 |
-
/**
|
26 |
-
* Line 1 of the Address (eg. number, street, etc).
|
27 |
-
*
|
28 |
-
* @param string $line1
|
29 |
-
*
|
30 |
-
* @return $this
|
31 |
-
*/
|
32 |
-
public function setLine1($line1)
|
33 |
-
{
|
34 |
-
$this->line1 = $line1;
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Line 1 of the Address (eg. number, street, etc).
|
40 |
-
*
|
41 |
-
* @return string
|
42 |
-
*/
|
43 |
-
public function getLine1()
|
44 |
-
{
|
45 |
-
return $this->line1;
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Optional line 2 of the Address (eg. suite, apt #, etc.).
|
50 |
-
*
|
51 |
-
* @param string $line2
|
52 |
-
*
|
53 |
-
* @return $this
|
54 |
-
*/
|
55 |
-
public function setLine2($line2)
|
56 |
-
{
|
57 |
-
$this->line2 = $line2;
|
58 |
-
return $this;
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Optional line 2 of the Address (eg. suite, apt #, etc.).
|
63 |
-
*
|
64 |
-
* @return string
|
65 |
-
*/
|
66 |
-
public function getLine2()
|
67 |
-
{
|
68 |
-
return $this->line2;
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* City name.
|
73 |
-
*
|
74 |
-
* @param string $city
|
75 |
-
*
|
76 |
-
* @return $this
|
77 |
-
*/
|
78 |
-
public function setCity($city)
|
79 |
-
{
|
80 |
-
$this->city = $city;
|
81 |
-
return $this;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* City name.
|
86 |
-
*
|
87 |
-
* @return string
|
88 |
-
*/
|
89 |
-
public function getCity()
|
90 |
-
{
|
91 |
-
return $this->city;
|
92 |
-
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
* 2 letter country code.
|
96 |
-
*
|
97 |
-
* @param string $country_code
|
98 |
-
*
|
99 |
-
* @return $this
|
100 |
-
*/
|
101 |
-
public function setCountryCode($country_code)
|
102 |
-
{
|
103 |
-
$this->country_code = $country_code;
|
104 |
-
return $this;
|
105 |
-
}
|
106 |
-
|
107 |
-
/**
|
108 |
-
* 2 letter country code.
|
109 |
-
*
|
110 |
-
* @return string
|
111 |
-
*/
|
112 |
-
public function getCountryCode()
|
113 |
-
{
|
114 |
-
return $this->country_code;
|
115 |
-
}
|
116 |
-
|
117 |
-
/**
|
118 |
-
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
|
119 |
-
*
|
120 |
-
* @param string $postal_code
|
121 |
-
*
|
122 |
-
* @return $this
|
123 |
-
*/
|
124 |
-
public function setPostalCode($postal_code)
|
125 |
-
{
|
126 |
-
$this->postal_code = $postal_code;
|
127 |
-
return $this;
|
128 |
-
}
|
129 |
-
|
130 |
-
/**
|
131 |
-
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
|
132 |
-
*
|
133 |
-
* @return string
|
134 |
-
*/
|
135 |
-
public function getPostalCode()
|
136 |
-
{
|
137 |
-
return $this->postal_code;
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* 2 letter code for US states, and the equivalent for other countries.
|
142 |
-
*
|
143 |
-
* @param string $state
|
144 |
-
*
|
145 |
-
* @return $this
|
146 |
-
*/
|
147 |
-
public function setState($state)
|
148 |
-
{
|
149 |
-
$this->state = $state;
|
150 |
-
return $this;
|
151 |
-
}
|
152 |
-
|
153 |
-
/**
|
154 |
-
* 2 letter code for US states, and the equivalent for other countries.
|
155 |
-
*
|
156 |
-
* @return string
|
157 |
-
*/
|
158 |
-
public function getState()
|
159 |
-
{
|
160 |
-
return $this->state;
|
161 |
-
}
|
162 |
-
|
163 |
-
/**
|
164 |
-
* Address normalization status
|
165 |
-
* Valid Values: ["UNKNOWN", "UNNORMALIZED_USER_PREFERRED", "NORMALIZED", "UNNORMALIZED"]
|
166 |
-
*
|
167 |
-
* @param string $normalization_status
|
168 |
-
*
|
169 |
-
* @return $this
|
170 |
-
*/
|
171 |
-
public function setNormalizationStatus($normalization_status)
|
172 |
-
{
|
173 |
-
$this->normalization_status = $normalization_status;
|
174 |
-
return $this;
|
175 |
-
}
|
176 |
-
|
177 |
-
/**
|
178 |
-
* Address normalization status
|
179 |
-
*
|
180 |
-
* @return string
|
181 |
-
*/
|
182 |
-
public function getNormalizationStatus()
|
183 |
-
{
|
184 |
-
return $this->normalization_status;
|
185 |
-
}
|
186 |
-
|
187 |
-
/**
|
188 |
-
* Address status
|
189 |
-
* Valid Values: ["CONFIRMED", "UNCONFIRMED"]
|
190 |
-
*
|
191 |
-
* @param string $status
|
192 |
-
*
|
193 |
-
* @return $this
|
194 |
-
*/
|
195 |
-
public function setStatus($status)
|
196 |
-
{
|
197 |
-
$this->status = $status;
|
198 |
-
return $this;
|
199 |
-
}
|
200 |
-
|
201 |
-
/**
|
202 |
-
* Address status
|
203 |
-
*
|
204 |
-
* @return string
|
205 |
-
*/
|
206 |
-
public function getStatus()
|
207 |
-
{
|
208 |
-
return $this->status;
|
209 |
-
}
|
210 |
-
|
211 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Billing.php
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Billing
|
9 |
-
*
|
10 |
-
* Billing instrument used to charge the payer.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @deprecated Used internally only.
|
15 |
-
*
|
16 |
-
* @property string billing_agreement_id
|
17 |
-
*/
|
18 |
-
class Billing extends PayPalModel
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* Identifier of the instrument in PayPal Wallet
|
22 |
-
*
|
23 |
-
* @param string $billing_agreement_id
|
24 |
-
*
|
25 |
-
* @return $this
|
26 |
-
*/
|
27 |
-
public function setBillingAgreementId($billing_agreement_id)
|
28 |
-
{
|
29 |
-
$this->billing_agreement_id = $billing_agreement_id;
|
30 |
-
return $this;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Identifier of the instrument in PayPal Wallet
|
35 |
-
*
|
36 |
-
* @return string
|
37 |
-
*/
|
38 |
-
public function getBillingAgreementId()
|
39 |
-
{
|
40 |
-
return $this->billing_agreement_id;
|
41 |
-
}
|
42 |
-
|
43 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/BillingAgreementToken.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class BillingAgreementToken
|
9 |
-
*
|
10 |
-
* PayPal generated billing agreement token. It is a token returned by /v1/billing-agreements/agreement-token API end point.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
*/
|
15 |
-
class BillingAgreementToken extends PayPalModel
|
16 |
-
{
|
17 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/BillingInfo.php
DELETED
@@ -1,235 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class BillingInfo
|
9 |
-
*
|
10 |
-
* Billing information for the invoice recipient.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string email
|
15 |
-
* @property string first_name
|
16 |
-
* @property string last_name
|
17 |
-
* @property string business_name
|
18 |
-
* @property \Forminator\PayPal\Api\InvoiceAddress address
|
19 |
-
* @property string language
|
20 |
-
* @property string additional_info
|
21 |
-
* @property string notification_channel
|
22 |
-
* @property \Forminator\PayPal\Api\Phone phone
|
23 |
-
*/
|
24 |
-
class BillingInfo extends PayPalModel
|
25 |
-
{
|
26 |
-
/**
|
27 |
-
* The invoice recipient email address. Maximum length is 260 characters.
|
28 |
-
*
|
29 |
-
* @param string $email
|
30 |
-
*
|
31 |
-
* @return $this
|
32 |
-
*/
|
33 |
-
public function setEmail($email)
|
34 |
-
{
|
35 |
-
$this->email = $email;
|
36 |
-
return $this;
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* The invoice recipient email address. Maximum length is 260 characters.
|
41 |
-
*
|
42 |
-
* @return string
|
43 |
-
*/
|
44 |
-
public function getEmail()
|
45 |
-
{
|
46 |
-
return $this->email;
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* The invoice recipient first name. Maximum length is 30 characters.
|
51 |
-
*
|
52 |
-
* @param string $first_name
|
53 |
-
*
|
54 |
-
* @return $this
|
55 |
-
*/
|
56 |
-
public function setFirstName($first_name)
|
57 |
-
{
|
58 |
-
$this->first_name = $first_name;
|
59 |
-
return $this;
|
60 |
-
}
|
61 |
-
|
62 |
-
/**
|
63 |
-
* The invoice recipient first name. Maximum length is 30 characters.
|
64 |
-
*
|
65 |
-
* @return string
|
66 |
-
*/
|
67 |
-
public function getFirstName()
|
68 |
-
{
|
69 |
-
return $this->first_name;
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* The invoice recipient last name. Maximum length is 30 characters.
|
74 |
-
*
|
75 |
-
* @param string $last_name
|
76 |
-
*
|
77 |
-
* @return $this
|
78 |
-
*/
|
79 |
-
public function setLastName($last_name)
|
80 |
-
{
|
81 |
-
$this->last_name = $last_name;
|
82 |
-
return $this;
|
83 |
-
}
|
84 |
-
|
85 |
-
/**
|
86 |
-
* The invoice recipient last name. Maximum length is 30 characters.
|
87 |
-
*
|
88 |
-
* @return string
|
89 |
-
*/
|
90 |
-
public function getLastName()
|
91 |
-
{
|
92 |
-
return $this->last_name;
|
93 |
-
}
|
94 |
-
|
95 |
-
/**
|
96 |
-
* The invoice recipient company business name. Maximum length is 100 characters.
|
97 |
-
*
|
98 |
-
* @param string $business_name
|
99 |
-
*
|
100 |
-
* @return $this
|
101 |
-
*/
|
102 |
-
public function setBusinessName($business_name)
|
103 |
-
{
|
104 |
-
$this->business_name = $business_name;
|
105 |
-
return $this;
|
106 |
-
}
|
107 |
-
|
108 |
-
/**
|
109 |
-
* The invoice recipient company business name. Maximum length is 100 characters.
|
110 |
-
*
|
111 |
-
* @return string
|
112 |
-
*/
|
113 |
-
public function getBusinessName()
|
114 |
-
{
|
115 |
-
return $this->business_name;
|
116 |
-
}
|
117 |
-
|
118 |
-
/**
|
119 |
-
* The invoice recipient address.
|
120 |
-
*
|
121 |
-
* @param \Forminator\PayPal\Api\InvoiceAddress $address
|
122 |
-
*
|
123 |
-
* @return $this
|
124 |
-
*/
|
125 |
-
public function setAddress($address)
|
126 |
-
{
|
127 |
-
$this->address = $address;
|
128 |
-
return $this;
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* The invoice recipient address.
|
133 |
-
*
|
134 |
-
* @return \Forminator\PayPal\Api\InvoiceAddress
|
135 |
-
*/
|
136 |
-
public function getAddress()
|
137 |
-
{
|
138 |
-
return $this->address;
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
|
143 |
-
* Valid Values: ["da_DK", "de_DE", "en_AU", "en_GB", "en_US", "es_ES", "es_XC", "fr_CA", "fr_FR", "fr_XC", "he_IL", "id_ID", "it_IT", "ja_JP", "nl_NL", "no_NO", "pl_PL", "pt_BR", "pt_PT", "ru_RU", "sv_SE", "th_TH", "tr_TR", "zh_CN", "zh_HK", "zh_TW", "zh_XC"]
|
144 |
-
*
|
145 |
-
* @param string $language
|
146 |
-
*
|
147 |
-
* @return $this
|
148 |
-
*/
|
149 |
-
public function setLanguage($language)
|
150 |
-
{
|
151 |
-
$this->language = $language;
|
152 |
-
return $this;
|
153 |
-
}
|
154 |
-
|
155 |
-
/**
|
156 |
-
* The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
|
157 |
-
*
|
158 |
-
* @return string
|
159 |
-
*/
|
160 |
-
public function getLanguage()
|
161 |
-
{
|
162 |
-
return $this->language;
|
163 |
-
}
|
164 |
-
|
165 |
-
/**
|
166 |
-
* Additional information, such as business hours. Maximum length is 40 characters.
|
167 |
-
*
|
168 |
-
* @param string $additional_info
|
169 |
-
*
|
170 |
-
* @return $this
|
171 |
-
*/
|
172 |
-
public function setAdditionalInfo($additional_info)
|
173 |
-
{
|
174 |
-
$this->additional_info = $additional_info;
|
175 |
-
return $this;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* Additional information, such as business hours. Maximum length is 40 characters.
|
180 |
-
*
|
181 |
-
* @return string
|
182 |
-
*/
|
183 |
-
public function getAdditionalInfo()
|
184 |
-
{
|
185 |
-
return $this->additional_info;
|
186 |
-
}
|
187 |
-
|
188 |
-
/**
|
189 |
-
* Preferred notification channel of the payer. Email by default.
|
190 |
-
* Valid Values: ["SMS", "EMAIL"]
|
191 |
-
*
|
192 |
-
* @param string $notification_channel
|
193 |
-
*
|
194 |
-
* @return $this
|
195 |
-
*/
|
196 |
-
public function setNotificationChannel($notification_channel)
|
197 |
-
{
|
198 |
-
$this->notification_channel = $notification_channel;
|
199 |
-
return $this;
|
200 |
-
}
|
201 |
-
|
202 |
-
/**
|
203 |
-
* Preferred notification channel of the payer. Email by default.
|
204 |
-
*
|
205 |
-
* @return string
|
206 |
-
*/
|
207 |
-
public function getNotificationChannel()
|
208 |
-
{
|
209 |
-
return $this->notification_channel;
|
210 |
-
}
|
211 |
-
|
212 |
-
/**
|
213 |
-
* Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
|
214 |
-
*
|
215 |
-
* @param \Forminator\PayPal\Api\Phone $phone
|
216 |
-
*
|
217 |
-
* @return $this
|
218 |
-
*/
|
219 |
-
public function setPhone($phone)
|
220 |
-
{
|
221 |
-
$this->phone = $phone;
|
222 |
-
return $this;
|
223 |
-
}
|
224 |
-
|
225 |
-
/**
|
226 |
-
* Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
|
227 |
-
*
|
228 |
-
* @return \Forminator\PayPal\Api\Phone
|
229 |
-
*/
|
230 |
-
public function getPhone()
|
231 |
-
{
|
232 |
-
return $this->phone;
|
233 |
-
}
|
234 |
-
|
235 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CancelNotification.php
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CancelNotification
|
9 |
-
*
|
10 |
-
* Email/SMS notification.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string subject
|
15 |
-
* @property string note
|
16 |
-
* @property bool send_to_merchant
|
17 |
-
* @property bool send_to_payer
|
18 |
-
* @property string[] cc_emails
|
19 |
-
*/
|
20 |
-
class CancelNotification extends PayPalModel
|
21 |
-
{
|
22 |
-
/**
|
23 |
-
* Subject of the notification.
|
24 |
-
*
|
25 |
-
* @param string $subject
|
26 |
-
*
|
27 |
-
* @return $this
|
28 |
-
*/
|
29 |
-
public function setSubject($subject)
|
30 |
-
{
|
31 |
-
$this->subject = $subject;
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Subject of the notification.
|
37 |
-
*
|
38 |
-
* @return string
|
39 |
-
*/
|
40 |
-
public function getSubject()
|
41 |
-
{
|
42 |
-
return $this->subject;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Note to the payer.
|
47 |
-
*
|
48 |
-
* @param string $note
|
49 |
-
*
|
50 |
-
* @return $this
|
51 |
-
*/
|
52 |
-
public function setNote($note)
|
53 |
-
{
|
54 |
-
$this->note = $note;
|
55 |
-
return $this;
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Note to the payer.
|
60 |
-
*
|
61 |
-
* @return string
|
62 |
-
*/
|
63 |
-
public function getNote()
|
64 |
-
{
|
65 |
-
return $this->note;
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Indicates whether to send a copy of the notification to the merchant.
|
70 |
-
*
|
71 |
-
* @param bool $send_to_merchant
|
72 |
-
*
|
73 |
-
* @return $this
|
74 |
-
*/
|
75 |
-
public function setSendToMerchant($send_to_merchant)
|
76 |
-
{
|
77 |
-
$this->send_to_merchant = $send_to_merchant;
|
78 |
-
return $this;
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* Indicates whether to send a copy of the notification to the merchant.
|
83 |
-
*
|
84 |
-
* @return bool
|
85 |
-
*/
|
86 |
-
public function getSendToMerchant()
|
87 |
-
{
|
88 |
-
return $this->send_to_merchant;
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Indicates whether to send a copy of the notification to the payer.
|
93 |
-
*
|
94 |
-
* @param bool $send_to_payer
|
95 |
-
*
|
96 |
-
* @return $this
|
97 |
-
*/
|
98 |
-
public function setSendToPayer($send_to_payer)
|
99 |
-
{
|
100 |
-
$this->send_to_payer = $send_to_payer;
|
101 |
-
return $this;
|
102 |
-
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Indicates whether to send a copy of the notification to the payer.
|
106 |
-
*
|
107 |
-
* @return bool
|
108 |
-
*/
|
109 |
-
public function getSendToPayer()
|
110 |
-
{
|
111 |
-
return $this->send_to_payer;
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
|
116 |
-
*
|
117 |
-
* @param string[] $cc_emails
|
118 |
-
*
|
119 |
-
* @return $this
|
120 |
-
*/
|
121 |
-
public function setCcEmails($cc_emails)
|
122 |
-
{
|
123 |
-
$this->cc_emails = $cc_emails;
|
124 |
-
return $this;
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
|
129 |
-
*
|
130 |
-
* @return string[]
|
131 |
-
*/
|
132 |
-
public function getCcEmails()
|
133 |
-
{
|
134 |
-
return $this->cc_emails;
|
135 |
-
}
|
136 |
-
|
137 |
-
/**
|
138 |
-
* Append CcEmails to the list.
|
139 |
-
*
|
140 |
-
* @param string $string
|
141 |
-
* @return $this
|
142 |
-
*/
|
143 |
-
public function addCcEmail($string)
|
144 |
-
{
|
145 |
-
if (!$this->getCcEmails()) {
|
146 |
-
return $this->setCcEmails(array($string));
|
147 |
-
} else {
|
148 |
-
return $this->setCcEmails(
|
149 |
-
array_merge($this->getCcEmails(), array($string))
|
150 |
-
);
|
151 |
-
}
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Remove CcEmails from the list.
|
156 |
-
*
|
157 |
-
* @param string $string
|
158 |
-
* @return $this
|
159 |
-
*/
|
160 |
-
public function removeCcEmail($string)
|
161 |
-
{
|
162 |
-
return $this->setCcEmails(
|
163 |
-
array_diff($this->getCcEmails(), array($string))
|
164 |
-
);
|
165 |
-
}
|
166 |
-
|
167 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Capture.php
DELETED
@@ -1,341 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalResourceModel;
|
6 |
-
use Forminator\PayPal\Transport\PayPalRestCall;
|
7 |
-
use Forminator\PayPal\Validation\ArgumentValidator;
|
8 |
-
use Forminator\PayPal\Rest\ApiContext;
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class Capture
|
12 |
-
*
|
13 |
-
* A capture transaction.
|
14 |
-
*
|
15 |
-
* @package Forminator\PayPal\Api
|
16 |
-
*
|
17 |
-
* @property string id
|
18 |
-
* @property \Forminator\PayPal\Api\Amount amount
|
19 |
-
* @property bool is_final_capture
|
20 |
-
* @property string state
|
21 |
-
* @property string reason_code
|
22 |
-
* @property string parent_payment
|
23 |
-
* @property string invoice_number
|
24 |
-
* @property \Forminator\PayPal\Api\Currency transaction_fee
|
25 |
-
* @property string create_time
|
26 |
-
* @property string update_time
|
27 |
-
* @property \Forminator\PayPal\Api\Links[] links
|
28 |
-
*/
|
29 |
-
class Capture extends PayPalResourceModel
|
30 |
-
{
|
31 |
-
/**
|
32 |
-
* The ID of the capture transaction.
|
33 |
-
*
|
34 |
-
* @param string $id
|
35 |
-
*
|
36 |
-
* @return $this
|
37 |
-
*/
|
38 |
-
public function setId($id)
|
39 |
-
{
|
40 |
-
$this->id = $id;
|
41 |
-
return $this;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* The ID of the capture transaction.
|
46 |
-
*
|
47 |
-
* @return string
|
48 |
-
*/
|
49 |
-
public function getId()
|
50 |
-
{
|
51 |
-
return $this->id;
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* The amount to capture. If the amount matches the orginally authorized amount, the state of the authorization changes to `captured`. If not, the state of the authorization changes to `partially_captured`.
|
56 |
-
*
|
57 |
-
* @param \Forminator\PayPal\Api\Amount $amount
|
58 |
-
*
|
59 |
-
* @return $this
|
60 |
-
*/
|
61 |
-
public function setAmount($amount)
|
62 |
-
{
|
63 |
-
$this->amount = $amount;
|
64 |
-
return $this;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* The amount to capture. If the amount matches the orginally authorized amount, the state of the authorization changes to `captured`. If not, the state of the authorization changes to `partially_captured`.
|
69 |
-
*
|
70 |
-
* @return \Forminator\PayPal\Api\Amount
|
71 |
-
*/
|
72 |
-
public function getAmount()
|
73 |
-
{
|
74 |
-
return $this->amount;
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Indicates whether to release all remaining funds that the authorization holds in the funding instrument. Default is `false`.
|
79 |
-
*
|
80 |
-
* @param bool $is_final_capture
|
81 |
-
*
|
82 |
-
* @return $this
|
83 |
-
*/
|
84 |
-
public function setIsFinalCapture($is_final_capture)
|
85 |
-
{
|
86 |
-
$this->is_final_capture = $is_final_capture;
|
87 |
-
return $this;
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Indicates whether to release all remaining funds that the authorization holds in the funding instrument. Default is `false`.
|
92 |
-
*
|
93 |
-
* @return bool
|
94 |
-
*/
|
95 |
-
public function getIsFinalCapture()
|
96 |
-
{
|
97 |
-
return $this->is_final_capture;
|
98 |
-
}
|
99 |
-
|
100 |
-
/**
|
101 |
-
* The state of the capture.
|
102 |
-
* Valid Values: ["pending", "completed", "refunded", "partially_refunded"]
|
103 |
-
*
|
104 |
-
* @param string $state
|
105 |
-
*
|
106 |
-
* @return $this
|
107 |
-
*/
|
108 |
-
public function setState($state)
|
109 |
-
{
|
110 |
-
$this->state = $state;
|
111 |
-
return $this;
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* The state of the capture.
|
116 |
-
*
|
117 |
-
* @return string
|
118 |
-
*/
|
119 |
-
public function getState()
|
120 |
-
{
|
121 |
-
return $this->state;
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* The reason code that describes why the transaction state is pending or reversed.
|
126 |
-
* Valid Values: ["CHARGEBACK", "GUARANTEE", "BUYER_COMPLAINT", "REFUND", "UNCONFIRMED_SHIPPING_ADDRESS", "ECHECK", "INTERNATIONAL_WITHDRAWAL", "RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION", "PAYMENT_REVIEW", "REGULATORY_REVIEW", "UNILATERAL", "VERIFICATION_REQUIRED", "TRANSACTION_APPROVED_AWAITING_FUNDING"]
|
127 |
-
*
|
128 |
-
* @param string $reason_code
|
129 |
-
*
|
130 |
-
* @return $this
|
131 |
-
*/
|
132 |
-
public function setReasonCode($reason_code)
|
133 |
-
{
|
134 |
-
$this->reason_code = $reason_code;
|
135 |
-
return $this;
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* The reason code that describes why the transaction state is pending or reversed.
|
140 |
-
*
|
141 |
-
* @return string
|
142 |
-
*/
|
143 |
-
public function getReasonCode()
|
144 |
-
{
|
145 |
-
return $this->reason_code;
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* The ID of the payment on which this transaction is based.
|
150 |
-
*
|
151 |
-
* @param string $parent_payment
|
152 |
-
*
|
153 |
-
* @return $this
|
154 |
-
*/
|
155 |
-
public function setParentPayment($parent_payment)
|
156 |
-
{
|
157 |
-
$this->parent_payment = $parent_payment;
|
158 |
-
return $this;
|
159 |
-
}
|
160 |
-
|
161 |
-
/**
|
162 |
-
* The ID of the payment on which this transaction is based.
|
163 |
-
*
|
164 |
-
* @return string
|
165 |
-
*/
|
166 |
-
public function getParentPayment()
|
167 |
-
{
|
168 |
-
return $this->parent_payment;
|
169 |
-
}
|
170 |
-
|
171 |
-
/**
|
172 |
-
* The invoice number to track this payment.
|
173 |
-
*
|
174 |
-
* @param string $invoice_number
|
175 |
-
*
|
176 |
-
* @return $this
|
177 |
-
*/
|
178 |
-
public function setInvoiceNumber($invoice_number)
|
179 |
-
{
|
180 |
-
$this->invoice_number = $invoice_number;
|
181 |
-
return $this;
|
182 |
-
}
|
183 |
-
|
184 |
-
/**
|
185 |
-
* The invoice number to track this payment.
|
186 |
-
*
|
187 |
-
* @return string
|
188 |
-
*/
|
189 |
-
public function getInvoiceNumber()
|
190 |
-
{
|
191 |
-
return $this->invoice_number;
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
* The transaction fee for this payment.
|
196 |
-
*
|
197 |
-
* @param \Forminator\PayPal\Api\Currency $transaction_fee
|
198 |
-
*
|
199 |
-
* @return $this
|
200 |
-
*/
|
201 |
-
public function setTransactionFee($transaction_fee)
|
202 |
-
{
|
203 |
-
$this->transaction_fee = $transaction_fee;
|
204 |
-
return $this;
|
205 |
-
}
|
206 |
-
|
207 |
-
/**
|
208 |
-
* The transaction fee for this payment.
|
209 |
-
*
|
210 |
-
* @return \Forminator\PayPal\Api\Currency
|
211 |
-
*/
|
212 |
-
public function getTransactionFee()
|
213 |
-
{
|
214 |
-
return $this->transaction_fee;
|
215 |
-
}
|
216 |
-
|
217 |
-
/**
|
218 |
-
* The date and time of capture, as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
219 |
-
*
|
220 |
-
* @param string $create_time
|
221 |
-
*
|
222 |
-
* @return $this
|
223 |
-
*/
|
224 |
-
public function setCreateTime($create_time)
|
225 |
-
{
|
226 |
-
$this->create_time = $create_time;
|
227 |
-
return $this;
|
228 |
-
}
|
229 |
-
|
230 |
-
/**
|
231 |
-
* The date and time of capture, as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
232 |
-
*
|
233 |
-
* @return string
|
234 |
-
*/
|
235 |
-
public function getCreateTime()
|
236 |
-
{
|
237 |
-
return $this->create_time;
|
238 |
-
}
|
239 |
-
|
240 |
-
/**
|
241 |
-
* The date and time when the resource was last updated.
|
242 |
-
*
|
243 |
-
* @param string $update_time
|
244 |
-
*
|
245 |
-
* @return $this
|
246 |
-
*/
|
247 |
-
public function setUpdateTime($update_time)
|
248 |
-
{
|
249 |
-
$this->update_time = $update_time;
|
250 |
-
return $this;
|
251 |
-
}
|
252 |
-
|
253 |
-
/**
|
254 |
-
* The date and time when the resource was last updated.
|
255 |
-
*
|
256 |
-
* @return string
|
257 |
-
*/
|
258 |
-
public function getUpdateTime()
|
259 |
-
{
|
260 |
-
return $this->update_time;
|
261 |
-
}
|
262 |
-
|
263 |
-
/**
|
264 |
-
* Shows details for a captured payment, by ID.
|
265 |
-
*
|
266 |
-
* @param string $captureId
|
267 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
268 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
269 |
-
* @return Capture
|
270 |
-
*/
|
271 |
-
public static function get($captureId, $apiContext = null, $restCall = null)
|
272 |
-
{
|
273 |
-
ArgumentValidator::validate($captureId, 'captureId');
|
274 |
-
$payLoad = "";
|
275 |
-
$json = self::executeCall(
|
276 |
-
"/v1/payments/capture/$captureId",
|
277 |
-
"GET",
|
278 |
-
$payLoad,
|
279 |
-
null,
|
280 |
-
$apiContext,
|
281 |
-
$restCall
|
282 |
-
);
|
283 |
-
$ret = new Capture();
|
284 |
-
$ret->fromJson($json);
|
285 |
-
return $ret;
|
286 |
-
}
|
287 |
-
|
288 |
-
/**
|
289 |
-
* Refund a captured payment by passing the capture_id in the request URI. In addition, include an amount object in the body of the request JSON.
|
290 |
-
*
|
291 |
-
* @deprecated Please use #refundCapturedPayment instead.
|
292 |
-
* @param Refund $refund
|
293 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
294 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
295 |
-
* @return Refund
|
296 |
-
*/
|
297 |
-
public function refund($refund, $apiContext = null, $restCall = null)
|
298 |
-
{
|
299 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
300 |
-
ArgumentValidator::validate($refund, 'refund');
|
301 |
-
$payLoad = $refund->toJSON();
|
302 |
-
$json = self::executeCall(
|
303 |
-
"/v1/payments/capture/{$this->getId()}/refund",
|
304 |
-
"POST",
|
305 |
-
$payLoad,
|
306 |
-
null,
|
307 |
-
$apiContext,
|
308 |
-
$restCall
|
309 |
-
);
|
310 |
-
$ret = new Refund();
|
311 |
-
$ret->fromJson($json);
|
312 |
-
return $ret;
|
313 |
-
}
|
314 |
-
|
315 |
-
/**
|
316 |
-
* Refunds a captured payment, by ID. Include an `amount` object in the JSON request body.
|
317 |
-
*
|
318 |
-
* @param RefundRequest $refundRequest
|
319 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
320 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
321 |
-
* @return DetailedRefund
|
322 |
-
*/
|
323 |
-
public function refundCapturedPayment($refundRequest, $apiContext = null, $restCall = null)
|
324 |
-
{
|
325 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
326 |
-
ArgumentValidator::validate($refundRequest, 'refundRequest');
|
327 |
-
$payLoad = $refundRequest->toJSON();
|
328 |
-
$json = self::executeCall(
|
329 |
-
"/v1/payments/capture/{$this->getId()}/refund",
|
330 |
-
"POST",
|
331 |
-
$payLoad,
|
332 |
-
null,
|
333 |
-
$apiContext,
|
334 |
-
$restCall
|
335 |
-
);
|
336 |
-
$ret = new DetailedRefund();
|
337 |
-
$ret->fromJson($json);
|
338 |
-
return $ret;
|
339 |
-
}
|
340 |
-
|
341 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CarrierAccount.php
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CarrierAccount
|
9 |
-
*
|
10 |
-
* Payment instrument that enables carrier billing.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string id
|
15 |
-
* @property string phone_number
|
16 |
-
* @property string external_customer_id
|
17 |
-
* @property string phone_source
|
18 |
-
* @property \Forminator\PayPal\Api\CountryCode country_code
|
19 |
-
*/
|
20 |
-
class CarrierAccount extends PayPalModel
|
21 |
-
{
|
22 |
-
/**
|
23 |
-
* The ID of the carrier account of the payer. Use in subsequent REST API calls. For example, to make payments.
|
24 |
-
*
|
25 |
-
* @param string $id
|
26 |
-
*
|
27 |
-
* @return $this
|
28 |
-
*/
|
29 |
-
public function setId($id)
|
30 |
-
{
|
31 |
-
$this->id = $id;
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* The ID of the carrier account of the payer. Use in subsequent REST API calls. For example, to make payments.
|
37 |
-
*
|
38 |
-
* @return string
|
39 |
-
*/
|
40 |
-
public function getId()
|
41 |
-
{
|
42 |
-
return $this->id;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* The phone number of the payer, in E.164 format.
|
47 |
-
*
|
48 |
-
* @param string $phone_number
|
49 |
-
*
|
50 |
-
* @return $this
|
51 |
-
*/
|
52 |
-
public function setPhoneNumber($phone_number)
|
53 |
-
{
|
54 |
-
$this->phone_number = $phone_number;
|
55 |
-
return $this;
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* The phone number of the payer, in E.164 format.
|
60 |
-
*
|
61 |
-
* @return string
|
62 |
-
*/
|
63 |
-
public function getPhoneNumber()
|
64 |
-
{
|
65 |
-
return $this->phone_number;
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* The ID of the customer, as created by the merchant.
|
70 |
-
*
|
71 |
-
* @param string $external_customer_id
|
72 |
-
*
|
73 |
-
* @return $this
|
74 |
-
*/
|
75 |
-
public function setExternalCustomerId($external_customer_id)
|
76 |
-
{
|
77 |
-
$this->external_customer_id = $external_customer_id;
|
78 |
-
return $this;
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* The ID of the customer, as created by the merchant.
|
83 |
-
*
|
84 |
-
* @return string
|
85 |
-
*/
|
86 |
-
public function getExternalCustomerId()
|
87 |
-
{
|
88 |
-
return $this->external_customer_id;
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* The method used to obtain the phone number. Value is `READ_FROM_DEVICE` or `USER_PROVIDED`.
|
93 |
-
* Valid Values: ["READ_FROM_DEVICE", "USER_PROVIDED"]
|
94 |
-
*
|
95 |
-
* @param string $phone_source
|
96 |
-
*
|
97 |
-
* @return $this
|
98 |
-
*/
|
99 |
-
public function setPhoneSource($phone_source)
|
100 |
-
{
|
101 |
-
$this->phone_source = $phone_source;
|
102 |
-
return $this;
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* The method used to obtain the phone number. Value is `READ_FROM_DEVICE` or `USER_PROVIDED`.
|
107 |
-
*
|
108 |
-
* @return string
|
109 |
-
*/
|
110 |
-
public function getPhoneSource()
|
111 |
-
{
|
112 |
-
return $this->phone_source;
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* The ISO 3166-1 alpha-2 country code where the phone number is registered.
|
117 |
-
*
|
118 |
-
* @param \Forminator\PayPal\Api\CountryCode $country_code
|
119 |
-
*
|
120 |
-
* @return $this
|
121 |
-
*/
|
122 |
-
public function setCountryCode($country_code)
|
123 |
-
{
|
124 |
-
$this->country_code = $country_code;
|
125 |
-
return $this;
|
126 |
-
}
|
127 |
-
|
128 |
-
/**
|
129 |
-
* The ISO 3166-1 alpha-2 country code where the phone number is registered.
|
130 |
-
*
|
131 |
-
* @return \Forminator\PayPal\Api\CountryCode
|
132 |
-
*/
|
133 |
-
public function getCountryCode()
|
134 |
-
{
|
135 |
-
return $this->country_code;
|
136 |
-
}
|
137 |
-
|
138 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CarrierAccountToken.php
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CarrierAccountToken
|
9 |
-
*
|
10 |
-
* A resource representing a carrier account that can be used to fund a payment.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string carrier_account_id
|
15 |
-
* @property string external_customer_id
|
16 |
-
*/
|
17 |
-
class CarrierAccountToken extends PayPalModel
|
18 |
-
{
|
19 |
-
/**
|
20 |
-
* ID of a previously saved carrier account resource.
|
21 |
-
*
|
22 |
-
* @param string $carrier_account_id
|
23 |
-
*
|
24 |
-
* @return $this
|
25 |
-
*/
|
26 |
-
public function setCarrierAccountId($carrier_account_id)
|
27 |
-
{
|
28 |
-
$this->carrier_account_id = $carrier_account_id;
|
29 |
-
return $this;
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* ID of a previously saved carrier account resource.
|
34 |
-
*
|
35 |
-
* @return string
|
36 |
-
*/
|
37 |
-
public function getCarrierAccountId()
|
38 |
-
{
|
39 |
-
return $this->carrier_account_id;
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* The unique identifier of the payer used when saving this carrier account instrument.
|
44 |
-
*
|
45 |
-
* @param string $external_customer_id
|
46 |
-
*
|
47 |
-
* @return $this
|
48 |
-
*/
|
49 |
-
public function setExternalCustomerId($external_customer_id)
|
50 |
-
{
|
51 |
-
$this->external_customer_id = $external_customer_id;
|
52 |
-
return $this;
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* The unique identifier of the payer used when saving this carrier account instrument.
|
57 |
-
*
|
58 |
-
* @return string
|
59 |
-
*/
|
60 |
-
public function getExternalCustomerId()
|
61 |
-
{
|
62 |
-
return $this->external_customer_id;
|
63 |
-
}
|
64 |
-
|
65 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CartBase.php
DELETED
@@ -1,408 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
use Forminator\PayPal\Validation\UrlValidator;
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Class CartBase
|
10 |
-
*
|
11 |
-
* Base properties of a cart resource
|
12 |
-
*
|
13 |
-
* @package Forminator\PayPal\Api
|
14 |
-
*
|
15 |
-
* @property string reference_id
|
16 |
-
* @property \Forminator\PayPal\Api\Amount amount
|
17 |
-
* @property \Forminator\PayPal\Api\Payee payee
|
18 |
-
* @property string description
|
19 |
-
* @property string note_to_payee
|
20 |
-
* @property string custom
|
21 |
-
* @property string invoice_number
|
22 |
-
* @property string purchase_order
|
23 |
-
* @property string soft_descriptor
|
24 |
-
* @property \Forminator\PayPal\Api\PaymentOptions payment_options
|
25 |
-
* @property \Forminator\PayPal\Api\ItemList item_list
|
26 |
-
* @property string notify_url
|
27 |
-
* @property string order_url
|
28 |
-
*/
|
29 |
-
class CartBase extends PayPalModel
|
30 |
-
{
|
31 |
-
/**
|
32 |
-
* Merchant identifier to the purchase unit. Optional parameter
|
33 |
-
*
|
34 |
-
* @param string $reference_id
|
35 |
-
*
|
36 |
-
* @return $this
|
37 |
-
*/
|
38 |
-
public function setReferenceId($reference_id)
|
39 |
-
{
|
40 |
-
$this->reference_id = $reference_id;
|
41 |
-
return $this;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Merchant identifier to the purchase unit. Optional parameter
|
46 |
-
*
|
47 |
-
* @return string
|
48 |
-
*/
|
49 |
-
public function getReferenceId()
|
50 |
-
{
|
51 |
-
return $this->reference_id;
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Amount being collected.
|
56 |
-
*
|
57 |
-
* @param \Forminator\PayPal\Api\Amount $amount
|
58 |
-
*
|
59 |
-
* @return $this
|
60 |
-
*/
|
61 |
-
public function setAmount($amount)
|
62 |
-
{
|
63 |
-
$this->amount = $amount;
|
64 |
-
return $this;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Amount being collected.
|
69 |
-
*
|
70 |
-
* @return \Forminator\PayPal\Api\Amount
|
71 |
-
*/
|
72 |
-
public function getAmount()
|
73 |
-
{
|
74 |
-
return $this->amount;
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Recipient of the funds in this transaction.
|
79 |
-
*
|
80 |
-
* @param \Forminator\PayPal\Api\Payee $payee
|
81 |
-
*
|
82 |
-
* @return $this
|
83 |
-
*/
|
84 |
-
public function setPayee($payee)
|
85 |
-
{
|
86 |
-
$this->payee = $payee;
|
87 |
-
return $this;
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Recipient of the funds in this transaction.
|
92 |
-
*
|
93 |
-
* @return \Forminator\PayPal\Api\Payee
|
94 |
-
*/
|
95 |
-
public function getPayee()
|
96 |
-
{
|
97 |
-
return $this->payee;
|
98 |
-
}
|
99 |
-
|
100 |
-
/**
|
101 |
-
* Description of what is being paid for.
|
102 |
-
*
|
103 |
-
* @param string $description
|
104 |
-
*
|
105 |
-
* @return $this
|
106 |
-
*/
|
107 |
-
public function setDescription($description)
|
108 |
-
{
|
109 |
-
$this->description = $description;
|
110 |
-
return $this;
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Description of what is being paid for.
|
115 |
-
*
|
116 |
-
* @return string
|
117 |
-
*/
|
118 |
-
public function getDescription()
|
119 |
-
{
|
120 |
-
return $this->description;
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* Note to the recipient of the funds in this transaction.
|
125 |
-
*
|
126 |
-
* @param string $note_to_payee
|
127 |
-
*
|
128 |
-
* @return $this
|
129 |
-
*/
|
130 |
-
public function setNoteToPayee($note_to_payee)
|
131 |
-
{
|
132 |
-
$this->note_to_payee = $note_to_payee;
|
133 |
-
return $this;
|
134 |
-
}
|
135 |
-
|
136 |
-
/**
|
137 |
-
* Note to the recipient of the funds in this transaction.
|
138 |
-
*
|
139 |
-
* @return string
|
140 |
-
*/
|
141 |
-
public function getNoteToPayee()
|
142 |
-
{
|
143 |
-
return $this->note_to_payee;
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
* free-form field for the use of clients
|
148 |
-
*
|
149 |
-
* @param string $custom
|
150 |
-
*
|
151 |
-
* @return $this
|
152 |
-
*/
|
153 |
-
public function setCustom($custom)
|
154 |
-
{
|
155 |
-
$this->custom = $custom;
|
156 |
-
return $this;
|
157 |
-
}
|
158 |
-
|
159 |
-
/**
|
160 |
-
* free-form field for the use of clients
|
161 |
-
*
|
162 |
-
* @return string
|
163 |
-
*/
|
164 |
-
public function getCustom()
|
165 |
-
{
|
166 |
-
return $this->custom;
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* invoice number to track this payment
|
171 |
-
*
|
172 |
-
* @param string $invoice_number
|
173 |
-
*
|
174 |
-
* @return $this
|
175 |
-
*/
|
176 |
-
public function setInvoiceNumber($invoice_number)
|
177 |
-
{
|
178 |
-
$this->invoice_number = $invoice_number;
|
179 |
-
return $this;
|
180 |
-
}
|
181 |
-
|
182 |
-
/**
|
183 |
-
* invoice number to track this payment
|
184 |
-
*
|
185 |
-
* @return string
|
186 |
-
*/
|
187 |
-
public function getInvoiceNumber()
|
188 |
-
{
|
189 |
-
return $this->invoice_number;
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
* purchase order is number or id specific to this payment
|
194 |
-
*
|
195 |
-
* @param string $purchase_order
|
196 |
-
*
|
197 |
-
* @return $this
|
198 |
-
*/
|
199 |
-
public function setPurchaseOrder($purchase_order)
|
200 |
-
{
|
201 |
-
$this->purchase_order = $purchase_order;
|
202 |
-
return $this;
|
203 |
-
}
|
204 |
-
|
205 |
-
/**
|
206 |
-
* purchase order is number or id specific to this payment
|
207 |
-
*
|
208 |
-
* @return string
|
209 |
-
*/
|
210 |
-
public function getPurchaseOrder()
|
211 |
-
{
|
212 |
-
return $this->purchase_order;
|
213 |
-
}
|
214 |
-
|
215 |
-
/**
|
216 |
-
* Soft descriptor used when charging this funding source. If length exceeds max length, the value will be truncated
|
217 |
-
*
|
218 |
-
* @param string $soft_descriptor
|
219 |
-
*
|
220 |
-
* @return $this
|
221 |
-
*/
|
222 |
-
public function setSoftDescriptor($soft_descriptor)
|
223 |
-
{
|
224 |
-
$this->soft_descriptor = $soft_descriptor;
|
225 |
-
return $this;
|
226 |
-
}
|
227 |
-
|
228 |
-
/**
|
229 |
-
* Soft descriptor used when charging this funding source. If length exceeds max length, the value will be truncated
|
230 |
-
*
|
231 |
-
* @return string
|
232 |
-
*/
|
233 |
-
public function getSoftDescriptor()
|
234 |
-
{
|
235 |
-
return $this->soft_descriptor;
|
236 |
-
}
|
237 |
-
|
238 |
-
/**
|
239 |
-
* Soft descriptor city used when charging this funding source. If length exceeds max length, the value will be truncated. Only supported when the `payment_method` is set to `credit_card`
|
240 |
-
* @deprecated Not publicly available
|
241 |
-
* @param string $soft_descriptor_city
|
242 |
-
*
|
243 |
-
* @return $this
|
244 |
-
*/
|
245 |
-
public function setSoftDescriptorCity($soft_descriptor_city)
|
246 |
-
{
|
247 |
-
$this->soft_descriptor_city = $soft_descriptor_city;
|
248 |
-
return $this;
|
249 |
-
}
|
250 |
-
|
251 |
-
/**
|
252 |
-
* Soft descriptor city used when charging this funding source. If length exceeds max length, the value will be truncated. Only supported when the `payment_method` is set to `credit_card`
|
253 |
-
* @deprecated Not publicly available
|
254 |
-
* @return string
|
255 |
-
*/
|
256 |
-
public function getSoftDescriptorCity()
|
257 |
-
{
|
258 |
-
return $this->soft_descriptor_city;
|
259 |
-
}
|
260 |
-
|
261 |
-
/**
|
262 |
-
* Payment options requested for this purchase unit
|
263 |
-
*
|
264 |
-
* @param \Forminator\PayPal\Api\PaymentOptions $payment_options
|
265 |
-
*
|
266 |
-
* @return $this
|
267 |
-
*/
|
268 |
-
public function setPaymentOptions($payment_options)
|
269 |
-
{
|
270 |
-
$this->payment_options = $payment_options;
|
271 |
-
return $this;
|
272 |
-
}
|
273 |
-
|
274 |
-
/**
|
275 |
-
* Payment options requested for this purchase unit
|
276 |
-
*
|
277 |
-
* @return \Forminator\PayPal\Api\PaymentOptions
|
278 |
-
*/
|
279 |
-
public function getPaymentOptions()
|
280 |
-
{
|
281 |
-
return $this->payment_options;
|
282 |
-
}
|
283 |
-
|
284 |
-
/**
|
285 |
-
* List of items being paid for.
|
286 |
-
*
|
287 |
-
* @param \Forminator\PayPal\Api\ItemList $item_list
|
288 |
-
*
|
289 |
-
* @return $this
|
290 |
-
*/
|
291 |
-
public function setItemList($item_list)
|
292 |
-
{
|
293 |
-
$this->item_list = $item_list;
|
294 |
-
return $this;
|
295 |
-
}
|
296 |
-
|
297 |
-
/**
|
298 |
-
* List of items being paid for.
|
299 |
-
*
|
300 |
-
* @return \Forminator\PayPal\Api\ItemList
|
301 |
-
*/
|
302 |
-
public function getItemList()
|
303 |
-
{
|
304 |
-
return $this->item_list;
|
305 |
-
}
|
306 |
-
|
307 |
-
/**
|
308 |
-
* URL to send payment notifications
|
309 |
-
*
|
310 |
-
* @param string $notify_url
|
311 |
-
* @throws \InvalidArgumentException
|
312 |
-
* @return $this
|
313 |
-
*/
|
314 |
-
public function setNotifyUrl($notify_url)
|
315 |
-
{
|
316 |
-
UrlValidator::validate($notify_url, "NotifyUrl");
|
317 |
-
$this->notify_url = $notify_url;
|
318 |
-
return $this;
|
319 |
-
}
|
320 |
-
|
321 |
-
/**
|
322 |
-
* URL to send payment notifications
|
323 |
-
*
|
324 |
-
* @return string
|
325 |
-
*/
|
326 |
-
public function getNotifyUrl()
|
327 |
-
{
|
328 |
-
return $this->notify_url;
|
329 |
-
}
|
330 |
-
|
331 |
-
/**
|
332 |
-
* Url on merchant site pertaining to this payment.
|
333 |
-
*
|
334 |
-
* @param string $order_url
|
335 |
-
* @throws \InvalidArgumentException
|
336 |
-
* @return $this
|
337 |
-
*/
|
338 |
-
public function setOrderUrl($order_url)
|
339 |
-
{
|
340 |
-
UrlValidator::validate($order_url, "OrderUrl");
|
341 |
-
$this->order_url = $order_url;
|
342 |
-
return $this;
|
343 |
-
}
|
344 |
-
|
345 |
-
/**
|
346 |
-
* Url on merchant site pertaining to this payment.
|
347 |
-
*
|
348 |
-
* @return string
|
349 |
-
*/
|
350 |
-
public function getOrderUrl()
|
351 |
-
{
|
352 |
-
return $this->order_url;
|
353 |
-
}
|
354 |
-
|
355 |
-
/**
|
356 |
-
* List of external funding being applied to the purchase unit. Each external_funding unit should have a unique reference_id
|
357 |
-
* @deprecated Not publicly available
|
358 |
-
* @param \Forminator\PayPal\Api\ExternalFunding[] $external_funding
|
359 |
-
*
|
360 |
-
* @return $this
|
361 |
-
*/
|
362 |
-
public function setExternalFunding($external_funding)
|
363 |
-
{
|
364 |
-
$this->external_funding = $external_funding;
|
365 |
-
return $this;
|
366 |
-
}
|
367 |
-
|
368 |
-
/**
|
369 |
-
* List of external funding being applied to the purchase unit. Each external_funding unit should have a unique reference_id
|
370 |
-
* @deprecated Not publicly available
|
371 |
-
* @return \Forminator\PayPal\Api\ExternalFunding[]
|
372 |
-
*/
|
373 |
-
public function getExternalFunding()
|
374 |
-
{
|
375 |
-
return $this->external_funding;
|
376 |
-
}
|
377 |
-
|
378 |
-
/**
|
379 |
-
* Append ExternalFunding to the list.
|
380 |
-
* @deprecated Not publicly available
|
381 |
-
* @param \Forminator\PayPal\Api\ExternalFunding $externalFunding
|
382 |
-
* @return $this
|
383 |
-
*/
|
384 |
-
public function addExternalFunding($externalFunding)
|
385 |
-
{
|
386 |
-
if (!$this->getExternalFunding()) {
|
387 |
-
return $this->setExternalFunding(array($externalFunding));
|
388 |
-
} else {
|
389 |
-
return $this->setExternalFunding(
|
390 |
-
array_merge($this->getExternalFunding(), array($externalFunding))
|
391 |
-
);
|
392 |
-
}
|
393 |
-
}
|
394 |
-
|
395 |
-
/**
|
396 |
-
* Remove ExternalFunding from the list.
|
397 |
-
* @deprecated Not publicly available
|
398 |
-
* @param \Forminator\PayPal\Api\ExternalFunding $externalFunding
|
399 |
-
* @return $this
|
400 |
-
*/
|
401 |
-
public function removeExternalFunding($externalFunding)
|
402 |
-
{
|
403 |
-
return $this->setExternalFunding(
|
404 |
-
array_diff($this->getExternalFunding(), array($externalFunding))
|
405 |
-
);
|
406 |
-
}
|
407 |
-
|
408 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/ChargeModel.php
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class ChargeModel
|
9 |
-
*
|
10 |
-
* A resource representing a charge model for a payment definition.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string id
|
15 |
-
* @property string type
|
16 |
-
* @property \Forminator\PayPal\Api\Currency amount
|
17 |
-
*/
|
18 |
-
class ChargeModel extends PayPalModel
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* Identifier of the charge model. 128 characters max.
|
22 |
-
*
|
23 |
-
* @param string $id
|
24 |
-
*
|
25 |
-
* @return $this
|
26 |
-
*/
|
27 |
-
public function setId($id)
|
28 |
-
{
|
29 |
-
$this->id = $id;
|
30 |
-
return $this;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Identifier of the charge model. 128 characters max.
|
35 |
-
*
|
36 |
-
* @return string
|
37 |
-
*/
|
38 |
-
public function getId()
|
39 |
-
{
|
40 |
-
return $this->id;
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Type of charge model. Allowed values: `SHIPPING`, `TAX`.
|
45 |
-
*
|
46 |
-
* @param string $type
|
47 |
-
*
|
48 |
-
* @return $this
|
49 |
-
*/
|
50 |
-
public function setType($type)
|
51 |
-
{
|
52 |
-
$this->type = $type;
|
53 |
-
return $this;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Type of charge model. Allowed values: `SHIPPING`, `TAX`.
|
58 |
-
*
|
59 |
-
* @return string
|
60 |
-
*/
|
61 |
-
public function getType()
|
62 |
-
{
|
63 |
-
return $this->type;
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Specific amount for this charge model.
|
68 |
-
*
|
69 |
-
* @param \Forminator\PayPal\Api\Currency $amount
|
70 |
-
*
|
71 |
-
* @return $this
|
72 |
-
*/
|
73 |
-
public function setAmount($amount)
|
74 |
-
{
|
75 |
-
$this->amount = $amount;
|
76 |
-
return $this;
|
77 |
-
}
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Specific amount for this charge model.
|
81 |
-
*
|
82 |
-
* @return \Forminator\PayPal\Api\Currency
|
83 |
-
*/
|
84 |
-
public function getAmount()
|
85 |
-
{
|
86 |
-
return $this->amount;
|
87 |
-
}
|
88 |
-
|
89 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Cost.php
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
use Forminator\PayPal\Converter\FormatConverter;
|
7 |
-
use Forminator\PayPal\Validation\NumericValidator;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Class Cost
|
11 |
-
*
|
12 |
-
* Cost as a percent or an amount. For example, to specify 10%, enter `10`. Alternatively, to specify an amount of 5, enter `5`.
|
13 |
-
*
|
14 |
-
* @package Forminator\PayPal\Api
|
15 |
-
*
|
16 |
-
* @property string percent
|
17 |
-
* @property \Forminator\PayPal\Api\Currency amount
|
18 |
-
*/
|
19 |
-
class Cost extends PayPalModel
|
20 |
-
{
|
21 |
-
/**
|
22 |
-
* Cost in percent. Range of 0 to 100.
|
23 |
-
*
|
24 |
-
* @param string $percent
|
25 |
-
*
|
26 |
-
* @return $this
|
27 |
-
*/
|
28 |
-
public function setPercent($percent)
|
29 |
-
{
|
30 |
-
NumericValidator::validate($percent, "Percent");
|
31 |
-
$percent = FormatConverter::formatToNumber($percent);
|
32 |
-
$this->percent = $percent;
|
33 |
-
return $this;
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Cost in percent. Range of 0 to 100.
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getPercent()
|
42 |
-
{
|
43 |
-
return $this->percent;
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* The cost, as an amount. Valid range is from 0 to 1,000,000.
|
48 |
-
*
|
49 |
-
* @param \Forminator\PayPal\Api\Currency $amount
|
50 |
-
*
|
51 |
-
* @return $this
|
52 |
-
*/
|
53 |
-
public function setAmount($amount)
|
54 |
-
{
|
55 |
-
$this->amount = $amount;
|
56 |
-
return $this;
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
* The cost, as an amount. Valid range is from 0 to 1,000,000.
|
61 |
-
*
|
62 |
-
* @return \Forminator\PayPal\Api\Currency
|
63 |
-
*/
|
64 |
-
public function getAmount()
|
65 |
-
{
|
66 |
-
return $this->amount;
|
67 |
-
}
|
68 |
-
|
69 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CountryCode.php
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CountryCode
|
9 |
-
*
|
10 |
-
* The ISO 3166-1 alpha-2 country code. A complete list of valid codes is available at Wikipedia: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 In particular, note that the country code for Great Britain is GB, not UK as used in that country's top-level domain names.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string country_code
|
15 |
-
*/
|
16 |
-
class CountryCode extends PayPalModel
|
17 |
-
{
|
18 |
-
/**
|
19 |
-
* ISO country code based on 2-character IS0-3166-1 codes.
|
20 |
-
*
|
21 |
-
* @param string $country_code
|
22 |
-
*
|
23 |
-
* @return $this
|
24 |
-
*/
|
25 |
-
public function setCountryCode($country_code)
|
26 |
-
{
|
27 |
-
$this->country_code = $country_code;
|
28 |
-
return $this;
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* ISO country code based on 2-character IS0-3166-1 codes.
|
33 |
-
*
|
34 |
-
* @return string
|
35 |
-
*/
|
36 |
-
public function getCountryCode()
|
37 |
-
{
|
38 |
-
return $this->country_code;
|
39 |
-
}
|
40 |
-
|
41 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CreateProfileResponse.php
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Class CreateProfileResponse
|
7 |
-
*
|
8 |
-
* Response schema for create profile api
|
9 |
-
*
|
10 |
-
* @package Forminator\PayPal\Api
|
11 |
-
*
|
12 |
-
* @property string id
|
13 |
-
*/
|
14 |
-
class CreateProfileResponse extends WebProfile
|
15 |
-
{
|
16 |
-
/**
|
17 |
-
* ID of the payment web experience profile.
|
18 |
-
*
|
19 |
-
*
|
20 |
-
* @param string $id
|
21 |
-
*
|
22 |
-
* @return $this
|
23 |
-
*/
|
24 |
-
public function setId($id)
|
25 |
-
{
|
26 |
-
$this->id = $id;
|
27 |
-
return $this;
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
* ID of the payment web experience profile.
|
32 |
-
*
|
33 |
-
* @return string
|
34 |
-
*/
|
35 |
-
public function getId()
|
36 |
-
{
|
37 |
-
return $this->id;
|
38 |
-
}
|
39 |
-
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/Credit.php
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Credit
|
9 |
-
*
|
10 |
-
* A resource representing a credit instrument.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string id
|
15 |
-
* @property string type
|
16 |
-
*/
|
17 |
-
class Credit extends PayPalModel
|
18 |
-
{
|
19 |
-
/**
|
20 |
-
* Unique identifier of credit resource.
|
21 |
-
*
|
22 |
-
* @param string $id
|
23 |
-
*
|
24 |
-
* @return $this
|
25 |
-
*/
|
26 |
-
public function setId($id)
|
27 |
-
{
|
28 |
-
$this->id = $id;
|
29 |
-
return $this;
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Unique identifier of credit resource.
|
34 |
-
*
|
35 |
-
* @return string
|
36 |
-
*/
|
37 |
-
public function getId()
|
38 |
-
{
|
39 |
-
return $this->id;
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* specifies type of credit
|
44 |
-
* Valid Values: ["BILL_ME_LATER", "PAYPAL_EXTRAS_MASTERCARD", "EBAY_MASTERCARD", "PAYPAL_SMART_CONNECT"]
|
45 |
-
*
|
46 |
-
* @param string $type
|
47 |
-
*
|
48 |
-
* @return $this
|
49 |
-
*/
|
50 |
-
public function setType($type)
|
51 |
-
{
|
52 |
-
$this->type = $type;
|
53 |
-
return $this;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* specifies type of credit
|
58 |
-
*
|
59 |
-
* @return string
|
60 |
-
*/
|
61 |
-
public function getType()
|
62 |
-
{
|
63 |
-
return $this->type;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CreditCard.php
DELETED
@@ -1,560 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalResourceModel;
|
6 |
-
use Forminator\PayPal\Rest\ApiContext;
|
7 |
-
use Forminator\PayPal\Transport\PayPalRestCall;
|
8 |
-
use Forminator\PayPal\Validation\ArgumentValidator;
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class CreditCard
|
12 |
-
*
|
13 |
-
* @package Forminator\PayPal\Api
|
14 |
-
*
|
15 |
-
* @property string number
|
16 |
-
* @property string type
|
17 |
-
* @property int expire_month
|
18 |
-
* @property int expire_year
|
19 |
-
* @property string cvv2
|
20 |
-
* @property string first_name
|
21 |
-
* @property string last_name
|
22 |
-
* @property \Forminator\PayPal\Api\Address billing_address
|
23 |
-
* @property string external_customer_id
|
24 |
-
* @property string state
|
25 |
-
* @property string valid_until
|
26 |
-
* @property \Forminator\PayPal\Api\Links[] links
|
27 |
-
*/
|
28 |
-
class CreditCard extends PayPalResourceModel
|
29 |
-
{
|
30 |
-
/**
|
31 |
-
* ID of the credit card. This ID is provided in the response when storing credit cards. **Required if using a stored credit card.**
|
32 |
-
*
|
33 |
-
* @deprecated Not publicly available
|
34 |
-
* @param string $id
|
35 |
-
*
|
36 |
-
* @return $this
|
37 |
-
*/
|
38 |
-
public function setId($id)
|
39 |
-
{
|
40 |
-
$this->id = $id;
|
41 |
-
return $this;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* ID of the credit card. This ID is provided in the response when storing credit cards. **Required if using a stored credit card.**
|
46 |
-
*
|
47 |
-
* @deprecated Not publicly available
|
48 |
-
* @return string
|
49 |
-
*/
|
50 |
-
public function getId()
|
51 |
-
{
|
52 |
-
return $this->id;
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Credit card number. Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type. *Redacted in responses.*
|
57 |
-
*
|
58 |
-
* @param string $number
|
59 |
-
*
|
60 |
-
* @return $this
|
61 |
-
*/
|
62 |
-
public function setNumber($number)
|
63 |
-
{
|
64 |
-
$this->number = $number;
|
65 |
-
return $this;
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Credit card number. Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type. *Redacted in responses.*
|
70 |
-
*
|
71 |
-
* @return string
|
72 |
-
*/
|
73 |
-
public function getNumber()
|
74 |
-
{
|
75 |
-
return $this->number;
|
76 |
-
}
|
77 |
-
|
78 |
-
/**
|
79 |
-
* Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`
|
80 |
-
*
|
81 |
-
* @param string $type
|
82 |
-
*
|
83 |
-
* @return $this
|
84 |
-
*/
|
85 |
-
public function setType($type)
|
86 |
-
{
|
87 |
-
$this->type = $type;
|
88 |
-
return $this;
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`
|
93 |
-
*
|
94 |
-
* @return string
|
95 |
-
*/
|
96 |
-
public function getType()
|
97 |
-
{
|
98 |
-
return $this->type;
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Expiration month with no leading zero. Acceptable values are 1 through 12.
|
103 |
-
*
|
104 |
-
* @param int $expire_month
|
105 |
-
*
|
106 |
-
* @return $this
|
107 |
-
*/
|
108 |
-
public function setExpireMonth($expire_month)
|
109 |
-
{
|
110 |
-
$this->expire_month = $expire_month;
|
111 |
-
return $this;
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* Expiration month with no leading zero. Acceptable values are 1 through 12.
|
116 |
-
*
|
117 |
-
* @return int
|
118 |
-
*/
|
119 |
-
public function getExpireMonth()
|
120 |
-
{
|
121 |
-
return $this->expire_month;
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* 4-digit expiration year.
|
126 |
-
*
|
127 |
-
* @param int $expire_year
|
128 |
-
*
|
129 |
-
* @return $this
|
130 |
-
*/
|
131 |
-
public function setExpireYear($expire_year)
|
132 |
-
{
|
133 |
-
$this->expire_year = $expire_year;
|
134 |
-
return $this;
|
135 |
-
}
|
136 |
-
|
137 |
-
/**
|
138 |
-
* 4-digit expiration year.
|
139 |
-
*
|
140 |
-
* @return int
|
141 |
-
*/
|
142 |
-
public function getExpireYear()
|
143 |
-
{
|
144 |
-
return $this->expire_year;
|
145 |
-
}
|
146 |
-
|
147 |
-
/**
|
148 |
-
* 3-4 digit card validation code.
|
149 |
-
*
|
150 |
-
* @param string $cvv2
|
151 |
-
*
|
152 |
-
* @return $this
|
153 |
-
*/
|
154 |
-
public function setCvv2($cvv2)
|
155 |
-
{
|
156 |
-
$this->cvv2 = $cvv2;
|
157 |
-
return $this;
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* 3-4 digit card validation code.
|
162 |
-
*
|
163 |
-
* @return string
|
164 |
-
*/
|
165 |
-
public function getCvv2()
|
166 |
-
{
|
167 |
-
return $this->cvv2;
|
168 |
-
}
|
169 |
-
|
170 |
-
/**
|
171 |
-
* Cardholder's first name.
|
172 |
-
*
|
173 |
-
* @param string $first_name
|
174 |
-
*
|
175 |
-
* @return $this
|
176 |
-
*/
|
177 |
-
public function setFirstName($first_name)
|
178 |
-
{
|
179 |
-
$this->first_name = $first_name;
|
180 |
-
return $this;
|
181 |
-
}
|
182 |
-
|
183 |
-
/**
|
184 |
-
* Cardholder's first name.
|
185 |
-
*
|
186 |
-
* @return string
|
187 |
-
*/
|
188 |
-
public function getFirstName()
|
189 |
-
{
|
190 |
-
return $this->first_name;
|
191 |
-
}
|
192 |
-
|
193 |
-
/**
|
194 |
-
* Cardholder's last name.
|
195 |
-
*
|
196 |
-
* @param string $last_name
|
197 |
-
*
|
198 |
-
* @return $this
|
199 |
-
*/
|
200 |
-
public function setLastName($last_name)
|
201 |
-
{
|
202 |
-
$this->last_name = $last_name;
|
203 |
-
return $this;
|
204 |
-
}
|
205 |
-
|
206 |
-
/**
|
207 |
-
* Cardholder's last name.
|
208 |
-
*
|
209 |
-
* @return string
|
210 |
-
*/
|
211 |
-
public function getLastName()
|
212 |
-
{
|
213 |
-
return $this->last_name;
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Billing Address associated with this card.
|
218 |
-
*
|
219 |
-
* @param \Forminator\PayPal\Api\Address $billing_address
|
220 |
-
*
|
221 |
-
* @return $this
|
222 |
-
*/
|
223 |
-
public function setBillingAddress($billing_address)
|
224 |
-
{
|
225 |
-
$this->billing_address = $billing_address;
|
226 |
-
return $this;
|
227 |
-
}
|
228 |
-
|
229 |
-
/**
|
230 |
-
* Billing Address associated with this card.
|
231 |
-
*
|
232 |
-
* @return \Forminator\PayPal\Api\Address
|
233 |
-
*/
|
234 |
-
public function getBillingAddress()
|
235 |
-
{
|
236 |
-
return $this->billing_address;
|
237 |
-
}
|
238 |
-
|
239 |
-
/**
|
240 |
-
* A unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator. **This is now used in favor of `payer_id` when creating or using a stored funding instrument in the vault.**
|
241 |
-
*
|
242 |
-
* @param string $external_customer_id
|
243 |
-
*
|
244 |
-
* @return $this
|
245 |
-
*/
|
246 |
-
public function setExternalCustomerId($external_customer_id)
|
247 |
-
{
|
248 |
-
$this->external_customer_id = $external_customer_id;
|
249 |
-
return $this;
|
250 |
-
}
|
251 |
-
|
252 |
-
/**
|
253 |
-
* A unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator. **This is now used in favor of `payer_id` when creating or using a stored funding instrument in the vault.**
|
254 |
-
*
|
255 |
-
* @return string
|
256 |
-
*/
|
257 |
-
public function getExternalCustomerId()
|
258 |
-
{
|
259 |
-
return $this->external_customer_id;
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
* A user provided, optional convenvience field that functions as a unique identifier for the merchant on behalf of whom this credit card is being stored for. Note that this has no relation to PayPal merchant id
|
264 |
-
*
|
265 |
-
* @param string $merchant_id
|
266 |
-
*
|
267 |
-
* @return $this
|
268 |
-
*/
|
269 |
-
public function setMerchantId($merchant_id)
|
270 |
-
{
|
271 |
-
$this->merchant_id = $merchant_id;
|
272 |
-
return $this;
|
273 |
-
}
|
274 |
-
|
275 |
-
/**
|
276 |
-
* A user provided, optional convenvience field that functions as a unique identifier for the merchant on behalf of whom this credit card is being stored for. Note that this has no relation to PayPal merchant id
|
277 |
-
*
|
278 |
-
* @return string
|
279 |
-
*/
|
280 |
-
public function getMerchantId()
|
281 |
-
{
|
282 |
-
return $this->merchant_id;
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault.
|
287 |
-
*
|
288 |
-
* @deprecated This is being deprecated in favor of the `external_customer_id` property.
|
289 |
-
* @param string $payer_id
|
290 |
-
*
|
291 |
-
* @return $this
|
292 |
-
*/
|
293 |
-
public function setPayerId($payer_id)
|
294 |
-
{
|
295 |
-
$this->payer_id = $payer_id;
|
296 |
-
return $this;
|
297 |
-
}
|
298 |
-
|
299 |
-
/**
|
300 |
-
* A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault.
|
301 |
-
*
|
302 |
-
* @deprecated This is being deprecated in favor of the `external_customer_id` property.
|
303 |
-
* @return string
|
304 |
-
*/
|
305 |
-
public function getPayerId()
|
306 |
-
{
|
307 |
-
return $this->payer_id;
|
308 |
-
}
|
309 |
-
|
310 |
-
/**
|
311 |
-
* A unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant.
|
312 |
-
*
|
313 |
-
* @param string $external_card_id
|
314 |
-
*
|
315 |
-
* @return $this
|
316 |
-
*/
|
317 |
-
public function setExternalCardId($external_card_id)
|
318 |
-
{
|
319 |
-
$this->external_card_id = $external_card_id;
|
320 |
-
return $this;
|
321 |
-
}
|
322 |
-
|
323 |
-
/**
|
324 |
-
* A unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant.
|
325 |
-
*
|
326 |
-
* @return string
|
327 |
-
*/
|
328 |
-
public function getExternalCardId()
|
329 |
-
{
|
330 |
-
return $this->external_card_id;
|
331 |
-
}
|
332 |
-
|
333 |
-
/**
|
334 |
-
* State of the credit card funding instrument.
|
335 |
-
* Valid Values: ["expired", "ok"]
|
336 |
-
*
|
337 |
-
* @param string $state
|
338 |
-
*
|
339 |
-
* @return $this
|
340 |
-
*/
|
341 |
-
public function setState($state)
|
342 |
-
{
|
343 |
-
$this->state = $state;
|
344 |
-
return $this;
|
345 |
-
}
|
346 |
-
|
347 |
-
/**
|
348 |
-
* State of the credit card funding instrument.
|
349 |
-
*
|
350 |
-
* @return string
|
351 |
-
*/
|
352 |
-
public function getState()
|
353 |
-
{
|
354 |
-
return $this->state;
|
355 |
-
}
|
356 |
-
|
357 |
-
/**
|
358 |
-
* Funding instrument expiration date.
|
359 |
-
*
|
360 |
-
* @param string $create_time
|
361 |
-
*
|
362 |
-
* @return $this
|
363 |
-
*/
|
364 |
-
public function setCreateTime($create_time)
|
365 |
-
{
|
366 |
-
$this->create_time = $create_time;
|
367 |
-
return $this;
|
368 |
-
}
|
369 |
-
|
370 |
-
/**
|
371 |
-
* Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates creation time.
|
372 |
-
*
|
373 |
-
* @return string
|
374 |
-
*/
|
375 |
-
public function getCreateTime()
|
376 |
-
{
|
377 |
-
return $this->create_time;
|
378 |
-
}
|
379 |
-
|
380 |
-
/**
|
381 |
-
* Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the updation time.
|
382 |
-
*
|
383 |
-
* @param string $update_time
|
384 |
-
*
|
385 |
-
* @return $this
|
386 |
-
*/
|
387 |
-
public function setUpdateTime($update_time)
|
388 |
-
{
|
389 |
-
$this->update_time = $update_time;
|
390 |
-
return $this;
|
391 |
-
}
|
392 |
-
|
393 |
-
/**
|
394 |
-
* Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the updation time.
|
395 |
-
*
|
396 |
-
* @return string
|
397 |
-
*/
|
398 |
-
public function getUpdateTime()
|
399 |
-
{
|
400 |
-
return $this->update_time;
|
401 |
-
}
|
402 |
-
|
403 |
-
/**
|
404 |
-
* Date/Time until this resource can be used fund a payment.
|
405 |
-
*
|
406 |
-
* @param string $valid_until
|
407 |
-
*
|
408 |
-
* @return $this
|
409 |
-
*/
|
410 |
-
public function setValidUntil($valid_until)
|
411 |
-
{
|
412 |
-
$this->valid_until = $valid_until;
|
413 |
-
return $this;
|
414 |
-
}
|
415 |
-
|
416 |
-
/**
|
417 |
-
* Funding instrument expiration date.
|
418 |
-
*
|
419 |
-
* @return string
|
420 |
-
*/
|
421 |
-
public function getValidUntil()
|
422 |
-
{
|
423 |
-
return $this->valid_until;
|
424 |
-
}
|
425 |
-
|
426 |
-
/**
|
427 |
-
* Creates a new Credit Card Resource (aka Tokenize).
|
428 |
-
*
|
429 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
430 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
431 |
-
* @return CreditCard
|
432 |
-
*/
|
433 |
-
public function create($apiContext = null, $restCall = null)
|
434 |
-
{
|
435 |
-
$payLoad = $this->toJSON();
|
436 |
-
$json = self::executeCall(
|
437 |
-
"/v1/vault/credit-cards",
|
438 |
-
"POST",
|
439 |
-
$payLoad,
|
440 |
-
null,
|
441 |
-
$apiContext,
|
442 |
-
$restCall
|
443 |
-
);
|
444 |
-
$this->fromJson($json);
|
445 |
-
return $this;
|
446 |
-
}
|
447 |
-
|
448 |
-
/**
|
449 |
-
* Obtain the Credit Card resource for the given identifier.
|
450 |
-
*
|
451 |
-
* @param string $creditCardId
|
452 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
453 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
454 |
-
* @return CreditCard
|
455 |
-
*/
|
456 |
-
public static function get($creditCardId, $apiContext = null, $restCall = null)
|
457 |
-
{
|
458 |
-
ArgumentValidator::validate($creditCardId, 'creditCardId');
|
459 |
-
$payLoad = "";
|
460 |
-
$json = self::executeCall(
|
461 |
-
"/v1/vault/credit-cards/$creditCardId",
|
462 |
-
"GET",
|
463 |
-
$payLoad,
|
464 |
-
null,
|
465 |
-
$apiContext,
|
466 |
-
$restCall
|
467 |
-
);
|
468 |
-
$ret = new CreditCard();
|
469 |
-
$ret->fromJson($json);
|
470 |
-
return $ret;
|
471 |
-
}
|
472 |
-
|
473 |
-
/**
|
474 |
-
* Delete the Credit Card resource for the given identifier.
|
475 |
-
*
|
476 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
477 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
478 |
-
* @return bool
|
479 |
-
*/
|
480 |
-
public function delete($apiContext = null, $restCall = null)
|
481 |
-
{
|
482 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
483 |
-
$payLoad = "";
|
484 |
-
self::executeCall(
|
485 |
-
"/v1/vault/credit-cards/{$this->getId()}",
|
486 |
-
"DELETE",
|
487 |
-
$payLoad,
|
488 |
-
null,
|
489 |
-
$apiContext,
|
490 |
-
$restCall
|
491 |
-
);
|
492 |
-
return true;
|
493 |
-
}
|
494 |
-
|
495 |
-
/**
|
496 |
-
* Update information in a previously saved card. Only the modified fields need to be passed in the request.
|
497 |
-
*
|
498 |
-
* @param PatchRequest $patchRequest
|
499 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
500 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
501 |
-
* @return CreditCard
|
502 |
-
*/
|
503 |
-
public function update($patchRequest, $apiContext = null, $restCall = null)
|
504 |
-
{
|
505 |
-
ArgumentValidator::validate($this->getId(), "Id");
|
506 |
-
ArgumentValidator::validate($patchRequest, 'patch');
|
507 |
-
$payload = $patchRequest->toJSON();
|
508 |
-
$json = self::executeCall(
|
509 |
-
"/v1/vault/credit-cards/{$this->getId()}",
|
510 |
-
"PATCH",
|
511 |
-
$payload,
|
512 |
-
null,
|
513 |
-
$apiContext,
|
514 |
-
$restCall
|
515 |
-
);
|
516 |
-
$this->fromJson($json);
|
517 |
-
return $this;
|
518 |
-
}
|
519 |
-
|
520 |
-
/**
|
521 |
-
* Retrieves a list of Credit Card resources.
|
522 |
-
*
|
523 |
-
* @param array $params
|
524 |
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
525 |
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
526 |
-
* @return CreditCardList
|
527 |
-
*/
|
528 |
-
public static function all($params, $apiContext = null, $restCall = null)
|
529 |
-
{
|
530 |
-
if (is_null($params)) {
|
531 |
-
$params = array();
|
532 |
-
}
|
533 |
-
ArgumentValidator::validate($params, 'params');
|
534 |
-
$payLoad = "";
|
535 |
-
$allowedParams = array(
|
536 |
-
'page_size' => 1,
|
537 |
-
'page' => 1,
|
538 |
-
'start_time' => 1,
|
539 |
-
'end_time' => 1,
|
540 |
-
'sort_order' => 1,
|
541 |
-
'sort_by' => 1,
|
542 |
-
'merchant_id' => 1,
|
543 |
-
'external_card_id' => 1,
|
544 |
-
'external_customer_id' => 1,
|
545 |
-
'total_required' => 1
|
546 |
-
);
|
547 |
-
$json = self::executeCall(
|
548 |
-
"/v1/vault/credit-cards" . "?" . http_build_query(array_intersect_key($params, $allowedParams)),
|
549 |
-
"GET",
|
550 |
-
$payLoad,
|
551 |
-
null,
|
552 |
-
$apiContext,
|
553 |
-
$restCall
|
554 |
-
);
|
555 |
-
$ret = new CreditCardList();
|
556 |
-
$ret->fromJson($json);
|
557 |
-
return $ret;
|
558 |
-
}
|
559 |
-
|
560 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CreditCardHistory.php
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CreditCardHistory
|
9 |
-
*
|
10 |
-
* A list of Credit Card Resources
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property \Forminator\PayPal\Api\CreditCard[] credit_cards
|
15 |
-
* @property int count
|
16 |
-
* @property string next_id
|
17 |
-
*/
|
18 |
-
class CreditCardHistory extends PayPalModel
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* A list of credit card resources
|
22 |
-
*
|
23 |
-
*
|
24 |
-
* @param \Forminator\PayPal\Api\CreditCard[] $credit_cards
|
25 |
-
* @return $this
|
26 |
-
*/
|
27 |
-
public function setCreditCards($credit_cards)
|
28 |
-
{
|
29 |
-
$this->{"credit-cards"} = $credit_cards;
|
30 |
-
return $this;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* A list of credit card resources
|
35 |
-
*
|
36 |
-
* @return \Forminator\PayPal\Api\CreditCard
|
37 |
-
*/
|
38 |
-
public function getCreditCards()
|
39 |
-
{
|
40 |
-
return $this->{"credit-cards"};
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
|
45 |
-
*
|
46 |
-
*
|
47 |
-
* @param int $count
|
48 |
-
*
|
49 |
-
* @return $this
|
50 |
-
*/
|
51 |
-
public function setCount($count)
|
52 |
-
{
|
53 |
-
$this->count = $count;
|
54 |
-
return $this;
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
|
59 |
-
*
|
60 |
-
* @return int
|
61 |
-
*/
|
62 |
-
public function getCount()
|
63 |
-
{
|
64 |
-
return $this->count;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Identifier of the next element to get the next range of results.
|
69 |
-
*
|
70 |
-
*
|
71 |
-
* @param string $next_id
|
72 |
-
*
|
73 |
-
* @return $this
|
74 |
-
*/
|
75 |
-
public function setNextId($next_id)
|
76 |
-
{
|
77 |
-
$this->next_id = $next_id;
|
78 |
-
return $this;
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* Identifier of the next element to get the next range of results.
|
83 |
-
*
|
84 |
-
* @return string
|
85 |
-
*/
|
86 |
-
public function getNextId()
|
87 |
-
{
|
88 |
-
return $this->next_id;
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CreditCardList.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalResourceModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CreditCardList
|
9 |
-
*
|
10 |
-
* A list of Credit Card Resources
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property \Forminator\PayPal\Api\CreditCard[] items
|
15 |
-
* @property \Forminator\PayPal\Api\Links[] links
|
16 |
-
* @property int total_items
|
17 |
-
* @property int total_pages
|
18 |
-
*/
|
19 |
-
class CreditCardList extends PayPalResourceModel
|
20 |
-
{
|
21 |
-
/**
|
22 |
-
* A list of credit card resources
|
23 |
-
*
|
24 |
-
* @param \Forminator\PayPal\Api\CreditCard[] $items
|
25 |
-
*
|
26 |
-
* @return $this
|
27 |
-
*/
|
28 |
-
public function setItems($items)
|
29 |
-
{
|
30 |
-
$this->items = $items;
|
31 |
-
return $this;
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* A list of credit card resources
|
36 |
-
*
|
37 |
-
* @return \Forminator\PayPal\Api\CreditCard[]
|
38 |
-
*/
|
39 |
-
public function getItems()
|
40 |
-
{
|
41 |
-
return $this->items;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Append Items to the list.
|
46 |
-
*
|
47 |
-
* @param \Forminator\PayPal\Api\CreditCard $creditCard
|
48 |
-
* @return $this
|
49 |
-
*/
|
50 |
-
public function addItem($creditCard)
|
51 |
-
{
|
52 |
-
if (!$this->getItems()) {
|
53 |
-
return $this->setItems(array($creditCard));
|
54 |
-
} else {
|
55 |
-
return $this->setItems(
|
56 |
-
array_merge($this->getItems(), array($creditCard))
|
57 |
-
);
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Remove Items from the list.
|
63 |
-
*
|
64 |
-
* @param \Forminator\PayPal\Api\CreditCard $creditCard
|
65 |
-
* @return $this
|
66 |
-
*/
|
67 |
-
public function removeItem($creditCard)
|
68 |
-
{
|
69 |
-
return $this->setItems(
|
70 |
-
array_diff($this->getItems(), array($creditCard))
|
71 |
-
);
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Total number of items present in the given list. Note that the number of items might be larger than the records in the current page.
|
76 |
-
*
|
77 |
-
* @param int $total_items
|
78 |
-
*
|
79 |
-
* @return $this
|
80 |
-
*/
|
81 |
-
public function setTotalItems($total_items)
|
82 |
-
{
|
83 |
-
$this->total_items = $total_items;
|
84 |
-
return $this;
|
85 |
-
}
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Total number of items present in the given list. Note that the number of items might be larger than the records in the current page.
|
89 |
-
*
|
90 |
-
* @return int
|
91 |
-
*/
|
92 |
-
public function getTotalItems()
|
93 |
-
{
|
94 |
-
return $this->total_items;
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Total number of pages that exist, for the total number of items, with the given page size.
|
99 |
-
*
|
100 |
-
* @param int $total_pages
|
101 |
-
*
|
102 |
-
* @return $this
|
103 |
-
*/
|
104 |
-
public function setTotalPages($total_pages)
|
105 |
-
{
|
106 |
-
$this->total_pages = $total_pages;
|
107 |
-
return $this;
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* Total number of pages that exist, for the total number of items, with the given page size.
|
112 |
-
*
|
113 |
-
* @return int
|
114 |
-
*/
|
115 |
-
public function getTotalPages()
|
116 |
-
{
|
117 |
-
return $this->total_pages;
|
118 |
-
}
|
119 |
-
|
120 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CreditCardToken.php
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CreditCardToken
|
9 |
-
*
|
10 |
-
* A resource representing a credit card that can be used to fund a payment.
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPal\Api
|
13 |
-
*
|
14 |
-
* @property string credit_card_id
|
15 |
-
* @property string payer_id
|
16 |
-
* @property string last4
|
17 |
-
* @property string type
|
18 |
-
* @property int expire_month
|
19 |
-
* @property int expire_year
|
20 |
-
*/
|
21 |
-
class CreditCardToken extends PayPalModel
|
22 |
-
{
|
23 |
-
/**
|
24 |
-
* ID of credit card previously stored using `/vault/credit-card`.
|
25 |
-
*
|
26 |
-
* @param string $credit_card_id
|
27 |
-
*
|
28 |
-
* @return $this
|
29 |
-
*/
|
30 |
-
public function setCreditCardId($credit_card_id)
|
31 |
-
{
|
32 |
-
$this->credit_card_id = $credit_card_id;
|
33 |
-
return $this;
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* ID of credit card previously stored using `/vault/credit-card`.
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getCreditCardId()
|
42 |
-
{
|
43 |
-
return $this->credit_card_id;
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. **Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault.**
|
48 |
-
*
|
49 |
-
* @param string $payer_id
|
50 |
-
*
|
51 |
-
* @return $this
|
52 |
-
*/
|
53 |
-
public function setPayerId($payer_id)
|
54 |
-
{
|
55 |
-
$this->payer_id = $payer_id;
|
56 |
-
return $this;
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
* A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. **Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault.**
|
61 |
-
*
|
62 |
-
* @return string
|
63 |
-
*/
|
64 |
-
public function getPayerId()
|
65 |
-
{
|
66 |
-
return $this->payer_id;
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Last four digits of the stored credit card number.
|
71 |
-
*
|
72 |
-
* @param string $last4
|
73 |
-
*
|
74 |
-
* @return $this
|
75 |
-
*/
|
76 |
-
public function setLast4($last4)
|
77 |
-
{
|
78 |
-
$this->last4 = $last4;
|
79 |
-
return $this;
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Last four digits of the stored credit card number.
|
84 |
-
*
|
85 |
-
* @return string
|
86 |
-
*/
|
87 |
-
public function getLast4()
|
88 |
-
{
|
89 |
-
return $this->last4;
|
90 |
-
}
|
91 |
-
|
92 |
-
/**
|
93 |
-
* Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`. Values are presented in lowercase and not should not be used for display.
|
94 |
-
*
|
95 |
-
* @param string $type
|
96 |
-
*
|
97 |
-
* @return $this
|
98 |
-
*/
|
99 |
-
public function setType($type)
|
100 |
-
{
|
101 |
-
$this->type = $type;
|
102 |
-
return $this;
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`. Values are presented in lowercase and not should not be used for display.
|
107 |
-
*
|
108 |
-
* @return string
|
109 |
-
*/
|
110 |
-
public function getType()
|
111 |
-
{
|
112 |
-
return $this->type;
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* Expiration month with no leading zero. Acceptable values are 1 through 12.
|
117 |
-
*
|
118 |
-
* @param int $expire_month
|
119 |
-
*
|
120 |
-
* @return $this
|
121 |
-
*/
|
122 |
-
public function setExpireMonth($expire_month)
|
123 |
-
{
|
124 |
-
$this->expire_month = $expire_month;
|
125 |
-
return $this;
|
126 |
-
}
|
127 |
-
|
128 |
-
/**
|
129 |
-
* Expiration month with no leading zero. Acceptable values are 1 through 12.
|
130 |
-
*
|
131 |
-
* @return int
|
132 |
-
*/
|
133 |
-
public function getExpireMonth()
|
134 |
-
{
|
135 |
-
return $this->expire_month;
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* 4-digit expiration year.
|
140 |
-
*
|
141 |
-
* @param int $expire_year
|
142 |
-
*
|
143 |
-
* @return $this
|
144 |
-
*/
|
145 |
-
public function setExpireYear($expire_year)
|
146 |
-
{
|
147 |
-
$this->expire_year = $expire_year;
|
148 |
-
return $this;
|
149 |
-
}
|
150 |
-
|
151 |
-
/**
|
152 |
-
* 4-digit expiration year.
|
153 |
-
*
|
154 |
-
* @return int
|
155 |
-
*/
|
156 |
-
public function getExpireYear()
|
157 |
-
{
|
158 |
-
return $this->expire_year;
|
159 |
-
}
|
160 |
-
|
161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library/external/src/Forminator/PayPal/Api/CreditFinancingOffered.php
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Forminator\PayPal\Api;
|
4 |
-
|
5 |
-
use Forminator\PayPal\Common\PayPalModel;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class CreditFinancingOffered
|
9 |
-
*
|
10 |
-
* Credit financing offered to customer on PayPal side with opt-in/opt-out status
|
11 |
-
*
|
12 |
-
* @package Forminator\PayPa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|