Version Description
- Fix: Using special characters in checkbox, radio, or select field options throw a JS error.
Download this release
Release Info
Developer | alerzhus |
Plugin | Forminator Payment, Quiz and Contact Form Plugin |
Version | 1.14.12.1 |
Comparing to | |
See all releases |
Code changes from version 1.14.12 to 1.14.12.1
- admin/locale.php +46 -46
- assets/js/discount.js +5 -5
- assets/js/form-scripts.js +5 -6
admin/locale.php
CHANGED
@@ -721,26 +721,26 @@ $forminator_admin_locale = array(
|
|
721 |
"Loading preview…" => array( null, __("Loading preview…", "forminator" ), ), // src/form/components/modals/preview.js:74
|
722 |
"Publishing form…" => array( null, __("Publishing form…", "forminator" ), ), // src/form/components/modals/publish.js:18
|
723 |
"Great work! Please hold tight a few moments while we publish your form to the world." => array( null, __("Great work! Please hold tight a few moments while we publish your form to the world.", "forminator" ), ), // src/form/components/modals/publish.js:25
|
724 |
-
"Please fill required fields" => array( null, __("Please fill required fields", "forminator" ), ), // src/form/components/modals/settings.js:
|
725 |
-
"Calculation values are required!" => array( null, __("Calculation values are required!", "forminator" ), ), // src/form/components/modals/settings.js:
|
726 |
-
"Option labels are required!" => array( null, __("Option labels are required!", "forminator" ), ), // src/form/components/modals/settings.js:
|
727 |
-
"Please, connect your Stripe account first!" => array( null, __("Please, connect your Stripe account first!", "forminator" ), ), // src/form/components/modals/settings.js:
|
728 |
-
"Please, enter Stripe payment amount!" => array( null, __("Please, enter Stripe payment amount!", "forminator" ), ), // src/form/components/modals/settings.js:
|
729 |
-
"Please select an email address for payment receipt." => array( null, __("Please select an email address for payment receipt.", "forminator" ), ), // src/form/components/modals/settings.js:
|
730 |
-
"Please, select Stripe payment variable field!" => array( null, __("Please, select Stripe payment variable field!", "forminator" ), ), // src/form/components/modals/settings.js:
|
731 |
-
"Empty labels are not allowed for meta values!" => array( null, __("Empty labels are not allowed for meta values!", "forminator" ), ), // src/form/components/modals/settings.js:
|
732 |
-
"Please, connect your PayPal account first!" => array( null, __("Please, connect your PayPal account first!", "forminator" ), ), // src/form/components/modals/settings.js:
|
733 |
-
"Calculation formula is required!" => array( null, __("Calculation formula is required!", "forminator" ), ), // src/form/components/modals/settings.js:
|
734 |
-
"Limit Min value should be less than Max value." => array( null, __("Limit Min value should be less than Max value.", "forminator" ), ), // src/form/components/modals/settings.js:
|
735 |
-
"Please enter API keys." => array( null, __("Please enter API keys.", "forminator" ), ), // src/form/components/modals/settings.js:
|
736 |
-
"Please select a valid end time limit." => array( null, __("Please select a valid end time limit.", "forminator" ), ), // src/form/components/modals/settings.js:
|
737 |
-
"Please fix the Default time error." => array( null, __("Please fix the Default time error.", "forminator" ), ), // src/form/components/modals/settings.js:
|
738 |
-
"Please fix the Start or End time." => array( null, __("Please fix the Start or End time.", "forminator" ), ), // src/form/components/modals/settings.js:
|
739 |
-
"Please fix the limit Start or End date." => array( null, __("Please fix the limit Start or End date.", "forminator" ), ), // src/form/components/modals/settings.js:
|
740 |
-
"Calculations" => array( null, __("Calculations", "forminator" ), ), // src/form/components/modals/settings.js:
|
741 |
-
"Styling" => array( null, __("Styling", "forminator" ), ), // src/form/components/modals/settings.js:
|
742 |
-
"Customize" => array( null, __("Customize", "forminator" ), ), // src/form/components/modals/settings.js:
|
743 |
-
"Visibility" => array( null, __("Visibility", "forminator" ), ), // src/form/components/modals/settings.js:
|
744 |
"Shortcode has been copied successfully." => array( null, __("Shortcode has been copied successfully.", "forminator" ), ), // src/form/components/modals/shortcode.js:20
|
745 |
"Ready to go!" => array( null, __("Ready to go!", "forminator" ), ), // src/form/components/modals/shortcode.js:31
|
746 |
"Your form is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!" => array( null, __("Your form is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!", "forminator" ), ), // src/form/components/modals/shortcode.js:37
|
@@ -956,32 +956,32 @@ $forminator_admin_locale = array(
|
|
956 |
"Delete option" => array( null, __("Delete option", "forminator" ), ), // src/form/components/settings/multi-option.js:210
|
957 |
"Toggle" => array( null, __("Toggle", "forminator" ), ), // src/form/components/settings/multi-option.js:214
|
958 |
"Submission limit" => array( null, __("Submission limit", "forminator" ), ), // src/form/components/settings/multi-option.js:240
|
959 |
-
"The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer." => array( null, __("The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
960 |
-
"Whoops, only .csv filetype is allowed." => array( null, __("Whoops, only .csv filetype is allowed.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
961 |
-
"Importing this will replace your current options. Click import to continue." => array( null, __("Importing this will replace your current options. Click import to continue.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
962 |
-
"This browser doesn't seem to support the `files` property of file inputs." => array( null, __("This browser doesn't seem to support the `files` property of file inputs.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
963 |
-
"Option " => array( null, __("Option ", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
964 |
-
"Expand All" => array( null, __("Expand All", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
965 |
-
"Collapse All" => array( null, __("Collapse All", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
966 |
-
"Label; value; selection (0 or 1); image-url" => array( null, __("Label; value; selection (0 or 1); image-url", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
967 |
-
"Label; value; selection (0 or 1); submission limit" => array( null, __("Label; value; selection (0 or 1); submission limit", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
968 |
-
"Label; value; selection (0 or 1)" => array( null, __("Label; value; selection (0 or 1)", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
969 |
-
"Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution." => array( null, __("Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
970 |
-
"Options" => array( null, __("Options", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
971 |
-
"Enable Images" => array( null, __("Enable Images", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
972 |
-
"Bulk Edit" => array( null, __("Bulk Edit", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
973 |
-
"Loading" => array( null, __("Loading", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
974 |
-
"Add Option" => array( null, __("Add Option", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
975 |
-
"Enter field options (one per line)" => array( null, __("Enter field options (one per line)", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
976 |
-
"Type or paste options above (one per line and separated by semicolons) or click" => array( null, __("Type or paste options above (one per line and separated by semicolons) or click", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
977 |
-
"\"+ Predefined options\"" => array( null, __("\"+ Predefined options\"", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
978 |
-
"link to select an option." => array( null, __("link to select an option.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
979 |
-
"Example:" => array( null, __("Example:", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
980 |
-
"Import options from CSV" => array( null, __("Import options from CSV", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
981 |
-
"Upload file" => array( null, __("Upload file", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
982 |
-
"Import" => array( null, __("Import", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
983 |
-
"Choose a CSV (.csv) file to import field options and values." => array( null, __("Choose a CSV (.csv) file to import field options and values.", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
984 |
-
"Download csv template" => array( null, __("Download csv template", "forminator" ), ), // src/form/components/settings/multi-value.js:
|
985 |
"Page" => array( null, __("Page", "forminator" ), ), // src/form/components/settings/pagination-custom-text.js:15
|
986 |
"No Previous button" => array( null, __("No Previous button", "forminator" ), ), // src/form/components/settings/pagination-custom-text.js:34
|
987 |
"Previous" => array( null, __("Previous", "forminator" ), ), // src/form/components/settings/pagination-custom-text.js:42
|
721 |
"Loading preview…" => array( null, __("Loading preview…", "forminator" ), ), // src/form/components/modals/preview.js:74
|
722 |
"Publishing form…" => array( null, __("Publishing form…", "forminator" ), ), // src/form/components/modals/publish.js:18
|
723 |
"Great work! Please hold tight a few moments while we publish your form to the world." => array( null, __("Great work! Please hold tight a few moments while we publish your form to the world.", "forminator" ), ), // src/form/components/modals/publish.js:25
|
724 |
+
"Please fill required fields" => array( null, __("Please fill required fields", "forminator" ), ), // src/form/components/modals/settings.js:141
|
725 |
+
"Calculation values are required!" => array( null, __("Calculation values are required!", "forminator" ), ), // src/form/components/modals/settings.js:159
|
726 |
+
"Option labels are required!" => array( null, __("Option labels are required!", "forminator" ), ), // src/form/components/modals/settings.js:168
|
727 |
+
"Please, connect your Stripe account first!" => array( null, __("Please, connect your Stripe account first!", "forminator" ), ), // src/form/components/modals/settings.js:176
|
728 |
+
"Please, enter Stripe payment amount!" => array( null, __("Please, enter Stripe payment amount!", "forminator" ), ), // src/form/components/modals/settings.js:181
|
729 |
+
"Please select an email address for payment receipt." => array( null, __("Please select an email address for payment receipt.", "forminator" ), ), // src/form/components/modals/settings.js:186
|
730 |
+
"Please, select Stripe payment variable field!" => array( null, __("Please, select Stripe payment variable field!", "forminator" ), ), // src/form/components/modals/settings.js:191
|
731 |
+
"Empty labels are not allowed for meta values!" => array( null, __("Empty labels are not allowed for meta values!", "forminator" ), ), // src/form/components/modals/settings.js:200
|
732 |
+
"Please, connect your PayPal account first!" => array( null, __("Please, connect your PayPal account first!", "forminator" ), ), // src/form/components/modals/settings.js:208
|
733 |
+
"Calculation formula is required!" => array( null, __("Calculation formula is required!", "forminator" ), ), // src/form/components/modals/settings.js:216
|
734 |
+
"Limit Min value should be less than Max value." => array( null, __("Limit Min value should be less than Max value.", "forminator" ), ), // src/form/components/modals/settings.js:224
|
735 |
+
"Please enter API keys." => array( null, __("Please enter API keys.", "forminator" ), ), // src/form/components/modals/settings.js:231
|
736 |
+
"Please select a valid end time limit." => array( null, __("Please select a valid end time limit.", "forminator" ), ), // src/form/components/modals/settings.js:294
|
737 |
+
"Please fix the Default time error." => array( null, __("Please fix the Default time error.", "forminator" ), ), // src/form/components/modals/settings.js:297
|
738 |
+
"Please fix the Start or End time." => array( null, __("Please fix the Start or End time.", "forminator" ), ), // src/form/components/modals/settings.js:307
|
739 |
+
"Please fix the limit Start or End date." => array( null, __("Please fix the limit Start or End date.", "forminator" ), ), // src/form/components/modals/settings.js:404
|
740 |
+
"Calculations" => array( null, __("Calculations", "forminator" ), ), // src/form/components/modals/settings.js:535
|
741 |
+
"Styling" => array( null, __("Styling", "forminator" ), ), // src/form/components/modals/settings.js:555
|
742 |
+
"Customize" => array( null, __("Customize", "forminator" ), ), // src/form/components/modals/settings.js:565
|
743 |
+
"Visibility" => array( null, __("Visibility", "forminator" ), ), // src/form/components/modals/settings.js:575
|
744 |
"Shortcode has been copied successfully." => array( null, __("Shortcode has been copied successfully.", "forminator" ), ), // src/form/components/modals/shortcode.js:20
|
745 |
"Ready to go!" => array( null, __("Ready to go!", "forminator" ), ), // src/form/components/modals/shortcode.js:31
|
746 |
"Your form is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!" => array( null, __("Your form is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!", "forminator" ), ), // src/form/components/modals/shortcode.js:37
|
956 |
"Delete option" => array( null, __("Delete option", "forminator" ), ), // src/form/components/settings/multi-option.js:210
|
957 |
"Toggle" => array( null, __("Toggle", "forminator" ), ), // src/form/components/settings/multi-option.js:214
|
958 |
"Submission limit" => array( null, __("Submission limit", "forminator" ), ), // src/form/components/settings/multi-option.js:240
|
959 |
+
"The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer." => array( null, __("The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer.", "forminator" ), ), // src/form/components/settings/multi-value.js:154
|
960 |
+
"Whoops, only .csv filetype is allowed." => array( null, __("Whoops, only .csv filetype is allowed.", "forminator" ), ), // src/form/components/settings/multi-value.js:187
|
961 |
+
"Importing this will replace your current options. Click import to continue." => array( null, __("Importing this will replace your current options. Click import to continue.", "forminator" ), ), // src/form/components/settings/multi-value.js:196
|
962 |
+
"This browser doesn't seem to support the `files` property of file inputs." => array( null, __("This browser doesn't seem to support the `files` property of file inputs.", "forminator" ), ), // src/form/components/settings/multi-value.js:225
|
963 |
+
"Option " => array( null, __("Option ", "forminator" ), ), // src/form/components/settings/multi-value.js:493
|
964 |
+
"Expand All" => array( null, __("Expand All", "forminator" ), ), // src/form/components/settings/multi-value.js:549
|
965 |
+
"Collapse All" => array( null, __("Collapse All", "forminator" ), ), // src/form/components/settings/multi-value.js:550
|
966 |
+
"Label; value; selection (0 or 1); image-url" => array( null, __("Label; value; selection (0 or 1); image-url", "forminator" ), ), // src/form/components/settings/multi-value.js:565
|
967 |
+
"Label; value; selection (0 or 1); submission limit" => array( null, __("Label; value; selection (0 or 1); submission limit", "forminator" ), ), // src/form/components/settings/multi-value.js:568
|
968 |
+
"Label; value; selection (0 or 1)" => array( null, __("Label; value; selection (0 or 1)", "forminator" ), ), // src/form/components/settings/multi-value.js:570
|
969 |
+
"Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution." => array( null, __("Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution.", "forminator" ), ), // src/form/components/settings/multi-value.js:588
|
970 |
+
"Options" => array( null, __("Options", "forminator" ), ), // src/form/components/settings/multi-value.js:593
|
971 |
+
"Enable Images" => array( null, __("Enable Images", "forminator" ), ), // src/form/components/settings/multi-value.js:610
|
972 |
+
"Bulk Edit" => array( null, __("Bulk Edit", "forminator" ), ), // src/form/components/settings/multi-value.js:620
|
973 |
+
"Loading" => array( null, __("Loading", "forminator" ), ), // src/form/components/settings/multi-value.js:631
|
974 |
+
"Add Option" => array( null, __("Add Option", "forminator" ), ), // src/form/components/settings/multi-value.js:658
|
975 |
+
"Enter field options (one per line)" => array( null, __("Enter field options (one per line)", "forminator" ), ), // src/form/components/settings/multi-value.js:675
|
976 |
+
"Type or paste options above (one per line and separated by semicolons) or click" => array( null, __("Type or paste options above (one per line and separated by semicolons) or click", "forminator" ), ), // src/form/components/settings/multi-value.js:677
|
977 |
+
"\"+ Predefined options\"" => array( null, __("\"+ Predefined options\"", "forminator" ), ), // src/form/components/settings/multi-value.js:679
|
978 |
+
"link to select an option." => array( null, __("link to select an option.", "forminator" ), ), // src/form/components/settings/multi-value.js:681
|
979 |
+
"Example:" => array( null, __("Example:", "forminator" ), ), // src/form/components/settings/multi-value.js:683
|
980 |
+
"Import options from CSV" => array( null, __("Import options from CSV", "forminator" ), ), // src/form/components/settings/multi-value.js:692
|
981 |
+
"Upload file" => array( null, __("Upload file", "forminator" ), ), // src/form/components/settings/multi-value.js:700
|
982 |
+
"Import" => array( null, __("Import", "forminator" ), ), // src/form/components/settings/multi-value.js:715
|
983 |
+
"Choose a CSV (.csv) file to import field options and values." => array( null, __("Choose a CSV (.csv) file to import field options and values.", "forminator" ), ), // src/form/components/settings/multi-value.js:723
|
984 |
+
"Download csv template" => array( null, __("Download csv template", "forminator" ), ), // src/form/components/settings/multi-value.js:726
|
985 |
"Page" => array( null, __("Page", "forminator" ), ), // src/form/components/settings/pagination-custom-text.js:15
|
986 |
"No Previous button" => array( null, __("No Previous button", "forminator" ), ), // src/form/components/settings/pagination-custom-text.js:34
|
987 |
"Previous" => array( null, __("Previous", "forminator" ), ), // src/form/components/settings/pagination-custom-text.js:42
|
assets/js/discount.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=589)}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function o(){return"wrapper-"+i()+"-"+i()}function s(e,t){var n=void 0;return t.map(function(t){t.wrapper_id===e&&(n=t)}),n}function a(e,t){return"basic"!==c(e)?t:""}function l(e){return"basic"===c(e)?"basic-":""}function c(e){return void 0!==e.formDesign?e.formDesign:void 0!==e.settings&&void 0!==e.settings["forminator-poll-design"]?e.settings["forminator-poll-design"]:void 0!==e.quizDesign?e.quizDesign:""}function u(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n}function f(e,t){var n=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,i=r.split("-");"page-break"===t.type?n.push(parseInt(i[2])):n.push(parseInt(i[1]))}})});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function p(e,t){var n=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");n.push(parseInt(r[1]))});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function h(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function d(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9\/\- ]/g,"").trim(),e=e.replace(/\s+|\//g,"-")}function m(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n>0}function g(e,t){var n=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&n.push(t)})}),n}function y(e,t){var n=[];return g(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),n.push({value:t.element_id,label:r,element_id:t.element_id})}),n}function v(e,t){var n="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(n=t.field_label)})}),n}function b(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&n++})}),n>0}function x(e,t,n,r){var i=f(e.type,r);return _.extend(e,{element_id:e.type+"-"+i,formID:t,cols:n})}function w(e,t,n){var r=forminatorData.fields.find(function(t){return t.slug===e}),i=f(r.type,t);return _.extend({element_id:r.type+"-"+i,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:n},JSON.parse(JSON.stringify(r.defaults)))}function C(e){return e.type}function E(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function k(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t)))}function S(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t+1)))}function O(){return K.default.translate.apply(null,arguments)}function A(e,t){var n=_.filter(t,function(t){return t.family===e});return _.isUndefined(n[0])||_.isUndefined(n[0].variants)?[O("None")]:n[0].variants}function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}function P(e,t,n){var r=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]);var i=!1;return _.isUndefined(n)||_.isUndefined(n.main_date_field)||!0!==n.main_date_field||(i=!0),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var n=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(n=e.type,n=F(n)):n=e.field_label,"name"===e.type?r=r.concat(N(e,n)):"address"===e.type?r=r.concat(L(e,n)):"time"===e.type?r=r.concat($(e,n)):"date"===e.type&&"picker"!==e.field_type&&!1===i||r.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:n,values:M(e),hasOptions:D(e),hasCalcs:R(e),formula:T(e),isNumber:I(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(r=r.concat(j(e,n)))}})}),r}function j(e,t){var n=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+O("Day"):t+" - "+e.day_label;var i=void 0;i=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+O("Month"):t+" - "+e.month_label;var o=void 0;return o=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+O("Year"):t+" - "+e.year_label,"input"===e.field_type?n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:i,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:!1,hasOptions:!1,isNumber:!0}):n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:M(e),hasOptions:D(e),isNumber:I(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:i,values:M(e),hasOptions:D(e),isNumber:I(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:M(e),hasOptions:D(e),isNumber:I(e)}),n}function N(e,t){var n=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Mx.",value:"Mx"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var i=void 0;i=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:i,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:M(e),hasOptions:D(e),isNumber:I(e)}),n}function I(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function R(e){return"true"===e.calculations||!0===e.calculations}function T(e){return!!e.formula&&e.formula}function D(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function M(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function L(e,t){var n=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var i=void 0;i=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:i,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),n}function $(e,t){var n=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+O("Hour"):t+" - "+e.hh_label;var i=void 0;return i=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+O("Minute"):t+" - "+e.mm_label,n.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:i,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&n.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),n}function z(e){var t=[],n=forminatorData.fields.filter(function(t){return t.type===e});return n.length<1?[]:(n=n[0],_.isUndefined(n.autofill_settings)||(t=n.autofill_settings),t)}function U(e,t,n){var r=_.isUndefined(n)?"":n;switch(e){case"is":if("checkbox"===t)return O("is having");if("checkbox"!==t)return O("is");case"is_not":if("checkbox"===t)return O("is not having");if("checkbox"!==t)return O("is not");case"day_is":return O("day is");case"day_is_not":return O("day is not");case"month_is_not":return O("month is not");case"month_is":return O("month is");case"is_before":return O("is before");case"is_after":return O("is after");case"is_before_n_or_more_days":return O("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return O("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return O("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return O("is after less than %s days from current date").replace("%s",r);case"is_great":return O("is greater than");case"is_less":return O("is less than");case"contains":return O("contains");case"starts":return O("starts with");case"ends":return O("ends with");case"is_correct":return O("is correct");case"is_incorrect":return O("is incorrect");case"is_final_result":return O("is final result");case"is_not_final_result":return O("is not final result");default:return"-"}}function q(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var n=t[1],r=n.split(".");if(r.length<2)return!1;for(var i=r.length,o=0;o<i;o++)if(!r[o].match(/^[a-z0-9-]+$/i))return!1;return!0}function Y(){"object"===J(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function B(e){var t="none";return J(e["results-behav"])&&J(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function G(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),P(e,t)}function H(e,t){t=_.defaults(t,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){var t=e.params.data.element,n=jQuery(t),r=jQuery(this);r.append(n),r.trigger("change.select2")}),jQuery(this).SUIselect2(t)})}function W(e){return"name"!==e.type||"true"!==e.multiple_name&&!0!==e.multiple_name?"address"===e.type?!!(e.street_address_required||e.address_line_required||e.address_city_required||e.address_state_required||e.address_zip_required||e.address_country_required):e.required:!!(e.prefix_required||e.fname_required||e.mname_required||e.lname_required)}function V(e,t,n,r){var i=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[n]&&i++})}),i>0}function Q(e){var t=0;return e.map(function(e){e.fields.map(function(e){var n=forminatorData.postCategories[e.post_type];void 0!==n&&n.map(function(n){var r=n.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0}function X(e,t){var n=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,i){t.result===n&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}Object.defineProperty(t,"__esModule",{value:!0});var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.randNumber=i,t.generateWrapperId=o,t.getWrapper=s,t.getDefaultValue=a,t.getThemePrefix=l,t.countFieldsByType=u,t.getMaxIDByType=f,t.getMaxID=p,t.generateValue=h,t.formatValue=d,t.hasFieldType=m,t.getFieldsByType=g,t.mapFieldsByType=y,t.getFieldLabel=v,t.fieldExist=b,t.buildFieldObject=x,t.buildFieldObjectFromSlug=w,t.getFieldType=C,t.getForminatorField=E,t.insertInPosition=k,t.replaceInPosition=S,t.translate=O,t.getFontVariants=A,t.ucfirst=F,t.getFields=P,t.getDateFields=j,t.getNameFields=N,t.fieldHasNumber=I,t.fieldHasCalcs=R,t.fieldFormula=T,t.fieldHasOptions=D,t.getFieldValues=M,t.getAddressFields=L,t.getTimeFields=$,t.getFieldAutofillProviders=z,t.getRuleLabel=U,t.isEmailWp=q,t.suiDelegateEvents=Y,t.getChartType=B,t.getCalculationFields=G,t.select2Tags=H,t.isFieldRequired=W,t.hasFieldWithAttribute=V,t.hasPostdataFieldWithMultiselect=Q,t.getPersonalityQuestions=X;var Z=n(44),K=function(e){return e&&e.__esModule?e:{default:e}}(Z)},269:function(e,t,n){"use strict";e.exports=n(592)},32:function(e,t,n){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,s=255&i;o?n.push(o,s):n.push(s)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n}function i(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=l(i.toString(16))}return n}function a(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function c(e,t,n,r){var i=n-t;A(i%4==0);for(var o=new Array(i/4),s=0,a=t;s<o.length;s++,a+=4){var l;l="big"===r?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],o[s]=l>>>0}return o}function u(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function f(e,t){return e>>>t|e<<32-t}function p(e,t){return e<<t|e>>>32-t}function h(e,t){return e+t>>>0}function d(e,t,n){return e+t+n>>>0}function m(e,t,n,r){return e+t+n+r>>>0}function g(e,t,n,r,i){return e+t+n+r+i>>>0}function y(e,t,n,r){var i=e[t],o=e[t+1],s=r+o>>>0,a=(s<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=s}function v(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0}function b(e,t,n,r){return t+r>>>0}function _(e,t,n,r,i,o,s,a){var l=0,c=t;return c=c+r>>>0,l+=c<t?1:0,c=c+o>>>0,l+=c<o?1:0,c=c+a>>>0,l+=c<a?1:0,e+n+i+s+l>>>0}function x(e,t,n,r,i,o,s,a){return t+r+o+a>>>0}function w(e,t,n,r,i,o,s,a,l,c){var u=0,f=t;return f=f+r>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+a>>>0,u+=f<a?1:0,f=f+c>>>0,u+=f<c?1:0,e+n+i+s+l+u>>>0}function C(e,t,n,r,i,o,s,a,l,c){return t+r+o+a+c>>>0}function E(e,t,n){return(t<<32-n|e>>>n)>>>0}function k(e,t,n){return(e<<32-n|t>>>n)>>>0}function S(e,t,n){return e>>>n}function O(e,t,n){return(e<<32-n|t>>>n)>>>0}var A=n(46),F=n(47);t.inherits=F,t.toArray=r,t.toHex=i,t.htonl=o,t.toHex32=s,t.zero2=a,t.zero8=l,t.join32=c,t.split32=u,t.rotr32=f,t.rotl32=p,t.sum32=h,t.sum32_3=d,t.sum32_4=m,t.sum32_5=g,t.sum64=y,t.sum64_hi=v,t.sum64_lo=b,t.sum64_4_hi=_,t.sum64_4_lo=x,t.sum64_5_hi=w,t.sum64_5_lo=C,t.rotr64_hi=E,t.rotr64_lo=k,t.shr64_hi=S,t.shr64_lo=O},44:function(e,t,n){var r=n(78),i=new r;e.exports={numberFormat:i.numberFormat.bind(i),translate:i.translate.bind(i),configure:i.configure.bind(i),setLocale:i.setLocale.bind(i),getLocale:i.getLocale.bind(i),getLocaleSlug:i.getLocaleSlug.bind(i),addTranslations:i.addTranslations.bind(i),reRenderTranslations:i.reRenderTranslations.bind(i),registerComponentUpdateHook:i.registerComponentUpdateHook.bind(i),registerTranslateHook:i.registerTranslateHook.bind(i),state:i.state,stateObserver:i.stateObserver,on:i.stateObserver.on.bind(i.stateObserver),off:i.stateObserver.removeListener.bind(i.stateObserver),emit:i.stateObserver.emit.bind(i.stateObserver),localize:n(92)(i),$this:i,I18N:r}},45:function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?d=h.concat(d):g=-1,d.length&&a())}function a(){if(!m){var e=i(s);m=!0;for(var t=d.length;t;){for(h=d,d=[];++g<t;)h&&h[g].run();g=-1,t=d.length}h=null,m=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,f,p=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var h,d=[],m=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||m||i(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},46:function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},47:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},48:function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,a,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,l=0;l<i;l++)c[l].apply(this,a);return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){i=a;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},49:function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},50:function(e,t,n){"use strict";function r(e,t,n,r,o,s,a,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,s,a,l],f=0;c=new Error(t.replace(/%s/g,function(){return u[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var i=function(e){};e.exports=r},51:function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function i(e,t){var n=I(e)||h(e)?r(e.length,String):[],i=n.length,o=!!i;for(var s in e)!t&&!O.call(e,s)||o&&("length"==s||c(s,i))||n.push(s);return n}function o(e,t,n){var r=e[t];O.call(e,t)&&p(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function s(e){if(!f(e))return P(e);var t=[];for(var n in Object(e))O.call(e,n)&&"constructor"!=n&&t.push(n);return t}function a(e,t){return t=j(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=j(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=s,n(e,this,a)}}function l(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;o(n,a,void 0===l?e[a]:l)}return n}function c(e,t){return!!(t=null==t?x:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function u(e,t,n){if(!v(n))return!1;var r=typeof t;return!!("number"==r?d(n)&&c(t,n.length):"string"==r&&t in n)&&p(n[t],e)}function f(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||S)}function p(e,t){return e===t||e!==e&&t!==t}function h(e){return m(e)&&O.call(e,"callee")&&(!F.call(e,"callee")||A.call(e)==w)}function d(e){return null!=e&&y(e.length)&&!g(e)}function m(e){return b(e)&&d(e)}function g(e){var t=v(e)?A.call(e):"";return t==C||t==E}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=x}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return!!e&&"object"==typeof e}function _(e){return d(e)?i(e):s(e)}var x=9007199254740991,w="[object Arguments]",C="[object Function]",E="[object GeneratorFunction]",k=/^(?:0|[1-9]\d*)$/,S=Object.prototype,O=S.hasOwnProperty,A=S.toString,F=S.propertyIsEnumerable,P=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),j=Math.max,N=!F.call({valueOf:1},"valueOf"),I=Array.isArray,R=function(e){return a(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&u(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}(function(e,t){if(N||f(t)||d(t))return void l(t,_(t),e);for(var n in t)O.call(t,n)&&o(e,n,t[n])});e.exports=R},589:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=r(l),u=n(44),f=r(u),p=n(1),h=n(590);f.default.setLocale(forminatorl10n.locale),window.jQueryFormi=jQuery.noConflict();var d=function(e){function t(e){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return s(t,e),a(t,[{key:"render",value:function(){return c.default.createElement(h.NoticeDiscount,{title:(0,p.translate)("Don't Miss Out On Subscription / Recurring Payment Support"),disclaimer:(0,p.translate)("Don't worry, only admin users can see this message"),price:60,discount:35,image:forminatorData.imagesUrl+"/forminator-create-modal.png",imageRetina:forminatorData.imagesUrl+"/forminator-create-modal@2x.png",buttonLabel:(0,p.translate)("Get 35% OFF Forminator Pro"),buttonLink:"https://wpmudev.com/project/forminator-pro/?coupon=FORMINATOR-SUBSCRIPTIONS&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_subscriptions_banner",onCloseClick:function(e){return FORMI.dismissNotice(e)},priceLabel:(0,p.translate)("Pay only"),priceTime:(0,p.translate)("year")},c.default.createElement("p",null,(0,p.translate)("Subscription Payments, our most anticipated Pro feature, is coming soon in v1.15! Upgrade now and get 35% OFF all annual plans.")))}}]),t}(l.Component);ReactDOM.render(c.default.createElement(d,null),document.getElementById("app"))},590:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?p(e):t}function d(e){var t=f();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function _(e,t){if(null==e)return{};var n,r,i=b(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"NoticeDiscount",function(){return Q});var x,w,C,E,k,S,O,A,F,P,j,N=n(0),I=n.n(N),R=n(591),T=function(e){var t=e.label,n=e.icon,r=e.design,i=void 0===r?"solid":r,o=e.color,s=e.className,a=e.loading,l=_(e,["label","icon","design","color","className","loading"]),c=I.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),u=I.a.createElement(I.a.Fragment,null,n&&""!==n&&I.a.createElement("span",{className:"sui-icon-"+n,"aria-hidden":"true"}),t);switch(s="sui-button".concat(s?" "+s:""),o){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":s+=" sui-button-"+o;break;case"gray":default:s+=""}switch(i){case"ghost":case"outlined":s+=" sui-button-"+i;break;case"solid":default:s+=""}a&&(s+=" sui-button-onload");var f="button";return l.href?f="a":l.htmlFor&&(f="label"),I.a.createElement(f,v({className:s,disabled:l.disabled||a},l),a?c:u)},D={mobile:480,tablet:783,laptop:1200,desktop:1500},M={mobile:"(min-width: ".concat(D.mobile,"px)"),tablet:"(min-width: ".concat(D.tablet,"px)"),laptop:"(min-width: ".concat(D.laptop,"px)"),desktop:"(min-width: ".concat(D.desktop,"px)")},L=R.a.div(x||(x=m(["\n\toverflow: hidden;\n\tdisplay: block;\n\tborder-radius: 4px;\n\tbackground-color: #fff;\n"]))),$=R.a.div(w||(w=m(["\n\tdisplay: flex;\n\tflex-flow: row wrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\tbackground-color: #8D00B1;\n\n\t.sui-button-icon {\n\t\tflex: 0 0 auto;\n\t\tmargin: 16px 20px !important;\n\n\t\t&:only-child {\n\t\t\tmargin-left: auto !important;\n\t\t}\n\t}\n"]))),z=R.a.div(C||(C=m(['\n\tflex: 0 0 auto;\n\tposition: relative;\n\tmargin: 12px 0;\n\tpadding: 10px 23px 10px 15px;\n\tbackground-color: #FECF2F;\n\tcolor: #000;\n\tfont-size: 13px;\n\tline-height: 18px;\n\tfont-weight: bold;\n\tletter-spacing: normal;\n\n\t&:after {\n\t\tcontent: " ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tborder-width: 19px 12px;\n\t\tborder-style: solid;\n\t\tborder-color: #FECF2F;\n\t\tborder-right-color: #8D00B1;\n\t\tborder-left-width: 0;\n\t}\n\n\t@media '," {\n\t\tpadding-right: 25px;\n\t\tfont-size: 14px;\n\t}\n"])),M.tablet),U=R.a.h2(E||(E=m(["\n\tmin-width: 1px;\n\tflex: 1;\n\tmargin: 0 20px !important;\n\tpadding: 11px 0 !important;\n\tborder: 0 !important;\n\tcolor: #fff !important;\n\tfont-size: 13px !important;\n\tline-height: 21px !important;\n\tfont-weight: bold !important;\n\tletter-spacing: normal !important;\n\n\t& + & .sui-button-icon {\n\t\tmargin-left: 0 !important;\n\t}\n\n\t@media "," {\n\t\tpadding: 20px 0 21px !important;\n\t\tfont-size: 16px !important;\n\t}\n"])),M.tablet),q=R.a.div(k||(k=m(["\n\ttext-align: center;\n\n\t@media "," {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t}\n"])),M.tablet),Y=R.a.img(S||(S=m(["\n\tdisplay: none;\n\tflex: 0 0 auto;\n\talign-self: flex-end;\n\tmargin: 0 10px;\n\tpadding: 0 30px;\n\n\t+ div {\n\n\t\t@media "," {\n\t\t\tpadding-left: 0 !important;\n\t\t}\n\t}\n\n\t@media "," {\n\t\tdisplay: block;\n\t}\n"])),M.tablet,M.tablet),B=R.a.div(O||(O=m(["\n\tmin-width: 1px;\n\tflex: 1;\n\tpadding: 20px 20px 10px;\n\n\tp {\n\t\tmargin: 12px 0 0 !important;\n\t\tcolor: #666 !important;\n\t\tfont-size: 13px !important;\n\t\tline-height: 22px !important;\n\n\t\t&:first-child {\n\t\t\tmargin: 0 !important;\n\t\t}\n\n\t\t&.sui-disclaimer {\n\t\t\tdisplay: none;\n\t\t\tcolor: #888 !important;\n\n\t\t\t@media "," {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t@media "," {\n\t\tpadding: 30px;\n\t\ttext-align: left;\n\t}\n"])),M.tablet,M.tablet),G=R.a.div(A||(A=m(["\n\tdisplay: none;\n\talign-self: stretch;\n\tpadding: 30px 0;\n\n\tspan {\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tbackground-color: #DDD;\n\t}\n\n\t@media "," {\n\t\tdisplay: block;\n\t}\n"])),M.tablet),H=R.a.div(F||(F=m(["\n\tdisplay: block;\n\tpadding: 10px 20px 30px;\n\ttext-align: center;\n\n\t.sui-button {\n\t\tmargin-top: 15px !important;\n\t\tmargin-right: 0 !important;\n\t}\n\n\t.sui-disclaimer {\n\t\tmargin: 20px 0 0 !important;\n\t\tcolor: #888 !important;\n\t\tfont-size: 13px !important;\n\t\tline-height: 22px !important;\n\n\t\t@media "," {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t@media "," {\n\t\tpadding: 12px 30px 20px;\n\t}\n"])),M.tablet,M.tablet),W=R.a.h3(P||(P=m(["\n\tcolor: #666 !important;\n\tfont-size: 12px !important;\n\tline-height: 16px !important;\n\tfont-weight: 400 !important;\n\tletter-spacing: -0.23px !important;\n\n\t@media "," {\n\t\ttext-transform: uppercase;\n\t}\n"])),M.tablet),V=R.a.p(j||(j=m(["\n\tmargin: 0 !important;\n\tcolor: #333 !important;\n\tfont-size: 15px !important;\n\tline-height: 40px !important;\n\tletter-spacing: -0.27px !important;\n\n\tspan {\n\t\tmargin-right: 6px;\n\t\tcolor: #FF6D6D;\n\t\tfont-size: 18px;\n\t\tfont-weight: bold;\n\t\ttext-decoration: line-through;\n\t\tletter-spacing: -0.32px;\n\t}\n\n\tstrong {\n\t\tfont-size: 28px;\n\t\tfont-weight: bold;\n\t\tletter-spacing: -0.5px;\n\t}\n"]))),Q=function(e){function t(e){var i;return r(this,t),i=n.call(this,e),s(p(i),"closeButtonClicked",function(e){i.hideComponent(e),i.props.onCloseClick(e)}),s(p(i),"hideComponent",function(e){var t=e.currentTarget.closest(".sui-notice-offer"),n=new Event("noticeOfferClosed");t.dispatchEvent(n),t.remove()}),i.closeButtonClicked=i.closeButtonClicked.bind(p(i)),i.hideComponent=i.hideComponent.bind(p(i)),i}l(t,e);var n=d(t);return o(t,[{key:"render",value:function(){var e=this,t=this.props.title,n=this.props.price,r=this.props.discount,i=this.props.image,o=this.props.imageRetina,s=this.props.disclaimer,l=this.props.buttonLabel,c=this.props.buttonLink,u=n-r/100*n,f=u.toFixed(0),p=null!==r&&""!==r&&0!==r||r>0,h=null!==i&&""!==i,d=null!==o&&""!==o,m=null!==s&&""!==s,g=null!==l&&""!==l,y=null!==c&&""!==c,v=g&&y;return I.a.createElement(L,a({className:"sui-notice-offer"},this.props),I.a.createElement($,null,p&&I.a.createElement(z,null,r,"% Off"),null!==t&&""!==t&&I.a.createElement(U,null,t),I.a.createElement("button",{className:"sui-button-icon sui-button-white",onClick:function(t){return e.closeButtonClicked(t)}},I.a.createElement("span",{className:"sui-icon-close sui-sm","aria-hidden":"true"}),I.a.createElement("span",{className:"sui-screen-reader-text"},"Close this offer"))),I.a.createElement(q,null,h&&!d&&I.a.createElement(Y,{src:i,alt:"","aria-hidden":"true"}),h&&d&&I.a.createElement(Y,{src:i,srcSet:i+" 1x,"+o+" 2x",alt:"","aria-hidden":"true"}),I.a.createElement(B,null,this.props.children,m&&I.a.createElement("p",{className:"sui-disclaimer"},"* ",s)),I.a.createElement(G,null,I.a.createElement("span",null)),I.a.createElement(H,null,void 0!==this.props.priceLabel&&""!==this.props.priceLabel&&I.a.createElement(W,null,this.props.priceLabel),p?I.a.createElement(V,null,I.a.createElement("span",null,"$",n),I.a.createElement("strong",null,"$",f),"/",this.props.priceTime||"month"):I.a.createElement(V,null,I.a.createElement("strong",null,"$",n),"/",this.props.priceTime||"month"),v&&I.a.createElement(T,{label:l,color:"purple",href:c,target:"_blank"}),m&&I.a.createElement("p",{className:"sui-disclaimer"},"* ",s," *"))))}}]),t}(N.Component)},591:function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return"function"==typeof e}function o(e){return e.displayName||e.name||"Component"}function s(e){return e&&"string"==typeof e.styledComponentId}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}function l(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=oe(t%52)+n;return(oe(t%52)+n).replace(ie,"$1-$2")}function c(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(i(n)&&!s(n))return!1}return!0}function u(e){function t(e,t,s,a){void 0===a&&(a="&");var l=e.replace(ue,""),c=t&&s?s+" "+t+" { "+l+" }":l;return n=a,r=t,i=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),p(s||!t?"":t,c)}var n,r,i,o,s=void 0===e?T:e,l=s.options,c=void 0===l?T:l,u=s.plugins,f=void 0===u?R:u,p=new O.a(c),h=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,s,a,l,c,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),m=function(e,t,i){return 0===t&&-1!==fe.indexOf(i[r.length])||i.match(o)?e:"."+n};return p.use([].concat(f,[function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(r)>0&&(n[0]=n[0].replace(i,m))},d,function(e){if(-2===e){var t=h;return h=[],t}}])),t.hash=f.length?f.reduce(function(e,t){return t.name||a(15),se(e,t.name)},5381).toString():"",t}function f(){return Object(C.useContext)(pe)||de}function p(){return Object(C.useContext)(he)||me}function h(e){var t=Object(C.useState)(e.stylisPlugins),n=t[0],r=t[1],i=f(),o=Object(C.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(C.useMemo)(function(){return u({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return Object(C.useEffect)(function(){S()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]),E.a.createElement(pe.Provider,{value:o},E.a.createElement(he.Provider,{value:s},e.children))}function d(e){return ye.test(e)?e.replace(ve,_e).replace(be,"-ms-"):e}function m(e,t,n,r){if(Array.isArray(e)){for(var o,a=[],l=0,c=e.length;l<c;l+=1)""!==(o=m(e[l],t,n,r))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}if(xe(e))return"";if(s(e))return"."+e.styledComponentId;if(i(e)){if("function"!=typeof(f=e)||f.prototype&&f.prototype.isReactComponent||!t)return e;var u=e(t);return m(u,t,n,r)}var f;return e instanceof ge?n?(e.inject(n,r),e.getName(r)):e:I(e)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!xe(t[a])&&(I(t[a])?s.push.apply(s,e(t[a],a)):i(t[a])?s.push(d(a)+":",t[a],";"):s.push(d(a)+": "+(r=a,null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in A.a?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i(e)||I(e)?m(N(R,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:m(N(e,n))}function y(e){return e.replace(Ce,"-").replace(Ee,"")}function v(e){return"string"==typeof e&&!0}function b(e,t,n){var r=e[n];Se(t)&&Se(r)?_(r,t):e[n]=t}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var s=o[i];if(Se(s))for(var a in s)Oe(a)&&b(e,s[a],a)}return e}function x(e,t,n){var a=s(e),l=!v(e),c=t.attrs,u=void 0===c?R:c,h=t.componentId,d=void 0===h?function(e,t){var n="string"!=typeof e?"sc":y(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+ke("5.2.3"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):h,m=t.displayName,g=void 0===m?function(e){return v(e)?"styled."+e:"Styled("+o(e)+")"}(e):m,b=t.displayName&&t.componentId?y(t.displayName)+"-"+t.componentId:t.componentId||d,w=a&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,k=t.shouldForwardProp;a&&e.shouldForwardProp&&(k=t.shouldForwardProp?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var S,O=new ce(n,b,a?e.componentStyle:void 0),A=O.isStatic&&0===u.length,P=function(e,t){return function(e,t,n,o){var s=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,h=e.styledComponentId,d=e.target,m=function(e,t,n){void 0===e&&(e=T);var o=r({},t,{theme:e}),s={};return n.forEach(function(e){var t,n,r,a=e;for(t in i(a)&&(a=a(o)),a)o[t]=s[t]="className"===t?(n=s[t],r=a[t],n&&r?n+" "+r:n||r):a[t]}),[o,s]}(we(t,Object(C.useContext)(Ae),l)||T,t,s),g=m[0],y=m[1],b=function(e,t,n,r){var i=f(),o=p(),s=t?e.generateAndInjectStyles(T,i,o):e.generateAndInjectStyles(n,i,o);return s}(a,o,g),_=n,x=y.$as||t.$as||y.as||t.as||d,w=v(x),E=y!==t?r({},t,{},y):t,k={};for(var S in E)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?k.as=E[S]:(u?u(S,F.a):!w||Object(F.a)(S))&&(k[S]=E[S]));return t.style&&y.style!==t.style&&(k.style=r({},t.style,{},y.style)),k.className=Array.prototype.concat(c,h,b!==h?b:null,t.className,y.className).filter(Boolean).join(" "),k.ref=_,Object(C.createElement)(x,k)}(S,e,t,A)};return P.displayName=g,(S=E.a.forwardRef(P)).attrs=w,S.componentStyle=O,S.displayName=g,S.shouldForwardProp=k,S.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):R,S.styledComponentId=b,S.target=a?e.target:e,S.withComponent=function(e){var i=t.componentId,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),a=i&&i+"-"+(v(e)?e:y(o(e)));return x(e,r({},s,{attrs:w,componentId:a}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?_({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},l&&j()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var w=n(269),C=(n.n(w),n(0)),E=n.n(C),k=n(593),S=n.n(k),O=n(594),A=n(595),F=n(596),P=n(598),j=n.n(P),N=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},I=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(w.typeOf)(e)},R=Object.freeze([]),T=Object.freeze({}),D=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",M="undefined"!=typeof window&&"HTMLElement"in window,L=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),$=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&a(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),l=0,c=t.length;l<c;l++)this.tag.insertRule(s,t[l])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),z=new Map,U=new Map,q=1,Y=function(e){if(z.has(e))return z.get(e);for(;U.has(q);)q++;var t=q++;return z.set(e,t),U.set(t,e),t},B=function(e){return U.get(e)},G=function(e,t){z.set(e,t),U.set(t,e)},H="style["+D+'][data-styled-version="5.2.3"]',W=new RegExp("^"+D+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),V=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},Q=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var s=n[i].trim();if(s){var a=s.match(W);if(a){var l=0|parseInt(a[1],10),c=a[2];0!==l&&(G(c,l),V(e,c,a[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},X=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},J=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(D))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(D,"active"),r.setAttribute("data-styled-version","5.2.3");var s=X();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},Z=function(){function e(e){var t=this.element=J(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}a(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),K=function(){function e(e){var t=this.element=J(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ee=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),te=M,ne={isServer:!M,useCSSOMInjection:!L},re=function(){function e(e,t,n){void 0===e&&(e=T),void 0===t&&(t={}),this.options=r({},ne,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&M&&te&&(te=!1,function(e){for(var t=document.querySelectorAll(H),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(D)&&(Q(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Y(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new ee(i):r?new Z(i):new K(i),new $(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Y(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Y(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Y(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=B(i);if(void 0!==o){var s=e.names.get(o),a=t.getGroup(i);if(void 0!==s&&0!==a.length){var l=D+".g"+i+'[id="'+o+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+a+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),ie=/(a)(d)/gi,oe=function(e){return String.fromCharCode(e+(e>25?39:97))},se=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ae=function(e){return se(5381,e)},le=ae("5.2.3"),ce=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&c(e),this.componentId=t,this.baseHash=se(le,t),this.baseStyle=n,re.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=m(this.rules,e,t,n).join(""),s=l(se(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,s)){var a=n(o,"."+s,void 0,r);t.insertRules(r,s,a)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=se(this.baseHash,n.hash),f="",p=0;p<c;p++){var h=this.rules[p];if("string"==typeof h)f+=h;else if(h){var d=m(h,e,t,n),g=Array.isArray(d)?d.join(""):d;u=se(u,g+p),f+=g}}if(f){var y=l(u>>>0);if(!t.hasNameForId(r,y)){var v=n(f,"."+y,void 0,r);t.insertRules(r,y,v)}i.push(y)}}return i.join(" ")},e}(),ue=/^\s*\/\/.*$/gm,fe=[":","[",".","#"],pe=E.a.createContext(),he=(pe.Consumer,E.a.createContext()),de=(he.Consumer,new re),me=u(),ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=me);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return a(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=me),this.name+e.hash},e}(),ye=/([A-Z])/,ve=/([A-Z])/g,be=/^ms-/,_e=function(e){return"-"+e.toLowerCase()},xe=function(e){return null==e||!1===e||""===e},we=(new Set,function(e,t,n){return void 0===n&&(n=T),e.theme!==n.theme&&e.theme||t||n.theme}),Ce=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g,ke=function(e){return l(ae(e)>>>0)},Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e},Ae=E.a.createContext(),Fe=(Ae.Consumer,{}),Pe=function(e){return function e(t,n,i){if(void 0===i&&(i=T),!Object(w.isValidElementType)(n))return a(1,String(n));var o=function(){return t(n,i,g.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,r({},i,{},o))},o.attrs=function(o){return e(t,n,r({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},o}(x,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Pe[e]=Pe(e)});(function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=c(e),re.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(m(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&re.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}})(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=X();return"<style "+[n&&'nonce="'+n+'"',D+'="true"','data-styled-version="5.2.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?a(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return a(2);var n=((t={})[D]="",t["data-styled-version"]="5.2.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=X();return i&&(n.nonce=i),[E.a.createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new re({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?a(2):E.a.createElement(h,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return a(3)}}();t.a=Pe}).call(t,n(45))},592:function(e,t,n){"use strict";function r(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case h:case d:case l:case u:case c:case g:return e;default:switch(e=e&&e.$$typeof){case p:case m:case b:case v:case f:return e;default:return t}}case a:return t}}}function i(e){return r(e)===d}/** @license React v16.13.1
|
2 |
* react-is.production.min.js
|
3 |
*
|
4 |
* Copyright (c) Facebook, Inc. and its affiliates.
|
@@ -6,22 +6,22 @@
|
|
6 |
* This source code is licensed under the MIT license found in the
|
7 |
* LICENSE file in the root directory of this source tree.
|
8 |
*/
|
9 |
-
var o="function"==typeof Symbol&&Symbol.for,s=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.suspense_list"):60120,v=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,_=o?Symbol.for("react.block"):60121,x=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,C=o?Symbol.for("react.scope"):60119;t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=p,t.ContextProvider=f,t.Element=s,t.ForwardRef=m,t.Fragment=l,t.Lazy=b,t.Memo=v,t.Portal=a,t.Profiler=u,t.StrictMode=c,t.Suspense=g,t.isAsyncMode=function(e){return i(e)||r(e)===h},t.isConcurrentMode=i,t.isContextConsumer=function(e){return r(e)===p},t.isContextProvider=function(e){return r(e)===f},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return r(e)===m},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===b},t.isMemo=function(e){return r(e)===v},t.isPortal=function(e){return r(e)===a},t.isProfiler=function(e){return r(e)===u},t.isStrictMode=function(e){return r(e)===c},t.isSuspense=function(e){return r(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===u||e===c||e===g||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===f||e.$$typeof===p||e.$$typeof===m||e.$$typeof===x||e.$$typeof===w||e.$$typeof===C||e.$$typeof===_)},t.typeOf=r},593:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!a(c))return!1;var u=e[c],f=t[c];if(!1===(i=n?n.call(r,u,f,c):void 0)||void 0===i&&u!==f)return!1}return!0}},594:function(e,t,n){"use strict";function r(e){function t(e,r,l,c,u){for(var h,d,m,g,y,x=0,C=0,E=0,k=0,S=0,O=0,I=m=h=0,T=0,M=0,L=0,$=0,z=l.length,U=z-1,q="",Y="",B="",G="";T<z;){if(d=l.charCodeAt(T),T===U&&0!==C+k+E+x&&(0!==C&&(d=47===C?10:47),k=E=x=0,z++,U++),0===C+k+E+x){if(T===U&&(0<M&&(q=q.replace(p,"")),0<q.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(T)}d=59}switch(d){case 123:for(q=q.trim(),h=q.charCodeAt(0),m=1,$=++T;T<z;){switch(d=l.charCodeAt(T)){case 123:m++;break;case 125:m--;break;case 47:switch(d=l.charCodeAt(T+1)){case 42:case 47:e:{for(I=T+1;I<U;++I)switch(l.charCodeAt(I)){case 47:if(42===d&&42===l.charCodeAt(I-1)&&T+2!==I){T=I+1;break e}break;case 10:if(47===d){T=I+1;break e}}T=I}}break;case 91:d++;case 40:d++;case 34:case 39:for(;T++<U&&l.charCodeAt(T)!==d;);}if(0===m)break;T++}switch(m=l.substring($,T),0===h&&(h=(q=q.replace(f,"").trim()).charCodeAt(0)),h){case 64:switch(0<M&&(q=q.replace(p,"")),d=q.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=N}if(m=t(r,M,m,d,u+1),$=m.length,0<R&&(M=n(N,q,L),y=a(3,m,M,r,F,A,$,d,u,c),q=M.join(""),void 0!==y&&0===($=(m=y.trim()).length)&&(d=0,m="")),0<$)switch(d){case 115:q=q.replace(w,s);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:q=q.replace(v,"$1 $2"),m=q+"{"+m+"}",m=1===j||2===j&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===c&&(Y+=m,m="")}else m="";break;default:m=t(r,n(r,q,L),m,c,u+1)}B+=m,m=L=M=I=h=0,q="",d=l.charCodeAt(++T);break;case 125:case 59:if(q=(0<M?q.replace(p,""):q).trim(),1<($=q.length))switch(0===I&&(45===(h=q.charCodeAt(0))||96<h&&123>h)&&($=(q=q.replace(" ",":")).length),0<R&&void 0!==(y=a(1,q,r,e,F,A,Y.length,c,u,c))&&0===($=(q=y.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),d=q.charCodeAt(1),h){case 0:break;case 64:if(105===d||99===d){G+=q+l.charAt(T);break}default:58!==q.charCodeAt($-1)&&(Y+=i(q,h,d,q.charCodeAt(2)))}L=M=I=h=0,q="",d=l.charCodeAt(++T)}}switch(d){case 13:case 10:47===C?C=0:0===1+h&&107!==c&&0<q.length&&(M=1,q+="\0"),0<R*D&&a(0,q,r,e,F,A,Y.length,c,u,c),A=1,F++;break;case 59:case 125:if(0===C+k+E+x){A++;break}default:switch(A++,g=l.charAt(T),d){case 9:case 32:if(0===k+x+C)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+C+x&&(M=L=1,g="\f"+g);break;case 108:if(0===k+C+x+P&&0<I)switch(T-I){case 2:112===S&&58===l.charCodeAt(T-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===k+C+x&&(I=T);break;case 44:0===C+E+k+x&&(M=1,g+="\r");break;case 34:case 39:0===C&&(k=k===d?0:0===k?d:k);break;case 91:0===k+C+E&&x++;break;case 93:0===k+C+E&&x--;break;case 41:0===k+C+x&&E--;break;case 40:if(0===k+C+x){if(0===h)switch(2*S+3*O){case 533:break;default:h=1}E++}break;case 64:0===C+E+k+x+I+m&&(m=1);break;case 42:case 47:if(!(0<k+x+E))switch(C){case 0:switch(2*d+3*l.charCodeAt(T+1)){case 235:C=47;break;case 220:$=T,C=42}break;case 42:47===d&&42===S&&$+2!==T&&(33===l.charCodeAt($+2)&&(Y+=l.substring($,T+1)),g="",C=0)}}0===C&&(q+=g)}O=S,S=d,T++}if(0<($=Y.length)){if(M=r,0<R&&void 0!==(y=a(2,Y,M,e,F,A,$,c,u,c))&&0===(Y=y).length)return G+Y+B;if(Y=M.join(",")+"{"+Y+"}",0!=j*P){switch(2!==j||o(Y,2)||(P=0),P){case 111:Y=Y.replace(_,":-moz-$1")+Y;break;case 112:Y=Y.replace(b,"::-webkit-input-$1")+Y.replace(b,"::-moz-$1")+Y.replace(b,":-ms-input-$1")+Y}P=0}}return G+Y+B}function n(e,t,n){var i=t.trim().split(g);t=i;var o=i.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<o;++a)t[a]=r(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<o;++a)for(var c=0;c<s;++c)t[l++]=r(e[c]+" ",i[a],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var s=e+";",a=2*t+3*n+4*r;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===j||2===j&&o(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(O,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return d.test(s)?s.replace(h,":-webkit-")+s.replace(h,":-moz-")+s:s;case 1e3:switch(l=s.substring(13).trim(),t=l.indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(x,"tb");break;case 232:l=s.replace(x,"tb-rl");break;case 220:l=s.replace(x,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim(),a=l.charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(k,"$1"),n,t)}function s(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,s,a,l,c){for(var f,p=0,h=t;p<R;++p)switch(f=I[p].call(u,e,h,n,r,i,o,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){switch(e){case void 0:case null:R=I.length=0;break;default:if("function"==typeof e)I[R++]=e;else if("object"==typeof e)for(var t=0,n=e.length;t<n;++t)l(e[t]);else D=0|!!e}return l}function c(e){return e=e.prefix,void 0!==e&&(T=null,e?"function"!=typeof e?j=1:(j=2,T=e):j=0),c}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),M=r,r=[M],0<R){var i=a(-1,n,r,r,F,A,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(N,r,n,0,0);return 0<R&&void 0!==(i=a(-2,o,r,r,F,A,o.length,0,0,0))&&(o=i),M="",P=0,A=F=1,o}var f=/^\0+/g,p=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,_=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,E=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,A=1,F=1,P=0,j=1,N=[],I=[],R=0,T=null,D=0,M="";return u.use=l,u.set=c,void 0!==e&&c(e),u}t.a=r},595:function(e,t,n){"use strict";var r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};t.a=r},596:function(e,t,n){"use strict";var r=n(597),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=Object(r.a)(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});t.a=o},597:function(e,t,n){"use strict";function r(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}t.a=r},598:function(e,t,n){"use strict";function r(e){return o.isMemo(e)?c:u[e.$$typeof]||s}function i(e,t,n){if("string"!=typeof t){if(g){var o=m(t);o&&o!==g&&i(e,o,n)}var s=p(t);h&&(s=s.concat(h(t)));for(var l=r(e),c=r(t),u=0;u<s.length;++u){var y=s[u];if(!(a[y]||n&&n[y]||c&&c[y]||l&&l[y])){var v=d(t,y);try{f(e,y,v)}catch(e){}}}}return e}var o=n(269),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[o.ForwardRef]=l,u[o.Memo]=c;var f=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;e.exports=i},78:function(e,t,n){function r(){c.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function i(e){return Array.prototype.slice.call(e)}function o(e){var t,n=e[0],o={};for(("string"!=typeof n||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",i(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof n&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",i(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(o=e[t]);if("string"==typeof n?o.original=n:"object"==typeof o.original&&(o.plural=o.original.plural,o.count=o.original.count,o.original=o.original.single),"string"==typeof e[1]&&(o.plural=e[1]),void 0===o.original)throw new Error("Translate called without a `string` value as first argument.");return o}function s(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}function a(e,t){var n,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),n=s(r,t),e[r].apply(e,n)}function l(e,t){var n,r;for(n=v.length-1;n>=0;n--)if(r=v[n](g({},t)),e.state.locale[r.original])return a(e.state.jed,r);return null}function c(){if(!(this instanceof c))return new c;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:m({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new h,this.stateObserver.setMaxListeners(0),this.configure()}var u=n(79)("i18n-wp-plugin"),f=n(82),p=n(83),h=n(48).EventEmitter,d=n(86).default,m=n(90),g=n(51),y=n(91),v=[function(e){return e}],b={};c.throwErrors=!1,c.prototype.numberFormat=function(e){var t=arguments[1]||{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return y(e,n,r,i)},c.prototype.configure=function(e){g(this,e||{}),this.setLocale()},c.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,n,r,i=e[""]["key-hash"],s=function(e,t){const n=!1===t?"":String(t);if(void 0!==b[n+e])return b[n+e];var r=p().update(e).digest("hex");return b[n+e]=t?r.substr(0,t):r},l=function(e){return function(t){return t.context?(t.original=s(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=s(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)v.push(l(!1));else{var c=i.substr(5).indexOf("-");if(c<0)t=Number(i.substr(5)),v.push(l(t));else for(n=Number(i.substr(5,c)),r=Number(i.substr(6+c)),t=n;t<=r;t++)v.push(l(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;g(this.state.locale,e)}else this.state.locale=g({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new f({locale_data:{messages:this.state.locale}}),this.state.numberFormatSettings.decimal_point=a(this.state.jed,o(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=a(this.state.jed,o(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},c.prototype.getLocale=function(){return this.state.locale},c.prototype.getLocaleSlug=function(){return this.state.localeSlug},c.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},c.prototype.hasTranslation=function(){return!!l(this,o(arguments))},c.prototype.translate=function(){var e,t,n,r,i,s;if(e=o(arguments),s=!e.components){try{i=JSON.stringify(e)}catch(e){s=!1}if(i&&(t=this.state.translations.get(i)))return t}if(t=l(this,e),t||(t=a(this.state.jed,e)),e.args){n=Array.isArray(e.args)?e.args.slice(0):[e.args],n.unshift(t);try{t=f.sprintf.apply(f,n)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=d({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(n){t=n(t,e)}),s&&this.state.translations.set(i,t),t},c.prototype.reRenderTranslations=function(){u("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},c.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},c.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},e.exports=c},79:function(e,t,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function l(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(80),t.log=s,t.formatArgs=o,t.save=a,t.load=l,t.useColors=i,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(l())}).call(t,n(45))},80:function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function i(e){function n(){if(n.enabled){var e=n,r=+new Date,o=r-(i||r);e.diff=o,e.prev=i,e.curr=r,i=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var i=t.formatters[r];if("function"==typeof i){var o=s[l];n=i.call(e,o),s.splice(l,1),l--}return n}),t.formatArgs.call(e,s);(n.log||t.log||console.log.bind(console)).apply(e,s)}}var i;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=o,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function s(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}}function a(){t.enable("")}function l(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=i.debug=i.default=i,t.coerce=c,t.disable=a,t.enable=s,t.enabled=l,t.humanize=n(81),t.instances=[],t.names=[],t.skips=[],t.formatters={}},81:function(e,t){function n(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=l?Math.round(e/l)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return o(e,c,"day")||o(e,l,"hour")||o(e,a,"minute")||o(e,s,"second")||e+" ms"}function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,a=60*s,l=60*a,c=24*l,u=365.25*c;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return n(e);if("number"===o&&!1===isNaN(e))return t.long?i(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},82:function(e,t,n){/**
|
10 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
11 |
*/
|
12 |
!function(n,r){function i(e){return h.PF.compile(e||"nplurals=2; plural=(n != 1);")}function o(e,t){this._key=e,this._i18n=t}var s=Array.prototype,a=Object.prototype,l=s.slice,c=a.hasOwnProperty,u=s.forEach,f={},p={forEach:function(e,t,n){var r,i,o;if(null!==e)if(u&&e.forEach===u)e.forEach(t,n);else if(e.length===+e.length){for(r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===f)return}else for(o in e)if(c.call(e,o)&&t.call(n,e[o],o,e)===f)return},extend:function(e){return this.forEach(l.call(arguments,1),function(t){for(var n in t)e[n]=t[n]}),e}},h=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=p.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};h.context_delimiter=String.fromCharCode(4),p.extend(o.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?h.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),p.extend(h.prototype,{translate:function(e){return new o(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){/**
|
13 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
14 |
*/
|
15 |
-
return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,i){return this.dcnpgettext.call(this,e,t,n,r,i)},dcnpgettext:function(e,t,n,r,o){r=r||n,e=e||this._textdomain;var s;if(!this.options)return s=new h,s.dcnpgettext.call(s,void 0,void 0,n,r,o);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var a,l,c,u=t?t+h.context_delimiter+n:n,f=this.options.locale_data,p=f[e],d=(f.messages||this.defaults.locale_data.messages)[""],m=p[""].plural_forms||p[""]["Plural-Forms"]||p[""]["plural-forms"]||d.plural_forms||d["Plural-Forms"]||d["plural-forms"];if(void 0===o)c=1;else{if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");c=i(m)(o)+1}if(!p)throw new Error("No domain named `"+e+"` could be found.");return!(a=p[u])||c>=a.length?(this.options.missing_key_callback&&this.options.missing_key_callback(u,e),l=[null,n,r],!0===this.options.debug&&console.log(l[i(m)(o)+1]),l[i()(o)+1]):(l=a[c])||(l=[null,n,r],l[i()(o)+1])}});var d=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var i,o,s,a,l,c,u,f=1,p=n.length,h="",m=[];for(o=0;o<p;o++)if("string"===(h=e(n[o])))m.push(n[o]);else if("array"===h){if(a=n[o],a[2])for(i=r[f],s=0;s<a[2].length;s++){if(!i.hasOwnProperty(a[2][s]))throw d('[sprintf] property "%s" does not exist',a[2][s]);i=i[a[2][s]]}else i=a[1]?r[a[1]]:r[f++];if(/[^s]/.test(a[8])&&"number"!=e(i))throw d("[sprintf] expecting number but found %s",e(i));switch(void 0!==i&&null!==i||(i=""),a[8]){case"b":i=i.toString(2);break;case"c":i=String.fromCharCode(i);break;case"d":i=parseInt(i,10);break;case"e":i=a[7]?i.toExponential(a[7]):i.toExponential();break;case"f":i=a[7]?parseFloat(i).toFixed(a[7]):parseFloat(i);break;case"o":i=i.toString(8);break;case"s":i=(i=String(i))&&a[7]?i.substring(0,a[7]):i;break;case"u":i=Math.abs(i);break;case"x":i=i.toString(16);break;case"X":i=i.toString(16).toUpperCase()}i=/[def]/.test(a[8])&&a[3]&&i>=0?"+"+i:i,c=a[4]?"0"==a[4]?"0":a[4].charAt(1):" ",u=a[6]-String(i).length,l=a[6]?t(c,u):"",m.push(a[5]?i+l:l+i)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],i=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){i|=1;var o=[],s=n[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(o.push(a[1]);""!==(s=s.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";o.push(a[1])}n[2]=o}else i|=2;if(3===i)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),m=function(e,t){return t.unshift(e),d.apply(null,t)};h.parse_plural=function(e,t){return e=e.replace(/n/g,t),h.parse_expression(e)},h.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?m(e,[].slice.call(t)):d.apply(this,[].slice.call(arguments))},h.prototype.sprintf=function(){return h.sprintf.apply(this,arguments)},h.PF={},h.PF.parse=function(e){var t=h.PF.extractPluralExpr(e);return h.PF.parser.parse.call(h.PF.parser,t)},h.PF.compile=function(e){function t(e){return!0===e?1:e||0}var n=h.PF.parse(e);return function(e){return t(h.PF.interpreter(n)(e))}},h.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return h.PF.interpreter(e.expr)(t);case"TERNARY":return h.PF.interpreter(e.expr)(t)?h.PF.interpreter(e.truthy)(t):h.PF.interpreter(e.falsey)(t);case"OR":return h.PF.interpreter(e.left)(t)||h.PF.interpreter(e.right)(t);case"AND":return h.PF.interpreter(e.left)(t)&&h.PF.interpreter(e.right)(t);case"LT":return h.PF.interpreter(e.left)(t)<h.PF.interpreter(e.right)(t);case"GT":return h.PF.interpreter(e.left)(t)>h.PF.interpreter(e.right)(t);case"LTE":return h.PF.interpreter(e.left)(t)<=h.PF.interpreter(e.right)(t);case"GTE":return h.PF.interpreter(e.left)(t)>=h.PF.interpreter(e.right)(t);case"EQ":return h.PF.interpreter(e.left)(t)==h.PF.interpreter(e.right)(t);case"NEQ":return h.PF.interpreter(e.left)(t)!=h.PF.interpreter(e.right)(t);case"MOD":return h.PF.interpreter(e.left)(t)%h.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},h.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=/plural\=(.*);/,i=e.match(n),o={};if(!(i.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(o.nplurals=i[1],e=e.replace(n,""),!((t=e.match(r))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},h.PF.parser=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return{type:"GROUP",expr:o[a-1]};case 2:this.$={type:"TERNARY",expr:o[a-4],truthy:o[a-2],falsey:o[a]};break;case 3:this.$={type:"OR",left:o[a-2],right:o[a]};break;case 4:this.$={type:"AND",left:o[a-2],right:o[a]};break;case 5:this.$={type:"LT",left:o[a-2],right:o[a]};break;case 6:this.$={type:"LTE",left:o[a-2],right:o[a]};break;case 7:this.$={type:"GT",left:o[a-2],right:o[a]};break;case 8:this.$={type:"GTE",left:o[a-2],right:o[a]};break;case 9:this.$={type:"NEQ",left:o[a-2],right:o[a]};break;case 10:this.$={type:"EQ",left:o[a-2],right:o[a]};break;case 11:this.$={type:"MOD",left:o[a-2],right:o[a]};break;case 12:this.$={type:"GROUP",expr:o[a-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||1,"number"!=typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],o=[],s=this.table,a="",l=0,c=0,u=0,f=2;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;o.push(p),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,d,m,g,y,v,b,_,x,w={};;){if(m=r[r.length-1],this.defaultActions[m]?g=this.defaultActions[m]:(null==h&&(h=t()),g=s[m]&&s[m][h]),void 0===g||!g.length||!g[0]){if(!u){x=[];for(v in s[m])this.terminals_[v]&&v>2&&x.push("'"+this.terminals_[v]+"'");var C="";C=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+this.terminals_[h]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(C,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:p,expected:x})}if(3==u){if(1==h)throw new Error(C||"Parsing halted.");c=this.lexer.yyleng,a=this.lexer.yytext,l=this.lexer.yylineno,p=this.lexer.yylloc,h=t()}for(;;){if(f.toString()in s[m])break;if(0==m)throw new Error(C||"Parsing halted.");!function(e){r.length=r.length-2*e,i.length=i.length-e,o.length=o.length-e}(1),m=r[r.length-1]}d=h,h=f,m=r[r.length-1],g=s[m]&&s[m][f],u=3}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+h);switch(g[0]){case 1:r.push(h),i.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(g[1]),h=null,d?(h=d,d=null):(c=this.lexer.yyleng,a=this.lexer.yytext,l=this.lexer.yylineno,p=this.lexer.yylloc,u>0&&u--);break;case 2:if(b=this.productions_[g[1]][1],w.$=i[i.length-b],w._$={first_line:o[o.length-(b||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(b||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(y=this.performAction.call(w,a,c,l,this.yy,g[1],i,o)))return y;b&&(r=r.slice(0,-1*b*2),i=i.slice(0,-1*b),o=o.slice(0,-1*b)),r.push(this.productions_[g[1]][0]),i.push(w.$),o.push(w._$),_=s[r[r.length-2]][r[r.length-1]],r.push(_);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t;this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return t=e[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=t,e}(),void 0!==e&&e.exports&&(t=e.exports=h),t.Jed=h}()},83:function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=n(32),o=n(84),s=n(85),a=i.rotl32,l=i.sum32,c=i.sum32_5,u=s.ft_1,f=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];i.inherits(r,f),e.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],f=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var d=~~(r/20),m=c(a(i,5),u(d,o,s,f),h,n[r],p[d]);h=f,f=s,s=a(o,30),o=i,i=m}this.h[0]=l(this.h[0],i),this.h[1]=l(this.h[1],o),this.h[2]=l(this.h[2],s),this.h[3]=l(this.h[3],f),this.h[4]=l(this.h[4],h)},r.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},84:function(e,t,n){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var i=n(32),o=n(46);t.BlockHash=r,r.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},85:function(e,t,n){"use strict";function r(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0}function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}function a(e){return p(e,2)^p(e,13)^p(e,22)}function l(e){return p(e,6)^p(e,11)^p(e,25)}function c(e){return p(e,7)^p(e,18)^e>>>3}function u(e){return p(e,17)^p(e,19)^e>>>10}var f=n(32),p=f.rotr32;t.ft_1=r,t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=a,t.s1_256=l,t.g0_256=c,t.g1_256=u},86:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if(n=t[r],n.value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}function o(e,t){var n,r,s,l,u,p,h,m,g,y,v=[],b={};for(p=0;p<e.length;p++)if(u=e[p],"string"!==u.type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==a(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+d);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){n=t[u.value],s=p;break}v.push(t[u.value])}else v.push(u.value);return n&&(l=i(s,e),h=e.slice(s+1,l),m=o(h,t),r=c.default.cloneElement(n,{},m),v.push(r),l<e.length-1&&(g=e.slice(l+1),y=o(g,t),v=v.concat(y))),1===v.length?v[0]:(v.forEach(function(e,t){e&&(b["interpolation-child-"+t]=e)}),(0,f.default)(b))}function s(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(d=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,h.default)(t);try{return o(i,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(0),c=r(l),u=n(87),f=r(u),p=n(89),h=r(p),d=void 0;t.default=s},87:function(e,t,n){"use strict";function r(e){var t=e&&(x&&e[x]||e[w]);if("function"==typeof t)return t}function i(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e,t){return e&&"object"==typeof e&&null!=e.key?i(e.key):t.toString(36)}function s(e,t,n,i){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===m)return n(i,e,""===t?b+o(e,0):t),1;var l,c,u=0,f=""===t?b:t+_;if(Array.isArray(e))for(var p=0;p<e.length;p++)l=e[p],c=f+o(l,p),u+=s(l,c,n,i);else{var h=r(e);if(h)for(var d,g=h.call(e),v=0;!(d=g.next()).done;)l=d.value,c=f+o(l,v++),u+=s(l,c,n,i);else if("object"===a){var x="",w=""+e;y(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,x)}}return u}function a(e,t,n){return null==e?0:s(e,"",t,n)}function l(e){return(""+e).replace(C,"$&/")}function c(e,t){return d.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}function u(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function f(e,t,n){var r=e.result,i=e.keyPrefix,o=e.func,s=e.context,a=o.call(s,t,e.count++);Array.isArray(a)?p(a,r,n,g.thatReturnsArgument):null!=a&&(d.isValidElement(a)&&(a=c(a,i+(!a.key||t&&t.key===a.key?"":l(a.key)+"/")+n)),r.push(a))}function p(e,t,n,r,i){var o="";null!=n&&(o=l(n)+"/");var s=u.getPooled(t,o,r,i);a(e,f,s),u.release(s)}function h(e){if("object"!=typeof e||!e||Array.isArray(e))return v(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(d.isValidElement(e))return v(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;y(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)p(e[n],t,n,g.thatReturnsArgument);return t}var d=n(0),m="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,g=n(49),y=n(50),v=n(88),b=".",_=":",x="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",C=/\/+/g,E=k,k=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},S=function(e){var t=this;y(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},O=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)};u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var n=e;n.instancePool=[],n.getPooled=t||E,n.poolSize||(n.poolSize=10),n.release=S}(u,O);e.exports=h},88:function(e,t,n){"use strict";var r=n(49),i=r;e.exports=i},89:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},90:function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),i.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}var i=n(48),o=n(47);e.exports=r,o(r,i.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},r.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.prototype.set=function(e,t){"string"!=typeof e&&(e=""+e);var n;if(this.cache.hasOwnProperty(e)){if(n=this.cache[e],n.value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},r.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},r.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},91:function(e,t){/**
|
16 |
* Exposes number format capability
|
17 |
*
|
18 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
19 |
* @license See CREDITS.md
|
20 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
21 |
*/
|
22 |
-
function n(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,a=void 0===n?".":n,l="";return l=(o?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(a)}e.exports=n},
|
23 |
object-assign
|
24 |
(c) Sindre Sorhus
|
25 |
@license MIT
|
26 |
*/
|
27 |
-
var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var u in n)o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var f=0;f<a.length;f++)s.call(n,a[f])&&(l[a[f]]=n[a[f]])}}return l}},
|
1 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=698)}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function o(){return"wrapper-"+i()+"-"+i()}function s(e,t){var n=void 0;return t.map(function(t){t.wrapper_id===e&&(n=t)}),n}function a(e,t){return"basic"!==c(e)?t:""}function l(e){return"basic"===c(e)?"basic-":""}function c(e){return void 0!==e.formDesign?e.formDesign:void 0!==e.settings&&void 0!==e.settings["forminator-poll-design"]?e.settings["forminator-poll-design"]:void 0!==e.quizDesign?e.quizDesign:""}function u(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n}function f(e,t){var n=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,i=r.split("-");"page-break"===t.type?n.push(parseInt(i[2])):n.push(parseInt(i[1]))}})});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function p(e,t){var n=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");n.push(parseInt(r[1]))});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function h(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function d(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9\/\- ]/g,"").trim(),e=e.replace(/\s+|\//g,"-")}function m(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n>0}function g(e,t){var n=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&n.push(t)})}),n}function y(e,t){var n=[];return g(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),n.push({value:t.element_id,label:r,element_id:t.element_id})}),n}function v(e,t){var n="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(n=t.field_label)})}),n}function b(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&n++})}),n>0}function x(e,t,n,r){var i=f(e.type,r);return _.extend(e,{element_id:e.type+"-"+i,formID:t,cols:n})}function w(e,t,n){var r=forminatorData.fields.find(function(t){return t.slug===e}),i=f(r.type,t);return _.extend({element_id:r.type+"-"+i,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:n},JSON.parse(JSON.stringify(r.defaults)))}function C(e){return e.type}function E(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function k(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t)))}function S(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t+1)))}function O(){return K.default.translate.apply(null,arguments)}function A(e,t){var n=_.filter(t,function(t){return t.family===e});return _.isUndefined(n[0])||_.isUndefined(n[0].variants)?[O("None")]:n[0].variants}function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}function P(e,t,n){var r=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]);var i=!1;return _.isUndefined(n)||_.isUndefined(n.main_date_field)||!0!==n.main_date_field||(i=!0),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var n=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(n=e.type,n=F(n)):n=e.field_label,"name"===e.type?r=r.concat(N(e,n)):"address"===e.type?r=r.concat(L(e,n)):"time"===e.type?r=r.concat($(e,n)):"date"===e.type&&"picker"!==e.field_type&&!1===i||r.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:n,values:M(e),hasOptions:D(e),hasCalcs:R(e),formula:T(e),isNumber:I(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(r=r.concat(j(e,n)))}})}),r}function j(e,t){var n=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+O("Day"):t+" - "+e.day_label;var i=void 0;i=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+O("Month"):t+" - "+e.month_label;var o=void 0;return o=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+O("Year"):t+" - "+e.year_label,"input"===e.field_type?n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:i,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:!1,hasOptions:!1,isNumber:!0}):n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:M(e),hasOptions:D(e),isNumber:I(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:i,values:M(e),hasOptions:D(e),isNumber:I(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:M(e),hasOptions:D(e),isNumber:I(e)}),n}function N(e,t){var n=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Mx.",value:"Mx"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var i=void 0;i=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:i,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:M(e),hasOptions:D(e),isNumber:I(e)}),n}function I(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function R(e){return"true"===e.calculations||!0===e.calculations}function T(e){return!!e.formula&&e.formula}function D(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function M(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function L(e,t){var n=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var i=void 0;i=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:i,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),n}function $(e,t){var n=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+O("Hour"):t+" - "+e.hh_label;var i=void 0;return i=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+O("Minute"):t+" - "+e.mm_label,n.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:i,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&n.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),n}function z(e){var t=[],n=forminatorData.fields.filter(function(t){return t.type===e});return n.length<1?[]:(n=n[0],_.isUndefined(n.autofill_settings)||(t=n.autofill_settings),t)}function U(e,t,n){var r=_.isUndefined(n)?"":n;switch(e){case"is":if("checkbox"===t)return O("is having");if("checkbox"!==t)return O("is");case"is_not":if("checkbox"===t)return O("is not having");if("checkbox"!==t)return O("is not");case"day_is":return O("day is");case"day_is_not":return O("day is not");case"month_is_not":return O("month is not");case"month_is":return O("month is");case"is_before":return O("is before");case"is_after":return O("is after");case"is_before_n_or_more_days":return O("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return O("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return O("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return O("is after less than %s days from current date").replace("%s",r);case"is_great":return O("is greater than");case"is_less":return O("is less than");case"contains":return O("contains");case"starts":return O("starts with");case"ends":return O("ends with");case"is_correct":return O("is correct");case"is_incorrect":return O("is incorrect");case"is_final_result":return O("is final result");case"is_not_final_result":return O("is not final result");default:return"-"}}function q(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var n=t[1],r=n.split(".");if(r.length<2)return!1;for(var i=r.length,o=0;o<i;o++)if(!r[o].match(/^[a-z0-9-]+$/i))return!1;return!0}function Y(){"object"===J(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function B(e){var t="none";return J(e["results-behav"])&&J(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function G(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),P(e,t)}function H(e,t){t=_.defaults(t,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){var t=e.params.data.element,n=jQuery(t),r=jQuery(this);r.append(n),r.trigger("change.select2")}),jQuery(this).SUIselect2(t)})}function W(e){return"name"!==e.type||"true"!==e.multiple_name&&!0!==e.multiple_name?"address"===e.type?!!(e.street_address_required||e.address_line_required||e.address_city_required||e.address_state_required||e.address_zip_required||e.address_country_required):e.required:!!(e.prefix_required||e.fname_required||e.mname_required||e.lname_required)}function V(e,t,n,r){var i=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[n]&&i++})}),i>0}function Q(e){var t=0;return e.map(function(e){e.fields.map(function(e){var n=forminatorData.postCategories[e.post_type];void 0!==n&&n.map(function(n){var r=n.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0}function X(e,t){var n=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,i){t.result===n&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}Object.defineProperty(t,"__esModule",{value:!0});var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.randNumber=i,t.generateWrapperId=o,t.getWrapper=s,t.getDefaultValue=a,t.getThemePrefix=l,t.countFieldsByType=u,t.getMaxIDByType=f,t.getMaxID=p,t.generateValue=h,t.formatValue=d,t.hasFieldType=m,t.getFieldsByType=g,t.mapFieldsByType=y,t.getFieldLabel=v,t.fieldExist=b,t.buildFieldObject=x,t.buildFieldObjectFromSlug=w,t.getFieldType=C,t.getForminatorField=E,t.insertInPosition=k,t.replaceInPosition=S,t.translate=O,t.getFontVariants=A,t.ucfirst=F,t.getFields=P,t.getDateFields=j,t.getNameFields=N,t.fieldHasNumber=I,t.fieldHasCalcs=R,t.fieldFormula=T,t.fieldHasOptions=D,t.getFieldValues=M,t.getAddressFields=L,t.getTimeFields=$,t.getFieldAutofillProviders=z,t.getRuleLabel=U,t.isEmailWp=q,t.suiDelegateEvents=Y,t.getChartType=B,t.getCalculationFields=G,t.select2Tags=H,t.isFieldRequired=W,t.hasFieldWithAttribute=V,t.hasPostdataFieldWithMultiselect=Q,t.getPersonalityQuestions=X;var Z=n(44),K=function(e){return e&&e.__esModule?e:{default:e}}(Z)},307:function(e,t,n){"use strict";e.exports=n(701)},32:function(e,t,n){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,s=255&i;o?n.push(o,s):n.push(s)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n}function i(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=l(i.toString(16))}return n}function a(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function c(e,t,n,r){var i=n-t;A(i%4==0);for(var o=new Array(i/4),s=0,a=t;s<o.length;s++,a+=4){var l;l="big"===r?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],o[s]=l>>>0}return o}function u(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function f(e,t){return e>>>t|e<<32-t}function p(e,t){return e<<t|e>>>32-t}function h(e,t){return e+t>>>0}function d(e,t,n){return e+t+n>>>0}function m(e,t,n,r){return e+t+n+r>>>0}function g(e,t,n,r,i){return e+t+n+r+i>>>0}function y(e,t,n,r){var i=e[t],o=e[t+1],s=r+o>>>0,a=(s<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=s}function v(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0}function b(e,t,n,r){return t+r>>>0}function _(e,t,n,r,i,o,s,a){var l=0,c=t;return c=c+r>>>0,l+=c<t?1:0,c=c+o>>>0,l+=c<o?1:0,c=c+a>>>0,l+=c<a?1:0,e+n+i+s+l>>>0}function x(e,t,n,r,i,o,s,a){return t+r+o+a>>>0}function w(e,t,n,r,i,o,s,a,l,c){var u=0,f=t;return f=f+r>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+a>>>0,u+=f<a?1:0,f=f+c>>>0,u+=f<c?1:0,e+n+i+s+l+u>>>0}function C(e,t,n,r,i,o,s,a,l,c){return t+r+o+a+c>>>0}function E(e,t,n){return(t<<32-n|e>>>n)>>>0}function k(e,t,n){return(e<<32-n|t>>>n)>>>0}function S(e,t,n){return e>>>n}function O(e,t,n){return(e<<32-n|t>>>n)>>>0}var A=n(46),F=n(47);t.inherits=F,t.toArray=r,t.toHex=i,t.htonl=o,t.toHex32=s,t.zero2=a,t.zero8=l,t.join32=c,t.split32=u,t.rotr32=f,t.rotl32=p,t.sum32=h,t.sum32_3=d,t.sum32_4=m,t.sum32_5=g,t.sum64=y,t.sum64_hi=v,t.sum64_lo=b,t.sum64_4_hi=_,t.sum64_4_lo=x,t.sum64_5_hi=w,t.sum64_5_lo=C,t.rotr64_hi=E,t.rotr64_lo=k,t.shr64_hi=S,t.shr64_lo=O},44:function(e,t,n){var r=n(79),i=new r;e.exports={numberFormat:i.numberFormat.bind(i),translate:i.translate.bind(i),configure:i.configure.bind(i),setLocale:i.setLocale.bind(i),getLocale:i.getLocale.bind(i),getLocaleSlug:i.getLocaleSlug.bind(i),addTranslations:i.addTranslations.bind(i),reRenderTranslations:i.reRenderTranslations.bind(i),registerComponentUpdateHook:i.registerComponentUpdateHook.bind(i),registerTranslateHook:i.registerTranslateHook.bind(i),state:i.state,stateObserver:i.stateObserver,on:i.stateObserver.on.bind(i.stateObserver),off:i.stateObserver.removeListener.bind(i.stateObserver),emit:i.stateObserver.emit.bind(i.stateObserver),localize:n(93)(i),$this:i,I18N:r}},45:function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?d=h.concat(d):g=-1,d.length&&a())}function a(){if(!m){var e=i(s);m=!0;for(var t=d.length;t;){for(h=d,d=[];++g<t;)h&&h[g].run();g=-1,t=d.length}h=null,m=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,f,p=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var h,d=[],m=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||m||i(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},46:function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},47:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},48:function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,a,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,l=0;l<i;l++)c[l].apply(this,a);return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){i=a;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},49:function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},50:function(e,t,n){"use strict";function r(e,t,n,r,o,s,a,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,s,a,l],f=0;c=new Error(t.replace(/%s/g,function(){return u[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var i=function(e){};e.exports=r},51:function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function i(e,t){var n=I(e)||h(e)?r(e.length,String):[],i=n.length,o=!!i;for(var s in e)!t&&!O.call(e,s)||o&&("length"==s||c(s,i))||n.push(s);return n}function o(e,t,n){var r=e[t];O.call(e,t)&&p(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function s(e){if(!f(e))return P(e);var t=[];for(var n in Object(e))O.call(e,n)&&"constructor"!=n&&t.push(n);return t}function a(e,t){return t=j(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=j(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=s,n(e,this,a)}}function l(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;o(n,a,void 0===l?e[a]:l)}return n}function c(e,t){return!!(t=null==t?x:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function u(e,t,n){if(!v(n))return!1;var r=typeof t;return!!("number"==r?d(n)&&c(t,n.length):"string"==r&&t in n)&&p(n[t],e)}function f(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||S)}function p(e,t){return e===t||e!==e&&t!==t}function h(e){return m(e)&&O.call(e,"callee")&&(!F.call(e,"callee")||A.call(e)==w)}function d(e){return null!=e&&y(e.length)&&!g(e)}function m(e){return b(e)&&d(e)}function g(e){var t=v(e)?A.call(e):"";return t==C||t==E}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=x}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return!!e&&"object"==typeof e}function _(e){return d(e)?i(e):s(e)}var x=9007199254740991,w="[object Arguments]",C="[object Function]",E="[object GeneratorFunction]",k=/^(?:0|[1-9]\d*)$/,S=Object.prototype,O=S.hasOwnProperty,A=S.toString,F=S.propertyIsEnumerable,P=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),j=Math.max,N=!F.call({valueOf:1},"valueOf"),I=Array.isArray,R=function(e){return a(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&u(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}(function(e,t){if(N||f(t)||d(t))return void l(t,_(t),e);for(var n in t)O.call(t,n)&&o(e,n,t[n])});e.exports=R},698:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),c=r(l),u=n(44),f=r(u),p=n(1),h=n(699);f.default.setLocale(forminatorl10n.locale),window.jQueryFormi=jQuery.noConflict();var d=function(e){function t(e){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return s(t,e),a(t,[{key:"render",value:function(){return c.default.createElement(h.NoticeDiscount,{title:(0,p.translate)("Don't Miss Out On Subscription / Recurring Payment Support"),disclaimer:(0,p.translate)("Don't worry, only admin users can see this message"),price:60,discount:35,image:forminatorData.imagesUrl+"/forminator-create-modal.png",imageRetina:forminatorData.imagesUrl+"/forminator-create-modal@2x.png",buttonLabel:(0,p.translate)("Get 35% OFF Forminator Pro"),buttonLink:"https://wpmudev.com/project/forminator-pro/?coupon=FORMINATOR-SUBSCRIPTIONS&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_subscriptions_banner",onCloseClick:function(e){return FORMI.dismissNotice(e)},priceLabel:(0,p.translate)("Pay only"),priceTime:(0,p.translate)("year")},c.default.createElement("p",null,(0,p.translate)("Subscription Payments, our most anticipated Pro feature, is coming soon in v1.15! Upgrade now and get 35% OFF all annual plans.")))}}]),t}(l.Component);ReactDOM.render(c.default.createElement(d,null),document.getElementById("app"))},699:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?p(e):t}function d(e){var t=f();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function _(e,t){if(null==e)return{};var n,r,i=b(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"NoticeDiscount",function(){return Q});var x,w,C,E,k,S,O,A,F,P,j,N=n(0),I=n.n(N),R=n(700),T=function(e){var t=e.label,n=e.icon,r=e.design,i=void 0===r?"solid":r,o=e.color,s=e.className,a=e.loading,l=_(e,["label","icon","design","color","className","loading"]),c=I.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),u=I.a.createElement(I.a.Fragment,null,n&&""!==n&&I.a.createElement("span",{className:"sui-icon-"+n,"aria-hidden":"true"}),t);switch(s="sui-button".concat(s?" "+s:""),o){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":s+=" sui-button-"+o;break;case"gray":default:s+=""}switch(i){case"ghost":case"outlined":s+=" sui-button-"+i;break;case"solid":default:s+=""}a&&(s+=" sui-button-onload");var f="button";return l.href?f="a":l.htmlFor&&(f="label"),I.a.createElement(f,v({className:s,disabled:l.disabled||a},l),a?c:u)},D={mobile:480,tablet:783,laptop:1200,desktop:1500},M={mobile:"(min-width: ".concat(D.mobile,"px)"),tablet:"(min-width: ".concat(D.tablet,"px)"),laptop:"(min-width: ".concat(D.laptop,"px)"),desktop:"(min-width: ".concat(D.desktop,"px)")},L=R.a.div(x||(x=m(["\n\toverflow: hidden;\n\tdisplay: block;\n\tborder-radius: 4px;\n\tbackground-color: #fff;\n"]))),$=R.a.div(w||(w=m(["\n\tdisplay: flex;\n\tflex-flow: row wrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\tbackground-color: #8D00B1;\n\n\t.sui-button-icon {\n\t\tflex: 0 0 auto;\n\t\tmargin: 16px 20px !important;\n\n\t\t&:only-child {\n\t\t\tmargin-left: auto !important;\n\t\t}\n\t}\n"]))),z=R.a.div(C||(C=m(['\n\tflex: 0 0 auto;\n\tposition: relative;\n\tmargin: 12px 0;\n\tpadding: 10px 23px 10px 15px;\n\tbackground-color: #FECF2F;\n\tcolor: #000;\n\tfont-size: 13px;\n\tline-height: 18px;\n\tfont-weight: bold;\n\tletter-spacing: normal;\n\n\t&:after {\n\t\tcontent: " ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tborder-width: 19px 12px;\n\t\tborder-style: solid;\n\t\tborder-color: #FECF2F;\n\t\tborder-right-color: #8D00B1;\n\t\tborder-left-width: 0;\n\t}\n\n\t@media '," {\n\t\tpadding-right: 25px;\n\t\tfont-size: 14px;\n\t}\n"])),M.tablet),U=R.a.h2(E||(E=m(["\n\tmin-width: 1px;\n\tflex: 1;\n\tmargin: 0 20px !important;\n\tpadding: 11px 0 !important;\n\tborder: 0 !important;\n\tcolor: #fff !important;\n\tfont-size: 13px !important;\n\tline-height: 21px !important;\n\tfont-weight: bold !important;\n\tletter-spacing: normal !important;\n\n\t& + & .sui-button-icon {\n\t\tmargin-left: 0 !important;\n\t}\n\n\t@media "," {\n\t\tpadding: 20px 0 21px !important;\n\t\tfont-size: 16px !important;\n\t}\n"])),M.tablet),q=R.a.div(k||(k=m(["\n\ttext-align: center;\n\n\t@media "," {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t}\n"])),M.tablet),Y=R.a.img(S||(S=m(["\n\tdisplay: none;\n\tflex: 0 0 auto;\n\talign-self: flex-end;\n\tmargin: 0 10px;\n\tpadding: 0 30px;\n\n\t+ div {\n\n\t\t@media "," {\n\t\t\tpadding-left: 0 !important;\n\t\t}\n\t}\n\n\t@media "," {\n\t\tdisplay: block;\n\t}\n"])),M.tablet,M.tablet),B=R.a.div(O||(O=m(["\n\tmin-width: 1px;\n\tflex: 1;\n\tpadding: 20px 20px 10px;\n\n\tp {\n\t\tmargin: 12px 0 0 !important;\n\t\tcolor: #666 !important;\n\t\tfont-size: 13px !important;\n\t\tline-height: 22px !important;\n\n\t\t&:first-child {\n\t\t\tmargin: 0 !important;\n\t\t}\n\n\t\t&.sui-disclaimer {\n\t\t\tdisplay: none;\n\t\t\tcolor: #888 !important;\n\n\t\t\t@media "," {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t@media "," {\n\t\tpadding: 30px;\n\t\ttext-align: left;\n\t}\n"])),M.tablet,M.tablet),G=R.a.div(A||(A=m(["\n\tdisplay: none;\n\talign-self: stretch;\n\tpadding: 30px 0;\n\n\tspan {\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tbackground-color: #DDD;\n\t}\n\n\t@media "," {\n\t\tdisplay: block;\n\t}\n"])),M.tablet),H=R.a.div(F||(F=m(["\n\tdisplay: block;\n\tpadding: 10px 20px 30px;\n\ttext-align: center;\n\n\t.sui-button {\n\t\tmargin-top: 15px !important;\n\t\tmargin-right: 0 !important;\n\t}\n\n\t.sui-disclaimer {\n\t\tmargin: 20px 0 0 !important;\n\t\tcolor: #888 !important;\n\t\tfont-size: 13px !important;\n\t\tline-height: 22px !important;\n\n\t\t@media "," {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t@media "," {\n\t\tpadding: 12px 30px 20px;\n\t}\n"])),M.tablet,M.tablet),W=R.a.h3(P||(P=m(["\n\tcolor: #666 !important;\n\tfont-size: 12px !important;\n\tline-height: 16px !important;\n\tfont-weight: 400 !important;\n\tletter-spacing: -0.23px !important;\n\n\t@media "," {\n\t\ttext-transform: uppercase;\n\t}\n"])),M.tablet),V=R.a.p(j||(j=m(["\n\tmargin: 0 !important;\n\tcolor: #333 !important;\n\tfont-size: 15px !important;\n\tline-height: 40px !important;\n\tletter-spacing: -0.27px !important;\n\n\tspan {\n\t\tmargin-right: 6px;\n\t\tcolor: #FF6D6D;\n\t\tfont-size: 18px;\n\t\tfont-weight: bold;\n\t\ttext-decoration: line-through;\n\t\tletter-spacing: -0.32px;\n\t}\n\n\tstrong {\n\t\tfont-size: 28px;\n\t\tfont-weight: bold;\n\t\tletter-spacing: -0.5px;\n\t}\n"]))),Q=function(e){function t(e){var i;return r(this,t),i=n.call(this,e),s(p(i),"closeButtonClicked",function(e){i.hideComponent(e),i.props.onCloseClick(e)}),s(p(i),"hideComponent",function(e){var t=e.currentTarget.closest(".sui-notice-offer"),n=new Event("noticeOfferClosed");t.dispatchEvent(n),t.remove()}),i.closeButtonClicked=i.closeButtonClicked.bind(p(i)),i.hideComponent=i.hideComponent.bind(p(i)),i}l(t,e);var n=d(t);return o(t,[{key:"render",value:function(){var e=this,t=this.props.title,n=this.props.price,r=this.props.discount,i=this.props.image,o=this.props.imageRetina,s=this.props.disclaimer,l=this.props.buttonLabel,c=this.props.buttonLink,u=n-r/100*n,f=u.toFixed(0),p=null!==r&&""!==r&&0!==r||r>0,h=null!==i&&""!==i,d=null!==o&&""!==o,m=null!==s&&""!==s,g=null!==l&&""!==l,y=null!==c&&""!==c,v=g&&y;return I.a.createElement(L,a({className:"sui-notice-offer"},this.props),I.a.createElement($,null,p&&I.a.createElement(z,null,r,"% Off"),null!==t&&""!==t&&I.a.createElement(U,null,t),I.a.createElement("button",{className:"sui-button-icon sui-button-white",onClick:function(t){return e.closeButtonClicked(t)}},I.a.createElement("span",{className:"sui-icon-close sui-sm","aria-hidden":"true"}),I.a.createElement("span",{className:"sui-screen-reader-text"},"Close this offer"))),I.a.createElement(q,null,h&&!d&&I.a.createElement(Y,{src:i,alt:"","aria-hidden":"true"}),h&&d&&I.a.createElement(Y,{src:i,srcSet:i+" 1x,"+o+" 2x",alt:"","aria-hidden":"true"}),I.a.createElement(B,null,this.props.children,m&&I.a.createElement("p",{className:"sui-disclaimer"},"* ",s)),I.a.createElement(G,null,I.a.createElement("span",null)),I.a.createElement(H,null,void 0!==this.props.priceLabel&&""!==this.props.priceLabel&&I.a.createElement(W,null,this.props.priceLabel),p?I.a.createElement(V,null,I.a.createElement("span",null,"$",n),I.a.createElement("strong",null,"$",f),"/",this.props.priceTime||"month"):I.a.createElement(V,null,I.a.createElement("strong",null,"$",n),"/",this.props.priceTime||"month"),v&&I.a.createElement(T,{label:l,color:"purple",href:c,target:"_blank"}),m&&I.a.createElement("p",{className:"sui-disclaimer"},"* ",s," *"))))}}]),t}(N.Component)},700:function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return"function"==typeof e}function o(e){return e.displayName||e.name||"Component"}function s(e){return e&&"string"==typeof e.styledComponentId}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}function l(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=oe(t%52)+n;return(oe(t%52)+n).replace(ie,"$1-$2")}function c(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(i(n)&&!s(n))return!1}return!0}function u(e){function t(e,t,s,a){void 0===a&&(a="&");var l=e.replace(ue,""),c=t&&s?s+" "+t+" { "+l+" }":l;return n=a,r=t,i=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),p(s||!t?"":t,c)}var n,r,i,o,s=void 0===e?T:e,l=s.options,c=void 0===l?T:l,u=s.plugins,f=void 0===u?R:u,p=new O.a(c),h=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,s,a,l,c,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),m=function(e,t,i){return 0===t&&-1!==fe.indexOf(i[r.length])||i.match(o)?e:"."+n};return p.use([].concat(f,[function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(r)>0&&(n[0]=n[0].replace(i,m))},d,function(e){if(-2===e){var t=h;return h=[],t}}])),t.hash=f.length?f.reduce(function(e,t){return t.name||a(15),se(e,t.name)},5381).toString():"",t}function f(){return Object(C.useContext)(pe)||de}function p(){return Object(C.useContext)(he)||me}function h(e){var t=Object(C.useState)(e.stylisPlugins),n=t[0],r=t[1],i=f(),o=Object(C.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(C.useMemo)(function(){return u({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return Object(C.useEffect)(function(){S()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]),E.a.createElement(pe.Provider,{value:o},E.a.createElement(he.Provider,{value:s},e.children))}function d(e){return ye.test(e)?e.replace(ve,_e).replace(be,"-ms-"):e}function m(e,t,n,r){if(Array.isArray(e)){for(var o,a=[],l=0,c=e.length;l<c;l+=1)""!==(o=m(e[l],t,n,r))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}if(xe(e))return"";if(s(e))return"."+e.styledComponentId;if(i(e)){if("function"!=typeof(f=e)||f.prototype&&f.prototype.isReactComponent||!t)return e;var u=e(t);return m(u,t,n,r)}var f;return e instanceof ge?n?(e.inject(n,r),e.getName(r)):e:I(e)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!xe(t[a])&&(I(t[a])?s.push.apply(s,e(t[a],a)):i(t[a])?s.push(d(a)+":",t[a],";"):s.push(d(a)+": "+(r=a,null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in A.a?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i(e)||I(e)?m(N(R,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:m(N(e,n))}function y(e){return e.replace(Ce,"-").replace(Ee,"")}function v(e){return"string"==typeof e&&!0}function b(e,t,n){var r=e[n];Se(t)&&Se(r)?_(r,t):e[n]=t}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var s=o[i];if(Se(s))for(var a in s)Oe(a)&&b(e,s[a],a)}return e}function x(e,t,n){var a=s(e),l=!v(e),c=t.attrs,u=void 0===c?R:c,h=t.componentId,d=void 0===h?function(e,t){var n="string"!=typeof e?"sc":y(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+ke("5.2.3"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):h,m=t.displayName,g=void 0===m?function(e){return v(e)?"styled."+e:"Styled("+o(e)+")"}(e):m,b=t.displayName&&t.componentId?y(t.displayName)+"-"+t.componentId:t.componentId||d,w=a&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,k=t.shouldForwardProp;a&&e.shouldForwardProp&&(k=t.shouldForwardProp?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var S,O=new ce(n,b,a?e.componentStyle:void 0),A=O.isStatic&&0===u.length,P=function(e,t){return function(e,t,n,o){var s=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,h=e.styledComponentId,d=e.target,m=function(e,t,n){void 0===e&&(e=T);var o=r({},t,{theme:e}),s={};return n.forEach(function(e){var t,n,r,a=e;for(t in i(a)&&(a=a(o)),a)o[t]=s[t]="className"===t?(n=s[t],r=a[t],n&&r?n+" "+r:n||r):a[t]}),[o,s]}(we(t,Object(C.useContext)(Ae),l)||T,t,s),g=m[0],y=m[1],b=function(e,t,n,r){var i=f(),o=p(),s=t?e.generateAndInjectStyles(T,i,o):e.generateAndInjectStyles(n,i,o);return s}(a,o,g),_=n,x=y.$as||t.$as||y.as||t.as||d,w=v(x),E=y!==t?r({},t,{},y):t,k={};for(var S in E)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?k.as=E[S]:(u?u(S,F.a):!w||Object(F.a)(S))&&(k[S]=E[S]));return t.style&&y.style!==t.style&&(k.style=r({},t.style,{},y.style)),k.className=Array.prototype.concat(c,h,b!==h?b:null,t.className,y.className).filter(Boolean).join(" "),k.ref=_,Object(C.createElement)(x,k)}(S,e,t,A)};return P.displayName=g,(S=E.a.forwardRef(P)).attrs=w,S.componentStyle=O,S.displayName=g,S.shouldForwardProp=k,S.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):R,S.styledComponentId=b,S.target=a?e.target:e,S.withComponent=function(e){var i=t.componentId,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),a=i&&i+"-"+(v(e)?e:y(o(e)));return x(e,r({},s,{attrs:w,componentId:a}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?_({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},l&&j()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var w=n(307),C=(n.n(w),n(0)),E=n.n(C),k=n(702),S=n.n(k),O=n(703),A=n(704),F=n(705),P=n(707),j=n.n(P),N=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},I=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(w.typeOf)(e)},R=Object.freeze([]),T=Object.freeze({}),D=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",M="undefined"!=typeof window&&"HTMLElement"in window,L=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),$=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&a(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),l=0,c=t.length;l<c;l++)this.tag.insertRule(s,t[l])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),z=new Map,U=new Map,q=1,Y=function(e){if(z.has(e))return z.get(e);for(;U.has(q);)q++;var t=q++;return z.set(e,t),U.set(t,e),t},B=function(e){return U.get(e)},G=function(e,t){z.set(e,t),U.set(t,e)},H="style["+D+'][data-styled-version="5.2.3"]',W=new RegExp("^"+D+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),V=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},Q=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var s=n[i].trim();if(s){var a=s.match(W);if(a){var l=0|parseInt(a[1],10),c=a[2];0!==l&&(G(c,l),V(e,c,a[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},X=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},J=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(D))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(D,"active"),r.setAttribute("data-styled-version","5.2.3");var s=X();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},Z=function(){function e(e){var t=this.element=J(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}a(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),K=function(){function e(e){var t=this.element=J(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ee=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),te=M,ne={isServer:!M,useCSSOMInjection:!L},re=function(){function e(e,t,n){void 0===e&&(e=T),void 0===t&&(t={}),this.options=r({},ne,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&M&&te&&(te=!1,function(e){for(var t=document.querySelectorAll(H),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(D)&&(Q(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Y(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new ee(i):r?new Z(i):new K(i),new $(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Y(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Y(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Y(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=B(i);if(void 0!==o){var s=e.names.get(o),a=t.getGroup(i);if(void 0!==s&&0!==a.length){var l=D+".g"+i+'[id="'+o+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+a+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),ie=/(a)(d)/gi,oe=function(e){return String.fromCharCode(e+(e>25?39:97))},se=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ae=function(e){return se(5381,e)},le=ae("5.2.3"),ce=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&c(e),this.componentId=t,this.baseHash=se(le,t),this.baseStyle=n,re.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=m(this.rules,e,t,n).join(""),s=l(se(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,s)){var a=n(o,"."+s,void 0,r);t.insertRules(r,s,a)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=se(this.baseHash,n.hash),f="",p=0;p<c;p++){var h=this.rules[p];if("string"==typeof h)f+=h;else if(h){var d=m(h,e,t,n),g=Array.isArray(d)?d.join(""):d;u=se(u,g+p),f+=g}}if(f){var y=l(u>>>0);if(!t.hasNameForId(r,y)){var v=n(f,"."+y,void 0,r);t.insertRules(r,y,v)}i.push(y)}}return i.join(" ")},e}(),ue=/^\s*\/\/.*$/gm,fe=[":","[",".","#"],pe=E.a.createContext(),he=(pe.Consumer,E.a.createContext()),de=(he.Consumer,new re),me=u(),ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=me);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return a(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=me),this.name+e.hash},e}(),ye=/([A-Z])/,ve=/([A-Z])/g,be=/^ms-/,_e=function(e){return"-"+e.toLowerCase()},xe=function(e){return null==e||!1===e||""===e},we=(new Set,function(e,t,n){return void 0===n&&(n=T),e.theme!==n.theme&&e.theme||t||n.theme}),Ce=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g,ke=function(e){return l(ae(e)>>>0)},Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e},Ae=E.a.createContext(),Fe=(Ae.Consumer,{}),Pe=function(e){return function e(t,n,i){if(void 0===i&&(i=T),!Object(w.isValidElementType)(n))return a(1,String(n));var o=function(){return t(n,i,g.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,r({},i,{},o))},o.attrs=function(o){return e(t,n,r({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},o}(x,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Pe[e]=Pe(e)});(function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=c(e),re.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(m(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&re.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}})(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=X();return"<style "+[n&&'nonce="'+n+'"',D+'="true"','data-styled-version="5.2.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?a(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return a(2);var n=((t={})[D]="",t["data-styled-version"]="5.2.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=X();return i&&(n.nonce=i),[E.a.createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new re({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?a(2):E.a.createElement(h,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return a(3)}}();t.a=Pe}).call(t,n(45))},701:function(e,t,n){"use strict";function r(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case h:case d:case l:case u:case c:case g:return e;default:switch(e=e&&e.$$typeof){case p:case m:case b:case v:case f:return e;default:return t}}case a:return t}}}function i(e){return r(e)===d}/** @license React v16.13.1
|
2 |
* react-is.production.min.js
|
3 |
*
|
4 |
* Copyright (c) Facebook, Inc. and its affiliates.
|
6 |
* This source code is licensed under the MIT license found in the
|
7 |
* LICENSE file in the root directory of this source tree.
|
8 |
*/
|
9 |
+
var o="function"==typeof Symbol&&Symbol.for,s=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.suspense_list"):60120,v=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,_=o?Symbol.for("react.block"):60121,x=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,C=o?Symbol.for("react.scope"):60119;t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=p,t.ContextProvider=f,t.Element=s,t.ForwardRef=m,t.Fragment=l,t.Lazy=b,t.Memo=v,t.Portal=a,t.Profiler=u,t.StrictMode=c,t.Suspense=g,t.isAsyncMode=function(e){return i(e)||r(e)===h},t.isConcurrentMode=i,t.isContextConsumer=function(e){return r(e)===p},t.isContextProvider=function(e){return r(e)===f},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return r(e)===m},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===b},t.isMemo=function(e){return r(e)===v},t.isPortal=function(e){return r(e)===a},t.isProfiler=function(e){return r(e)===u},t.isStrictMode=function(e){return r(e)===c},t.isSuspense=function(e){return r(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===u||e===c||e===g||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===f||e.$$typeof===p||e.$$typeof===m||e.$$typeof===x||e.$$typeof===w||e.$$typeof===C||e.$$typeof===_)},t.typeOf=r},702:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!a(c))return!1;var u=e[c],f=t[c];if(!1===(i=n?n.call(r,u,f,c):void 0)||void 0===i&&u!==f)return!1}return!0}},703:function(e,t,n){"use strict";function r(e){function t(e,r,l,c,u){for(var h,d,m,g,y,x=0,C=0,E=0,k=0,S=0,O=0,I=m=h=0,T=0,M=0,L=0,$=0,z=l.length,U=z-1,q="",Y="",B="",G="";T<z;){if(d=l.charCodeAt(T),T===U&&0!==C+k+E+x&&(0!==C&&(d=47===C?10:47),k=E=x=0,z++,U++),0===C+k+E+x){if(T===U&&(0<M&&(q=q.replace(p,"")),0<q.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(T)}d=59}switch(d){case 123:for(q=q.trim(),h=q.charCodeAt(0),m=1,$=++T;T<z;){switch(d=l.charCodeAt(T)){case 123:m++;break;case 125:m--;break;case 47:switch(d=l.charCodeAt(T+1)){case 42:case 47:e:{for(I=T+1;I<U;++I)switch(l.charCodeAt(I)){case 47:if(42===d&&42===l.charCodeAt(I-1)&&T+2!==I){T=I+1;break e}break;case 10:if(47===d){T=I+1;break e}}T=I}}break;case 91:d++;case 40:d++;case 34:case 39:for(;T++<U&&l.charCodeAt(T)!==d;);}if(0===m)break;T++}switch(m=l.substring($,T),0===h&&(h=(q=q.replace(f,"").trim()).charCodeAt(0)),h){case 64:switch(0<M&&(q=q.replace(p,"")),d=q.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=N}if(m=t(r,M,m,d,u+1),$=m.length,0<R&&(M=n(N,q,L),y=a(3,m,M,r,F,A,$,d,u,c),q=M.join(""),void 0!==y&&0===($=(m=y.trim()).length)&&(d=0,m="")),0<$)switch(d){case 115:q=q.replace(w,s);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:q=q.replace(v,"$1 $2"),m=q+"{"+m+"}",m=1===j||2===j&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===c&&(Y+=m,m="")}else m="";break;default:m=t(r,n(r,q,L),m,c,u+1)}B+=m,m=L=M=I=h=0,q="",d=l.charCodeAt(++T);break;case 125:case 59:if(q=(0<M?q.replace(p,""):q).trim(),1<($=q.length))switch(0===I&&(45===(h=q.charCodeAt(0))||96<h&&123>h)&&($=(q=q.replace(" ",":")).length),0<R&&void 0!==(y=a(1,q,r,e,F,A,Y.length,c,u,c))&&0===($=(q=y.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),d=q.charCodeAt(1),h){case 0:break;case 64:if(105===d||99===d){G+=q+l.charAt(T);break}default:58!==q.charCodeAt($-1)&&(Y+=i(q,h,d,q.charCodeAt(2)))}L=M=I=h=0,q="",d=l.charCodeAt(++T)}}switch(d){case 13:case 10:47===C?C=0:0===1+h&&107!==c&&0<q.length&&(M=1,q+="\0"),0<R*D&&a(0,q,r,e,F,A,Y.length,c,u,c),A=1,F++;break;case 59:case 125:if(0===C+k+E+x){A++;break}default:switch(A++,g=l.charAt(T),d){case 9:case 32:if(0===k+x+C)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+C+x&&(M=L=1,g="\f"+g);break;case 108:if(0===k+C+x+P&&0<I)switch(T-I){case 2:112===S&&58===l.charCodeAt(T-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===k+C+x&&(I=T);break;case 44:0===C+E+k+x&&(M=1,g+="\r");break;case 34:case 39:0===C&&(k=k===d?0:0===k?d:k);break;case 91:0===k+C+E&&x++;break;case 93:0===k+C+E&&x--;break;case 41:0===k+C+x&&E--;break;case 40:if(0===k+C+x){if(0===h)switch(2*S+3*O){case 533:break;default:h=1}E++}break;case 64:0===C+E+k+x+I+m&&(m=1);break;case 42:case 47:if(!(0<k+x+E))switch(C){case 0:switch(2*d+3*l.charCodeAt(T+1)){case 235:C=47;break;case 220:$=T,C=42}break;case 42:47===d&&42===S&&$+2!==T&&(33===l.charCodeAt($+2)&&(Y+=l.substring($,T+1)),g="",C=0)}}0===C&&(q+=g)}O=S,S=d,T++}if(0<($=Y.length)){if(M=r,0<R&&void 0!==(y=a(2,Y,M,e,F,A,$,c,u,c))&&0===(Y=y).length)return G+Y+B;if(Y=M.join(",")+"{"+Y+"}",0!=j*P){switch(2!==j||o(Y,2)||(P=0),P){case 111:Y=Y.replace(_,":-moz-$1")+Y;break;case 112:Y=Y.replace(b,"::-webkit-input-$1")+Y.replace(b,"::-moz-$1")+Y.replace(b,":-ms-input-$1")+Y}P=0}}return G+Y+B}function n(e,t,n){var i=t.trim().split(g);t=i;var o=i.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<o;++a)t[a]=r(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<o;++a)for(var c=0;c<s;++c)t[l++]=r(e[c]+" ",i[a],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var s=e+";",a=2*t+3*n+4*r;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===j||2===j&&o(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(O,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return d.test(s)?s.replace(h,":-webkit-")+s.replace(h,":-moz-")+s:s;case 1e3:switch(l=s.substring(13).trim(),t=l.indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(x,"tb");break;case 232:l=s.replace(x,"tb-rl");break;case 220:l=s.replace(x,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim(),a=l.charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(k,"$1"),n,t)}function s(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,s,a,l,c){for(var f,p=0,h=t;p<R;++p)switch(f=I[p].call(u,e,h,n,r,i,o,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){switch(e){case void 0:case null:R=I.length=0;break;default:if("function"==typeof e)I[R++]=e;else if("object"==typeof e)for(var t=0,n=e.length;t<n;++t)l(e[t]);else D=0|!!e}return l}function c(e){return e=e.prefix,void 0!==e&&(T=null,e?"function"!=typeof e?j=1:(j=2,T=e):j=0),c}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),M=r,r=[M],0<R){var i=a(-1,n,r,r,F,A,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(N,r,n,0,0);return 0<R&&void 0!==(i=a(-2,o,r,r,F,A,o.length,0,0,0))&&(o=i),M="",P=0,A=F=1,o}var f=/^\0+/g,p=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,_=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,E=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,A=1,F=1,P=0,j=1,N=[],I=[],R=0,T=null,D=0,M="";return u.use=l,u.set=c,void 0!==e&&c(e),u}t.a=r},704:function(e,t,n){"use strict";var r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};t.a=r},705:function(e,t,n){"use strict";var r=n(706),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=Object(r.a)(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});t.a=o},706:function(e,t,n){"use strict";function r(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}t.a=r},707:function(e,t,n){"use strict";function r(e){return o.isMemo(e)?c:u[e.$$typeof]||s}function i(e,t,n){if("string"!=typeof t){if(g){var o=m(t);o&&o!==g&&i(e,o,n)}var s=p(t);h&&(s=s.concat(h(t)));for(var l=r(e),c=r(t),u=0;u<s.length;++u){var y=s[u];if(!(a[y]||n&&n[y]||c&&c[y]||l&&l[y])){var v=d(t,y);try{f(e,y,v)}catch(e){}}}}return e}var o=n(307),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[o.ForwardRef]=l,u[o.Memo]=c;var f=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;e.exports=i},79:function(e,t,n){function r(){c.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function i(e){return Array.prototype.slice.call(e)}function o(e){var t,n=e[0],o={};for(("string"!=typeof n||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",i(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof n&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",i(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(o=e[t]);if("string"==typeof n?o.original=n:"object"==typeof o.original&&(o.plural=o.original.plural,o.count=o.original.count,o.original=o.original.single),"string"==typeof e[1]&&(o.plural=e[1]),void 0===o.original)throw new Error("Translate called without a `string` value as first argument.");return o}function s(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}function a(e,t){var n,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),n=s(r,t),e[r].apply(e,n)}function l(e,t){var n,r;for(n=v.length-1;n>=0;n--)if(r=v[n](g({},t)),e.state.locale[r.original])return a(e.state.jed,r);return null}function c(){if(!(this instanceof c))return new c;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:m({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new h,this.stateObserver.setMaxListeners(0),this.configure()}var u=n(80)("i18n-wp-plugin"),f=n(83),p=n(84),h=n(48).EventEmitter,d=n(87).default,m=n(91),g=n(51),y=n(92),v=[function(e){return e}],b={};c.throwErrors=!1,c.prototype.numberFormat=function(e){var t=arguments[1]||{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return y(e,n,r,i)},c.prototype.configure=function(e){g(this,e||{}),this.setLocale()},c.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,n,r,i=e[""]["key-hash"],s=function(e,t){const n=!1===t?"":String(t);if(void 0!==b[n+e])return b[n+e];var r=p().update(e).digest("hex");return b[n+e]=t?r.substr(0,t):r},l=function(e){return function(t){return t.context?(t.original=s(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=s(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)v.push(l(!1));else{var c=i.substr(5).indexOf("-");if(c<0)t=Number(i.substr(5)),v.push(l(t));else for(n=Number(i.substr(5,c)),r=Number(i.substr(6+c)),t=n;t<=r;t++)v.push(l(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;g(this.state.locale,e)}else this.state.locale=g({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new f({locale_data:{messages:this.state.locale}}),this.state.numberFormatSettings.decimal_point=a(this.state.jed,o(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=a(this.state.jed,o(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},c.prototype.getLocale=function(){return this.state.locale},c.prototype.getLocaleSlug=function(){return this.state.localeSlug},c.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},c.prototype.hasTranslation=function(){return!!l(this,o(arguments))},c.prototype.translate=function(){var e,t,n,r,i,s;if(e=o(arguments),s=!e.components){try{i=JSON.stringify(e)}catch(e){s=!1}if(i&&(t=this.state.translations.get(i)))return t}if(t=l(this,e),t||(t=a(this.state.jed,e)),e.args){n=Array.isArray(e.args)?e.args.slice(0):[e.args],n.unshift(t);try{t=f.sprintf.apply(f,n)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=d({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(n){t=n(t,e)}),s&&this.state.translations.set(i,t),t},c.prototype.reRenderTranslations=function(){u("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},c.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},c.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},e.exports=c},80:function(e,t,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function l(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(81),t.log=s,t.formatArgs=o,t.save=a,t.load=l,t.useColors=i,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(l())}).call(t,n(45))},81:function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function i(e){function n(){if(n.enabled){var e=n,r=+new Date,o=r-(i||r);e.diff=o,e.prev=i,e.curr=r,i=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var i=t.formatters[r];if("function"==typeof i){var o=s[l];n=i.call(e,o),s.splice(l,1),l--}return n}),t.formatArgs.call(e,s);(n.log||t.log||console.log.bind(console)).apply(e,s)}}var i;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=o,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function s(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}}function a(){t.enable("")}function l(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=i.debug=i.default=i,t.coerce=c,t.disable=a,t.enable=s,t.enabled=l,t.humanize=n(82),t.instances=[],t.names=[],t.skips=[],t.formatters={}},82:function(e,t){function n(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=l?Math.round(e/l)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return o(e,c,"day")||o(e,l,"hour")||o(e,a,"minute")||o(e,s,"second")||e+" ms"}function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,a=60*s,l=60*a,c=24*l,u=365.25*c;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return n(e);if("number"===o&&!1===isNaN(e))return t.long?i(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},83:function(e,t,n){/**
|
10 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
11 |
*/
|
12 |
!function(n,r){function i(e){return h.PF.compile(e||"nplurals=2; plural=(n != 1);")}function o(e,t){this._key=e,this._i18n=t}var s=Array.prototype,a=Object.prototype,l=s.slice,c=a.hasOwnProperty,u=s.forEach,f={},p={forEach:function(e,t,n){var r,i,o;if(null!==e)if(u&&e.forEach===u)e.forEach(t,n);else if(e.length===+e.length){for(r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===f)return}else for(o in e)if(c.call(e,o)&&t.call(n,e[o],o,e)===f)return},extend:function(e){return this.forEach(l.call(arguments,1),function(t){for(var n in t)e[n]=t[n]}),e}},h=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=p.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};h.context_delimiter=String.fromCharCode(4),p.extend(o.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?h.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),p.extend(h.prototype,{translate:function(e){return new o(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){/**
|
13 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
14 |
*/
|
15 |
+
return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,i){return this.dcnpgettext.call(this,e,t,n,r,i)},dcnpgettext:function(e,t,n,r,o){r=r||n,e=e||this._textdomain;var s;if(!this.options)return s=new h,s.dcnpgettext.call(s,void 0,void 0,n,r,o);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var a,l,c,u=t?t+h.context_delimiter+n:n,f=this.options.locale_data,p=f[e],d=(f.messages||this.defaults.locale_data.messages)[""],m=p[""].plural_forms||p[""]["Plural-Forms"]||p[""]["plural-forms"]||d.plural_forms||d["Plural-Forms"]||d["plural-forms"];if(void 0===o)c=1;else{if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");c=i(m)(o)+1}if(!p)throw new Error("No domain named `"+e+"` could be found.");return!(a=p[u])||c>=a.length?(this.options.missing_key_callback&&this.options.missing_key_callback(u,e),l=[null,n,r],!0===this.options.debug&&console.log(l[i(m)(o)+1]),l[i()(o)+1]):(l=a[c])||(l=[null,n,r],l[i()(o)+1])}});var d=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var i,o,s,a,l,c,u,f=1,p=n.length,h="",m=[];for(o=0;o<p;o++)if("string"===(h=e(n[o])))m.push(n[o]);else if("array"===h){if(a=n[o],a[2])for(i=r[f],s=0;s<a[2].length;s++){if(!i.hasOwnProperty(a[2][s]))throw d('[sprintf] property "%s" does not exist',a[2][s]);i=i[a[2][s]]}else i=a[1]?r[a[1]]:r[f++];if(/[^s]/.test(a[8])&&"number"!=e(i))throw d("[sprintf] expecting number but found %s",e(i));switch(void 0!==i&&null!==i||(i=""),a[8]){case"b":i=i.toString(2);break;case"c":i=String.fromCharCode(i);break;case"d":i=parseInt(i,10);break;case"e":i=a[7]?i.toExponential(a[7]):i.toExponential();break;case"f":i=a[7]?parseFloat(i).toFixed(a[7]):parseFloat(i);break;case"o":i=i.toString(8);break;case"s":i=(i=String(i))&&a[7]?i.substring(0,a[7]):i;break;case"u":i=Math.abs(i);break;case"x":i=i.toString(16);break;case"X":i=i.toString(16).toUpperCase()}i=/[def]/.test(a[8])&&a[3]&&i>=0?"+"+i:i,c=a[4]?"0"==a[4]?"0":a[4].charAt(1):" ",u=a[6]-String(i).length,l=a[6]?t(c,u):"",m.push(a[5]?i+l:l+i)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],i=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){i|=1;var o=[],s=n[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(o.push(a[1]);""!==(s=s.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";o.push(a[1])}n[2]=o}else i|=2;if(3===i)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),m=function(e,t){return t.unshift(e),d.apply(null,t)};h.parse_plural=function(e,t){return e=e.replace(/n/g,t),h.parse_expression(e)},h.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?m(e,[].slice.call(t)):d.apply(this,[].slice.call(arguments))},h.prototype.sprintf=function(){return h.sprintf.apply(this,arguments)},h.PF={},h.PF.parse=function(e){var t=h.PF.extractPluralExpr(e);return h.PF.parser.parse.call(h.PF.parser,t)},h.PF.compile=function(e){function t(e){return!0===e?1:e||0}var n=h.PF.parse(e);return function(e){return t(h.PF.interpreter(n)(e))}},h.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return h.PF.interpreter(e.expr)(t);case"TERNARY":return h.PF.interpreter(e.expr)(t)?h.PF.interpreter(e.truthy)(t):h.PF.interpreter(e.falsey)(t);case"OR":return h.PF.interpreter(e.left)(t)||h.PF.interpreter(e.right)(t);case"AND":return h.PF.interpreter(e.left)(t)&&h.PF.interpreter(e.right)(t);case"LT":return h.PF.interpreter(e.left)(t)<h.PF.interpreter(e.right)(t);case"GT":return h.PF.interpreter(e.left)(t)>h.PF.interpreter(e.right)(t);case"LTE":return h.PF.interpreter(e.left)(t)<=h.PF.interpreter(e.right)(t);case"GTE":return h.PF.interpreter(e.left)(t)>=h.PF.interpreter(e.right)(t);case"EQ":return h.PF.interpreter(e.left)(t)==h.PF.interpreter(e.right)(t);case"NEQ":return h.PF.interpreter(e.left)(t)!=h.PF.interpreter(e.right)(t);case"MOD":return h.PF.interpreter(e.left)(t)%h.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},h.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=/plural\=(.*);/,i=e.match(n),o={};if(!(i.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(o.nplurals=i[1],e=e.replace(n,""),!((t=e.match(r))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},h.PF.parser=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return{type:"GROUP",expr:o[a-1]};case 2:this.$={type:"TERNARY",expr:o[a-4],truthy:o[a-2],falsey:o[a]};break;case 3:this.$={type:"OR",left:o[a-2],right:o[a]};break;case 4:this.$={type:"AND",left:o[a-2],right:o[a]};break;case 5:this.$={type:"LT",left:o[a-2],right:o[a]};break;case 6:this.$={type:"LTE",left:o[a-2],right:o[a]};break;case 7:this.$={type:"GT",left:o[a-2],right:o[a]};break;case 8:this.$={type:"GTE",left:o[a-2],right:o[a]};break;case 9:this.$={type:"NEQ",left:o[a-2],right:o[a]};break;case 10:this.$={type:"EQ",left:o[a-2],right:o[a]};break;case 11:this.$={type:"MOD",left:o[a-2],right:o[a]};break;case 12:this.$={type:"GROUP",expr:o[a-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||1,"number"!=typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],o=[],s=this.table,a="",l=0,c=0,u=0,f=2;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;o.push(p),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,d,m,g,y,v,b,_,x,w={};;){if(m=r[r.length-1],this.defaultActions[m]?g=this.defaultActions[m]:(null==h&&(h=t()),g=s[m]&&s[m][h]),void 0===g||!g.length||!g[0]){if(!u){x=[];for(v in s[m])this.terminals_[v]&&v>2&&x.push("'"+this.terminals_[v]+"'");var C="";C=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+this.terminals_[h]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(C,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:p,expected:x})}if(3==u){if(1==h)throw new Error(C||"Parsing halted.");c=this.lexer.yyleng,a=this.lexer.yytext,l=this.lexer.yylineno,p=this.lexer.yylloc,h=t()}for(;;){if(f.toString()in s[m])break;if(0==m)throw new Error(C||"Parsing halted.");!function(e){r.length=r.length-2*e,i.length=i.length-e,o.length=o.length-e}(1),m=r[r.length-1]}d=h,h=f,m=r[r.length-1],g=s[m]&&s[m][f],u=3}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+h);switch(g[0]){case 1:r.push(h),i.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(g[1]),h=null,d?(h=d,d=null):(c=this.lexer.yyleng,a=this.lexer.yytext,l=this.lexer.yylineno,p=this.lexer.yylloc,u>0&&u--);break;case 2:if(b=this.productions_[g[1]][1],w.$=i[i.length-b],w._$={first_line:o[o.length-(b||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(b||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(y=this.performAction.call(w,a,c,l,this.yy,g[1],i,o)))return y;b&&(r=r.slice(0,-1*b*2),i=i.slice(0,-1*b),o=o.slice(0,-1*b)),r.push(this.productions_[g[1]][0]),i.push(w.$),o.push(w._$),_=s[r[r.length-2]][r[r.length-1]],r.push(_);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t;this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return t=e[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=t,e}(),void 0!==e&&e.exports&&(t=e.exports=h),t.Jed=h}()},84:function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=n(32),o=n(85),s=n(86),a=i.rotl32,l=i.sum32,c=i.sum32_5,u=s.ft_1,f=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];i.inherits(r,f),e.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],f=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var d=~~(r/20),m=c(a(i,5),u(d,o,s,f),h,n[r],p[d]);h=f,f=s,s=a(o,30),o=i,i=m}this.h[0]=l(this.h[0],i),this.h[1]=l(this.h[1],o),this.h[2]=l(this.h[2],s),this.h[3]=l(this.h[3],f),this.h[4]=l(this.h[4],h)},r.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},85:function(e,t,n){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var i=n(32),o=n(46);t.BlockHash=r,r.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},86:function(e,t,n){"use strict";function r(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0}function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}function a(e){return p(e,2)^p(e,13)^p(e,22)}function l(e){return p(e,6)^p(e,11)^p(e,25)}function c(e){return p(e,7)^p(e,18)^e>>>3}function u(e){return p(e,17)^p(e,19)^e>>>10}var f=n(32),p=f.rotr32;t.ft_1=r,t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=a,t.s1_256=l,t.g0_256=c,t.g1_256=u},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if(n=t[r],n.value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}function o(e,t){var n,r,s,l,u,p,h,m,g,y,v=[],b={};for(p=0;p<e.length;p++)if(u=e[p],"string"!==u.type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==a(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+d);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){n=t[u.value],s=p;break}v.push(t[u.value])}else v.push(u.value);return n&&(l=i(s,e),h=e.slice(s+1,l),m=o(h,t),r=c.default.cloneElement(n,{},m),v.push(r),l<e.length-1&&(g=e.slice(l+1),y=o(g,t),v=v.concat(y))),1===v.length?v[0]:(v.forEach(function(e,t){e&&(b["interpolation-child-"+t]=e)}),(0,f.default)(b))}function s(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(d=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,h.default)(t);try{return o(i,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(0),c=r(l),u=n(88),f=r(u),p=n(90),h=r(p),d=void 0;t.default=s},88:function(e,t,n){"use strict";function r(e){var t=e&&(x&&e[x]||e[w]);if("function"==typeof t)return t}function i(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e,t){return e&&"object"==typeof e&&null!=e.key?i(e.key):t.toString(36)}function s(e,t,n,i){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===m)return n(i,e,""===t?b+o(e,0):t),1;var l,c,u=0,f=""===t?b:t+_;if(Array.isArray(e))for(var p=0;p<e.length;p++)l=e[p],c=f+o(l,p),u+=s(l,c,n,i);else{var h=r(e);if(h)for(var d,g=h.call(e),v=0;!(d=g.next()).done;)l=d.value,c=f+o(l,v++),u+=s(l,c,n,i);else if("object"===a){var x="",w=""+e;y(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,x)}}return u}function a(e,t,n){return null==e?0:s(e,"",t,n)}function l(e){return(""+e).replace(C,"$&/")}function c(e,t){return d.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}function u(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function f(e,t,n){var r=e.result,i=e.keyPrefix,o=e.func,s=e.context,a=o.call(s,t,e.count++);Array.isArray(a)?p(a,r,n,g.thatReturnsArgument):null!=a&&(d.isValidElement(a)&&(a=c(a,i+(!a.key||t&&t.key===a.key?"":l(a.key)+"/")+n)),r.push(a))}function p(e,t,n,r,i){var o="";null!=n&&(o=l(n)+"/");var s=u.getPooled(t,o,r,i);a(e,f,s),u.release(s)}function h(e){if("object"!=typeof e||!e||Array.isArray(e))return v(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(d.isValidElement(e))return v(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;y(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)p(e[n],t,n,g.thatReturnsArgument);return t}var d=n(0),m="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,g=n(49),y=n(50),v=n(89),b=".",_=":",x="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",C=/\/+/g,E=k,k=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},S=function(e){var t=this;y(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},O=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)};u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var n=e;n.instancePool=[],n.getPooled=t||E,n.poolSize||(n.poolSize=10),n.release=S}(u,O);e.exports=h},89:function(e,t,n){"use strict";var r=n(49),i=r;e.exports=i},90:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},91:function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),i.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}var i=n(48),o=n(47);e.exports=r,o(r,i.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},r.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.prototype.set=function(e,t){"string"!=typeof e&&(e=""+e);var n;if(this.cache.hasOwnProperty(e)){if(n=this.cache[e],n.value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},r.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},r.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},92:function(e,t){/**
|
16 |
* Exposes number format capability
|
17 |
*
|
18 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
19 |
* @license See CREDITS.md
|
20 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
21 |
*/
|
22 |
+
function n(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,a=void 0===n?".":n,l="";return l=(o?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(a)}e.exports=n},93:function(e,t,n){var r=n(0),i=n(51),o=n(94);e.exports=function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var s=n.displayName||n.name||"",a=o({displayName:"Localized("+s+")",componentDidMount:function(){this.boundForceUpdate=this.forceUpdate.bind(this),e.stateObserver.addListener("change",this.boundForceUpdate)},componentWillUnmount:function(){this.boundForceUpdate&&e.stateObserver.removeListener("change",this.boundForceUpdate)},render:function(){var e=i({},this.props,t);return r.createElement(n,e)}});return a._composedComponent=n,a}}},94:function(e,t,n){"use strict";var r=n(0),i=n(95);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},95:function(e,t,n){"use strict";function r(e){return e}function i(e,t,n){function i(e,t){var n=v.hasOwnProperty(t)?v[t]:null;C.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function c(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;n.hasOwnProperty(l)&&_.mixins(e,n.mixins);for(var s in n)if(n.hasOwnProperty(s)&&s!==l){var c=n[s],u=r.hasOwnProperty(s);if(i(u,s),_.hasOwnProperty(s))_[s](e,c);else{var f=v.hasOwnProperty(s),d="function"==typeof c,m=d&&!f&&!u&&!1!==n.autobind;if(m)o.push(s,c),r[s]=c;else if(u){var g=v[s];a(f&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,s),"DEFINE_MANY_MERGED"===g?r[s]=p(r[s],c):"DEFINE_MANY"===g&&(r[s]=h(r[s],c))}else r[s]=c}}}else;}function u(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var i=n in _;a(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var o=n in e;if(o){var s=b.hasOwnProperty(n)?b[n]:null;return a("DEFINE_MANY_MERGED"===s,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],r))}e[n]=r}}}function f(e,t){a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return f(i,n),f(i,r),i}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function d(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=d(e,i)}}function g(e){var t=r(function(e,r,i){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=r,this.refs=s,this.updater=i||n,this.state=null;var o=this.getInitialState?this.getInitialState():null;a("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o});t.prototype=new E,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],y.forEach(c.bind(null,t)),c(t,x),c(t,e),c(t,w),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var i in v)t.prototype[i]||(t.prototype[i]=null);return t}var y=[],v={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},_={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=o({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=o({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=o({},e.propTypes,t)},statics:function(e,t){u(e,t)},autobind:function(){}},x={componentDidMount:function(){this.__isMounted=!0}},w={componentWillUnmount:function(){this.__isMounted=!1}},C={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},E=function(){};return o(E.prototype,e.prototype,C),g}var o=n(96),s=n(97),a=n(50),l="mixins";e.exports=i},96:function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
|
23 |
object-assign
|
24 |
(c) Sindre Sorhus
|
25 |
@license MIT
|
26 |
*/
|
27 |
+
var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var u in n)o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var f=0;f<a.length;f++)s.call(n,a[f])&&(l[a[f]]=n[a[f]])}}return l}},97:function(e,t,n){"use strict";var r={};e.exports=r}});
|
assets/js/form-scripts.js
CHANGED
@@ -1,25 +1,25 @@
|
|
1 |
-
!function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=270)}([function(e,t){e.exports=React},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function l(){return"wrapper-"+n()+"-"+n()}function o(e,t){var a=void 0;return t.map(function(t){t.wrapper_id===e&&(a=t)}),a}function i(e,t){return"basic"!==u(e)?t:""}function s(e){return"basic"===u(e)?"basic-":""}function u(e){return void 0!==e.formDesign?e.formDesign:void 0!==e.settings&&void 0!==e.settings["forminator-poll-design"]?e.settings["forminator-poll-design"]:void 0!==e.quizDesign?e.quizDesign:""}function c(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function p(e,t){var a=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,n=r.split("-");"page-break"===t.type?a.push(parseInt(n[2])):a.push(parseInt(n[1]))}})});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function f(e,t){var a=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");a.push(parseInt(r[1]))});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function d(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function h(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9\/\- ]/g,"").trim(),e=e.replace(/\s+|\//g,"-")}function m(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0}function b(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function y(e,t){var a=[];return b(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),a.push({value:t.element_id,label:r,element_id:t.element_id})}),a}function v(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function g(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function E(e,t,a,r){var n=p(e.type,r);return _.extend(e,{element_id:e.type+"-"+n,formID:t,cols:a})}function w(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=p(r.type,t);return _.extend({element_id:r.type+"-"+n,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:a},JSON.parse(JSON.stringify(r.defaults)))}function O(e){return e.type}function P(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function x(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function k(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function j(){return Z.default.translate.apply(null,arguments)}function N(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[j("None")]:a[0].variants}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}function S(e,t,a){var r=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]);var n=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(n=!0),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=C(a)):a=e.field_label,"name"===e.type?r=r.concat(F(e,a)):"address"===e.type?r=r.concat(U(e,a)):"time"===e.type?r=r.concat(I(e,a)):"date"===e.type&&"picker"!==e.field_type&&!1===n||r.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:R(e),hasOptions:V(e),hasCalcs:M(e),formula:A(e),isNumber:D(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(r=r.concat(T(e,a)))}})}),r}function T(e,t){var a=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+j("Day"):t+" - "+e.day_label;var n=void 0;n=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+j("Month"):t+" - "+e.month_label;var l=void 0;return l=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+j("Year"):t+" - "+e.year_label,"input"===e.field_type?a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:l,values:!1,hasOptions:!1,isNumber:!0}):a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:R(e),hasOptions:V(e),isNumber:D(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:R(e),hasOptions:V(e),isNumber:D(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:l,values:R(e),hasOptions:V(e),isNumber:D(e)}),a}function F(e,t){var a=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Mx.",value:"Mx"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):a.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:R(e),hasOptions:V(e),isNumber:D(e)}),a}function D(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function M(e){return"true"===e.calculations||!0===e.calculations}function A(e){return!!e.formula&&e.formula}function V(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function R(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function U(e,t){var a=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),a}function I(e,t){var a=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+j("Hour"):t+" - "+e.hh_label;var n=void 0;return n=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+j("Minute"):t+" - "+e.mm_label,a.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:n,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&a.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),a}function L(e){var t=[],a=forminatorData.fields.filter(function(t){return t.type===e});return a.length<1?[]:(a=a[0],_.isUndefined(a.autofill_settings)||(t=a.autofill_settings),t)}function B(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":if("checkbox"===t)return j("is having");if("checkbox"!==t)return j("is");case"is_not":if("checkbox"===t)return j("is not having");if("checkbox"!==t)return j("is not");case"day_is":return j("day is");case"day_is_not":return j("day is not");case"month_is_not":return j("month is not");case"month_is":return j("month is");case"is_before":return j("is before");case"is_after":return j("is after");case"is_before_n_or_more_days":return j("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return j("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return j("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return j("is after less than %s days from current date").replace("%s",r);case"is_great":return j("is greater than");case"is_less":return j("is less than");case"contains":return j("contains");case"starts":return j("starts with");case"ends":return j("ends with");case"is_correct":return j("is correct");case"is_incorrect":return j("is incorrect");case"is_final_result":return j("is final result");case"is_not_final_result":return j("is not final result");default:return"-"}}function q(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var a=t[1],r=a.split(".");if(r.length<2)return!1;for(var n=r.length,l=0;l<n;l++)if(!r[l].match(/^[a-z0-9-]+$/i))return!1;return!0}function W(){"object"===K(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function $(e){var t="none";return K(e["results-behav"])&&K(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function z(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),S(e,t)}function Y(e,t){t=_.defaults(t,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){var t=e.params.data.element,a=jQuery(t),r=jQuery(this);r.append(a),r.trigger("change.select2")}),jQuery(this).SUIselect2(t)})}function H(e){return"name"!==e.type||"true"!==e.multiple_name&&!0!==e.multiple_name?"address"===e.type?!!(e.street_address_required||e.address_line_required||e.address_city_required||e.address_state_required||e.address_zip_required||e.address_country_required):e.required:!!(e.prefix_required||e.fname_required||e.mname_required||e.lname_required)}function Q(e,t,a,r){var n=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0}function G(e){var t=0;return e.map(function(e){e.fields.map(function(e){var a=forminatorData.postCategories[e.post_type];void 0!==a&&a.map(function(a){var r=a.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0}function J(e,t){var a=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,n){t.result===a&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}Object.defineProperty(t,"__esModule",{value:!0});var K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.randNumber=n,t.generateWrapperId=l,t.getWrapper=o,t.getDefaultValue=i,t.getThemePrefix=s,t.countFieldsByType=c,t.getMaxIDByType=p,t.getMaxID=f,t.generateValue=d,t.formatValue=h,t.hasFieldType=m,t.getFieldsByType=b,t.mapFieldsByType=y,t.getFieldLabel=v,t.fieldExist=g,t.buildFieldObject=E,t.buildFieldObjectFromSlug=w,t.getFieldType=O,t.getForminatorField=P,t.insertInPosition=x,t.replaceInPosition=k,t.translate=j,t.getFontVariants=N,t.ucfirst=C,t.getFields=S,t.getDateFields=T,t.getNameFields=F,t.fieldHasNumber=D,t.fieldHasCalcs=M,t.fieldFormula=A,t.fieldHasOptions=V,t.getFieldValues=R,t.getAddressFields=U,t.getTimeFields=I,t.getFieldAutofillProviders=L,t.getRuleLabel=B,t.isEmailWp=q,t.suiDelegateEvents=W,t.getChartType=$,t.getCalculationFields=z,t.select2Tags=Y,t.isFieldRequired=H,t.hasFieldWithAttribute=Q,t.hasPostdataFieldWithMultiselect=G,t.getPersonalityQuestions=J;var X=a(44),Z=function(e){return e&&e.__esModule?e:{default:e}}(X)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),i(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"text":this.props.type,r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",l=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,i=_.isUndefined(this.props.inputClass)?"sui-form-control":"sui-form-control "+this.props.inputClass,s=_.isUndefined(this.props.inputId)?this.props.property:this.props.inputId,p=void 0;this.props.label&&(p=u.default.createElement("label",{htmlFor:"forminator-field-"+s,className:this.props.darkLabel?"sui-settings-label sui-dark":"sui-label"},this.props.label,this.props.isRequired&&u.default.createElement(u.default.Fragment,null," ",u.default.createElement("span",{className:"sui-error"},"*")),this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var f=u.default.createElement("input",o({type:a,placeholder:this.props.placeholder,value:t||"",id:"forminator-field-"+s,className:i},this.props.notWritable&&{readonly:""},this.props.minValue&&{min:this.props.minValue},this.props.maxValue&&{max:this.props.maxValue},this.props.maxLength&&{maxlength:this.props.maxLength},this.props.inputStyles&&{style:this.props.inputStyles},{disabled:!!this.props.disabled,onChange:function(t){e.updateValue(t.target.value)}})),d=u.default.createElement("div",{className:l+" "+n},p,this.props.canTrash?u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},f,u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-right","data-tooltip":(0,c.translate)("Delete")},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))):f,this.props.suffix&&u.default.createElement("span",{className:"sui-field-suffix"},this.props.suffix),this.props.isRequired&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},r),!_.isUndefined(this.props.isPositive)&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Please enter valid number.")),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.simple?f:d}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",null,e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=this.props.customClass?this.props.customClass:"";return s.default.createElement("div",{className:"sui-col-md-"+this.props.cols+" "+t},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"toggleValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"getDefaultValue",value:function(){var e=this.props.default?this.props.default:"";return _.isUndefined(this.props.settings[this.props.property])?e:this.props.settings[this.props.property]}},{key:"render",value:function(){var e=this,t=this.getDefaultValue(),a=s.default.Children.map(this.props.children,function(a){if(!a)return s.default.createElement(s.default.Fragment,null);var r=_.isUndefined(a.props.label)?a.props.children:a.props.label;return e.props.disabled?s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),style:{opacity:.5,cursor:"not-allowed"}},r):e.props.disabled?void 0:s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),onClick:e.toggleValue.bind(e,a.props.value)},r)}),r=_.isUndefined(this.props.divClass)?"sui-tabs-content":"sui-tabs-content "+this.props.divClass,n=s.default.Children.map(this.props.children,function(e){if(!e)return s.default.createElement(s.default.Fragment,null);var a=_.isUndefined(e.props.boxClass)?"":e.props.boxClass;return"Empty"!==e.type.name?s.default.createElement("div",{className:a+" sui-tab-content"+(e.props.value===t?" active":"")},e.props.value===t&&e):s.default.createElement(s.default.Fragment,null)}),l="";this.props.label&&""!==this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note)));var o="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(o=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var u=s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(u=s.default.createElement("div",{className:"sui-form-field"},o,l,i,s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.wpColorPicker({change:function(e,t){jQuery(this).val(t.color.toCSS()).trigger("change")},palettes:["#333333","#FFFFFF","#17A8E3","#E1F6FF","#666666","#AAAAAA","#E6E6E6"]});var e=this.$el,t=e.closest(".sui-colorpicker-wrap"),a=t.find(".sui-colorpicker-value span[role=button]"),r=t.find(".sui-colorpicker-value"),n=r.find("button"),l=e.closest(".wp-picker-container"),o=l.find(".wp-color-result"),i=o.find(".color-alpha"),s=l.find(".wp-picker-clear"),u=i;u=!0===e.data("alpha")?i:o,e.bind("change",function(){a.find("span").css({"background-color":u.css("background-color")}),r.find("input").val(e.val())}),t.find(".sui-button, span[role=button]").on("click",function(e){e.preventDefault(),e.stopPropagation(),o.click()}),n.on("click",function(e){e.preventDefault(),e.stopPropagation(),s.click(),r.find("input").val(""),a.find("span").css({"background-color":""})}),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||null===this.props.settings[this.props.property]?this.props.defaultValue:this.props.settings[this.props.property],a="";return this.props.label&&(a=s.default.createElement("label",{className:"sui-label",htmlFor:"forminator-color-"+this.props.property},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note))),s.default.createElement("div",{className:"sui-form-field"},a,s.default.createElement("div",{className:"sui-colorpicker-wrap"},s.default.createElement("div",{className:"sui-colorpicker sui-colorpicker-"+(this.props.isAlpha?"rgba":"hex"),"aria-hidden":"true"},s.default.createElement("div",{className:"sui-colorpicker-value"},s.default.createElement("span",{role:"button"},s.default.createElement("span",{style:{backgroundColor:t}})),s.default.createElement("input",{type:"text",defaultValue:t,readOnly:"readonly"}),s.default.createElement("button",null,s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}))),s.default.createElement("button",{className:"sui-button"},(0,u.translate)("Select"))),s.default.createElement("input",{ref:function(t){return e.el=t},defaultValue:t,id:"forminator-color-"+this.props.property,className:"sui-colorpicker-input","data-alpha":this.props.isAlpha?"true":"false"})),this.props.description&&""!==this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){e.exports=a(104)()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(103),n=a(57),l=a(107);a.d(t,"Provider",function(){return r.b}),a.d(t,"createProvider",function(){return r.a}),a.d(t,"connectAdvanced",function(){return n.a}),a.d(t,"connect",function(){return l.a})},function(e,t,a){"use strict";function r(e){if("object"!==(void 0===e?"undefined":h(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function n(e,t,a){function l(){v===y&&(v=y.slice())}function o(){if(g)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return b}function i(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(g)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return l(),v.push(e),function(){if(t){if(g)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,l();var a=v.indexOf(e);v.splice(a,1)}}}function s(e){if(!r(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,b=m(b,e)}finally{g=!1}for(var t=y=v,a=0;a<t.length;a++){(0,t[a])()}return e}function u(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");m=e,s({type:d.REPLACE})}function c(){var e,t=i;return e={subscribe:function(e){function a(){e.next&&e.next(o())}if("object"!==(void 0===e?"undefined":h(e))||null===e)throw new TypeError("Expected the observer to be an object.");return a(),{unsubscribe:t(a)}}},e[f.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error("Expected the enhancer to be a function.");return a(n)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var m=e,b=t,y=[],v=y,g=!1;return s({type:d.INIT}),p={dispatch:s,subscribe:i,getState:o,replaceReducer:u},p[f.a]=c,p}function l(e,t){var a=t&&t.type;return"Given "+(a&&'action "'+String(a)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function o(e){Object.keys(e).forEach(function(t){var a=e[t];if(void 0===a(void 0,{type:d.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===a(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),a={},r=0;r<t.length;r++){var n=t[r];"function"==typeof e[n]&&(a[n]=e[n])}var i=Object.keys(a),s=void 0;try{o(a)}catch(e){s=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,n={},o=0;o<i.length;o++){var u=i[o],c=a[u],p=e[u],f=c(p,t);if(void 0===f){var d=l(u,t);throw new Error(d)}n[u]=f,r=r||f!==p}return r?n:e}}function s(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if("function"==typeof e)return s(e,t);if("object"!==(void 0===e?"undefined":h(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":h(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var a=Object.keys(e),r={},n=0;n<a.length;n++){var l=a[n],o=e[l];"function"==typeof o&&(r[l]=s(o,t))}return r}function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function p(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return function(){for(var a=arguments.length,r=Array(a),n=0;n<a;n++)r[n]=arguments[n];var l=e.apply(void 0,r),o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:l.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return o=c.apply(void 0,s)(l.dispatch),m({},l,{dispatch:o})}}}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"createStore",function(){return n}),a.d(t,"combineReducers",function(){return i}),a.d(t,"bindActionCreators",function(){return u}),a.d(t,"applyMiddleware",function(){return p}),a.d(t,"compose",function(){return c}),a.d(t,"__DO_NOT_USE__ActionTypes",function(){return d});var f=a(110),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-row"+(_.isUndefined(this.props.class)?"":" "+this.props.class)},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e){return"[object Array]"===P.call(e)}function n(e){return"[object ArrayBuffer]"===P.call(e)}function l(e){return"undefined"!=typeof FormData&&e instanceof FormData}function o(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function i(e){return"string"==typeof e}function s(e){return"number"==typeof e}function u(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===P.call(e)}function f(e){return"[object File]"===P.call(e)}function d(e){return"[object Blob]"===P.call(e)}function h(e){return"[object Function]"===P.call(e)}function m(e){return c(e)&&h(e.pipe)}function b(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function g(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.call(null,e[l],l,e)}function E(){function e(e,a){"object"==typeof t[a]&&"object"==typeof e?t[a]=E(t[a],e):t[a]=e}for(var t={},a=0,r=arguments.length;a<r;a++)g(arguments[a],e);return t}function _(e,t,a){return g(t,function(t,r){e[r]=a&&"function"==typeof t?w(t,a):t}),e}var w=a(70),O=a(152),P=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:n,isBuffer:O,isFormData:l,isArrayBufferView:o,isString:i,isNumber:s,isObject:c,isUndefined:u,isDate:p,isFile:f,isBlob:d,isFunction:h,isStream:m,isURLSearchParams:b,isStandardBrowserEnv:v,forEach:g,merge:E,extend:_,trim:y}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=_.isUndefined(this.props.elementClass)?"":this.props.elementClass,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,l="";this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,id:"forminator-field-"+this.props.property+"-label",className:"sui-label"},this.props.label," ",this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var o=s.default.createElement("select",{defaultValue:t,id:"forminator-field-"+n,className:r,"aria-labelledby":"forminator-field-"+n+"-label",ref:function(t){return e.el=t}},this.props.children),i=o;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-md"},o):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-sm"},o):""!==this.props.fieldSize&&(i=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},o));var u=i;return this.props.simple||(u=s.default.createElement("div",{className:a},l,i,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={active:a.props.default?a.props.default:""},a}return l(t,e),o(t,[{key:"toggleValue",value:function(e){this.setState({active:e})}},{key:"render",value:function(){var e=this,t=(this.props.default&&this.props.default,this.props.type?this.props.type:"side-tabs"),a=this.props.extraClass?this.props.extraClass:"",r=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t))return s.default.createElement("div",{className:"forminator-toggle sui-tab-item"+(t.props.value===e.state.active?" active":""),onClick:e.toggleValue.bind(e,t.props.value)},t.props.label," ",t.props.required&&s.default.createElement("span",{className:"sui-error"},"*"))}),n=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t)){var a=_.isUndefined(t.props.boxClass)?"sui-tab-content":t.props.boxClass;return s.default.createElement("div",{className:a+(t.props.value===e.state.active?" active":"")},t.props.value===e.state.active&&t)}});return s.default.createElement("div",{className:"sui-"+t+" "+a},s.default.createElement("div",{className:"sui-tabs-menu"},r),s.default.createElement("div",{className:"sui-tabs-content"},n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0);!function(e){e&&e.__esModule}(n)},function(e,t,a){"use strict";var r=function(e,t,a,r,n,l,o,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[a,r,n,l,o,i],c=0;s=new Error(t.replace(/%s/g,function(){return u[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t="";this.props.label&&""!==this.props.label&&(t=s.default.createElement("span",{className:"sui-settings-label"},this.props.label));var a="";this.props.description&&""!==this.props.description&&(a=s.default.createElement("span",{className:"sui-description"},this.props.description));var r="";return(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(r=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a)),s.default.createElement("div",{className:"sui-box-settings-row"},r,s.default.createElement("div",{className:"sui-box-settings-col-2"},e))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"updateValue",value:function(e){if("function"==typeof this.props.updateProperty){if(this.props.updateProperty(this.props.property,e),"true"===this.props.clearOptions&&"single"===e){var t=[];_.each(this.props.state.options,function(e){e.default=!1,t.push(e)}),this.props.updateProperty("options",t)}}else this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=u.default.Children.map(this.props.children,function(a){return u.default.createElement("button",o({id:"tab-option-"+a.props.value,role:"tab",className:"forminator-toggle sui-tab-item "+(a.props.value===t?"active":""),"aria-selected":a.props.value===t?"true":"false"},a.props.value!==t&&{tabIndex:"-1"},{onClick:e.updateValue.bind(e,a.props.value)}),a.props.children)}),r="";this.props.label&&""!==this.props.label&&(r=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var n="";this.props.description&&""!==this.props.description&&(n=u.default.createElement("span",{className:"sui-description"},this.props.description));var l="";!this.props.label&&this.props.settingsLabel&&(l=u.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=u.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var s=u.default.createElement("div",{className:"sui-side-tabs",style:this.props.description&&{marginBottom:"5px"}},u.default.createElement("div",{className:"sui-tabs-menu",role:"tablist"},a)),c=u.default.createElement(u.default.Fragment,null,r,s);return this.props.noWrapper||(c=u.default.createElement("div",{className:"sui-form-field"},r,l,i,s,n)),c}}]),t}(s.Component);t.default=c},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(126);a.d(t,"BrowserRouter",function(){return r.a});var n=a(132);a.d(t,"HashRouter",function(){return n.a});var l=a(64);a.d(t,"Link",function(){return l.a});var o=a(133);a.d(t,"MemoryRouter",function(){return o.a});var i=a(135);a.d(t,"NavLink",function(){return i.a});var s=a(137);a.d(t,"Prompt",function(){return s.a});var u=a(139);a.d(t,"Redirect",function(){return u.a});var c=a(65);a.d(t,"Route",function(){return c.a});var p=a(37);a.d(t,"Router",function(){return p.a});var f=a(141);a.d(t,"StaticRouter",function(){return f.a});var d=a(143);a.d(t,"Switch",function(){return d.a});var h=a(145);a.d(t,"generatePath",function(){return h.a});var m=a(146);a.d(t,"matchPath",function(){return m.a});var b=a(147);a.d(t,"withRouter",function(){return b.a})},function(e,t,a){"use strict";var r=a(127);a.d(t,"a",function(){return r.a});var n=a(130);a.d(t,"b",function(){return n.a});var l=a(131);a.d(t,"d",function(){return l.a});var o=a(31);a.d(t,"c",function(){return o.a}),a.d(t,"f",function(){return o.b});var i=a(27);a.d(t,"e",function(){return i.b})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=Object.assign({dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(e):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(e):console.log("select2 not intiated"),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue),this.props.triggerChange&&this.$el.trigger("change")}},{key:"updateValue",value:function(e){var t=jQuery(e.target).val();"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t),this.afterSave(t)}},{key:"afterSave",value:function(){return!1}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=void 0;this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var n=this.props.multiple,l=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children),o=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?o=s.default.createElement("div",{className:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?o=s.default.createElement("div",{className:"sui-form-field sui-input-sm"},l):""===this.props.fieldSize&&(o=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},l)),this.props.noWrapper?l:s.default.createElement("div",{className:a},r,o,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),t}(i.Component);t.default=u},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(305),d=r(f),h=a(18),m=r(h),b=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers,null,{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),a.fields=_.filter(a.fields,function(e){return"stripe"!==e.field_type&&"paypal"!==e.field_type&&"page-break"!==e.field_type&&"pagination"!==e.field_type&&"section"!==e.field_type&&"html"!==e.field_type}),"address"!==a.props.state.type&&"date"!==a.props.state.type&&"time"!==a.props.state.type||(a.fields=_.filter(a.fields,function(e){return!e.element_id.startsWith(a.props.state.element_id)})),a.validateConditions(),a}return o(t,e),s(t,[{key:"updateState",value:function(e){this.props.updateProperty("conditions",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.conditions,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateField",value:function(e,t){var a=this.getPropState();a[e].element_id=t,a[e].rule="is",a[e].value="",this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"updateInputValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"removeRule",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addRule",value:function(){var e=this.getPropState(),t=_.isUndefined(this.fields[0])?"":this.fields[0].element_id;e.push({element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.conditions,"element_id"),t=_.pluck(this.fields,"element_id"),a=_.difference(e,t);_.isUndefined(a)||this.removeCondition(a)}},{key:"removeCondition",value:function(e){var t=this.getPropState(),a=_.filter(t,function(t){return!_.contains(e,t.element_id)});this.updateState(a)}},{key:"render",value:function(){var e=this,t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,property:"condition_action",defaultValue:"show",noWrapper:!0}),c.default.createElement("span",{value:"show"},(0,p.translate)("Show")),c.default.createElement("span",{value:"hide"},(0,p.translate)("Hide"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("this field if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,property:"condition_rule",defaultValue:"all",noWrapper:!0}),c.default.createElement("span",{value:"all"},(0,p.translate)("All")),c.default.createElement("span",{value:"any"},(0,p.translate)("Any"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("of the following rules match:")))),a=c.default.createElement("div",{className:"fui-visibility-group"},this.props.wrappers.length<2&&this.fields.length<2&&_.isEmpty(this.fields)&&c.default.createElement("div",{className:"sui-notice sui-notice-error fui-visibility-notice"},c.default.createElement("p",null,(0,p.translate)("You need more than one field to configure visibility conditions. Add more fields!"))),(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-empty-message"},(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("button",{accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Rule")),c.default.createElement("p",null,(0,p.translate)("By default field will always be visible. If you want to hide or show fields based on user input you can add conditions.")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))));return(_.isUndefined(this.props.state.conditions)||0===this.props.state.conditions.length)&&c.default.createElement(c.default.Fragment,null,a),!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},(this.props.wrappers.length>1||this.fields.length>0)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.conditions,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateField:e.updateField,updateRule:e.updateRule,updateValue:e.updateValue,updateInputValue:e.updateInputValue,fields:e.fields}))}))),c.default.createElement("button",{className:"sui-button sui-button-blue",accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Rule"))):c.default.createElement(c.default.Fragment,null,a)}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state["custom-class"])?"":this.props.state["custom-class"];return s.default.createElement("div",null,s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-1"},s.default.createElement("span",{className:"sui-settings-label"},(0,u.translate)("Additional CSS Classes")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Add classes that will be output on this field's container to aid your theme's default styling."))),s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("E.g. form-field"),className:"sui-form-control",value:t,onChange:function(t){e.props.updateProperty("custom-class",t.target.value)}}),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("These will be output as you see them here.")))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,r=!_.isUndefined(this.props.disabled)&&this.props.disabled,n=t&&!r,l=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",value:"true",id:"forminator-field-"+this.props.property,className:a,disabled:r?"disabled":"",checked:n?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&s.default.createElement(s.default.Fragment,null,s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label),s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle-label"},this.props.label))),o="";return this.props.children&&(_.isUndefined(this.props.settings[this.props.property])||this.props.settings[this.props.property])&&(o=s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{tabindex:"0",class:"sui-toggle-content sui-border-frame","aria-label":this.props.label},this.props.children))),this.props.unWrap?s.default.createElement(s.default.Fragment,null,l,o,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)):this.props.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},l,o,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return l}),a.d(t,"e",function(){return o}),a.d(t,"g",function(){return i}),a.d(t,"d",function(){return s}),a.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},l=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},o=function(e,t){return l(e,t)?e.substr(t.length):e},i=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},s=function(e){var t=e||"/",a="",r="",n=t.indexOf("#");-1!==n&&(r=t.substr(n),t=t.substr(0,n));var l=t.indexOf("?");return-1!==l&&(a=t.substr(l),t=t.substr(0,l)),{pathname:t,search:"?"===a?"":a,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,a=e.search,r=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),r&&"#"!==r&&(n+="#"===r.charAt(0)?r:"#"+r),n}},,function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.updateEditor=a.updateEditor.bind(a),a.toggleOptions=a.toggleOptions.bind(a),a.state={editorOptionsOpen:!1},a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),setTimeout(function(){e.initEditor()},50)}},{key:"initEditor",value:function(){var e=this;if(_.isUndefined(wp.editor)||"undefined"==typeof tinyMCE)return void setTimeout(function(){e.initEditor()},50);var t={};_.isUndefined(this.props.allowButtonOnclick)||(t.extended_valid_elements="button[onclick|accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|style|tabindex|title|type|value]"),_.isUndefined(this.props.cutomTinymce)||(t.toolbar1=this.props.cutomTinymce),_.isEmpty(t)&&(t=!0),wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:t,quicktags:!0}),this.bindEvents()}},{key:"bindEvents",value:function(){var e=this;if(this.editor=tinyMCE.get("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),null===this.editor)return void setTimeout(function(){e.bindEvents()},50);this.editor.on("keyup",this.updateEditor),this.editor.on("change",this.updateEditor)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateEditor),wp.editor.remove("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),this.$el.unbind().removeData()}},{key:"updateEditor",value:function(){var e=this.editor.getContent();this.updateValue(e)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"toggleOptions",value:function(){this.state.editorOptionsOpen?this.setState({editorOptionsOpen:!1}):this.setState({editorOptionsOpen:!0})}},{key:"insertContent",value:function(e){this.editor.insertContent("{"+e+"}"),this.toggleOptions()}},{key:"getDisabledFields",value:function(){var e=["captcha","product","hidden","page-break","postdata","total","upload","stripe","paypal","password"];return!_.isUndefined(this.props.enablePostData)&&this.props.enablePostData&&!_.isUndefined(this.props.enableUpload)&&this.props.enableUpload&&(e=["captcha","product","hidden","page-break","total","stripe","paypal","password"]),e}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.required)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))}),r=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,n=_.map(t,function(t,a){if(!t.required&&r!==t.field_type)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))});return s.default.createElement(s.default.Fragment,null,a&&a.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Required Fields"))),s.default.createElement(s.default.Fragment,null,a)),n&&n.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Optional Fields"))),s.default.createElement(s.default.Fragment,null,n)))}},{key:"getMiscData",value:function(){var e=this,t=_.isEmpty(this.props.editorOptions)?[]:this.props.editorOptions;return s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Misc Data"))),_.map(t,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=(0,u.getFieldsByType)("paypal",this.props.wrappers),a=(0,u.getFieldsByType)("stripe",this.props.wrappers),r=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(t)||!_.isEmpty(a))return s.default.createElement(s.default.Fragment,null,this.props.paymentOptions&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Payment Data"))),_.map(r,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getEditorOptions",value:function(){var e=this;if(this.props.hideEditorOptions)return"";var t=this.props.disableMiscData?"":this.getMiscData(),a=this.props.enableFormData?this.getPaymentData():"",r=this.props.enableFormData?this.getFormData():"",n=this.props.mainOptions?this.props.mainOptions:{form_name:(0,u.translate)("Form Name")};return s.default.createElement("ul",{className:this.state.editorOptionsOpen?"sui-active":""},this.props.enableAllFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_fields")},(0,u.translate)("All Form Fields"))),this.props.enableAllNonFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_non_empty_fields")},(0,u.translate)("All Non Empty Fields"))),r,s.default.createElement(s.default.Fragment,null,this.props.mainOptionsLabel&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,this.props.mainOptionsLabel)),_.map(n,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))})),t,a)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=this.getEditorOptions(),r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",l=void 0;_.isEmpty(a)||(l=s.default.createElement("div",{className:"sui-editor-options"},s.default.createElement("button",{className:this.state.editorOptionsOpen?"sui-tooltip sui-active":"sui-tooltip","data-tooltip":(0,u.translate)("Add form data"),onClick:this.toggleOptions},s.default.createElement("i",{className:"sui-icon-layout sui-sm","aria-hidden":"true"})),a));var o="";return this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),className:"sui-label"},this.props.label," ",this.props.isRequired&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field "+n},o,this.props.descriptionTop&&s.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),s.default.createElement("div",{className:"sui-editor"+(_.isEmpty(a)?"":" sui-editor-with-options")},l,s.default.createElement("textarea",{id:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)}})),this.props.isRequired&&!this.isValid(t)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"b",function(){return s});var r=a(128),n=a(129),l=a(27),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(e,t,a,n){var i=void 0;"string"==typeof e?(i=Object(l.d)(e),i.state=t):(i=o({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return a&&(i.key=a),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(r.a)(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i},s=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(n.a)(e.state,t.state)}},function(e,t,a){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)a.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),l=n>>8,o=255&n;l?a.push(l,o):a.push(o)}else for(r=0;r<e.length;r++)a[r]=0|e[r];return a}function n(e){for(var t="",a=0;a<e.length;a++)t+=i(e[a].toString(16));return t}function l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var a="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=l(n)),a+=s(n.toString(16))}return a}function i(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,a,r){var n=a-t;N(n%4==0);for(var l=new Array(n/4),o=0,i=t;o<l.length;o++,i+=4){var s;s="big"===r?e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]:e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i],l[o]=s>>>0}return l}function c(e,t){for(var a=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var l=e[r];"big"===t?(a[n]=l>>>24,a[n+1]=l>>>16&255,a[n+2]=l>>>8&255,a[n+3]=255&l):(a[n+3]=l>>>24,a[n+2]=l>>>16&255,a[n+1]=l>>>8&255,a[n]=255&l)}return a}function p(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function d(e,t){return e+t>>>0}function h(e,t,a){return e+t+a>>>0}function m(e,t,a,r){return e+t+a+r>>>0}function b(e,t,a,r,n){return e+t+a+r+n>>>0}function y(e,t,a,r){var n=e[t],l=e[t+1],o=r+l>>>0,i=(o<r?1:0)+a+n;e[t]=i>>>0,e[t+1]=o}function v(e,t,a,r){return(t+r>>>0<t?1:0)+e+a>>>0}function g(e,t,a,r){return t+r>>>0}function E(e,t,a,r,n,l,o,i){var s=0,u=t;return u=u+r>>>0,s+=u<t?1:0,u=u+l>>>0,s+=u<l?1:0,u=u+i>>>0,s+=u<i?1:0,e+a+n+o+s>>>0}function _(e,t,a,r,n,l,o,i){return t+r+l+i>>>0}function w(e,t,a,r,n,l,o,i,s,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+l>>>0,c+=p<l?1:0,p=p+i>>>0,c+=p<i?1:0,p=p+u>>>0,c+=p<u?1:0,e+a+n+o+s+c>>>0}function O(e,t,a,r,n,l,o,i,s,u){return t+r+l+i+u>>>0}function P(e,t,a){return(t<<32-a|e>>>a)>>>0}function x(e,t,a){return(e<<32-a|t>>>a)>>>0}function k(e,t,a){return e>>>a}function j(e,t,a){return(e<<32-a|t>>>a)>>>0}var N=a(46),C=a(47);t.inherits=C,t.toArray=r,t.toHex=n,t.htonl=l,t.toHex32=o,t.zero2=i,t.zero8=s,t.join32=u,t.split32=c,t.rotr32=p,t.rotl32=f,t.sum32=d,t.sum32_3=h,t.sum32_4=m,t.sum32_5=b,t.sum64=y,t.sum64_hi=v,t.sum64_lo=g,t.sum64_4_hi=E,t.sum64_4_lo=_,t.sum64_5_hi=w,t.sum64_5_lo=O,t.rotr64_hi=P,t.rotr64_lo=x,t.shr64_hi=k,t.shr64_lo=j},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=(function(e){e&&e.__esModule}(i),function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"initialize",value:function(){jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.props.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.props.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e=this;jQuery(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),e.close(),!1}),_.isUndefined(this.props.time)||setTimeout(function(){e.close()},this.props.time)}},{key:"close",value:function(){jQuery("#forminator-notification").stop().slideUp("slow")}}]),t}(i.Component));t.default=s},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(16),f=r(p),d=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.requiredProp=r+"required",a.requiredValProp=r+"required_message",a.requiredCValProp=r+"required_confirm_message",a}return o(t,e),i(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.requiredProp])&&this.props.state[this.requiredProp],a=_.isUndefined(this.props.state[this.requiredValProp])?"":this.props.state[this.requiredValProp],r=_.isUndefined(this.props.state[this.requiredCValProp])?"":this.props.state[this.requiredCValProp],n=_.isUndefined(this.props.state.type)?"":this.props.state.type,l="password"===n&&!_.isUndefined(this.props.state["confirm-password"])&&this.props.state["confirm-password"];return u.default.createElement(f.default,null,u.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,c.translate)("Require")),u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Force users to fill out this field, otherwise it will be optional.")),u.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},u.default.createElement("div",{className:"sui-tabs-menu"},u.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,c.translate)("Optional")),u.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,c.translate)("Required"))),u.default.createElement("div",{className:"sui-tabs-content"},u.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},u.default.createElement("div",{className:"sui-form-field"},"password"===n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Password error message")),"password"!==n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Error message")),u.default.createElement("input",{type:"text",value:a,placeholder:(0,c.translate)("Enter required message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredValProp,t.target.value)}})),l&&u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Confirm Password error message")),u.default.createElement("input",{type:"text",value:r,placeholder:(0,c.translate)("Enter confirm password message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredCValProp,t.target.value)}})),t&&"select"===n&&u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,c.translate)("Options without a value will be treated as empty options")))))))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t,a){"use strict";var r=a(30),n=a.n(r),l=function(){var e=null,t=function(t){return n()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},a=function(t,a,r,l){if(null!=e){var o="function"==typeof e?e(t,a):e;"string"==typeof o?"function"==typeof r?r(o,l):(n()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),l(!0)):l(!1!==o)}else l(!0)},r=[];return{setPrompt:t,confirmTransitionTo:a,appendListener:function(e){var t=!0,a=function(){t&&e.apply(void 0,arguments)};return r.push(a),function(){t=!1,r=r.filter(function(e){return e!==a})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=l},function(e,t,a){"use strict";var r=a(38);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(17),i=a.n(o),s=a(15),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.state={match:l.computeMatch(l.props.history.location.pathname)},o=a,n(l,o)}return l(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,a=t.children,r=t.history;u()(null==a||1===p.a.Children.count(a),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){i()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,a){"use strict";var r=a(67),n=a.n(r),l={},o=0,i=function(e,t){var a=""+t.end+t.strict+t.sensitive,r=l[a]||(l[a]={});if(r[e])return r[e];var i=[],s=n()(e,i,t),u={re:s,keys:i};return o<1e4&&(r[e]=u,o++),u},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];"string"==typeof t&&(t={path:t});var r=t,n=r.path,l=r.exact,o=void 0!==l&&l,s=r.strict,u=void 0!==s&&s,c=r.sensitive,p=void 0!==c&&c;if(null==n)return a;var f=i(n,{end:o,strict:u,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var b=m[0],y=m.slice(1),v=e===b;return o&&!v?null:{path:n,url:"/"===n&&""===b?"/":b,isExact:v,params:h.reduce(function(e,t,a){return e[t.name]=y[a],e},{})}};t.a=s},function(e,t,a){"use strict";(function(t){function r(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var n=a(11),l=a(154),o={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(71):void 0!==t&&(e=a(71)),e}(),transformRequest:[function(e,t){return l(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){i.headers[e]={}}),n.forEach(["post","put","patch"],function(e){i.headers[e]=n.merge(o)}),e.exports=i}).call(t,a(45))},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.toggleState=a.toggleState.bind(a),a}return l(t,e),o(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this,t=this.props.label,a=this.state.open,r="";a&&(r="sui-accordion-item--open");var n=!(!_.isUndefined(this.props.boxedContent)&&""!==this.props.boxedContent)||this.props.boxedContent,l=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-accordion-item "+r},s.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("span",null,t),s.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},s.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"}),s.default.createElement("span",{class:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?a&&l:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},a&&l),n)))}}]),t}(i.Component));t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldId)?this.props.property:this.props.fieldId,r=!(_.isUndefined(this.props.disabled)||!this.props.disabled),n="";return this.props.itemClass&&""!==this.props.itemClass&&(n=" "+this.props.itemClass),s.default.createElement("label",{htmlFor:"forminator-field-"+a,className:"sui-checkbox"+n},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+a,value:"true",checked:t?"checked":"",disabled:r,onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{"aria-hidden":"true"}),this.props.label&&s.default.createElement("span",null,this.props.label))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a);var l=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,o=_.isUndefined(a.props.settings[a.props.property])?l:a.props.settings[a.props.property];return a.state={value:o},a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(t){var a=e.state.value+" "+t.target.value;e.updateValue(a)})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":"sui-form-field-error",l="",o="input";return"textarea"===this.props.type&&(o="textarea"),this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field "+n},l,s.default.createElement("div",{className:"sui-insert-variables"},"input"===o&&s.default.createElement("input",{type:"text",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)}}),"textarea"===o&&s.default.createElement("textarea",{value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:this.props.rows}),s.default.createElement("select",{ref:function(t){return e.el=t}},this.props.children),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description)))}}]),t}(i.Component);t.default=c},function(e,t,a){var r=a(78),n=new r;e.exports={numberFormat:n.numberFormat.bind(n),translate:n.translate.bind(n),configure:n.configure.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),getLocaleSlug:n.getLocaleSlug.bind(n),addTranslations:n.addTranslations.bind(n),reRenderTranslations:n.reRenderTranslations.bind(n),registerComponentUpdateHook:n.registerComponentUpdateHook.bind(n),registerTranslateHook:n.registerTranslateHook.bind(n),state:n.state,stateObserver:n.stateObserver,on:n.stateObserver.on.bind(n.stateObserver),off:n.stateObserver.removeListener.bind(n.stateObserver),emit:n.stateObserver.emit.bind(n.stateObserver),localize:a(92)(n),$this:n,I18N:r}},function(e,t){function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===a||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function l(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function o(){m&&d&&(m=!1,d.length?h=d.concat(h):b=-1,h.length&&i())}function i(){if(!m){var e=n(o);m=!0;for(var t=h.length;t;){for(d=h,h=[];++b<t;)d&&d[b].run();b=-1,t=h.length}d=null,m=!1,l(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,p,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:a}catch(e){c=a}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],m=!1,b=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];h.push(new s(e,t)),1!==h.length||m||n(i)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"number"==typeof e}function l(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},a.prototype.emit=function(e){var t,a,n,i,s,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(a=this._events[e],o(a))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),a.apply(this,i)}else if(l(a))for(i=Array.prototype.slice.call(arguments,1),u=a.slice(),n=u.length,s=0;s<n;s++)u[s].apply(this,i);return!0},a.prototype.addListener=function(e,t){var n;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(n=o(this._maxListeners)?a.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var n=!1;return a.listener=t,this.on(e,a),this},a.prototype.removeListener=function(e,t){var a,n,o,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=this._events[e],o=a.length,n=-1,a===t||r(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(l(a)){for(i=o;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){n=i;break}if(n<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[e],r(a))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},a.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,a){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,a){"use strict";function r(e,t,a,r,l,o,i,s){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[a,r,l,o,i,s],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var n=function(e){};e.exports=r},function(e,t){function a(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function r(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}function n(e,t){var a=D(e)||d(e)?r(e.length,String):[],n=a.length,l=!!n;for(var o in e)!t&&!j.call(e,o)||l&&("length"==o||u(o,n))||a.push(o);return a}function l(e,t,a){var r=e[t];j.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function o(e){if(!p(e))return S(e);var t=[];for(var a in Object(e))j.call(e,a)&&"constructor"!=a&&t.push(a);return t}function i(e,t){return t=T(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,l=T(r.length-t,0),o=Array(l);++n<l;)o[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=o,a(e,this,i)}}function s(e,t,a,r){a||(a={});for(var n=-1,o=t.length;++n<o;){var i=t[n],s=r?r(a[i],e[i],i,a,e):void 0;l(a,i,void 0===s?e[i]:s)}return a}function u(e,t){return!!(t=null==t?_:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function c(e,t,a){if(!v(a))return!1;var r=typeof t;return!!("number"==r?h(a)&&u(t,a.length):"string"==r&&t in a)&&f(a[t],e)}function p(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function f(e,t){return e===t||e!==e&&t!==t}function d(e){return m(e)&&j.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==w)}function h(e){return null!=e&&y(e.length)&&!b(e)}function m(e){return g(e)&&h(e)}function b(e){var t=v(e)?N.call(e):"";return t==O||t==P}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=_}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function E(e){return h(e)?n(e):o(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",P="[object GeneratorFunction]",x=/^(?:0|[1-9]\d*)$/,k=Object.prototype,j=k.hasOwnProperty,N=k.toString,C=k.propertyIsEnumerable,S=function(e,t){return function(a){return e(t(a))}}(Object.keys,Object),T=Math.max,F=!C.call({valueOf:1},"valueOf"),D=Array.isArray,M=function(e){return i(function(t,a){var r=-1,n=a.length,l=n>1?a[n-1]:void 0,o=n>2?a[2]:void 0;for(l=e.length>3&&"function"==typeof l?(n--,l):void 0,o&&c(a[0],a[1],o)&&(l=n<3?void 0:l,n=1),t=Object(t);++r<n;){var i=a[r];i&&e(t,i,r,l)}return t})}(function(e,t){if(F||p(t)||h(t))return void s(t,E(t),e);for(var a in t)j.call(t,a)&&l(e,a,t[a])});e.exports=M},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.showModal=function(e,t){return function(a){a({type:"SHOW_MODAL",modalProps:e,modalType:t})}},t.hideModal=function(){return function(e){e({type:"HIDE_MODAL"})}}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(10),d=(r(f),a(4)),h=(r(d),a(2)),m=r(h),b=a(16),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=(_.isUndefined(this.props.state["custom-class"])||this.props.state["custom-class"],_.isUndefined(this.props.prefix)?"":this.props.prefix+"_");return c.default.createElement(y.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Pre-populate")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can pre-populate this field dynamically using the query parameter passed in your form URL. Enter the query parameter key to fetch its value from your form URL below.")),c.default.createElement("div",{style:{width:"100%",maxWidth:"240px"}},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),placeholder:(0,p.translate)("E.g. query_parameter_key"),property:e+"prefill"}))),this.props.notice&&c.default.createElement("span",{className:"sui-description"},this.props.notice)))}}]),t}(u.Component);t.default=v},function(e,t){e.exports=ReactDOM},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"clearImage",value:function(){"function"==typeof this.props.updateProperty?(this.props.updateProperty(this.props.property,""),this.props.updateProperty(this.props.property+"_filename",""),this.props.updateProperty(this.props.property+"_alt","")):(this.props.actions.settingsActions.updateSetting(this.props.property,""),this.props.actions.settingsActions.updateSetting(this.props.property+"_filename",""),this.props.actions.settingsActions.updateSetting(this.props.property+"_alt",""))}},{key:"openMedia",value:function(){var e=this,t=wp.media({title:(0,u.translate)("Select image"),button:{text:(0,u.translate)("Select")},multiple:!1}).on("select",function(){var a=void 0,r=t.state().get("selection").first().toJSON();a=_.isUndefined(e.props.imageSize)?r.url:"thumbnail"===e.props.imageSize?r.sizes.thumbnail.url:"medium"===e.props.imageSize?_.isUndefined(r.sizes.medium)?r.sizes.full.url:r.sizes.medium.url:"large"===e.props.imageSize?_.isUndefined(r.sizes.large)?r.sizes.full.url:r.sizes.large.url:r.sizes.full.url,"function"==typeof e.props.updateProperty?(e.props.updateProperty(e.props.property,a),e.props.updateProperty(e.props.property+"_filename",r.filename),e.props.updateProperty(e.props.property+"_alt",r.alt)):(e.props.actions.settingsActions.updateSetting(e.props.property,a),e.props.actions.settingsActions.updateSetting(e.props.property+"_filename",r.filename),e.props.actions.settingsActions.updateSetting(e.props.property+"_alt",r.alt))});t.open()}},{key:"render",value:function(){var e=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],t=_.isEmpty(e)?"":"sui-has_file",a=_.isUndefined(this.props.settings[this.props.property+"_filename"])?e:_.isEmpty(this.props.settings[this.props.property+"_filename"])?e.replace(/^.*[\\\/]/,""):this.props.settings[this.props.property+"_filename"],r="";this.props.label&&(r=s.default.createElement("label",{className:"sui-label"},this.props.label));var n="";this.props.description&&(n=s.default.createElement("span",{className:"sui-description"},this.props.description));var l="";if("image"===this.props.type){var o="";e&&(o="url("+e+")"),l=s.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},s.default.createElement("div",{className:"sui-image-mask"}),s.default.createElement("div",{role:"button",onClick:this.openMedia.bind(this),className:"sui-image-preview",style:{backgroundImage:o}}))}var i=this.props.fieldClass?" "+this.props.fieldClass:"";return s.default.createElement("div",{className:"sui-form-field"+i},r,s.default.createElement("div",{className:"sui-upload "+t},s.default.createElement("input",{type:"file",value:"",readOnly:"readonly"}),l,s.default.createElement("button",{className:"sui-upload-button",onClick:this.openMedia.bind(this)},s.default.createElement("i",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),"image"===this.props.type?""+(0,u.translate)("Upload image"):""+(0,u.translate)("Upload file")),s.default.createElement("div",{className:"sui-upload-file"},s.default.createElement("span",null,a),s.default.createElement("button",{className:"sui-upload-button--remove",onClick:this.clearImage.bind(this)},s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},"image"===this.props.type?""+(0,u.translate)("Remove uploaded image"):""+(0,u.translate)("Remove uploaded file"))))),n)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";a.d(t,"b",function(){return l}),a.d(t,"a",function(){return o});var r=a(7),n=a.n(r),l=n.a.shape({trySubscribe:n.a.func.isRequired,tryUnsubscribe:n.a.func.isRequired,notifyNestedSubs:n.a.func.isRequired,isSubscribed:n.a.func.isRequired}),o=n.a.shape({subscribe:n.a.func.isRequired,dispatch:n.a.func.isRequired,getState:n.a.func.isRequired})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function i(){}function s(e,t){var a={run:function(r){try{var n=e(t.getState(),r);(n!==a.props||a.error)&&(a.shouldComponentUpdate=!0,a.props=n,a.error=null)}catch(e){a.shouldComponentUpdate=!0,a.error=e}}};return a}function u(e){var t,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,f=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,E=u.methodName,_=void 0===E?"connectAdvanced":E,w=u.renderCountProp,O=void 0===w?void 0:w,P=u.shouldHandleStateChanges,x=void 0===P||P,k=u.storeKey,j=void 0===k?"store":k,N=u.withRef,C=void 0!==N&&N,S=o(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=j+"Subscription",F=v++,D=(t={},t[j]=b.a,t[T]=b.b,t),M=(a={},a[T]=b.b,a);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+_+". Instead received "+JSON.stringify(t));var a=t.displayName||t.name||"Component",o=f(a),u=y({},S,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:x,storeKey:j,withRef:C,displayName:o,wrappedComponentName:a,WrappedComponent:t}),c=function(a){function c(e,t){r(this,c);var l=n(this,a.call(this,e,t));return l.version=F,l.state={},l.renderCount=0,l.store=e[j]||t[j],l.propsMode=Boolean(e[j]),l.setWrappedInstance=l.setWrappedInstance.bind(l),d()(l.store,'Could not find "'+j+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+j+'" as a prop to "'+o+'".'),l.initSelector(),l.initSubscription(),l}return l(c,a),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[T]=t||this.context[T],e},c.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=i,this.store=null,this.selector.run=i,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return d()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=s(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new m.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(C||O||this.propsMode&&this.subscription))return e;var t=y({},e);return C&&(t.ref=this.setWrappedInstance),O&&(t[O]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(h.createElement)(t,this.addExtraProps(e.props))},c}(h.Component);return c.WrappedComponent=t,c.displayName=o,c.childContextTypes=M,c.contextTypes=D,c.propTypes=D,p()(c,t)}}t.a=u;var c=a(58),p=a.n(c),f=a(15),d=a.n(f),h=a(0),m=(a.n(h),a(106)),b=a(56),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=0,g={}},function(e,t,a){"use strict";function r(e,t,a){if("string"!=typeof t){if(p){var f=c(t);f&&f!==p&&r(e,f,a)}var d=i(t);s&&(d=d.concat(s(t)));for(var h=0;h<d.length;++h){var m=d[h];if(!(n[m]||l[m]||a&&a[m])){var b=u(t,m);try{o(e,m,b)}catch(e){}}}return e}return e}var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=r},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){"use strict";function r(e){return function(t,a){function r(){return n}var n=e(t,a);return r.dependsOnOwnProps=!1,r}}function n(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function l(e,t){return function(t,a){var r=(a.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,a){r.mapToProps=e,r.dependsOnOwnProps=n(e);var l=r(t,a);return"function"==typeof l&&(r.mapToProps=l,r.dependsOnOwnProps=n(l),l=r(t,a)),l},r}}t.a=r,t.b=l;a(61)},function(e,t,a){"use strict";a(113),a(35)},function(e,t,a){"use strict";var r=a(115),n=r.a.Symbol;t.a=n},function(e,t,a){"use strict";a.d(t,"b",function(){return r}),a.d(t,"a",function(){return n}),a.d(t,"e",function(){return l}),a.d(t,"c",function(){return o}),a.d(t,"g",function(){return i}),a.d(t,"h",function(){return s}),a.d(t,"f",function(){return u}),a.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,t,a){return e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)},l=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},o=function(e,t){return t(window.confirm(e))},i=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},s=function(){return-1===window.navigator.userAgent.indexOf("Trident")},u=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(0),s=a.n(i),u=a(7),c=a.n(u),p=a(15),f=a.n(p),d=a(20),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},m=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},b=function(e){function t(){var a,r,o;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=l(this,e.call.apply(e,[this].concat(s))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!m(e)){e.preventDefault();var t=r.context.router.history,a=r.props,n=a.replace,l=a.to;n?t.replace(l):t.push(l)}},o=a,l(r,o)}return o(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),a=e.innerRef,n=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>"),f()(void 0!==t,'You must specify the "to" property');var l=this.context.router.history,o="string"==typeof t?Object(d.c)(t,null,null,l.location):t,i=l.createHref(o);return s.a.createElement("a",h({},n,{onClick:this.handleClick,href:i,ref:a}))},t}(s.a.Component);b.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},b.defaultProps={replace:!1},b.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=b},function(e,t,a){"use strict";var r=a(66);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(17),i=a.n(o),s=a(15),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),h=a(39),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},b=function(e){return 0===p.a.Children.count(e)},y=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.state={match:l.computeMatch(l.props,l.context.router)},o=a,n(l,o)}return l(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var a=e.computedMatch,r=e.location,n=e.path,l=e.strict,o=e.exact,i=e.sensitive;if(a)return a;u()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,c=(r||s.location).pathname;return Object(h.a)(c,{path:n,strict:l,exact:o,sensitive:i},s.match)},t.prototype.componentWillMount=function(){i()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),i()(!(this.props.component&&this.props.children&&!b(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),i()(!(this.props.render&&this.props.children&&!b(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){i()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),i()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,a=t.children,r=t.component,n=t.render,l=this.context.router,o=l.history,i=l.route,s=l.staticContext,u=this.props.location||i.location,c={match:e,location:u,history:o,staticContext:s};return r?e?p.a.createElement(r,c):null:n?e?n(c):null:"function"==typeof a?a(c):a&&!b(a)?p.a.Children.only(a):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,a){function r(e,t){for(var a,r=[],n=0,l=0,o="",i=t&&t.delimiter||"/";null!=(a=v.exec(e));){var c=a[0],p=a[1],f=a.index;if(o+=e.slice(l,f),l=f+c.length,p)o+=p[1];else{var d=e[l],h=a[2],m=a[3],b=a[4],y=a[5],g=a[6],E=a[7];o&&(r.push(o),o="");var _=null!=h&&null!=d&&d!==h,w="+"===g||"*"===g,O="?"===g||"*"===g,P=a[2]||i,x=b||y;r.push({name:m||n++,prefix:h||"",delimiter:P,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:x?u(x):E?".*":"[^"+s(P)+"]+?"})}}return l<e.length&&(o+=e.substr(l)),o&&r.push(o),r}function n(e,t){return i(r(e,t))}function l(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function o(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){for(var t=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(t[a]=new RegExp("^(?:"+e[a].pattern+")$"));return function(a,r){for(var n="",i=a||{},s=r||{},u=s.pretty?l:encodeURIComponent,c=0;c<e.length;c++){var p=e[c];if("string"!=typeof p){var f,d=i[p.name];if(null==d){if(p.optional){p.partial&&(n+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(y(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");n+=(0===h?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?o(d):u(d),!t[c].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');n+=p.prefix+f}}else n+=p}return n}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function f(e,t){var a=e.source.match(/\((?!\?)/g);if(a)for(var r=0;r<a.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}function d(e,t,a){for(var r=[],n=0;n<e.length;n++)r.push(b(e[n],t,a).source);return c(new RegExp("(?:"+r.join("|")+")",p(a)),t)}function h(e,t,a){return m(r(e,a),t,a)}function m(e,t,a){y(t)||(a=t||a,t=[]),a=a||{};for(var r=a.strict,n=!1!==a.end,l="",o=0;o<e.length;o++){var i=e[o];if("string"==typeof i)l+=s(i);else{var u=s(i.prefix),f="(?:"+i.pattern+")";t.push(i),i.repeat&&(f+="(?:"+u+f+")*"),f=i.optional?i.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")",l+=f}}var d=s(a.delimiter||"/"),h=l.slice(-d.length)===d;return r||(l=(h?l.slice(0,-d.length):l)+"(?:"+d+"(?=$))?"),l+=n?"$":r&&h?"":"(?="+d+"|$)",c(new RegExp("^"+l,p(a)),t)}function b(e,t,a){return y(t)||(a=t||a,t=[]),a=a||{},e instanceof RegExp?f(e,t):y(e)?d(e,t,a):h(e,t,a)}var y=a(136);e.exports=b,e.exports.parse=r,e.exports.compile=n,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=m;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,a){"use strict";var r=a(67),n=a.n(r),l={},o=0,i=function(e){var t=e,a=l[t]||(l[t]={});if(a[e])return a[e];var r=n.a.compile(e);return o<1e4&&(a[e]=r,o++),r},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:i(e)(t,{pretty:!0})};t.a=s},function(e,t,a){e.exports=a(151)},function(e,t,a){"use strict";e.exports=function(e,t){return function(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return e.apply(t,a)}}},function(e,t,a){"use strict";var r=a(11),n=a(155),l=a(157),o=a(158),i=a(159),s=a(72),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(160);e.exports=function(e){return new Promise(function(t,c){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||i(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var b=e.auth.username||"",y=e.auth.password||"";f.Authorization="Basic "+u(b+":"+y)}if(d.open(e.method.toUpperCase(),l(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in d?o(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,l={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:a,config:e,request:d};n(t,c,l),d=null}},d.onerror=function(){c(s("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=a(161),g=(e.withCredentials||i(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,a){"use strict";var r=a(156);e.exports=function(e,t,a,n,l){var o=new Error(e);return r(o,t,a,n,l)}},function(e,t,a){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,a){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,a){"use strict";var r=a(169),n=a(170),l=a(77);e.exports={formats:l,parse:n,stringify:r}},function(e,t,a){"use strict";var r=Object.prototype.hasOwnProperty,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(var t;e.length;){var a=e.pop();if(t=a.obj[a.prop],Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)void 0!==t[n]&&r.push(t[n]);a.obj[a.prop]=r}}return t},o=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(a[r]=e[r]);return a},i=function e(t,a,n){if(!a)return t;if("object"!=typeof a){if(Array.isArray(t))t.push(a);else{if("object"!=typeof t)return[t,a];(n.plainObjects||n.allowPrototypes||!r.call(Object.prototype,a))&&(t[a]=!0)}return t}if("object"!=typeof t)return[t].concat(a);var l=t;return Array.isArray(t)&&!Array.isArray(a)&&(l=o(t,n)),Array.isArray(t)&&Array.isArray(a)?(a.forEach(function(a,l){r.call(t,l)?t[l]&&"object"==typeof t[l]?t[l]=e(t[l],a,n):t.push(a):t[l]=a}),t):Object.keys(a).reduce(function(t,l){var o=a[l];return r.call(t,l)?t[l]=e(t[l],o,n):t[l]=o,t},l)},s=function(e,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},e)},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},c=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),a="",r=0;r<t.length;++r){var l=t.charCodeAt(r);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?a+=t.charAt(r):l<128?a+=n[l]:l<2048?a+=n[192|l>>6]+n[128|63&l]:l<55296||l>=57344?a+=n[224|l>>12]+n[128|l>>6&63]+n[128|63&l]:(r+=1,l=65536+((1023&l)<<10|1023&t.charCodeAt(r)),a+=n[240|l>>18]+n[128|l>>12&63]+n[128|l>>6&63]+n[128|63&l])}return a},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],a=[],r=0;r<t.length;++r)for(var n=t[r],o=n.obj[n.prop],i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],c=o[u];"object"==typeof c&&null!==c&&-1===a.indexOf(c)&&(t.push({obj:o,prop:u}),a.push(c))}return l(t)},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},d=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:o,assign:s,compact:p,decode:u,encode:c,isBuffer:d,isRegExp:f,merge:i}},function(e,t,a){"use strict";var r=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,a){function r(){u.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function n(e){return Array.prototype.slice.call(e)}function l(e){var t,a=e[0],l={};for(("string"!=typeof a||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",n(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof a&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",n(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(l=e[t]);if("string"==typeof a?l.original=a:"object"==typeof l.original&&(l.plural=l.original.plural,l.count=l.original.count,l.original=l.original.single),"string"==typeof e[1]&&(l.plural=e[1]),void 0===l.original)throw new Error("Translate called without a `string` value as first argument.");return l}function o(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}function i(e,t){var a,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),a=o(r,t),e[r].apply(e,a)}function s(e,t){var a,r;for(a=v.length-1;a>=0;a--)if(r=v[a](b({},t)),e.state.locale[r.original])return i(e.state.jed,r);return null}function u(){if(!(this instanceof u))return new u;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:m({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new d,this.stateObserver.setMaxListeners(0),this.configure()}var c=a(79)("i18n-wp-plugin"),p=a(82),f=a(83),d=a(48).EventEmitter,h=a(86).default,m=a(90),b=a(51),y=a(91),v=[function(e){return e}],g={};u.throwErrors=!1,u.prototype.numberFormat=function(e){var t=arguments[1]||{},a="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",n=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return y(e,a,r,n)},u.prototype.configure=function(e){b(this,e||{}),this.setLocale()},u.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,a,r,n=e[""]["key-hash"],o=function(e,t){const a=!1===t?"":String(t);if(void 0!==g[a+e])return g[a+e];var r=f().update(e).digest("hex");return g[a+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===n.substr(0,4))if(4===n.length)v.push(s(!1));else{var u=n.substr(5).indexOf("-");if(u<0)t=Number(n.substr(5)),v.push(s(t));else for(a=Number(n.substr(5,u)),r=Number(n.substr(6+u)),t=a;t<=r;t++)v.push(s(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;b(this.state.locale,e)}else this.state.locale=b({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new p({locale_data:{messages:this.state.locale}}),this.state.numberFormatSettings.decimal_point=i(this.state.jed,l(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=i(this.state.jed,l(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.getLocale=function(){return this.state.locale},u.prototype.getLocaleSlug=function(){return this.state.localeSlug},u.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.hasTranslation=function(){return!!s(this,l(arguments))},u.prototype.translate=function(){var e,t,a,r,n,o;if(e=l(arguments),o=!e.components){try{n=JSON.stringify(e)}catch(e){o=!1}if(n&&(t=this.state.translations.get(n)))return t}if(t=s(this,e),t||(t=i(this.state.jed,e)),e.args){a=Array.isArray(e.args)?e.args.slice(0):[e.args],a.unshift(t);try{t=p.sprintf.apply(p,a)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",a)}}return e.components&&(t=h({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(a){t=a(t,e)}),o&&this.state.translations.set(n,t),t},u.prototype.reRenderTranslations=function(){c("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},u.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},e.exports=u},function(e,t,a){(function(r){function n(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function l(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+t.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,l=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(l=n))}),e.splice(l,0,r)}}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function s(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=a(80),t.log=o,t.formatArgs=l,t.save=i,t.load=s,t.useColors=n,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}).call(t,a(45))},function(e,t,a){function r(e){var a,r=0;for(a in e)r=(r<<5)-r+e.charCodeAt(a),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function n(e){function a(){if(a.enabled){var e=a,r=+new Date,l=r-(n||r);e.diff=l,e.prev=n,e.curr=r,n=r;for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(a,r){if("%%"===a)return a;s++;var n=t.formatters[r];if("function"==typeof n){var l=o[s];a=n.call(e,l),o.splice(s,1),s--}return a}),t.formatArgs.call(e,o);(a.log||t.log||console.log.bind(console)).apply(e,o)}}var n;return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=r(e),a.destroy=l,"function"==typeof t.init&&t.init(a),t.instances.push(a),a}function l(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e){t.save(e),t.names=[],t.skips=[];var a,r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(a=0;a<n;a++)r[a]&&(e=r[a].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(a=0;a<t.instances.length;a++){var l=t.instances[a];l.enabled=t.enabled(l.namespace)}}function i(){t.enable("")}function s(e){if("*"===e[e.length-1])return!0;var a,r;for(a=0,r=t.skips.length;a<r;a++)if(t.skips[a].test(e))return!1;for(a=0,r=t.names.length;a<r;a++)if(t.names[a].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=i,t.enable=o,t.enabled=s,t.humanize=a(81),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*c;case"days":case"day":case"d":return a*u;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=s?Math.round(e/s)+"h":e>=i?Math.round(e/i)+"m":e>=o?Math.round(e/o)+"s":e+"ms"}function n(e){return l(e,u,"day")||l(e,s,"hour")||l(e,i,"minute")||l(e,o,"second")||e+" ms"}function l(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}var o=1e3,i=60*o,s=60*i,u=24*s,c=365.25*u;e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return a(e);if("number"===l&&!1===isNaN(e))return t.long?n(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,a){/**
|
2 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
3 |
*/
|
4 |
-
!function(a,r){function n(e){return d.PF.compile(e||"nplurals=2; plural=(n != 1);")}function
|
5 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
6 |
*/
|
7 |
-
return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,a){return this.dcnpgettext.call(this,void 0,void 0,e,t,a)},dngettext:function(e,t,a,r){return this.dcnpgettext.call(this,e,void 0,t,a,r)},dcngettext:function(e,t,a,r){return this.dcnpgettext.call(this,e,void 0,t,a,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,a){return this.dcnpgettext.call(this,e,t,a)},dcpgettext:function(e,t,a){return this.dcnpgettext.call(this,e,t,a)},npgettext:function(e,t,a,r){return this.dcnpgettext.call(this,void 0,e,t,a,r)},dnpgettext:function(e,t,a,r,n){return this.dcnpgettext.call(this,e,t,a,r,n)},dcnpgettext:function(e,t,a,r,l){r=r||a,e=e||this._textdomain;var o;if(!this.options)return o=new d,o.dcnpgettext.call(o,void 0,void 0,a,r,l);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!a)throw new Error("No translation key found.");var i,s,u,c=t?t+d.context_delimiter+a:a,p=this.options.locale_data,f=p[e],h=(p.messages||this.defaults.locale_data.messages)[""],m=f[""].plural_forms||f[""]["Plural-Forms"]||f[""]["plural-forms"]||h.plural_forms||h["Plural-Forms"]||h["plural-forms"];if(void 0===l)u=1;else{if("number"!=typeof l&&(l=parseInt(l,10),isNaN(l)))throw new Error("The number that was passed in is not a number.");u=n(m)(l)+1}if(!f)throw new Error("No domain named `"+e+"` could be found.");return!(i=f[c])||u>=i.length?(this.options.missing_key_callback&&this.options.missing_key_callback(c,e),s=[null,a,r],!0===this.options.debug&&console.log(s[n(m)(l)+1]),s[n()(l)+1]):(s=i[u])||(s=[null,a,r],s[n()(l)+1])}});var h=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var a=[];t>0;a[--t]=e);return a.join("")}var a=function(){return a.cache.hasOwnProperty(arguments[0])||(a.cache[arguments[0]]=a.parse(arguments[0])),a.format.call(null,a.cache[arguments[0]],arguments)};return a.format=function(a,r){var n,l,o,i,s,u,c,p=1,f=a.length,d="",m=[];for(l=0;l<f;l++)if("string"===(d=e(a[l])))m.push(a[l]);else if("array"===d){if(i=a[l],i[2])for(n=r[p],o=0;o<i[2].length;o++){if(!n.hasOwnProperty(i[2][o]))throw h('[sprintf] property "%s" does not exist',i[2][o]);n=n[i[2][o]]}else n=i[1]?r[i[1]]:r[p++];if(/[^s]/.test(i[8])&&"number"!=e(n))throw h("[sprintf] expecting number but found %s",e(n));switch(void 0!==n&&null!==n||(n=""),i[8]){case"b":n=n.toString(2);break;case"c":n=String.fromCharCode(n);break;case"d":n=parseInt(n,10);break;case"e":n=i[7]?n.toExponential(i[7]):n.toExponential();break;case"f":n=i[7]?parseFloat(n).toFixed(i[7]):parseFloat(n);break;case"o":n=n.toString(8);break;case"s":n=(n=String(n))&&i[7]?n.substring(0,i[7]):n;break;case"u":n=Math.abs(n);break;case"x":n=n.toString(16);break;case"X":n=n.toString(16).toUpperCase()}n=/[def]/.test(i[8])&&i[3]&&n>=0?"+"+n:n,u=i[4]?"0"==i[4]?"0":i[4].charAt(1):" ",c=i[6]-String(n).length,s=i[6]?t(u,c):"",m.push(i[5]?n+s:s+n)}return m.join("")},a.cache={},a.parse=function(e){for(var t=e,a=[],r=[],n=0;t;){if(null!==(a=/^[^\x25]+/.exec(t)))r.push(a[0]);else if(null!==(a=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(a=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(a[2]){n|=1;var l=[],o=a[2],i=[];if(null===(i=/^([a-z_][a-z_\d]*)/i.exec(o)))throw"[sprintf] huh?";for(l.push(i[1]);""!==(o=o.substring(i[0].length));)if(null!==(i=/^\.([a-z_][a-z_\d]*)/i.exec(o)))l.push(i[1]);else{if(null===(i=/^\[(\d+)\]/.exec(o)))throw"[sprintf] huh?";l.push(i[1])}a[2]=l}else n|=2;if(3===n)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(a)}t=t.substring(a[0].length)}return r},a}(),m=function(e,t){return t.unshift(e),h.apply(null,t)};d.parse_plural=function(e,t){return e=e.replace(/n/g,t),d.parse_expression(e)},d.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?m(e,[].slice.call(t)):h.apply(this,[].slice.call(arguments))},d.prototype.sprintf=function(){return d.sprintf.apply(this,arguments)},d.PF={},d.PF.parse=function(e){var t=d.PF.extractPluralExpr(e);return d.PF.parser.parse.call(d.PF.parser,t)},d.PF.compile=function(e){function t(e){return!0===e?1:e||0}var a=d.PF.parse(e);return function(e){return t(d.PF.interpreter(a)(e))}},d.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return d.PF.interpreter(e.expr)(t);case"TERNARY":return d.PF.interpreter(e.expr)(t)?d.PF.interpreter(e.truthy)(t):d.PF.interpreter(e.falsey)(t);case"OR":return d.PF.interpreter(e.left)(t)||d.PF.interpreter(e.right)(t);case"AND":return d.PF.interpreter(e.left)(t)&&d.PF.interpreter(e.right)(t);case"LT":return d.PF.interpreter(e.left)(t)<d.PF.interpreter(e.right)(t);case"GT":return d.PF.interpreter(e.left)(t)>d.PF.interpreter(e.right)(t);case"LTE":return d.PF.interpreter(e.left)(t)<=d.PF.interpreter(e.right)(t);case"GTE":return d.PF.interpreter(e.left)(t)>=d.PF.interpreter(e.right)(t);case"EQ":return d.PF.interpreter(e.left)(t)==d.PF.interpreter(e.right)(t);case"NEQ":return d.PF.interpreter(e.left)(t)!=d.PF.interpreter(e.right)(t);case"MOD":return d.PF.interpreter(e.left)(t)%d.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},d.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,a=/nplurals\=(\d+);/,r=/plural\=(.*);/,n=e.match(a),l={};if(!(n.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(l.nplurals=n[1],e=e.replace(a,""),!((t=e.match(r))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},d.PF.parser=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,a,r,n,l,o){var i=l.length-1;switch(n){case 1:return{type:"GROUP",expr:l[i-1]};case 2:this.$={type:"TERNARY",expr:l[i-4],truthy:l[i-2],falsey:l[i]};break;case 3:this.$={type:"OR",left:l[i-2],right:l[i]};break;case 4:this.$={type:"AND",left:l[i-2],right:l[i]};break;case 5:this.$={type:"LT",left:l[i-2],right:l[i]};break;case 6:this.$={type:"LTE",left:l[i-2],right:l[i]};break;case 7:this.$={type:"GT",left:l[i-2],right:l[i]};break;case 8:this.$={type:"GTE",left:l[i-2],right:l[i]};break;case 9:this.$={type:"NEQ",left:l[i-2],right:l[i]};break;case 10:this.$={type:"EQ",left:l[i-2],right:l[i]};break;case 11:this.$={type:"MOD",left:l[i-2],right:l[i]};break;case 12:this.$={type:"GROUP",expr:l[i-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=a.lexer.lex()||1,"number"!=typeof e&&(e=a.symbols_[e]||e),e}var a=this,r=[0],n=[null],l=[],o=this.table,i="",s=0,u=0,c=0,p=2;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;l.push(f),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,m,b,y,v,g,E,_,w={};;){if(m=r[r.length-1],this.defaultActions[m]?b=this.defaultActions[m]:(null==d&&(d=t()),b=o[m]&&o[m][d]),void 0===b||!b.length||!b[0]){if(!c){_=[];for(v in o[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(O,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:f,expected:_})}if(3==c){if(1==d)throw new Error(O||"Parsing halted.");u=this.lexer.yyleng,i=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,d=t()}for(;;){if(p.toString()in o[m])break;if(0==m)throw new Error(O||"Parsing halted.");!function(e){r.length=r.length-2*e,n.length=n.length-e,l.length=l.length-e}(1),m=r[r.length-1]}h=d,d=p,m=r[r.length-1],b=o[m]&&o[m][p],c=3}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(b[0]){case 1:r.push(d),n.push(this.lexer.yytext),l.push(this.lexer.yylloc),r.push(b[1]),d=null,h?(d=h,h=null):(u=this.lexer.yyleng,i=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,c>0&&c--);break;case 2:if(g=this.productions_[b[1]][1],w.$=n[n.length-g],w._$={first_line:l[l.length-(g||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(g||1)].first_column,last_column:l[l.length-1].last_column},void 0!==(y=this.performAction.call(w,i,u,s,this.yy,b[1],n,l)))return y;g&&(r=r.slice(0,-1*g*2),n=n.slice(0,-1*g),l=l.slice(0,-1*g)),r.push(this.productions_[b[1]][0]),n.push(w.$),l.push(w._$),E=o[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length;r++)if(e=this._input.match(this.rules[a[r]]))return t=e[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,t,a,r){switch(a){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=t,e}(),void 0!==e&&e.exports&&(t=e.exports=d),t.Jed=d}()},function(e,t,a){"use strict";function r(){if(!(this instanceof r))return new r;p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var n=a(32),l=a(84),o=a(85),i=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,p=l.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];n.inherits(r,p),e.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(e,t){for(var a=this.W,r=0;r<16;r++)a[r]=e[t+r];for(;r<a.length;r++)a[r]=i(a[r-3]^a[r-8]^a[r-14]^a[r-16],1);var n=this.h[0],l=this.h[1],o=this.h[2],p=this.h[3],d=this.h[4];for(r=0;r<a.length;r++){var h=~~(r/20),m=u(i(n,5),c(h,l,o,p),d,a[r],f[h]);d=p,p=o,o=i(l,30),l=n,n=m}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],l),this.h[2]=s(this.h[2],o),this.h[3]=s(this.h[3],p),this.h[4]=s(this.h[4],d)},r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,a){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=a(32),l=a(46);t.BlockHash=r,r.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var a=e.length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-a,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),l(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,a=t-(e+this.padLength)%t,r=new Array(a+this.padLength);r[0]=128;for(var n=1;n<a;n++)r[n]=0;if(e<<=3,"big"===this.endian){for(var l=8;l<this.padLength;l++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=e>>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,l=8;l<this.padLength;l++)r[n++]=0;return r}},function(e,t,a){"use strict";function r(e,t,a,r){return 0===e?n(t,a,r):1===e||3===e?o(t,a,r):2===e?l(t,a,r):void 0}function n(e,t,a){return e&t^~e&a}function l(e,t,a){return e&t^e&a^t&a}function o(e,t,a){return e^t^a}function i(e){return f(e,2)^f(e,13)^f(e,22)}function s(e){return f(e,6)^f(e,11)^f(e,25)}function u(e){return f(e,7)^f(e,18)^e>>>3}function c(e){return f(e,17)^f(e,19)^e>>>10}var p=a(32),f=p.rotr32;t.ft_1=r,t.ch32=n,t.maj32=l,t.p32=o,t.s0_256=i,t.s1_256=s,t.g0_256=u,t.g1_256=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){var a,r,n=t[e],l=0;for(r=e+1;r<t.length;r++)if(a=t[r],a.value===n.value){if("componentOpen"===a.type){l++;continue}if("componentClose"===a.type){if(0===l)return r;l--}}throw new Error("Missing closing component token `"+n.value+"`")}function l(e,t){var a,r,o,s,c,f,d,m,b,y,v=[],g={};for(f=0;f<e.length;f++)if(c=e[f],"string"!==c.type){if(!t.hasOwnProperty(c.value)||void 0===t[c.value])throw new Error("Invalid interpolation, missing component node: `"+c.value+"`");if("object"!==i(t[c.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+c.value+"`","\n> "+h);if("componentClose"===c.type)throw new Error("Missing opening component token: `"+c.value+"`");if("componentOpen"===c.type){a=t[c.value],o=f;break}v.push(t[c.value])}else v.push(c.value);return a&&(s=n(o,e),d=e.slice(o+1,s),m=l(d,t),r=u.default.cloneElement(a,{},m),v.push(r),s<e.length-1&&(b=e.slice(s+1),y=l(b,t),v=v.concat(y))),1===v.length?v[0]:(v.forEach(function(e,t){e&&(g["interpolation-child-"+t]=e)}),(0,p.default)(g))}function o(e){var t=e.mixedString,a=e.components,r=e.throwErrors;if(h=t,!a)return t;if("object"!==(void 0===a?"undefined":i(a))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var n=(0,d.default)(t);try{return l(n,a)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=a(0),u=r(s),c=a(87),p=r(c),f=a(89),d=r(f),h=void 0;t.default=o},function(e,t,a){"use strict";function r(e){var t=e&&(_&&e[_]||e[w]);if("function"==typeof t)return t}function n(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function l(e,t){return e&&"object"==typeof e&&null!=e.key?n(e.key):t.toString(36)}function o(e,t,a,n){var i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===m)return a(n,e,""===t?g+l(e,0):t),1;var s,u,c=0,p=""===t?g:t+E;if(Array.isArray(e))for(var f=0;f<e.length;f++)s=e[f],u=p+l(s,f),c+=o(s,u,a,n);else{var d=r(e);if(d)for(var h,b=d.call(e),v=0;!(h=b.next()).done;)s=h.value,u=p+l(s,v++),c+=o(s,u,a,n);else if("object"===i){var _="",w=""+e;y(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,_)}}return c}function i(e,t,a){return null==e?0:o(e,"",t,a)}function s(e){return(""+e).replace(O,"$&/")}function u(e,t){return h.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}function c(e,t,a,r){this.result=e,this.keyPrefix=t,this.func=a,this.context=r,this.count=0}function p(e,t,a){var r=e.result,n=e.keyPrefix,l=e.func,o=e.context,i=l.call(o,t,e.count++);Array.isArray(i)?f(i,r,a,b.thatReturnsArgument):null!=i&&(h.isValidElement(i)&&(i=u(i,n+(!i.key||t&&t.key===i.key?"":s(i.key)+"/")+a)),r.push(i))}function f(e,t,a,r,n){var l="";null!=a&&(l=s(a)+"/");var o=c.getPooled(t,l,r,n);i(e,p,o),c.release(o)}function d(e){if("object"!=typeof e||!e||Array.isArray(e))return v(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(h.isValidElement(e))return v(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;y(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var a in e)f(e[a],t,a,b.thatReturnsArgument);return t}var h=a(0),m="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,b=a(49),y=a(50),v=a(88),g=".",E=":",_="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",O=/\/+/g,P=x,x=function(e){var t=this;if(t.instancePool.length){var a=t.instancePool.pop();return t.call(a,e),a}return new t(e)},k=function(e){var t=this;y(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},j=function(e,t,a,r){var n=this;if(n.instancePool.length){var l=n.instancePool.pop();return n.call(l,e,t,a,r),l}return new n(e,t,a,r)};c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var a=e;a.instancePool=[],a.getPooled=t||P,a.poolSize||(a.poolSize=10),a.release=k}(c,j);e.exports=d},function(e,t,a){"use strict";var r=a(49),n=r;e.exports=n},function(e,t,a){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,a){function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),n.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}var n=a(48),l=a(47);e.exports=r,l(r,n.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},r.prototype._unlink=function(e,t,a){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=a,this.cache[this.tail].prev=null):(this.cache[t].next=a,this.cache[a].prev=t)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.prototype.set=function(e,t){"string"!=typeof e&&(e=""+e);var a;if(this.cache.hasOwnProperty(e)){if(a=this.cache[e],a.value=t,this.maxAge&&(a.modified=Date.now()),e===this.head)return t;this._unlink(e,a.prev,a.next)}else a={value:t,modified:0,next:null,prev:null},this.maxAge&&(a.modified=Date.now()),this.cache[e]=a,this.length===this.max&&this.evict();return this.length++,a.next=null,a.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},r.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},r.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t){/**
|
8 |
* Exposes number format capability
|
9 |
*
|
10 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
11 |
* @license See CREDITS.md
|
12 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
13 |
*/
|
14 |
-
function a(e,t,a,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var n=isFinite(+e)?+e:0,
|
15 |
object-assign
|
16 |
(c) Sindre Sorhus
|
17 |
@license MIT
|
18 |
*/
|
19 |
-
var n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,i,s=r(e),u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var c in a)l.call(a,c)&&(s[c]=a[c]);if(n){i=n(a);for(var p=0;p<i.length;p++)o.call(a,i[p])&&(s[i[p]]=a[i[p]])}}return s}},function(e,t,a){"use strict";var r={};e.exports=r},function(e,t,a){"use strict";function r(e){return l.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n)},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateSetting=function(e,t){return function(a){window.forminatorChanges.settings=!0,a({type:"UPDATE_SETTING",setting:e,value:t})}},t.updateSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_SETTINGS",settings:e})}},t.saveBuilder=function(e,t){return function(a){window.forminatorChanges={fields:[],settings:!1,saved:!0},a({type:"UPDATE_SETTING",setting:e,value:t})}}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),o(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.radioClass)?"sui-radio":"sui-radio "+this.props.radioClass,a=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],r=s.default.Children.map(this.props.children,function(r){var n="",l=_.isUndefined(r.props.label)?r.props.children:r.props.label;return r.props.image1x&&r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,srcSet:forminatorData.imagesUrl+"/"+r.props.image1x+" 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.image1x&&!r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},n,s.default.createElement("span",{className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,value:r.props.value,id:"forminator-field-"+r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,l))):r.props.hasImage?void 0:s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,id:"forminator-field-"+r.props.value,value:r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,l))}),n=s.default.Children.map(this.props.children,function(t){return"true"===e.props.radioContent&&"Empty"!==t.type.name?s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t):s.default.createElement(s.default.Fragment,null)}),l="";this.props.label&&""!==this.props.label&&(l=s.default.createElement("label",{className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var o="";this.props.description&&""!==this.props.description&&(o=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.description));var i="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(i=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var u="";return this.props.settingsDesc&&""!==this.props.settingsDesc&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc)),this.props.noWrapper?r:s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{role:"radiogroup",className:"sui-form-field"},l,i,o,u,r,n))}}]),t}(i.Component);t.default=u},,,function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",a=arguments[1],o=a||t+"Subscription",s=function(e){function a(l,o){r(this,a);var i=n(this,e.call(this,l,o));return i[t]=l.store,i}return l(a,e),a.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[o]=null,e},a.prototype.render=function(){return i.Children.only(this.props.children)},a}(i.Component);return s.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},s.childContextTypes=(e={},e[t]=c.a.isRequired,e[o]=c.b,e),s}t.a=o;var i=a(0),s=(a.n(i),a(7)),u=a.n(s),c=a(56);a(35);t.b=o()},function(e,t,a){"use strict";function r(){}var n=a(105);e.exports=function(){function e(e,t,a,r,l,o){if(o!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return a.checkPropTypes=r,a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(){var e=[],t=[];return{clear:function(){t=l,e=l},notify:function(){for(var a=e=t,r=0;r<a.length;r++)a[r]()},get:function(){return t},subscribe:function(a){var r=!0;return t===e&&(t=e.slice()),t.push(a),function(){r&&e!==l&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(a),1))}}}}a.d(t,"a",function(){return i});var l=null,o={notify:function(){}},i=function(){function e(t,a,n){r(this,e),this.store=t,this.parentSub=a,this.onStateChange=n,this.unsubscribe=null,this.listeners=o}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=n())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=o)},e}()},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a){for(var r=t.length-1;r>=0;r--){var n=t[r](e);if(n)return n}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+r.wrappedComponentName+".")}}function l(e,t){return e===t}var o=a(57),i=a(108),s=a(109),u=a(122),c=a(123),p=a(124),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,a=void 0===t?o.a:t,d=e.mapStateToPropsFactories,h=void 0===d?u.a:d,m=e.mapDispatchToPropsFactories,b=void 0===m?s.a:m,y=e.mergePropsFactories,v=void 0===y?c.a:y,g=e.selectorFactory,E=void 0===g?p.a:g;return function(e,t,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=s.pure,c=void 0===u||u,p=s.areStatesEqual,d=void 0===p?l:p,m=s.areOwnPropsEqual,y=void 0===m?i.a:m,g=s.areStatePropsEqual,_=void 0===g?i.a:g,w=s.areMergedPropsEqual,O=void 0===w?i.a:w,P=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=n(e,h,"mapStateToProps"),k=n(t,b,"mapDispatchToProps"),j=n(o,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:k,initMergeProps:j,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},P))}}()},function(e,t,a){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function n(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(var o=0;o<a.length;o++)if(!l.call(t,a[o])||!r(e[a[o]],t[a[o]]))return!1;return!0}t.a=n;var l=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(i.b)(e,"mapDispatchToProps"):void 0}function n(e){return e?void 0:Object(i.a)(function(e){return{dispatch:e}})}function l(e){return e&&"object"==typeof e?Object(i.a)(function(t){return Object(o.bindActionCreators)(e,t)}):void 0}var o=a(9),i=a(60);t.a=[r,n,l]},function(e,t,a){"use strict";(function(e,r){var n,l=a(112);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(l.a)(n);t.a=o}).call(t,a(59),a(111)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,a){"use strict";function r(e){var t,a=e.Symbol;return"function"==typeof a?a.observable?t=a.observable:(t=a("observable"),a.observable=t):t="@@observable",t}t.a=r},function(e,t,a){"use strict";function r(e){if(!Object(o.a)(e)||Object(n.a)(e)!=i)return!1;var t=Object(l.a)(e);if(null===t)return!0;var a=p.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&c.call(a)==f}var n=a(114),l=a(119),o=a(121),i="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,a){"use strict";function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?Object(l.a)(e):Object(o.a)(e)}var n=a(62),l=a(117),o=a(118),i="[object Null]",s="[object Undefined]",u=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";var r=a(116),n="object"==typeof self&&self&&self.Object===Object&&self,l=r.a||n||Function("return this")();t.a=l},function(e,t,a){"use strict";(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.a=a}).call(t,a(59))},function(e,t,a){"use strict";function r(e){var t=o.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[s]=a:delete e[s]),n}var n=a(62),l=Object.prototype,o=l.hasOwnProperty,i=l.toString,s=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";function r(e){return l.call(e)}var n=Object.prototype,l=n.toString;t.a=r},function(e,t,a){"use strict";var r=a(120),n=Object(r.a)(Object.getPrototypeOf,Object);t.a=n},function(e,t,a){"use strict";function r(e,t){return function(a){return e(t(a))}}t.a=r},function(e,t,a){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(l.b)(e,"mapStateToProps"):void 0}function n(e){return e?void 0:Object(l.a)(function(){return{}})}var l=a(60);t.a=[r,n]},function(e,t,a){"use strict";function r(e,t,a){return i({},a,e,t)}function n(e){return function(t,a){var r=(a.displayName,a.pure),n=a.areMergedPropsEqual,l=!1,o=void 0;return function(t,a,i){var s=e(t,a,i);return l?r&&n(s,o)||(o=s):(l=!0,o=s),o}}}function l(e){return"function"==typeof e?n(e):void 0}function o(e){return e?void 0:function(){return r}}var i=(a(61),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e});t.a=[l,o]},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a,r){return function(n,l){return a(e(n,l),t(r,l),l)}}function l(e,t,a,r,n){function l(n,l){return h=n,m=l,b=e(h,m),y=t(r,m),v=a(b,y,m),d=!0,v}function o(){return b=e(h,m),t.dependsOnOwnProps&&(y=t(r,m)),v=a(b,y,m)}function i(){return e.dependsOnOwnProps&&(b=e(h,m)),t.dependsOnOwnProps&&(y=t(r,m)),v=a(b,y,m)}function s(){var t=e(h,m),r=!f(t,b);return b=t,r&&(v=a(b,y,m)),v}function u(e,t){var a=!p(t,m),r=!c(e,h);return h=e,m=t,a&&r?o():a?i():r?s():v}var c=n.areStatesEqual,p=n.areOwnPropsEqual,f=n.areStatePropsEqual,d=!1,h=void 0,m=void 0,b=void 0,y=void 0,v=void 0;return function(e,t){return d?u(e,t):l(e,t)}}function o(e,t){var a=t.initMapStateToProps,o=t.initMapDispatchToProps,i=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=a(e,s),c=o(e,s),p=i(e,s);return(s.pure?l:n)(u,c,p,e,s)}t.a=o;a(125)},function(e,t,a){"use strict";a(35)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(20),d=a(37),h=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.a)(l.props),o=a,n(l,o)}return l(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,a){"use strict";var r=a(30),n=a.n(r),l=a(15),o=a.n(l),i=a(31),s=a(27),u=a(36),c=a(63),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},d=function(){try{return window.history.state||{}}catch(e){return{}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(c.b,"Browser history needs a DOM");var t=window.history,a=Object(c.g)(),r=!Object(c.h)(),l=e.forceRefresh,h=void 0!==l&&l,m=e.getUserConfirmation,b=void 0===m?c.c:m,y=e.keyLength,v=void 0===y?6:y,g=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",E=function(e){var t=e||{},a=t.key,r=t.state,l=window.location,o=l.pathname,u=l.search,c=l.hash,p=o+u+c;return n()(!g||Object(s.c)(p,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+p+'" to begin with "'+g+'".'),g&&(p=Object(s.e)(p,g)),Object(i.a)(p,r,a)},_=function(){return Math.random().toString(36).substr(2,v)},w=Object(u.a)(),O=function(e){f(q,e),q.length=t.length,w.notifyListeners(q.location,q.action)},P=function(e){Object(c.d)(e)||j(E(e.state))},x=function(){j(E(d()))},k=!1,j=function(e){if(k)k=!1,O();else{w.confirmTransitionTo(e,"POP",b,function(t){t?O({action:"POP",location:e}):N(e)})}},N=function(e){var t=q.location,a=S.indexOf(t.key);-1===a&&(a=0);var r=S.indexOf(e.key);-1===r&&(r=0);var n=a-r;n&&(k=!0,M(n))},C=E(d()),S=[C.key],T=function(e){return g+Object(s.b)(e)},F=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var l=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(l,"PUSH",b,function(e){if(e){var r=T(l),o=l.key,i=l.state;if(a)if(t.pushState({key:o,state:i},null,r),h)window.location.href=r;else{var s=S.indexOf(q.location.key),u=S.slice(0,-1===s?0:s+1);u.push(l.key),S=u,O({action:"PUSH",location:l})}else n()(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},D=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var l=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(l,"REPLACE",b,function(e){if(e){var r=T(l),o=l.key,i=l.state;if(a)if(t.replaceState({key:o,state:i},null,r),h)window.location.replace(r);else{var s=S.indexOf(q.location.key);-1!==s&&(S[s]=l.key),O({action:"REPLACE",location:l})}else n()(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},M=function(e){t.go(e)},A=function(){return M(-1)},V=function(){return M(1)},R=0,U=function(e){R+=e,1===R?(Object(c.a)(window,"popstate",P),r&&Object(c.a)(window,"hashchange",x)):0===R&&(Object(c.e)(window,"popstate",P),r&&Object(c.e)(window,"hashchange",x))},I=!1,L=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return I||(U(1),I=!0),function(){return I&&(I=!1,U(-1)),t()}},B=function(e){var t=w.appendListener(e);return U(1),function(){U(-1),t()}},q={length:t.length,action:"POP",location:C,createHref:T,push:F,replace:D,go:M,goBack:A,goForward:V,block:L,listen:B};return q};t.a=h},function(e,t,a){"use strict";function r(e){return"/"===e.charAt(0)}function n(e,t){for(var a=t,r=a+1,n=e.length;r<n;a+=1,r+=1)e[a]=e[r];e.pop()}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],l=t&&t.split("/")||[],o=e&&r(e),i=t&&r(t),s=o||i;if(e&&r(e)?l=a:a.length&&(l.pop(),l=l.concat(a)),!l.length)return"/";var u=void 0;if(l.length){var c=l[l.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=l.length;f>=0;f--){var d=l[f];"."===d?n(l,f):".."===d?(n(l,f),p++):p&&(n(l,f),p--)}if(!s)for(;p--;p)l.unshift("..");!s||""===l[0]||l[0]&&r(l[0])||l.unshift("");var h=l.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}t.a=l},function(e,t,a){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,a){return r(e,t[a])});var a=void 0===e?"undefined":n(e);if(a!==(void 0===t?"undefined":n(t)))return!1;if("object"===a){var l=e.valueOf(),o=t.valueOf();if(l!==e||o!==t)return r(l,o);var i=Object.keys(e),s=Object.keys(t);return i.length===s.length&&i.every(function(a){return r(e[a],t[a])})}return!1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,a){"use strict";var r=a(30),n=a.n(r),l=a(15),o=a.n(l),i=a(31),s=a(27),u=a(36),c=a(63),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Object(s.f)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s.f,decodePath:s.a},slash:{encodePath:s.a,decodePath:s.a}},d=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},m=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(c.b,"Hash history needs a DOM");var t=window.history,a=Object(c.f)(),r=e.getUserConfirmation,l=void 0===r?c.c:r,b=e.hashType,y=void 0===b?"slash":b,v=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",g=f[y],E=g.encodePath,_=g.decodePath,w=function(){var e=_(d());return n()(!v||Object(s.c)(e,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+v+'".'),v&&(e=Object(s.e)(e,v)),Object(i.a)(e)},O=Object(u.a)(),P=function(e){p(z,e),z.length=t.length,O.notifyListeners(z.location,z.action)},x=!1,k=null,j=function(){var e=d(),t=E(e);if(e!==t)m(t);else{var a=w(),r=z.location;if(!x&&Object(i.b)(r,a))return;if(k===Object(s.b)(a))return;k=null,N(a)}},N=function(e){if(x)x=!1,P();else{O.confirmTransitionTo(e,"POP",l,function(t){t?P({action:"POP",location:e}):C(e)})}},C=function(e){var t=z.location,a=D.lastIndexOf(Object(s.b)(t));-1===a&&(a=0);var r=D.lastIndexOf(Object(s.b)(e));-1===r&&(r=0);var n=a-r;n&&(x=!0,R(n))},S=d(),T=E(S);S!==T&&m(T);var F=w(),D=[Object(s.b)(F)],M=function(e){return"#"+E(v+Object(s.b)(e))},A=function(e,t){n()(void 0===t,"Hash history cannot push state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"PUSH",l,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);if(d()!==r){k=t,h(r);var l=D.lastIndexOf(Object(s.b)(z.location)),o=D.slice(0,-1===l?0:l+1);o.push(t),D=o,P({action:"PUSH",location:a})}else n()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),P()}})},V=function(e,t){n()(void 0===t,"Hash history cannot replace state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"REPLACE",l,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(k=t,m(r));var n=D.indexOf(Object(s.b)(z.location));-1!==n&&(D[n]=t),P({action:"REPLACE",location:a})}})},R=function(e){n()(a,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return R(-1)},I=function(){return R(1)},L=0,B=function(e){L+=e,1===L?Object(c.a)(window,"hashchange",j):0===L&&Object(c.e)(window,"hashchange",j)},q=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return q||(B(1),q=!0),function(){return q&&(q=!1,B(-1)),t()}},$=function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}},z={length:t.length,action:"POP",location:F,createHref:M,push:A,replace:V,go:R,goBack:U,goForward:I,block:W,listen:$};return z};t.a=b},function(e,t,a){"use strict";var r=a(30),n=a.n(r),l=a(27),o=a(31),i=a(36),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c=function(e,t,a){return Math.min(Math.max(e,t),a)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,a=e.initialEntries,r=void 0===a?["/"]:a,p=e.initialIndex,f=void 0===p?0:p,d=e.keyLength,h=void 0===d?6:d,m=Object(i.a)(),b=function(e){u(C,e),C.length=C.entries.length,m.notifyListeners(C.location,C.action)},y=function(){return Math.random().toString(36).substr(2,h)},v=c(f,0,r.length-1),g=r.map(function(e){return"string"==typeof e?Object(o.a)(e,void 0,y()):Object(o.a)(e,void 0,e.key||y())}),E=l.b,_=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(o.a)(e,a,y(),C.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=C.index,a=t+1,n=C.entries.slice(0);n.length>a?n.splice(a,n.length-a,r):n.push(r),b({action:"PUSH",location:r,index:a,entries:n})}})},w=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(o.a)(e,a,y(),C.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(C.entries[C.index]=r,b({action:"REPLACE",location:r}))})},O=function(e){var a=c(C.index+e,0,C.entries.length-1),r=C.entries[a];m.confirmTransitionTo(r,"POP",t,function(e){e?b({action:"POP",location:r,index:a}):b()})},P=function(){return O(-1)},x=function(){return O(1)},k=function(e){var t=C.index+e;return t>=0&&t<C.entries.length},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},N=function(e){return m.appendListener(e)},C={length:g.length,action:"POP",location:g[v],index:v,entries:g,createHref:E,push:_,replace:w,go:O,goBack:P,goForward:x,canGo:k,block:j,listen:N};return C};t.a=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(20),d=a(37),h=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.b)(l.props),o=a,n(l,o)}return l(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=h},function(e,t,a){"use strict";var r=a(134);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(20),d=a(38),h=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.d)(l.props),o=a,n(l,o)}return l(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),l=a.n(n),o=a(7),i=a.n(o),s=a(65),u=a(64),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e){var t=e.to,a=e.exact,n=e.strict,o=e.location,i=e.activeClassName,f=e.className,d=e.activeStyle,h=e.style,m=e.isActive,b=e["aria-current"],y=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),v="object"===(void 0===t?"undefined":p(t))?t.pathname:t,g=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return l.a.createElement(s.a,{path:g,exact:a,strict:n,location:o,children:function(e){var a=e.location,r=e.match,n=!!(m?m(r,a):r);return l.a.createElement(u.a,c({to:t,className:n?[f,i].filter(function(e){return e}).join(" "):f,style:n?c({},h,d):h,"aria-current":n&&b||null},y))}})};f.propTypes={to:u.a.propTypes.to,exact:i.a.bool,strict:i.a.bool,location:i.a.object,activeClassName:i.a.string,className:i.a.string,activeStyle:i.a.object,style:i.a.object,isActive:i.a.func,"aria-current":i.a.oneOf(["page","step","location","date","time","true"])},f.defaultProps={activeClassName:"active","aria-current":"page"},t.a=f},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,a){"use strict";var r=a(138);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),i=a.n(o),s=a(7),u=a.n(s),c=a(15),p=a.n(c),f=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return l(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.a.Component);f.propTypes={when:u.a.bool,message:u.a.oneOfType([u.a.func,u.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:u.a.shape({history:u.a.shape({block:u.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,a){"use strict";var r=a(140);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),i=a.n(o),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(15),d=a.n(f),h=a(20),m=a(68),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},y=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return l(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(h.c)(e.to),a=Object(h.c)(this.props.to);if(Object(h.f)(t,a))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+a.pathname+a.search+'"');this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,a=e.to;return t?"string"==typeof a?Object(m.a)(a,t.params):b({},a,{pathname:Object(m.a)(a.pathname,t.params)}):a},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,a=this.computeTo(this.props);t?e.push(a):e.replace(a)},t.prototype.render=function(){return null},t}(i.a.Component);y.propTypes={computedMatch:u.a.object,push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired}).isRequired,staticContext:u.a.object}).isRequired},t.a=y},function(e,t,a){"use strict";var r=a(142);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(17),s=a.n(i),u=a(15),c=a.n(u),p=a(0),f=a.n(p),d=a(7),h=a.n(d),m=a(20),b=a(38),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=function(e){return"/"===e.charAt(0)?e:"/"+e},g=function(e,t){return e?y({},t,{pathname:v(e)+t.pathname}):t},E=function(e,t){if(!e)return t;var a=v(e);return 0!==t.pathname.indexOf(a)?t:y({},t,{pathname:t.pathname.substr(a.length)})},_=function(e){return"string"==typeof e?e:Object(m.e)(e)},w=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},O=function(){},P=function(e){function t(){var a,r,o;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=l(this,e.call.apply(e,[this].concat(s))),r.createHref=function(e){return v(r.props.basename+_(e))},r.handlePush=function(e){var t=r.props,a=t.basename,n=t.context;n.action="PUSH",n.location=g(a,Object(m.c)(e)),n.url=_(n.location)},r.handleReplace=function(e){var t=r.props,a=t.basename,n=t.context;n.action="REPLACE",n.location=g(a,Object(m.c)(e)),n.url=_(n.location)},r.handleListen=function(){return O},r.handleBlock=function(){return O},o=a,l(r,o)}return o(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){s()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,a=(e.context,e.location),n=r(e,["basename","context","location"]),l={createHref:this.createHref,action:"POP",location:E(t,Object(m.c)(a)),push:this.handlePush,replace:this.handleReplace,go:w("go"),goBack:w("goBack"),goForward:w("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(b.a,y({},n,{history:l}))},t}(f.a.Component);P.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},P.defaultProps={basename:"",location:"/"},P.childContextTypes={router:h.a.object.isRequired},t.a=P},function(e,t,a){"use strict";var r=a(144);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),i=a.n(o),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(15),d=a.n(f),h=a(39),m=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return l(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,a=this.props.location||e.location,r=void 0,n=void 0;return i.a.Children.forEach(t,function(t){if(null==r&&i.a.isValidElement(t)){var l=t.props,o=l.path,s=l.exact,u=l.strict,c=l.sensitive,p=l.from,f=o||p;n=t,r=Object(h.a)(a.pathname,{path:f,exact:s,strict:u,sensitive:c},e.match)}}),r?i.a.cloneElement(n,{location:a,computedMatch:r}):null},t}(i.a.Component);m.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},m.propTypes={children:u.a.node,location:u.a.object},t.a=m},function(e,t,a){"use strict";var r=a(68);t.a=r.a},function(e,t,a){"use strict";var r=a(39);t.a=r.a},function(e,t,a){"use strict";var r=a(148);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),l=a.n(n),o=a(7),i=a.n(o),s=a(58),u=a.n(s),c=a(66),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f=function(e){var t=function(t){var a=t.wrappedComponentRef,n=r(t,["wrappedComponentRef"]);return l.a.createElement(c.a,{children:function(t){return l.a.createElement(e,p({},n,t,{ref:a}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},u()(t,e)};t.a=f},function(e,t,a){"use strict";function r(e){return function(t){var a=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(a,r,e):t(n)}}}}Object.defineProperty(t,"__esModule",{value:!0});var n=r();n.withExtraArgument=r,t.default=n},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(33),f=r(p),d=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={form:{shortcode:"forminator_form",type:"custom_form",processAction:forminatorData.adminUrl+"admin.php?page=forminator-cform",processNonce:forminatorData.formProcessNonce,exportNonce:forminatorData.formExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_forms&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open form options")},poll:{shortcode:"forminator_poll",type:"poll",processAction:forminatorData.adminUrl+"admin.php?page=forminator-poll",processNonce:forminatorData.pollProcessNonce,exportNonce:forminatorData.pollExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_polls&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open poll options")},quiz:{shortcode:"forminator_quiz",type:"quiz",processAction:forminatorData.adminUrl+"admin.php?page=forminator-quiz",processNonce:forminatorData.quizProcessNonce,exportNonce:forminatorData.quizExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_quizzes&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open quiz options")}};return a.copyToClipboard=a.copyToClipboard.bind(a),a.resetTrackingData=a.resetTrackingData.bind(a),a.data=r[a.props.type],a}return o(t,e),i(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new f.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"resetTrackingData",value:function(){var e={action:"forminator_reset_tracking_data",_ajax_nonce:forminatorData.resetTrackingDataNonce,id:this.props.id};this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e){var t=e.success?"success":"error",a=e.data||(0,c.translate)("Something went wrong.");new f.default({type:t,text:a,time:4e3}).open()}})}},{key:"render",value:function(){var e=this,t=this.data.processAction+"&export=true&module_id="+this.props.id+"&exportnonce="+this.data.exportNonce+"&module_type="+this.data.type,a=this.data.processAction+"&delete=true&module_id="+this.props.id+"&nonce="+this.data.processNonce+"&module_type="+this.data.type,r=(0,c.translate)("Create New Form");return"poll"===this.props.type&&(r=(0,c.translate)("Create New Poll")),"quiz"===this.props.type&&(r=(0,c.translate)("Create New Quiz")),u.default.createElement(u.default.Fragment,null,u.default.createElement("input",{type:"text",defaultValue:"["+this.data.shortcode+' id="'+this.props.id+'"]',id:"forminator-form-shortcode",style:{position:"absolute",top:"-1500px"},"aria-hidden":"true",ref:function(t){return e.input=t}}),u.default.createElement("div",{className:"true"===this.props.hasLead?"sui-dropdown fui-dropdown-soon":"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor","aria-label":"Dropdown"},u.default.createElement("span",{className:"sui-icon-widget-settings-config sui-md","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},this.data.dropdownLabel)),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.copyToClipboard},u.default.createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),(0,c.translate)("Copy Shortcode"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",href:this.data.submissions},u.default.createElement("span",{className:"sui-icon-community-people","aria-hidden":"true"}),(0,c.translate)("View Submissions"))),u.default.createElement("li",null,u.default.createElement("form",{method:"post",action:this.data.processAction},u.default.createElement("input",{type:"hidden",name:"forminator_action",value:"clone"}),u.default.createElement("input",{type:"hidden",name:"id",value:this.props.id}),u.default.createElement("input",{type:"hidden",id:"forminatorNonce",name:"forminatorNonce",value:forminatorData.cloneNonce}),u.default.createElement("input",{type:"hidden",name:"forminatorRedirect",value:"false"}),"true"===this.props.hasLead&&u.default.createElement("button",{type:"submit",disabled:"disabled",className:"fui-button-with-tag sui-tooltip sui-tooltip-left sui-constrained","data-tooltip":(0,c.translate)("Duplicate isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Duplicate")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),"true"!==this.props.hasLead&&u.default.createElement("button",{type:"submit"},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),(0,c.translate)("Duplicate")))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",onClick:this.resetTrackingData},u.default.createElement("span",{className:"sui-icon-update","aria-hidden":"true"}),(0,c.translate)("Reset Tracking Data"))),u.default.createElement("li",null,"true"===this.props.hasLead&&u.default.createElement("a",{href:"#",className:"fui-button-with-tag sui-tooltip sui-tooltip-left","data-tooltip":(0,c.translate)("Export isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Export")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),"true"!==this.props.hasLead&&u.default.createElement("a",{className:"forminator-field-edit",href:t},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),(0,c.translate)("Export"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit sui-option-red",href:a},u.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete"))))),u.default.createElement("a",{href:forminatorData.dashboardUrl+"&createnew="+this.props.type,className:"sui-button-icon sui-tooltip sui-tooltip-bottom","data-tooltip":r},u.default.createElement("span",{className:"sui-icon-plus sui-md","aria-hidden":"true"})))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e){var t=new o(e),a=l(o.prototype.request,t);return n.extend(a,o.prototype,t),n.extend(a,t),a}var n=a(11),l=a(70),o=a(153),i=a(40),s=r(i);s.Axios=o,s.create=function(e){return r(n.merge(i,e))},s.Cancel=a(74),s.CancelToken=a(167),s.isCancel=a(73),s.all=function(e){return Promise.all(e)},s.spread=a(168),e.exports=s,e.exports.default=s},function(e,t){function a(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&a(e.slice(0,0))}/*!
|
20 |
* Determine if an object is a Buffer
|
21 |
*
|
22 |
* @author Feross Aboukhadijeh <https://feross.org>
|
23 |
* @license MIT
|
24 |
*/
|
25 |
-
e.exports=function(e){return null!=e&&(a(e)||r(e)||!!e._isBuffer)}},function(e,t,a){"use strict";function r(e){this.defaults=e,this.interceptors={request:new o,response:new o}}var n=a(40),l=a(11),o=a(162),i=a(163);r.prototype.request=function(e){"string"==typeof e&&(e=l.merge({url:arguments[0]},arguments[1])),e=l.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)a=a.then(t.shift(),t.shift());return a},l.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,a){return this.request(l.merge(a||{},{method:e,url:t}))}}),l.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,a,r){return this.request(l.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){"use strict";var r=a(11);e.exports=function(e,t){r.forEach(e,function(a,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[r])})}},function(e,t,a){"use strict";var r=a(72);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(r("Request failed with status code "+a.status,a.config,null,a.request,a)):e(a)}},function(e,t,a){"use strict";e.exports=function(e,t,a,r,n){return e.config=t,a&&(e.code=a),e.request=r,e.response=n,e}},function(e,t,a){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n=a(11);e.exports=function(e,t,a){if(!t)return e;var l;if(a)l=a(t);else if(n.isURLSearchParams(t))l=t.toString();else{var o=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),l=o.join("&")}return l&&(e+=(-1===e.indexOf("?")?"?":"&")+l),e}},function(e,t,a){"use strict";var r=a(11),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,a,l,o={};return e?(r.forEach(e.split("\n"),function(e){if(l=e.indexOf(":"),t=r.trim(e.substr(0,l)).toLowerCase(),a=r.trim(e.substr(l+1)),t){if(o[t]&&n.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([a]):o[t]?o[t]+", "+a:a}}),o):o}},function(e,t,a){"use strict";var r=a(11);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return a&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}var t,a=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=e(window.location.href),function(a){var n=r.isString(a)?e(a):a;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e,t,a){"use strict";function r(){this.message="String contains an invalid character"}function n(e){for(var t,a,n=String(e),o="",i=0,s=l;n.charAt(0|i)||(s="=",i%1);o+=s.charAt(63&t>>8-i%1*8)){if((a=n.charCodeAt(i+=.75))>255)throw new r;t=t<<8|a}return o}var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=n},function(e,t,a){"use strict";var r=a(11);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,l,o){var i=[];i.push(e+"="+encodeURIComponent(t)),r.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),r.isString(n)&&i.push("path="+n),r.isString(l)&&i.push("domain="+l),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,a){"use strict";function r(){this.handlers=[]}var n=a(11);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,a){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var n=a(11),l=a(164),o=a(73),i=a(40),s=a(165),u=a(166);e.exports=function(e){return r(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=l(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||i.adapter)(e).then(function(t){return r(e),t.data=l(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(r(e),t&&t.response&&(t.response.data=l(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){"use strict";var r=a(11);e.exports=function(e,t,a){return r.forEach(a,function(a){e=a(e,t)}),e}},function(e,t,a){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,a){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,a){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var a=this;e(function(e){a.reason||(a.reason=new n(e),t(a.reason))})}var n=a(74);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,a){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){"use strict";var r=a(76),n=a(77),l={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return o.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,a,n,l,o,s,u,c,p,f,d,h){var m=t;if("function"==typeof u)m=u(a,m);else if(m instanceof Date)m=f(m);else if(null===m){if(l)return s&&!h?s(a,i.encoder):a;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m)){if(s){return[d(h?a:s(a,i.encoder))+"="+d(s(m,i.encoder))]}return[d(a)+"="+d(String(m))]}var b=[];if(void 0===m)return b;var y;if(Array.isArray(u))y=u;else{var v=Object.keys(m);y=c?v.sort(c):v}for(var g=0;g<y.length;++g){var E=y[g];o&&null===m[E]||(b=Array.isArray(m)?b.concat(e(m[E],n(a,E),n,l,o,s,u,c,p,f,d,h)):b.concat(e(m[E],a+(p?"."+E:"["+E+"]"),n,l,o,s,u,c,p,f,d,h)))}return b};e.exports=function(e,t){var a=e,o=t?r.assign({},t):{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===o.delimiter?i.delimiter:o.delimiter,c="boolean"==typeof o.strictNullHandling?o.strictNullHandling:i.strictNullHandling,p="boolean"==typeof o.skipNulls?o.skipNulls:i.skipNulls,f="boolean"==typeof o.encode?o.encode:i.encode,d="function"==typeof o.encoder?o.encoder:i.encoder,h="function"==typeof o.sort?o.sort:null,m=void 0!==o.allowDots&&o.allowDots,b="function"==typeof o.serializeDate?o.serializeDate:i.serializeDate,y="boolean"==typeof o.encodeValuesOnly?o.encodeValuesOnly:i.encodeValuesOnly;if(void 0===o.format)o.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,o.format))throw new TypeError("Unknown format option provided.");var v,g,E=n.formatters[o.format];"function"==typeof o.filter?(g=o.filter,a=g("",a)):Array.isArray(o.filter)&&(g=o.filter,v=g);var _=[];if("object"!=typeof a||null===a)return"";var w;w=o.arrayFormat in l?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var O=l[w];v||(v=Object.keys(a)),h&&v.sort(h);for(var P=0;P<v.length;++P){var x=v[P];p&&null===a[x]||(_=_.concat(s(a[x],x,O,c,p,f?d:null,g,h,m,b,E,y)))}var k=_.join(u),j=!0===o.addQueryPrefix?"?":"";return k.length>0?j+k:""}},function(e,t,a){"use strict";var r=a(76),n=Object.prototype.hasOwnProperty,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,o),s=0;s<i.length;++s){var u,c,p=i[s],f=p.indexOf("]="),d=-1===f?p.indexOf("="):f+1;-1===d?(u=t.decoder(p,l.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,d),l.decoder),c=t.decoder(p.slice(d+1),l.decoder)),n.call(a,u)?a[u]=[].concat(a[u]).concat(c):a[u]=c}return a},i=function(e,t,a){for(var r=t,n=e.length-1;n>=0;--n){var l,o=e[n];if("[]"===o)l=[],l=l.concat(r);else{l=a.plainObjects?Object.create(null):{};var i="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,s=parseInt(i,10);!isNaN(s)&&o!==i&&String(s)===i&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(l=[],l[s]=r):l[i]=r}r=l}return r},s=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=l.exec(r),u=s?r.slice(0,s.index):r,c=[];if(u){if(!a.plainObjects&&n.call(Object.prototype,u)&&!a.allowPrototypes)return;c.push(u)}for(var p=0;null!==(s=o.exec(r))&&p<a.depth;){if(p+=1,!a.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+r.slice(s.index)+"]"),i(c,t,a)}};e.exports=function(e,t){var a=t?r.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw new TypeError("Decoder has to be a function.");if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter="string"==typeof a.delimiter||r.isRegExp(a.delimiter)?a.delimiter:l.delimiter,a.depth="number"==typeof a.depth?a.depth:l.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:l.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:l.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:l.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:l.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:l.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:l.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:l.strictNullHandling,""===e||null===e||void 0===e)return a.plainObjects?Object.create(null):{};for(var n="string"==typeof e?o(e,a):e,i=a.plainObjects?Object.create(null):{},u=Object.keys(n),c=0;c<u.length;++c){var p=u[c],f=s(p,n[p],a);i=r.merge(i,f,a)}return r.compact(i)}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el);var t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=this.props.dateFormat?this.props.dateFormat:"d MM yy";this.$el.val(t),this.$el.datepicker({beforeShow:function(t,a){jQuery("#ui-datepicker-div").addClass("sui-calendar"),"forminator-field-date"===e.$el.attr("id")&&("disable"===e.props.state.past_dates?e.$el.datepicker("option","minDate",e.$el.datepicker("getDate")):"enable"===e.props.state.past_dates&&e.$el.datepicker("option","minDate",null))},dateFormat:a,dayNamesMin:forminatorl10n.calendar.day_names_min,monthNames:forminatorl10n.calendar.month_names,onSelect:function(t){e.updateValue(t)}}),this.updateValue=this.updateValue.bind(this)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.datepicker("destroy"),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,a=_.isUndefined(this.props.calendarIcon)?"right":this.props.calendarIcon,r=void 0,n=void 0;this.props.label&&(r=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.canTrash&&(n=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Remove this date range")))),this.props.canAdd&&(n=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Add selected date"))));var l=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,i=u.default.createElement("input",o({ref:function(t){return e.el=t},id:l,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),s=u.default.createElement("div",{className:"sui-form-field"+(this.props.mediumSize?" sui-input-md":"")},r,this.props.noCalendar?i:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),i,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{className:"sui-date"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(s=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:"sui-form-field"+(this.props.mediumSize?" sui-input-md":"")},r,this.props.noCalendar?i:u.default.createElement("div",{className:"sui-date"},i,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),n)),s}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertSelector=a.insertSelector.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.editor=ace.edit("forminator-field-"+this.props.property),this.session=this.editor.getSession(),this.session.setUseWorker(!1),this.editor.setShowPrintMargin(!1),this.session.setMode("ace/mode/css"),this.editor.setTheme("ace/theme/sui"),this.editor.renderer.setShowGutter(!0),this.editor.setHighlightActiveLine(!0),this.editor.focus(),this.editor.on("change",this.updateValue)}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"insertSelector",value:function(e){var t=e+"{}";this.editor.navigateFileEnd(),this.editor.insert(t),this.editor.navigateLeft(1),this.editor.focus()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"updateValue",value:function(){this.props.actions.settingsActions.updateSetting(this.props.property,this.editor.getValue())}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"form":this.props.type,r=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Form")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-title ")}},(0,u.translate)("Section Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-subtitle ")}},(0,u.translate)("Section Subtitle")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-label ")}},(0,u.translate)("Field Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-description ")}},(0,u.translate)("Field Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-input ")}},(0,u.translate)("Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-textarea ")}},(0,u.translate)("Textarea")))),n=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Poll")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll--question ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-radio--design ")}},(0,u.translate)("Answer Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-radio--label ")}},(0,u.translate)("Answer Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-button ")}},(0,u.translate)("Submit Button")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll-footer a.forminator-link, .forminator-poll-footer a.forminator-link:visited ")}},(0,u.translate)("View Results Link")))),l=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Quiz")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,u.translate)("Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description p ")}},(0,u.translate)("Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question .forminator-legend ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--design ")}},(0,u.translate)("Answer Container")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,u.translate)("Answer Text"))));return s.default.createElement(s.default.Fragment,null,"form"===a&&r,"poll"===a&&n,"quiz"===a&&l,s.default.createElement("div",{id:"forminator-field-"+this.props.property,"data-value":t,style:{height:"210px"}},t))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";var r=a(174),n=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,a,r){function l(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(o,t),this.init()}var o={type:"form"};jQuery.extend(l.prototype,{init:function(){var e=this;this.$el.find(".connect-integration").on("click",function(t){e.open(t)})},open:function(e){var t=this;jQuery("#forminator-integration-popup").remove();var a=jQuery(e.target);a.hasClass("connect-integration")||(a=a.closest(".connect-integration"));var r=function(){return t.close(),!1},l=a.data("nonce"),o=a.data("slug"),i=a.data("title"),s=a.data("image"),u=a.data("imagex2"),c=a.data("action"),p=a.data("form-id"),f=a.data("multi-id"),d=a.data("poll-id"),h=a.data("quiz-id"),m=_.template('<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup"><div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div><div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog"><div class="sui-box" role="document"><div class="sui-box-header sui-block-content-center"><div class="sui-dialog-image" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image_x2 %> 2x" alt="<%= title %>" class="sui-image sui-image-center" /></div><div class="integration-header"></div><button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button><button class="sui-dialog-close forminator-integration-close" aria-label="Close"></button></div><div class="sui-box-body"></div><div class="sui-box-footer sui-box-footer-center"></div></div></div></div>');jQuery("main.sui-wrap").append(m({image:s,image_x2:u,title:i})),this.$popup=jQuery("#forminator-integration-popup");var b={slug:o,nonce:l,action:c,multi_id:f,el:this.$popup,type:t.options.type};return"form"===t.options.type?b.form_id=p:"poll"===t.options.type?b.poll_id=d:"quiz"===t.options.type&&(b.quiz_id=h),new n.default(b).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),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-fade-out").addClass("sui-fade-in"),this.$popup.removeAttr("aria-hidden"),jQuery("body").css("overflow","hidden"),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){var t=jQuery("#forminator-integration-popup");t.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),t.find(".sui-dialog-content").removeClass("sui-fade-in").addClass("sui-fade-out"),jQuery("body").css("overflow","auto"),setTimeout(function(){t.attr("aria-hidden","true")},300),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new l(this,e)})}}(jQuery,window,document)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(33),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){var a;r(this,t);var l=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{el:e.el,tagName:"div",events:{"click .forminator-addon-connect":"connectAddon","click .forminator-addon-disconnect":"disconnectAddon","click .forminator-addon-form-disconnect":"formDisconnectAddon","click .forminator-addon-next":"submitNextStep","click .forminator-addon-back":"goPrevStep","click .forminator-addon-finish":"finishSteps","click .forminator-refresh-email-lists":"refreshLists"}}));return l.slug=e.slug,l.nonce=e.nonce,l.action=e.action,l.multi_id=e.multi_id,l.type=e.type,l.step=0,l.next_step=!1,l.prev_step=!1,l.scrollbar_width=l.getScrollbarWidth(),"form"===l.type?l.module_id=e.form_id:"poll"===l.type?l.module_id=e.poll_id:"quiz"===l.type&&(l.module_id=e.quiz_id),a=l.render(),n(l,a)}return l(t,e),o(t,[{key:"render",value:function(){var e={};e.action=this.action,e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.step=this.step,e.data.current_step=this.step,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"request",value:function(e,t,a){var r=this,n={data:e,close:t,loader:a};a&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),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=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var a=e.data.data;if(r.onRender(a),r.$el.find(".sui-button").removeClass("sui-button-onload"),(t||!_.isUndefined(a.is_close)&&a.is_close)&&r.close(r),r.$el.find(".forminator-addon-close").on("click",function(){r.close(r)}),!_.isUndefined(a.notification)&&!_.isUndefined(a.notification.type)&&!_.isUndefined(a.notification.text)){new s.default({type:a.notification.type,text:a.notification.text,time:4e3}).open()}if(_.isUndefined(a.has_back)?r.$el.find(".forminator-addon-back").hide():a.has_back?r.$el.find(".forminator-addon-back").show():r.$el.find(".forminator-addon-back").hide(),!_.isUndefined(a.size)){var l=jQuery("#forminator-integration-popup");"normal"===a.size&&l.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===a.size&&(l.addClass("sui-dialog-sm"),l.removeClass("sui-dialog-lg sui-dialog-reduced")),"reduced"===a.size&&(l.addClass("sui-dialog-reduced"),l.removeClass("sui-dialog-lg sui-dialog-sm")),"large"===a.size&&(l.addClass("sui-dialog-lg"),l.removeClass("sui-dialog-sm sui-dialog-reduced"))}a.is_poll&&setTimeout(r.request(n.data,n.close,n.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .integration-header").remove();t.length>0&&this.$el.find(".integration-header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,a=e.data.data.buttons;t.$el.find(".sui-box-footer").html(""),_.each(a,function(e){t.$el.find(".sui-box-footer").append(e.markup)})}},{key:"onRender",value:function(e){(0,u.suiDelegateEvents)(),(0,u.select2Tags)(this.$el,{}),_.isUndefined(e.forminator_addon_current_step)||(this.step=+e.forminator_addon_current_step),_.isUndefined(e.forminator_addon_has_next_step)||(this.next_step=e.forminator_addon_has_next_step),_.isUndefined(e.forminator_addon_has_prev_step)||(this.prev_step=e.forminator_addon_has_prev_step)}},{key:"close",value:function(e){e.ajax.abort(),e.remove(),this.trigger("modal:closed")}},{key:"refreshLists",value:function(e){e.preventDefault(),e.stopPropagation();var t=this,a=jQuery(e.currentTarget),r=this.slug,n=this.nonce,l={slug:r};a.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:l,_ajax_nonce:n}}).done(function(e){if(e.success&&void 0!==e.data.options){var r=a.siblings(".sui-select");r.html(e.data.options),r.SUIselect2("destroy"),r.SUIselect2({dropdownParent:t.$(".sui-box"),dropdownCssClass:"sui-select-dropdown"})}}).fail(function(){}).always(function(){a.removeClass("sui-button-onload")})}},{key:"submitNextStep",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!1),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},a={slug:this.slug,step:this.getPrevStep(),current_step:this.step};a=this.getAjaxModuleData(a,!0),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}},{key:"finishSteps",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!0),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"getStep",value:function(){return this.next_step?this.step+1:this.step}},{key:"getPrevStep",value:function(){return this.prev_step?this.step-1:this.step}},{key:"connectAddon",value:function(){var e={},t=this.$el.find("form"),a={slug:this.slug,step:this.getStep(),current_step:this.step},r=t.serialize();a=this.getAjaxModuleData(a,!0),r=r+"&"+jQuery.param(a),e.action=this.action,e._ajax_nonce=this.nonce,e.data=r,this.request(e,!1,!1)}},{key:"disconnectAddon",value:function(){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,this.request(e,!0,!1)}},{key:"formDisconnectAddon",value:function(){var e={};e.action=this.getAjaxModuleAction("deactivate"),e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!0,!1)}},{key:"getScrollbarWidth",value:function(){var e=0;if(navigator.userAgent.match("MSIE")){var t=jQuery('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),a=jQuery('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=t.width()-a.width(),t.add(a).remove()}else{var r=jQuery("<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-r.width(),r.parent().remove()}return e}},{key:"getAjaxModuleData",value:function(e,t){return this.module_id&&(e.module_id=this.module_id,e.module_type=this.type),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":e="forminator_addon_deactivate_for_module"}return e}}]),t}(Backbone.View);t.default=c},function(e,t,a){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function s(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}})}function c(e){var t=new FileReader,a=u(t);return t.readAsArrayBuffer(e),a}function p(e){var t=new FileReader,a=u(t);return t.readAsText(e),a}function f(e){for(var t=new Uint8Array(e),a=new Array(t.length),r=0;r<t.length;r++)a[r]=String.fromCharCode(t[r]);return a.join("")}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:_.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_.arrayBuffer&&_.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||O(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_.blob&&(this.blob=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function m(e){var t=e.toUpperCase();return P.indexOf(t)>-1?t:e}function b(e,t){t=t||{};var a=t.body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=m(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var a=e.split("="),r=a.shift().replace(/\+/g," "),n=a.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function v(e){var t=new i;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var a=e.split(":"),r=a.shift().trim();if(r){var n=a.join(":").trim();t.append(r,n)}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}function E(e,t){return new Promise(function(a,r){function n(){o.abort()}var l=new b(e,t);if(l.signal&&l.signal.aborted)return r(new k("Aborted","AbortError"));var o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:v(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;a(new g(t,e))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.onabort=function(){r(new k("Aborted","AbortError"))},o.open(l.method,l.url,!0),"include"===l.credentials?o.withCredentials=!0:"omit"===l.credentials&&(o.withCredentials=!1),"responseType"in o&&_.blob&&(o.responseType="blob"),l.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),l.signal&&(l.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&l.signal.removeEventListener("abort",n)}),o.send(void 0===l._bodyInit?null:l._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=i,t.Request=b,t.Response=g,a.d(t,"DOMException",function(){return k}),t.fetch=E;var _={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(_.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],O=ArrayBuffer.isView||function(e){return e&&w.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,t){e=n(e),t=l(t);var a=this.map[e];this.map[e]=a?a+", "+t:t},i.prototype.delete=function(e){delete this.map[n(e)]},i.prototype.get=function(e){return e=n(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(n(e))},i.prototype.set=function(e,t){this.map[n(e)]=l(t)},i.prototype.forEach=function(e,t){for(var a in this.map)this.map.hasOwnProperty(a)&&e.call(t,this.map[a],a,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,a){e.push(a)}),o(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),o(e)},_.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},h.call(b.prototype),h.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];g.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var k=self.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=i,self.Request=b,self.Response=g)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(5),d=r(f),h=a(14),m=r(h),b=a(319),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.state.options)?[]:this.props.state.options,t=e.length>0?"sui-tab-boxed":"",a=c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field."));return this.props.description&&(a=c.default.createElement("span",{className:"sui-description"},this.props.description)),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Calculations")),a,e.length>0&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",default:"false",noWrapper:!0}),c.default.createElement(y.default,i({},this.props,{value:"true",boxClass:t,label:(0,p.translate)("Enable")})),c.default.createElement(m.default,{value:"false",label:(0,p.translate)("Disable")})),0===e.length&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",default:"false",noWrapper:!0}),c.default.createElement(m.default,i({},this.props,{value:"true",label:(0,p.translate)("Enable")})),c.default.createElement(m.default,{value:"false",label:(0,p.translate)("Disable")}))))}}]),t}(u.Component);t.default=v},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateFields=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELDS",wrappers:e})}},t.updateField=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELD",wrapper:e})}},t.updateFieldSettings=function(e,t){return function(a){window.forminatorChanges.fields.push(t),window.forminatorChanges.settings=!0,a({type:"UPDATE_FIELD",wrapper:e})}}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(10),d=r(f),h=a(4),m=r(h),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(m.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.updateValue=a.updateValue.bind(a),a.toggleState=a.toggleState.bind(a),a}return l(t,e),o(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=this.props.label,a="",r=this.state.open,n=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property];n||(a="sui-accordion-item--disabled"),n&&r&&(a="sui-accordion-item--open");var l=s.default.Children.map(this.props.children,function(e){return e}),o=r&&l;return this.props.noBoxBody||(o=s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},r&&l))),s.default.createElement("div",{className:"sui-accordion-item "+a},s.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("label",{htmlFor:"forminator-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",id:"forminator-"+this.props.property,onChange:function(t){e.updateValue(t.target.checked)},checked:n?"checked":""}),s.default.createElement("span",{className:"sui-toggle-slider"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",t)),s.default.createElement("span",null,t,this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"))),s.default.createElement("div",{className:"sui-accordion-col-auto"},s.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},s.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"})))),s.default.createElement("div",{className:"sui-accordion-item-body"},o))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a}return l(t,e),o(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,u.translate)("Preview")},"preview"),jQuery("#forminator-module-styles-"+this.props.id).remove()}},{key:"openModal",value:function(e){this.props.actions.modalActions.showModal({open:!0,title:"Preview",closeModal:this.closeModal},"preview")}},{key:"render",value:function(){return s.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",accessKey:"p",onClick:this.openModal,disabled:this.props.disabled},s.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,u.translate)("Preview"))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateNotifications=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATIONS",notifications:e})}},t.updateNotification=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATION",notification:e})}}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),l=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.validProp=l+"validation",a.validTextProp=l+"validation_message",a}return l(t,e),o(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.validProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.validProp])&&this.props.state[this.validProp],a=_.isUndefined(this.props.state[this.validTextProp])?"":this.props.state[this.validTextProp];return s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,u.translate)("Validate")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Make sure the user has filled out this field correctly and warn them when they haven't.")),s.default.createElement("div",{className:"sui-side-tabs",style:{marginTop:"10px"}},s.default.createElement("div",{className:"sui-tabs-menu"},s.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,u.translate)("None")),s.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,u.translate)("Validate Field"))),s.default.createElement("div",{className:"sui-tabs-content"},s.default.createElement("div",{className:"sui-tab-content sui-tab-boxed"+(t?" active":"")},s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,u.translate)("Validation message")),s.default.createElement("input",{type:"text",id:"forminator-field-name-error-msg",className:"sui-form-control",placeholder:(0,u.translate)("Enter validation message"),value:a,onChange:function(t){e.props.updateProperty(e.validTextProp,t.target.value)}})))))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(10),h=r(d),m=a(4),b=r(m),y=a(317),v=r(y),g=a(42),E=r(g),w=a(25),O=r(w),P=a(318),x=r(P),k=function(e){function t(e){l(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a.updateLimit=a.updateLimit.bind(a),a.updateDefault=a.updateDefault.bind(a),a.updateImage=a.updateImage.bind(a),a.updateBulkValue=a.updateBulkValue.bind(a);var r=!_.isUndefined(a.props.state.bulk_edit)&&a.props.state.bulk_edit;return a.state={options:_.isUndefined(a.props.state.options)?[]:[].concat(n(a.props.state.options)),options_bulk_editor:_.isUndefined(a.props.state.options_bulk_editor)?"":a.props.state.options_bulk_editor,options_calcs:a.props.state.calculations?[].concat(n(a.props.state.options)):[],csv_file:null,is_loading:!r,show_standard:!1},a}return i(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.state.limit_status,a=jQuery(this.el).closest("#forminator-modal").find(".forminator-discard-field-settings");_.isUndefined(a.attr("data-initial-opts"))&&a.attr("data-initial-opts",window.btoa(JSON.stringify(this.props.state.options))),this.runEditorFunctions(),this.props.state.bulk_edit||0!==this.state.options_bulk_editor.length&&"enable"!==t?this.props.state.bulk_edit&&"enable"===t&&!this.props.state.calculations&&this.convertToStandard():this.convertToBulk(),this.state.is_loading&&setTimeout(function(){e.setState({is_loading:!1,show_standard:!0}),e.addOptionClassToggle()},400)}},{key:"getSnapshotBeforeUpdate",value:function(e,t){var a=this,r=this.state.options,n=this.props.state.bulk_edit,l=this.state.is_loading,o=void 0,i=void 0;if(n||!e.state.bulk_edit||l||this.setState({is_loading:!0}),!n&&l){var s=r.length<50?400:700;clearTimeout(i),i=setTimeout(function(){a.setState({is_loading:!1,show_standard:!0})},s)}return clearTimeout(o),n&&this.props.state.options_bulk_editor!==e.state.options_bulk_editor?o=setTimeout(function(){a.convertToStandard()},500):n||this.props.state.options===e.state.options||(o=setTimeout(function(){a.convertToBulk()},500)),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.bulk_edit===e.state.bulk_edit&&(this.state.is_loading||this.props.state.bulk_edit)||(this.runEditorFunctions(),this.addOptionClassToggle()),this.state.options_bulk_editor===t.options_bulk_editor&&this.props.state.options_expanded===e.state.options_expanded||this.addOptionClassToggle()}},{key:"runEditorFunctions",value:function(){var e=this,t=this.props.state.bulk_edit,a=this.state.is_loading;if(this.$el=jQuery(this.el),this.$importError=this.$el.find(".importer-error"),!t&&!a){this.moveOption=this.moveOption.bind(this);var r=!0;this.$el.find(".fui-multi-options").sortable({helper:"clone",start:function(t,a){r&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),r=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}if(t){e.setState({show_standard:!1}),window.File&&window.FileReader&&window.FileList&&window.Blob||this.showError((0,f.translate)("The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer."));var n=this.$el.find(".upload-csv-btn"),l=this.$el.find(".import-csv-btn"),o=this.$el.find(".uploaded-csv-file"),i=o.find(".remove-file"),s=this.$el.find("#upload-csv-input");this.$el.find(".upload-csv-btn, .uploaded-csv-file > span").on("click",function(){s.trigger("click"),e.hideError()}),i.on("click",function(){s.val("").trigger("change")}),s.on("change",function(){var t=s.val();if(t.length>0){e.setState({csv_file:s.get(0).files[0]});"csv"!==t.slice(2+(t.lastIndexOf(".")-1>>>0))?(i.trigger("click"),e.showError((0,f.translate)("Whoops, only .csv filetype is allowed."))):(l.prop("disabled",!1),n.hide(),o.show(),o.find("> span").html(t.replace(/^.*[\\\/]/,"")),0!==e.props.state.options_bulk_editor.length&&e.showError((0,f.translate)("Importing this will replace your current options. Click import to continue."),"warning"))}else l.prop("disabled",!0),n.show(),o.hide(),o.find("> span").html(""),e.hideError()}),l.on("click",function(){e.importCsv()})}}},{key:"importCsv",value:function(){if(window.File&&window.FileReader&&window.FileList&&window.Blob){var e=this,t=this.$el.find("#upload-csv-input"),a=this.state.csv_file;if(t.get(0).files){var r=a,n=new FileReader;this.setState({options_bulk_editor:""}),n.onload=function(){var t=n.result;-1!==t.indexOf("Option label; Option value")&&(t=t.substring(t.indexOf("\n")+1)),e.props.updateProperty("options_bulk_editor",t),e.setState({options_bulk_editor:t}),e.convertToStandard()},n.readAsText(r),this.setState({csv_file:null}),t.trigger("change")}else e.showError((0,f.translate)("This browser doesn't seem to support the `files` property of file inputs."))}}},{key:"showError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";"error"!==t?this.$importError.removeClass("sui-notice-error").addClass("sui-notice-"+t):this.$importError.removeClass().addClass("importer-error sui-notice sui-notice-error"),this.$importError.find("p").text(e),this.$importError.show()}},{key:"hideError",value:function(){this.$importError.find("p").text(""),this.$importError.hide()}},{key:"componentWillUnmount",value:function(){jQuery("#forminator-modal").off("scroll"),this.$el.off().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),this.convertToBulk()}},{key:"updateLabel",value:function(e,t){var a=this.state.options;a[e].label=t,this.updateState(a)}},{key:"updateLimit",value:function(e,t){var a=this.state.options;a[e].limit=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.state.options;a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.state.options;a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"updateDefault",value:function(e,t){var a=this.state.options;this.props.isRadio&&"true"===this.props.isRadio&&_.map(a,function(e,t){a[t].default=!1}),a[e].default=t,this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.state.options;t.splice(e,1),this.updateState(t)}},{key:"updateImage",value:function(e,t,a){var r=this.state.options;"image"===a&&(r[e].image=t),"image"!==a&&(r[e].image_filename=t),this.updateState(r)}},{key:"addOption",value:function(){var e=this.state.options,t=(0,f.randNumber)()+"-"+(0,f.randNumber)();e.push({label:"",value:"",limit:"",default:!1,key:t}),this.updateState(e),this.scrollToNewOpt()}},{key:"scrollToNewOpt",value:function(){var e=jQuery(".standard-editor"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},200)}},{key:"addOptionClassToggle",value:function(){var e=void 0;clearTimeout(e),e=setTimeout(function(){var e=jQuery(".standard-editor").next(".fui-multi-options");jQuery(".standard-editor").outerHeight()>460?e.addClass("add-option-box"):e.removeClass("add-option-box")},50)}},{key:"generateUniqId",value:function(){return(0,f.randNumber)()+"-"+(0,f.randNumber)()}},{key:"updateBulkValue",value:function(){var e=this.state.options_bulk_editor;return this.setState({options_bulk_editor:e}),e}},{key:"convertToBulk",value:function(){var e=this.state.options,t=this.props.state.type,a="";_.map(e,function(e,r){r>0&&(a+="\n");var n=e.label,l=e.value;a+=n,a+="; ",_.isUndefined(l)?_.isUndefined(n)?a+="":a+=(0,f.formatValue)(n):a+=(0,f.formatValue)(l),_.isUndefined(e.default)||!e.default?(a+="; ",a+="0"):e.default&&(a+="; ",a+="1"),"select"===t?_.isUndefined(e.limit)||_.isEmpty(e.limit)||(a+="; ",a+=e.limit):_.isUndefined(e.image)||_.isEmpty(e.image)||(a+="; ",a+=e.image)}),this.setState({options_bulk_editor:a}),this.props.updateProperty("options_bulk_editor",a)}},{key:"convertToStandard",value:function(){var e=this,t=this.props.state.type,a=[],r=this.props.state.options_bulk_editor;if(!_.isUndefined(r)&&r.length>0){var n=0;r=r.split(/\r\n|\r|\n/),_.map(r,function(r,l){if(Boolean(r)){var o=r.split(";"),i=_.isEmpty(o[0])?(0,f.translate)("Option ")+(n+1):o[0],s=_.isUndefined(o[1])?"":o[1];if(s=_.isEmpty(s)?(0,f.formatValue)(i):(0,f.formatValue)(s),a[n]={key:e.generateUniqId(),label:i,value:s.toLowerCase(),default:!_.isUndefined(o[2])&&1==o[2]},_.isEmpty(o[3])||("select"===t?"enable"===e.props.state.limit_status&&(a[n].limit=o[3]):(a[n].image=o[3],a[n].image_filename=o[3].replace(/^.*[\\\/]/,""))),e.props.state.calculations){var u=_.find(e.state.options_calcs,function(e){return e.label===i});a[n].calculation=_.isUndefined(u)?"":u.calculation}n++}})}this.setState({options:a}),this.props.updateProperty("options",a)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state.options_expanded)||!this.props.state.options_expanded?(0,f.translate)("Expand All"):(0,f.translate)("Collapse All"),a=!_.isUndefined(this.props.state.bulk_edit)&&this.props.state.bulk_edit,r=this.props.state.type,n="select"!==r?"checkbox_radio_bulk_template.csv":"select_bulk_template.csv",l=this.state.options,o=this.state.options_bulk_editor,i=this.state.is_loading,u=this.state.show_standard,c=l.length>1e3,d=0===l.length?"no-option":"",m=(0,f.translate)("Label; value; selection (0 or 1); image-url");"select"===r&&(m="enable"===this.props.state.limit_status?(0,f.translate)("Label; value; selection (0 or 1); submission limit"):(0,f.translate)("Label; value; selection (0 or 1)"));var y=jQuery("#shared-ui-js");return y.length>0?(y=y.prop("src").split("js/shared-ui.min.js"),y=y[0]+"csv/",y+=n):y=!1,p.default.createElement("div",{id:"demo-multi-options--radio",className:"sui-form-field multi-options-bulk",ref:function(t){return e.el=t}},c&&a&&p.default.createElement("div",{className:"sui-notice sui-notice-warning"},p.default.createElement("p",null,(0,f.translate)("Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution."))),p.default.createElement(h.default,null,p.default.createElement(b.default,{cols:"3"},p.default.createElement("label",{id:"label-options",className:"sui-label"},(0,f.translate)("Options"))),p.default.createElement(b.default,{cols:"9"},p.default.createElement("div",{className:"switch-box"},!a&&p.default.createElement(E.default,s({},this.props,{settings:this.props.state,label:t,property:"options_expanded",itemClass:"sui-checkbox sui-checkbox-sm collapse-options"})),"select"!==r&&p.default.createElement(E.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Enable Images"),property:"enable_images",itemClass:"sui-checkbox-sm "})),p.default.createElement("span",{className:"bulk-edit-toggle "},p.default.createElement(O.default,s({},this.props,{settings:this.props.state,property:"bulk_edit",label:(0,f.translate)("Bulk Edit"),unWrap:!0})))))),i&&p.default.createElement("div",{className:"multi-opts-preloader"},p.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}," ",(0,f.translate)("Loading"),"...")),!a&&u&&p.default.createElement("div",{className:"sui-accordion sui-accordion-block"},p.default.createElement("div",{className:"fui-multi-options standard-editor "+d},_.map(l,function(t,a){return p.default.createElement(v.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel,updateLimit:e.updateLimit,updateDefault:e.updateDefault,updateImage:e.updateImage},e.props))})),p.default.createElement("div",{className:"fui-multi-options"},p.default.createElement("button",{className:"fui-add-option",onClick:this.addOption},p.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Option")))),a&&p.default.createElement("div",{className:"fui-multi-options"},p.default.createElement("div",{className:"sui-box sui-message sui-message-lg fui-multi-options-bulk"},p.default.createElement(x.default,s({},this.props,{settings:this.props.state,property:"options_bulk_editor",defaultValue:o,value:o,updateValue:this.updateBulkValue,label:(0,f.translate)("Enter field options (one per line)"),description:(0,f.translate)("Type or paste options above (one per line and separated by semicolons) or click")+" \n<b>"+(0,f.translate)('"+ Predefined options"')+"</b> "+(0,f.translate)("link to select an option.")+" "+(0,f.translate)("Example:")+"<b> "+m+"</b> "})),p.default.createElement("div",{className:"sui-form-field bulk-importer"},p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Import options from CSV")),p.default.createElement("div",{className:"sui-upload"},p.default.createElement("input",{id:"upload-csv-input",type:"file",value:"",readOnly:"readonly",accept:".csv"}),p.default.createElement("button",{className:"sui-upload-button upload-csv-btn"},p.default.createElement("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),(0,f.translate)("Upload file")),p.default.createElement("div",{className:"sui-upload-file uploaded-csv-file"},p.default.createElement("span",null),p.default.createElement("button",{className:"remove-file","aria-label":"Remove file"},p.default.createElement("span",{className:"sui-icon-close","aria-hidden":"true"}))),p.default.createElement("button",{role:"button",className:"sui-button sui-button-blue import-csv-btn",disabled:!0},p.default.createElement("span",{className:"sui-icon-download-cloud","aria-hidden":"true"}),(0,f.translate)("Import"))),p.default.createElement("div",{className:"importer-error sui-notice sui-notice-error",style:{display:"none"}},p.default.createElement("p",null)),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose a CSV (.csv) file to import field options and values.")+" ",y&&p.default.createElement("a",{className:"blue",href:y,target:"_blank",download:n},(0,f.translate)("Download csv template")))))))}}]),t}(c.Component);t.default=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=(r(u),a(21)),p=r(c),f=function(e){function t(e){l(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return i(t,e),s(t,[{key:"replaceInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t+1)))}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"afterSave",value:function(e){var t=(Object.assign({},this.props.wrappers),[]);if(jQuery(".field-required select").length>0){var a="";jQuery(".field-required select option:selected").map(function(){"auto"!==(a=jQuery(this).val())&&t.push(a)}),t=[].concat(n(new Set(t)))}var r=_.map(this.props.wrappers,function(e,a){return e.fields.map(function(e){return e.required=-1!==t.indexOf(e.element_id),e}),e});this.updateState(r)}}]),t}(p.default);t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),h=a(5),m=r(h),b=a(3),y=r(b),v=a(2),g=r(v),E=function(e){function t(){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default",t="login"===e;return _.isUndefined(this.props.settings["akismet-protection"])&&(this.props.settings["akismet-protection"]=1),forminatorData.akismetEnabled||(this.props.settings["akismet-protection"]=0),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Security")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Added layers of security to prevent spam submissions."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},"form"===this.props.moduleSlug&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable Honeypot protection"),property:"honeypot",description:(0,p.translate)("Enabling this feature tricks spam bots by giving them a hidden challenge only bots will see. If the bot tries the challenge we know it's not a human and prevent the form being submitted.")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable Akismet spam protection"),property:"akismet-protection",disabled:!forminatorData.akismetEnabled,description:(0,p.translate)("If you have installed the {{link}}Akismet anti-spam plugin{{/link}}, you can enable this option to tell Forminator how to handle submissions that Akismet flags as spam.",{components:{link:c.default.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/akismet/"})}})}),c.default.createElement(m.default,i({},this.props,{property:"akismet-protection-behavior",default:"fail",label:(0,p.translate)("How should Forminator handle spam submissions?")}),c.default.createElement(y.default,{value:"fail",boxClass:"sui-tab-boxed",label:(0,p.translate)("Fail Submission")},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Custom error message"),placeholder:(0,p.translate)("Something went wrong."),property:"spam-fail-message",description:(0,p.translate)("Enter a custom error message to let your visitors know why the submission failed.")}))),c.default.createElement(y.default,{value:"mark_spam",label:(0,p.translate)("Mark as Spam")},c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,p.translate)("Entries marked as spam will be captured in the database, but not shown in Submissions. Additionally, Payments, Notification emails, and other automatic processes will be blocked.")))))),"form"===this.props.moduleSlug&&!t&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable logged in submission only"),property:"logged-users",description:(0,p.translate)("Lock down your form submissions to registered users only.")}))))}}]),t}(u.Component);t.default=E},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:n,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var n=t.UPDATE_TITLE="UPDATE_TITLE"},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(182),f=(r(p),function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a}return o(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1,title:(0,c.translate)("Insert Fields")},"insert-fields")}},{key:"openModal",value:function(){this.props.actions.modalActions.showModal({open:!0,title:(0,c.translate)("Insert Fields"),closeModal:this.closeModal},"insert-fields")}},{key:"render",value:function(){if("true"===this.props.header)return u.default.createElement("div",{className:"sui-box-header fui-builder-section--insert"},u.default.createElement("button",{className:"sui-button sui-button-purple forminator-open-insert-fields",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,c.translate)(" Insert Fields")));var e=void 0;return 0===this.props.wrappers.length&&(e=u.default.createElement(u.default.Fragment,null,u.default.createElement("p",{className:"sui-block-content-center"},u.default.createElement("small",null,(0,c.translate)("A form without fields isn’t going to be very useful… Add your first field above!"))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))),u.default.createElement("div",{className:"fui-builder-fields--footer"},u.default.createElement("button",{className:"sui-button sui-button-dashed forminator-open-insert-fields",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,c.translate)("Insert Fields")),e)}}]),t}(s.Component));t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(16),d=r(f),h=a(18),m=r(h),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=_.isUndefined(this.props.state.type)?"radio":this.props.state.type,t="radio"===e?(0,p.translate)("radio button"):(0,p.translate)("checkbox"),a=t.charAt(0).toUpperCase()+t.slice(1);return c.default.createElement(d.default,null,c.default.createElement("label",{className:"sui-settings-label"},a+" "+(0,p.translate)("visibility")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("When using image options, you can hide or show the "+t+" element and its label in frontend. If no image is uploaded, the "+t+" and label will remain visible.")),c.default.createElement(m.default,i({},this.props,{settings:this.props.state,property:"input_visibility",defaultValue:"true",noWrapper:!0}),c.default.createElement("div",{value:"true"},(0,p.translate)("Show")),c.default.createElement("div",{value:"false"},(0,p.translate)("Hide"))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(326),d=r(f),h=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a}return o(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),this.moveOption=this.moveOption.bind(this);var t=!0;this.$el.find(".fui-multi-options").sortable({start:function(a,r){t&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),t=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),_.isUndefined(this.props.actions)||this.props.actions.settingsActions.updateSetting("options",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.options,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateLabel",value:function(e,t){var a=this.getPropState();a[e].label=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.getPropState();a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addOption",value:function(){var e=this.getPropState();e.push({label:"",value:""}),this.updateState(e)}},{key:"render",value:function(){var e=this,t=this.props.state.options;return c.default.createElement("div",{className:"sui-box-builder"},c.default.createElement("div",{className:"sui-box-builder-body",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,a){return c.default.createElement(d.default,i({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel},e.props))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addOption},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Custom User Meta")),this.props.metaDescription&&t.length<=0&&c.default.createElement("span",{className:"sui-description",style:{marginTop:"30px"}},this.props.metaDescription)))}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a={minHeight:this.props.height?this.props.height:"auto"},r="";return this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field"},r,s.default.createElement("textarea",{id:"forminator-field-"+this.props.property,className:"sui-form-control",style:a,placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)}}),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component));t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.trashField=a.trashField.bind(a),a}return l(t,e),o(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-block-content-center"},s.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,u.translate)("Delete Notification")),s.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,u.translate)("Close this dialog window"),onClick:this.closeModal})),s.default.createElement("div",{className:"sui-box-body sui-box-body-slim sui-block-content-center"},s.default.createElement("p",{className:"sui-description"},(0,u.translate)("Are you sure you wish to delete this Notification?"))),s.default.createElement("div",{className:"sui-box-footer sui-box-footer-center",style:{paddingTop:"0"}},s.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,u.translate)("Cancel")),s.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},s.default.createElement("span",{className:"sui-loading-text"},s.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,u.translate)("DELETE")))))}}]),t}(i.Component);t.default=c},,,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n=a(0),l=r(n),o=a(54),i=a(8),s=a(19),u=a(271),c=r(u),p=a(44),f=r(p),d=a(277),h=r(d),m=(0,c.default)(forminatorData.currentForm);f.default.setLocale(forminatorl10n.locale),window.forminatorChanges={fields:[],settings:!1},window.jQueryFormi=jQuery.noConflict(),(0,o.render)(l.default.createElement(i.Provider,{store:m},l.default.createElement(s.MemoryRouter,null,l.default.createElement(s.Route,{component:h.default}))),document.getElementById("forminator-form-builder"))},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return c(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var l=a(9),o=a(149),i=r(o),s=a(272),u=r(s),c=(0,l.compose)((0,l.applyMiddleware)(i.default))(l.createStore)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(9),l=a(273),o=r(l),i=a(274),s=r(i),u=a(275),c=r(u),p=a(276),f=r(p),d=(0,n.combineReducers)({wrappers:o.default,settings:s.default,modal:c.default,notifications:f.default});t.default=d},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.wrapper,r=e.findIndex(function(e){return e.wrapper_id===a.wrapper_id});return e=(0,o.replaceInPosition)(e,r,a)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_FIELDS":return t.wrappers;case"UPDATE_FIELD":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var o=a(1)},function(e,t,a){"use strict";function r(e,t){var a=t.setting,r=t.value;return e[a]=r,e}function n(e,t){var a=t.settings;return i({},e,a)}function l(e,t){var a=t.title;return e.formName=a,e}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],a=Object.assign({},e);switch(t.type){case"UPDATE_SETTINGS":return n(a,t);case"UPDATE_SETTING":return r(a,t);case"UPDATE_TITLE":return l(a,t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.default=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={modalType:null,modalProps:{}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case"SHOW_MODAL":return{modalProps:t.modalProps,modalType:t.modalType,type:t.type};case"HIDE_MODAL":return r;default:return e}}},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.notification,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,o.replaceInPosition)(e,r,a)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_NOTIFICATIONS":return t.notifications;case"UPDATE_NOTIFICATION":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var o=a(1)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(54),p=(r(c),a(19)),f=(a(8),a(278)),d=r(f),h=a(282),m=r(h),b=a(286),y=r(b),v=a(290),g=r(v),E=a(298),_=r(E),w=a(358),O=r(w),P=a(401),x=r(P),k=a(409),j=r(k),N=a(413),C=r(N),S=a(420),T=r(S),F=a(424),D=r(F),M=a(426),A=r(M),V=a(1),R=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.handleBeforeunload),window.addEventListener("scroll",this.applySticky.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.handleBeforeunload)}},{key:"applySticky",value:function(){var e=this.refs.StickyHeader;e.getBoundingClientRect().top<=parseInt(window.getComputedStyle(e).top.replace("px",""))?e.classList.add("sui-is-sticky"):e.classList.remove("sui-is-sticky")}},{key:"handleBeforeunload",value:function(e){if(window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.preventDefault(),e.returnValue=(0,V.translate)("You have unsaved changes, are you sure want to leave this page"),(0,V.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default";return u.default.createElement("div",null,u.default.createElement(d.default,null),u.default.createElement("div",{className:"sui-row-with-sidenav"},u.default.createElement(m.default,this.props),u.default.createElement("div",null,u.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},u.default.createElement(y.default,null)),u.default.createElement(p.Route,{exact:!0,path:"/",render:function(){return u.default.createElement(p.Redirect,{to:"/builder"})}}),u.default.createElement(p.Route,{path:"/builder",component:g.default}),u.default.createElement(p.Route,{path:"/appearance",component:O.default}),"registration"===e&&u.default.createElement(p.Route,{path:"/registration",component:x.default}),"login"===e&&u.default.createElement(p.Route,{path:"/login",component:j.default}),u.default.createElement(p.Route,{path:"/behaviour",component:C.default}),u.default.createElement(p.Route,{path:"/notifications",component:T.default}),u.default.createElement(p.Route,{path:"/integrations",component:D.default}),u.default.createElement(p.Route,{path:"/settings",component:A.default}))),u.default.createElement(_.default,this.props))}}]),t}(s.Component);t.default=R},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,title:e.settings.formName||"",formType:e.settings["form-type"]||""}}function l(e){return{actions:{navigationActions:(0,i.bindActionCreators)(d,e),modalActions:(0,i.bindActionCreators)(p,e),settingsActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(8),i=a(9),s=a(99),u=r(s),c=a(52),p=r(c),f=a(262),d=r(f),h=a(279),m=function(e){return e&&e.__esModule?e:{default:e}}(h);t.default=(0,o.connect)(n,l)(m.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return o.default.createElement("div",{className:"sui-header fui-header-with-settings"},o.default.createElement("div",{className:"fui-header-title"},o.default.createElement("h1",{className:"sui-header-title"},(0,i.translate)("Edit Form")),o.default.createElement("div",{className:"sui-actions-right"},o.default.createElement(p.default,e))),o.default.createElement("div",{className:"fui-header-settings"},o.default.createElement("div",{className:"sui-actions-left"},o.default.createElement(u.default,e)),o.default.createElement("div",{className:"sui-actions-right"},o.default.createElement(p.default,e))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var l=a(0),o=r(l),i=a(1),s=a(280),u=r(s),c=a(281),p=r(c)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(150),d=r(f),h=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.title,a=_.isEmpty(t.trim()),r=a?"sui-form-field-error":"",n={};return"leads"===this.props.formType&&(n={borderColor:"#ddd",backgroundColor:"#fafafa",color:"#666"}),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field "+r},c.default.createElement("label",{htmlFor:"forminator-set-title",id:"forminator-set-title-label",className:"sui-screen-reader-text"},(0,p.translate)("Name your form")),c.default.createElement("input",{type:"text",value:t,placeholder:(0,p.translate)("Give your form a name"),id:"forminator-set-title",className:"sui-form-control",style:n,"aria-labelledby":"forminator-set-title-label","aria-describedby":"forminator-set-title-message","aria-required":"true",accessKey:"t",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)},disabled:"leads"===this.props.formType}),c.default.createElement("p",{role:"alert",id:"forminator-set-title-message",className:"sui-error-message",style:{display:a?"block":"none",marginBottom:0}},a&&(0,p.translate)("Please, enter a valid name."))),"leads"!==this.props.formType&&c.default.createElement(d.default,i({},this.props,{type:"form"})))}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e){return forminatorData.showDocLink?l.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#forms",target:"_blank",className:"sui-button sui-button-ghost"},l.default.createElement("span",{className:"sui-icon-academy"})," ",(0,o.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n),o=a(1)},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,title:e.settings.formName||"",formType:e.settings["form-type"]||"default"}}function l(e){return{actions:{navigationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(8),i=a(9),s=a(52),u=r(s),c=a(262),p=r(c),f=a(283),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,o.connect)(n,l)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return o.default.createElement("div",{className:"sui-sidenav fui-sidenav"},o.default.createElement(s.default,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var l=a(0),o=r(l),i=a(284),s=r(i)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(19),p=a(1),f=a(285),d=r(f),h=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("ul",{className:"sui-vertical-tabs sui-sidenav-sticky sui-sidenav-hide-md fui-sidenav"},u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/builder",activeClassName:"current"},(0,p.translate)("Fields"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,p.translate)("Appearance"))),"registration"===this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/registration",activeClassName:"current"},(0,p.translate)("User Registration"))),"login"===this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/login",activeClassName:"current"},(0,p.translate)("User Login"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,p.translate)("Behaviour"))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&u.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,p.translate)("Email Notifications")),"leads"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-right sui-tooltip-constrained",style:{"--tooltip-width":"235px"},"data-tooltip":(0,p.translate)("You can configure email notifications on the parent quiz as it is shared between this form and the parent quiz.")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Email Notifications"),u.default.createElement("i",{class:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&u.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,p.translate)("Integrations")),"leads"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-right sui-tooltip-constrained",style:{"--tooltip-width":"235px"},"data-tooltip":(0,p.translate)("You can configure integrations on the parent quiz as it is shared between this form and the parent quiz.")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Integrations"),u.default.createElement("i",{class:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,p.translate)("Settings")))),u.default.createElement(d.default,this.props,u.default.createElement("option",{value:""},(0,p.translate)("Fields")),u.default.createElement("option",{value:"appearance"},(0,p.translate)("Appearance")),"registration"===this.props.formType&&u.default.createElement("option",{value:"registration"},(0,p.translate)("User Registration")),"login"===this.props.formType&&u.default.createElement("option",{value:"login"},(0,p.translate)("User Login")),u.default.createElement("option",{value:"behaviour"},(0,p.translate)("Behaviour")),"leads"!==this.props.formType&&u.default.createElement(u.default.Fragment,null,u.default.createElement("option",{value:"notifications"},(0,p.translate)("Email Notifications")),u.default.createElement("option",{value:"integrations"},(0,p.translate)("Integrations"))),u.default.createElement("option",{value:"settings"},(0,p.translate)("Settings"))))}}]),t}(s.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return s.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Navigate")),s.default.createElement("select",{className:"sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges}}function l(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(8),i=a(9),s=a(99),u=r(s),c=a(52),p=r(c),f=a(287),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,o.connect)(n,l)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(69),d=r(f),h=a(75),m=r(h),b=a(288),y=r(b),v=a(289),g=r(v),E=a(33),w=r(E),O=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={publishLoading:!1,draftLoading:!1},a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return o(t,e),s(t,[{key:"publish",value:function(){var e=this,t=this.props.state,a=t.settings,r=a.form_id,n=a.formName,l=_.isUndefined(n)?"":n,o=_.isUndefined(r)?-1:r;this.setState({publishLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:l,form_id:o,status:"publish",version:forminatorData.version,data:JSON.stringify(t)};setTimeout(function(){e.save(i,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props.state,a=t.settings,r=a.form_id,n=a.formName,l=_.isUndefined(n)?"":n,o=_.isUndefined(r)?-1:r;this.setState({draftLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:l,form_id:o,status:"draft",version:forminatorData.version,data:JSON.stringify(t)};setTimeout(function(){e.save(i,"draft")},1500)}},{key:"save",value:function(e,t){var a=this,r=this,n=this.props.status;d.default.post(forminatorData.ajaxUrl,m.default.stringify(e)).then(function(l){var o="draft"===n&&"publish"===t||_.isUndefined(n)&&"publish"===t;if(l.data.success){if(-1===e.form_id&&(a.props.actions.settingsActions.updateSetting("form_id",l.data.data),forminatorData.currentForm.settings.form_id=l.data.data,window.history.pushState({},"Edit Form",forminatorData.formEditUrl+"&id="+l.data.data)),a.props.actions.settingsActions.saveBuilder("form_status",t),o){var i=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:i},"shortcode")}}else{o&&r.props.actions.modalActions.showModal({open:!1,closeModal:a.closeModal},"publish");new w.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open()}a.setState({publishLoading:!1,draftLoading:!1})}).catch(function(e){new w.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open(),console.log(e),a.setState({publishLoading:!1,draftLoading:!1})})}},{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-status"},c.default.createElement(y.default,i({},this.props,{state:this.state})),c.default.createElement(g.default,i({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){var t=e.status,a="publish"===t?"sui-tag-published":"sui-tag-draft",r=!(!e.state.draftLoading&&!e.state.publishLoading);return l.default.createElement("div",{className:"sui-status"},l.default.createElement("div",{className:"sui-status-module"},"Status",l.default.createElement("span",{className:"sui-tag "+a},function(){switch(t){case"publish":return(0,o.translate)("Published");default:return(0,o.translate)("Draft")}}())),r&&l.default.createElement("div",{className:"sui-status-changes"},l.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,o.translate)("Saving...")),!r&&e.changed.settings&&l.default.createElement("div",{className:"sui-status-changes"},l.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,o.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&l.default.createElement("div",{className:"sui-status-changes"},l.default.createElement("i",{className:"sui-icon-check-tick","aria-hidden":"true"}),(0,o.translate)("Saved")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n),o=a(1)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(182),d=r(f),h=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return o(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this.props,t=e.status,a=e.title;_.isEmpty(a.trim())||(this.props.publish(),("draft"===t||_.isEmpty(t))&&this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e.trim())||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,a=t.draftLoading,r=t.publishLoading,n=forminatorData.currentForm.settings["form-type"]||"default";return c.default.createElement("div",{className:"sui-actions"},"leads"!==n&&c.default.createElement("button",{id:"forminator-module-save",className:"sui-button sui-button-ghost",style:{borderColor:"transparent"},disabled:!!a||r,onClick:this.draft},"publish"===e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-unpublish","aria-hidden":"true"}),(0,p.translate)("Unpublish")),"publish"!==e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,p.translate)("Save Draft"))),c.default.createElement(d.default,i({},this.props,{disabled:!(!a&&!r)})),c.default.createElement("button",{id:"forminator-module-publish",className:"sui-button sui-button-blue",disabled:!(!a&&!r),onClick:this.publish},c.default.createElement("span",{className:"sui-loading-text"},c.default.createElement("span",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),c.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,p.translate)("Update");default:return(0,p.translate)("Publish")}}())),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{wrappers:e.wrappers,notifications:e.notifications,submitData:e.settings.submitData||{},changed:window.forminatorChanges,formType:e.settings["form-type"]||""}}function l(e){return{actions:{builderActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),notificationsActions:(0,i.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(8),i=a(9),s=a(179),u=r(s),c=a(52),p=r(c),f=a(183),d=r(f),h=a(291),m=function(e){return e&&e.__esModule?e:{default:e}}(h);t.default=(0,o.connect)(n,l)(m.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(263),f=r(p),d=a(292),h=r(d),m=a(295),b=r(m),y=a(296),v=r(y),g=a(297),E=r(g),_=a(1),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"componentDidMount",value:function(){jQuery("html, body").animate({scrollTop:0},"fast")}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=(0,_.hasFieldType)("page-break",this.props.wrappers),r=(0,_.hasFieldType)("paypal",this.props.wrappers),n=(0,_.getFieldsByType)("paypal",this.props.wrappers);return c.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},c.default.createElement(f.default,i({},this.props,{header:"true"})),a&&c.default.createElement(b.default,this.props),c.default.createElement(h.default,this.props),r&&c.default.createElement(E.default,i({},this.props,{field:n[0]})),!r&&c.default.createElement(v.default,this.props),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("div",{className:"sui-actions-right"},c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,_.translate)("Appearance"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(263),d=r(f),h=a(293),m=r(h),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this;return c.default.createElement("div",{id:"forminator-builder-fields",className:"fui-builder-fields"},c.default.createElement("div",{className:"fui-builder-form--wrap"},c.default.createElement("span",{className:"fui-swipe"},(0,p.translate)("Swipe"),c.default.createElement("i",{className:"sui-icon-finger-point","aria-hidden":"true"})),c.default.createElement("div",{className:"fui-builder-form"},this.props.wrappers.map(function(t){return c.default.createElement(m.default,i({},e.props,{key:t.wrapper_id,wrapper:t}))}))),c.default.createElement(d.default,i({},this.props,{header:"false"})))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(294),f=r(p),d=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"isPayPalWrapper",value:function(){if(this.props.wrapper.fields.length>1)return!1;if(1===this.props.wrapper.fields.length){if("paypal"===this.props.wrapper.fields[0].type)return!0}return!1}},{key:"render",value:function(){var e=this;return this.isPayPalWrapper()?c.default.createElement(c.default.Fragment,null):c.default.createElement("div",{id:""+this.props.wrapper.wrapper_id,className:"fui-row"},this.props.wrapper.fields.map(function(t){return c.default.createElement(f.default,i({key:t.element_id,field:t},e.props))}))}}]),t}(u.Component);t.default=d},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.el=u.default.createRef(),a.cloneField=a.cloneField.bind(a),a.trashField=a.trashField.bind(a),a.deleteField=a.deleteField.bind(a),a.closeModal=a.closeModal.bind(a),a.closeDeleteField=a.closeDeleteField.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),i(t,[{key:"componentDidMount",value:function(){this.drops=[],this.drop=!1,this.$el=jQuery(this.el.current),this.$main=this.$el.closest(".fui-builder-fields"),this.startDragDrop()}},{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"deleteField",value:function(){if(this.closeMenu(),"page-break"===this.props.field.type)return this.trashField(),!1;this.props.actions.modalActions.showModal({open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"trashField",value:function(){var e=[].concat(r(this.props.wrappers)),t=this.getWrappersWithoutCurrentField(e).filter(function(e){return!_.isEmpty(e.fields)});if(t=this.getWrappersFilterCondition(t),t=this.updateCols(t),this.closeMenu(),this.updateState(t),!_.isUndefined(this.props.notifications)&&!_.isEmpty(this.props.notifications)){var a=this.getNotificationFilterCondition(this.props.notifications);this.updateNotificationState(a)}}},{key:"cloneField",value:function(){var e=this,t=[].concat(r(this.props.wrappers)),a=JSON.stringify(this.props.field),n=JSON.parse(a),l=(0,c.generateWrapperId)(),o=(0,c.buildFieldObject)(n,l,12,t),i={wrapper_id:l,fields:[o]},s=t.findIndex(function(t){return t.wrapper_id===e.props.wrapper.wrapper_id}),u=this.insertInPosition(t,s+1,i);u=this.updateCols(u),this.closeMenu(),this.updateState(u)}},{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper},"field-settings")}},{key:"editSettings",value:function(){if(this.closeMenu(),"page-break"===this.props.field.type)return!1;this.props.actions.modalActions.showModal({open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeModal,isValid:!0},"field-settings")}},{key:"startDragDrop",value:function(){this.$el.draggable({revert:!0,revertDuration:0,zIndex:100,helper:"clone",cancel:"",distance:10,appendTo:this.$main,start:jQuery.proxy(this.onDragStart,this),drag:jQuery.proxy(this.onDrag,this),stop:jQuery.proxy(this.onDragStop,this)})}},{key:"onDragStart",value:function(){this.setClasses(),this.createDropPoints()}},{key:"onDrag",value:function(e){var t=_.filter(this.drops,function(t){return e.pageY>t.top&&e.pageY<t.bottom&&e.pageX>t.left&&e.pageX<t.right}),a=_.where(t,{priority:_.max(_.pluck(t,"priority"))});a.length>0?this.selectDropZone(a[0]):(this.drop=!1,jQuery(".fui-drop-use").removeClass("fui-drop-use"))}},{key:"onDragStop",value:function(){this.updateOnDrop(),this.resetZones(),this.resetClasses()}},{key:"setClasses",value:function(){this.$helper=jQuery(".ui-draggable-dragging"),this.$el.addClass("fui-drop-shadow"),this.$main.addClass("fui-form-builder--dragging"),this.$helper.css("width",this.$el.width())}},{key:"resetClasses",value:function(){this.$el.removeClass("fui-drop-shadow"),this.$main.removeClass("fui-form-builder--dragging")}},{key:"resetZones",value:function(){this.drops=[],this.drop=!1,jQuery(".fui-drop").remove(),jQuery(".fui-drop-view").remove(),jQuery(".fui-form-builder--drop-zone").remove()}},{key:"isPayPalWrapper",value:function(e){if(e.fields.length>1)return!1;if(1===e.fields.length){if("paypal"===e.fields[0].type)return!0}return!1}},{key:"createDropPoints",value:function(){var e=this,t=void 0,a=void 0;this.props.wrappers.map(function(r){if(e.isPayPalWrapper(r))return!1;var n=e.getEl(r.wrapper_id),l=e.getPosition(n);if(e.drops.push({id:(0,c.randNumber)(),top:l.top-50,bottom:l.center.y,left:l.left,right:l.right,type:"full",insert:["before",n],wrapper:r,priority:1,is_me:!1}),_.size(r.fields)<4){r.fields.map(function(t){var n=e.getEl("field-"+t.element_id),l=e.getPosition(n),o=n.attr("id")===e.$el.attr("id");e.drops.push({id:(0,c.randNumber)(),top:l.top,bottom:l.bottom,left:l.left,right:l.left+l.width,type:"side-before",insert:["before",n],wrapper:r,field:t,priority:5,is_me:o}),a=t});var o=e.getEl("field-"+a.element_id),i=e.getPosition(o),s=o.attr("id")===e.$el.attr("id");e.drops.push({id:(0,c.randNumber)(),top:i.top,bottom:i.bottom,left:i.center.x,right:i.right+20,type:"side-after",insert:["after",o],wrapper:r,field:a,priority:5,is_me:s})}t=r});var r=this.getEl(t.wrapper_id),n=this.getPosition(r);this.drops.push({id:(0,c.randNumber)(),top:n.center.y,bottom:n.bottom+65,left:n.left,right:n.right,type:"full",insert:["after",r],wrapper:t,priority:1,is_me:!1}),this.renderDropPoints()}},{key:"renderDropPoints",value:function(){var e=void 0;this.drops.forEach(function(t){switch(e=jQuery('<div id="forminator-drop-'+t.id+'" class="fui-drop fui-drop-'+t.type+'"></div>'),t.insert[0]){case"before":e.insertBefore(t.insert[1]);break;case"after":e.insertAfter(t.insert[1])}"full"===t.type||"inside"===t.type?e.css("width",t.right-t.left-20):"side-before"!==t.type&&"side-after"!==t.type||e.css("height",t.bottom-t.top-10)})}},{key:"getPosition",value:function(e){var t=e,a=t.offset(),r=parseFloat(t.css("width")),n=parseFloat(t.css("height"))-10,l=a.top,o=a.left-10,i=void 0,s=void 0,u=l+n,c=o+r,p=Math.round(l+n/2),f=Math.round(o+r/2);return this.isRow(t)?(s=t.prev(),s.length>0&&(i=this.getPosition(s),l=i.center.y+20,n=p-l)):(s=t.prev(),s.length>0?(i=this.getPosition(s),o=i.center.x):r/=2),{width:r,height:n,top:l,bottom:u,left:o,right:c,center:{y:p,x:f}}}},{key:"isRow",value:function(e){return!!e.hasClass("fui-row")}},{key:"getEl",value:function(e){return jQuery("#"+e)}},{key:"showDropsDebug",value:function(){var e=this;this.drops.map(function(t){var a=jQuery('<div class="fui-drop-view"><span class="fui-drop-view-pos"></span></div>');a.css({top:t.top,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),e.$main.append(a)})}},{key:"selectDropZone",value:function(e){this.drop=e;var t=jQuery("#forminator-drop-"+e.id);jQuery(".fui-drop-use").removeClass("fui-drop-use"),t.addClass("fui-drop-use")}},{key:"updateOnDrop",value:function(){var e=this;if(!_.isUndefined(this.drop.insert)){var t=this.drop.insert[0],a=this.drop.insert[1],n=[].concat(r(this.props.wrappers)),l=Object.assign({},this.props.field);if(this.isWrapperDrop()){var o={wrapper_id:(0,c.generateWrapperId)(),fields:[l]},i=n.findIndex(function(e){return e.wrapper_id===a.attr("id")});"after"===t&&i++;var s=this.getWrappersWithoutCurrentField(n);s=this.insertInPosition(s,i,o).filter(function(e){return!_.isEmpty(e.fields)}),s=this.updateCols(s),this.updateState(s)}else{var u=n.findIndex(function(t){return t.wrapper_id===e.drop.wrapper.wrapper_id}),p=this.getWrappersWithoutCurrentField(n),f=this.drop.wrapper.fields.findIndex(function(e){return e.element_id===a.data("id")});"after"===t&&f++;var d=this.drop.wrapper,h=this.insertInPosition(d.fields,f,l);d.fields=h,p=this.replaceInPosition(p,u,d).filter(function(e){return!_.isEmpty(e.fields)}),p=this.updateCols(p),this.updateState(p)}}}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"updateNotificationState",value:function(e){this.props.actions.notificationsActions.updateNotifications(e)}},{key:"updateCols",value:function(e){return e.map(function(e){var t=12/e.fields.length;e.fields.map(function(e){e.cols=t})}),e}},{key:"getWrappersWithoutCurrentField",value:function(e){var t=this;return e.map(function(e){return e.fields=e.fields.filter(function(e){return e.element_id!==t.props.field.element_id}),e})}},{key:"getWrappersFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.fields.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e}),e})}},{key:"getNotificationFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e})}},{key:"insertInPosition",value:function(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}},{key:"replaceInPosition",value:function(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}},{key:"isWrapperDrop",value:function(){return!!_.isUndefined(this.drop.field)}},{key:"getConditionLabel",value:function(e,t){var a=void 0;if(e.hasOptions&&e.values.length>0){var r=void 0;if(r=_.where(e.values,{value:t})[0],r||(r=_.where(e.values,{label:t})[0]),!r)return;a=r.label}else a=t;return _.isEmpty(a)?(0,c.translate)("null"):a}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers,null,{main_date_field:!0}),t="hide"===this.props.field.condition_action?(0,c.translate)("Hide"):(0,c.translate)("Show");if(!_.isUndefined(this.props.field.conditions)){var a=this.props.field.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isUndefined(r[0])){var n=r[0].label,l=(0,c.getRuleLabel)(a.rule,r.field_type),o=this.getConditionLabel(r[0],a.value),i=this.props.field.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,c.translate)("if")+" "+n+" "+l+" "+o+" "+s},u.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"isDeleteEnabled",value:function(){return!("login"===this.props.formType&&"password"===this.props.field.type&&(0,c.countFieldsByType)("password",this.props.wrappers)<2)&&("registration"!==this.props.formType&&"leads"!==this.props.formType||"email"!==this.props.field.type||!((0,c.countFieldsByType)("email",this.props.wrappers)<2))}},{key:"render",value:function(){var e=this,t=forminatorData.fields.find(function(t){return t.type===e.props.field.type}),a=_.contains(this.props.changed.fields,this.props.field.element_id),r=a?"fui-unsaved":"",n=this.conditionMarkup();return _.isUndefined(t)?u.default.createElement("div",null):"paypal"===this.props.field.type?u.default.createElement(u.default.Fragment,null):u.default.createElement("div",{id:"field-"+this.props.field.element_id,className:"fui-col-"+this.props.field.cols,ref:this.el,"data-id":this.props.field.element_id},u.default.createElement("div",{className:"fui-builder-field-block "+r,"data-field":this.props.field.type},u.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},u.default.createElement("span",{className:"fui-field--move"},u.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"})),u.default.createElement("span",{className:"fui-field--icon"},u.default.createElement("i",{className:t.icon,"aria-hidden":"true"})),u.default.createElement("span",{className:"fui-field--name"},this.props.field.field_label&&u.default.createElement(u.default.Fragment,null,u.default.createElement("span",{className:"fui-field--label"},this.props.field.field_label,((0,c.isFieldRequired)(this.props.field)||"stripe"===this.props.field.type)&&u.default.createElement("span",{className:"sui-error"},"*")),u.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")),!this.props.field.field_label&&u.default.createElement(u.default.Fragment,null,u.default.createElement("span",{className:"fui-field--label"},this.props.field.section_title||t.name,(0,c.isFieldRequired)(this.props.field)&&u.default.createElement("span",{className:"sui-error"},"*")),u.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")))),u.default.createElement("div",{className:"fui-field--actions"},u.default.createElement("div",{className:"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Field options"))),u.default.createElement("ul",null,"page-break"!==this.props.field.type&&u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),(0,c.translate)("Edit Field"))),"stripe"!==this.props.field.type&&u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-clone",onClick:this.cloneField},u.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),this.isDeleteEnabled()&&u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-remove sui-option-red",onClick:this.deleteField},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))),!_.isUndefined(this.props.field.conditions)&&this.props.field.conditions.length>0&&u.default.createElement(u.default.Fragment,null,n)))}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return l(t,e),o(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"pagination")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"pagination")}},{key:"render",value:function(){return s.default.createElement("div",{className:"sui-box-body fui-builder-section--pagination"},s.default.createElement("div",{className:"fui-builder-field-block fui-has-info","data-field":"pagination"},s.default.createElement("span",{className:"fui-info sui-tooltip sui-tooltip-top-left sui-tooltip-constrained",style:{"--tooltip-width":"275px"},"data-tooltip":(0,u.translate)("Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page.")},s.default.createElement("i",{className:"sui-icon-info","aria-hidden":"true"})),s.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},s.default.createElement("span",{className:"fui-field--icon"},s.default.createElement("i",{className:"sui-icon-pagination","aria-hidden":"true"})),s.default.createElement("span",{className:"fui-field--name"},s.default.createElement("span",{className:"fui-field--label"},(0,u.translate)("Pagination")))),s.default.createElement("div",{className:"fui-field--actions"},s.default.createElement("button",{className:"sui-button-icon sui-tooltip","data-tooltip":(0,u.translate)("Edit field"),onClick:this.editSettings},s.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"})))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return l(t,e),o(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"submit")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"submit")}},{key:"getConditionLabel",value:function(e,t){var a=void 0;if(e.hasOptions&&e.values.length>0){var r=void 0;if(r=_.where(e.values,{value:t})[0],r||(r=_.where(e.values,{label:t})[0]),!r)return;a=r.label}else a=t;return _.isEmpty(a)?(0,u.translate)("null"):a}},{key:"conditionMarkup",value:function(){var e=(0,u.getFields)(this.props.wrappers),t="hide"===this.props.submitData.condition_action?(0,u.translate)("Hide"):(0,u.translate)("Show");if(!_.isUndefined(this.props.submitData.conditions)){var a=this.props.submitData.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isEmpty(r)){var n=r[0].label,l=(0,u.getRuleLabel)(a.rule,r.field_type),o=this.getConditionLabel(r[0],a.value),i=this.props.submitData.conditions.length,c="";return i-1>0&&(c="+ "+(i-1)+" "+(0,u.translate)("more condition(s)")),s.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,u.translate)("if")+" "+n+" "+l+" "+o+" "+c},s.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=_.isUndefined(this.props.submitData["custom-submit-text"])?(0,u.translate)("Submit"):this.props.submitData["custom-submit-text"];return s.default.createElement("div",{className:"sui-box-body"},s.default.createElement("div",{className:"fui-builder-field-block","data-field":"submit"},s.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},s.default.createElement("span",{className:"fui-field--icon"},s.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"})),s.default.createElement("span",{className:"fui-field--name"},s.default.createElement("span",{className:"fui-field--label"},e))),s.default.createElement("div",{className:"fui-field--actions"},s.default.createElement("button",{className:"sui-button-icon sui-tooltip","data-tooltip":(0,u.translate)("Edit field"),onClick:this.editSettings},s.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}))),!_.isUndefined(this.props.submitData)&&!_.isUndefined(this.props.submitData.conditions)&&this.props.submitData.conditions.length>0&&s.default.createElement(s.default.Fragment,null,this.conditionMarkup())))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.trashField=a.trashField.bind(a),a.deleteField=a.deleteField.bind(a),a.closeModal=a.closeModal.bind(a),a.closeDeleteField=a.closeDeleteField.bind(a),a.editSettings=a.editSettings.bind(a),a.fields=(0,c.getFields)(a.props.wrappers),a.wrapper=(0,c.getWrapper)(a.props.field.wrapper_id,a.props.wrappers),a}return o(t,e),i(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"trashField",value:function(){var e=[].concat(r(this.props.wrappers)),t=this.getWrappersWithoutCurrentField(e).filter(function(e){return!_.isEmpty(e.fields)});t=this.getWrappersFilterCondition(t),this.closeMenu(),this.updateState(t)}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"deleteField",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,field:this.props.field,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:this.props.field},"field-settings")}},{key:"getWrappersWithoutCurrentField",value:function(e){var t=this;return e.map(function(e){return e.fields=e.fields.filter(function(e){return e.element_id!==t.props.field.element_id}),e})}},{key:"getWrappersFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.fields.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e}),e})}},{key:"editSettings",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,field:this.props.field,wrapper:this.wrapper,closeModal:this.closeModal,isValid:!0},"field-settings")}},{key:"getConditionLabel",value:function(e,t){var a=void 0;if(e.hasOptions&&e.values.length>0){var r=void 0;if(r=_.where(e.values,{value:t})[0],r||(r=_.where(e.values,{label:t})[0]),!r)return;a=r.label}else a=t;return _.isEmpty(a)?(0,c.translate)("null"):a}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers),t="hide"===this.props.field.condition_action?(0,c.translate)("Hide"):(0,c.translate)("Show");if(!_.isUndefined(this.props.field.conditions)){var a=this.props.field.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isEmpty(r)){var n=r[0].label,l=(0,c.getRuleLabel)(a.rule,r.field_type),o=this.getConditionLabel(r[0],a.value),i=this.props.field.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,c.translate)("if")+" "+n+" "+l+" "+o+" "+s},u.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=(0,c.translate)("PayPal Checkout");if(void 0!==this.props.field.label)switch(this.props.field.label){case"checkout":e=(0,c.translate)("PayPal Checkout");break;case"pay":e=(0,c.translate)("Pay with PayPal");break;case"paypal":e=(0,c.translate)("PayPal");break;default:e=(0,c.translate)("PayPal Checkout")}var t=this.conditionMarkup();return u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("div",{className:"fui-builder-field-block fui-has-info","data-field":"submit"},u.default.createElement("span",{className:"fui-info sui-tooltip sui-tooltip-top-left sui-tooltip-constrained",style:{"--tooltip-width":"275px"},"data-tooltip":(0,c.translate)("PayPal field replaces the submit button of your form with the PayPal Smart Payment Buttons. The PayPal buttons will automatically submit the form after a successful payment.")},u.default.createElement("i",{className:"sui-icon-info","aria-hidden":"true"})),u.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},u.default.createElement("span",{className:"fui-field--icon"},u.default.createElement("i",{className:"sui-icon-paypal","aria-hidden":"true"})),u.default.createElement("span",{className:"fui-field--name"},u.default.createElement("span",{className:"fui-field--label"},e))),u.default.createElement("div",{className:"fui-field--actions"},u.default.createElement("div",{className:"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Field options"))),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),(0,c.translate)("Edit Field"))),u.default.createElement("li",null,u.default.createElement("button",{className:"sui-option-red forminator-field-remove",onClick:this.deleteField},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))),!_.isUndefined(this.props.field.conditions)&&this.props.field.conditions.length>0&&u.default.createElement(u.default.Fragment,null,t)))}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{modal:e.modal,wrappers:e.wrappers,settings:e.settings,notifications:e.notifications,id:e.settings.form_id||-1,formType:e.settings["form-type"]||"default",skipProNotice:e.settings.skipProNotice||forminatorData.skip_pro_notice||!1}}function l(e){return{actions:{modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e),settingsActions:(0,i.bindActionCreators)(m,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(8),i=a(9),s=a(299),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(52),p=r(c),f=a(179),d=r(f),h=a(99),m=r(h),b=a(183),y=r(b);t.default=(0,o.connect)(n,l)(u.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(54),p=r(c),f=a(300),d=r(f),h=a(267),m=(r(h),{"insert-fields":d.default.fieldsModal,"field-settings":d.default.settingsModal,preview:d.default.previewModal,submit:d.default.submitModal,publish:d.default.publishModal,delete:d.default.deleteModal,shortcode:d.default.shortcodeModal,pagination:d.default.paginationModal,notification:d.default.notificationModal,deleteNotification:d.default.deleteNotificationModal}),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var a=p.default.findDOMNode(this);this.props.modal.modalProps.open?a.removeAttribute("aria-hidden"):this.hideModalTimeout=setTimeout(function(){a.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){if(!this.props.modal.modalType)return null;var e="",t=["sui-dialog-overlay","sui-fade-in"],a=["sui-dialog-content","sui-fade-in"];this.props.modal.modalProps.open||(t=["sui-dialog-overlay","sui-fade-out"],a=["sui-dialog-content","sui-fade-out"]);var r=m[this.props.modal.modalType];if("publish"===this.props.modal.modalType&&(e=" sui-dialog-sm fui-dialog-publish"),"shortcode"===this.props.modal.modalType&&(e=" sui-dialog-sm sui-dialog-alt fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deleteNotification"!==this.props.modal.modalType||(e=" sui-dialog-sm sui-dialog-alt"),!_.isUndefined(this.props.modal.modalProps)&&!_.isUndefined(this.props.modal.modalProps.field)&&!_.isUndefined(this.props.modal.modalProps.field.type)){var n=this.props.modal.modalProps.field.type;e+="radio"===n||"checkbox"===n||"select"===n?" multivalue-modal":" "+this.props.modal.modalProps.field.type+"-modal"}return u.default.createElement("div",{id:"forminator-modal",className:"sui-dialog"+e,tabIndex:"-1"},u.default.createElement("div",{className:""+t.join(" "),onClick:this.props.modal.modalProps.closeModal}),u.default.createElement("div",{className:""+a.join(" "),"aria-labelledby":"dialogTitle","aria-describedby":"dialogDescription",role:"dialog"},u.default.createElement("div",{className:"sui-box",role:"document"},u.default.createElement(r,this.props))))}}]),t}(s.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(301),l=r(n),o=a(302),i=r(o),s=a(346),u=r(s),c=a(347),p=r(c),f=a(348),d=r(f),h=a(349),m=r(h),b=a(350),y=r(b),v=a(351),g=r(v),E=a(353),_=r(E),w=a(267),O=r(w),P={fieldsModal:l.default,settingsModal:i.default,previewModal:u.default,submitModal:p.default,publishModal:d.default,deleteModal:m.default,shortcodeModal:y.default,paginationModal:g.default,notificationModal:_.default,deleteNotificationModal:O.default};t.default=P},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.closeSettingsModal=a.closeSettingsModal.bind(a),a.insertFields=a.insertFields.bind(a),a.skipProNotice=a.skipProNotice.bind(a),a.state={fields:[]},a.hasCaptcha=!1,a.hasStripe=!1,a.hasPayPal=!1,a.hasStripePayPal=!1,a}return o(t,e),i(t,[{key:"closeSettingsModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:[],wrapper:[]},"field-settings")}},{key:"insertFields",value:function(){if(this.state.fields.length){if(this.hasStripe||this.hasCaptcha||this.hasPayPal)return!1;var e=[].concat(r(this.props.wrappers)),t=this.state.fields.map(function(t){var a=(0,c.generateWrapperId)();return{wrapper_id:a,fields:[(0,c.buildFieldObjectFromSlug)(t,e,a)]}});if(forminatorData.showFieldSettings&&1===this.state.fields.length){var a=this,n=void 0!==t[0]&&t[0],l=void 0!==t[0].fields[0]&&t[0].fields[0];n&&l&&"page-break"!==l.type&&setTimeout(function(){a.props.actions.modalActions.showModal({open:!0,field:l,wrapper:n,closeModal:a.closeSettingsModal,isValid:!0},"field-settings")},500)}this.props.actions.builderActions.updateFields([].concat(r(e),r(t))),this.closeModal()}}},{key:"skipProNotice",value:function(e){var t=this;jQuery.post(forminatorData.ajaxUrl,{action:"forminator_dismiss_notification",prop:"forminator_skip_pro_notice",_ajax_nonce:forminatorData.dismissNonce}).always(function(){t.props.actions.settingsActions.updateSetting("skipProNotice",!0)})}},{key:"toggleField",value:function(e,t){var a=void 0,n=(0,c.hasFieldType)("stripe",this.props.wrappers),l=(0,c.hasFieldType)("captcha",this.props.wrappers),o=(0,c.hasFieldType)("paypal",this.props.wrappers);if(!0!==t.target.checked){var i=this.state.fields;i.splice(i.indexOf(e),1),a={fields:i}}else a={fields:[].concat(r(this.state.fields),[e])};this.setState(a),(_.contains(a.fields,"stripe")||_.contains(a.fields,"paypal"))&&(_.contains(a.fields,"stripe")&&_.contains(a.fields,"paypal")||o||n)?this.hasStripePayPal=!0:this.hasStripePayPal=!1,_.contains(a.fields,"stripe")&&n?this.hasStripe=!0:this.hasStripe=!1,_.contains(a.fields,"paypal")&&o?this.hasPayPal=!0:this.hasPayPal=!1,_.contains(a.fields,"captcha")&&l?this.hasCaptcha=!0:this.hasCaptcha=!1}},{key:"render",value:function(){var e=this,t=forminatorData.fields.filter(function(e){return e.category}),a=forminatorData.fieldsPro||[];"registration"!==this.props.formType&&"login"!==this.props.formType&&(t=_.filter(t,function(e){return"password"!==e.slug}));var r=_.sortBy(t,"position");return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Insert Fields")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,c.translate)("Choose which fields you want to insert into your form.")),(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal)&&u.default.createElement("div",{className:"sui-notice sui-notice-error"},this.hasStripe&&!this.hasStripePayPal&&u.default.createElement("p",null,(0,c.translate)("You can have only one Stripe field in your form for Stripe to work accurately. Please delete the existing Stripe field to add a new one.")),this.hasPayPal&&!this.hasStripePayPal&&u.default.createElement("p",null,(0,c.translate)("You can have only one PayPal field in your form for PayPal to work accurately. Please delete the existing PayPal field to add a new one.")),this.hasStripePayPal&&u.default.createElement("p",null,(0,c.translate)("You can have only one payment field in your form. Please delete the existing payment field to add another one.")),this.hasCaptcha&&u.default.createElement("p",null,(0,c.translate)("You can have only one reCaptcha field in your form for Google reCaptcha to work accurately. Please delete the existing reCaptcha field to add a new one.")))),u.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-5"},u.default.createElement("ul",{id:"forminator-form-fields-to-insert",className:"sui-spacing-slim"},r.map(function(t){return u.default.createElement("li",{key:t.slug},u.default.createElement("label",{htmlFor:"forminator-form-field-"+t.slug,className:"sui-box-selector sui-box-selector-vertical"},u.default.createElement("input",{type:"checkbox",id:"forminator-form-field-"+t.slug,"data-field":t.slug,onChange:function(a){return e.toggleField(t.slug,a)}}),u.default.createElement("span",null,u.default.createElement("i",{className:t.icon,"aria-hidden":"true"}),t.name)))}),!forminatorData.isPro&&a.map(function(e){return u.default.createElement("li",{key:e.slug},u.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},u.default.createElement("input",{type:"radio",disabled:!0}),u.default.createElement("span",null,u.default.createElement("span",{className:e.icon,"aria-hidden":"true"}),e.name,u.default.createElement("span",{class:"sui-tag sui-tag-pro"},"Pro"))))}),!forminatorData.isPro&&_.isEmpty(a)&&u.default.createElement("li",null,u.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},u.default.createElement("input",{type:"radio",disabled:!0}),u.default.createElement("span",null,u.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("E-Signature"),u.default.createElement("span",{class:"sui-tag sui-tag-pro"},"Pro"))))),!forminatorData.isPro&&!this.props.skipProNotice&&u.default.createElement("div",{id:"fui-notice-pro-fields",class:"sui-notice sui-notice-purple sui-notice-top sui-can-dismiss"},u.default.createElement("div",{class:"sui-notice-content"},u.default.createElement("p",null,(0,c.translate)("Need access to pro form fields? {{link}}Try Forminator Pro for FREE{{/link}}",{components:{link:u.default.createElement("a",{href:"https://wpmudev.com/project/forminator-pro/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_forms_insertfields_upsell_notice",target:"_blank",style:{color:"#8d00b1"}})}}))),u.default.createElement("span",{class:"sui-notice-dismiss"},u.default.createElement("a",{role:"button",href:"#","aria-label":"Dismiss",class:"sui-icon-check",onClick:this.skipProNotice})))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-builder-fields-close",onClick:this.closeModal},(0,c.translate)("Cancel")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{id:"forminator-builder-insert-fields",className:"sui-button sui-button-blue",disabled:!this.state.fields.length||this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal,onClick:this.insertFields},u.default.createElement("span",{className:"sui-loading-text"},(0,c.translate)("Insert Fields")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(19),d=a(1),h=a(303),m=r(h),b=a(345),y=r(b),v={email:m.default.emailSettings,address:m.default.addressSettings,captcha:m.default.captchaSettings,date:m.default.dateSettings,signature:m.default.signatureSettings,gdprcheckbox:m.default.gdprcheckboxSettings,hidden:m.default.hiddenSettings,html:m.default.htmlSettings,checkbox:m.default.multivalueSettings,radio:m.default.radioSettings,name:m.default.nameSettings,number:m.default.numberSettings,pagination:m.default.paginationSettings,phone:m.default.phoneSettings,postdata:m.default.postdataSettings,section:m.default.sectionSettings,select:m.default.singlevaluesettings,text:m.default.textSettings,textarea:m.default.textareaSettings,time:m.default.timeSettings,upload:m.default.uploadSettings,url:m.default.websiteSettings,calculation:m.default.calculationSettings,stripe:m.default.stripeSettings,currency:m.default.currencySettings,password:m.default.passwordSettings,paypal:m.default.paypalSettings},g=function(e){function t(e){l(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.cancelModal=a.cancelModal.bind(a),a.state=Object.assign({},a.props.modal.modalProps.field),a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/builder/"})}},{key:"applyChanges",value:function(){var e=this,t=Object.assign({},this.props.modal.modalProps.wrapper),a=t.fields.findIndex(function(t){return t.element_id===e.state.element_id});t.fields=(0,d.replaceInPosition)(t.fields,a,this.state),this.props.actions.builderActions.updateFieldSettings(t,this.state.element_id),this.closeModal()}},{key:"getDateDuration",value:function(e,t,a,r){return"-"===e?moment().subtract(t,a).format(r):moment().add(t,a).format(r)}},{key:"isValid",value:function(){var e=this,t={isValid:!0,error:!1};if("name"===this.state.type||"address"===this.state.type){var a=[];if("name"===this.state.type){if("true"!==this.state.multiple_name)return t.isValid=!0,t;a=["prefix","fname","mname","lname"]}"address"===this.state.type&&(a=["street_address","address_line","address_city","address_state","address_zip","address_country"]);var r=_.filter(a,function(t){return!!e.state[t]});if(!_.isEmpty(r))return t.isValid=!0,t;t.error=(0,d.translate)("At least one field must be enabled"),t.isValid=!1}if(this.props.modal.modalProps.isValid||(t.error=(0,d.translate)("Please fill required fields"),_.isUndefined(this.props.modal.modalProps.validationError)||_.isEmpty(this.props.modal.modalProps.validationError)||(t.error=this.props.modal.modalProps.validationError),t.isValid=!1),"radio"===this.state.type||"checkbox"===this.state.type||"select"===this.state.type||"postdata"===this.state.type&&!_.isUndefined(this.state.post_custom_fields)&&!0===this.state.post_custom_fields){_.some(this.state.options,function(e){return _.isEmpty(e.calculation)})&&"true"===this.state.calculations&&(t.error=(0,d.translate)("Calculation values are required!"),t.isValid=!1);_.some(this.state.options,function(e){return _.isEmpty(e.label)})&&(t.error=(0,d.translate)("Option labels are required!"),t.isValid=!1)}if("stripe"===this.state.type){forminatorData.hasStripe||(t.error=(0,d.translate)("Please, connect your Stripe account first!"),t.isValid=!1),"fixed"!==this.state.amount_type||this.state.amount||(t.error=(0,d.translate)("Please, enter Stripe payment amount!"),t.isValid=!1),"true"!==this.state.receipt||this.state.customer_email||(t.error=(0,d.translate)("Please select an email address for payment receipt."),t.isValid=!1),"variable"!==this.state.amount_type||this.state.variable||(t.error=(0,d.translate)("Please, select Stripe payment variable field!"),t.isValid=!1);_.some(this.state.options,function(e){return _.isEmpty(e.label)})&&(t.error=(0,d.translate)("Empty labels are not allowed for meta values!"),t.isValid=!1)}if("paypal"===this.state.type&&(forminatorData.hasPayPal||(t.error=(0,d.translate)("Please, connect your PayPal account first!"),t.isValid=!1)),"calculation"===this.state.type&&(_.isUndefined(this.state.formula)||_.isEmpty(this.state.formula))&&(t.error=(0,d.translate)("Calculation formula is required!"),t.isValid=!1),"currency"===this.state.type&&parseInt(this.state.limit_min)>=parseInt(this.state.limit_max)&&(t.error=(0,d.translate)("Limit Min value should be less than Max value."),t.isValid=!1),"captcha"===this.state.type&&(("v2_checkbox"!==this.state.captcha_type||forminatorData.hasV2Captcha)&&("v2_invisible"!==this.state.captcha_type||forminatorData.hasV2InvisibleCaptcha)?"v3_recaptcha"!==this.state.captcha_type||forminatorData.hasV3Captcha||(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1):(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1)),"time"===this.state.type&&!_.isUndefined(this.state.restrict_time)&&"specific"===this.state.restrict_time){var n=_.isUndefined(this.state.time_type)?"":this.state.time_type,l="twelve"===n?"h:mma":"H:mm",o=_.isUndefined(this.state.restrict_start_hour)?0:this.state.restrict_start_hour,i=_.isUndefined(this.state.restrict_start_minute)?0:this.state.restrict_start_minute,s=_.isUndefined(this.state.restrict_start_ampm)?"AM":this.state.restrict_start_ampm,u=_.isUndefined(this.state.restrict_end_hour)?0:this.state.restrict_end_hour,c=_.isUndefined(this.state.restrict_end_minute)?0:this.state.restrict_end_minute,p=_.isUndefined(this.state.restrict_end_ampm)?"AM":this.state.restrict_end_ampm,f=_.isUndefined(this.state.default_time)?"none":this.state.default_time,h=_.isUndefined(this.state.default_time_hour)?0:this.state.default_time_hour,m=_.isUndefined(this.state.default_time_minute)?0:this.state.default_time_minute,b=_.isUndefined(this.state.default_time_ampm)?"AM":this.state.default_time_ampm,y="twelve"===n?s:"",v="twelve"===n?p:"",g="twelve"===n?b:"",E=o+":"+i+y.toLowerCase(),w=moment(E,l),O=u+":"+c+v.toLowerCase(),P=moment(O,l),x=moment(h+":"+m+g,l);P.isBefore(w)?(t.error=(0,d.translate)("Please select a valid end time limit."),t.isValid=!1):"default"===f&&(x.isBefore(w)||P.isBefore(x))?(t.error=(0,d.translate)("Please fix the Default time error."),t.isValid=!1):("0:0am"===E&&"0:0pm"===O||"0:0pm"===E&&"0:0am"===O||E===O&&("0:0am"===E||"0:0pm"===E))&&(t.error=(0,d.translate)("Please fix the Start or End time."),t.isValid=!1)}if(_.isUndefined(this.state.conditions)||_.isEmpty(this.state.conditions)||_.each(this.state.conditions,function(e){_.isEmpty(e.rule)&&(t.error=(0,d.translate)("Please select rule"),t.isValid=!1)}),"date"===this.state.type&&!_.isUndefined(this.state["start-date"])&&!_.isUndefined(this.state["end-date"])){var k=this.state["start-date"],j=this.state["end-date"],N=!0;if("specific"!==k||"specific"!==j||_.isUndefined(this.state["start-specific-date"])||_.isUndefined(this.state["end-specific-date"])||!moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY")))if("today"===k&&"today"===j){var C=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],S=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),T=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],F=this.getDateDuration(C,S,T,"MM/DD/YYYY"),D=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],M=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),A=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],V=this.getDateDuration(D,M,A,"MM/DD/YYYY");moment(V,"MM/DD/YYYY").isBefore(moment(F,"MM/DD/YYYY"))&&(N=!1)}else if("specific"!==k||"today"!==j||_.isUndefined(this.state["start-specific-date"])){if("today"===k&&"specific"===j&&!_.isUndefined(this.state["end-specific-date"])){var R=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],U=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),I=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],L=this.getDateDuration(R,U,I,"MM/DD/YYYY");moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(L,"MM/DD/YYYY"))&&(N=!1)}}else{var B=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],q=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),W=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],$=this.getDateDuration(B,q,W,"MM/DD/YYYY");moment($,"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY"))&&(N=!1)}else N=!1;N||(t.error=(0,d.translate)("Please fix the limit Start or End date."),t.isValid=!1)}return t}},{key:"cancelModal",value:function(){var e=this,t=jQuery(this.modalFooter).find(".forminator-discard-field-settings").data("initial-opts");_.isUndefined(t)||(this.props.modal.modalProps.field.options=JSON.parse(window.atob(t))),_.delay(function(){e.closeModal()},500)}},{key:"render",value:function(){var e=this,t=(0,d.getForminatorField)(this.state),a=v[t.type],r=!_.contains(["captcha","paypal"],t.type),n=!_.contains(["submit","hidden","html","page-break"],t.type),l=!_.contains(["captcha","page-break","hidden"],t.type),o=!_.contains(["page-break","paypal"],t.type),i=_.contains(["calculation","number","radio","checkbox","select","currency"],t.type),u=_.contains(["stripe","paypal"],t.type),c=_.contains(["paypal"],t.type),h=_.contains(["date"],t.type),m=_.isUndefined(this.state.field_type)?"picker":this.state.field_type,b=this.isValid(),g=b.isValid,E=b.error||"";return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{id:"forminator-modal-header--"+t.type,className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,d.translate)("Edit Field")),p.default.createElement("div",{className:"sui-actions-left"},p.default.createElement("span",{className:"sui-tag sui-tag-draft"},t.name)),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{id:"forminator-modal-body--"+t.type,className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{role:"tablist",className:"sui-tabs-menu"},r>0&&p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Labels")),n>0&&p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Settings")),h>0&&"picker"===m&&p.default.createElement(f.NavLink,{to:"/builder/limits/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Limits")),i>0&&p.default.createElement(f.NavLink,{to:"/builder/calculations/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Calculations")),u&&p.default.createElement(f.NavLink,{to:"/builder/advanced-settings/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced")),o>0&&p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Styling")),c>0&&p.default.createElement(f.NavLink,{to:"/builder/customize/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Customize")),l>0&&p.default.createElement(f.NavLink,{to:"/builder/visibility/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Visibility")),!_.isEmpty(t.settings)&&p.default.createElement(f.NavLink,{to:"/builder/advanced/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){var e="/builder/labels";return r||(e="/builder/settings"),p.default.createElement(f.Redirect,{to:e})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active",role:"tabpanel"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(a,{type:"labels",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers,formType:e.props.formType||""})}}),p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement(a,{type:"settings",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers,formType:e.props.formType||""})}}),"picker"===m&&p.default.createElement(f.Route,{path:"/builder/limits",render:function(){return p.default.createElement(a,{type:"limits",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/advanced-settings",render:function(){return p.default.createElement(a,{type:"advanced-settings",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/calculations",render:function(){return p.default.createElement(a,{type:"calculations",updateProperty:e.updateProperty,modal:e.props.modal.modalProps,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/visibility",render:function(){return p.default.createElement(a,{type:"visibility",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(a,{type:"styling",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/advanced",render:function(){return p.default.createElement(y.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}),p.default.createElement(f.Route,{path:"/builder/customize",render:function(){return p.default.createElement(a,{type:"customize",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}))))),p.default.createElement("div",{id:"forminator-modal-footer--"+t.type,className:"sui-box-footer",ref:function(t){return e.modalFooter=t}},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.cancelModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,d.translate)("Cancel")),p.default.createElement("div",{className:"sui-actions-right"},g&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,d.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!g&&p.default.createElement("div",{className:"sui-tooltip","data-tooltip":E},p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":E},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,d.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))))}}]),t}(c.Component);t.default=g},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(304),l=r(n),o=a(306),i=r(o),s=a(307),u=r(s),c=a(308),p=r(c),f=a(312),d=r(f),h=a(313),m=r(h),b=a(314),y=r(b),v=a(315),g=r(v),E=a(316),_=r(E),w=a(320),O=r(w),P=a(322),x=r(P),k=a(323),j=r(k),N=a(324),C=r(N),S=a(325),T=r(S),F=a(327),D=r(F),M=a(328),A=r(M),V=a(329),R=r(V),U=a(330),I=r(U),L=a(331),B=r(L),q=a(332),W=r(q),$=a(335),z=r($),Y=a(336),H=r(Y),Q=a(337),G=r(Q),J=a(339),K=r(J),X=a(342),Z=r(X),ee=a(343),te=r(ee),ae=a(344),re=r(ae),ne={emailSettings:l.default,addressSettings:i.default,captchaSettings:u.default,dateSettings:p.default,signatureSettings:d.default,gdprcheckboxSettings:m.default,hiddenSettings:y.default,htmlSettings:g.default,multivalueSettings:_.default,nameSettings:O.default,numberSettings:x.default,paginationSettings:j.default,phoneSettings:C.default,postdataSettings:T.default,sectionSettings:D.default,singlevaluesettings:A.default,textSettings:R.default,textareaSettings:I.default,timeSettings:B.default,uploadSettings:W.default,websiteSettings:z.default,radioSettings:H.default,calculationSettings:G.default,stripeSettings:K.default,currencySettings:Z.default,passwordSettings:te.default,paypalSettings:re.default};t.default=ne},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(180),p=r(c),f=a(23),d=r(f),h=a(24),m=r(h),b=a(34),y=r(b),v=a(184),g=r(v),E=a(97),_=(r(E),a(53)),w=r(_),O=a(1),P=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return u.default.createElement(p.default,this.props);case"settings":return u.default.createElement("div",null,u.default.createElement(y.default,this.props),u.default.createElement(g.default,this.props),u.default.createElement(w.default,this.props));case"visibility":return u.default.createElement(d.default,this.props);case"styling":return u.default.createElement(m.default,this.props);default:return u.default.createElement("div",null,(0,O.translate)("Wrong field type!"))}}}]),t}(s.Component);t.default=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(10),d=r(f),h=a(4),m=r(h),b=a(2),y=r(b),v=a(12),g=(r(v),a(21)),E=r(g),w=a(171),O=r(w),P=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return o(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateField",value:function(e,t){this.props.updateField(this.props.counter,t)}},{key:"updateRule",value:function(e,t){this.props.updateRule(this.props.counter,t)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateInputValue",value:function(e,t){this.props.updateInputValue(this.props.counter,t)}},{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=this,t="condition-"+this.props.counter,a=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["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"],o=["Su","Mo","Tu","We","Th","Fr","Sa"];return c.default.createElement("div",{className:"sui-box fui-visibility-rule"+(!0===this.state.open?" fui-open":"")},c.default.createElement("h4",{className:"fui-visibility-rule-header"},c.default.createElement("button",{id:"forminator-field-"+t,className:"sui-box-header","aria-controls":"forminator-field-"+t+"-content","aria-expanded":this.state.open,onClick:function(){return e.toggleState()}},c.default.createElement("i",{className:"sui-icon-link fui-visibility-rule-icon","aria-hidden":"true"}),c.default.createElement("span",{className:"fui-visibility-rule-text"},c.default.createElement("strong",null,a.label)," ",("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,(0,p.getRuleLabel)(this.props.rule.rule,a.field_type,r)),!("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,(0,p.getRuleLabel)(this.props.rule.rule,a.field_type)," ",c.default.createElement("strong",null,r))),c.default.createElement("i",{className:"sui-icon-chevron-down fui-visibility-rule-arrow","aria-hidden":"true"}))),c.default.createElement("div",{role:"region",id:"forminator-field-"+t+"-content",className:"sui-box-body fui-visibility-rule-body","aria-labelledby":"forminator-field-"+t,"aria-hidden":!0!==this.state.open},c.default.createElement(E.default,i({},this.props,{elementId:t+"-field",property:"element_id",updateProperty:this.updateField,settings:this.props.rule,label:(0,p.translate)("Field")}),_.map(this.fields,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"6"},c.default.createElement(E.default,i({},this.props,{elementId:t+"-condrule",settings:this.props.rule,property:"rule",updateProperty:this.updateRule,label:(0,p.translate)("Condition (required)"),options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"checkbox"===a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Having")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Not having"))),"signature"===a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is null")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not null"))),"checkbox"!==a.field_type&&"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not"))),a.isNumber&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is great")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less"))),!a.isNumber&&!a.hasOptions&&"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"contains"},(0,p.translate)("Contains")),c.default.createElement("option",{value:"starts"},(0,p.translate)("Starts")),c.default.createElement("option",{value:"ends"},(0,p.translate)("Ends"))),"date"===a.field_type&&("date-day"===a.field_slug||"date"===a.field_slug)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"day_is"},(0,p.translate)("Day is")),c.default.createElement("option",{value:"day_is_not"},(0,p.translate)("Day is not"))),"date"===a.field_type&&("date-month"===a.field_slug||"date"===a.field_slug)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"month_is"},(0,p.translate)("Month is")),c.default.createElement("option",{value:"month_is_not"},(0,p.translate)("Month is not"))),"date"===a.field_type&&"date"===a.field_slug&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_before"},(0,p.translate)("Is before")),c.default.createElement("option",{value:"is_after"},(0,p.translate)("Is after")),c.default.createElement("option",{value:"is_before_n_or_more_days"},(0,p.translate)("Is before n or more days")),c.default.createElement("option",{value:"is_before_less_than_n_days"},(0,p.translate)("Is before less than n days")),c.default.createElement("option",{value:"is_after_n_or_more_days"},(0,p.translate)("Is after n or more days")),c.default.createElement("option",{value:"is_after_less_than_n_days"},(0,p.translate)("Is after less than n days"))))),c.default.createElement(m.default,{cols:"6"},c.default.createElement(c.default.Fragment,null,a.hasOptions&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select option")),_.map(a.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),!a.hasOptions&&"signature"!==a.field_type&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Value")})),!a.hasOptions&&"date"===a.field_type&&("month_is"===this.props.rule.rule||"month_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(n,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("day_is"===this.props.rule.rule||"day_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select day")),_.map(o,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("is_before"===this.props.rule.rule||"is_after"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Select date")),c.default.createElement(O.default,i({},this.props,{settings:this.props.rule,property:"value",id:t+"-value",placeholder:(0,p.translate)("20 April 2018"),updateProperty:this.updateInputValue}))),!a.hasOptions&&"date"===a.field_type&&("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Number of days"),placeholder:(0,p.translate)("E.g. 10"),type:"number",minValue:"0"}))))),c.default.createElement("div",{className:"fui-visibility-rule-footer"},c.default.createElement("button",{className:"sui-button sui-button-red sui-button-ghost",onClick:this.removeRule.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,p.translate)("Delete")),c.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:function(){return e.toggleState()}},(0,p.translate)("Done")))))}}]),t}(u.Component);t.default=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(181),y=r(b),v=a(10),g=r(v),E=a(4),w=r(E),O=a(2),P=r(O),x=a(12),k=r(x),j=a(13),N=r(j),C=a(34),S=r(C),T=a(53),F=r(T),D=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"street_address",label:(0,p.translate)("Address")},{slug:"address_line",label:(0,p.translate)("Apartment, suite, etc.")},{slug:"address_city",label:(0,p.translate)("City")},{slug:"address_state",label:(0,p.translate)("State / Province")},{slug:"address_zip",label:(0,p.translate)("ZIP / Postal code")},{slug:"address_country",label:(0,p.translate)("Country")}],a}return o(t,e),s(t,[{key:"hasChildrens",value:function(e){var t=_.filter(e,function(e){return!_.isUndefined(e)});return!_.isEmpty(t)}},{key:"render",value:function(){var e=this,t=this.props.type,a=(0,p.translate)("Note: The query parameter's value passed in URL should match with the {{link}}alpha-2 country code{{/link}} of the country you want to pre-populate dynamically.",{components:{link:c.default.createElement("a",{href:"https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes",target:"_blank"})}});switch(t){case"labels":return c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},this.multiFields.map(function(t,a){return"address_country"===t.slug?c.default.createElement(y.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(w.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"}),_.map(forminatorData.countries,function(e,t){return c.default.createElement("option",{value:e,key:t},e)})))),c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"12"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):"address_country"!==t.slug?c.default.createElement(y.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"12"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):void 0}));case"settings":var r=void 0,n=this.multiFields.map(function(t,n){if(!_.isUndefined(e.props.state[t.slug])&&e.props.state[t.slug]){if(_.isEmpty(r)&&(r=t.slug),"address_country"===t.slug)return c.default.createElement(w.default,{cols:"12",label:t.label,settings:e.props.state,value:t.slug,required:e.props.state[t.slug+"_required"],boxClass:"sui-tab-boxed",key:n},c.default.createElement(F.default,i({},e.props,{prefix:t.slug,notice:a})));if("address_country"!==t.slug)return c.default.createElement(w.default,{cols:"12",label:t.label,settings:e.props.state,value:t.slug,required:e.props.state[t.slug+"_required"],boxClass:"sui-tab-boxed",key:n},c.default.createElement(S.default,i({},e.props,{prefix:t.slug})),c.default.createElement(F.default,i({},e.props,{prefix:t.slug})))}});return this.hasChildrens(n)?c.default.createElement(N.default,{default:r},n):c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=D},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),h=a(97),m=(r(h),a(10)),b=r(m),y=a(4),v=r(y),g=a(5),E=r(g),w=a(12),O=r(w),P=a(21),x=r(P),k=a(100),j=r(k),N=a(14),C=r(N),S=a(3),T=r(S),F=a(2),D=r(F),M=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement("div",null);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("reCAPTCHA type")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the reCAPTCHA type you want to use on your form. You can read more about the different reCAPTCHA types {{link}}here{{/link}} and then choose the one which suits you the best.",{components:{link:c.default.createElement("a",{href:"https://developers.google.com/recaptcha/docs/versions",target:"_blank"})}})),c.default.createElement(E.default,i({},this.props,{property:"captcha_type",settings:this.props.state,default:"v2_checkbox",label:""}),c.default.createElement(T.default,i({settings:this.props.state},this.props,{value:"v2_checkbox",label:(0,p.translate)("V2 Checkbox"),boxClass:forminatorData.hasV2Captcha?"sui-tab-boxed":""}),!forminatorData.hasV2Captcha&&c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} add then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=recaptcha",target:"_blank"})}}))),forminatorData.hasV2Captcha&&c.default.createElement(b.default,null,c.default.createElement(v.default,{cols:"6"},c.default.createElement(O.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Size"),property:"captcha_size",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"normal"},(0,p.translate)("Normal")),c.default.createElement("option",{value:"compact"},(0,p.translate)("Compact")))),c.default.createElement(v.default,{cols:"6"},c.default.createElement(O.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"captcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))))),c.default.createElement(T.default,i({settings:this.props.state},this.props,{value:"v2_invisible",label:(0,p.translate)("V2 Invisible"),boxClass:forminatorData.hasV2InvisibleCaptcha?"sui-tab-boxed":""}),!forminatorData.hasV2InvisibleCaptcha&&c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} add then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=recaptcha",target:"_blank"})}}))),forminatorData.hasV2InvisibleCaptcha&&c.default.createElement(O.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"captcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))),c.default.createElement(T.default,i({settings:this.props.state},this.props,{value:"v3_recaptcha",label:(0,p.translate)("reCAPTCHA V3"),boxClass:forminatorData.hasV3Captcha?"sui-tab-boxed":""}),!forminatorData.hasV3Captcha&&c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} add then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=recaptcha",target:"_blank"})}}))),forminatorData.hasV3Captcha&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("reCAPTCHA V3 returns a score (1 is very likely a good interaction, 0 is very likely a bot) based on user interaction. Choose the score below which the verification should fail.")),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Score Threshold"),property:"score_threshold",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0.0"},(0,p.translate)("0.0")),c.default.createElement("option",{value:"0.1"},(0,p.translate)("0.1")),c.default.createElement("option",{value:"0.2"},(0,p.translate)("0.2")),c.default.createElement("option",{value:"0.3"},(0,p.translate)("0.3")),c.default.createElement("option",{value:"0.4"},(0,p.translate)("0.4")),c.default.createElement("option",{value:"0.5"},(0,p.translate)("0.5")),c.default.createElement("option",{value:"0.6"},(0,p.translate)("0.6")),c.default.createElement("option",{value:"0.7"},(0,p.translate)("0.7")),c.default.createElement("option",{value:"0.8"},(0,p.translate)("0.8")),c.default.createElement("option",{value:"0.9"},(0,p.translate)("0.9")),c.default.createElement("option",{value:"1.0"},(0,p.translate)("1.0"))))))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("span",{className:"sui-settings-label sui-dark"},(0,p.translate)("Language")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we will use the language chosen in the global reCAPTCHA settings. However, you can choose a different language for this reCAPTCHA.")),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"language",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:""},(0,p.translate)("Automatic")),_.map(forminatorData.captchaLangs,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})))),"v2_checkbox"!==this.props.state.captcha_type&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("span",{className:"sui-settings-label sui-dark"},(0,p.translate)("Badge Position")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Select where the reCAPTCHA badge will be displayed on your page.")),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"captcha_badge",defaultValue:"inline",radioClass:"sui-radio-sm"}),c.default.createElement(C.default,{value:"bottomright",hasImage:!0,image1x:"recaptcha-bottomright.png",image2x:"recaptcha-bottomright@2x.png",label:(0,p.translate)("Bottom Right")}),c.default.createElement(C.default,{value:"bottomleft",hasImage:!0,image1x:"recaptcha-bottomleft.png",image2x:"recaptcha-bottomleft@2x.png",label:(0,p.translate)("Bottom Left")}),c.default.createElement(C.default,{value:"inline",hasImage:!0,image1x:"recaptcha-inline.png",image2x:"recaptcha-inline@2x.png",label:(0,p.translate)("Inline in Form")})))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("span",{className:"sui-settings-label sui-dark"},(0,p.translate)("Error Message")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the error message you want to display on your form when reCAPTCHA verification fails.")),c.default.createElement(D.default,i({},this.props,{type:"text",property:"recaptcha_error_message",settings:this.props.state})))));case"visibility":return c.default.createElement("div",null);case"styling":return c.default.createElement(d.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=M},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(34),y=r(b),v=a(3),g=r(v),E=a(18),_=r(E),w=a(5),O=r(w),P=a(10),x=r(P),k=a(4),j=r(k),N=a(2),C=r(N),S=a(12),T=r(S),F=a(14),D=r(F),M=a(171),A=r(M),V=a(41),R=r(V),U=a(53),I=r(U),L=a(309),B=r(L),q=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.field_type,a=(0,p.translate)("Note: The query parameter's value passed in URL should match with the selected date format.");switch(e){case"labels":return c.default.createElement(O.default,i({},this.props,{property:"field_type",settings:this.props.state,default:"picker",label:(0,p.translate)("Type"),divClass:"sui-tabs-content-lg"}),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"picker",label:(0,p.translate)("Calendar")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(_.default,i({property:"icon",settings:this.props.state},this.props,{label:(0,p.translate)("Calendar Icon")}),c.default.createElement("span",{value:"true"},(0,p.translate)("Show")),c.default.createElement("span",{value:"false"},(0,p.translate)("Hide")))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"select",label:(0,p.translate)("Dropdowns")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"month_label"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"day_label"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"year_label"}))))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"input",label:(0,p.translate)("Text inputs")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"month_label"}))),c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"month_placeholder"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"day_label"}))),c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"day_placeholder"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"year_label"}))),c.default.createElement(j.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"year_placeholder"}))))))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,this.props),"input"!==t&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default date")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Use this feature to specify a default selected date.")),c.default.createElement(O.default,i({},this.props,{property:"default_date",settings:this.props.state,default:"none",label:""}),c.default.createElement(D.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(D.default,{value:"today"},(0,p.translate)("Today")),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"custom",label:(0,p.translate)("Future Date"),boxClass:"sui-tab-boxed"}),c.default.createElement(A.default,i({},this.props,{settings:this.props.state,property:"date",dateFormat:this.props.state.date_format||"",placeholder:(0,p.translate)("20 April 2018")})))))),"select"===t&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Year Range")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, we select 100 years in the past, and 100 years in the future for the year dropdown field. You can set a custom year range to display in the year dropdown below.")),c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement(x.default,null,c.default.createElement(j.default,{cols:"4"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("From"),placeholder:(0,p.translate)("1920"),property:"min_year",type:"number"}))),c.default.createElement(j.default,{cols:"4"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("To"),placeholder:(0,p.translate)("2030"),property:"max_year",type:"number"}))))))),c.default.createElement(I.default,i({},this.props,{notice:a})));case"limits":return c.default.createElement(B.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=q},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(21),d=r(f),h=a(10),m=r(h),b=a(4),y=r(b),v=a(171),g=r(v),E=a(2),w=r(E),O=a(14),P=r(O),x=a(42),k=r(x),j=a(3),N=r(j),C=a(5),S=r(C),T=a(310),F=r(T),D=a(311),M=r(D),A=a(16),V=r(A),R=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"getDateFields",value:function(){var e=this,t=[];return(0,p.getFieldsByType)("date",this.props.wrappers).map(function(a){e.props.state.element_id!==a.element_id&&t.push({value:a.element_id,label:a.field_label})}),t}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=_.isUndefined(this.props.state["start-date"])?"":this.props.state["start-date"],t=_.isUndefined(this.props.state["end-date"])?"":this.props.state["end-date"];return c.default.createElement(c.default.Fragment,null,c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Start & End date")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a start and end date limit for the calendar to restrict the date selection between a specific date range. Note that we will use the timezone set in your {{a}}WordPress Settings{{/a}}.",{components:{a:c.default.createElement("a",{href:forminatorData.adminUrl+"options-general.php",target:"_blank"})}})),c.default.createElement("div",{class:"fui-form-field--row"},c.default.createElement("div",{class:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Start Date"),settings:this.props.state,property:"start-date",options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("No limit")),c.default.createElement("option",{value:"specific"},(0,p.translate)("Specific date")),c.default.createElement("option",{value:"today"},(0,p.translate)("Today")),this.getDateFields().length>0&&c.default.createElement("optgroup",{label:(0,p.translate)("Date fields")},_.map(this.getDateFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})))),"specific"===e&&c.default.createElement("div",{class:"fui-form-field--col"},c.default.createElement(g.default,i({},this.props,{label:" ",settings:this.props.state,property:"start-specific-date",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date"),calendarIcon:"left"}))),""!==e&&"specific"!==e&&c.default.createElement("div",{class:"fui-form-field--col"},c.default.createElement("div",{class:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{class:"sui-form-field-inline"},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"start-offset-operator",fieldClass:"sui-input-sm",defaultValue:"+",options:this.disableSearch()}),c.default.createElement("option",{value:"+"},(0,p.translate)("+")),c.default.createElement("option",{value:"-"},(0,p.translate)("-"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("0"),property:"start-offset-value",fieldClass:"sui-input-sm",defaultValue:"0"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"start-offset-duration",fieldClass:"fui-field-full",defaultValue:"days",options:this.disableSearch()}),c.default.createElement("option",{value:"days"},(0,p.translate)("days")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("weeks")),c.default.createElement("option",{value:"months"},(0,p.translate)("months")),c.default.createElement("option",{value:"years"},(0,p.translate)("years"))))))),c.default.createElement("div",{class:"fui-form-field--row"},c.default.createElement("div",{class:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("End Date"),settings:this.props.state,property:"end-date",options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("No limit")),c.default.createElement("option",{value:"specific"},(0,p.translate)("Specific date")),c.default.createElement("option",{value:"today"},(0,p.translate)("Today")),this.getDateFields().length>0&&c.default.createElement("optgroup",{label:(0,p.translate)("Date fields")},_.map(this.getDateFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})))),"specific"===t&&c.default.createElement("div",{class:"fui-form-field--col"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"end-specific-date",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date"),calendarIcon:"left"}))),""!==t&&"specific"!==t&&c.default.createElement("div",{class:"fui-form-field--col"},c.default.createElement("div",{class:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"end-offset-operator",fieldClass:"sui-input-sm",defaultValue:"+",options:this.disableSearch()}),c.default.createElement("option",{value:"+"},(0,p.translate)("+")),c.default.createElement("option",{value:"-"},(0,p.translate)("-"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("0"),property:"end-offset-value",fieldClass:"sui-input-sm",defaultValue:"0"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"end-offset-duration",fieldClass:"fui-field-full",defaultValue:"days",options:this.disableSearch()}),c.default.createElement("option",{value:"days"},(0,p.translate)("days")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("weeks")),c.default.createElement("option",{value:"months"},(0,p.translate)("months")),c.default.createElement("option",{value:"years"},(0,p.translate)("years")))))))),c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Days of the week")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose which days of the week should be available on the calendar.")),c.default.createElement(S.default,i({},this.props,{property:"howto-restrict",settings:this.props.state,default:"all"}),c.default.createElement(P.default,{value:"all"},(0,p.translate)("All days")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,value:"week",label:(0,p.translate)("Selected days"),boxClass:"sui-tab-boxed"}),c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"sunday",label:(0,p.translate)("Sunday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"wednesday",label:(0,p.translate)("Wednesday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"saturday",label:(0,p.translate)("Saturday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"monday",label:(0,p.translate)("Monday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"thursday",label:(0,p.translate)("Thursday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"tuesday",label:(0,p.translate)("Tuesday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"friday",label:(0,p.translate)("Friday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))))))),c.default.createElement(V.default,null,c.default.createElement(F.default,i({},this.props,{label:(0,p.translate)("Disable dates"),hasSettingsLabel:"dark",description:(0,p.translate)("Use this setting to disable specific dates on the calendar."),settings:this.props.state,property:"disabled-dates",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date")}))),c.default.createElement(V.default,null,c.default.createElement(M.default,i({},this.props,{label:(0,p.translate)("Disable date ranges"),hasSettingsLabel:"dark",description:(0,p.translate)("Use this setting to disable specific dates ranges on the calendar."),settings:this.props.state,property:"disable-date-range",dateFormat:"MM/DD/YYYY",placeholder:(0,p.translate)("Pick a date")}))),c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Error Message")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose an error message to be used when visitor enters a date that is disabled.")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"restrict_message"}))))}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this,t=this,a=this.props.dateFormat?this.props.dateFormat:"mm-dd-yy",r=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el),this.$elDate=jQuery(this.elDate);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown",placeholder:(0,u.translate)("Click here to add a date…")},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$elDate.datepicker({beforeShow:function(t,a){jQuery("body").append(jQuery("#ui-datepicker-div")),jQuery("#ui-datepicker-div").addClass("sui-calendar"),"forminator-field-date"===e.$el.attr("id")&&("disable"===e.props.state.past_dates?e.$el.datepicker("option","minDate",e.$el.datepicker("getDate")):"enable"===e.props.state.past_dates&&e.$el.datepicker("option","minDate",null))},dateFormat:a,autoclose:!0,dayNamesMin:forminatorl10n.calendar.day_names_min,monthNames:forminatorl10n.calendar.month_names,onSelect:function(a){var r=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];r.push(a),t.updateValue(r),t.$el.html(""),_.each(r,function(e){t.$el.append(jQuery('<option value="'+e+'">'+e+"</option>"))}),t.$el.val(r).trigger("change")}}),this.$el.on("select2:opening",function(e){e.preventDefault(),(_.isUndefined(t.props.settings[t.props.property])?[]:t.props.settings[t.props.property]).length===e.currentTarget.selectedOptions.length&&t.$elDate.datepicker("show")}),this.$el.on("select2:unselect",function(e){e.preventDefault();var a=_.isUndefined(t.props.settings[t.props.property])?[]:t.props.settings[t.props.property];a=a.filter(function(t){return t!==e.params.data.id}),setTimeout(function(){t.updateValue(a)},20)}),_.each(r,function(e){t.$el.append(jQuery('<option value="'+e+'">'+e+"</option>"))}),this.$el.val(r).trigger("change.select2")}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData(),this.$elDate.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a="",r="";return this.props.label&&""!==this.props.label&&(a=this.props.hasSettingsLabel?s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-settings-label"+("dark"===this.props.hasSettingsLabel?" sui-dark":"")},this.props.label):s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.description&&""!==this.props.description&&(r=s.default.createElement("p",{class:"sui-description",style:{marginBottom:10}},this.props.description)),s.default.createElement("div",{className:"sui-form-field"},a,r,s.default.createElement("div",{className:"fui-datepicker-tags"},s.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select sui-select-lg",defaultValue:t,multiple:"multiple"},this.props.children),s.default.createElement("input",{ref:function(t){return e.elDate=t},className:"sui-input"})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.dateFormat?this.props.dateFormat:"MM/DD/YYYY",a=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el),this.$elDate=jQuery(this.elDate);var r=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown",placeholder:(0,u.translate)("Click here to add a date range...")},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(r):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(r):console.log("select2 not intiated"),this.$elDate.daterangepicker({autoApply:!0,locale:{format:"MMMM DD, YYYY",separator:" - ",customRangeLabel:"Custom",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]},alwaysShowCalendars:!0,parentEl:".fui-daterange-calendar"}),this.$elDate.on("apply.daterangepicker",function(a,r){var n=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];n.push(r.startDate.format(t)+" - "+r.endDate.format(t)),e.updateValue(n),e.$el.html(""),_.each(n,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),e.$el.val(n).trigger("change")}),this.$el.on("select2:opening",function(t){t.preventDefault(),(_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property]).length===t.currentTarget.selectedOptions.length&&e.$elDate.trigger("click"),jQuery(".daterangepicker").css("zIndex","3001")}),this.$el.on("select2:unselect",function(t){t.preventDefault();var a=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];a=a.filter(function(e){return e!==t.params.data.id}),setTimeout(function(){e.updateValue(a)},20)}),_.each(a,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(a).trigger("change.select2")}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData(),this.$elDate.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a="",r="";return this.props.label&&""!==this.props.label&&(a=this.props.hasSettingsLabel?s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-settings-label"+("dark"===this.props.hasSettingsLabel?" sui-dark":"")},this.props.label):s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.description&&""!==this.props.description&&(r=s.default.createElement("p",{class:"sui-description",style:{marginBottom:10}},this.props.description)),s.default.createElement("div",{className:"sui-form-field"},a,r,s.default.createElement("div",{className:"fui-datepicker-tags"},s.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select sui-select-lg",defaultValue:t,multiple:"multiple"},this.props.children),s.default.createElement("div",{class:"fui-daterange-calendar"}),s.default.createElement("input",{id:"forminator-field-"+this.props.property,style:{visibility:"hidden"},ref:function(t){return e.elDate=t},className:"sui-input",autoComplete:"off"})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(180),d=r(f),h=a(23),m=r(h),b=a(24),y=r(b),v=a(34),g=r(v),E=a(2),_=r(E),w=a(12),O=r(w),P=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(d.default,this.props);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Signature filetype")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the filetype to save your users' signature in.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(O.default,i({},this.props,{property:"filetype",settings:this.props.state}),c.default.createElement("option",{value:"png"},(0,p.translate)("PNG")),c.default.createElement("option",{value:"jpg"},(0,p.translate)("JPG")))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Height")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the height of your signature field. The default value is 180px.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"180",property:"height",fieldClass:"sui-input-sm"})),c.default.createElement("span",null,(0,p.translate)("px"))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Stroke thickness")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the thickness in pixels for signature strokes. The default value is 2px.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"2",property:"thickness",fieldClass:"sui-input-sm"})),c.default.createElement("span",null,(0,p.translate)("px"))))));case"visibility":return c.default.createElement(m.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(29),y=r(b),v=a(2),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"gdpr_description",editorOptions:forminatorData.variables,description:(0,p.translate)("Note, the form will not submit until the user has accepted the terms.")})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Error message"),placeholder:(0,p.translate)("Enter required message"),property:"required_message",id:"forminator-field-name-error-msg"})));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),h=a(10),m=r(h),b=a(4),y=r(b),v=a(2),g=r(v),E=a(12),w=r(E),O=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default_value"}),_.map(forminatorData.variables,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})))),"custom_value"===this.props.state.default_value&&c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Custom Value"),placeholder:(0,p.translate)("Enter custom value"),property:"custom_value"})))),"query"===this.props.state.default_value&&c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter"),placeholder:(0,p.translate)("E.g. query_parameter_key"),property:"prefill"})))));case"settings":case"visibility":return c.default.createElement("div",null);case"styling":return c.default.createElement(d.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(29),y=r(b),v=a(2),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"variations",editorOptions:forminatorData.variables,enableFormData:"true",enablePostData:"false",enableUpload:"true",allowButtonOnclick:"true",mainOptions:[]})));case"settings":return c.default.createElement("div",null);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(185),y=r(b),v=a(34),g=r(v),E=a(10),w=r(E),O=a(4),P=r(O),x=a(2),k=r(x),j=a(176),N=r(j),C=a(18),S=r(C),T=a(16),F=r(T),D=a(264),M=r(D),A=a(53),V=r(A),R=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,this.props));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(F.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Layout")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we stack the options vertically. However, you can change the options layout below.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,property:"layout",defaultValue:"vertical",noWrapper:!0}),c.default.createElement("div",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("div",{value:"horizontal"},(0,p.translate)("Horizontal")))),t&&c.default.createElement(M.default,this.props),c.default.createElement(V.default,this.props));case"calculations":return c.default.createElement(N.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(41),d=(r(f),a(55)),h=r(d),m=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.labelInput=c.default.createRef(),a.valueInput=c.default.createRef(),a.focusLabel=a.focusLabel.bind(a),a.focusValue=a.focusValue.bind(a),a.toggleState=a.toggleState.bind(a),a.updateImage=a.updateImage.bind(a),a.state={focus:!1,open:a.props.state.options_expanded},a}return o(t,e),s(t,[{key:"removeOption",value:function(){this.props.removeOption(this.props.counter)}},{key:"updateLabel",value:function(e){this.props.updateLabel(this.props.counter,e.target.value)}},{key:"updateLimit",value:function(e){this.props.updateLimit(this.props.counter,e.target.value)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateDefault",value:function(e){this.props.updateDefault(this.props.counter,e.target.checked)}},{key:"updateImage",value:function(e,t){this.props.updateImage(this.props.counter,t,e)}},{key:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlurValue",value:function(){this.onBlur()}},{key:"onBlurLabel",value:function(e){this.onBlur();var t=(0,p.generateValue)(e.target.value);this.props.updateValue(this.props.counter,t)}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"focusLabel",value:function(){this.labelInput.current.focus()}},{key:"focusValue",value:function(){this.valueInput.current.focus()}},{key:"toggleState",value:function(){this.setState({open:!this.state.open});var e=this,t=jQuery(".fui-option"),a=0,r=0,n=void 0,l=void 0;clearTimeout(n),n=setTimeout(function(){t.each(function(){jQuery(this).find(".sui-accordion-item").hasClass("sui-accordion-item--open")?a++:r++}),clearTimeout(l),l=setTimeout(function(){0===a?e.props.updateProperty("options_expanded",!1):0===r&&e.props.updateProperty("options_expanded",!0)},50)},50)}},{key:"componentDidMount",value:function(){this.$opt=jQuery(this.opt);var e=jQuery("#forminator-modal"),t=e.scrollTop();e.on("scroll",function(){t=jQuery(this).scrollTop()}),this.$opt.on("change",".sui-checkbox > input",function(a){a.preventDefault(),a.stopPropagation(),e.scrollTop(t)})}},{key:"componentDidUpdate",value:function(e){this.props.state.options_expanded!==e.state.options_expanded&&this.setState({open:this.props.state.options_expanded})}},{key:"render",value:function(){var e=this,t=this.state.focus?"fui-on_focus":"",a=_.isEmpty(this.props.option.label)?"sui-form-field-error":"",r=this.state.open,n=this.props.state.enable_images,l="",o=void 0!==this.props.option.image?"url("+this.props.option.image+")":"";return l=r?"sui-accordion-item--open":"",c.default.createElement("div",{className:"fui-option "+t,ref:function(t){return e.opt=t}},c.default.createElement("div",{className:"fui-option-settings"},c.default.createElement("div",{className:"sui-accordion-item "+l,style:{boxShadow:"none"}},c.default.createElement("div",{className:"sui-accordion-item-header",style:{minHeight:"0",padding:"0"}},c.default.createElement("div",{className:"fui-option-settings--main",style:{padding:"0"}},!r&&n&&c.default.createElement("div",{className:"sui-upload"},c.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},c.default.createElement("div",{className:"sui-image-mask"}),c.default.createElement("div",{role:"button",className:"sui-image-preview",style:{display:"block",backgroundImage:o}}))),c.default.createElement("div",{className:"sui-form-field "+a},c.default.createElement("input",{type:"text",size:"1",placeholder:(0,p.translate)("Label"),value:this.props.option.label,className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurLabel.bind(this),ref:this.labelInput,onClick:this.focusLabel,title:(0,p.translate)("Label")})),!r&&c.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox",title:(0,p.translate)("Selected"),style:{marginLeft:"15px"}},c.default.createElement("input",{type:"checkbox",checked:this.props.option.default?"checked":"",name:"demo-field-radio--option-selected",id:"option-selected-"+this.props.counter,onChange:this.updateDefault.bind(this)}),c.default.createElement("span",{"aria-hidden":"true"})),c.default.createElement("button",{className:"sui-button-icon sui-button-red fui-option-remove",title:(0,p.translate)("Delete option"),"aria-label":(0,p.translate)("Delete option"),onClick:this.removeOption.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"})),c.default.createElement("div",{style:{borderLeft:"1px solid #E6E6E6",width:"1px",height:"30px"}}),c.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",title:(0,p.translate)("Toggle"),"aria-label":"Open item",onClick:function(){return e.toggleState()}},c.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"})))),c.default.createElement("div",{className:"sui-accordion-item-body",style:{padding:"10px 10px 0 0"}},c.default.createElement("div",{className:"fui-option-settings--extra"},c.default.createElement("input",{type:"text",value:this.props.option.value,placeholder:(0,p.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurValue.bind(this),ref:this.valueInput,onClick:this.focusValue}),this.props.state.type&&"select"===this.props.state.type&&this.props.isLimit&&"true"===this.props.isLimit&&c.default.createElement("input",{type:"text",value:this.props.option.limit,placeholder:(0,p.translate)("Submission limit"),className:"sui-form-control",onChange:this.updateLimit.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),r&&c.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox"},c.default.createElement("input",{type:"checkbox",checked:this.props.option.default?"checked":"",name:"demo-field-radio--option-selected",id:"option-selected-"+this.props.counter,onChange:this.updateDefault.bind(this)}),c.default.createElement("span",{"aria-hidden":"true"}),c.default.createElement("span",{className:"sui-description sui-description-sm"},(0,p.translate)("Selected")))),n&&c.default.createElement("div",{className:"fui-option-settings--extra"},c.default.createElement(h.default,i({},this.props,{settings:this.props.option,type:"image",fieldClass:"sui-auto",property:"image",updateProperty:this.updateImage})))))))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a);var l=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,o=_.isUndefined(a.props.settings[a.props.property])?l:a.props.settings[a.props.property];return a.state={value:o},a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this,t=this;this.$el=jQuery(this.el),this.$addPredefined=jQuery(this.addPredefined),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(a){var r=t.state.value,n=a.target.value;0!==r.length&&(n=r+"\n"+n),e.updateValue(n),e.predefinedSelector(),e.scrollToNewOpt()}),this.predefinedSelector()}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.state.enable_images!==e.state.enable_images&&(this.$el.prev(".dropdown-handle").remove(),this.$el.next(".select-list-container").remove(),this.$el.unwrap(".select-container"),this.$el.removeClass("sui-styled")),this.props.value!==e.value&&this.updateValue(this.props.value),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.enable_images!==e.state.enable_images&&(SUI.suiSelect(this.$el),this.predefinedSelector())}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"scrollToNewOpt",value:function(){var e=jQuery("#bulk-edit-textarea"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},20)}},{key:"predefinedSelector",value:function(){this.$el.next(".select-list-container").find(".list-value").html((0,u.translate)("+ Predefined options"))}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":"sui-form-field-error",l=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images,o=(0,u.translate)("My Label; my-value; 0; https://mysite.com/my-image-url.jpg"),i=(0,u.translate)("My Label; my-value; 0");return s.default.createElement("div",{className:"sui-form-field "+n},s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *"),s.default.createElement("span",{id:"add-predefined",className:"sui-label-note",ref:function(t){return e.addPredefined=t}},s.default.createElement("select",{ref:function(t){return e.el=t}},s.default.createElement("option",{value:i},(0,u.translate)("New option")),l&&s.default.createElement("option",{value:o},(0,u.translate)("New option with image")),s.default.createElement("option",{value:(0,u.translate)("Under 1 year\n1-17\n18-24\n25-34\n35-44\n45-54\n55-64\n65 and Above")},(0,u.translate)("Age")),s.default.createElement("option",{value:(0,u.translate)("Male\nFemale\nNon-binary\nOther")},(0,u.translate)("Gender")),s.default.createElement("option",{value:(0,u.translate)("Primary School\nHigh School\nSome College\nAssociate's Degree\nBachelor's Degree\nMaster's degree\nProfessional degree\nDoctoral degree\nOther")},(0,u.translate)("Educational Attainment")),s.default.createElement("option",{value:(0,u.translate)("Full-time employed\nPart-time employed\nSelf-employed\nContract Worker\nHomemaker\nRetired\nStudent\nUnemployed")},(0,u.translate)("Employment Status")),s.default.createElement("option",{value:(0,u.translate)("Architecture and Engineering\nArts, Design, Entertainment, Sports, and Media\nBuilding and Grounds Cleaning and Maintenance\nBusiness and Financial Operations\nCommunity and Social Services\nComputer and Mathematical\nConstruction and Extraction\nEducational Instruction and Library\nFarming, Fishing, and Forestry\nFood Preparation and Serving Related\nHealthcare Practitioners and Technical\nHealthcare Support\nInstallation, Maintenance, and Repair\nLegal\nLife, Physical, and Social Science\nManagement\nOffice and Administrative Support\nPersonal Care and Services\nProduction/Manufacturing\nProtective Service\nSales and Related\nTransportation and Material Moving")},(0,u.translate)("Occupation")),s.default.createElement("option",{value:(0,u.translate)("Single\nMarried\nDivorced\nSeparated\nWidowed")},(0,u.translate)("Marital Status")),s.default.createElement("option",{value:(0,u.translate)("Africa\nAntarctica\nAsia\nAustralia\nEurope\nNorth America\nSouth America")},(0,u.translate)("Continents")),s.default.createElement("option",{value:(0,u.translate)("Afghanistan\nÅland Islands\nAlbania\nAlgeria\nAmerican Samoa\nAndorra\nAngola\nAnguilla\nAntarctica\nAntigua and Barbuda\nArgentina\nArmenia\nAruba\nAustralia\nAustria\nAzerbaijan\nBahamas\nBahrain\nBangladesh\nBarbados\nBelarus\nBelgium\nBelize\nBenin\nBermuda\nBhutan\nBolivia\nBonaire, Sint Eustatius and Saba\nBosnia and Herzegovina\nBotswana\nBouvet Island\nBrazil\nBritish Indian Ocean Territory\nBrunei Darussalam\nBulgaria\nBurkina Faso\nBurundi\nCabo Verde\nCambodia\nCameroon\nCanada\nCayman Islands\nCentral African Republic\nChad\nChile\nChina\nChristmas Island\nCocos Islands\nColombia\nComoros\nCongo, Democratic Republic of the\nCongo, Republic of the\nCook Islands\nCosta Rica\nCôte d'Ivoire\nCroatia\nCuba\nCuraçao\nCyprus\nCzech Republic\nDenmark\nDjibouti\nDominica\nDominican Republic\nEcuador\nEgypt\nEl Salvador\nEquatorial Guinea\nEritrea\nEstonia\nEswatini\nEthiopia\nFalkland Islands\nFaroe Islands\nFiji\nFinland\nFrance\nFrench Guiana\nFrench Polynesia\nFrench Southern Territories\nGabon\nGambia\nGeorgia\nGermany\nGhana\nGibraltar\nGreece\nGreenland\nGrenada\nGuadeloupe\nGuam\nGuatemala\nGuernsey\nGuinea\nGuinea-Bissau\nGuyana\nHaiti\nHeard and McDonald Islands\nHoly See\nHonduras\nHong Kong\nHungary\nIceland\nIndia\nIndonesia\nIran\nIraq\nIreland\nIsle of Man\nIsrael\nItaly\nJamaica\nJapan\nJersey\nJordan\nKazakhstan\nKenya\nKiribati\nKuwait\nKyrgyzstan\nLao People's Democratic Republic\nLatvia\nLebanon\nLesotho\nLiberia\nLibya\nLiechtenstein\nLithuania\nLuxembourg\nMacau\nMadagascar\nMalawi\nMalaysia\nMaldives\nMali\nMalta\nMarshall Islands\nMartinique\nMauritania\nMauritius\nMayotte\nMexico\nMicronesia\nMoldova\nMonaco\nMongolia\nMontenegro\nMontserrat\nMorocco\nMozambique\nMyanmar\nNamibia\nNauru\nNepal\nNetherlands\nNew Caledonia\nNew Zealand\nNicaragua\nNiger\nNigeria\nNiue\nNorfolk Island\nNorth Korea\nNorth Macedonia\nNorthern Mariana Islands\nNorway\nOman\nPakistan\nPalau\nPalestine, State of\nPanama\nPapua New Guinea\nParaguay\nPeru\nPhilippines\nPitcairn\nPoland\nPortugal\nPuerto Rico\nQatar\nRéunion\nRomania\nRussia\nRwanda\nSaint Barthélemy\nSaint Helena, Ascension and Tristan da Cunha\nSaint Kitts and Nevis\nSaint Lucia\nSaint Martin\nSaint Pierre and Miquelon\nSaint Vincent and the Grenadines\nSamoa\nSan Marino\nSao Tome and Principe\nSaudi Arabia\nSenegal\nSerbia\nSeychelles\nSierra Leone\nSingapore\nSint Maarten\nSlovakia\nSlovenia\nSolomon Islands\nSomalia\nSouth Africa\nSouth Georgia and the South Sandwich Islands\nSouth Korea\nSouth Sudan\nSpain\nSri Lanka\nSudan\nSuriname\nSvalbard and Jan Mayen Islands\nSweden\nSwitzerland\nSyria\nTaiwan\nTajikistan\nTanzania\nThailand\nTimor-Leste\nTogo\nTokelau\nTonga\nTrinidad and Tobago\nTunisia\nTurkey\nTurkmenistan\nTurks and Caicos Islands\nTuvalu\nUganda\nUkraine\nUnited Arab Emirates\nUnited Kingdom\nUnited States\nUruguay\nUS Minor Outlying Islands\nUzbekistan\nVanuatu\nVenezuela\nVietnam\nVirgin Islands, British\nVirgin Islands, U.S.\nWallis and Futuna\nWestern Sahara\nYemen\nZambia\nZimbabwe")},(0,u.translate)("Countries")),s.default.createElement("option",{value:(0,u.translate)("Alabama\nAlaska\nArizona\nArkansas\nCalifornia\nColorado\nConnecticut\nDelaware\nDistrict of Columbia\nFlorida\nGeorgia\nHawaii\nIdaho\nIllinois\nIndiana\nIowa\nKansas\nKentucky\nLouisiana\nMaine\nMaryland\nMassachusetts\nMichigan\nMinnesota\nMississippi\nMissouri\nMontana\nNebraska\nNevada\nNew Hampshire\nNew Jersey\nNew Mexico\nNew York\nNorth Carolina\nNorth Dakota\nOhio\nOklahoma\nOregon\nPennsylvania\nRhode Island\nSouth Carolina\nSouth Dakota\nTennessee\nTexas\nUtah\nVermont\nVirginia\nWashington\nWest Virginia\nWisconsin\nWyoming")},(0,u.translate)("American States")),s.default.createElement("option",{value:(0,u.translate)("Alberta\nBritish Columbia\nManitoba\nNew Brunswick\nNewfoundland and Labrador\nNorthwest Territories\nNova Scotia\nNunavut\nOntario\nPrince Edward Island\nQuebec\nSaskatchewan\nYukon")},(0,u.translate)("Canadian Provinces"))))),s.default.createElement("div",{className:"sui-insert-variables"},s.default.createElement("textarea",{id:"bulk-edit-textarea",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:"8"}),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description bulk-editor-description",dangerouslySetInnerHTML:{__html:this.props.description}})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(2),f=(r(p),function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateField=a.updateField.bind(a),a.updateState=a.updateState.bind(a),a}return o(t,e),i(t,[{key:"updateField",value:function(e,t){this.updateState(t,e.target.value)}},{key:"updateState",value:function(e,t){var a=this.props.state.options;a[e].calculation=t,this.props.updateProperty("options",a)}},{key:"render",value:function(){var e=this;return 0===this.props.state.options.length?u.default.createElement("div",null):u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Assign a calculation value to each option. These values will not be shown on the form. You can assign only a numeric value."))),_.map(this.props.state.options,function(t,a){var r=_.isEmpty(t.calculation)?"sui-form-field-error":"";return u.default.createElement("div",{key:a,className:"sui-form-field "+r},u.default.createElement("label",{htmlFor:"calculation-option-"+a,className:"sui-label"},t.label),u.default.createElement("input",{type:"number",placeholder:(0,c.translate)("Calculation value"),id:"calculation-option-"+a,className:"sui-form-control sui-input-md",onChange:function(t){return e.updateField(t,a)},defaultValue:t.calculation}),_.isEmpty(t.calculation)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Calculation value is required!")))}))}}]),t}(s.Component));t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(180),d=r(f),h=a(23),m=r(h),b=a(24),y=r(b),v=a(5),g=r(v),E=a(13),w=r(E),O=a(321),P=r(O),x=a(34),k=r(x),j=a(184),N=(r(j),a(97)),C=(r(N),a(4)),S=r(C),T=a(53),F=r(T),D=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"prefix",label:(0,p.translate)("Prefix")},{slug:"fname",label:(0,p.translate)("First Name")},{slug:"mname",label:(0,p.translate)("Middle Name")},{slug:"lname",label:(0,p.translate)("Last Name")}],a}return o(t,e),s(t,[{key:"hasChildrens",value:function(e){var t=_.filter(e,function(e){return!_.isUndefined(e)});return!_.isEmpty(t)}},{key:"render",value:function(){var e=this;switch(this.props.type){case"labels":return c.default.createElement(g.default,i({},this.props,{property:"multiple_name",settings:this.props.state,default:"false",divClass:"sui-tabs-content-lg"}),c.default.createElement(d.default,i({settings:this.props.state},this.props,{value:"false"}),(0,p.translate)("Single")),c.default.createElement(P.default,i({settings:this.props.state},this.props,{value:"true"}),(0,p.translate)("Multiple")));case"settings":if("true"===this.props.state.multiple_name){var t=void 0,a=this.multiFields.map(function(a,r){if(!_.isUndefined(e.props.state[a.slug])&&e.props.state[a.slug]){if(_.isEmpty(t)&&(t=a.slug),"prefix"===a.slug)return c.default.createElement(S.default,{cols:"12",label:a.label,value:a.slug,settings:e.props.state,boxClass:"sui-tab-boxed",key:r},c.default.createElement(F.default,i({},e.props,{prefix:a.slug})));if("prefix"!==a.slug)return c.default.createElement(S.default,{cols:"12",label:a.label,settings:e.props.state,value:a.slug,required:e.props.state[a.slug+"_required"],boxClass:"sui-tab-boxed",key:r},c.default.createElement(k.default,i({},e.props,{prefix:a.slug})),c.default.createElement(F.default,i({},e.props,{prefix:a.slug})))}});return this.hasChildrens(a)?c.default.createElement(w.default,{default:t},a):c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")))}if("true"!==this.props.state.multiple_name)return c.default.createElement("div",null,c.default.createElement(k.default,this.props),c.default.createElement(F.default,this.props));case"visibility":return c.default.createElement(m.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=D},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(181),d=r(f),h=a(10),m=r(h),b=a(4),y=r(b),v=a(2),g=r(v),E=a(12),_=r(E),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this,t=[{slug:"fname",label:(0,p.translate)("First Name")},{slug:"mname",label:(0,p.translate)("Middle Name")},{slug:"lname",label:(0,p.translate)("Last Name")}];return c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Prefix"),property:"prefix",required:this.props.state.prefix_required,settings:this.props.state}),c.default.createElement(c.default.Fragment,null,c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"prefix_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(_.default,i({property:"prefix_placeholder",label:(0,p.translate)("Default value"),settings:this.props.state},this.props),c.default.createElement("option",{value:"Mr"},(0,p.translate)("Mr.")),c.default.createElement("option",{value:"Mrs"},(0,p.translate)("Mrs.")),c.default.createElement("option",{value:"Ms"},(0,p.translate)("Ms.")),c.default.createElement("option",{value:"Mx"},(0,p.translate)("Mx.")),c.default.createElement("option",{value:"Miss"},(0,p.translate)("Miss")),c.default.createElement("option",{value:"Dr"},(0,p.translate)("Dr.")),c.default.createElement("option",{value:"Prof"},(0,p.translate)("Prof."))))),c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"prefix_description"})))))),t.map(function(t,a){return c.default.createElement(d.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(m.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"}))))))}))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(10),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(34),P=r(O),x=a(176),k=r(x),j=a(53),N=r(j),C=a(5),S=r(C),T=a(14),F=r(T),D=a(3),M=r(D),A=a(16),V=r(A),R=a(12),U=(r(R),function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type;_.isUndefined(this.props.state.separators)||this.props.state.separators;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default_value"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(P.default,this.props),c.default.createElement(V.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limits")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set the minimum and maximum values the user can choose. Leave the fields blank to allow any number including negatives.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_min",label:(0,p.translate)("Minimum"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_max",label:(0,p.translate)("Maximum"),fieldClass:"sui-input-md"})))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(S.default,i({},this.props,{property:"limit_message",settings:this.props.state,default:"false",label:(0,p.translate)("Error Messages"),divClass:"sui-tabs-content-lg"}),c.default.createElement(F.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(M.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("When number is smaller than the min limit"),type:"text",placeholder:(0,p.translate)("E.g. Please enter a number greater than 0."),property:"limit_min_message"})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("When number is greater than the max limit"),type:"text",placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000."),property:"limit_max_message"})))))),c.default.createElement(N.default,this.props));case"calculations":return c.default.createElement(k.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component));t.default=U},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),h=a(14),m=r(h),b=a(3),y=r(b),v=a(5),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Step label"),placeholder:(0,p.translate)("Enter step label"),property:"pagination-label"})),c.default.createElement(g.default,i({},this.props,{property:"pagination-labels",settings:this.props.state,settingsLabel:(0,p.translate)("Buttons Text"),default:"none",settingsDesc:(0,p.translate)("Choose whether you want to use default text for the Previous and Next button or use custom text.")}),c.default.createElement(m.default,{value:"none"},(0,p.translate)("Default")),c.default.createElement(y.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Previous Button"),placeholder:(0,p.translate)("Enter text"),property:"pagination-footer-button-text"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Next Button"),placeholder:(0,p.translate)("Enter text"),property:"pagination-right-button-text"})))));case"settings":case"visibility":case"styling":default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(180),d=r(f),h=a(23),m=r(h),b=a(24),y=r(b),v=a(34),g=r(v),E=a(97),w=(r(E),a(3)),O=r(w),P=a(5),x=r(P),k=a(2),j=r(k),N=a(12),C=r(N),S=a(14),T=r(S),F=a(53),D=r(F),M=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(d.default,this.props);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Validation")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Make sure the users fill this field as per the selected validation and warn them when they haven't")),c.default.createElement(x.default,i({},this.props,{property:"validation",settings:this.props.state,default:"none",label:(0,p.translate)("Type"),divClass:"sui-tabs-content-lg"}),c.default.createElement(T.default,{value:"none",label:(0,p.translate)("None")}),c.default.createElement(O.default,{value:"standard",label:(0,p.translate)("National"),boxClass:"sui-tab-boxed"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Select the country to validate phone number for"),property:"phone_national_country"}),_.map(forminatorData.countries,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Validation message"),type:"text",placeholder:(0,p.translate)("Enter validation message"),property:"validation_message"}))),c.default.createElement(O.default,{value:"international",label:(0,p.translate)("International"),boxClass:"sui-tab-boxed"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default country"),property:"phone_international_country",defaultValue:"US"}),_.map(forminatorData.countries,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Validation message"),type:"text",placeholder:(0,p.translate)("Enter validation message"),property:"validation_message"}))),c.default.createElement(O.default,{value:"character_limit",label:(0,p.translate)("Character Limit"),boxClass:"sui-tab-boxed"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Limit field to"),type:"text",placeholder:(0,p.translate)("10"),property:"limit",suffix:(0,p.translate)("Characters"),inputClass:"sui-field-has-suffix"})),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Validation message"),type:"text",placeholder:(0,p.translate)("Enter validation message"),property:"validation_message"})))))),c.default.createElement(D.default,this.props));case"visibility":return c.default.createElement(m.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=M},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(34),y=r(b),v=a(181),g=r(v),E=a(10),w=r(E),O=a(4),P=r(O),x=a(2),k=r(x),j=a(18),N=r(j),C=a(12),S=r(C),T=a(42),F=r(T),D=a(265),M=r(D),A=a(16),V=r(A),R=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"post_title",label:(0,p.translate)("Title"),placeholder:!1},{slug:"post_content",label:(0,p.translate)("Content"),placeholder:!1},{slug:"post_excerpt",label:(0,p.translate)("Excerpt"),placeholder:!1},{slug:"post_image",label:(0,p.translate)("Featured Image"),placeholder:!0}],a.post_type=a.props.state.post_type,a.post_categories=[],_.isUndefined(forminatorData.postCategories[a.post_type])||_.isEmpty(forminatorData.postCategories[a.post_type])||(a.post_categories=forminatorData.postCategories[a.post_type],a.post_categories.map(function(e){a.multiFields.push({slug:e.value,label:e.label,placeholder:!0})})),a.multiFields.push({slug:"post_custom_fields",label:(0,p.translate)("Custom Fields"),placeholder:!1}),a}return o(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.type,a=_.isUndefined(forminatorData.postCategories[this.props.state.post_type])?[]:forminatorData.postCategories[this.props.state.post_type];switch(t){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Allow users to submit post data with this field. By default, this will create new posts, but you can assign it to any post type in the {{strong}}Settings{{/strong}} tab.",{components:{strong:c.default.createElement("strong",{style:{color:"#17A8E3"}})}})),c.default.createElement("div",{value:"multiple",className:"sui-accordion sui-accordion-flushed fui-modal-accordion"},this.multiFields.map(function(t,a){return!1===t.placeholder&&"post_custom_fields"!==t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(P.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):!0===t.placeholder&&"post_custom_fields"!==t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):"post_custom_fields"===t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,key:a,noBoxBody:!0}),c.default.createElement(c.default.Fragment,null,c.default.createElement(M.default,i({wrappers:e.props.wrappers},e.props)))):void 0})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,this.props),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Post type")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Choose the post type associated with this field.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Assigned post type"),placeholder:(0,p.translate)("post"),property:"post_type",fieldClass:"sui-input-md"}),_.map(forminatorData.postTypeList,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default status")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("When a user submits this form, choose what status this post data is.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Status"),placeholder:(0,p.translate)("pending"),property:"data_status",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"draft"},(0,p.translate)("Draft")),c.default.createElement("option",{value:"pending"},(0,p.translate)("Pending Review")),c.default.createElement("option",{value:"publish"},(0,p.translate)("Published")))),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default author")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("By default we'll assign posts to users if they're logged in, and fall back to the user specified below if you're allowing visitors to make posts. You can also override this to always assign posts to a specified user.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default author"),property:"select_author",fieldClass:"sui-input-md fui-reduce-spacing"}),_.map(forminatorData.userList,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})),c.default.createElement(F.default,i({},this.props,{settings:this.props.state,property:"default_author",label:(0,p.translate)("Always assign posts to this user"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),a.length>0&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Taxonomies limits")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow single or multiple categories or tags on this post.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(w.default,null,_.map(a,function(t,a){return c.default.createElement(P.default,{cols:"6",key:a},c.default.createElement(N.default,i({},e.props,{settings:e.props.state,property:t.value+"_multiple",defaultValue:"0",label:t.label}),c.default.createElement("div",{value:"0"},(0,p.translate)("Single")),c.default.createElement("div",{value:"1"},(0,p.translate)("Multiple"))))}))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(21),d=(r(f),a(43)),h=r(d),m=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return o(t,e),s(t,[{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","captcha","gdprcheckbox","stripe","paypal","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"removeOption",value:function(){this.props.removeOption(this.props.counter)}},{key:"updateLabel",value:function(e){this.props.updateLabel(this.props.counter,e.target.value)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"render",value:function(){var e=_.isEmpty(this.props.option.label)?"sui-form-field-error":"";return c.default.createElement("div",{className:"sui-builder-field sui-can_move sui-react "+e},c.default.createElement("div",{className:"sui-field-info",style:{overflow:"inherit"}},c.default.createElement("i",{className:"sui-icon-drag sui-align_top","aria-hidden":"true"}),c.default.createElement("div",{className:"sui-builder-field-form"},c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement("input",{type:"text",placeholder:(0,p.translate)("Label"),value:this.props.option.label,className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)})),c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement(h.default,i({},this.props,{settings:this.props.option,property:"value",placeholder:(0,p.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this)}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)}))))),c.default.createElement("div",{className:"sui-field-actions sui-align_top"},c.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:this.removeOption.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Delete meta")))))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(5),y=r(b),v=a(3),g=r(v),E=a(14),_=r(E),w=a(10),O=r(w),P=a(4),x=r(P),k=a(2),j=r(k),N=a(6),C=r(N),S=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(O.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Title"),placeholder:(0,p.translate)("Enter title"),property:"section_title"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Subtitle (optional)"),placeholder:(0,p.translate)("Enter subtitle"),property:"section_subtitle"}))));case"settings":return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Border")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Add a border to this section.")),c.default.createElement(y.default,i({},this.props,{property:"section_border",settings:this.props.state,default:"none"}),c.default.createElement(_.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"solid",label:(0,p.translate)("Solid"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(x.default,{cols:"3"},c.default.createElement(j.default,i({},this.props,{type:"number",settings:this.props.state,label:(0,p.translate)("Width"),note:"px",placeholder:"0",property:"cform-section-border-width"}))),c.default.createElement(x.default,{cols:"9"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Color"),property:"cform-section-border-color",defaultValue:"rgba(233,233,233,1)",isAlpha:!0}))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"dashed",label:(0,p.translate)("Dashed"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(x.default,{cols:"3"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Width"),note:"px",placeholder:"0",property:"cform-section-border-width"}))),c.default.createElement(x.default,{cols:"9"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Color"),property:"cform-section-border-color",defaultValue:"rgba(233,233,233,1)",isAlpha:!0}))))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=S},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(185),y=r(b),v=a(34),g=r(v),E=a(10),_=r(E),w=a(4),O=r(w),P=a(2),x=r(P),k=a(18),j=r(k),N=a(176),C=r(N),S=a(16),T=r(S),F=a(5),D=r(F),M=a(14),A=r(M),V=a(53),R=r(V),U=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.value_type,a="multiselect"===t?"false":"true",r=this.props.state.limit_status,n="enable"===r?"true":"false",l=(this.props.state.required,(0,p.translate)("Note: Pass comma-separated values for this query parameter to pre-populate multiple options."));switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,defaultValue:"single",label:(0,p.translate)("Type"),property:"value_type",clearOptions:"true"}),c.default.createElement("span",{value:"single"},(0,p.translate)("Single")),c.default.createElement("span",{value:"multiselect"},(0,p.translate)("Multiple"))))),"multiselect"!==t&&c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,i({},this.props,{isRadio:a,isLimit:n})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),"multiselect"!==t&&c.default.createElement(T.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Search")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Display the search box in a dropdown")),c.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,defaultValue:"disable",property:"search_status",clearOptions:"true",noWrapper:!0}),c.default.createElement("span",{value:"enable"},(0,p.translate)("Enable")),c.default.createElement("span",{value:"disable"},(0,p.translate)("Disable"))))),c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit Submission")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can limit submissions of each option to a certain number, and once an option reaches the submission limit, we'll hide that option from the dropdown list.")),c.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},c.default.createElement(D.default,i({},this.props,{settings:this.props.state,default:"disable",property:"limit_status",simple:!0}),c.default.createElement(A.default,{value:"disable",label:(0,p.translate)("Disable")}),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,value:"enable",label:(0,p.translate)("Enable")}),c.default.createElement(O.default,{cols:"12"},c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,p.translate)("You can set a limit for your options in the LABELS tab. Options for which limit field is left empty can have unlimited submissions."))))))),c.default.createElement(R.default,i({},this.props,{notice:"multiselect"===t&&l})));case"calculations":return c.default.createElement(C.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=U},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(10),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(12),O=r(w),P=a(34),x=r(P),k=a(97),j=(r(k),a(53)),N=r(j),C=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Max characters")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default the user can enter as many characters as they want. Use this setting to limit the number of characters the user can enter. Leave field blank to allow unlimited characters.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Character limit")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",fieldClass:"sui-input-sm"})),c.default.createElement(O.default,i({property:"limit_type",settings:this.props.state},this.props),c.default.createElement("option",{value:"characters"},(0,p.translate)("Characters")),c.default.createElement("option",{value:"words"},(0,p.translate)("Words"))))))),c.default.createElement(N.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(10),y=(r(b),a(4)),v=(r(y),a(2)),g=r(v),E=a(266),_=r(E),w=a(12),O=r(w),P=a(34),x=r(P),k=a(97),j=(r(k),a(18)),N=r(j),C=a(53),S=r(C),T=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return o(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state[e]=t}},{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder")+"\n"+(0,p.translate)("You can add new line"),property:"placeholder"})),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Rich-Text editor")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Enable TinyMCE editor to allow the formatted text.")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,property:"editor-type",defaultValue:"false"}),c.default.createElement("div",{value:"false"},(0,p.translate)("Disable")),c.default.createElement("div",{value:"true"},(0,p.translate)("Enable"))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Max characters")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default the user can enter as many characters as they want. Use this setting to limit the number of characters the user can enter. Leave field blank to allow unlimited characters.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Character limit")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",inputClass:"sui-input-sm"})),c.default.createElement(O.default,i({},this.props,{property:"limit_type",settings:this.props.state}),c.default.createElement("option",{value:"characters"},(0,p.translate)("Characters")),c.default.createElement("option",{value:"words"},(0,p.translate)("Words"))))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default height")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the default minimum height of your textarea field.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,defaultValue:"140",property:"default-height",inputClass:"sui-input-sm"})),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("px"))))),c.default.createElement(S.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=T},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(23),h=r(d),m=a(24),b=r(m),y=a(34),v=r(y),g=a(97),E=(r(g),a(5)),w=r(E),O=a(41),P=r(O),x=a(10),k=r(x),j=a(4),N=r(j),C=a(18),S=r(C),T=a(2),F=r(T),D=a(12),M=r(D),A=a(3),V=r(A),R=a(14),U=r(R),I=a(53),L=r(I),B=function(e){function t(e){return l(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"isTimeValid",value:function(e){var t=!0,a="twelve"===e?"h:mma":"H:mm";if(!_.isUndefined(this.props.state.restrict_time)&&"specific"===this.props.state.restrict_time){var r=_.isUndefined(this.props.state.restrict_start_hour)?0:this.props.state.restrict_start_hour,n=_.isUndefined(this.props.state.restrict_start_minute)?0:this.props.state.restrict_start_minute,l=_.isUndefined(this.props.state.restrict_start_ampm)?"AM":this.props.state.restrict_start_ampm,o=_.isUndefined(this.props.state.restrict_end_hour)?0:this.props.state.restrict_end_hour,i=_.isUndefined(this.props.state.restrict_end_minute)?0:this.props.state.restrict_end_minute,s=_.isUndefined(this.props.state.restrict_end_ampm)?"AM":this.props.state.restrict_end_ampm,u=_.isUndefined(this.props.state.default_time)?"none":this.props.state.default_time,c=_.isUndefined(this.props.state.default_time_hour)?0:this.props.state.default_time_hour,p=_.isUndefined(this.props.state.default_time_minute)?0:this.props.state.default_time_minute,f=_.isUndefined(this.props.state.default_time_ampm)?"AM":this.props.state.default_time_ampm,d="twelve"===e?l:"",h="twelve"===e?s:"",m="twelve"===e?f:"",b=moment(r+":"+n+d,a),y=moment(o+":"+i+h,a),v=moment(c+":"+p+m,a);"default"===u&&(v.isBefore(b)||y.isBefore(v))&&(t=!1)}return t}},{key:"render",value:function(){var e=this.props.type,t=(_.isUndefined(this.props.state.field_type)||this.props.state.field_type,_.isUndefined(this.props.state.time_type)?"":this.props.state.time_type),a="twelve"===t?12:24,r=(0,f.translate)("Note: The query parameter's value passed in URL should match with the selected time format."),l=this.isTimeValid(t);switch(e){case"labels":return p.default.createElement(p.default.Fragment,null,p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(S.default,s({},this.props,{settings:this.props.state,property:"field_type",label:(0,f.translate)("Type")}),p.default.createElement("span",{value:"select"},(0,f.translate)("Dropdowns")),p.default.createElement("span",{value:"input"},(0,f.translate)("Number inputs")))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(S.default,s({},this.props,{settings:this.props.state,property:"time_type",label:(0,f.translate)("Type")}),p.default.createElement("span",{value:"twelve"},(0,f.translate)("12 hour")),p.default.createElement("span",{value:"twentyfour"},(0,f.translate)("24 hour"))))),p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label"),placeholder:(0,f.translate)("Enter label"),property:"field_label"})),p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Description (optional)"),placeholder:(0,f.translate)("Enter description"),property:"description"})),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Fields")),p.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},p.default.createElement(P.default,s({},this.props,{label:(0,f.translate)("Hours")}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label (optional)"),placeholder:(0,f.translate)("Enter label"),property:"hh_label"}))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Placeholder (optional)"),placeholder:(0,f.translate)("Enter placeholder"),property:"hh_placeholder"}))))),p.default.createElement(P.default,s({},this.props,{label:(0,f.translate)("Minutes")}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label (optional)"),placeholder:(0,f.translate)("Enter label"),property:"mm_label"}))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Placeholder (optional)"),placeholder:(0,f.translate)("Enter placeholder"),property:"mm_placeholder"})))))));case"settings":return p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,this.props),p.default.createElement("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,f.translate)("Increments")),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose what time increments you want to use for the hour and minute timepickers.")),p.default.createElement("div",{className:"sui-form-field-inline"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),property:"increment_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})),p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),property:"increment_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))))),p.default.createElement("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,f.translate)("Limits")),p.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.translate)("Choose a time limit for the time picker field to restrict the time selection between specific hours.")),p.default.createElement(w.default,s({},this.props,{property:"restrict_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(V.default,s({settings:this.props.state},this.props,{value:"specific",label:(0,f.translate)("Specific Hours"),boxClass:"sui-tab-boxed"}),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Start Time")),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"1",property:"restrict_start_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"0",property:"restrict_start_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,property:"restrict_start_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("End Time")),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"1",property:"restrict_end_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"0",property:"restrict_end_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,property:"restrict_end_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"12"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Error Message"),property:"restrict_message",description:(0,f.translate)("This error message will be used when time entered is out of the set limits.")}))))),p.default.createElement(U.default,{value:"none"},(0,f.translate)("None"))))),p.default.createElement("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,f.translate)("Default time")),p.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.translate)("Use this feature to specify a default selected time.")),p.default.createElement(w.default,s({},this.props,{property:"default_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(V.default,s({settings:this.props.state},this.props,{value:"default",label:(0,f.translate)("Default"),boxClass:"sui-tab-boxed"}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),placeholder:"1",property:"default_time_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),placeholder:"0",property:"default_time_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:" ",property:"default_time_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),!l&&p.default.createElement("span",{className:"sui-error-message"},(0,f.translate)("Default time can't be outside the allowed time limit."))),p.default.createElement(U.default,{value:"none"},(0,f.translate)("None"))))),p.default.createElement(L.default,s({},this.props,{notice:r})));case"visibility":return p.default.createElement(h.default,this.props);case"styling":return p.default.createElement(b.default,this.props);default:return p.default.createElement("div",null)}}}]),t}(c.Component);t.default=B},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(333),y=r(b),v=a(34),g=r(v),E=a(2),w=r(E),O=a(4),P=(r(O),a(12)),x=r(P),k=a(18),j=r(k),N=a(5),C=r(N),S=a(14),T=r(S),F=a(3),D=r(F),M=a(16),A=r(M),V=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state["upload-limit"])?0:this.props.state["upload-limit"],a=_.isUndefined(this.props.state["file-type"])?0:this.props.state["file-type"];switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(j.default,i({},this.props,{settings:this.props.state,defaultValue:"single",label:(0,p.translate)("Type"),property:"file-type",clearOptions:"true"}),c.default.createElement("span",{value:"single"},(0,p.translate)("Single")),c.default.createElement("span",{value:"multiple"},(0,p.translate)("Multiple"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(y.default,this.props),"multiple"===a&&c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit number of files")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the maximum number of files that can be uploaded using this field.")),c.default.createElement(C.default,i({},this.props,{settings:this.props.state,property:"file-limit",defaultValue:"unlimited"}),c.default.createElement(T.default,{value:"unlimited",label:(0,p.translate)("Unlimited")}),c.default.createElement(D.default,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{type:"number",placeholder:"5",defaultValue:"5",property:"file-limit-input",inputClass:"sui-input-sm",label:(0,p.translate)("File upload limit"),settings:this.props.state}))))),c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},"multiple"===a?(0,p.translate)("Filesize limit per file"):(0,p.translate)("Filesize limit")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("We've detected your server will allow uploads up to %(maxUpload)sMB in size currently. You can set a lower limit than this using the input below, however if you want uploads of more than %(maxUpload)sMB you'll need to adjust this in your server PHP.ini settings.",{args:{maxUpload:forminatorData.maxUpload}})),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Upload limit per file")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,defaultValue:"8",property:"upload-limit",fieldClass:"sui-input-sm"+(parseInt(t)>parseInt(forminatorData.maxUpload)?" sui-form-field-error":"")})),c.default.createElement(x.default,i({},this.props,{property:"filesize",settings:this.props.state,defaultValue:"MB",elementClass:"sui-select-inline",simple:!0}),c.default.createElement("option",{value:"MB"},(0,p.translate)("MB")),c.default.createElement("option",{value:"KB"},(0,p.translate)("KB")),c.default.createElement("option",{value:"B"},(0,p.translate)("B")))),parseInt(t)>parseInt(forminatorData.maxUpload)&&c.default.createElement("div",{className:"sui-notice sui-notice-error",style:{marginTop:"-20px"}},c.default.createElement("p",null,(0,p.translate)("The file size you have entered exceeds what your current hosting settings are capped to. You need to increase your max filesize limit at the server level first."))))),"multiple"===a&&c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Upload method")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether you want to use AJAX to upload individual files as they are selected or use the traditional method of uploading all files together on form submission. We recommend using the AJAX method to avoid server timeouts.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"upload-method",defaultValue:"ajax"}),c.default.createElement("div",{value:"ajax"},(0,p.translate)("AJAX")),c.default.createElement("div",{value:"submission"},(0,p.translate)("On form submission"))))),c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Show files in media library")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether you want to show the files uploaded by your visitors using this field in your media library.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"use_library",defaultValue:""}),c.default.createElement("div",{value:"true"},(0,p.translate)("Enable")),c.default.createElement("div",{value:""},(0,p.translate)("Disable"))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=V},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(10),d=r(f),h=a(4),m=r(h),b=a(42),y=(r(b),a(334)),v=r(y),g=a(266),E=r(g),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty("custom-files",e)}},{key:"render",value:function(){var e=!_.isUndefined(this.props.state["custom-files"])&&this.props.state["custom-files"],t=[],a=[],r=[],n=[],l=[],o=[],s=[],u=[];return _.isUndefined(forminatorData.fileExts.audio)||forminatorData.fileExts.audio.map(function(e){t.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.document)||forminatorData.fileExts.document.map(function(e){a.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.image)||forminatorData.fileExts.image.map(function(e){r.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.video)||forminatorData.fileExts.video.map(function(e){n.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.archive)||forminatorData.fileExts.archive.map(function(e){l.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.text)||forminatorData.fileExts.text.map(function(e){o.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.spreadsheet)||forminatorData.fileExts.spreadsheet.map(function(e){s.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.interactive)||forminatorData.fileExts.interactive.map(function(e){u.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Allowed filetypes")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, we will use WordPress' {{a}}default allowed mime types{{/a}}. However, you can restrict your users to upload some specific types of files only.",{components:{a:c.default.createElement("a",{href:"https://developer.wordpress.org/reference/functions/get_allowed_mime_types",target:"_blank"})}})),c.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-tabs-menu"},c.default.createElement("div",{className:"sui-tab-item "+(e?"":"active"),onClick:this.toggleValue.bind(this,!1)},(0,p.translate)("Default")),c.default.createElement("div",{className:"sui-tab-item "+(e?"active":""),onClick:this.toggleValue.bind(this,!0)},(0,p.translate)("Specific filetypes"))),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-boxed "+(e?"active":"")},c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Images"),settings:this.props.state,fileType:"all-image",property:"filetypes",checkboxes:r}))),c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Documents"),settings:this.props.state,fileType:"all-document",property:"filetypes",checkboxes:a}))),c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Audio"),settings:this.props.state,fileType:"all-audio",property:"filetypes",checkboxes:t}))),c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Video"),settings:this.props.state,fileType:"all-video",property:"filetypes",checkboxes:n})))),c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Archive"),settings:this.props.state,fileType:"all-archive",property:"filetypes",checkboxes:l}))),c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Text"),settings:this.props.state,fileType:"all-text",property:"filetypes",checkboxes:o}))),c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Spreadsheet"),settings:this.props.state,fileType:"all-spreadsheet",property:"filetypes",checkboxes:s}))),c.default.createElement(m.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Interactive"),settings:this.props.state,fileType:"all-interactive",property:"filetypes",checkboxes:u})))),c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"12"},c.default.createElement(E.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Additional filetypes"),placeholder:(0,p.translate)("E.g. .ai, .sketch, .studio"),property:"additional-type",description:(0,p.translate)("Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above.")})),c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,p.translate)("Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider."))))))))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.updateCheckboxItem=a.updateCheckboxItem.bind(a),a.onSelectAllCheckboxes=a.onSelectAllCheckboxes.bind(a),a}return l(t,e),o(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"onSelectAllCheckboxes",value:function(e,t,a){var r=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];a.map(function(a){t?(r=r.concat(e),r.indexOf(a.value)<0&&(r=r.concat(a.value))):(r=r.filter(function(t){return t!==e}),r.indexOf(a.value)>=0&&(r=r.filter(function(e){return e!==a.value})))}),this.updateValue(r)}},{key:"updateCheckboxItem",value:function(e,t,a){var r=this,n=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];if(t?n.indexOf(e)<0&&(n=n.concat(e)):!t&&n.indexOf(e)>=0&&(n=n.filter(function(t){return t!==e})),!_.isUndefined(this.props.fileType)){var l=a.filter(function(e){return n.includes(e.value)});n=l.length===a.length?n.concat(this.props.fileType):n.filter(function(e){return e!==r.props.fileType})}this.updateValue(n)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a=this.props.checkboxes;return s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label),s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property+"-"+this.props.fileType,className:"sui-checkbox sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+this.props.property+"-"+this.props.fileType,value:this.props.fileType,checked:t.indexOf(this.props.fileType)>=0?"checked":"",onChange:function(t){e.onSelectAllCheckboxes(e.props.fileType,t.target.checked,a)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,(0,u.translate)("All"))),a.map(function(r,n){return s.default.createElement("label",{key:n,htmlFor:"forminator-field-"+e.props.property+"-"+r.value,className:"sui-checkbox "+r.itemClass},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+e.props.property+"-"+r.value,value:r.value,checked:t.indexOf(r.value)>=0?"checked":"",onChange:function(t){e.updateCheckboxItem(r.value,t.target.checked,a)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,r.label))}))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(10),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(34),O=r(w),P=a(184),x=r(P),k=a(53),j=r(k),N=a(97),C=(r(N),function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement("div",null,c.default.createElement(O.default,this.props),c.default.createElement(x.default,this.props),c.default.createElement(j.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component));t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(185),y=r(b),v=a(34),g=r(v),E=a(10),w=r(E),O=a(4),P=r(O),x=a(2),k=r(x),j=a(176),N=r(j),C=a(18),S=r(C),T=a(16),F=r(T),D=a(264),M=r(D),A=a(53),V=r(A),R=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,i({},this.props,{isRadio:"true"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(F.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Layout")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we stack the options vertically. However, you can change the options layout below.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,property:"layout",defaultValue:"vertical",noWrapper:!0}),c.default.createElement("div",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("div",{value:"horizontal"},(0,p.translate)("Horizontal")))),t&&c.default.createElement(M.default,this.props),c.default.createElement(V.default,this.props));case"calculations":return c.default.createElement(N.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(23),d=r(f),h=a(24),m=r(h),b=a(10),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(338),P=r(O),x=a(12),k=r(x),j=a(16),N=r(j),C=a(42),S=r(C),T=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.hidden;_.isUndefined(this.props.state.separators)||this.props.state.separators;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(N.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Field Type")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, the calculation field is read-only. You can also hide the field if you don't want to show the calculated result on the form.")),c.default.createElement(S.default,i({},this.props,{property:"read-only",settings:this.props.state,label:(0,p.translate)("Read-only"),disabled:"true",defaultValue:"true",itemClass:"sui-checkbox-sm sui-checkbox-stacked"})),c.default.createElement(S.default,i({},this.props,{property:"hidden",settings:this.props.state,label:(0,p.translate)("Hidden"),itemClass:"sui-checkbox-sm sui-checkbox-stacked"})))),c.default.createElement(N.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Formatting")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},(0,p.translate)("Choose how do you want to format the value of this field.")),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"prefix",label:(0,p.translate)("Prefix")}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. Kg"),property:"suffix",label:(0,p.translate)("Suffix")}))))),c.default.createElement(N.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Decimal Places")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the decimal places to round off the calculated result.")),c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",elementClass:"sui-select-inline",simple:!0}),c.default.createElement("option",{value:"0"},"0"),c.default.createElement("option",{value:"1"},"1"),c.default.createElement("option",{value:"2"},"2"),c.default.createElement("option",{value:"3"},"3"),c.default.createElement("option",{value:"4"},"4")),c.default.createElement("span",{className:"sui-field-suffix",style:{marginLeft:"0"}},(0,p.translate)("decimals")))));case"calculations":return c.default.createElement(P.default,i({property:"formula",settings:this.props.state},this.props));case"visibility":return c.default.createElement(c.default.Fragment,null,t&&c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,p.translate)("You can't set visibility conditions for a hidden field. Uncheck the Hidden option in the settings tab and come back here to define visibility rules."))),!t&&c.default.createElement(d.default,this.props));case"styling":return c.default.createElement(m.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=T},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertChar=a.insertChar.bind(a),a.deleteChar=a.deleteChar.bind(a),a.insert=a.insert.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"updateValue",value:function(e){this.validateFormula(e),"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"insert",value:function(e,t){e.preventDefault();var a=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],r=this.$el.find("textarea"),n=r.prop("selectionStart"),l=a.slice(0,n)+t+a.slice(n);this.updateValue(l),r.val(l),r.focus(),r.prop("selectionStart",n+t.length),r.prop("selectionEnd",n+t.length)}},{key:"deleteChar",value:function(e){if(8===e.which){var t=this.$el.find("textarea"),a=t.prop("selectionStart"),r=t.val(),n=a-1;if("}"===r.substr(n,1)&&-1!==n){e.preventDefault();for(var l=a,o=a;"{"!==r.substr(l-1,1)&&l-1>=0;)l-=1;var i=r.slice(0,l-1)+r.slice(o,r.length);this.updateValue(i),t.val(i),t.prop("selectionStart",l-1),t.prop("selectionEnd",l-1)}}}},{key:"insertChar",value:function(e){var t=[32,34,40,41,42,43,45,47,46,48,49,50,51,52,53,54,55,56,57];_.contains(t,e.charCode)||e.preventDefault()}},{key:"getDisabledFields",value:function(){var e=["number","radio","select","checkbox","calculation","currency"],t=[];return _.each(forminatorData.fields,function(a){_.contains(e,a.type)||t.push(a.type)}),t}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"maybeReplaceFields",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=void 0,r=_.map(forminatorData.fields,function(e){return e.type}),n=r.join("|"),l="("+n+")-\\d+",o=new RegExp("\\{("+l+")(\\-[A-Za-z-_]+)?\\}","g"),i=e;a=o.exec(e);){var s=a[0];if(!_.isUndefined(s)){if(!(0,u.fieldExist)(a[1],this.props.wrappers))return{error:(0,u.translate)("%s does not exist in your form. Please insert a valid field from the merged tags option.",{args:[s]}),result:!1};if(t){var c=(0,u.getFieldLabel)(a[1],this.props.wrappers);i=i.replace(s,'<span className="forminator-preview-label">'+c+"</span>")}else i=i.replace(s,1)}}return i}},{key:"previewFormula",value:function(e){return this.maybeReplaceFields(e,!0)}},{key:"validateFormula",value:function(e){var t=this.maybeReplaceFields(e,!1);if(!_.isUndefined(t.error))return this.props.modal.isValid=!1,this.props.modal.validationError=(0,u.translate)("Calculation formula is required!"),t;var a=window.forminatorCalculator(t),r={},n=void 0;try{if(n=a.calculate(),!isFinite(n))return r.error=(0,u.translate)("Infinity calculation result."),r.result=!1,this.props.modal.isValid=!1,this.props.modal.validationError=r.error,r;r.result=Number(n.toFixed(2)),this.props.modal.isValid=!0}catch(e){r.error=e,r.result=!1,this.props.modal.isValid=!1,this.props.modal.validationError=r.error}return r}},{key:"render",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.element_id!==e.props.state.element_id)return t.hasCalcs||"calculation"===t.field_type?s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("button",{onClick:function(a){return e.insert(a,"{"+t.element_id+"}")}},t.label)):void 0}),r=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],n=this.validateFormula(r),l=this.previewFormula(r),o=!1===n.result?" fui-error":"";return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Calculation Formula")),s.default.createElement("div",{className:"fui-calculations"+o,ref:function(t){return e.el=t}},s.default.createElement("div",{className:"fui-calcs-bar"},s.default.createElement("div",{className:"sui-dropdown sui-dropdown-right"},s.default.createElement("button",{className:"sui-button-icon sui-button-blue sui-tooltip sui-tooltip-top-left sui-dropdown-anchor","data-tooltip":(0,u.translate)("Add Form Fields")},s.default.createElement("i",{className:"sui-icon-layout","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open list of fields"))),s.default.createElement("ul",null,a)),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"+")}},s.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Sum"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"-")}},s.default.createElement("b",{"aria-hidden":"true"},"-"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Minus"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"*")}},s.default.createElement("b",{"aria-hidden":"true"},"*"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Multiply"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"/")}},s.default.createElement("b",{"aria-hidden":"true"},"/"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Divide"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"(")}},s.default.createElement("b",{"aria-hidden":"true"},"("),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open parenthesis"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,")")}},s.default.createElement("b",{"aria-hidden":"true"},")"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Close parenthesis")))),s.default.createElement("div",{className:"fui-calcs-editor"},s.default.createElement("textarea",{autoFocus:!0,onKeyPress:function(t){return e.insertChar(t)},onKeyDown:function(t){return e.deleteChar(t)},defaultValue:r,onChange:function(t){e.updateValue(t.target.value)}}))),!1===n.result&&s.default.createElement("span",{className:"sui-error-message"},n.error),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("You can preview your form and check if the formula is generating expected results."))),s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Formula Preview")),s.default.createElement("div",{className:"fui-calculations-preview",dangerouslySetInnerHTML:{__html:l}})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(3),d=r(f),h=a(2),m=r(h),b=a(18),y=r(b),v=a(5),g=r(v),E=a(12),w=r(E),O=a(21),P=r(O),x=a(16),k=r(x),j=a(340),N=r(j),C=a(10),S=r(C),T=a(4),F=r(T),D=a(14),M=r(D),A=a(23),V=r(A),R=a(43),U=r(R),I=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return o(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state[e]=t}},{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","date","time","gdprcheckbox"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getDisabledFields",value:function(){var e=["calculation","currency"],t=[];return _.each(forminatorData.fields,function(a){_.contains(e,a.type)||t.push(a.type)}),t}},{key:"getEmailFields",value:function(){var e=[];return(0,p.getFieldsByType)("email",this.props.wrappers).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.field_label})}),e}},{key:"getFieldsByType",value:function(e){var t=[];return(0,p.getFieldsByType)(e,this.props.wrappers).map(function(a){var r=a.field_label;"address"===e&&(r=a.element_id),t.push({value:a.element_id,label:r})}),t}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,p.getFields)(this.props.wrappers,e)}},{key:"getZipFields",value:function(){return(0,p.getFields)(this.props.wrappers,["calculation","currency","paypal","stripe","postdata","pagination","upload","time","section","captcha","hidden"])}},{key:"render",value:function(){var e=this.props.type,t=(0,p.translate)("In %s",{args:[this.props.state.currency]}),a=this.getFields(),r=this.getZipFields();switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"12"},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),defaulValue:(0,p.translate)("Credit / Debit Card"),property:"field_label"})))),c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"12"},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"language",label:(0,p.translate)("Language"),description:(0,p.translate)("Choose your preferred language for the Stripe field. This will affect the placeholders language, and the card validation errors returned by the Stripe.")}),c.default.createElement("option",{value:"auto"},(0,p.translate)("Auto")),c.default.createElement("option",{value:"en"},(0,p.translate)("English (en)")),c.default.createElement("option",{value:"zh"},(0,p.translate)("Simplified Chinese (zh)")),c.default.createElement("option",{value:"da"},(0,p.translate)("Danish (da)")),c.default.createElement("option",{value:"nl"},(0,p.translate)("Dutch (nl)")),c.default.createElement("option",{value:"fi"},(0,p.translate)("Finnish (fi)")),c.default.createElement("option",{value:"fr"},(0,p.translate)("French (fr)")),c.default.createElement("option",{value:"de"},(0,p.translate)("German (de)")),c.default.createElement("option",{value:"it"},(0,p.translate)("Italian (it)")),c.default.createElement("option",{value:"ja"},(0,p.translate)("Japanese (ja)")),c.default.createElement("option",{value:"no"},(0,p.translate)("Norwegian (no)")),c.default.createElement("option",{value:"es"},(0,p.translate)("Spanish (es)")),c.default.createElement("option",{value:"sv"},(0,p.translate)("Swedish (sv)"))))),c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,property:"card_icon",defaultValue:"true",label:(0,p.translate)("Card icon"),description:(0,p.translate)("Choose whether you want to show the card icon on the Stripe field.")}),c.default.createElement("div",{value:"true"},(0,p.translate)("Show")),c.default.createElement("div",{value:"false"},(0,p.translate)("Hide"))))),c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{property:"verify_zip",settings:this.props.state,default:"false",label:(0,p.translate)("Postal code"),description:(0,p.translate)("Choose whether you want to collect the postal code on the Stripe field.")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Prefill (optional)")),c.default.createElement(P.default,i({},this.props,{settings:this.props.state,property:"zip_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(r,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)}))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("If you are already collecting ZIP code on your form, you can pre-fill it on the Stripe field."))),c.default.createElement(M.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")}))))));case"settings":return c.default.createElement(c.default.Fragment,null,!forminatorData.hasStripe&&c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("You have not connected your Stripe account with Forminator. Connect your Stripe account {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=payments",target:"_blank"})}}))),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,defaultValue:"test",label:(0,p.translate)("Mode of payment"),property:"mode",clearOptions:"true",description:(0,p.translate)("We recommend using test mode to ensure the payments are working as expected and when you are ready to start collecting live payments, switch to Live payments mode.")}),c.default.createElement("span",{value:"test"},(0,p.translate)("Test")),c.default.createElement("span",{value:"live"},(0,p.translate)("Live"))),c.default.createElement(P.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Charge currency"),property:"currency",description:(0,p.translate)("It's recommended to charge in your customers' currency to drive more sales and avoid foreign exchange fee to your customers. Read more about Stripe's currency conversions {{link}}here{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://stripe.com/docs/currencies/conversions",target:"_blank"})}}),fieldSize:"240"}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},t)})),c.default.createElement(g.default,i({},this.props,{property:"amount_type",settings:this.props.state,default:"fixed",label:(0,p.translate)("Payment amount")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fixed amount")),c.default.createElement("div",{style:{maxWidth:"100px",display:"inline-block"}},c.default.createElement(m.default,i({},this.props,{type:"number",property:"amount",settings:this.props.state,placeholder:(0,p.translate)("E.g. 20.00"),simple:!0}))),c.default.createElement("span",{className:"sui-field-suffix"},this.props.state.currency),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Minimum amount required to process Stripe payments is equivalent to {{strong}}0.5 USD{{/strong}}.",{components:{strong:c.default.createElement("strong",null)}})))),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Variable amount"),c.default.createElement("span",{className:"sui-label-note"},t)),c.default.createElement(P.default,i({},this.props,{settings:this.props.state,property:"variable",note:t,noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(a,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)}))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("A currency field can be used to take user-defined payments such as donations and calculation field can be used to charge a calculated value based on a formula.")))));case"advanced-settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Payment Receipt")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose whether you want Stripe to email a receipt to your customers on successful payment. Note that Stripe sends the email receipt only for live payments. {{link}}Customize email template{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://dashboard.stripe.com/account/branding",target:"_blank"})}})),c.default.createElement(g.default,i({},this.props,{property:"receipt",settings:this.props.state,defaultValue:"true"}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(P.default,i({},this.props,{property:"customer_email",settings:this.props.state,label:(0,p.translate)("Email address"),defaultValue:"",placeholder:(0,p.translate)("E.g. john@doe.com")}),c.default.createElement("option",{selected:!0,value:""},(0,p.translate)("Select an email field")),_.map(this.getEmailFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label," ",e.value)}))),c.default.createElement(M.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Payment Details (optional)")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can add a statement decipher and a description to help you and your customers recognise the transactions made on this form.")),c.default.createElement(m.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Statement decipher"),type:"text",maxLength:"22",placeholder:(0,p.translate)("E.g. Company Name"),property:"company_name",description:(0,p.translate)("This is the business name your customers will see on their card statement."),note:(0,p.translate)("Up to 22 characters only")})),c.default.createElement(U.default,i({},this.props,{settings:this.props.state,property:"product_description",placeholder:(0,p.translate)("Enter your payment description here"),description:(0,p.translate)("This appears on your Stripe account and on the payment receipt sent to your customers."),label:(0,p.translate)("Payment description"),updateProperty:this.updateProperty}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)}))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Card Validation")),c.default.createElement("div",{className:"sui-notice sui-notice-info",style:{marginTop:"0px"}},c.default.createElement("p",null,(0,p.translate)("Note: Stripe field automatically validates the card as the user fills the card details regardless of the validation behaviour set on the Behaviours tab.")))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Billing Details")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("If you are collecting billing details on your forms, you can send that data to Stripe. The billing details will appear on your Stripe dashboard for each payment.")),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"billing",default:"false"}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(P.default,i({},this.props,{settings:this.props.state,property:"billing_name",label:(0,p.translate)("Customer name (optional)")}),c.default.createElement("option",{value:""},(0,p.translate)("Select a name field")),_.map(this.getFieldsByType("name"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})),c.default.createElement(P.default,i({},this.props,{settings:this.props.state,property:"billing_email",label:(0,p.translate)("Customer email address (optional)")}),c.default.createElement("option",{value:""},(0,p.translate)("Select an name
|
1 |
+
!function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=308)}([function(e,t){e.exports=React},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function o(){return"wrapper-"+n()+"-"+n()}function l(e,t){var a=void 0;return t.map(function(t){t.wrapper_id===e&&(a=t)}),a}function i(e,t){return"basic"!==u(e)?t:""}function s(e){return"basic"===u(e)?"basic-":""}function u(e){return void 0!==e.formDesign?e.formDesign:void 0!==e.settings&&void 0!==e.settings["forminator-poll-design"]?e.settings["forminator-poll-design"]:void 0!==e.quizDesign?e.quizDesign:""}function c(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function p(e,t){var a=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,n=r.split("-");"page-break"===t.type?a.push(parseInt(n[2])):a.push(parseInt(n[1]))}})});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function f(e,t){var a=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");a.push(parseInt(r[1]))});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function d(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function h(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9\/\- ]/g,"").trim(),e=e.replace(/\s+|\//g,"-")}function m(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0}function b(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function y(e,t){var a=[];return b(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),a.push({value:t.element_id,label:r,element_id:t.element_id})}),a}function v(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function g(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function E(e,t,a,r){var n=p(e.type,r);return _.extend(e,{element_id:e.type+"-"+n,formID:t,cols:a})}function w(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=p(r.type,t);return _.extend({element_id:r.type+"-"+n,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:a},JSON.parse(JSON.stringify(r.defaults)))}function O(e){return e.type}function P(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function x(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function j(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function k(){return Z.default.translate.apply(null,arguments)}function N(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[k("None")]:a[0].variants}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}function S(e,t,a){var r=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]);var n=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(n=!0),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=C(a)):a=e.field_label,"name"===e.type?r=r.concat(F(e,a)):"address"===e.type?r=r.concat(U(e,a)):"time"===e.type?r=r.concat(I(e,a)):"date"===e.type&&"picker"!==e.field_type&&!1===n||r.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:R(e),hasOptions:V(e),hasCalcs:M(e),formula:A(e),isNumber:D(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(r=r.concat(T(e,a)))}})}),r}function T(e,t){var a=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+k("Day"):t+" - "+e.day_label;var n=void 0;n=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+k("Month"):t+" - "+e.month_label;var o=void 0;return o=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+k("Year"):t+" - "+e.year_label,"input"===e.field_type?a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:!1,hasOptions:!1,isNumber:!0}):a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:R(e),hasOptions:V(e),isNumber:D(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:R(e),hasOptions:V(e),isNumber:D(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:R(e),hasOptions:V(e),isNumber:D(e)}),a}function F(e,t){var a=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Mx.",value:"Mx"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):a.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:R(e),hasOptions:V(e),isNumber:D(e)}),a}function D(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function M(e){return"true"===e.calculations||!0===e.calculations}function A(e){return!!e.formula&&e.formula}function V(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function R(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function U(e,t){var a=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),a}function I(e,t){var a=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+k("Hour"):t+" - "+e.hh_label;var n=void 0;return n=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+k("Minute"):t+" - "+e.mm_label,a.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:n,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&a.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),a}function L(e){var t=[],a=forminatorData.fields.filter(function(t){return t.type===e});return a.length<1?[]:(a=a[0],_.isUndefined(a.autofill_settings)||(t=a.autofill_settings),t)}function B(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":if("checkbox"===t)return k("is having");if("checkbox"!==t)return k("is");case"is_not":if("checkbox"===t)return k("is not having");if("checkbox"!==t)return k("is not");case"day_is":return k("day is");case"day_is_not":return k("day is not");case"month_is_not":return k("month is not");case"month_is":return k("month is");case"is_before":return k("is before");case"is_after":return k("is after");case"is_before_n_or_more_days":return k("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return k("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return k("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return k("is after less than %s days from current date").replace("%s",r);case"is_great":return k("is greater than");case"is_less":return k("is less than");case"contains":return k("contains");case"starts":return k("starts with");case"ends":return k("ends with");case"is_correct":return k("is correct");case"is_incorrect":return k("is incorrect");case"is_final_result":return k("is final result");case"is_not_final_result":return k("is not final result");default:return"-"}}function q(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var a=t[1],r=a.split(".");if(r.length<2)return!1;for(var n=r.length,o=0;o<n;o++)if(!r[o].match(/^[a-z0-9-]+$/i))return!1;return!0}function W(){"object"===K(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function $(e){var t="none";return K(e["results-behav"])&&K(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function z(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),S(e,t)}function Y(e,t){t=_.defaults(t,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){var t=e.params.data.element,a=jQuery(t),r=jQuery(this);r.append(a),r.trigger("change.select2")}),jQuery(this).SUIselect2(t)})}function H(e){return"name"!==e.type||"true"!==e.multiple_name&&!0!==e.multiple_name?"address"===e.type?!!(e.street_address_required||e.address_line_required||e.address_city_required||e.address_state_required||e.address_zip_required||e.address_country_required):e.required:!!(e.prefix_required||e.fname_required||e.mname_required||e.lname_required)}function Q(e,t,a,r){var n=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0}function G(e){var t=0;return e.map(function(e){e.fields.map(function(e){var a=forminatorData.postCategories[e.post_type];void 0!==a&&a.map(function(a){var r=a.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0}function J(e,t){var a=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,n){t.result===a&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}Object.defineProperty(t,"__esModule",{value:!0});var K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.randNumber=n,t.generateWrapperId=o,t.getWrapper=l,t.getDefaultValue=i,t.getThemePrefix=s,t.countFieldsByType=c,t.getMaxIDByType=p,t.getMaxID=f,t.generateValue=d,t.formatValue=h,t.hasFieldType=m,t.getFieldsByType=b,t.mapFieldsByType=y,t.getFieldLabel=v,t.fieldExist=g,t.buildFieldObject=E,t.buildFieldObjectFromSlug=w,t.getFieldType=O,t.getForminatorField=P,t.insertInPosition=x,t.replaceInPosition=j,t.translate=k,t.getFontVariants=N,t.ucfirst=C,t.getFields=S,t.getDateFields=T,t.getNameFields=F,t.fieldHasNumber=D,t.fieldHasCalcs=M,t.fieldFormula=A,t.fieldHasOptions=V,t.getFieldValues=R,t.getAddressFields=U,t.getTimeFields=I,t.getFieldAutofillProviders=L,t.getRuleLabel=B,t.isEmailWp=q,t.suiDelegateEvents=W,t.getChartType=$,t.getCalculationFields=z,t.select2Tags=Y,t.isFieldRequired=H,t.hasFieldWithAttribute=Q,t.hasPostdataFieldWithMultiselect=G,t.getPersonalityQuestions=J;var X=a(44),Z=function(e){return e&&e.__esModule?e:{default:e}}(X)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),i(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"text":this.props.type,r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,i=_.isUndefined(this.props.inputClass)?"sui-form-control":"sui-form-control "+this.props.inputClass,s=_.isUndefined(this.props.inputId)?this.props.property:this.props.inputId,p=void 0;this.props.label&&(p=u.default.createElement("label",{htmlFor:"forminator-field-"+s,className:this.props.darkLabel?"sui-settings-label sui-dark":"sui-label"},this.props.label,this.props.isRequired&&u.default.createElement(u.default.Fragment,null," ",u.default.createElement("span",{className:"sui-error"},"*")),this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var f=u.default.createElement("input",l({type:a,placeholder:this.props.placeholder,value:t||"",id:"forminator-field-"+s,className:i},this.props.notWritable&&{readonly:""},this.props.minValue&&{min:this.props.minValue},this.props.maxValue&&{max:this.props.maxValue},this.props.maxLength&&{maxlength:this.props.maxLength},this.props.inputStyles&&{style:this.props.inputStyles},{disabled:!!this.props.disabled,onChange:function(t){e.updateValue(t.target.value)}})),d=u.default.createElement("div",{className:o+" "+n},p,this.props.canTrash?u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},f,u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-right","data-tooltip":(0,c.translate)("Delete")},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))):f,this.props.suffix&&u.default.createElement("span",{className:"sui-field-suffix"},this.props.suffix),this.props.isRequired&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},r),!_.isUndefined(this.props.isPositive)&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Please enter valid number.")),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.simple?f:d}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",null,e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=this.props.customClass?this.props.customClass:"";return s.default.createElement("div",{className:"sui-col-md-"+this.props.cols+" "+t},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"toggleValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"getDefaultValue",value:function(){var e=this.props.default?this.props.default:"";return _.isUndefined(this.props.settings[this.props.property])?e:this.props.settings[this.props.property]}},{key:"render",value:function(){var e=this,t=this.getDefaultValue(),a=s.default.Children.map(this.props.children,function(a){if(!a)return s.default.createElement(s.default.Fragment,null);var r=_.isUndefined(a.props.label)?a.props.children:a.props.label;return e.props.disabled?s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),style:{opacity:.5,cursor:"not-allowed"}},r):e.props.disabled?void 0:s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),onClick:e.toggleValue.bind(e,a.props.value)},r)}),r=_.isUndefined(this.props.divClass)?"sui-tabs-content":"sui-tabs-content "+this.props.divClass,n=s.default.Children.map(this.props.children,function(e){if(!e)return s.default.createElement(s.default.Fragment,null);var a=_.isUndefined(e.props.boxClass)?"":e.props.boxClass;return"Empty"!==e.type.name?s.default.createElement("div",{className:a+" sui-tab-content"+(e.props.value===t?" active":"")},e.props.value===t&&e):s.default.createElement(s.default.Fragment,null)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note)));var l="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(l=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var u=s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(u=s.default.createElement("div",{className:"sui-form-field"},l,o,i,s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.wpColorPicker({change:function(e,t){jQuery(this).val(t.color.toCSS()).trigger("change")},palettes:["#333333","#FFFFFF","#17A8E3","#E1F6FF","#666666","#AAAAAA","#E6E6E6"]});var e=this.$el,t=e.closest(".sui-colorpicker-wrap"),a=t.find(".sui-colorpicker-value span[role=button]"),r=t.find(".sui-colorpicker-value"),n=r.find("button"),o=e.closest(".wp-picker-container"),l=o.find(".wp-color-result"),i=l.find(".color-alpha"),s=o.find(".wp-picker-clear"),u=i;u=!0===e.data("alpha")?i:l,e.bind("change",function(){a.find("span").css({"background-color":u.css("background-color")}),r.find("input").val(e.val())}),t.find(".sui-button, span[role=button]").on("click",function(e){e.preventDefault(),e.stopPropagation(),l.click()}),n.on("click",function(e){e.preventDefault(),e.stopPropagation(),s.click(),r.find("input").val(""),a.find("span").css({"background-color":""})}),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||null===this.props.settings[this.props.property]?this.props.defaultValue:this.props.settings[this.props.property],a="";return this.props.label&&(a=s.default.createElement("label",{className:"sui-label",htmlFor:"forminator-color-"+this.props.property},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note))),s.default.createElement("div",{className:"sui-form-field"},a,s.default.createElement("div",{className:"sui-colorpicker-wrap"},s.default.createElement("div",{className:"sui-colorpicker sui-colorpicker-"+(this.props.isAlpha?"rgba":"hex"),"aria-hidden":"true"},s.default.createElement("div",{className:"sui-colorpicker-value"},s.default.createElement("span",{role:"button"},s.default.createElement("span",{style:{backgroundColor:t}})),s.default.createElement("input",{type:"text",defaultValue:t,readOnly:"readonly"}),s.default.createElement("button",null,s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}))),s.default.createElement("button",{className:"sui-button"},(0,u.translate)("Select"))),s.default.createElement("input",{ref:function(t){return e.el=t},defaultValue:t,id:"forminator-color-"+this.props.property,className:"sui-colorpicker-input","data-alpha":this.props.isAlpha?"true":"false"})),this.props.description&&""!==this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){e.exports=a(105)()},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(104),n=a(58),o=a(108);a.d(t,"Provider",function(){return r.b}),a.d(t,"createProvider",function(){return r.a}),a.d(t,"connectAdvanced",function(){return n.a}),a.d(t,"connect",function(){return o.a})},function(e,t,a){"use strict";function r(e){if("object"!==(void 0===e?"undefined":h(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function n(e,t,a){function o(){v===y&&(v=y.slice())}function l(){if(g)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return b}function i(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(g)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return o(),v.push(e),function(){if(t){if(g)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,o();var a=v.indexOf(e);v.splice(a,1)}}}function s(e){if(!r(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,b=m(b,e)}finally{g=!1}for(var t=y=v,a=0;a<t.length;a++){(0,t[a])()}return e}function u(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");m=e,s({type:d.REPLACE})}function c(){var e,t=i;return e={subscribe:function(e){function a(){e.next&&e.next(l())}if("object"!==(void 0===e?"undefined":h(e))||null===e)throw new TypeError("Expected the observer to be an object.");return a(),{unsubscribe:t(a)}}},e[f.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error("Expected the enhancer to be a function.");return a(n)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var m=e,b=t,y=[],v=y,g=!1;return s({type:d.INIT}),p={dispatch:s,subscribe:i,getState:l,replaceReducer:u},p[f.a]=c,p}function o(e,t){var a=t&&t.type;return"Given "+(a&&'action "'+String(a)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){Object.keys(e).forEach(function(t){var a=e[t];if(void 0===a(void 0,{type:d.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===a(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),a={},r=0;r<t.length;r++){var n=t[r];"function"==typeof e[n]&&(a[n]=e[n])}var i=Object.keys(a),s=void 0;try{l(a)}catch(e){s=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,n={},l=0;l<i.length;l++){var u=i[l],c=a[u],p=e[u],f=c(p,t);if(void 0===f){var d=o(u,t);throw new Error(d)}n[u]=f,r=r||f!==p}return r?n:e}}function s(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if("function"==typeof e)return s(e,t);if("object"!==(void 0===e?"undefined":h(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":h(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var a=Object.keys(e),r={},n=0;n<a.length;n++){var o=a[n],l=e[o];"function"==typeof l&&(r[o]=s(l,t))}return r}function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function p(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return function(){for(var a=arguments.length,r=Array(a),n=0;n<a;n++)r[n]=arguments[n];var o=e.apply(void 0,r),l=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:o.getState,dispatch:function(){return l.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return l=c.apply(void 0,s)(o.dispatch),m({},o,{dispatch:l})}}}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"createStore",function(){return n}),a.d(t,"combineReducers",function(){return i}),a.d(t,"bindActionCreators",function(){return u}),a.d(t,"applyMiddleware",function(){return p}),a.d(t,"compose",function(){return c}),a.d(t,"__DO_NOT_USE__ActionTypes",function(){return d});var f=a(111),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-row"+(_.isUndefined(this.props.class)?"":" "+this.props.class)},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e){return"[object Array]"===P.call(e)}function n(e){return"[object ArrayBuffer]"===P.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function i(e){return"string"==typeof e}function s(e){return"number"==typeof e}function u(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===P.call(e)}function f(e){return"[object File]"===P.call(e)}function d(e){return"[object Blob]"===P.call(e)}function h(e){return"[object Function]"===P.call(e)}function m(e){return c(e)&&h(e.pipe)}function b(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function g(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function E(){function e(e,a){"object"==typeof t[a]&&"object"==typeof e?t[a]=E(t[a],e):t[a]=e}for(var t={},a=0,r=arguments.length;a<r;a++)g(arguments[a],e);return t}function _(e,t,a){return g(t,function(t,r){e[r]=a&&"function"==typeof t?w(t,a):t}),e}var w=a(70),O=a(153),P=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:n,isBuffer:O,isFormData:o,isArrayBufferView:l,isString:i,isNumber:s,isObject:c,isUndefined:u,isDate:p,isFile:f,isBlob:d,isFunction:h,isStream:m,isURLSearchParams:b,isStandardBrowserEnv:v,forEach:g,merge:E,extend:_,trim:y}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=_.isUndefined(this.props.elementClass)?"":this.props.elementClass,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o="";this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,id:"forminator-field-"+this.props.property+"-label",className:"sui-label"},this.props.label," ",this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l=s.default.createElement("select",{defaultValue:t,id:"forminator-field-"+n,className:r,"aria-labelledby":"forminator-field-"+n+"-label",ref:function(t){return e.el=t}},this.props.children),i=l;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-sm"},l):""!==this.props.fieldSize&&(i=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},l));var u=i;return this.props.simple||(u=s.default.createElement("div",{className:a},o,i,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={active:a.props.default?a.props.default:""},a}return o(t,e),l(t,[{key:"toggleValue",value:function(e){this.setState({active:e})}},{key:"render",value:function(){var e=this,t=(this.props.default&&this.props.default,this.props.type?this.props.type:"side-tabs"),a=this.props.extraClass?this.props.extraClass:"",r=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t))return s.default.createElement("div",{className:"forminator-toggle sui-tab-item"+(t.props.value===e.state.active?" active":""),onClick:e.toggleValue.bind(e,t.props.value)},t.props.label," ",t.props.required&&s.default.createElement("span",{className:"sui-error"},"*"))}),n=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t)){var a=_.isUndefined(t.props.boxClass)?"sui-tab-content":t.props.boxClass;return s.default.createElement("div",{className:a+(t.props.value===e.state.active?" active":"")},t.props.value===e.state.active&&t)}});return s.default.createElement("div",{className:"sui-"+t+" "+a},s.default.createElement("div",{className:"sui-tabs-menu"},r),s.default.createElement("div",{className:"sui-tabs-content"},n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0);!function(e){e&&e.__esModule}(n)},function(e,t,a){"use strict";var r=function(e,t,a,r,n,o,l,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[a,r,n,o,l,i],c=0;s=new Error(t.replace(/%s/g,function(){return u[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t="";this.props.label&&""!==this.props.label&&(t=s.default.createElement("span",{className:"sui-settings-label"},this.props.label));var a="";this.props.description&&""!==this.props.description&&(a=s.default.createElement("span",{className:"sui-description"},this.props.description));var r="";return(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(r=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a)),s.default.createElement("div",{className:"sui-box-settings-row"},r,s.default.createElement("div",{className:"sui-box-settings-col-2"},e))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"updateValue",value:function(e){if("function"==typeof this.props.updateProperty){if(this.props.updateProperty(this.props.property,e),"true"===this.props.clearOptions&&"single"===e){var t=[];_.each(this.props.state.options,function(e){e.default=!1,t.push(e)}),this.props.updateProperty("options",t)}}else this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=u.default.Children.map(this.props.children,function(a){return u.default.createElement("button",l({id:"tab-option-"+a.props.value,role:"tab",className:"forminator-toggle sui-tab-item "+(a.props.value===t?"active":""),"aria-selected":a.props.value===t?"true":"false"},a.props.value!==t&&{tabIndex:"-1"},{onClick:e.updateValue.bind(e,a.props.value)}),a.props.children)}),r="";this.props.label&&""!==this.props.label&&(r=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var n="";this.props.description&&""!==this.props.description&&(n=u.default.createElement("span",{className:"sui-description"},this.props.description));var o="";!this.props.label&&this.props.settingsLabel&&(o=u.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=u.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var s=u.default.createElement("div",{className:"sui-side-tabs",style:this.props.description&&{marginBottom:"5px"}},u.default.createElement("div",{className:"sui-tabs-menu",role:"tablist"},a)),c=u.default.createElement(u.default.Fragment,null,r,s);return this.props.noWrapper||(c=u.default.createElement("div",{className:"sui-form-field"},r,o,i,s,n)),c}}]),t}(s.Component);t.default=c},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(127);a.d(t,"BrowserRouter",function(){return r.a});var n=a(133);a.d(t,"HashRouter",function(){return n.a});var o=a(64);a.d(t,"Link",function(){return o.a});var l=a(134);a.d(t,"MemoryRouter",function(){return l.a});var i=a(136);a.d(t,"NavLink",function(){return i.a});var s=a(138);a.d(t,"Prompt",function(){return s.a});var u=a(140);a.d(t,"Redirect",function(){return u.a});var c=a(65);a.d(t,"Route",function(){return c.a});var p=a(37);a.d(t,"Router",function(){return p.a});var f=a(142);a.d(t,"StaticRouter",function(){return f.a});var d=a(144);a.d(t,"Switch",function(){return d.a});var h=a(146);a.d(t,"generatePath",function(){return h.a});var m=a(147);a.d(t,"matchPath",function(){return m.a});var b=a(148);a.d(t,"withRouter",function(){return b.a})},function(e,t,a){"use strict";var r=a(128);a.d(t,"a",function(){return r.a});var n=a(131);a.d(t,"b",function(){return n.a});var o=a(132);a.d(t,"d",function(){return o.a});var l=a(31);a.d(t,"c",function(){return l.a}),a.d(t,"f",function(){return l.b});var i=a(27);a.d(t,"e",function(){return i.b})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=Object.assign({dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(e):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(e):console.log("select2 not intiated"),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue),this.props.triggerChange&&this.$el.trigger("change")}},{key:"updateValue",value:function(e){var t=jQuery(e.target).val();"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t),this.afterSave(t)}},{key:"afterSave",value:function(){return!1}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=void 0;this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var n=this.props.multiple,o=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children),l=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?l=s.default.createElement("div",{className:"sui-form-field sui-input-md"},o):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?l=s.default.createElement("div",{className:"sui-form-field sui-input-sm"},o):""===this.props.fieldSize&&(l=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},o)),this.props.noWrapper?o:s.default.createElement("div",{className:a},r,l,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),t}(i.Component);t.default=u},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(414),d=r(f),h=a(18),m=r(h),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers,null,{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),a.fields=_.filter(a.fields,function(e){return"stripe"!==e.field_type&&"paypal"!==e.field_type&&"page-break"!==e.field_type&&"pagination"!==e.field_type&&"section"!==e.field_type&&"html"!==e.field_type}),"address"!==a.props.state.type&&"date"!==a.props.state.type&&"time"!==a.props.state.type||(a.fields=_.filter(a.fields,function(e){return!e.element_id.startsWith(a.props.state.element_id)})),a.validateConditions(),a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.props.updateProperty("conditions",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.conditions,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateField",value:function(e,t){var a=this.getPropState();a[e].element_id=t,a[e].rule="is",a[e].value="",this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"updateInputValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"removeRule",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addRule",value:function(){var e=this.getPropState(),t=_.isUndefined(this.fields[0])?"":this.fields[0].element_id;e.push({element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.conditions,"element_id"),t=_.pluck(this.fields,"element_id"),a=_.difference(e,t);_.isUndefined(a)||this.removeCondition(a)}},{key:"removeCondition",value:function(e){var t=this.getPropState(),a=_.filter(t,function(t){return!_.contains(e,t.element_id)});this.updateState(a)}},{key:"render",value:function(){var e=this,t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,property:"condition_action",defaultValue:"show",noWrapper:!0}),c.default.createElement("span",{value:"show"},(0,p.translate)("Show")),c.default.createElement("span",{value:"hide"},(0,p.translate)("Hide"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("this field if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,property:"condition_rule",defaultValue:"all",noWrapper:!0}),c.default.createElement("span",{value:"all"},(0,p.translate)("All")),c.default.createElement("span",{value:"any"},(0,p.translate)("Any"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("of the following rules match:")))),a=c.default.createElement("div",{className:"fui-visibility-group"},this.props.wrappers.length<2&&this.fields.length<2&&_.isEmpty(this.fields)&&c.default.createElement("div",{className:"sui-notice sui-notice-error fui-visibility-notice"},c.default.createElement("p",null,(0,p.translate)("You need more than one field to configure visibility conditions. Add more fields!"))),(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-empty-message"},(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("button",{accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Rule")),c.default.createElement("p",null,(0,p.translate)("By default field will always be visible. If you want to hide or show fields based on user input you can add conditions.")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))));return(_.isUndefined(this.props.state.conditions)||0===this.props.state.conditions.length)&&c.default.createElement(c.default.Fragment,null,a),!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},(this.props.wrappers.length>1||this.fields.length>0)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.conditions,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateField:e.updateField,updateRule:e.updateRule,updateValue:e.updateValue,updateInputValue:e.updateInputValue,fields:e.fields}))}))),c.default.createElement("button",{className:"sui-button sui-button-blue",accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Rule"))):c.default.createElement(c.default.Fragment,null,a)}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state["custom-class"])?"":this.props.state["custom-class"];return s.default.createElement("div",null,s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-1"},s.default.createElement("span",{className:"sui-settings-label"},(0,u.translate)("Additional CSS Classes")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Add classes that will be output on this field's container to aid your theme's default styling."))),s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("E.g. form-field"),className:"sui-form-control",value:t,onChange:function(t){e.props.updateProperty("custom-class",t.target.value)}}),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("These will be output as you see them here.")))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,r=!_.isUndefined(this.props.disabled)&&this.props.disabled,n=t&&!r,o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",value:"true",id:"forminator-field-"+this.props.property,className:a,disabled:r?"disabled":"",checked:n?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&s.default.createElement(s.default.Fragment,null,s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label),s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle-label"},this.props.label))),l="";return this.props.children&&(_.isUndefined(this.props.settings[this.props.property])||this.props.settings[this.props.property])&&(l=s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{tabindex:"0",class:"sui-toggle-content sui-border-frame","aria-label":this.props.label},this.props.children))),this.props.unWrap?s.default.createElement(s.default.Fragment,null,o,l,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)):this.props.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},o,l,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"e",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"d",function(){return s}),a.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},l=function(e,t){return o(e,t)?e.substr(t.length):e},i=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},s=function(e){var t=e||"/",a="",r="",n=t.indexOf("#");-1!==n&&(r=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(a=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===a?"":a,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,a=e.search,r=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),r&&"#"!==r&&(n+="#"===r.charAt(0)?r:"#"+r),n}},,function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.updateEditor=a.updateEditor.bind(a),a.toggleOptions=a.toggleOptions.bind(a),a.state={editorOptionsOpen:!1},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),setTimeout(function(){e.initEditor()},50)}},{key:"initEditor",value:function(){var e=this;if(_.isUndefined(wp.editor)||"undefined"==typeof tinyMCE)return void setTimeout(function(){e.initEditor()},50);var t={};_.isUndefined(this.props.allowButtonOnclick)||(t.extended_valid_elements="button[onclick|accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|style|tabindex|title|type|value]"),_.isUndefined(this.props.cutomTinymce)||(t.toolbar1=this.props.cutomTinymce),_.isEmpty(t)&&(t=!0),wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:t,quicktags:!0}),this.bindEvents()}},{key:"bindEvents",value:function(){var e=this;if(this.editor=tinyMCE.get("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),null===this.editor)return void setTimeout(function(){e.bindEvents()},50);this.editor.on("keyup",this.updateEditor),this.editor.on("change",this.updateEditor)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateEditor),wp.editor.remove("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),this.$el.unbind().removeData()}},{key:"updateEditor",value:function(){var e=this.editor.getContent();this.updateValue(e)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"toggleOptions",value:function(){this.state.editorOptionsOpen?this.setState({editorOptionsOpen:!1}):this.setState({editorOptionsOpen:!0})}},{key:"insertContent",value:function(e){this.editor.insertContent("{"+e+"}"),this.toggleOptions()}},{key:"getDisabledFields",value:function(){var e=["captcha","product","hidden","page-break","postdata","total","upload","stripe","paypal","password"];return!_.isUndefined(this.props.enablePostData)&&this.props.enablePostData&&!_.isUndefined(this.props.enableUpload)&&this.props.enableUpload&&(e=["captcha","product","hidden","page-break","total","stripe","paypal","password"]),e}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.required)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))}),r=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,n=_.map(t,function(t,a){if(!t.required&&r!==t.field_type)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))});return s.default.createElement(s.default.Fragment,null,a&&a.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Required Fields"))),s.default.createElement(s.default.Fragment,null,a)),n&&n.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Optional Fields"))),s.default.createElement(s.default.Fragment,null,n)))}},{key:"getMiscData",value:function(){var e=this,t=_.isEmpty(this.props.editorOptions)?[]:this.props.editorOptions;return s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Misc Data"))),_.map(t,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=(0,u.getFieldsByType)("paypal",this.props.wrappers),a=(0,u.getFieldsByType)("stripe",this.props.wrappers),r=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(t)||!_.isEmpty(a))return s.default.createElement(s.default.Fragment,null,this.props.paymentOptions&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Payment Data"))),_.map(r,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getEditorOptions",value:function(){var e=this;if(this.props.hideEditorOptions)return"";var t=this.props.disableMiscData?"":this.getMiscData(),a=this.props.enableFormData?this.getPaymentData():"",r=this.props.enableFormData?this.getFormData():"",n=this.props.mainOptions?this.props.mainOptions:{form_name:(0,u.translate)("Form Name")};return s.default.createElement("ul",{className:this.state.editorOptionsOpen?"sui-active":""},this.props.enableAllFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_fields")},(0,u.translate)("All Form Fields"))),this.props.enableAllNonFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_non_empty_fields")},(0,u.translate)("All Non Empty Fields"))),r,s.default.createElement(s.default.Fragment,null,this.props.mainOptionsLabel&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,this.props.mainOptionsLabel)),_.map(n,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))})),t,a)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=this.getEditorOptions(),r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=void 0;_.isEmpty(a)||(o=s.default.createElement("div",{className:"sui-editor-options"},s.default.createElement("button",{className:this.state.editorOptionsOpen?"sui-tooltip sui-active":"sui-tooltip","data-tooltip":(0,u.translate)("Add form data"),onClick:this.toggleOptions},s.default.createElement("i",{className:"sui-icon-layout sui-sm","aria-hidden":"true"})),a));var l="";return this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),className:"sui-label"},this.props.label," ",this.props.isRequired&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field "+n},l,this.props.descriptionTop&&s.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),s.default.createElement("div",{className:"sui-editor"+(_.isEmpty(a)?"":" sui-editor-with-options")},o,s.default.createElement("textarea",{id:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)}})),this.props.isRequired&&!this.isValid(t)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"b",function(){return s});var r=a(129),n=a(130),o=a(27),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(e,t,a,n){var i=void 0;"string"==typeof e?(i=Object(o.d)(e),i.state=t):(i=l({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return a&&(i.key=a),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(r.a)(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i},s=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(n.a)(e.state,t.state)}},function(e,t,a){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)a.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),o=n>>8,l=255&n;o?a.push(o,l):a.push(l)}else for(r=0;r<e.length;r++)a[r]=0|e[r];return a}function n(e){for(var t="",a=0;a<e.length;a++)t+=i(e[a].toString(16));return t}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e,t){for(var a="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=o(n)),a+=s(n.toString(16))}return a}function i(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,a,r){var n=a-t;N(n%4==0);for(var o=new Array(n/4),l=0,i=t;l<o.length;l++,i+=4){var s;s="big"===r?e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]:e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i],o[l]=s>>>0}return o}function c(e,t){for(var a=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var o=e[r];"big"===t?(a[n]=o>>>24,a[n+1]=o>>>16&255,a[n+2]=o>>>8&255,a[n+3]=255&o):(a[n+3]=o>>>24,a[n+2]=o>>>16&255,a[n+1]=o>>>8&255,a[n]=255&o)}return a}function p(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function d(e,t){return e+t>>>0}function h(e,t,a){return e+t+a>>>0}function m(e,t,a,r){return e+t+a+r>>>0}function b(e,t,a,r,n){return e+t+a+r+n>>>0}function y(e,t,a,r){var n=e[t],o=e[t+1],l=r+o>>>0,i=(l<r?1:0)+a+n;e[t]=i>>>0,e[t+1]=l}function v(e,t,a,r){return(t+r>>>0<t?1:0)+e+a>>>0}function g(e,t,a,r){return t+r>>>0}function E(e,t,a,r,n,o,l,i){var s=0,u=t;return u=u+r>>>0,s+=u<t?1:0,u=u+o>>>0,s+=u<o?1:0,u=u+i>>>0,s+=u<i?1:0,e+a+n+l+s>>>0}function _(e,t,a,r,n,o,l,i){return t+r+o+i>>>0}function w(e,t,a,r,n,o,l,i,s,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+o>>>0,c+=p<o?1:0,p=p+i>>>0,c+=p<i?1:0,p=p+u>>>0,c+=p<u?1:0,e+a+n+l+s+c>>>0}function O(e,t,a,r,n,o,l,i,s,u){return t+r+o+i+u>>>0}function P(e,t,a){return(t<<32-a|e>>>a)>>>0}function x(e,t,a){return(e<<32-a|t>>>a)>>>0}function j(e,t,a){return e>>>a}function k(e,t,a){return(e<<32-a|t>>>a)>>>0}var N=a(46),C=a(47);t.inherits=C,t.toArray=r,t.toHex=n,t.htonl=o,t.toHex32=l,t.zero2=i,t.zero8=s,t.join32=u,t.split32=c,t.rotr32=p,t.rotl32=f,t.sum32=d,t.sum32_3=h,t.sum32_4=m,t.sum32_5=b,t.sum64=y,t.sum64_hi=v,t.sum64_lo=g,t.sum64_4_hi=E,t.sum64_4_lo=_,t.sum64_5_hi=w,t.sum64_5_lo=O,t.rotr64_hi=P,t.rotr64_lo=x,t.shr64_hi=j,t.shr64_lo=k},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=(function(e){e&&e.__esModule}(i),function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"initialize",value:function(){jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.props.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.props.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e=this;jQuery(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),e.close(),!1}),_.isUndefined(this.props.time)||setTimeout(function(){e.close()},this.props.time)}},{key:"close",value:function(){jQuery("#forminator-notification").stop().slideUp("slow")}}]),t}(i.Component));t.default=s},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(16),f=r(p),d=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.requiredProp=r+"required",a.requiredValProp=r+"required_message",a.requiredCValProp=r+"required_confirm_message",a}return l(t,e),i(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.requiredProp])&&this.props.state[this.requiredProp],a=_.isUndefined(this.props.state[this.requiredValProp])?"":this.props.state[this.requiredValProp],r=_.isUndefined(this.props.state[this.requiredCValProp])?"":this.props.state[this.requiredCValProp],n=_.isUndefined(this.props.state.type)?"":this.props.state.type,o="password"===n&&!_.isUndefined(this.props.state["confirm-password"])&&this.props.state["confirm-password"];return u.default.createElement(f.default,null,u.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,c.translate)("Require")),u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Force users to fill out this field, otherwise it will be optional.")),u.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},u.default.createElement("div",{className:"sui-tabs-menu"},u.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,c.translate)("Optional")),u.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,c.translate)("Required"))),u.default.createElement("div",{className:"sui-tabs-content"},u.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},u.default.createElement("div",{className:"sui-form-field"},"password"===n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Password error message")),"password"!==n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Error message")),u.default.createElement("input",{type:"text",value:a,placeholder:(0,c.translate)("Enter required message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredValProp,t.target.value)}})),o&&u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Confirm Password error message")),u.default.createElement("input",{type:"text",value:r,placeholder:(0,c.translate)("Enter confirm password message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredCValProp,t.target.value)}})),t&&"select"===n&&u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,c.translate)("Options without a value will be treated as empty options")))))))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t,a){"use strict";var r=a(30),n=a.n(r),o=function(){var e=null,t=function(t){return n()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},a=function(t,a,r,o){if(null!=e){var l="function"==typeof e?e(t,a):e;"string"==typeof l?"function"==typeof r?r(l,o):(n()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==l)}else o(!0)},r=[];return{setPrompt:t,confirmTransitionTo:a,appendListener:function(e){var t=!0,a=function(){t&&e.apply(void 0,arguments)};return r.push(a),function(){t=!1,r=r.filter(function(e){return e!==a})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=o},function(e,t,a){"use strict";var r=a(38);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(15),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.state={match:o.computeMatch(o.props.history.location.pathname)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,a=t.children,r=t.history;u()(null==a||1===p.a.Children.count(a),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){i()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,a){"use strict";var r=a(67),n=a.n(r),o={},l=0,i=function(e,t){var a=""+t.end+t.strict+t.sensitive,r=o[a]||(o[a]={});if(r[e])return r[e];var i=[],s=n()(e,i,t),u={re:s,keys:i};return l<1e4&&(r[e]=u,l++),u},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];"string"==typeof t&&(t={path:t});var r=t,n=r.path,o=r.exact,l=void 0!==o&&o,s=r.strict,u=void 0!==s&&s,c=r.sensitive,p=void 0!==c&&c;if(null==n)return a;var f=i(n,{end:l,strict:u,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var b=m[0],y=m.slice(1),v=e===b;return l&&!v?null:{path:n,url:"/"===n&&""===b?"/":b,isExact:v,params:h.reduce(function(e,t,a){return e[t.name]=y[a],e},{})}};t.a=s},function(e,t,a){"use strict";(function(t){function r(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var n=a(11),o=a(155),l={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(71):void 0!==t&&(e=a(71)),e}(),transformRequest:[function(e,t){return o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){i.headers[e]={}}),n.forEach(["post","put","patch"],function(e){i.headers[e]=n.merge(l)}),e.exports=i}).call(t,a(45))},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this,t=this.props.label,a=this.state.open,r="";a&&(r="sui-accordion-item--open");var n=!(!_.isUndefined(this.props.boxedContent)&&""!==this.props.boxedContent)||this.props.boxedContent,o=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-accordion-item "+r},s.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("span",null,t),s.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},s.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"}),s.default.createElement("span",{class:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?a&&o:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},a&&o),n)))}}]),t}(i.Component));t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldId)?this.props.property:this.props.fieldId,r=!(_.isUndefined(this.props.disabled)||!this.props.disabled),n="";return this.props.itemClass&&""!==this.props.itemClass&&(n=" "+this.props.itemClass),s.default.createElement("label",{htmlFor:"forminator-field-"+a,className:"sui-checkbox"+n},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+a,value:"true",checked:t?"checked":"",disabled:r,onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{"aria-hidden":"true"}),this.props.label&&s.default.createElement("span",null,this.props.label))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a);var o=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,l=_.isUndefined(a.props.settings[a.props.property])?o:a.props.settings[a.props.property];return a.state={value:l},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(t){var a=e.state.value+" "+t.target.value;e.updateValue(a)})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":"sui-form-field-error",o="",l="input";return"textarea"===this.props.type&&(l="textarea"),this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field "+n},o,s.default.createElement("div",{className:"sui-insert-variables"},"input"===l&&s.default.createElement("input",{type:"text",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)}}),"textarea"===l&&s.default.createElement("textarea",{value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:this.props.rows}),s.default.createElement("select",{ref:function(t){return e.el=t}},this.props.children),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description)))}}]),t}(i.Component);t.default=c},function(e,t,a){var r=a(79),n=new r;e.exports={numberFormat:n.numberFormat.bind(n),translate:n.translate.bind(n),configure:n.configure.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),getLocaleSlug:n.getLocaleSlug.bind(n),addTranslations:n.addTranslations.bind(n),reRenderTranslations:n.reRenderTranslations.bind(n),registerComponentUpdateHook:n.registerComponentUpdateHook.bind(n),registerTranslateHook:n.registerTranslateHook.bind(n),state:n.state,stateObserver:n.stateObserver,on:n.stateObserver.on.bind(n.stateObserver),off:n.stateObserver.removeListener.bind(n.stateObserver),emit:n.stateObserver.emit.bind(n.stateObserver),localize:a(93)(n),$this:n,I18N:r}},function(e,t){function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===a||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function l(){m&&d&&(m=!1,d.length?h=d.concat(h):b=-1,h.length&&i())}function i(){if(!m){var e=n(l);m=!0;for(var t=h.length;t;){for(d=h,h=[];++b<t;)d&&d[b].run();b=-1,t=h.length}d=null,m=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,p,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:a}catch(e){c=a}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],m=!1,b=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];h.push(new s(e,t)),1!==h.length||m||n(i)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},a.prototype.emit=function(e){var t,a,n,i,s,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(a=this._events[e],l(a))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),a.apply(this,i)}else if(o(a))for(i=Array.prototype.slice.call(arguments,1),u=a.slice(),n=u.length,s=0;s<n;s++)u[s].apply(this,i);return!0},a.prototype.addListener=function(e,t){var n;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=l(this._maxListeners)?a.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var n=!1;return a.listener=t,this.on(e,a),this},a.prototype.removeListener=function(e,t){var a,n,l,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=this._events[e],l=a.length,n=-1,a===t||r(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(a)){for(i=l;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){n=i;break}if(n<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[e],r(a))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},a.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,a){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,a){"use strict";function r(e,t,a,r,o,l,i,s){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[a,r,o,l,i,s],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var n=function(e){};e.exports=r},function(e,t){function a(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function r(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}function n(e,t){var a=D(e)||d(e)?r(e.length,String):[],n=a.length,o=!!n;for(var l in e)!t&&!k.call(e,l)||o&&("length"==l||u(l,n))||a.push(l);return a}function o(e,t,a){var r=e[t];k.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function l(e){if(!p(e))return S(e);var t=[];for(var a in Object(e))k.call(e,a)&&"constructor"!=a&&t.push(a);return t}function i(e,t){return t=T(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=T(r.length-t,0),l=Array(o);++n<o;)l[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=l,a(e,this,i)}}function s(e,t,a,r){a||(a={});for(var n=-1,l=t.length;++n<l;){var i=t[n],s=r?r(a[i],e[i],i,a,e):void 0;o(a,i,void 0===s?e[i]:s)}return a}function u(e,t){return!!(t=null==t?_:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function c(e,t,a){if(!v(a))return!1;var r=typeof t;return!!("number"==r?h(a)&&u(t,a.length):"string"==r&&t in a)&&f(a[t],e)}function p(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||j)}function f(e,t){return e===t||e!==e&&t!==t}function d(e){return m(e)&&k.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==w)}function h(e){return null!=e&&y(e.length)&&!b(e)}function m(e){return g(e)&&h(e)}function b(e){var t=v(e)?N.call(e):"";return t==O||t==P}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=_}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function E(e){return h(e)?n(e):l(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",P="[object GeneratorFunction]",x=/^(?:0|[1-9]\d*)$/,j=Object.prototype,k=j.hasOwnProperty,N=j.toString,C=j.propertyIsEnumerable,S=function(e,t){return function(a){return e(t(a))}}(Object.keys,Object),T=Math.max,F=!C.call({valueOf:1},"valueOf"),D=Array.isArray,M=function(e){return i(function(t,a){var r=-1,n=a.length,o=n>1?a[n-1]:void 0,l=n>2?a[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,l&&c(a[0],a[1],l)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var i=a[r];i&&e(t,i,r,o)}return t})}(function(e,t){if(F||p(t)||h(t))return void s(t,E(t),e);for(var a in t)k.call(t,a)&&o(e,a,t[a])});e.exports=M},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.showModal=function(e,t){return function(a){a({type:"SHOW_MODAL",modalProps:e,modalType:t})}},t.hideModal=function(){return function(e){e({type:"HIDE_MODAL"})}}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(10),d=(r(f),a(4)),h=(r(d),a(2)),m=r(h),b=a(16),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(_.isUndefined(this.props.state["custom-class"])||this.props.state["custom-class"],_.isUndefined(this.props.prefix)?"":this.props.prefix+"_");return c.default.createElement(y.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Pre-populate")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can pre-populate this field dynamically using the query parameter passed in your form URL. Enter the query parameter key to fetch its value from your form URL below.")),c.default.createElement("div",{style:{width:"100%",maxWidth:"240px"}},c.default.createElement(m.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),placeholder:(0,p.translate)("E.g. query_parameter_key"),property:e+"prefill"}))),this.props.notice&&c.default.createElement("span",{className:"sui-description"},this.props.notice)))}}]),t}(u.Component);t.default=v},function(e,t){e.exports=ReactDOM},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"clearImage",value:function(){"function"==typeof this.props.updateProperty?(this.props.updateProperty(this.props.property,""),this.props.updateProperty(this.props.property+"_filename",""),this.props.updateProperty(this.props.property+"_alt","")):(this.props.actions.settingsActions.updateSetting(this.props.property,""),this.props.actions.settingsActions.updateSetting(this.props.property+"_filename",""),this.props.actions.settingsActions.updateSetting(this.props.property+"_alt",""))}},{key:"openMedia",value:function(){var e=this,t=wp.media({title:(0,u.translate)("Select image"),button:{text:(0,u.translate)("Select")},multiple:!1}).on("select",function(){var a=void 0,r=t.state().get("selection").first().toJSON();a=_.isUndefined(e.props.imageSize)?r.url:"thumbnail"===e.props.imageSize?r.sizes.thumbnail.url:"medium"===e.props.imageSize?_.isUndefined(r.sizes.medium)?r.sizes.full.url:r.sizes.medium.url:"large"===e.props.imageSize?_.isUndefined(r.sizes.large)?r.sizes.full.url:r.sizes.large.url:r.sizes.full.url,"function"==typeof e.props.updateProperty?(e.props.updateProperty(e.props.property,a),e.props.updateProperty(e.props.property+"_filename",r.filename),e.props.updateProperty(e.props.property+"_alt",r.alt)):(e.props.actions.settingsActions.updateSetting(e.props.property,a),e.props.actions.settingsActions.updateSetting(e.props.property+"_filename",r.filename),e.props.actions.settingsActions.updateSetting(e.props.property+"_alt",r.alt))});t.open()}},{key:"render",value:function(){var e=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],t=_.isEmpty(e)?"":"sui-has_file",a=_.isUndefined(this.props.settings[this.props.property+"_filename"])?e:_.isEmpty(this.props.settings[this.props.property+"_filename"])?e.replace(/^.*[\\\/]/,""):this.props.settings[this.props.property+"_filename"],r="";this.props.label&&(r=s.default.createElement("label",{className:"sui-label"},this.props.label));var n="";this.props.description&&(n=s.default.createElement("span",{className:"sui-description"},this.props.description));var o="";if("image"===this.props.type){var l="";e&&(l="url("+e+")"),o=s.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},s.default.createElement("div",{className:"sui-image-mask"}),s.default.createElement("div",{role:"button",onClick:this.openMedia.bind(this),className:"sui-image-preview",style:{backgroundImage:l}}))}var i=this.props.fieldClass?" "+this.props.fieldClass:"";return s.default.createElement("div",{className:"sui-form-field"+i},r,s.default.createElement("div",{className:"sui-upload "+t},s.default.createElement("input",{type:"file",value:"",readOnly:"readonly"}),o,s.default.createElement("button",{className:"sui-upload-button",onClick:this.openMedia.bind(this)},s.default.createElement("i",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),"image"===this.props.type?""+(0,u.translate)("Upload image"):""+(0,u.translate)("Upload file")),s.default.createElement("div",{className:"sui-upload-file"},s.default.createElement("span",null,a),s.default.createElement("button",{className:"sui-upload-button--remove",onClick:this.clearImage.bind(this)},s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},"image"===this.props.type?""+(0,u.translate)("Remove uploaded image"):""+(0,u.translate)("Remove uploaded file"))))),n)}}]),t}(i.Component);t.default=c},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){"use strict";a.d(t,"b",function(){return o}),a.d(t,"a",function(){return l});var r=a(7),n=a.n(r),o=n.a.shape({trySubscribe:n.a.func.isRequired,tryUnsubscribe:n.a.func.isRequired,notifyNestedSubs:n.a.func.isRequired,isSubscribed:n.a.func.isRequired}),l=n.a.shape({subscribe:n.a.func.isRequired,dispatch:n.a.func.isRequired,getState:n.a.func.isRequired})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function i(){}function s(e,t){var a={run:function(r){try{var n=e(t.getState(),r);(n!==a.props||a.error)&&(a.shouldComponentUpdate=!0,a.props=n,a.error=null)}catch(e){a.shouldComponentUpdate=!0,a.error=e}}};return a}function u(e){var t,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,f=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,E=u.methodName,_=void 0===E?"connectAdvanced":E,w=u.renderCountProp,O=void 0===w?void 0:w,P=u.shouldHandleStateChanges,x=void 0===P||P,j=u.storeKey,k=void 0===j?"store":j,N=u.withRef,C=void 0!==N&&N,S=l(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=k+"Subscription",F=v++,D=(t={},t[k]=b.a,t[T]=b.b,t),M=(a={},a[T]=b.b,a);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+_+". Instead received "+JSON.stringify(t));var a=t.displayName||t.name||"Component",l=f(a),u=y({},S,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:x,storeKey:k,withRef:C,displayName:l,wrappedComponentName:a,WrappedComponent:t}),c=function(a){function c(e,t){r(this,c);var o=n(this,a.call(this,e,t));return o.version=F,o.state={},o.renderCount=0,o.store=e[k]||t[k],o.propsMode=Boolean(e[k]),o.setWrappedInstance=o.setWrappedInstance.bind(o),d()(o.store,'Could not find "'+k+'" in either the context or props of "'+l+'". Either wrap the root component in a <Provider>, or explicitly pass "'+k+'" as a prop to "'+l+'".'),o.initSelector(),o.initSubscription(),o}return o(c,a),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[T]=t||this.context[T],e},c.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=i,this.store=null,this.selector.run=i,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return d()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=s(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new m.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(C||O||this.propsMode&&this.subscription))return e;var t=y({},e);return C&&(t.ref=this.setWrappedInstance),O&&(t[O]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(h.createElement)(t,this.addExtraProps(e.props))},c}(h.Component);return c.WrappedComponent=t,c.displayName=l,c.childContextTypes=M,c.contextTypes=D,c.propTypes=D,p()(c,t)}}t.a=u;var c=a(59),p=a.n(c),f=a(15),d=a.n(f),h=a(0),m=(a.n(h),a(107)),b=a(57),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=0,g={}},function(e,t,a){"use strict";function r(e,t,a){if("string"!=typeof t){if(p){var f=c(t);f&&f!==p&&r(e,f,a)}var d=i(t);s&&(d=d.concat(s(t)));for(var h=0;h<d.length;++h){var m=d[h];if(!(n[m]||o[m]||a&&a[m])){var b=u(t,m);try{l(e,m,b)}catch(e){}}}return e}return e}var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=r},function(e,t,a){"use strict";function r(e){return function(t,a){function r(){return n}var n=e(t,a);return r.dependsOnOwnProps=!1,r}}function n(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,a){var r=(a.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,a){r.mapToProps=e,r.dependsOnOwnProps=n(e);var o=r(t,a);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=n(o),o=r(t,a)),o},r}}t.a=r,t.b=o;a(61)},function(e,t,a){"use strict";a(114),a(35)},function(e,t,a){"use strict";var r=a(116),n=r.a.Symbol;t.a=n},function(e,t,a){"use strict";a.d(t,"b",function(){return r}),a.d(t,"a",function(){return n}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"h",function(){return s}),a.d(t,"f",function(){return u}),a.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,t,a){return e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)},o=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},l=function(e,t){return t(window.confirm(e))},i=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},s=function(){return-1===window.navigator.userAgent.indexOf("Trident")},u=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(0),s=a.n(i),u=a(7),c=a.n(u),p=a(15),f=a.n(p),d=a(20),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},m=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},b=function(e){function t(){var a,r,l;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=o(this,e.call.apply(e,[this].concat(s))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!m(e)){e.preventDefault();var t=r.context.router.history,a=r.props,n=a.replace,o=a.to;n?t.replace(o):t.push(o)}},l=a,o(r,l)}return l(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),a=e.innerRef,n=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>"),f()(void 0!==t,'You must specify the "to" property');var o=this.context.router.history,l="string"==typeof t?Object(d.c)(t,null,null,o.location):t,i=o.createHref(l);return s.a.createElement("a",h({},n,{onClick:this.handleClick,href:i,ref:a}))},t}(s.a.Component);b.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},b.defaultProps={replace:!1},b.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=b},function(e,t,a){"use strict";var r=a(66);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(15),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),h=a(39),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},b=function(e){return 0===p.a.Children.count(e)},y=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.state={match:o.computeMatch(o.props,o.context.router)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var a=e.computedMatch,r=e.location,n=e.path,o=e.strict,l=e.exact,i=e.sensitive;if(a)return a;u()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,c=(r||s.location).pathname;return Object(h.a)(c,{path:n,strict:o,exact:l,sensitive:i},s.match)},t.prototype.componentWillMount=function(){i()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),i()(!(this.props.component&&this.props.children&&!b(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),i()(!(this.props.render&&this.props.children&&!b(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){i()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),i()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,a=t.children,r=t.component,n=t.render,o=this.context.router,l=o.history,i=o.route,s=o.staticContext,u=this.props.location||i.location,c={match:e,location:u,history:l,staticContext:s};return r?e?p.a.createElement(r,c):null:n?e?n(c):null:"function"==typeof a?a(c):a&&!b(a)?p.a.Children.only(a):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,a){function r(e,t){for(var a,r=[],n=0,o=0,l="",i=t&&t.delimiter||"/";null!=(a=v.exec(e));){var c=a[0],p=a[1],f=a.index;if(l+=e.slice(o,f),o=f+c.length,p)l+=p[1];else{var d=e[o],h=a[2],m=a[3],b=a[4],y=a[5],g=a[6],E=a[7];l&&(r.push(l),l="");var _=null!=h&&null!=d&&d!==h,w="+"===g||"*"===g,O="?"===g||"*"===g,P=a[2]||i,x=b||y;r.push({name:m||n++,prefix:h||"",delimiter:P,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:x?u(x):E?".*":"[^"+s(P)+"]+?"})}}return o<e.length&&(l+=e.substr(o)),l&&r.push(l),r}function n(e,t){return i(r(e,t))}function o(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){for(var t=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(t[a]=new RegExp("^(?:"+e[a].pattern+")$"));return function(a,r){for(var n="",i=a||{},s=r||{},u=s.pretty?o:encodeURIComponent,c=0;c<e.length;c++){var p=e[c];if("string"!=typeof p){var f,d=i[p.name];if(null==d){if(p.optional){p.partial&&(n+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(y(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");n+=(0===h?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?l(d):u(d),!t[c].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');n+=p.prefix+f}}else n+=p}return n}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function f(e,t){var a=e.source.match(/\((?!\?)/g);if(a)for(var r=0;r<a.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}function d(e,t,a){for(var r=[],n=0;n<e.length;n++)r.push(b(e[n],t,a).source);return c(new RegExp("(?:"+r.join("|")+")",p(a)),t)}function h(e,t,a){return m(r(e,a),t,a)}function m(e,t,a){y(t)||(a=t||a,t=[]),a=a||{};for(var r=a.strict,n=!1!==a.end,o="",l=0;l<e.length;l++){var i=e[l];if("string"==typeof i)o+=s(i);else{var u=s(i.prefix),f="(?:"+i.pattern+")";t.push(i),i.repeat&&(f+="(?:"+u+f+")*"),f=i.optional?i.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")",o+=f}}var d=s(a.delimiter||"/"),h=o.slice(-d.length)===d;return r||(o=(h?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=n?"$":r&&h?"":"(?="+d+"|$)",c(new RegExp("^"+o,p(a)),t)}function b(e,t,a){return y(t)||(a=t||a,t=[]),a=a||{},e instanceof RegExp?f(e,t):y(e)?d(e,t,a):h(e,t,a)}var y=a(137);e.exports=b,e.exports.parse=r,e.exports.compile=n,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=m;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,a){"use strict";var r=a(67),n=a.n(r),o={},l=0,i=function(e){var t=e,a=o[t]||(o[t]={});if(a[e])return a[e];var r=n.a.compile(e);return l<1e4&&(a[e]=r,l++),r},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:i(e)(t,{pretty:!0})};t.a=s},function(e,t,a){e.exports=a(152)},function(e,t,a){"use strict";e.exports=function(e,t){return function(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return e.apply(t,a)}}},function(e,t,a){"use strict";var r=a(11),n=a(156),o=a(158),l=a(159),i=a(160),s=a(72),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(161);e.exports=function(e){return new Promise(function(t,c){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||i(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var b=e.auth.username||"",y=e.auth.password||"";f.Authorization="Basic "+u(b+":"+y)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:a,config:e,request:d};n(t,c,o),d=null}},d.onerror=function(){c(s("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=a(162),g=(e.withCredentials||i(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,a){"use strict";var r=a(157);e.exports=function(e,t,a,n,o){var l=new Error(e);return r(l,t,a,n,o)}},function(e,t,a){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,a){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,a){"use strict";var r=a(170),n=a(171),o=a(77);e.exports={formats:o,parse:n,stringify:r}},function(e,t,a){"use strict";var r=Object.prototype.hasOwnProperty,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(var t;e.length;){var a=e.pop();if(t=a.obj[a.prop],Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)void 0!==t[n]&&r.push(t[n]);a.obj[a.prop]=r}}return t},l=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(a[r]=e[r]);return a},i=function e(t,a,n){if(!a)return t;if("object"!=typeof a){if(Array.isArray(t))t.push(a);else{if("object"!=typeof t)return[t,a];(n.plainObjects||n.allowPrototypes||!r.call(Object.prototype,a))&&(t[a]=!0)}return t}if("object"!=typeof t)return[t].concat(a);var o=t;return Array.isArray(t)&&!Array.isArray(a)&&(o=l(t,n)),Array.isArray(t)&&Array.isArray(a)?(a.forEach(function(a,o){r.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],a,n):t.push(a):t[o]=a}),t):Object.keys(a).reduce(function(t,o){var l=a[o];return r.call(t,o)?t[o]=e(t[o],l,n):t[o]=l,t},o)},s=function(e,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},e)},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},c=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),a="",r=0;r<t.length;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?a+=t.charAt(r):o<128?a+=n[o]:o<2048?a+=n[192|o>>6]+n[128|63&o]:o<55296||o>=57344?a+=n[224|o>>12]+n[128|o>>6&63]+n[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),a+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|63&o])}return a},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],a=[],r=0;r<t.length;++r)for(var n=t[r],l=n.obj[n.prop],i=Object.keys(l),s=0;s<i.length;++s){var u=i[s],c=l[u];"object"==typeof c&&null!==c&&-1===a.indexOf(c)&&(t.push({obj:l,prop:u}),a.push(c))}return o(t)},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},d=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:l,assign:s,compact:p,decode:u,encode:c,isBuffer:d,isRegExp:f,merge:i}},function(e,t,a){"use strict";var r=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,a){var r=a(287),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o},function(e,t,a){function r(){u.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function n(e){return Array.prototype.slice.call(e)}function o(e){var t,a=e[0],o={};for(("string"!=typeof a||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",n(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof a&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",n(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(o=e[t]);if("string"==typeof a?o.original=a:"object"==typeof o.original&&(o.plural=o.original.plural,o.count=o.original.count,o.original=o.original.single),"string"==typeof e[1]&&(o.plural=e[1]),void 0===o.original)throw new Error("Translate called without a `string` value as first argument.");return o}function l(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}function i(e,t){var a,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),a=l(r,t),e[r].apply(e,a)}function s(e,t){var a,r;for(a=v.length-1;a>=0;a--)if(r=v[a](b({},t)),e.state.locale[r.original])return i(e.state.jed,r);return null}function u(){if(!(this instanceof u))return new u;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:m({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new d,this.stateObserver.setMaxListeners(0),this.configure()}var c=a(80)("i18n-wp-plugin"),p=a(83),f=a(84),d=a(48).EventEmitter,h=a(87).default,m=a(91),b=a(51),y=a(92),v=[function(e){return e}],g={};u.throwErrors=!1,u.prototype.numberFormat=function(e){var t=arguments[1]||{},a="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",n=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return y(e,a,r,n)},u.prototype.configure=function(e){b(this,e||{}),this.setLocale()},u.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,a,r,n=e[""]["key-hash"],l=function(e,t){const a=!1===t?"":String(t);if(void 0!==g[a+e])return g[a+e];var r=f().update(e).digest("hex");return g[a+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=l(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=l(t.original,e),t}};if("sha1"===n.substr(0,4))if(4===n.length)v.push(s(!1));else{var u=n.substr(5).indexOf("-");if(u<0)t=Number(n.substr(5)),v.push(s(t));else for(a=Number(n.substr(5,u)),r=Number(n.substr(6+u)),t=a;t<=r;t++)v.push(s(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;b(this.state.locale,e)}else this.state.locale=b({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new p({locale_data:{messages:this.state.locale}}),this.state.numberFormatSettings.decimal_point=i(this.state.jed,o(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=i(this.state.jed,o(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.getLocale=function(){return this.state.locale},u.prototype.getLocaleSlug=function(){return this.state.localeSlug},u.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.hasTranslation=function(){return!!s(this,o(arguments))},u.prototype.translate=function(){var e,t,a,r,n,l;if(e=o(arguments),l=!e.components){try{n=JSON.stringify(e)}catch(e){l=!1}if(n&&(t=this.state.translations.get(n)))return t}if(t=s(this,e),t||(t=i(this.state.jed,e)),e.args){a=Array.isArray(e.args)?e.args.slice(0):[e.args],a.unshift(t);try{t=p.sprintf.apply(p,a)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",a)}}return e.components&&(t=h({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(a){t=a(t,e)}),l&&this.state.translations.set(n,t),t},u.prototype.reRenderTranslations=function(){c("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},u.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},e.exports=u},function(e,t,a){(function(r){function n(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+t.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,r)}}function l(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function s(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=a(81),t.log=l,t.formatArgs=o,t.save=i,t.load=s,t.useColors=n,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}).call(t,a(45))},function(e,t,a){function r(e){var a,r=0;for(a in e)r=(r<<5)-r+e.charCodeAt(a),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function n(e){function a(){if(a.enabled){var e=a,r=+new Date,o=r-(n||r);e.diff=o,e.prev=n,e.curr=r,n=r;for(var l=new Array(arguments.length),i=0;i<l.length;i++)l[i]=arguments[i];l[0]=t.coerce(l[0]),"string"!=typeof l[0]&&l.unshift("%O");var s=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,function(a,r){if("%%"===a)return a;s++;var n=t.formatters[r];if("function"==typeof n){var o=l[s];a=n.call(e,o),l.splice(s,1),s--}return a}),t.formatArgs.call(e,l);(a.log||t.log||console.log.bind(console)).apply(e,l)}}var n;return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=r(e),a.destroy=o,"function"==typeof t.init&&t.init(a),t.instances.push(a),a}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function l(e){t.save(e),t.names=[],t.skips=[];var a,r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(a=0;a<n;a++)r[a]&&(e=r[a].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(a=0;a<t.instances.length;a++){var o=t.instances[a];o.enabled=t.enabled(o.namespace)}}function i(){t.enable("")}function s(e){if("*"===e[e.length-1])return!0;var a,r;for(a=0,r=t.skips.length;a<r;a++)if(t.skips[a].test(e))return!1;for(a=0,r=t.names.length;a<r;a++)if(t.names[a].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=i,t.enable=l,t.enabled=s,t.humanize=a(82),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*c;case"days":case"day":case"d":return a*u;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=s?Math.round(e/s)+"h":e>=i?Math.round(e/i)+"m":e>=l?Math.round(e/l)+"s":e+"ms"}function n(e){return o(e,u,"day")||o(e,s,"hour")||o(e,i,"minute")||o(e,l,"second")||e+" ms"}function o(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}var l=1e3,i=60*l,s=60*i,u=24*s,c=365.25*u;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return a(e);if("number"===o&&!1===isNaN(e))return t.long?n(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,a){/**
|
2 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
3 |
*/
|
4 |
+
!function(a,r){function n(e){return d.PF.compile(e||"nplurals=2; plural=(n != 1);")}function o(e,t){this._key=e,this._i18n=t}var l=Array.prototype,i=Object.prototype,s=l.slice,u=i.hasOwnProperty,c=l.forEach,p={},f={forEach:function(e,t,a){var r,n,o;if(null!==e)if(c&&e.forEach===c)e.forEach(t,a);else if(e.length===+e.length){for(r=0,n=e.length;r<n;r++)if(r in e&&t.call(a,e[r],r,e)===p)return}else for(o in e)if(u.call(e,o)&&t.call(a,e[o],o,e)===p)return},extend:function(e){return this.forEach(s.call(arguments,1),function(t){for(var a in t)e[a]=t[a]}),e}},d=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=f.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};d.context_delimiter=String.fromCharCode(4),f.extend(o.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?d.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),f.extend(d.prototype,{translate:function(e){return new o(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){/**
|
5 |
* @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
|
6 |
*/
|
7 |
+
return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,a){return this.dcnpgettext.call(this,void 0,void 0,e,t,a)},dngettext:function(e,t,a,r){return this.dcnpgettext.call(this,e,void 0,t,a,r)},dcngettext:function(e,t,a,r){return this.dcnpgettext.call(this,e,void 0,t,a,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,a){return this.dcnpgettext.call(this,e,t,a)},dcpgettext:function(e,t,a){return this.dcnpgettext.call(this,e,t,a)},npgettext:function(e,t,a,r){return this.dcnpgettext.call(this,void 0,e,t,a,r)},dnpgettext:function(e,t,a,r,n){return this.dcnpgettext.call(this,e,t,a,r,n)},dcnpgettext:function(e,t,a,r,o){r=r||a,e=e||this._textdomain;var l;if(!this.options)return l=new d,l.dcnpgettext.call(l,void 0,void 0,a,r,o);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!a)throw new Error("No translation key found.");var i,s,u,c=t?t+d.context_delimiter+a:a,p=this.options.locale_data,f=p[e],h=(p.messages||this.defaults.locale_data.messages)[""],m=f[""].plural_forms||f[""]["Plural-Forms"]||f[""]["plural-forms"]||h.plural_forms||h["Plural-Forms"]||h["plural-forms"];if(void 0===o)u=1;else{if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");u=n(m)(o)+1}if(!f)throw new Error("No domain named `"+e+"` could be found.");return!(i=f[c])||u>=i.length?(this.options.missing_key_callback&&this.options.missing_key_callback(c,e),s=[null,a,r],!0===this.options.debug&&console.log(s[n(m)(o)+1]),s[n()(o)+1]):(s=i[u])||(s=[null,a,r],s[n()(o)+1])}});var h=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var a=[];t>0;a[--t]=e);return a.join("")}var a=function(){return a.cache.hasOwnProperty(arguments[0])||(a.cache[arguments[0]]=a.parse(arguments[0])),a.format.call(null,a.cache[arguments[0]],arguments)};return a.format=function(a,r){var n,o,l,i,s,u,c,p=1,f=a.length,d="",m=[];for(o=0;o<f;o++)if("string"===(d=e(a[o])))m.push(a[o]);else if("array"===d){if(i=a[o],i[2])for(n=r[p],l=0;l<i[2].length;l++){if(!n.hasOwnProperty(i[2][l]))throw h('[sprintf] property "%s" does not exist',i[2][l]);n=n[i[2][l]]}else n=i[1]?r[i[1]]:r[p++];if(/[^s]/.test(i[8])&&"number"!=e(n))throw h("[sprintf] expecting number but found %s",e(n));switch(void 0!==n&&null!==n||(n=""),i[8]){case"b":n=n.toString(2);break;case"c":n=String.fromCharCode(n);break;case"d":n=parseInt(n,10);break;case"e":n=i[7]?n.toExponential(i[7]):n.toExponential();break;case"f":n=i[7]?parseFloat(n).toFixed(i[7]):parseFloat(n);break;case"o":n=n.toString(8);break;case"s":n=(n=String(n))&&i[7]?n.substring(0,i[7]):n;break;case"u":n=Math.abs(n);break;case"x":n=n.toString(16);break;case"X":n=n.toString(16).toUpperCase()}n=/[def]/.test(i[8])&&i[3]&&n>=0?"+"+n:n,u=i[4]?"0"==i[4]?"0":i[4].charAt(1):" ",c=i[6]-String(n).length,s=i[6]?t(u,c):"",m.push(i[5]?n+s:s+n)}return m.join("")},a.cache={},a.parse=function(e){for(var t=e,a=[],r=[],n=0;t;){if(null!==(a=/^[^\x25]+/.exec(t)))r.push(a[0]);else if(null!==(a=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(a=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(a[2]){n|=1;var o=[],l=a[2],i=[];if(null===(i=/^([a-z_][a-z_\d]*)/i.exec(l)))throw"[sprintf] huh?";for(o.push(i[1]);""!==(l=l.substring(i[0].length));)if(null!==(i=/^\.([a-z_][a-z_\d]*)/i.exec(l)))o.push(i[1]);else{if(null===(i=/^\[(\d+)\]/.exec(l)))throw"[sprintf] huh?";o.push(i[1])}a[2]=o}else n|=2;if(3===n)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(a)}t=t.substring(a[0].length)}return r},a}(),m=function(e,t){return t.unshift(e),h.apply(null,t)};d.parse_plural=function(e,t){return e=e.replace(/n/g,t),d.parse_expression(e)},d.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?m(e,[].slice.call(t)):h.apply(this,[].slice.call(arguments))},d.prototype.sprintf=function(){return d.sprintf.apply(this,arguments)},d.PF={},d.PF.parse=function(e){var t=d.PF.extractPluralExpr(e);return d.PF.parser.parse.call(d.PF.parser,t)},d.PF.compile=function(e){function t(e){return!0===e?1:e||0}var a=d.PF.parse(e);return function(e){return t(d.PF.interpreter(a)(e))}},d.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return d.PF.interpreter(e.expr)(t);case"TERNARY":return d.PF.interpreter(e.expr)(t)?d.PF.interpreter(e.truthy)(t):d.PF.interpreter(e.falsey)(t);case"OR":return d.PF.interpreter(e.left)(t)||d.PF.interpreter(e.right)(t);case"AND":return d.PF.interpreter(e.left)(t)&&d.PF.interpreter(e.right)(t);case"LT":return d.PF.interpreter(e.left)(t)<d.PF.interpreter(e.right)(t);case"GT":return d.PF.interpreter(e.left)(t)>d.PF.interpreter(e.right)(t);case"LTE":return d.PF.interpreter(e.left)(t)<=d.PF.interpreter(e.right)(t);case"GTE":return d.PF.interpreter(e.left)(t)>=d.PF.interpreter(e.right)(t);case"EQ":return d.PF.interpreter(e.left)(t)==d.PF.interpreter(e.right)(t);case"NEQ":return d.PF.interpreter(e.left)(t)!=d.PF.interpreter(e.right)(t);case"MOD":return d.PF.interpreter(e.left)(t)%d.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},d.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,a=/nplurals\=(\d+);/,r=/plural\=(.*);/,n=e.match(a),o={};if(!(n.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(o.nplurals=n[1],e=e.replace(a,""),!((t=e.match(r))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},d.PF.parser=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,a,r,n,o,l){var i=o.length-1;switch(n){case 1:return{type:"GROUP",expr:o[i-1]};case 2:this.$={type:"TERNARY",expr:o[i-4],truthy:o[i-2],falsey:o[i]};break;case 3:this.$={type:"OR",left:o[i-2],right:o[i]};break;case 4:this.$={type:"AND",left:o[i-2],right:o[i]};break;case 5:this.$={type:"LT",left:o[i-2],right:o[i]};break;case 6:this.$={type:"LTE",left:o[i-2],right:o[i]};break;case 7:this.$={type:"GT",left:o[i-2],right:o[i]};break;case 8:this.$={type:"GTE",left:o[i-2],right:o[i]};break;case 9:this.$={type:"NEQ",left:o[i-2],right:o[i]};break;case 10:this.$={type:"EQ",left:o[i-2],right:o[i]};break;case 11:this.$={type:"MOD",left:o[i-2],right:o[i]};break;case 12:this.$={type:"GROUP",expr:o[i-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=a.lexer.lex()||1,"number"!=typeof e&&(e=a.symbols_[e]||e),e}var a=this,r=[0],n=[null],o=[],l=this.table,i="",s=0,u=0,c=0,p=2;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;o.push(f),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,m,b,y,v,g,E,_,w={};;){if(m=r[r.length-1],this.defaultActions[m]?b=this.defaultActions[m]:(null==d&&(d=t()),b=l[m]&&l[m][d]),void 0===b||!b.length||!b[0]){if(!c){_=[];for(v in l[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(O,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:f,expected:_})}if(3==c){if(1==d)throw new Error(O||"Parsing halted.");u=this.lexer.yyleng,i=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,d=t()}for(;;){if(p.toString()in l[m])break;if(0==m)throw new Error(O||"Parsing halted.");!function(e){r.length=r.length-2*e,n.length=n.length-e,o.length=o.length-e}(1),m=r[r.length-1]}h=d,d=p,m=r[r.length-1],b=l[m]&&l[m][p],c=3}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(b[0]){case 1:r.push(d),n.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(b[1]),d=null,h?(d=h,h=null):(u=this.lexer.yyleng,i=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,c>0&&c--);break;case 2:if(g=this.productions_[b[1]][1],w.$=n[n.length-g],w._$={first_line:o[o.length-(g||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(g||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(y=this.performAction.call(w,i,u,s,this.yy,b[1],n,o)))return y;g&&(r=r.slice(0,-1*g*2),n=n.slice(0,-1*g),o=o.slice(0,-1*g)),r.push(this.productions_[b[1]][0]),n.push(w.$),o.push(w._$),E=l[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length;r++)if(e=this._input.match(this.rules[a[r]]))return t=e[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,t,a,r){switch(a){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=t,e}(),void 0!==e&&e.exports&&(t=e.exports=d),t.Jed=d}()},function(e,t,a){"use strict";function r(){if(!(this instanceof r))return new r;p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var n=a(32),o=a(85),l=a(86),i=n.rotl32,s=n.sum32,u=n.sum32_5,c=l.ft_1,p=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];n.inherits(r,p),e.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(e,t){for(var a=this.W,r=0;r<16;r++)a[r]=e[t+r];for(;r<a.length;r++)a[r]=i(a[r-3]^a[r-8]^a[r-14]^a[r-16],1);var n=this.h[0],o=this.h[1],l=this.h[2],p=this.h[3],d=this.h[4];for(r=0;r<a.length;r++){var h=~~(r/20),m=u(i(n,5),c(h,o,l,p),d,a[r],f[h]);d=p,p=l,l=i(o,30),o=n,n=m}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],p),this.h[4]=s(this.h[4],d)},r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,a){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=a(32),o=a(46);t.BlockHash=r,r.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var a=e.length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-a,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,a=t-(e+this.padLength)%t,r=new Array(a+this.padLength);r[0]=128;for(var n=1;n<a;n++)r[n]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=e>>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o<this.padLength;o++)r[n++]=0;return r}},function(e,t,a){"use strict";function r(e,t,a,r){return 0===e?n(t,a,r):1===e||3===e?l(t,a,r):2===e?o(t,a,r):void 0}function n(e,t,a){return e&t^~e&a}function o(e,t,a){return e&t^e&a^t&a}function l(e,t,a){return e^t^a}function i(e){return f(e,2)^f(e,13)^f(e,22)}function s(e){return f(e,6)^f(e,11)^f(e,25)}function u(e){return f(e,7)^f(e,18)^e>>>3}function c(e){return f(e,17)^f(e,19)^e>>>10}var p=a(32),f=p.rotr32;t.ft_1=r,t.ch32=n,t.maj32=o,t.p32=l,t.s0_256=i,t.s1_256=s,t.g0_256=u,t.g1_256=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){var a,r,n=t[e],o=0;for(r=e+1;r<t.length;r++)if(a=t[r],a.value===n.value){if("componentOpen"===a.type){o++;continue}if("componentClose"===a.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+n.value+"`")}function o(e,t){var a,r,l,s,c,f,d,m,b,y,v=[],g={};for(f=0;f<e.length;f++)if(c=e[f],"string"!==c.type){if(!t.hasOwnProperty(c.value)||void 0===t[c.value])throw new Error("Invalid interpolation, missing component node: `"+c.value+"`");if("object"!==i(t[c.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+c.value+"`","\n> "+h);if("componentClose"===c.type)throw new Error("Missing opening component token: `"+c.value+"`");if("componentOpen"===c.type){a=t[c.value],l=f;break}v.push(t[c.value])}else v.push(c.value);return a&&(s=n(l,e),d=e.slice(l+1,s),m=o(d,t),r=u.default.cloneElement(a,{},m),v.push(r),s<e.length-1&&(b=e.slice(s+1),y=o(b,t),v=v.concat(y))),1===v.length?v[0]:(v.forEach(function(e,t){e&&(g["interpolation-child-"+t]=e)}),(0,p.default)(g))}function l(e){var t=e.mixedString,a=e.components,r=e.throwErrors;if(h=t,!a)return t;if("object"!==(void 0===a?"undefined":i(a))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var n=(0,d.default)(t);try{return o(n,a)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=a(0),u=r(s),c=a(88),p=r(c),f=a(90),d=r(f),h=void 0;t.default=l},function(e,t,a){"use strict";function r(e){var t=e&&(_&&e[_]||e[w]);if("function"==typeof t)return t}function n(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e,t){return e&&"object"==typeof e&&null!=e.key?n(e.key):t.toString(36)}function l(e,t,a,n){var i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===m)return a(n,e,""===t?g+o(e,0):t),1;var s,u,c=0,p=""===t?g:t+E;if(Array.isArray(e))for(var f=0;f<e.length;f++)s=e[f],u=p+o(s,f),c+=l(s,u,a,n);else{var d=r(e);if(d)for(var h,b=d.call(e),v=0;!(h=b.next()).done;)s=h.value,u=p+o(s,v++),c+=l(s,u,a,n);else if("object"===i){var _="",w=""+e;y(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,_)}}return c}function i(e,t,a){return null==e?0:l(e,"",t,a)}function s(e){return(""+e).replace(O,"$&/")}function u(e,t){return h.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}function c(e,t,a,r){this.result=e,this.keyPrefix=t,this.func=a,this.context=r,this.count=0}function p(e,t,a){var r=e.result,n=e.keyPrefix,o=e.func,l=e.context,i=o.call(l,t,e.count++);Array.isArray(i)?f(i,r,a,b.thatReturnsArgument):null!=i&&(h.isValidElement(i)&&(i=u(i,n+(!i.key||t&&t.key===i.key?"":s(i.key)+"/")+a)),r.push(i))}function f(e,t,a,r,n){var o="";null!=a&&(o=s(a)+"/");var l=c.getPooled(t,o,r,n);i(e,p,l),c.release(l)}function d(e){if("object"!=typeof e||!e||Array.isArray(e))return v(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(h.isValidElement(e))return v(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;y(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var a in e)f(e[a],t,a,b.thatReturnsArgument);return t}var h=a(0),m="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,b=a(49),y=a(50),v=a(89),g=".",E=":",_="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",O=/\/+/g,P=x,x=function(e){var t=this;if(t.instancePool.length){var a=t.instancePool.pop();return t.call(a,e),a}return new t(e)},j=function(e){var t=this;y(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},k=function(e,t,a,r){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t,a,r),o}return new n(e,t,a,r)};c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var a=e;a.instancePool=[],a.getPooled=t||P,a.poolSize||(a.poolSize=10),a.release=j}(c,k);e.exports=d},function(e,t,a){"use strict";var r=a(49),n=r;e.exports=n},function(e,t,a){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,a){function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),n.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}var n=a(48),o=a(47);e.exports=r,o(r,n.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},r.prototype._unlink=function(e,t,a){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=a,this.cache[this.tail].prev=null):(this.cache[t].next=a,this.cache[a].prev=t)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.prototype.set=function(e,t){"string"!=typeof e&&(e=""+e);var a;if(this.cache.hasOwnProperty(e)){if(a=this.cache[e],a.value=t,this.maxAge&&(a.modified=Date.now()),e===this.head)return t;this._unlink(e,a.prev,a.next)}else a={value:t,modified:0,next:null,prev:null},this.maxAge&&(a.modified=Date.now()),this.cache[e]=a,this.length===this.max&&this.evict();return this.length++,a.next=null,a.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},r.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},r.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t){/**
|
8 |
* Exposes number format capability
|
9 |
*
|
10 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
11 |
* @license See CREDITS.md
|
12 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
13 |
*/
|
14 |
+
function a(e,t,a,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var n=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,l=void 0===r?",":r,i=void 0===a?".":a,s="";return s=(o?function(e,t){var a=Math.pow(10,t);return""+(Math.round(e*a)/a).toFixed(t)}(n,o):""+Math.round(n)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,l)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(i)}e.exports=a},function(e,t,a){var r=a(0),n=a(51),o=a(94);e.exports=function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(a){var l=a.displayName||a.name||"",i=o({displayName:"Localized("+l+")",componentDidMount:function(){this.boundForceUpdate=this.forceUpdate.bind(this),e.stateObserver.addListener("change",this.boundForceUpdate)},componentWillUnmount:function(){this.boundForceUpdate&&e.stateObserver.removeListener("change",this.boundForceUpdate)},render:function(){var e=n({},this.props,t);return r.createElement(a,e)}});return i._composedComponent=a,i}}},function(e,t,a){"use strict";var r=a(0),n=a(95);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=n(r.Component,r.isValidElement,o)},function(e,t,a){"use strict";function r(e){return e}function n(e,t,a){function n(e,t){var a=v.hasOwnProperty(t)?v[t]:null;O.hasOwnProperty(t)&&i("OVERRIDE_BASE"===a,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i("DEFINE_MANY"===a||"DEFINE_MANY_MERGED"===a,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,a){if(a){i("function"!=typeof a,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),i(!t(a),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;a.hasOwnProperty(s)&&E.mixins(e,a.mixins);for(var l in a)if(a.hasOwnProperty(l)&&l!==s){var u=a[l],c=r.hasOwnProperty(l);if(n(c,l),E.hasOwnProperty(l))E[l](e,u);else{var p=v.hasOwnProperty(l),h="function"==typeof u,m=h&&!p&&!c&&!1!==a.autobind;if(m)o.push(l,u),r[l]=u;else if(c){var b=v[l];i(p&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,l),"DEFINE_MANY_MERGED"===b?r[l]=f(r[l],u):"DEFINE_MANY"===b&&(r[l]=d(r[l],u))}else r[l]=u}}}else;}function c(e,t){if(t)for(var a in t){var r=t[a];if(t.hasOwnProperty(a)){var n=a in E;i(!n,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',a);var o=a in e;if(o){var l=g.hasOwnProperty(a)?g[a]:null;return i("DEFINE_MANY_MERGED"===l,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",a),void(e[a]=f(e[a],r))}e[a]=r}}}function p(e,t){i(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var a in t)t.hasOwnProperty(a)&&(i(void 0===e[a],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",a),e[a]=t[a]);return e}function f(e,t){return function(){var a=e.apply(this,arguments),r=t.apply(this,arguments);if(null==a)return r;if(null==r)return a;var n={};return p(n,a),p(n,r),n}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var a=t.bind(e);return a}function m(e){for(var t=e.__reactAutoBindPairs,a=0;a<t.length;a+=2){var r=t[a],n=t[a+1];e[r]=h(e,n)}}function b(e){var t=r(function(e,r,n){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=r,this.refs=l,this.updater=n||a,this.state=null;var o=this.getInitialState?this.getInitialState():null;i("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o});t.prototype=new P,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],y.forEach(u.bind(null,t)),u(t,_),u(t,e),u(t,w),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var n in v)t.prototype[n]||(t.prototype[n]=null);return t}var y=[],v={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},E={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var a=0;a<t.length;a++)u(e,t[a])},childContextTypes:function(e,t){e.childContextTypes=o({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=o({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=o({},e.propTypes,t)},statics:function(e,t){c(e,t)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0}},w={componentWillUnmount:function(){this.__isMounted=!1}},O={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},P=function(){};return o(P.prototype,e.prototype,O),b}var o=a(96),l=a(97),i=a(50),s="mixins";e.exports=n},function(e,t,a){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
|
15 |
object-assign
|
16 |
(c) Sindre Sorhus
|
17 |
@license MIT
|
18 |
*/
|
19 |
+
var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,i,s=r(e),u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var c in a)o.call(a,c)&&(s[c]=a[c]);if(n){i=n(a);for(var p=0;p<i.length;p++)l.call(a,i[p])&&(s[i[p]]=a[i[p]])}}return s}},function(e,t,a){"use strict";var r={};e.exports=r},function(e,t,a){"use strict";function r(e){return o.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n)},,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateSetting=function(e,t){return function(a){window.forminatorChanges.settings=!0,a({type:"UPDATE_SETTING",setting:e,value:t})}},t.updateSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_SETTINGS",settings:e})}},t.saveBuilder=function(e,t){return function(a){window.forminatorChanges={fields:[],settings:!1,saved:!0},a({type:"UPDATE_SETTING",setting:e,value:t})}}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.radioClass)?"sui-radio":"sui-radio "+this.props.radioClass,a=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],r=s.default.Children.map(this.props.children,function(r){var n="",o=_.isUndefined(r.props.label)?r.props.children:r.props.label;return r.props.image1x&&r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,srcSet:forminatorData.imagesUrl+"/"+r.props.image1x+" 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.image1x&&!r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},n,s.default.createElement("span",{className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,value:r.props.value,id:"forminator-field-"+r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))):r.props.hasImage?void 0:s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,id:"forminator-field-"+r.props.value,value:r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))}),n=s.default.Children.map(this.props.children,function(t){return"true"===e.props.radioContent&&"Empty"!==t.type.name?s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t):s.default.createElement(s.default.Fragment,null)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l="";this.props.description&&""!==this.props.description&&(l=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.description));var i="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(i=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var u="";return this.props.settingsDesc&&""!==this.props.settingsDesc&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc)),this.props.noWrapper?r:s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{role:"radiogroup",className:"sui-form-field"},o,i,l,u,r,n))}}]),t}(i.Component);t.default=u},,,function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",a=arguments[1],l=a||t+"Subscription",s=function(e){function a(o,l){r(this,a);var i=n(this,e.call(this,o,l));return i[t]=o.store,i}return o(a,e),a.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[l]=null,e},a.prototype.render=function(){return i.Children.only(this.props.children)},a}(i.Component);return s.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},s.childContextTypes=(e={},e[t]=c.a.isRequired,e[l]=c.b,e),s}t.a=l;var i=a(0),s=(a.n(i),a(7)),u=a.n(s),c=a(57);a(35);t.b=l()},function(e,t,a){"use strict";function r(){}var n=a(106);e.exports=function(){function e(e,t,a,r,o,l){if(l!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return a.checkPropTypes=r,a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(){var e=[],t=[];return{clear:function(){t=o,e=o},notify:function(){for(var a=e=t,r=0;r<a.length;r++)a[r]()},get:function(){return t},subscribe:function(a){var r=!0;return t===e&&(t=e.slice()),t.push(a),function(){r&&e!==o&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(a),1))}}}}a.d(t,"a",function(){return i});var o=null,l={notify:function(){}},i=function(){function e(t,a,n){r(this,e),this.store=t,this.parentSub=a,this.onStateChange=n,this.unsubscribe=null,this.listeners=l}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=n())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}()},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a){for(var r=t.length-1;r>=0;r--){var n=t[r](e);if(n)return n}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+r.wrappedComponentName+".")}}function o(e,t){return e===t}var l=a(58),i=a(109),s=a(110),u=a(123),c=a(124),p=a(125),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,a=void 0===t?l.a:t,d=e.mapStateToPropsFactories,h=void 0===d?u.a:d,m=e.mapDispatchToPropsFactories,b=void 0===m?s.a:m,y=e.mergePropsFactories,v=void 0===y?c.a:y,g=e.selectorFactory,E=void 0===g?p.a:g;return function(e,t,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=s.pure,c=void 0===u||u,p=s.areStatesEqual,d=void 0===p?o:p,m=s.areOwnPropsEqual,y=void 0===m?i.a:m,g=s.areStatePropsEqual,_=void 0===g?i.a:g,w=s.areMergedPropsEqual,O=void 0===w?i.a:w,P=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=n(e,h,"mapStateToProps"),j=n(t,b,"mapDispatchToProps"),k=n(l,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:j,initMergeProps:k,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},P))}}()},function(e,t,a){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function n(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(var l=0;l<a.length;l++)if(!o.call(t,a[l])||!r(e[a[l]],t[a[l]]))return!1;return!0}t.a=n;var o=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(i.b)(e,"mapDispatchToProps"):void 0}function n(e){return e?void 0:Object(i.a)(function(e){return{dispatch:e}})}function o(e){return e&&"object"==typeof e?Object(i.a)(function(t){return Object(l.bindActionCreators)(e,t)}):void 0}var l=a(9),i=a(60);t.a=[r,n,o]},function(e,t,a){"use strict";(function(e,r){var n,o=a(113);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var l=Object(o.a)(n);t.a=l}).call(t,a(56),a(112)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,a){"use strict";function r(e){var t,a=e.Symbol;return"function"==typeof a?a.observable?t=a.observable:(t=a("observable"),a.observable=t):t="@@observable",t}t.a=r},function(e,t,a){"use strict";function r(e){if(!Object(l.a)(e)||Object(n.a)(e)!=i)return!1;var t=Object(o.a)(e);if(null===t)return!0;var a=p.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&c.call(a)==f}var n=a(115),o=a(120),l=a(122),i="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,a){"use strict";function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?Object(o.a)(e):Object(l.a)(e)}var n=a(62),o=a(118),l=a(119),i="[object Null]",s="[object Undefined]",u=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";var r=a(117),n="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||n||Function("return this")();t.a=o},function(e,t,a){"use strict";(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.a=a}).call(t,a(56))},function(e,t,a){"use strict";function r(e){var t=l.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[s]=a:delete e[s]),n}var n=a(62),o=Object.prototype,l=o.hasOwnProperty,i=o.toString,s=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";function r(e){return o.call(e)}var n=Object.prototype,o=n.toString;t.a=r},function(e,t,a){"use strict";var r=a(121),n=Object(r.a)(Object.getPrototypeOf,Object);t.a=n},function(e,t,a){"use strict";function r(e,t){return function(a){return e(t(a))}}t.a=r},function(e,t,a){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(o.b)(e,"mapStateToProps"):void 0}function n(e){return e?void 0:Object(o.a)(function(){return{}})}var o=a(60);t.a=[r,n]},function(e,t,a){"use strict";function r(e,t,a){return i({},a,e,t)}function n(e){return function(t,a){var r=(a.displayName,a.pure),n=a.areMergedPropsEqual,o=!1,l=void 0;return function(t,a,i){var s=e(t,a,i);return o?r&&n(s,l)||(l=s):(o=!0,l=s),l}}}function o(e){return"function"==typeof e?n(e):void 0}function l(e){return e?void 0:function(){return r}}var i=(a(61),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e});t.a=[o,l]},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a,r){return function(n,o){return a(e(n,o),t(r,o),o)}}function o(e,t,a,r,n){function o(n,o){return h=n,m=o,b=e(h,m),y=t(r,m),v=a(b,y,m),d=!0,v}function l(){return b=e(h,m),t.dependsOnOwnProps&&(y=t(r,m)),v=a(b,y,m)}function i(){return e.dependsOnOwnProps&&(b=e(h,m)),t.dependsOnOwnProps&&(y=t(r,m)),v=a(b,y,m)}function s(){var t=e(h,m),r=!f(t,b);return b=t,r&&(v=a(b,y,m)),v}function u(e,t){var a=!p(t,m),r=!c(e,h);return h=e,m=t,a&&r?l():a?i():r?s():v}var c=n.areStatesEqual,p=n.areOwnPropsEqual,f=n.areStatePropsEqual,d=!1,h=void 0,m=void 0,b=void 0,y=void 0,v=void 0;return function(e,t){return d?u(e,t):o(e,t)}}function l(e,t){var a=t.initMapStateToProps,l=t.initMapDispatchToProps,i=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=a(e,s),c=l(e,s),p=i(e,s);return(s.pure?o:n)(u,c,p,e,s)}t.a=l;a(126)},function(e,t,a){"use strict";a(35)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(20),d=a(37),h=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.a)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,a){"use strict";var r=a(30),n=a.n(r),o=a(15),l=a.n(o),i=a(31),s=a(27),u=a(36),c=a(63),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},d=function(){try{return window.history.state||{}}catch(e){return{}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(c.b,"Browser history needs a DOM");var t=window.history,a=Object(c.g)(),r=!Object(c.h)(),o=e.forceRefresh,h=void 0!==o&&o,m=e.getUserConfirmation,b=void 0===m?c.c:m,y=e.keyLength,v=void 0===y?6:y,g=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",E=function(e){var t=e||{},a=t.key,r=t.state,o=window.location,l=o.pathname,u=o.search,c=o.hash,p=l+u+c;return n()(!g||Object(s.c)(p,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+p+'" to begin with "'+g+'".'),g&&(p=Object(s.e)(p,g)),Object(i.a)(p,r,a)},_=function(){return Math.random().toString(36).substr(2,v)},w=Object(u.a)(),O=function(e){f(q,e),q.length=t.length,w.notifyListeners(q.location,q.action)},P=function(e){Object(c.d)(e)||k(E(e.state))},x=function(){k(E(d()))},j=!1,k=function(e){if(j)j=!1,O();else{w.confirmTransitionTo(e,"POP",b,function(t){t?O({action:"POP",location:e}):N(e)})}},N=function(e){var t=q.location,a=S.indexOf(t.key);-1===a&&(a=0);var r=S.indexOf(e.key);-1===r&&(r=0);var n=a-r;n&&(j=!0,M(n))},C=E(d()),S=[C.key],T=function(e){return g+Object(s.b)(e)},F=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(o,"PUSH",b,function(e){if(e){var r=T(o),l=o.key,i=o.state;if(a)if(t.pushState({key:l,state:i},null,r),h)window.location.href=r;else{var s=S.indexOf(q.location.key),u=S.slice(0,-1===s?0:s+1);u.push(o.key),S=u,O({action:"PUSH",location:o})}else n()(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},D=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(o,"REPLACE",b,function(e){if(e){var r=T(o),l=o.key,i=o.state;if(a)if(t.replaceState({key:l,state:i},null,r),h)window.location.replace(r);else{var s=S.indexOf(q.location.key);-1!==s&&(S[s]=o.key),O({action:"REPLACE",location:o})}else n()(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},M=function(e){t.go(e)},A=function(){return M(-1)},V=function(){return M(1)},R=0,U=function(e){R+=e,1===R?(Object(c.a)(window,"popstate",P),r&&Object(c.a)(window,"hashchange",x)):0===R&&(Object(c.e)(window,"popstate",P),r&&Object(c.e)(window,"hashchange",x))},I=!1,L=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return I||(U(1),I=!0),function(){return I&&(I=!1,U(-1)),t()}},B=function(e){var t=w.appendListener(e);return U(1),function(){U(-1),t()}},q={length:t.length,action:"POP",location:C,createHref:T,push:F,replace:D,go:M,goBack:A,goForward:V,block:L,listen:B};return q};t.a=h},function(e,t,a){"use strict";function r(e){return"/"===e.charAt(0)}function n(e,t){for(var a=t,r=a+1,n=e.length;r<n;a+=1,r+=1)e[a]=e[r];e.pop()}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],o=t&&t.split("/")||[],l=e&&r(e),i=t&&r(t),s=l||i;if(e&&r(e)?o=a:a.length&&(o.pop(),o=o.concat(a)),!o.length)return"/";var u=void 0;if(o.length){var c=o[o.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=o.length;f>=0;f--){var d=o[f];"."===d?n(o,f):".."===d?(n(o,f),p++):p&&(n(o,f),p--)}if(!s)for(;p--;p)o.unshift("..");!s||""===o[0]||o[0]&&r(o[0])||o.unshift("");var h=o.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}t.a=o},function(e,t,a){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,a){return r(e,t[a])});var a=void 0===e?"undefined":n(e);if(a!==(void 0===t?"undefined":n(t)))return!1;if("object"===a){var o=e.valueOf(),l=t.valueOf();if(o!==e||l!==t)return r(o,l);var i=Object.keys(e),s=Object.keys(t);return i.length===s.length&&i.every(function(a){return r(e[a],t[a])})}return!1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,a){"use strict";var r=a(30),n=a.n(r),o=a(15),l=a.n(o),i=a(31),s=a(27),u=a(36),c=a(63),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Object(s.f)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s.f,decodePath:s.a},slash:{encodePath:s.a,decodePath:s.a}},d=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},m=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(c.b,"Hash history needs a DOM");var t=window.history,a=Object(c.f)(),r=e.getUserConfirmation,o=void 0===r?c.c:r,b=e.hashType,y=void 0===b?"slash":b,v=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",g=f[y],E=g.encodePath,_=g.decodePath,w=function(){var e=_(d());return n()(!v||Object(s.c)(e,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+v+'".'),v&&(e=Object(s.e)(e,v)),Object(i.a)(e)},O=Object(u.a)(),P=function(e){p(z,e),z.length=t.length,O.notifyListeners(z.location,z.action)},x=!1,j=null,k=function(){var e=d(),t=E(e);if(e!==t)m(t);else{var a=w(),r=z.location;if(!x&&Object(i.b)(r,a))return;if(j===Object(s.b)(a))return;j=null,N(a)}},N=function(e){if(x)x=!1,P();else{O.confirmTransitionTo(e,"POP",o,function(t){t?P({action:"POP",location:e}):C(e)})}},C=function(e){var t=z.location,a=D.lastIndexOf(Object(s.b)(t));-1===a&&(a=0);var r=D.lastIndexOf(Object(s.b)(e));-1===r&&(r=0);var n=a-r;n&&(x=!0,R(n))},S=d(),T=E(S);S!==T&&m(T);var F=w(),D=[Object(s.b)(F)],M=function(e){return"#"+E(v+Object(s.b)(e))},A=function(e,t){n()(void 0===t,"Hash history cannot push state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"PUSH",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);if(d()!==r){j=t,h(r);var o=D.lastIndexOf(Object(s.b)(z.location)),l=D.slice(0,-1===o?0:o+1);l.push(t),D=l,P({action:"PUSH",location:a})}else n()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),P()}})},V=function(e,t){n()(void 0===t,"Hash history cannot replace state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"REPLACE",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(j=t,m(r));var n=D.indexOf(Object(s.b)(z.location));-1!==n&&(D[n]=t),P({action:"REPLACE",location:a})}})},R=function(e){n()(a,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return R(-1)},I=function(){return R(1)},L=0,B=function(e){L+=e,1===L?Object(c.a)(window,"hashchange",k):0===L&&Object(c.e)(window,"hashchange",k)},q=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return q||(B(1),q=!0),function(){return q&&(q=!1,B(-1)),t()}},$=function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}},z={length:t.length,action:"POP",location:F,createHref:M,push:A,replace:V,go:R,goBack:U,goForward:I,block:W,listen:$};return z};t.a=b},function(e,t,a){"use strict";var r=a(30),n=a.n(r),o=a(27),l=a(31),i=a(36),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c=function(e,t,a){return Math.min(Math.max(e,t),a)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,a=e.initialEntries,r=void 0===a?["/"]:a,p=e.initialIndex,f=void 0===p?0:p,d=e.keyLength,h=void 0===d?6:d,m=Object(i.a)(),b=function(e){u(C,e),C.length=C.entries.length,m.notifyListeners(C.location,C.action)},y=function(){return Math.random().toString(36).substr(2,h)},v=c(f,0,r.length-1),g=r.map(function(e){return"string"==typeof e?Object(l.a)(e,void 0,y()):Object(l.a)(e,void 0,e.key||y())}),E=o.b,_=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(l.a)(e,a,y(),C.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=C.index,a=t+1,n=C.entries.slice(0);n.length>a?n.splice(a,n.length-a,r):n.push(r),b({action:"PUSH",location:r,index:a,entries:n})}})},w=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(l.a)(e,a,y(),C.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(C.entries[C.index]=r,b({action:"REPLACE",location:r}))})},O=function(e){var a=c(C.index+e,0,C.entries.length-1),r=C.entries[a];m.confirmTransitionTo(r,"POP",t,function(e){e?b({action:"POP",location:r,index:a}):b()})},P=function(){return O(-1)},x=function(){return O(1)},j=function(e){var t=C.index+e;return t>=0&&t<C.entries.length},k=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},N=function(e){return m.appendListener(e)},C={length:g.length,action:"POP",location:g[v],index:v,entries:g,createHref:E,push:_,replace:w,go:O,goBack:P,goForward:x,canGo:j,block:k,listen:N};return C};t.a=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(20),d=a(37),h=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.b)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=h},function(e,t,a){"use strict";var r=a(135);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(20),d=a(38),h=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.d)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),o=a.n(n),l=a(7),i=a.n(l),s=a(65),u=a(64),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e){var t=e.to,a=e.exact,n=e.strict,l=e.location,i=e.activeClassName,f=e.className,d=e.activeStyle,h=e.style,m=e.isActive,b=e["aria-current"],y=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),v="object"===(void 0===t?"undefined":p(t))?t.pathname:t,g=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(s.a,{path:g,exact:a,strict:n,location:l,children:function(e){var a=e.location,r=e.match,n=!!(m?m(r,a):r);return o.a.createElement(u.a,c({to:t,className:n?[f,i].filter(function(e){return e}).join(" "):f,style:n?c({},h,d):h,"aria-current":n&&b||null},y))}})};f.propTypes={to:u.a.propTypes.to,exact:i.a.bool,strict:i.a.bool,location:i.a.object,activeClassName:i.a.string,className:i.a.string,activeStyle:i.a.object,style:i.a.object,isActive:i.a.func,"aria-current":i.a.oneOf(["page","step","location","date","time","true"])},f.defaultProps={activeClassName:"active","aria-current":"page"},t.a=f},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,a){"use strict";var r=a(139);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(15),p=a.n(c),f=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.a.Component);f.propTypes={when:u.a.bool,message:u.a.oneOfType([u.a.func,u.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:u.a.shape({history:u.a.shape({block:u.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,a){"use strict";var r=a(141);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(15),d=a.n(f),h=a(20),m=a(68),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},y=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(h.c)(e.to),a=Object(h.c)(this.props.to);if(Object(h.f)(t,a))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+a.pathname+a.search+'"');this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,a=e.to;return t?"string"==typeof a?Object(m.a)(a,t.params):b({},a,{pathname:Object(m.a)(a.pathname,t.params)}):a},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,a=this.computeTo(this.props);t?e.push(a):e.replace(a)},t.prototype.render=function(){return null},t}(i.a.Component);y.propTypes={computedMatch:u.a.object,push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired}).isRequired,staticContext:u.a.object}).isRequired},t.a=y},function(e,t,a){"use strict";var r=a(143);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(17),s=a.n(i),u=a(15),c=a.n(u),p=a(0),f=a.n(p),d=a(7),h=a.n(d),m=a(20),b=a(38),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=function(e){return"/"===e.charAt(0)?e:"/"+e},g=function(e,t){return e?y({},t,{pathname:v(e)+t.pathname}):t},E=function(e,t){if(!e)return t;var a=v(e);return 0!==t.pathname.indexOf(a)?t:y({},t,{pathname:t.pathname.substr(a.length)})},_=function(e){return"string"==typeof e?e:Object(m.e)(e)},w=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},O=function(){},P=function(e){function t(){var a,r,l;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=o(this,e.call.apply(e,[this].concat(s))),r.createHref=function(e){return v(r.props.basename+_(e))},r.handlePush=function(e){var t=r.props,a=t.basename,n=t.context;n.action="PUSH",n.location=g(a,Object(m.c)(e)),n.url=_(n.location)},r.handleReplace=function(e){var t=r.props,a=t.basename,n=t.context;n.action="REPLACE",n.location=g(a,Object(m.c)(e)),n.url=_(n.location)},r.handleListen=function(){return O},r.handleBlock=function(){return O},l=a,o(r,l)}return l(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){s()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,a=(e.context,e.location),n=r(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:E(t,Object(m.c)(a)),push:this.handlePush,replace:this.handleReplace,go:w("go"),goBack:w("goBack"),goForward:w("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(b.a,y({},n,{history:o}))},t}(f.a.Component);P.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},P.defaultProps={basename:"",location:"/"},P.childContextTypes={router:h.a.object.isRequired},t.a=P},function(e,t,a){"use strict";var r=a(145);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(15),d=a.n(f),h=a(39),m=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,a=this.props.location||e.location,r=void 0,n=void 0;return i.a.Children.forEach(t,function(t){if(null==r&&i.a.isValidElement(t)){var o=t.props,l=o.path,s=o.exact,u=o.strict,c=o.sensitive,p=o.from,f=l||p;n=t,r=Object(h.a)(a.pathname,{path:f,exact:s,strict:u,sensitive:c},e.match)}}),r?i.a.cloneElement(n,{location:a,computedMatch:r}):null},t}(i.a.Component);m.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},m.propTypes={children:u.a.node,location:u.a.object},t.a=m},function(e,t,a){"use strict";var r=a(68);t.a=r.a},function(e,t,a){"use strict";var r=a(39);t.a=r.a},function(e,t,a){"use strict";var r=a(149);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),o=a.n(n),l=a(7),i=a.n(l),s=a(59),u=a.n(s),c=a(66),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f=function(e){var t=function(t){var a=t.wrappedComponentRef,n=r(t,["wrappedComponentRef"]);return o.a.createElement(c.a,{children:function(t){return o.a.createElement(e,p({},n,t,{ref:a}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},u()(t,e)};t.a=f},function(e,t,a){"use strict";function r(e){return function(t){var a=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(a,r,e):t(n)}}}}Object.defineProperty(t,"__esModule",{value:!0});var n=r();n.withExtraArgument=r,t.default=n},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(33),f=r(p),d=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={form:{shortcode:"forminator_form",type:"custom_form",processAction:forminatorData.adminUrl+"admin.php?page=forminator-cform",processNonce:forminatorData.formProcessNonce,exportNonce:forminatorData.formExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_forms&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open form options")},poll:{shortcode:"forminator_poll",type:"poll",processAction:forminatorData.adminUrl+"admin.php?page=forminator-poll",processNonce:forminatorData.pollProcessNonce,exportNonce:forminatorData.pollExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_polls&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open poll options")},quiz:{shortcode:"forminator_quiz",type:"quiz",processAction:forminatorData.adminUrl+"admin.php?page=forminator-quiz",processNonce:forminatorData.quizProcessNonce,exportNonce:forminatorData.quizExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_quizzes&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open quiz options")}};return a.copyToClipboard=a.copyToClipboard.bind(a),a.resetTrackingData=a.resetTrackingData.bind(a),a.data=r[a.props.type],a}return l(t,e),i(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new f.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"resetTrackingData",value:function(){var e={action:"forminator_reset_tracking_data",_ajax_nonce:forminatorData.resetTrackingDataNonce,id:this.props.id};this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e){var t=e.success?"success":"error",a=e.data||(0,c.translate)("Something went wrong.");new f.default({type:t,text:a,time:4e3}).open()}})}},{key:"render",value:function(){var e=this,t=this.data.processAction+"&export=true&module_id="+this.props.id+"&exportnonce="+this.data.exportNonce+"&module_type="+this.data.type,a=this.data.processAction+"&delete=true&module_id="+this.props.id+"&nonce="+this.data.processNonce+"&module_type="+this.data.type,r=(0,c.translate)("Create New Form");return"poll"===this.props.type&&(r=(0,c.translate)("Create New Poll")),"quiz"===this.props.type&&(r=(0,c.translate)("Create New Quiz")),u.default.createElement(u.default.Fragment,null,u.default.createElement("input",{type:"text",defaultValue:"["+this.data.shortcode+' id="'+this.props.id+'"]',id:"forminator-form-shortcode",style:{position:"absolute",top:"-1500px"},"aria-hidden":"true",ref:function(t){return e.input=t}}),u.default.createElement("div",{className:"true"===this.props.hasLead?"sui-dropdown fui-dropdown-soon":"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor","aria-label":"Dropdown"},u.default.createElement("span",{className:"sui-icon-widget-settings-config sui-md","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},this.data.dropdownLabel)),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.copyToClipboard},u.default.createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),(0,c.translate)("Copy Shortcode"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",href:this.data.submissions},u.default.createElement("span",{className:"sui-icon-community-people","aria-hidden":"true"}),(0,c.translate)("View Submissions"))),u.default.createElement("li",null,u.default.createElement("form",{method:"post",action:this.data.processAction},u.default.createElement("input",{type:"hidden",name:"forminator_action",value:"clone"}),u.default.createElement("input",{type:"hidden",name:"id",value:this.props.id}),u.default.createElement("input",{type:"hidden",id:"forminatorNonce",name:"forminatorNonce",value:forminatorData.cloneNonce}),u.default.createElement("input",{type:"hidden",name:"forminatorRedirect",value:"false"}),"true"===this.props.hasLead&&u.default.createElement("button",{type:"submit",disabled:"disabled",className:"fui-button-with-tag sui-tooltip sui-tooltip-left sui-constrained","data-tooltip":(0,c.translate)("Duplicate isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Duplicate")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),"true"!==this.props.hasLead&&u.default.createElement("button",{type:"submit"},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),(0,c.translate)("Duplicate")))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",onClick:this.resetTrackingData},u.default.createElement("span",{className:"sui-icon-update","aria-hidden":"true"}),(0,c.translate)("Reset Tracking Data"))),u.default.createElement("li",null,"true"===this.props.hasLead&&u.default.createElement("a",{href:"#",className:"fui-button-with-tag sui-tooltip sui-tooltip-left","data-tooltip":(0,c.translate)("Export isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Export")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),"true"!==this.props.hasLead&&u.default.createElement("a",{className:"forminator-field-edit",href:t},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),(0,c.translate)("Export"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit sui-option-red",href:a},u.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete"))))),u.default.createElement("a",{href:forminatorData.dashboardUrl+"&createnew="+this.props.type,className:"sui-button-icon sui-tooltip sui-tooltip-bottom","data-tooltip":r},u.default.createElement("span",{className:"sui-icon-plus sui-md","aria-hidden":"true"})))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e){var t=new l(e),a=o(l.prototype.request,t);return n.extend(a,l.prototype,t),n.extend(a,t),a}var n=a(11),o=a(70),l=a(154),i=a(40),s=r(i);s.Axios=l,s.create=function(e){return r(n.merge(i,e))},s.Cancel=a(74),s.CancelToken=a(168),s.isCancel=a(73),s.all=function(e){return Promise.all(e)},s.spread=a(169),e.exports=s,e.exports.default=s},function(e,t){function a(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&a(e.slice(0,0))}/*!
|
20 |
* Determine if an object is a Buffer
|
21 |
*
|
22 |
* @author Feross Aboukhadijeh <https://feross.org>
|
23 |
* @license MIT
|
24 |
*/
|
|