index of
/
home
/
thefkyzp
/
easyloanly.com
/
wp-content
/
plugins
/
forminator
/
build
/
File: /home/thefkyzp/easyloanly.com/wp-content/plugins/forminator/build/form-scripts.js
!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=400)}([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(){return["page-break","paypal","stripe","signature","captcha","postdata","group"]}function p(){return["pdf-page-break","all-form-data"]}function f(){return{"behaviour-thankyou":T("Inline Message"),"behaviour-redirect":T("Redirect user to a URL"),"behaviour-hide":T("Hide form")}}function d(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function m(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("-");switch(t.type){case"page-break":case"rich-text":a.push(parseInt(n[2]));break;case"all-form-data":case"pdf-page-break":a.push(parseInt(n[3]));break;default:a.push(parseInt(n[1]))}}})});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function h(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 b(e){return e=e.trim().replace(/\s+|\//g,"-")}function y(e){return null===e}function v(e,t){var a=0;return!!y(t)||(t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0)}function g(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function E(e,t){var a=[];return g(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 w(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function O(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function P(e,t,a,n,o){o=o||[];var l=[].concat(r(n),[{fields:o}]),i=m(e.type,l);return _.extend(e,{element_id:e.type+"-"+i,formID:t,cols:a})}function k(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=m(r.type,t),o={element_id:r.type+"-"+n,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:a};return _.contains(["calculation","number","slider","radio","currency","select","checkbox"],r.type)&&(o.hidden_behavior="zero"),_.extend(o,JSON.parse(JSON.stringify(r.defaults)))}function j(e){return e.type}function x(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function N(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function C(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function T(){return ue.default.translate.apply(null,arguments)}function S(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[T("None")]:a[0].variants}function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}function D(e,t){var a=t.value,r=void 0;if(e.hasOptions&&e.values.length>0){var n=void 0;if(n=_.where(e.values,{value:a})[0],n||(n=_.where(e.values,{label:a})[0]),!n)return;r=n.label}else r="date"===e.field_type&&["is_before","is_after"].includes(t.rule)?M(a):a;return _.isEmpty(r)?T("null"):r}function M(e){if(!isNaN(Number(e))){var t=new Date(1*e),a={day:"numeric",month:"numeric",year:"numeric"};e=t.toLocaleDateString("en-US",a)}return e}function A(e,t,a,r,n){var o=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]),Array.isArray(t)&&!ne(n)&&t.push("group");var l=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(l=!0),e.map(function(e){var a=e.fields,i=e.parent_group;a.map(function(e){if(_.isUndefined(r)){if(_.contains(t,e.type))return}else if(!_.contains(r,e.type))return;var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=F(a)):a=e.field_label,"name"!==e.type||ne(n)?"address"!==e.type||ne(n)?"slider"===e.type&&"range"===e.slider_type?o=o.concat(U(e,a,i)):"time"!==e.type||ne(n)?"date"===e.type&&"picker"!==e.field_type&&!1===l||o.push({element_id:e.element_id,parent_group:i,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:W(e),hasOptions:q(e),hasCalcs:L(e),formula:B(e),isNumber:I(e),fieldData:e}):o=o.concat(H(e,a,i)):o=o.concat(z(e,a,i)):o=o.concat(R(e,a,i)),"date"!==e.type||"picker"===e.field_type||ne(n)||(o=o.concat(V(e,a,i)))})}),o}function V(e,t,a){var r=[],n=void 0;n=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+T("Day"):t+" - "+e.day_label;var o=void 0;o=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+T("Month"):t+" - "+e.month_label;var l=void 0;return l=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+T("Year"):t+" - "+e.year_label,"input"===e.field_type?r.push({element_id:e.element_id+"-day",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-day",label:n,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-year",label:l,values:!1,hasOptions:!1,isNumber:!0}):r.push({element_id:e.element_id+"-day",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-day",label:n,values:W(e),hasOptions:q(e),isNumber:I(e)},{element_id:e.element_id+"-month",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:W(e),hasOptions:q(e),isNumber:I(e)},{element_id:e.element_id+"-year",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-year",label:l,values:W(e),hasOptions:q(e),isNumber:I(e)}),r}function R(e,t,a){var r=[];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(n){if("true"===e[n.attr]||!0===e[n.attr]){var o=void 0;o=_.isUndefined(e[n.label])||_.isEmpty(e[n.label])?t+" - ":t+" - "+e[n.label],r.push({element_id:e.element_id+"-"+n.element_suffix,parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-"+n.element_suffix,label:o,values:n.values,hasOptions:n.hasOptions,isNumber:n.isNumber})}}):r.push({element_id:e.element_id,parent_group:a,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:W(e),hasOptions:q(e),isNumber:I(e)}),r}function U(e,t,a){var r=[];return[{suffix:"min"},{suffix:"max"}].map(function(n){r.push({element_id:e.element_id+"-"+n.suffix,parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-"+n.suffix,label:t+" - "+n.suffix,isNumber:!0,hasCalcs:L(e)})}),r}function I(e){return!!_.contains(["calculation","number","slider","phone","currency"],e.type)}function L(e){return"true"===e.calculations||!0===e.calculations}function B(e){return!!e.formula&&e.formula}function q(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function W(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function z(e,t,a){var r=[];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(n){if(ne(e[n.attr])){var o=void 0;o=_.isUndefined(e[n.label])||_.isEmpty(e[n.label])?t+" - ":t+" - "+e[n.label],r.push({element_id:e.element_id+"-"+n.element_suffix,parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-"+n.element_suffix,label:o,values:n.values,hasOptions:n.hasOptions,isNumber:n.isNumber})}}),r}function H(e,t,a){var r=[],n=void 0;n=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+T("Hour"):t+" - "+e.hh_label;var o=void 0;return o=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+T("Minute"):t+" - "+e.mm_label,r.push({element_id:e.element_id+"-hours",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:n,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",parent_group:a,required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:o,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&r.push({element_id:e.element_id+"-ampm",parent_group:a,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}),r}function $(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 Y(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":return T("is");case"is_not":return T("is not");case"day_is":return T("day is");case"day_is_not":return T("day is not");case"month_is_not":return T("month is not");case"month_is":return T("month is");case"is_before":return T("is before");case"is_after":return T("is after");case"is_before_n_or_more_days":return T("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return T("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return T("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return T("is after less than %s days from current date").replace("%s",r);case"is_great":return T("is greater than");case"is_less":return T("is less than");case"contains":return T("contains");case"starts":return T("starts with");case"ends":return T("ends with");case"is_correct":return T("is correct");case"is_incorrect":return T("is incorrect");case"is_final_result":return T("is final result");case"is_not_final_result":return T("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 G(){"object"===ie(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function K(e){var t="none";return ie(e["results-behav"])&&ie(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function J(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),A(e,t)}function X(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 Z(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 ee(e,t,a,r){var n=0;return!!y(e)||(e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0)}function te(e){var t=0;return!!y(e)||(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 ae(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}function re(e,t){var a=[];return _.each(t,function(t,r){if(t.amount_type&&t.plan_name||(e.error=T("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),"single"===t.payment_method&&("fixed"===t.amount_type&&_.isEmpty(t.amount)||"variable"===t.amount_type&&_.isEmpty(t.variable)))e.error=T("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r);else if("subscription"===t.payment_method){var n=_.isUndefined(t.subscription_amount_type)?"fixed":t.subscription_amount_type,o=_.isUndefined(t.quantity_type)?"fixed":t.quantity_type,l=_.isUndefined(t.quantity)?1:t.quantity,i=_.isUndefined(t.bill_input)?1:t.bill_input;("fixed"===n&&_.isEmpty(t.subscription_amount)||"variable"===n&&_.isEmpty(t.subscription_variable))&&(e.error=T("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),("fixed"===o&&!l||"variable"===o&&_.isEmpty(t.variable_quantity))&&(e.error=T("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),i?i<=0&&(e.error=T("Billing frequency should be greater than or equal to 1"),e.isValid=!1,a.push(r)):(e.error=T("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r))}}),a.length>0&&(e.paymentKey=a),e}function ne(e){if(void 0===e)return!1;switch("string"==typeof e&&(e=e.trim().toLowerCase()),e){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;default:return!1}}function oe(){for(var e={},t=location.search.substring(1).split("&"),a=0;a<t.length;a++){var r=t[a].split("=");e[r[0]]=decodeURIComponent(r[1])}return e}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";window.open(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var ie="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.restrictedGroupFields=c,t.lonerFields=p,t.getSubmissionBehaviors=f,t.countFieldsByType=d,t.getMaxIDByType=m,t.getMaxID=h,t.generateValue=b,t.hasFieldType=v,t.getFieldsByType=g,t.mapFieldsByType=E,t.getFieldLabel=w,t.fieldExist=O,t.buildFieldObject=P,t.buildFieldObjectFromSlug=k,t.getFieldType=j,t.getForminatorField=x,t.insertInPosition=N,t.replaceInPosition=C,t.translate=T,t.getFontVariants=S,t.ucfirst=F,t.getConditionLabel=D,t.convertTimestamp=M,t.getFields=A,t.getDateFields=V,t.getNameFields=R,t.getRangeSliderFields=U,t.fieldHasNumber=I,t.fieldHasCalcs=L,t.fieldFormula=B,t.fieldHasOptions=q,t.getFieldValues=W,t.getAddressFields=z,t.getTimeFields=H,t.getFieldAutofillProviders=$,t.getRuleLabel=Y,t.isEmailWp=Q,t.suiDelegateEvents=G,t.getChartType=K,t.getCalculationFields=J,t.select2Tags=X,t.isFieldRequired=Z,t.hasFieldWithAttribute=ee,t.hasPostdataFieldWithMultiselect=te,t.getPersonalityQuestions=ae,t.getPlanValidation=re,t.isTrue=ne,t.parseQueryString=oe,t.goToLink=le;var se=a(51),ue=function(e){return e&&e.__esModule?e:{default:e}}(se)},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="sui-form-control";_.isUndefined(this.props.inputClass)||""===this.props.inputClass||(i+=" "+this.props.inputClass),_.isUndefined(this.props.prefix)||""===this.props.prefix||(i+=" sui-field-has-prefix"),_.isUndefined(this.props.suffix)||""===this.props.suffix||(i+=" sui-field-has-suffix");var 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.step&&{step:this.props.step},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,!_.isUndefined(this.props.prefix)&&""!==this.props.prefix&&u.default.createElement("span",{className:"sui-field-prefix"},this.props.prefix),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=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){"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="";if(this.props.settingsLabel&&""!==this.props.settingsLabel){var i=this.props.labelClass?this.props.labelClass:"sui-settings-label";l=s.default.createElement("label",{className:i},this.props.settingsLabel)}var u="";this.props.description&&""!==this.props.description&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:10}},this.props.description));var c=_.isUndefined(this.props.wrapperClass)?"":this.props.wrapperClass;c=this.props.basicTabs?"sui-tabs sui-tabs-overflow "+c:"sui-side-tabs "+c;var p=s.default.createElement("div",{className:c},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(p=s.default.createElement("div",{className:"sui-form-field"},l,o,u,s.default.createElement("div",{className:c},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),p}}]),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});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){e.exports=a(115)()},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(e){if("object"!==(void 0===e?"undefined":m(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=h(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.");h=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":m(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 h=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":m(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":m(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),h({},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(121),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},m="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},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}},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";Object.defineProperty(t,"__esModule",{value:!0});var r=a(114),n=a(66),o=a(118);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){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 m(e){return"[object Function]"===P.call(e)}function h(e){return c(e)&&m(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(77),O=a(161),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:m,isStream:h,isURLSearchParams:b,isStandardBrowserEnv:v,forEach:g,merge:E,extend:_,trim:y}},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"+(!0===this.props.labelDark?" sui-dark":"")},this.props.label));var a="",r=10;_.isUndefined(this.props.descriptionSpacing)||""===this.props.descriptionSpacing||(r=this.props.descriptionSpacing),_.isUndefined(this.props.description)||""===this.props.description||(a=!1===this.props.sidebar?s.default.createElement("span",{className:"sui-description",style:{marginBottom:r+"px"}},this.props.description):s.default.createElement("span",{className:"sui-description"},this.props.description));var n="";(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(n=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a));var o=this.props.lastChild?{marginBottom:0,borderBottom:"unset"}:{};return s.default.createElement("div",{className:"sui-box-settings-row",style:o},(_.isUndefined(this.props.sidebar)||!1!==this.props.sidebar)&&n,s.default.createElement("div",{className:"sui-box-settings-col-2"},!_.isUndefined(this.props.sidebar)&&!1===this.props.sidebar&&t,!_.isUndefined(this.props.sidebar)&&!1===this.props.sidebar&&a,e))}}]),t}(i.Component);t.default=u},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)}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=function(e){return e&&e.__esModule?e:{default:e}}(u),p=function(e){function t(e){n(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 l(t,e),s(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=this.$el.closest(".sui-modal-content"),t=e.attr("id"),a=this.props.hasSearch?0:-1,r=Object.assign({dropdownParent:e.length?jQuery("#"+t):jQuery('body[class*="sui-"]'),minimumResultsForSearch:a,dropdownCssClass:this.$el.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"",width:"100%"},this.props.options);if("function"==typeof this.$el.SUIselect2)this.$el.SUIselect2(r);else{if("function"!=typeof this.$el.FUIselect2)throw Error("SUI Select2 not initiated");this.$el.FUIselect2(r)}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,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o=void 0;this.props.label&&(o=c.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",this.props.required&&c.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&c.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l=this.props.multiple,s=this.props,u=(s.formType,s.updateProperty,s.noWrapper,s.fieldClass,s.staticContext,s.formDesign,s.fieldSize,r(s,["formType","updateProperty","noWrapper","fieldClass","staticContext","formDesign","fieldSize"])),p=c.default.createElement("select",i({id:"forminator-field-"+n,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:l},u),this.props.children),f=c.default.createElement("select",{id:"forminator-field-"+n,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:l},this.props.children);return"md"===this.props.fieldsize||"medium"===this.props.fieldsize?f=c.default.createElement("div",{className:"sui-form-field sui-input-md"},p):"sm"===this.props.fieldsize||"small"===this.props.fieldsize?f=c.default.createElement("div",{className:"sui-form-field sui-input-sm"},p):_.isUndefined(this.props.fieldsize)||""===this.props.fieldsize||(f=c.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldsize+"px"}},p)),this.props.noWrapper?p:c.default.createElement("div",{className:a},o,f,this.props.description&&c.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),t}(u.Component);t.default=p},function(e,t,a){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function n(e){return e.replace(/"/g,""")}function o(e){return e.replace(/</g,"<")}function l(e){return Object(c.a)(n(r(e)))}function i(e){return o(r(e))}function s(e){return o(e.replace(/&/g,"&"))}function u(e){return!p.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeAmpersand=r,t.escapeQuotationMark=n,t.escapeLessThan=o,t.escapeAttribute=l,t.escapeHTML=i,t.escapeEditableHTML=s,t.isValidAttributeName=u;var c=a(187);const p=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},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=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),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))),_.isUndefined(t)||"phone_national_country"!==this.props.property&&"phone_international_country"!==this.props.property||(t=t.toLowerCase());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},style:{maxWidth:"none"}},this.props.children),i=l;"md"===this.props.fieldsize||"medium"===this.props.fieldsize?i=s.default.createElement("div",{className:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldsize||"small"===this.props.fieldsize?i=s.default.createElement("div",{className:"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=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){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.radioContainer=u.default.createRef(),a}return o(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$radioContainer=jQuery(this.radioContainer),this.$radioContainer.hasClass("time_type")&&this.$radioContainer.on("click",".forminator-toggle:not(.active)",function(t){e.props.timeType(jQuery(t.currentTarget).data("val"))})}},{key:"componentWillUnmount",value:function(){this.$radioContainer.off("click",this.updateValue).removeData()}},{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"},{"data-val":a.props.value,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 "+this.props.property,style:this.props.description&&{marginBottom:"5px"},ref:function(t){return e.radioContainer=t}},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";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function i(e,t){if(null==e)return{};var a,r,n=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"ButtonIcon",function(){return c});var s=a(0),u=a.n(s),c=function(e){var t=e.label,a=e.icon,r=e.iconSize,n=e.design,l=void 0===n?"solid":n,s=e.color,c=e.className,p=e.loading,f=i(e,["label","icon","iconSize","design","color","className","loading"]),d=u.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),m=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"sui-icon-".concat(a).concat(r?" sui-"+r:""),"aria-hidden":"true"}),u.a.createElement("span",{className:"sui-screen-reader-text"},t));switch(c="sui-button-icon ".concat(c||""),s){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":c+=" sui-button-"+s;break;case"gray":default:c+=""}switch(l){case"ghost":case"outlined":c+=" sui-button-"+l;break;case"solid":default:c+=""}p&&(c+=" sui-button-onload");var h=f.href?"a":"button";return u.a.createElement(h,o({className:c,disabled:f.disabled||p},f),p?d:m)}},function(e,t){e.exports=ReactDOM},function(e,t,a){"use strict";var r=a(138);a.d(t,"a",function(){return r.a});var n=a(141);a.d(t,"b",function(){return n.a});var o=a(142);a.d(t,"d",function(){return o.a});var l=a(34);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=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("span",{className:"sui-toggle-label"},this.props.label)),this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)),l="";return this.props.children&&this.props.settings[this.props.property]&&(l=s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{tabIndex:"0",className:"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.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},o,l)}}]),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){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",{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";Object.defineProperty(t,"__esModule",{value:!0});var r=a(137);a.d(t,"BrowserRouter",function(){return r.a});var n=a(143);a.d(t,"HashRouter",function(){return n.a});var o=a(72);a.d(t,"Link",function(){return o.a});var l=a(144);a.d(t,"MemoryRouter",function(){return l.a});var i=a(146);a.d(t,"NavLink",function(){return i.a});var s=a(148);a.d(t,"Prompt",function(){return s.a});var u=a(150);a.d(t,"Redirect",function(){return u.a});var c=a(73);a.d(t,"Route",function(){return c.a});var p=a(46);a.d(t,"Router",function(){return p.a});var f=a(152);a.d(t,"StaticRouter",function(){return f.a});var d=a(154);a.d(t,"Switch",function(){return d.a});var m=a(156);a.d(t,"generatePath",function(){return m.a});var h=a(157);a.d(t,"matchPath",function(){return h.a});var b=a(158);a.d(t,"withRouter",function(){return b.a})},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){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(500),d=r(f),m=a(20),h=r(m),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,["stripe","paypal","page-break","pagination","section","html"],{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),_.contains(["address","date","time","slider","name"],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.isPayment?this.props.updatePayment(this.props.counter,"conditions",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(h.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(h.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:"))));this.props.isPayment&&(t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Process this plan if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.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 conditions match:")))));var 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",{role:"alert",className:"sui-notice sui-notice-red sui-active fui-visibility-notice",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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"},this.props.isPayment?(0,p.translate)("Conditions"):(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"}),this.props.isPayment?(0,p.translate)("Add conditions"):(0,p.translate)("Add Rule")),c.default.createElement("p",null,!this.props.isPayment&&(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."),this.props.isPayment&&(0,p.translate)("Add conditions for how this plan will be processed based on your form field data.")))));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"},this.props.isPayment?(0,p.translate)("Conditions"):(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"}),this.props.isPayment?(0,p.translate)("Add conditions"):(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){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(".sui-floating-notices").length||jQuery("main.sui-wrap").prepend('<div class="sui-floating-notices"></div>'),jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery(".sui-floating-notices").append('<div role="alert" id="forminator-notification" class="sui-notice" aria-live="assertive"></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e="<p>"+this.props.text+"</p>",t={type:this.props.type||"default",autoclose:{timeout:this.props.time||5e3},dismiss:{show:this.props.dismiss||!1}};SUI.openNotice("forminator-notification",e,t)}},{key:"close",value:function(){SUI.closeNotice("forminator-notification")}}]),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(17),f=a(189),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.textEditor=u.default.createRef(),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),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),_.isUndefined(this.props.defaultValue)||this.updateValue(this.props.defaultValue),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,d.default.sanitize(e,{ADD_ATTR:["target"]})):this.props.actions.settingsActions.updateSetting(this.props.property,d.default.sanitize(e,{ADD_ATTR:["target"]}))}},{key:"toggleOptions",value:function(){this.state.editorOptionsOpen?this.setState({editorOptionsOpen:!1}):this.setState({editorOptionsOpen:!0})}},{key:"insertContent",value:function(e){if(this.editor.hidden){var t=jQuery(this.textEditor),a=t.prop("selectionStart"),r=t.prop("selectionEnd"),n=t.val();t.val(n.substring(0,a)+"{"+e+"}"+n.substring(r,n.length)),t.trigger("change")}else 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(),t=!_.isUndefined(this.props.excludeSubFields)&&this.props.excludeSubFields,a=this.props.wrappers;return _.isUndefined(this.props.enableParentForm)||_.isUndefined(forminatorData.parentFormFields)||(a=forminatorData.parentFormFields),(0,c.getFields)(a,e,void 0,void 0,t)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),a=!!_.isUndefined(this.props.allowRepeater)||this.props.allowRepeater,r=_.map(t,function(t,r){if(t.required&&(a||!a&&_.isEmpty(t.parent_group)))return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:r},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},(0,p.escapeHTML)(t.label)))}),n=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,o=_.map(t,function(t,r){if(!t.required&&n!==t.field_type&&(a||!a&&_.isEmpty(t.parent_group)))return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:r},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},(0,p.escapeHTML)(t.label)))});return u.default.createElement(u.default.Fragment,null,r&&r.some(function(e){return void 0!==e})&&u.default.createElement(u.default.Fragment,null,u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("strong",null,(0,c.translate)("Required Fields"))),u.default.createElement(u.default.Fragment,null,r)),o&&o.some(function(e){return void 0!==e})&&u.default.createElement(u.default.Fragment,null,u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("strong",null,(0,c.translate)("Optional Fields"))),u.default.createElement(u.default.Fragment,null,o)))}},{key:"getMiscData",value:function(){var e=this,t=_.isEmpty(this.props.editorOptions)?[]:this.props.editorOptions;return u.default.createElement(u.default.Fragment,null,u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("strong",null,(0,c.translate)("Misc Data"))),_.map(t,function(t,a){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=this.props.wrappers;_.isUndefined(this.props.enableParentForm)||_.isUndefined(forminatorData.parentFormFields)||(t=forminatorData.parentFormFields);var a=(0,c.getFieldsByType)("paypal",t),r=(0,c.getFieldsByType)("stripe",t),n=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(a)||!_.isEmpty(r))return u.default.createElement(u.default.Fragment,null,this.props.paymentOptions&&u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("strong",null,(0,c.translate)("Payment Data"))),_.map(n,function(t,a){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.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,c.translate)("Form Name")};return u.default.createElement("ul",{className:this.state.editorOptionsOpen?"sui-active":""},this.props.enableAllFormFields&&u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_fields")},(0,c.translate)("All Form Fields"))),this.props.enableAllNonFormFields&&u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_non_empty_fields")},(0,c.translate)("All Non Empty Fields"))),r,u.default.createElement(u.default.Fragment,null,this.props.mainOptionsLabel&&u.default.createElement("li",{className:"wpmudev-dropdown--option"},u.default.createElement("strong",null,this.props.mainOptionsLabel)),_.map(n,function(t,a){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.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=this.props.settings[this.props.property]||this.props.defaultValue||"",a=this.getEditorOptions(),r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=void 0;_.isEmpty(a)||(o=u.default.createElement("div",{className:"sui-editor-options"},u.default.createElement("button",{className:this.state.editorOptionsOpen?"sui-tooltip sui-active":"sui-tooltip","data-tooltip":_.isUndefined(this.props.tooltipLabel)?(0,c.translate)("Add form data"):this.props.tooltipLabel,onClick:this.toggleOptions},u.default.createElement("i",{className:"sui-icon-plus sui-sm","aria-hidden":"true"}),_.isUndefined(this.props.selectLabel)?(0,c.translate)("Insert form fields"):this.props.selectLabel),a));var l="";return this.props.label&&(l=u.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&&u.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),u.default.createElement("div",{className:"sui-form-field "+n},l,this.props.descriptionTop&&u.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),u.default.createElement("div",{className:"sui-editor"+(_.isEmpty(a)?"":" sui-editor-with-options")},o,u.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)},ref:function(t){return e.textEditor=t}})),this.props.isRequired&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(s.Component);t.default=m},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(){h&&d&&(h=!1,d.length?m=d.concat(m):b=-1,m.length&&i())}function i(){if(!h){var e=n(l);h=!0;for(var t=m.length;t;){for(d=m,m=[];++b<t;)d&&d[b].run();b=-1,t=m.length}d=null,h=!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,m=[],h=!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];m.push(new s(e,t)),1!==m.length||h||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,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(139),n=a(140),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(!(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:e.expanded||!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=!_.isUndefined(this.props.defaultContentRender)&&this.props.defaultContentRender,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("span",{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",{className:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?(o||a)&&l:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},(o||a)&&l),n)))}}]),t}(i.Component));t.default=u},,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 m(e,t,a){return e+t+a>>>0}function h(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 k(e,t,a){return(e<<32-a|t>>>a)>>>0}function j(e,t,a){return e>>>a}function x(e,t,a){return(e<<32-a|t>>>a)>>>0}var N=a(53),C=a(54);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=m,t.sum32_4=h,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=k,t.shr64_hi=j,t.shr64_lo=x},,function(e,t,a){e.exports=a(160)},function(e,t,a){"use strict";var r=a(178),n=a(179),o=a(83);e.exports={formats:o,parse:n,stringify: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){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,!_.isUndefined(this.props.tooltip)&&""!==this.props.tooltip&&s.default.createElement("span",{className:"sui-tooltip sui-tooltip-constrained",style:{marginLeft:10,verticalAlign:"middle","--tooltip-width":"165px"},"data-tooltip":this.props.tooltip},s.default.createElement("span",{className:"sui-icon-info","aria-hidden":"true",style:{pointerEvents:"none"}}))))}}]),t}(i.Component);t.default=u},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 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(15),d=r(f),m=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),s(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 c.default.createElement(d.default,{label:(0,p.translate)("Require"),labelDark:!0,description:(0,p.translate)("Force users to fill out this field, otherwise it will be optional."),descriptionSpacing:20,sidebar:!1},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"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,p.translate)("Optional")),c.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,p.translate)("Required"))),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},c.default.createElement("div",i({className:"sui-form-field"},!o&&!(t&&"select"===n)&&{style:{marginBottom:0}}),"password"===n&&c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Password error message")),"password"!==n&&c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Error message")),c.default.createElement("input",{type:"text",value:a,placeholder:(0,p.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&&c.default.createElement("div",i({className:"sui-form-field"},!(t&&"select"===n)&&{style:{marginBottom:0}}),c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Confirm Password error message")),c.default.createElement("input",{type:"text",value:r,placeholder:(0,p.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)}})),c.default.createElement("div",i({role:"alert",className:"sui-notice sui-notice-warning "+(t&&"select"===n?" sui-active":""),"aria-live":"assertive"},t&&"select"===n&&{style:{display:"block"}}),t&&"select"===n&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Options without a value will be treated as empty options")))))))))}}]),t}(u.Component);t.default=m},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(33),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(47);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(18),i=a.n(l),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(8),d=a.n(f),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},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.state={match:o.computeMatch(o.props.history.location.pathname)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:m({},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);h.propTypes={history:d.a.object.isRequired,children:d.a.node},h.contextTypes={router:d.a.object},h.childContextTypes={router:d.a.object.isRequired},t.a=h},function(e,t,a){"use strict";var r=a(75),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,m=f.keys,h=d.exec(e);if(!h)return null;var b=h[0],y=h.slice(1),v=e===b;return l&&!v?null:{path:n,url:"/"===n&&""===b?"/":b,isExact:v,params:m.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(13),o=a(163),l={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(78):void 0!==t&&(e=a(78)),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(31))},function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function i(e,t){if(null==e)return{};var a,r,n=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"Button",function(){return c});var s=a(0),u=a.n(s),c=function(e){var t=e.label,a=e.icon,r=e.design,n=void 0===r?"solid":r,l=e.color,s=e.className,c=e.loading,p=i(e,["label","icon","design","color","className","loading"]),f=u.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=u.a.createElement(u.a.Fragment,null,a&&""!==a&&u.a.createElement("span",{className:"sui-icon-"+a,"aria-hidden":"true"}),t);switch(s="sui-button".concat(s?" "+s:""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":s+=" sui-button-"+l;break;case"gray":default:s+=""}switch(n){case"ghost":case"outlined":s+=" sui-button-"+n;break;case"solid":default:s+=""}c&&(s+=" sui-button-onload");var m="button";return p.href?m="a":p.htmlFor&&(m="label"),u.a.createElement(m,o({className:s,disabled:p.disabled||c},p),c?f:d)}},function(e,t,a){var r=a(89),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(103)(n),$this:n,I18N: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=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),a.clearValue=a.clearValue.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.select.initVars(this.$el),this.updateValue=this.updateValue.bind(this);var t=this.$el.closest(".sui-form-field").hasClass("redirect-url");this.$el.on("change",function(a){var r=e.state.value+(t?"":" ")+a.target.value;e.updateValue(r.trim())}),this.clearValue(this.$el),this.$el.closest(".sui-form-field").hasClass("sui-variables-select-text")&&this.insertFormFields()}},{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:"clearValue",value:function(e){e.val(null).trigger("change")}},{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:"insertFormFields",value:function(){this.$el.next(".select2-container").find(".select2-selection").html((0,u.translate)("+ Insert form fields"))}},{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=_.isUndefined(this.props.customClass)?"":" "+this.props.customClass,l="",i="input",c="";"textarea"===this.props.type&&(i="textarea",c="textarea-type"),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)));var p=s.default.createElement(s.default.Fragment,null,"input"===i&&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"===i&&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}));return s.default.createElement("div",{className:"sui-form-field"+o+n},l,s.default.createElement("div",{className:"sui-insert-variables "+c},p,s.default.createElement("select",{className:"sui-variables",ref:function(t){return e.el=t}},this.props.children.length<=0&&s.default.createElement("optgroup",{label:(0,u.translate)("No available options")}),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){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&&!x.call(e,l)||o&&("length"==l||u(l,n))||a.push(l);return a}function o(e,t,a){var r=e[t];x.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function l(e){if(!p(e))return T(e);var t=[];for(var a in Object(e))x.call(e,a)&&"constructor"!=a&&t.push(a);return t}function i(e,t){return t=S(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=S(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||k.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?m(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 h(e)&&x.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==w)}function m(e){return null!=e&&y(e.length)&&!b(e)}function h(e){return g(e)&&m(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 m(e)?n(e):l(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",P="[object GeneratorFunction]",k=/^(?:0|[1-9]\d*)$/,j=Object.prototype,x=j.hasOwnProperty,N=j.toString,C=j.propertyIsEnumerable,T=function(e,t){return function(a){return e(t(a))}}(Object.keys,Object),S=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)||m(t))return void s(t,E(t),e);for(var a in t)x.call(t,a)&&o(e,a,t[a])});e.exports=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 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(63),f=r(p),d=a(232),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return l(t,e),s(t,[{key:"render",value:function(){var e=c.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!(!_.isUndefined(this.props.canClose)&&!1===this.props.canClose),n=_.isUndefined(this.props.closeType)||""===this.props.closeType?"":this.props.closeType,o=_.isUndefined(this.props.closeColor)||""===this.props.closeColor?"default":this.props.closeColor,l=!_.isUndefined(this.props.imageName)&&""!==this.props.imageName,s=!_.isUndefined(this.props.imageLogo)&&!0===this.props.imageLogo,u=_.isUndefined(this.props.imageAlt)||!0!==this.props.imageAlt?"":this.props.imageAlt,p=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,d="sui-box-header";""!==t&&(d+=" sui-content-"+t),!0===a&&(d+=" sui-flatten"),!0===l&&(d+=" sui-spacing-top--60"),!0===p&&(d+=" "+this.props.customClass);var h=c.default.createElement("div",{className:d},!0===r&&c.default.createElement(f.default,i({type:n,float:"right",color:o},r&&{closeModal:this.closeModal})),!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e);return"center"!==t&&(h=c.default.createElement(c.default.Fragment,null,!0===r&&c.default.createElement(f.default,i({sronly:!0},r&&{closeModal:this.closeModal})),c.default.createElement("div",{className:d},!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e,c.default.createElement("div",{className:"sui-actions-right"},!0===r&&c.default.createElement(f.default,{type:n,color:o,closeModal:this.closeModal}))))),h}}]),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 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=this.props.id?"modal-"+this.props.id+"--title":"unique-id-required",t=this.props.label?this.props.label:"A title is required for your modals",a=_.isUndefined(this.props.tag)||""===this.props.tag?"":this.props.tag,r=_.isUndefined(this.props.tagColor)||""===this.props.tagColor?"":" sui-tag-"+this.props.titleTagColor,n="sui-box-title";return"lg"===this.props.size&&(n+=" sui-lg"),_.isUndefined(this.props.customClass)||""===this.props.customClass||(n+=" "+this.props.customClass),s.default.createElement("h3",{id:e,className:n},t,""!==a&&s.default.createElement("span",{className:"sui-tag"+r,style:{marginTop:"-2px",marginLeft:"10px"}},a))}}]),t}(i.Component);t.default=u},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,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.closeModal=a.props.closeModal.bind(a),a}return o(t,e),l(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.label)||""===this.props.label?(0,u.translate)("Close this dialog"):this.props.label,t=_.isUndefined(this.props.color)||""===this.props.color?"":this.props.color,a=!_.isUndefined(this.props.type)&&"icon"===this.props.type,r=!_.isUndefined(this.props.sronly)&&!0===this.props.sronly,n=!_.isUndefined(this.props.icon)&&""!==this.props.icon,o=!_.isUndefined(this.props.float)&&"left"===this.props.float,l=!_.isUndefined(this.props.float)&&"right"===this.props.float,i=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,c="sui-button";return!0===r?c="sui-screen-reader-text":!1===r&&!0===a&&(c="sui-button-icon"),!1===r&&""!==t&&(c+=" sui-button-"+t),!1!==r||!0!==o&&!0!==l||(c+=" sui-button-float--"+this.props.float),!0===i&&(c+=" "+this.props.customClass),c+=" modal-close-button",s.default.createElement("button",{className:c,onClick:this.closeModal},!0===a&&s.default.createElement("i",{className:"sui-icon-close sui-md","aria-hidden":"true"}),!0===n&&s.default.createElement("i",{className:"sui-icon-"+this.props.icon,"aria-hidden":"true"}),!0===a?s.default.createElement("span",{className:"sui-screen-reader-text"},e):e)}}]),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){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"clearImage",value:function(){if("answer_image"===this.props.property){var e=Object.assign({},this.props.answer),t=this.props.property;e[t]="",e[t+"_filename"]="",e[t+"_alt"]="",this.props.actions.builderActions.updateAnswer(e)}else"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"])&&!_.isNull(e)?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",{title:a},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 o}),a.d(t,"a",function(){return l});var r=a(8),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,k=void 0===P||P,j=u.storeKey,x=void 0===j?"store":j,N=u.withRef,C=void 0!==N&&N,T=l(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),S=x+"Subscription",F=v++,D=(t={},t[x]=b.a,t[S]=b.b,t),M=(a={},a[S]=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({},T,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:k,storeKey:x,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[x]||t[x],o.propsMode=Boolean(e[x]),o.setWrappedInstance=o.setWrappedInstance.bind(o),d()(o.store,'Could not find "'+x+'" in either the context or props of "'+l+'". Either wrap the root component in a <Provider>, or explicitly pass "'+x+'" 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[S]=t||this.context[S],e},c.prototype.componentDidMount=function(){k&&(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(k){var e=(this.propsMode?this.props:this.context)[S];this.subscription=new h.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[S]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(m.createElement)(t,this.addExtraProps(e.props))},c}(m.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(67),p=a.n(c),f=a(14),d=a.n(f),m=a(0),h=(a.n(m),a(117)),b=a(65),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 m=0;m<d.length;++m){var h=d[m];if(!(n[h]||o[h]||a&&a[h])){var b=u(t,h);try{l(e,h,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(69)},function(e,t,a){"use strict";a(124),a(44)},function(e,t,a){"use strict";var r=a(126),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(8),c=a.n(u),p=a(14),f=a.n(p),d=a(23),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},h=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&&!h(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",m({},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(74);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(18),i=a.n(l),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(8),d=a.n(f),m=a(48),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},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:h({},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(m.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],m=a[2],h=a[3],b=a[4],y=a[5],g=a[6],E=a[7];l&&(r.push(l),l="");var _=null!=m&&null!=d&&d!==m,w="+"===g||"*"===g,O="?"===g||"*"===g,P=a[2]||i,k=b||y;r.push({name:h||n++,prefix:m||"",delimiter:P,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:k?u(k):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 m=0;m<d.length;m++){if(f=u(d[m]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");n+=(0===m?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 m(e,t,a){return h(r(e,a),t,a)}function h(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||"/"),m=o.slice(-d.length)===d;return r||(o=(m?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=n?"$":r&&m?"":"(?="+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):m(e,t,a)}var y=a(147);e.exports=b,e.exports.parse=r,e.exports.compile=n,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=h;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,a){"use strict";var r=a(75),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){"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(13),n=a(164),o=a(166),l=a(167),i=a(168),s=a(79),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(169);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,m="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||i(e.url)||(d=new window.XDomainRequest,m="onload",h=!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[m]=function(){if(d&&(4===d.readyState||h)&&(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(170),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(165);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=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){"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=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,n="sui-box-footer";return!0===a&&(n+=" sui-flatten"),""!==t&&(n+=" sui-content-"+t),!0===r&&(n+=" "+this.props.customClass),s.default.createElement("div",{className:n},e)}}]),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(2),d=r(f),m=a(15),h=r(m),b=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.prefix)?"":this.props.prefix+"_",t=_.isUndefined(this.props.notice)||""===this.props.notice?(0,p.translate)("{{strong}}Note:{{/strong}} Using WordPress Reserved Terms as query parameters may cause unexpected form behavior. Find the complete list of {{link}}{{icon/}} WordPress Reserved Terms here{{/link}}.",{components:{strong:c.default.createElement("strong",null),link:c.default.createElement("a",{href:"https://codex.wordpress.org/Reserved_Terms",target:"_blank"}),icon:c.default.createElement("span",{className:"sui-icon-open-new-window","aria-hidden":"true"})}}):this.props.notice;return c.default.createElement(h.default,{label:(0,p.translate)("Pre-populate"),labelDark:!0,description:(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."),descriptionSpacing:20,sidebar:!1},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),description:t,placeholder:(0,p.translate)("E.g. query_parameter_key"),property:e+"prefill",inputStyles:{maxWidth:"240px"}})))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){var a=document.getElementById(e);if(!_.isNull(a))if(i.default.gte(n.version,"18.0.0")){var r=(0,o.createRoot)(a);r.render(t)}else(0,n.render)(t,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.renderBlock=r;var n=a(22),o=a(87),l=a(88),i=function(e){return e&&e.__esModule?e:{default:e}}(l)},function(e,t,a){"use strict";var r=a(22);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t,a){(function(a){function r(e,t){if(e instanceof l)return e;if("string"!=typeof e)return null;if(e.length>J)return null;if(!(t?Z[be]:Z[de]).test(e))return null;try{return new l(e,t)}catch(e){return null}}function n(e,t){var a=r(e,t);return a?a.version:null}function o(e,t){var a=r(e.trim().replace(/^[=v]+/,""),t);return a?a.version:null}function l(e,t){if(e instanceof l){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>J)throw new TypeError("version is longer than "+J+" characters");if(!(this instanceof l))return new l(e,t);K("SemVer",e,t),this.loose=t;var a=e.trim().match(t?Z[be]:Z[de]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<X)return t}return e}):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}function i(e,t,a,r){"string"==typeof a&&(r=a,a=void 0);try{return new l(e,a).inc(t,r).version}catch(e){return null}}function s(e,t){if(_(e,t))return null;var a=r(e),n=r(t);if(a.prerelease.length||n.prerelease.length){for(var o in a)if(("major"===o||"minor"===o||"patch"===o)&&a[o]!==n[o])return"pre"+o;return"prerelease"}for(var o in a)if(("major"===o||"minor"===o||"patch"===o)&&a[o]!==n[o])return o}function u(e,t){var a=Le.test(e),r=Le.test(t);return a&&r&&(e=+e,t=+t),a&&!r?-1:r&&!a?1:e<t?-1:e>t?1:0}function c(e,t){return u(t,e)}function p(e,t){return new l(e,t).major}function f(e,t){return new l(e,t).minor}function d(e,t){return new l(e,t).patch}function m(e,t,a){return new l(e,a).compare(new l(t,a))}function h(e,t){return m(e,t,!0)}function b(e,t,a){return m(t,e,a)}function y(e,a){return e.sort(function(e,r){return t.compare(e,r,a)})}function v(e,a){return e.sort(function(e,r){return t.rcompare(e,r,a)})}function g(e,t,a){return m(e,t,a)>0}function E(e,t,a){return m(e,t,a)<0}function _(e,t,a){return 0===m(e,t,a)}function w(e,t,a){return 0!==m(e,t,a)}function O(e,t,a){return m(e,t,a)>=0}function P(e,t,a){return m(e,t,a)<=0}function k(e,t,a,r){var n;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),n=e===a;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),n=e!==a;break;case"":case"=":case"==":n=_(e,a,r);break;case"!=":n=w(e,a,r);break;case">":n=g(e,a,r);break;case">=":n=O(e,a,r);break;case"<":n=E(e,a,r);break;case"<=":n=P(e,a,r);break;default:throw new TypeError("Invalid operator: "+t)}return n}function j(e,t){if(e instanceof j){if(e.loose===t)return e;e=e.value}if(!(this instanceof j))return new j(e,t);K("comparator",e,t),this.loose=t,this.parse(e),this.semver===Be?this.value="":this.value=this.operator+this.semver.version,K("comp",this)}function x(e,t){if(e instanceof x)return e.loose===t?e:new x(e.raw,t);if(e instanceof j)return new x(e.value,t);if(!(this instanceof x))return new x(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function N(e,t){return new x(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function C(e,t){return K("comp",e),e=D(e,t),K("caret",e),e=S(e,t),K("tildes",e),e=A(e,t),K("xrange",e),e=R(e,t),K("stars",e),e}function T(e){return!e||"x"===e.toLowerCase()||"*"===e}function S(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){var a=t?Z[Ne]:Z[xe];return e.replace(a,function(t,a,r,n,o){K("tilde",e,t,a,r,n,o);var l;return T(a)?l="":T(r)?l=">="+a+".0.0 <"+(+a+1)+".0.0":T(n)?l=">="+a+"."+r+".0 <"+a+"."+(+r+1)+".0":o?(K("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),l=">="+a+"."+r+"."+n+o+" <"+a+"."+(+r+1)+".0"):l=">="+a+"."+r+"."+n+" <"+a+"."+(+r+1)+".0",K("tilde return",l),l})}function D(e,t){return e.trim().split(/\s+/).map(function(e){return M(e,t)}).join(" ")}function M(e,t){K("caret",e,t);var a=t?Z[Fe]:Z[Se];return e.replace(a,function(t,a,r,n,o){K("caret",e,t,a,r,n,o);var l;return T(a)?l="":T(r)?l=">="+a+".0.0 <"+(+a+1)+".0.0":T(n)?l="0"===a?">="+a+"."+r+".0 <"+a+"."+(+r+1)+".0":">="+a+"."+r+".0 <"+(+a+1)+".0.0":o?(K("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),l="0"===a?"0"===r?">="+a+"."+r+"."+n+o+" <"+a+"."+r+"."+(+n+1):">="+a+"."+r+"."+n+o+" <"+a+"."+(+r+1)+".0":">="+a+"."+r+"."+n+o+" <"+(+a+1)+".0.0"):(K("no pr"),l="0"===a?"0"===r?">="+a+"."+r+"."+n+" <"+a+"."+r+"."+(+n+1):">="+a+"."+r+"."+n+" <"+a+"."+(+r+1)+".0":">="+a+"."+r+"."+n+" <"+(+a+1)+".0.0"),K("caret return",l),l})}function A(e,t){return K("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return V(e,t)}).join(" ")}function V(e,t){e=e.trim();var a=t?Z[Oe]:Z[we];return e.replace(a,function(t,a,r,n,o,l){K("xRange",e,t,a,r,n,o,l);var i=T(r),s=i||T(n),u=s||T(o),c=u;return"="===a&&c&&(a=""),i?t=">"===a||"<"===a?"<0.0.0":"*":a&&c?(s&&(n=0),u&&(o=0),">"===a?(a=">=",s?(r=+r+1,n=0,o=0):u&&(n=+n+1,o=0)):"<="===a&&(a="<",s?r=+r+1:n=+n+1),t=a+r+"."+n+"."+o):s?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0"),K("xRange return",t),t})}function R(e,t){return K("replaceStars",e,t),e.trim().replace(Z[Ue],"")}function U(e,t,a,r,n,o,l,i,s,u,c,p,f){return t=T(a)?"":T(r)?">="+a+".0.0":T(n)?">="+a+"."+r+".0":">="+t,i=T(s)?"":T(u)?"<"+(+s+1)+".0.0":T(c)?"<"+s+"."+(+u+1)+".0":p?"<="+s+"."+u+"."+c+"-"+p:"<="+i,(t+" "+i).trim()}function I(e,t){for(var a=0;a<e.length;a++)if(!e[a].test(t))return!1;if(t.prerelease.length){for(var a=0;a<e.length;a++)if(K(e[a].semver),e[a].semver!==Be&&e[a].semver.prerelease.length>0){var r=e[a].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function L(e,t,a){try{t=new x(t,a)}catch(e){return!1}return t.test(e)}function B(e,t,a){var r=null,n=null;try{var o=new x(t,a)}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&-1!==n.compare(e)||(r=e,n=new l(r,a)))}),r}function q(e,t,a){var r=null,n=null;try{var o=new x(t,a)}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&1!==n.compare(e)||(r=e,n=new l(r,a)))}),r}function W(e,t){try{return new x(e,t).range||"*"}catch(e){return null}}function z(e,t,a){return $(e,t,"<",a)}function H(e,t,a){return $(e,t,">",a)}function $(e,t,a,r){e=new l(e,r),t=new x(t,r);var n,o,i,s,u;switch(a){case">":n=g,o=P,i=E,s=">",u=">=";break;case"<":n=E,o=O,i=g,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(L(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var p=t.set[c],f=null,d=null;if(p.forEach(function(e){e.semver===Be&&(e=new j(">=0.0.0")),f=f||e,d=d||e,n(e.semver,f.semver,r)?f=e:i(e.semver,d.semver,r)&&(d=e)}),f.operator===s||f.operator===u)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===u&&i(e,d.semver))return!1}return!0}function Y(e,t){var a=r(e,t);return a&&a.prerelease.length?a.prerelease:null}function Q(e,t,a){return e=new x(e,a),t=new x(t,a),e.intersects(t)}function G(e){if(e instanceof l)return e;if("string"!=typeof e)return null;var t=e.match(Z[Pe]);return null==t?null:r((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}t=e.exports=l;var K;K="object"==typeof a&&a.env&&a.env.NODE_DEBUG&&/\bsemver\b/i.test(a.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var J=256,X=Number.MAX_SAFE_INTEGER||9007199254740991,Z=t.re=[],ee=t.src=[],te=0,ae=te++;ee[ae]="0|[1-9]\\d*";var re=te++;ee[re]="[0-9]+";var ne=te++;ee[ne]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var oe=te++;ee[oe]="("+ee[ae]+")\\.("+ee[ae]+")\\.("+ee[ae]+")";var le=te++;ee[le]="("+ee[re]+")\\.("+ee[re]+")\\.("+ee[re]+")";var ie=te++;ee[ie]="(?:"+ee[ae]+"|"+ee[ne]+")";var se=te++;ee[se]="(?:"+ee[re]+"|"+ee[ne]+")";var ue=te++;ee[ue]="(?:-("+ee[ie]+"(?:\\."+ee[ie]+")*))";var ce=te++;ee[ce]="(?:-?("+ee[se]+"(?:\\."+ee[se]+")*))";var pe=te++;ee[pe]="[0-9A-Za-z-]+";var fe=te++;ee[fe]="(?:\\+("+ee[pe]+"(?:\\."+ee[pe]+")*))";var de=te++,me="v?"+ee[oe]+ee[ue]+"?"+ee[fe]+"?";ee[de]="^"+me+"$";var he="[v=\\s]*"+ee[le]+ee[ce]+"?"+ee[fe]+"?",be=te++;ee[be]="^"+he+"$";var ye=te++;ee[ye]="((?:<|>)?=?)";var ve=te++;ee[ve]=ee[re]+"|x|X|\\*";var ge=te++;ee[ge]=ee[ae]+"|x|X|\\*";var Ee=te++;ee[Ee]="[v=\\s]*("+ee[ge]+")(?:\\.("+ee[ge]+")(?:\\.("+ee[ge]+")(?:"+ee[ue]+")?"+ee[fe]+"?)?)?";var _e=te++;ee[_e]="[v=\\s]*("+ee[ve]+")(?:\\.("+ee[ve]+")(?:\\.("+ee[ve]+")(?:"+ee[ce]+")?"+ee[fe]+"?)?)?";var we=te++;ee[we]="^"+ee[ye]+"\\s*"+ee[Ee]+"$";var Oe=te++;ee[Oe]="^"+ee[ye]+"\\s*"+ee[_e]+"$";var Pe=te++;ee[Pe]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var ke=te++;ee[ke]="(?:~>?)";var je=te++;ee[je]="(\\s*)"+ee[ke]+"\\s+",Z[je]=new RegExp(ee[je],"g");var xe=te++;ee[xe]="^"+ee[ke]+ee[Ee]+"$";var Ne=te++;ee[Ne]="^"+ee[ke]+ee[_e]+"$";var Ce=te++;ee[Ce]="(?:\\^)";var Te=te++;ee[Te]="(\\s*)"+ee[Ce]+"\\s+",Z[Te]=new RegExp(ee[Te],"g");var Se=te++;ee[Se]="^"+ee[Ce]+ee[Ee]+"$";var Fe=te++;ee[Fe]="^"+ee[Ce]+ee[_e]+"$";var De=te++;ee[De]="^"+ee[ye]+"\\s*("+he+")$|^$";var Me=te++;ee[Me]="^"+ee[ye]+"\\s*("+me+")$|^$";var Ae=te++;ee[Ae]="(\\s*)"+ee[ye]+"\\s*("+he+"|"+ee[Ee]+")",Z[Ae]=new RegExp(ee[Ae],"g");var Ve=te++;ee[Ve]="^\\s*("+ee[Ee]+")\\s+-\\s+("+ee[Ee]+")\\s*$";var Re=te++;ee[Re]="^\\s*("+ee[_e]+")\\s+-\\s+("+ee[_e]+")\\s*$";var Ue=te++;ee[Ue]="(<|>)?=?\\s*\\*";for(var Ie=0;Ie<te;Ie++)K(Ie,ee[Ie]),Z[Ie]||(Z[Ie]=new RegExp(ee[Ie]));t.parse=r,t.valid=n,t.clean=o,t.SemVer=l,l.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},l.prototype.toString=function(){return this.version},l.prototype.compare=function(e){return K("SemVer.compare",this.version,this.loose,e),e instanceof l||(e=new l(e,this.loose)),this.compareMain(e)||this.comparePre(e)},l.prototype.compareMain=function(e){return e instanceof l||(e=new l(e,this.loose)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)},l.prototype.comparePre=function(e){if(e instanceof l||(e=new l(e,this.loose)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var a=this.prerelease[t],r=e.prerelease[t];if(K("prerelease compare",t,a,r),void 0===a&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===a)return-1;if(a!==r)return u(a,r)}while(++t)},l.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var a=this.prerelease.length;--a>=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);-1===a&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=i,t.diff=s,t.compareIdentifiers=u;var Le=/^[0-9]+$/;t.rcompareIdentifiers=c,t.major=p,t.minor=f,t.patch=d,t.compare=m,t.compareLoose=h,t.rcompare=b,t.sort=y,t.rsort=v,t.gt=g,t.lt=E,t.eq=_,t.neq=w,t.gte=O,t.lte=P,t.cmp=k,t.Comparator=j;var Be={};j.prototype.parse=function(e){var t=this.loose?Z[De]:Z[Me],a=e.match(t);if(!a)throw new TypeError("Invalid comparator: "+e);this.operator=a[1],"="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.loose):this.semver=Be},j.prototype.toString=function(){return this.value},j.prototype.test=function(e){return K("Comparator.test",e,this.loose),this.semver===Be||("string"==typeof e&&(e=new l(e,this.loose)),k(e,this.operator,this.semver,this.loose))},j.prototype.intersects=function(e,t){if(!(e instanceof j))throw new TypeError("a Comparator is required");var a;if(""===this.operator)return a=new x(e.value,t),L(this.value,a,t);if(""===e.operator)return a=new x(this.value,t),L(e.semver,a,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,l=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),i=k(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=k(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&l||i||s},t.Range=x,x.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},x.prototype.toString=function(){return this.range},x.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),K("range",e,t);var a=t?Z[Re]:Z[Ve];e=e.replace(a,U),K("hyphen replace",e),e=e.replace(Z[Ae],"$1$2$3"),K("comparator trim",e,Z[Ae]),e=e.replace(Z[je],"$1~"),e=e.replace(Z[Te],"$1^"),e=e.split(/\s+/).join(" ");var r=t?Z[De]:Z[Me],n=e.split(" ").map(function(e){return C(e,t)}).join(" ").split(/\s+/);return this.loose&&(n=n.filter(function(e){return!!e.match(r)})),n=n.map(function(e){return new j(e,t)})},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Range is required");return this.set.some(function(a){return a.every(function(a){return e.set.some(function(e){return e.every(function(e){return a.intersects(e,t)})})})})},t.toComparators=N,x.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new l(e,this.loose));for(var t=0;t<this.set.length;t++)if(I(this.set[t],e))return!0;return!1},t.satisfies=L,t.maxSatisfying=B,t.minSatisfying=q,t.validRange=W,t.ltr=z,t.gtr=H,t.outside=$,t.prerelease=Y,t.intersects=Q,t.coerce=G}).call(t,a(31))},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:h({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new d,this.stateObserver.setMaxListeners(0),this.configure()}var c=a(90)("i18n-wp-plugin"),p=a(93),f=a(94),d=a(55).EventEmitter,m=a(97).default,h=a(101),b=a(58),y=a(102),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=m({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(91),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(31))},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(92),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){/** * @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed */ !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){/** * @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed */ 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],m=(p.messages||this.defaults.locale_data.messages)[""],h=f[""].plural_forms||f[""]["Plural-Forms"]||f[""]["plural-forms"]||m.plural_forms||m["Plural-Forms"]||m["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(h)(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(h)(o)+1]),s[n()(o)+1]):(s=i[u])||(s=[null,a,r],s[n()(o)+1])}});var m=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="",h=[];for(o=0;o<f;o++)if("string"===(d=e(a[o])))h.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 m('[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 m("[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):"",h.push(i[5]?n+s:s+n)}return h.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}(),h=function(e,t){return t.unshift(e),m.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)?h(e,[].slice.call(t)):m.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,m,h,b,y,v,g,E,_,w={};;){if(h=r[r.length-1],this.defaultActions[h]?b=this.defaultActions[h]:(null==d&&(d=t()),b=l[h]&&l[h][d]),void 0===b||!b.length||!b[0]){if(!c){_=[];for(v in l[h])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[h])break;if(0==h)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),h=r[r.length-1]}m=d,d=p,h=r[r.length-1],b=l[h]&&l[h][p],c=3}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", 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,m?(d=m,m=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(37),o=a(95),l=a(96),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 m=~~(r/20),h=u(i(n,5),c(m,o,l,p),d,a[r],f[m]);d=p,p=l,l=i(o,30),o=n,n=h}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(37),o=a(53);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(37),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,h,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> "+m);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),h=o(d,t),r=u.default.cloneElement(a,{},h),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(m=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(98),p=r(c),f=a(100),d=r(f),m=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===h)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 m,b=d.call(e),v=0;!(m=b.next()).done;)s=m.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 m.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&&(m.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(m.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 m=a(0),h="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,b=a(56),y=a(57),v=a(99),g=".",E=":",_="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",O=/\/+/g,P=k,k=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)},x=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,x);e.exports=d},function(e,t,a){"use strict";var r=a(56),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(55),o=a(54);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){/** * Exposes number format capability * * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors). * @license See CREDITS.md * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js */ 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(58),o=a(104);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(105);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),m="function"==typeof u,h=m&&!p&&!c&&!1!==a.autobind;if(h)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 m(e,t){var a=t.bind(e);return a}function h(e){for(var t=e.__reactAutoBindPairs,a=0;a<t.length;a+=2){var r=t[a],n=t[a+1];e[r]=m(e,n)}}function b(e){var t=r(function(e,r,n){this.__reactAutoBindPairs.length&&h(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(106),l=a(107),i=a(57),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)}/* object-assign (c) Sindre Sorhus @license MIT */ 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";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.resetSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"RESET_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=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.hasWordFormat=!_.isUndefined(a.props.hasWordFormat)&&a.props.hasWordFormat,a}return o(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",r=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id;this.hasWordFormat||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.hasWordFormat&&(this.$el.datepicker("option","altField","#"+r+"-altfield"),this.$el.datepicker("option","altFormat","@"),_.isUndefined(t)||(isNaN(t)&&(t=new Date(t).getTime()),jQuery("#"+r+"-altfield").val(t),this.$el.datepicker("setDate",new Date(parseInt(t))))),this.updateValue=this.updateValue.bind(this)}},{key:"updateValue",value:function(e){this.hasWordFormat&&(e=jQuery(this.$el.datepicker("option","altField")).val()),"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="sui-form-field";_.isUndefined(this.props.fieldClass)||(r+=" "+this.props.fieldClass),this.props.mediumSize&&(r+=" sui-input-md");var n=void 0,o=void 0;this.props.label&&(n=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&&(o=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&&(o=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 i=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,s=u.default.createElement(u.default.Fragment,null,u.default.createElement("input",l({ref:function(t){return e.el=t},id:i,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),this.hasWordFormat&&u.default.createElement("input",{id:i+"-altfield",style:{display:"none"}})),p=u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),s,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{id:i+"-calendar",className:"sui-date-calendar"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(p=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},s,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),o)),p}}]),t}(s.Component);t.default=p},,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){var r=a(377),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o},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||_.isUndefined(t.props.children)?s.default.createElement(s.default.Fragment,null):s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t)}),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(8)),u=a.n(s),c=a(65);a(44);t.b=l()},function(e,t,a){"use strict";function r(){}var n=a(116);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(66),i=a(119),s=a(120),u=a(133),c=a(134),p=a(135),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,m=void 0===d?u.a:d,h=e.mapDispatchToPropsFactories,b=void 0===h?s.a:h,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,h=s.areOwnPropsEqual,y=void 0===h?i.a:h,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"]),k=n(e,m,"mapStateToProps"),j=n(t,b,"mapDispatchToProps"),x=n(l,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:j,initMergeProps:x,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(10),i=a(68);t.a=[r,n,o]},function(e,t,a){"use strict";(function(e,r){var n,o=a(123);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(42),a(122)(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(125),o=a(130),l=a(132),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(70),o=a(128),l=a(129),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(127),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(42))},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(70),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(131),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(68);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(69),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 m=n,h=o,b=e(m,h),y=t(r,h),v=a(b,y,h),d=!0,v}function l(){return b=e(m,h),t.dependsOnOwnProps&&(y=t(r,h)),v=a(b,y,h)}function i(){return e.dependsOnOwnProps&&(b=e(m,h)),t.dependsOnOwnProps&&(y=t(r,h)),v=a(b,y,h)}function s(){var t=e(m,h),r=!f(t,b);return b=t,r&&(v=a(b,y,h)),v}function u(e,t){var a=!p(t,h),r=!c(e,m);return m=e,h=t,a&&r?l():a?i():r?s():v}var c=n.areStatesEqual,p=n.areOwnPropsEqual,f=n.areStatePropsEqual,d=!1,m=void 0,h=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(136)},function(e,t,a){"use strict";a(44)},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(18),i=a.n(l),s=a(0),u=a.n(s),c=a(8),p=a.n(c),f=a(23),d=a(46),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.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);m.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,a){"use strict";var r=a(33),n=a.n(r),o=a(14),l=a.n(o),i=a(34),s=a(27),u=a(45),c=a(71),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{}}},m=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,m=void 0!==o&&o,h=e.getUserConfirmation,b=void 0===h?c.c:h,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)||x(E(e.state))},k=function(){x(E(d()))},j=!1,x=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=T.indexOf(t.key);-1===a&&(a=0);var r=T.indexOf(e.key);-1===r&&(r=0);var n=a-r;n&&(j=!0,M(n))},C=E(d()),T=[C.key],S=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=S(o),l=o.key,i=o.state;if(a)if(t.pushState({key:l,state:i},null,r),m)window.location.href=r;else{var s=T.indexOf(q.location.key),u=T.slice(0,-1===s?0:s+1);u.push(o.key),T=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=S(o),l=o.key,i=o.state;if(a)if(t.replaceState({key:l,state:i},null,r),m)window.location.replace(r);else{var s=T.indexOf(q.location.key);-1!==s&&(T[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",k)):0===R&&(Object(c.e)(window,"popstate",P),r&&Object(c.e)(window,"hashchange",k))},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:S,push:F,replace:D,go:M,goBack:A,goForward:V,block:L,listen:B};return q};t.a=m},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 m=o.join("/");return u&&"/"!==m.substr(-1)&&(m+="/"),m}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(33),n=a.n(r),o=a(14),l=a.n(o),i=a(34),s=a(27),u=a(45),c=a(71),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)},m=function(e){return window.location.hash=e},h=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(H,e),H.length=t.length,O.notifyListeners(H.location,H.action)},k=!1,j=null,x=function(){var e=d(),t=E(e);if(e!==t)h(t);else{var a=w(),r=H.location;if(!k&&Object(i.b)(r,a))return;if(j===Object(s.b)(a))return;j=null,N(a)}},N=function(e){if(k)k=!1,P();else{O.confirmTransitionTo(e,"POP",o,function(t){t?P({action:"POP",location:e}):C(e)})}},C=function(e){var t=H.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&&(k=!0,R(n))},T=d(),S=E(T);T!==S&&h(S);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,H.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,m(r);var o=D.lastIndexOf(Object(s.b)(H.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,H.location);O.confirmTransitionTo(a,"REPLACE",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(j=t,h(r));var n=D.indexOf(Object(s.b)(H.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",x):0===L&&Object(c.e)(window,"hashchange",x)},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()}},z=function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}},H={length:t.length,action:"POP",location:F,createHref:M,push:A,replace:V,go:R,goBack:U,goForward:I,block:W,listen:z};return H};t.a=b},function(e,t,a){"use strict";var r=a(33),n=a.n(r),o=a(27),l=a(34),i=a(45),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,m=void 0===d?6:d,h=Object(i.a)(),b=function(e){u(C,e),C.length=C.entries.length,h.notifyListeners(C.location,C.action)},y=function(){return Math.random().toString(36).substr(2,m)},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);h.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);h.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];h.confirmTransitionTo(r,"POP",t,function(e){e?b({action:"POP",location:r,index:a}):b()})},P=function(){return O(-1)},k=function(){return O(1)},j=function(e){var t=C.index+e;return t>=0&&t<C.entries.length},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h.setPrompt(e)},N=function(e){return h.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:k,canGo:j,block:x,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(18),i=a.n(l),s=a(0),u=a.n(s),c=a(8),p=a.n(c),f=a(23),d=a(46),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.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);m.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=m},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(18),i=a.n(l),s=a(0),u=a.n(s),c=a(8),p=a.n(c),f=a(23),d=a(47),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.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);m.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},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(8),i=a.n(l),s=a(73),u=a(72),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,m=e.style,h=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=!!(h?h(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({},m,d):m,"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(149);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(8),u=a.n(s),c=a(14),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(151);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(8),u=a.n(s),c=a(18),p=a.n(c),f=a(14),d=a.n(f),m=a(23),h=a(76),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(m.c)(e.to),a=Object(m.c)(this.props.to);if(Object(m.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(h.a)(a,t.params):b({},a,{pathname:Object(h.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(153);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(18),s=a.n(i),u=a(14),c=a.n(u),p=a(0),f=a.n(p),d=a(8),m=a.n(d),h=a(23),b=a(47),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(h.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(h.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(h.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(h.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:m.a.string,context:m.a.object.isRequired,location:m.a.oneOfType([m.a.string,m.a.object])},P.defaultProps={basename:"",location:"/"},P.childContextTypes={router:m.a.object.isRequired},t.a=P},function(e,t,a){"use strict";var r=a(155);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(8),u=a.n(s),c=a(18),p=a.n(c),f=a(14),d=a.n(f),m=a(48),h=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(m.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);h.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},h.propTypes={children:u.a.node,location:u.a.object},t.a=h},function(e,t,a){"use strict";var r=a(76);t.a=r.a},function(e,t,a){"use strict";var r=a(48);t.a=r.a},function(e,t,a){"use strict";var r=a(159);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(8),i=a.n(l),s=a(67),u=a.n(s),c=a(74),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){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(13),o=a(77),l=a(162),i=a(49),s=r(i);s.Axios=l,s.create=function(e){return r(n.merge(i,e))},s.Cancel=a(81),s.CancelToken=a(176),s.isCancel=a(80),s.all=function(e){return Promise.all(e)},s.spread=a(177),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))}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ 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 l,response:new l}}var n=a(49),o=a(13),l=a(171),i=a(172);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.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},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,a){return this.request(o.merge(a||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,a,r){return this.request(o.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){"use strict";var r=a(13);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(79);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(13);e.exports=function(e,t,a){if(!t)return e;var o;if(a)o=a(t);else if(n.isURLSearchParams(t))o=t.toString();else{var l=[];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)),l.push(r(t)+"="+r(e))}))}),o=l.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,a){"use strict";var r=a(13),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,o,l={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),a=r.trim(e.substr(o+1)),t){if(l[t]&&n.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([a]):l[t]?l[t]+", "+a:a}}),l):l}},function(e,t,a){"use strict";var r=a(13);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),l="",i=0,s=o;n.charAt(0|i)||(s="=",i%1);l+=s.charAt(63&t>>8-i%1*8)){if((a=n.charCodeAt(i+=.75))>255)throw new r;t=t<<8|a}return l}var o="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(13);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,o,l){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(o)&&i.push("domain="+o),!0===l&&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(13);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(13),o=a(173),l=a(80),i=a(49),s=a(174),u=a(175);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=o(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=o(t.data,t.headers,e.transformResponse),t},function(t){return l(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){"use strict";var r=a(13);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(81);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(82),n=a(83),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,a,n,o,l,s,u,c,p,f,d,m){var h=t;if("function"==typeof u)h=u(a,h);else if(h instanceof Date)h=f(h);else if(null===h){if(o)return s&&!m?s(a,i.encoder):a;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||r.isBuffer(h)){if(s){return[d(m?a:s(a,i.encoder))+"="+d(s(h,i.encoder))]}return[d(a)+"="+d(String(h))]}var b=[];if(void 0===h)return b;var y;if(Array.isArray(u))y=u;else{var v=Object.keys(h);y=c?v.sort(c):v}for(var g=0;g<y.length;++g){var E=y[g];l&&null===h[E]||(b=Array.isArray(h)?b.concat(e(h[E],n(a,E),n,o,l,s,u,c,p,f,d,m)):b.concat(e(h[E],a+(p?"."+E:"["+E+"]"),n,o,l,s,u,c,p,f,d,m)))}return b};e.exports=function(e,t){var a=e,l=t?r.assign({},t):{};if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===l.delimiter?i.delimiter:l.delimiter,c="boolean"==typeof l.strictNullHandling?l.strictNullHandling:i.strictNullHandling,p="boolean"==typeof l.skipNulls?l.skipNulls:i.skipNulls,f="boolean"==typeof l.encode?l.encode:i.encode,d="function"==typeof l.encoder?l.encoder:i.encoder,m="function"==typeof l.sort?l.sort:null,h=void 0!==l.allowDots&&l.allowDots,b="function"==typeof l.serializeDate?l.serializeDate:i.serializeDate,y="boolean"==typeof l.encodeValuesOnly?l.encodeValuesOnly:i.encodeValuesOnly;if(void 0===l.format)l.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,l.format))throw new TypeError("Unknown format option provided.");var v,g,E=n.formatters[l.format];"function"==typeof l.filter?(g=l.filter,a=g("",a)):Array.isArray(l.filter)&&(g=l.filter,v=g);var _=[];if("object"!=typeof a||null===a)return"";var w;w=l.arrayFormat in o?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var O=o[w];v||(v=Object.keys(a)),m&&v.sort(m);for(var P=0;P<v.length;++P){var k=v[P];p&&null===a[k]||(_=_.concat(s(a[k],k,O,c,p,f?d:null,g,m,h,b,E,y)))}var j=_.join(u),x=!0===l.addQueryPrefix?"?":"";return j.length>0?x+j:""}},function(e,t,a){"use strict";var r=a(82),n=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,l),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,o.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,d),o.decoder),c=t.decoder(p.slice(d+1),o.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 o,l=e[n];if("[]"===l)o=[],o=o.concat(r);else{o=a.plainObjects?Object.create(null):{};var i="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(i,10);!isNaN(s)&&l!==i&&String(s)===i&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(o=[],o[s]=r):o[i]=r}r=o}return r},s=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=o.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=l.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:o.delimiter,a.depth="number"==typeof a.depth?a.depth:o.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:o.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:o.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:o.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:o.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:o.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:o.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return a.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(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(t){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,a){if(!t.document)return function(e){function t(){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){return!1}}]),t}(s.Component);a=a||{};var l=function(t){function l(){var t,a,o,i;r(this,l);for(var c=arguments.length,p=Array(c),f=0;f<c;f++)p[f]=arguments[f];return a=o=n(this,(t=l.__proto__||Object.getPrototypeOf(l)).call.apply(t,[this].concat(p))),o.renderDisplaced=function(){u.unstable_renderSubtreeIntoContainer(o,s.createElement(e,o.props,o.props.children),o.container)},o.removeDisplaced=function(){u.unmountComponentAtNode(o.container)},i=a,n(o,i)}return o(l,t),i(l,[{key:"componentWillMount",value:function(){this.container=function(){if(a.renderTo)return"string"==typeof a.renderTo?document.querySelector(a.renderTo):a.renderTo;var e=document.createElement("div");return document.body.appendChild(e),e}()}},{key:"componentDidMount",value:function(){c||this.props.mounted&&this.renderDisplaced()}},{key:"componentDidUpdate",value:function(e){c||(e.mounted&&!this.props.mounted?u.unmountComponentAtNode(this.container):this.props.mounted&&this.renderDisplaced())}},{key:"componentWillUnmount",value:function(){c||u.unmountComponentAtNode(this.container),a.renderTo||this.container.parentNode.removeChild(this.container)}},{key:"render",value:function(){return c&&!1!==this.props.mounted?u.createPortal(s.createElement(e,this.props,this.props.children),this.container):null}}]),l}(s.Component);return l.defaultProps={mounted:!0},l.WrappedComponent=e,l}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=a(22),c=!!u.createPortal;e.exports=l}).call(t,a(42))},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.insertSelector=a.insertSelector.bind(a),a}return o(t,e),l(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;"pdf-form"===this.props.formType&&(a=this.props.formType);var 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 .forminator-radio-bullet ")}},(0,u.translate)("Answer Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio .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")))),o=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")))),l=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("PDF selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector("body")}},(0,u.translate)("Body")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-pdf-header")}},(0,u.translate)("PDF Header")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".pdf-logo")}},(0,u.translate)("Logo")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".pdf-title")}},(0,u.translate)("Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-row-heading td")}},(0,u.translate)("Field Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-row-content td")}},(0,u.translate)("Field Value")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-pdf-footer-text td")}},(0,u.translate)("Footer")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-pdf-pagination td")}},(0,u.translate)("Pagination"))));return s.default.createElement(s.default.Fragment,null,"form"===a&&r,"poll"===a&&n,"quiz"===a&&o,"pdf-form"===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";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(29),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:"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: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"}),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"))),!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,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"))),!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){function r(e,t){var a=o(e,t);return n(a)?a:void 0}var n=a(440),o=a(445);e.exports=r},function(e,t,a){"use strict";function r(e){return e.replace(/>/g,">")}t.a=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){/*! @license DOMPurify 3.0.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.1/LICENSE */ !function(t,a){e.exports=a()}(0,function(){"use strict";function e(t){"@babel/helpers - typeof";return(e="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)}function t(e,a){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,a)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function r(e,n,o){return r=a()?Reflect.construct:function(e,a,r){var n=[null];n.push.apply(n,a);var o=Function.bind.apply(e,n),l=new o;return r&&t(l,r.prototype),l},r.apply(null,arguments)}function n(e,t){return i(e)||u(e,t)||c(e,t)||d()}function o(e){return l(e)||s(e)||c(e)||f()}function l(e){if(Array.isArray(e))return p(e)}function i(e){if(Array.isArray(e))return e}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o=[],l=!0,i=!1;try{for(a=a.call(e);!(l=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==a.return||a.return()}finally{if(i)throw n}}return o}}function c(e,t){if(e){if("string"==typeof e)return p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=c(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return l=e.done,e},e:function(e){i=!0,o=e},f:function(){try{l||null==a.return||a.return()}finally{if(i)throw o}}}}function h(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return C(e,t,r)}}function b(e,t,a){a=a||M,_&&_(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=a(n);o!==n&&(w(t)||(t[r]=o),n=o)}e[n]=!0}return e}function y(e){var t,a=x(null),r=m(E(e));try{for(r.s();!(t=r.n()).done;){var o=n(t.value,2),l=o[0],i=o[1];a[l]=i}}catch(e){r.e(e)}finally{r.f()}return a}function v(e,t){function a(e){return console.warn("fallback value for",e),null}for(;null!==e;){var r=P(e,t);if(r){if(r.get)return h(r.get);if("function"==typeof r.value)return h(r.value)}e=O(e)}return a}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se(),a=function(e){return g(e)};if(a.version="3.0.1",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var r=t.document,n=t.document,l=t.DocumentFragment,i=t.HTMLTemplateElement,s=t.Node,u=t.Element,c=t.NodeFilter,p=t.NamedNodeMap,f=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,d=t.HTMLFormElement,m=t.DOMParser,h=t.trustedTypes,_=u.prototype,w=v(_,"cloneNode"),O=v(_,"nextSibling"),P=v(_,"childNodes"),j=v(_,"parentNode");if("function"==typeof i){var x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}var N=ue(h,r),C=N?N.createHTML(""):"",T=n,ce=T.implementation,pe=T.createNodeIterator,fe=T.createDocumentFragment,de=T.getElementsByTagName,me=r.importNode,he={};a.isSupported="function"==typeof E&&"function"==typeof j&&ce&&void 0!==ce.createHTMLDocument;var be,ye,ve=Z,ge=ee,Ee=te,_e=ae,we=re,Oe=oe,Pe=le,ke=ne,je=null,xe=b({},[].concat(o(q),o(W),o(z),o($),o(Q))),Ne=null,Ce=b({},[].concat(o(G),o(K),o(J),o(X))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Fe=null,De=!0,Me=!0,Ae=!1,Ve=!0,Re=!1,Ue=!1,Ie=!1,Le=!1,Be=!1,qe=!1,We=!1,ze=!0,He=!1,$e=!0,Ye=!1,Qe={},Ge=null,Ke=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,Xe=b({},["audio","video","img","source","image","track"]),Ze=null,et=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",nt=rt,ot=!1,lt=null,it=b({},[tt,at,rt],A),st=["application/xhtml+xml","text/html"],ut=null,ct=n.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=y(t),be=be=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===be?A:M,je="ALLOWED_TAGS"in t?b({},t.ALLOWED_TAGS,ye):xe,Ne="ALLOWED_ATTR"in t?b({},t.ALLOWED_ATTR,ye):Ce,lt="ALLOWED_NAMESPACES"in t?b({},t.ALLOWED_NAMESPACES,A):it,Ze="ADD_URI_SAFE_ATTR"in t?b(y(et),t.ADD_URI_SAFE_ATTR,ye):et,Je="ADD_DATA_URI_TAGS"in t?b(y(Xe),t.ADD_DATA_URI_TAGS,ye):Xe,Ge="FORBID_CONTENTS"in t?b({},t.FORBID_CONTENTS,ye):Ke,Se="FORBID_TAGS"in t?b({},t.FORBID_TAGS,ye):{},Fe="FORBID_ATTR"in t?b({},t.FORBID_ATTR,ye):{},Qe="USE_PROFILES"in t&&t.USE_PROFILES,De=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Ae=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Re=t.SAFE_FOR_TEMPLATES||!1,Ue=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,qe=t.RETURN_DOM_FRAGMENT||!1,We=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,ze=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,$e=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,nt=t.NAMESPACE||rt,Te=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(Me=!1),qe&&(Be=!0),Qe&&(je=b({},o(Q)),Ne=[],!0===Qe.html&&(b(je,q),b(Ne,G)),!0===Qe.svg&&(b(je,W),b(Ne,K),b(Ne,X)),!0===Qe.svgFilters&&(b(je,z),b(Ne,K),b(Ne,X)),!0===Qe.mathMl&&(b(je,$),b(Ne,J),b(Ne,X))),t.ADD_TAGS&&(je===xe&&(je=y(je)),b(je,t.ADD_TAGS,ye)),t.ADD_ATTR&&(Ne===Ce&&(Ne=y(Ne)),b(Ne,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&b(Ze,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ge===Ke&&(Ge=y(Ge)),b(Ge,t.FORBID_CONTENTS,ye)),$e&&(je["#text"]=!0),Ue&&b(je,["html","head","body"]),je.table&&(b(je,["tbody"]),delete Se.tbody),k&&k(t),ut=t)},dt=b({},["mi","mo","mn","ms","mtext"]),mt=b({},["foreignobject","desc","title","annotation-xml"]),ht=b({},["title","style","font","a","script"]),bt=b({},W);b(bt,z),b(bt,H);var yt=b({},$);b(yt,Y);var vt=function(e){var t=j(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});var a=M(e.tagName),r=M(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===at?t.namespaceURI===rt?"svg"===a:t.namespaceURI===tt?"svg"===a&&("annotation-xml"===r||dt[r]):Boolean(bt[a]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===a:t.namespaceURI===at?"math"===a&&mt[r]:Boolean(yt[a]):e.namespaceURI===rt?!(t.namespaceURI===at&&!mt[r])&&(!(t.namespaceURI===tt&&!dt[r])&&(!yt[a]&&(ht[a]||!bt[a]))):!("application/xhtml+xml"!==be||!lt[e.namespaceURI]))},gt=function(e){D(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Et=function(e,t){try{D(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){D(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(Be||qe)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){var t,a;if(Le)e="<remove></remove>"+e;else{var r=V(e,/^[\r\n\t ]+/);a=r&&r[0]}"application/xhtml+xml"===be&&nt===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=N?N.createHTML(e):e;if(nt===rt)try{t=(new m).parseFromString(o,be)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(nt,"template",null);try{t.documentElement.innerHTML=ot?C:o}catch(e){}}var l=t.body||t.documentElement;return e&&a&&l.insertBefore(n.createTextNode(a),l.childNodes[0]||null),nt===rt?de.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:l},wt=function(e){return pe.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Ot=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Pt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,r){he[e]&&S(he[e],function(e){e.call(a,t,r,ut)})},jt=function(e){var t;if(kt("beforeSanitizeElements",e,null),Ot(e))return gt(e),!0;var r=ye(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:je}),e.hasChildNodes()&&!Pt(e.firstElementChild)&&(!Pt(e.content)||!Pt(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return gt(e),!0;if(!je[r]||Se[r]){if(!Se[r]&&Nt(r)){if(Te.tagNameCheck instanceof RegExp&&L(Te.tagNameCheck,r))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(r))return!1}if($e&&!Ge[r]){var n=j(e)||e.parentNode,o=P(e)||e.childNodes;if(o&&n)for(var l=o.length,i=l-1;i>=0;--i)n.insertBefore(w(o[i],!0),O(e))}return gt(e),!0}return e instanceof u&&!vt(e)?(gt(e),!0):"noscript"!==r&&"noembed"!==r||!L(/<\/no(script|embed)/i,e.innerHTML)?(Re&&3===e.nodeType&&(t=e.textContent,t=R(t,ve," "),t=R(t,ge," "),t=R(t,Ee," "),e.textContent!==t&&(D(a.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(gt(e),!0)},xt=function(e,t,a){if(ze&&("id"===t||"name"===t)&&(a in n||a in ct))return!1;if(Me&&!Fe[t]&&L(_e,t));else if(De&&L(we,t));else if(!Ne[t]||Fe[t]){if(!(Nt(e)&&(Te.tagNameCheck instanceof RegExp&&L(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&L(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&L(Te.tagNameCheck,a)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(a))))return!1}else if(Ze[t]);else if(L(ke,R(a,Pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==U(a,"data:")||!Je[e]){if(Ae&&!L(Oe,R(a,Pe,"")));else if(a)return!1}else;return!0},Nt=function(e){return e.indexOf("-")>0},Ct=function(t){var r,n,o,l;kt("beforeSanitizeAttributes",t,null);var i=t.attributes;if(i){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(l=i.length;l--;){r=i[l];var u=r,c=u.name,p=u.namespaceURI;if(n="value"===c?r.value:I(r.value),o=ye(c),s.attrName=o,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,s),n=s.attrValue,!s.forceKeepAttr&&(Et(c,t),s.keepAttr))if(Ve||!L(/\/>/i,n)){Re&&(n=R(n,ve," "),n=R(n,ge," "),n=R(n,Ee," "));var f=ye(t.nodeName);if(xt(f,o,n)){if(!He||"id"!==o&&"name"!==o||(Et(c,t),n="user-content-"+n),N&&"object"===e(h)&&"function"==typeof h.getAttributeType)if(p);else switch(h.getAttributeType(f,o)){case"TrustedHTML":n=N.createHTML(n);break;case"TrustedScriptURL":n=N.createScriptURL(n)}try{p?t.setAttributeNS(p,c,n):t.setAttribute(c,n),F(a.removed)}catch(e){}}}else Et(c,t)}kt("afterSanitizeAttributes",t,null)}},Tt=function e(t){var a,r=wt(t);for(kt("beforeSanitizeShadowDOM",t,null);a=r.nextNode();)kt("uponSanitizeShadowNode",a,null),jt(a)||(a.content instanceof l&&e(a.content),Ct(a));kt("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e){var t,n,o,i,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pt(e)){if("function"!=typeof e.toString)throw B("toString is not a function");if("string"!=typeof(e=e.toString()))throw B("dirty is not a string, aborting")}if(!a.isSupported)return e;if(Ie||ft(u),a.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){var c=ye(e.nodeName);if(!je[c]||Se[c])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)t=_t("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName?t=n:"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Be&&!Re&&!Ue&&-1===e.indexOf("<"))return N&&We?N.createHTML(e):e;if(!(t=_t(e)))return Be?null:We?C:""}t&&Le&>(t.firstChild);for(var p=wt(Ye?e:t);o=p.nextNode();)jt(o)||(o.content instanceof l&&Tt(o.content),Ct(o));if(Ye)return e;if(Be){if(qe)for(i=fe.call(t.ownerDocument);t.firstChild;)i.appendChild(t.firstChild);else i=t;return(Ne.shadowroot||Ne.shadowrootmod)&&(i=me.call(r,i,!0)),i}var f=Ue?t.outerHTML:t.innerHTML;return Ue&&je["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&L(ie,t.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+f),Re&&(f=R(f,ve," "),f=R(f,ge," "),f=R(f,Ee," ")),N&&We?N.createHTML(f):f},a.setConfig=function(e){ft(e),Ie=!0},a.clearConfig=function(){ut=null,Ie=!1},a.isValidAttribute=function(e,t,a){ut||ft({});var r=ye(e),n=ye(t);return xt(r,n,a)},a.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],D(he[e],t))},a.removeHook=function(e){if(he[e])return F(he[e])},a.removeHooks=function(e){he[e]&&(he[e]=[])},a.removeAllHooks=function(){he={}},a}var E=Object.entries,_=Object.setPrototypeOf,w=Object.isFrozen,O=Object.getPrototypeOf,P=Object.getOwnPropertyDescriptor,k=Object.freeze,j=Object.seal,x=Object.create,N="undefined"!=typeof Reflect&&Reflect,C=N.apply,T=N.construct;C||(C=function(e,t,a){return e.apply(t,a)}),k||(k=function(e){return e}),j||(j=function(e){return e}),T||(T=function(e,t){return r(e,o(t))});var S=h(Array.prototype.forEach),F=h(Array.prototype.pop),D=h(Array.prototype.push),M=h(String.prototype.toLowerCase),A=h(String.prototype.toString),V=h(String.prototype.match),R=h(String.prototype.replace),U=h(String.prototype.indexOf),I=h(String.prototype.trim),L=h(RegExp.prototype.test),B=function(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return T(e,a)}}(TypeError),q=k(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=k(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=k(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=k(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=k(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Y=k(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=k(["#text"]),G=k(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),K=k(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=k(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X=k(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=j(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ee=j(/<%[\w\W]*|[\w\W]*%>/gm),te=j(/\${[\w\W]*}/gm),ae=j(/^data-[\-\w.\u00B7-\uFFFF]/),re=j(/^aria-[\-\w]+$/),ne=j(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=j(/^(?:\w+script|data):/i),le=j(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ie=j(/^html$/i),se=function(){return"undefined"==typeof window?null:window},ue=function(t,a){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;a.currentScript&&a.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=a.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return 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 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=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(22),p=r(c),f=a(191),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return"undefined"!=typeof document&&(a.previouslyFocusedElement=document.activeElement),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1,fallbackFocus:"body"};for(var a in e)e.hasOwnProperty(a)&&"returnFocusOnDeactivate"!==a&&(t[a]=e[a]);var r=p.default.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t=this.props.focusTrapOptions.returnFocusOnDeactivate,a=t||!1,r={returnFocus:a};this.focusTrap.deactivate(r)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"setFocusTrapElement",value:function(e){this.focusTrapElement=e}},{key:"render",value:function(){var e=this,t=u.default.Children.only(this.props.children),a=function(a){e.setFocusTrapElement(a),"function"==typeof t.ref&&t.ref(a)};return u.default.cloneElement(t,{ref:a})}}]),t}(u.default.Component);m.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d.default},e.exports=m},function(e,t,a){function r(e,t){function a(e){if(!C.active){P(),C.active=!0,C.paused=!1,C.nodeFocusedBeforeActivation=j.activeElement;var t=e&&e.onActivate?e.onActivate:N.onActivate;return t&&t(),m(),T}}function r(e){if(C.active){clearTimeout(s),h(),C.active=!1,C.paused=!1,p.deactivateTrap(T);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:N.onDeactivate;t&&t();return(e&&void 0!==e.returnFocus?e.returnFocus:N.returnFocusOnDeactivate)&&i(function(){k(v(C.nodeFocusedBeforeActivation))}),T}}function f(){!C.paused&&C.active&&(C.paused=!0,h())}function d(){C.paused&&C.active&&(C.paused=!1,P(),m())}function m(){if(C.active)return p.activateTrap(T),s=i(function(){k(y())}),j.addEventListener("focusin",E,!0),j.addEventListener("mousedown",g,{capture:!0,passive:!1}),j.addEventListener("touchstart",g,{capture:!0,passive:!1}),j.addEventListener("click",O,{capture:!0,passive:!1}),j.addEventListener("keydown",_,{capture:!0,passive:!1}),T}function h(){if(C.active)return j.removeEventListener("focusin",E,!0),j.removeEventListener("mousedown",g,!0),j.removeEventListener("touchstart",g,!0),j.removeEventListener("click",O,!0),j.removeEventListener("keydown",_,!0),T}function b(e){var t=N[e],a=t;if(!t)return null;if("string"==typeof t&&!(a=j.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(a=t()))throw new Error("`"+e+"` did not return a node");return a}function y(){var e;if(!(e=null!==b("initialFocus")?b("initialFocus"):x.contains(j.activeElement)?j.activeElement:C.firstTabbableNode||b("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){var t=b("setReturnFocus");return t||e}function g(e){if(!x.contains(e.target))return N.clickOutsideDeactivates?void r({returnFocus:!u.isFocusable(e.target)}):void(N.allowOutsideClick&&N.allowOutsideClick(e)||e.preventDefault())}function E(e){x.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),k(C.mostRecentlyFocusedNode||y()))}function _(e){return!1!==N.escapeDeactivates&&o(e)?(e.preventDefault(),void r()):l(e)?void w(e):void 0}function w(e){return P(),e.shiftKey&&e.target===C.firstTabbableNode?(e.preventDefault(),void k(C.lastTabbableNode)):e.shiftKey||e.target!==C.lastTabbableNode?void 0:(e.preventDefault(),void k(C.firstTabbableNode))}function O(e){N.clickOutsideDeactivates||x.contains(e.target)||N.allowOutsideClick&&N.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function P(){var e=u(x);C.firstTabbableNode=e[0]||y(),C.lastTabbableNode=e[e.length-1]||y()}function k(e){if(e!==j.activeElement){if(!e||!e.focus)return void k(y());e.focus(),C.mostRecentlyFocusedNode=e,n(e)&&e.select()}}var j=document,x="string"==typeof e?j.querySelector(e):e,N=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),C={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},T={activate:a,deactivate:r,pause:f,unpause:d};return T}function n(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}function o(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function l(e){return"Tab"===e.key||9===e.keyCode}function i(e){return setTimeout(e,0)}var s,u=a(192),c=a(193),p=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var r=e.indexOf(t);-1===r?e.push(t):(e.splice(r,1),e.push(t))},deactivateTrap:function(t){var a=e.indexOf(t);-1!==a&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}}}();e.exports=r},function(e,t){function a(e,t){t=t||{};var a=[],n=[],o=e.querySelectorAll(v);t.includeContainer&&g.call(e,v)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var l,u,c;for(l=0;l<o.length;l++)u=o[l],r(u)&&(c=i(u),0===c?a.push(u):n.push({documentOrder:l,tabIndex:c,node:u}));return n.sort(s).map(function(e){return e.node}).concat(a)}function r(e){return!(!o(e)||d(e)||i(e)<0)}function n(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,v)&&r(e)}function o(e){return!(e.disabled||p(e)||b(e))}function l(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,E)&&o(e)}function i(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?u(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"true"===e.contentEditable}function c(e){return"INPUT"===e.tagName}function p(e){return c(e)&&"hidden"===e.type}function f(e){return c(e)&&"radio"===e.type}function d(e){return f(e)&&!h(e)}function m(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function h(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),a=m(t);return!a||a===e}function b(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}var y=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],v=y.join(","),g="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;a.isTabbable=n,a.isFocusable=l;var E=y.concat("iframe").join(",");e.exports=a},function(e,t){function a(){for(var e={},t=0;t<arguments.length;t++){var a=arguments[t];for(var n in a)r.call(a,n)&&(e[n]=a[n])}return e}e.exports=a;var r=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";var r=a(195),n=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,a,r){function o(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(l,t),this.init()}var l={type:"form"};jQuery.extend(o.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},o=a.data("nonce"),l=a.data("slug"),i=a.data("multi-global-id"),s=a.data("title"),u=a.data("image"),c=a.data("imagex2"),p=a.data("action"),f=a.data("form-id"),d=a.data("multi-id"),m=a.data("poll-id"),h=a.data("quiz-id"),b=_.template('<div class="sui-modal sui-modal-lg"><div role="dialog" id="forminator-integration-popup" class="sui-modal-content" aria-modal="true" aria-labelledby="forminator-integration-popup__title" aria-describedby="forminator-integration-popup__description"><div class="sui-box" style="margin-bottom: 0;"><div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60"><button class="sui-button-icon sui-button-float--right forminator-popup-close"><span class="sui-icon-close sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Close</span></button><button class="sui-button-icon sui-button-float--left forminator-addon-back"><span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Back</span></button><figure class="sui-box-logo" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image2x %> 2x" alt="<%= title %>" /></figure><div class="forminator-integration-popup__header"></div></div><div class="sui-box-body"></div><div class="sui-box-footer sui-flatten sui-content-center"></div></div></div></div>');jQuery("main.sui-wrap").append(b({image:u,image2x:c,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:l,nonce:o,action:p,multi_id:d,global_id:i,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=m:"quiz"===t.options.type&&(y.quiz_id=h),new n.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".forminator-popup-close").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),SUI.openModal("forminator-integration-popup","forminator-form-appearance",void 0,!0,!0),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){SUI.closeModal(),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new o(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 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(29),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 o=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","change select#group":"showInterests"}}));return o.slug=e.slug,o.nonce=e.nonce,o.action=e.action,o.multi_id=e.multi_id,o.global_id=e.global_id,o.type=e.type,o.step=0,o.next_step=!1,o.prev_step=!1,o.scrollbar_width=o.getScrollbarWidth(),"form"===o.type?o.module_id=e.form_id:"poll"===o.type?o.module_id=e.poll_id:"quiz"===o.type&&(o.module_id=e.quiz_id),a=o.render(),n(o,a)}return o(t,e),l(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.global_id=this.global_id,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"applyLoader",value:function(e){e.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload")}},{key:"resetLoader",value:function(e){e.find(".sui-button").removeClass("sui-button-onload")}},{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" style="text-align: center;" aria-label="Loading content"><span class="sui-icon-loader sui-md sui-loading" aria-hidden="true"></span></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".forminator-integration-popup__header").html("")),r.applyLoader(r.$el),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.resetLoader(r.$el),(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 o=jQuery("#forminator-integration-popup");"normal"===a.size&&o.removeClass("sui-modal-sm sui-modal-lg"),"small"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-reduced")),"reduced"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-md")),"large"===a.size&&(o.addClass("sui-modal-lg"),o.removeClass("sui-modal-sm sui-modal-md"))}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.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",0)}if("mailchimp"===r.slug){var l=r.$el.find("#group");l.length&&l.trigger("change")}}),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 .forminator-integration-popup__header").remove();t.length>0&&this.$el.find(".forminator-integration-popup__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=jQuery(e.currentTarget),a=this.slug,r=this.global_id,n=this.nonce,o={slug:a,global_id:r};t.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:o,_ajax_nonce:n}}).done(function(e){if(e.success&&void 0!==e.data.options){var a=t.siblings(".sui-select"),r=a.closest(".sui-modal-content"),n=r.attr("id"),o=r.length?jQuery("#"+n):jQuery("body"),l="true"===a.attr("data-search")?0:-1,i=a.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";a.html(e.data.options),a.SUIselect2({dropdownParent:o,minimumResultsForSearch:l,dropdownCssClass:i})}}).fail(function(){}).always(function(){t.removeClass("sui-button-onload")})}},{key:"showInterests",value:function(e){var t=this,a=jQuery(e.currentTarget),r=a.data("nonce"),n={},o=t.$el.find("form"),l={slug:t.slug,global_id:this.global_id,module_id:this.module_id,module_type:this.type},i=o.serialize();i=i+"&"+jQuery.param(l),n.action="forminator_mailchimp_get_group_interests",n._ajax_nonce=r,n.data=i,t.applyLoader(t.$el),jQuery.ajax({url:ajaxurl,type:"POST",data:n}).done(function(e){e.success&&(o.find(".sui-form-field").slice(1).remove(),o.find(".sui-form-field:first-child").after(e.data),o.find(".sui-form-field").slice(1).find("select").each(function(){SUI.select.init(jQuery(this))}))}).fail(function(){}).always(function(){t.resetLoader(t.$el)})}},{key:"submitNextStep",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,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(),global_id:this.global_id,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(),global_id:this.global_id,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(),global_id:this.global_id,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,e.data.global_id=this.global_id,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,e.global_id=this.global_id),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 o(e){return"string"!=typeof e&&(e=String(e)),e}function l(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 m(){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 h(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=h(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(){l.abort()}var o=new b(e,t);if(o.signal&&o.signal.aborted)return r(new j("Aborted","AbortError"));var l=new XMLHttpRequest;l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:v(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;a(new g(t,e))},l.onerror=function(){r(new TypeError("Network request failed"))},l.ontimeout=function(){r(new TypeError("Network request failed"))},l.onabort=function(){r(new j("Aborted","AbortError"))},l.open(o.method,o.url,!0),"include"===o.credentials?l.withCredentials=!0:"omit"===o.credentials&&(l.withCredentials=!1),"responseType"in l&&_.blob&&(l.responseType="blob"),o.headers.forEach(function(e,t){l.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",n),l.onreadystatechange=function(){4===l.readyState&&o.signal.removeEventListener("abort",n)}),l.send(void 0===o._bodyInit?null:o._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=i,t.Request=b,t.Response=g,a.d(t,"DOMException",function(){return j}),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=o(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)]=o(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)}),l(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),l(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})},m.call(b.prototype),m.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 k=[301,302,303,307,308];g.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var j=self.DOMException;try{new j}catch(e){j=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},j.prototype=Object.create(Error.prototype),j.prototype.constructor=j}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,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.state={open:!1},a.updateValue=a.updateValue.bind(a),a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(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 o=s.default.Children.map(this.props.children,function(e){return e}),l=r&&o;return this.props.noBoxBody||(l=s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},r&&o))),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",{className:"sui-toggle-label"},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"},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 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(6),d=r(f),m=a(3),h=r(m),b=a(11),y=r(b),v=a(520),g=r(v),E=a(245),w=r(E),O=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.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",description:"",default:"false",noWrapper:!0}),c.default.createElement(g.default,i({},this.props,{value:"true",boxClass:t,label:(0,p.translate)("Enable")})),c.default.createElement(y.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(h.default,i({},this.props,{value:"true",label:(0,p.translate)("Enable"),settings:this.props.state,boxClass:"sui-tab-boxed"}),c.default.createElement(w.default,this.props)),c.default.createElement(y.default,{value:"false",label:(0,p.translate)("Disable")}))))}}]),t}(u.Component);t.default=O},function(e,t){function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=a},function(e,t){function a(e){return null!=e&&"object"==typeof e}e.exports=a},,,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){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(430),o=a(431),l=a(432),i=a(433),s=a(434);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(e,t){for(var a=e.length;a--;)if(n(e[a][0],t))return a;return-1}var n=a(375);e.exports=r},function(e,t,a){function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?o(e):l(e)}var n=a(234),o=a(441),l=a(442),i="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;e.exports=r},function(e,t,a){var r=a(186),n=r(Object,"create");e.exports=n},function(e,t,a){function r(e,t){var a=e.__data__;return n(t)?a["string"==typeof t?"string":"hash"]:a.map}var n=a(455);e.exports=r},function(e,t,a){function r(e,t,a,r){var l=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),l?o(a,u,c):n(a,u,c)}return a}var n=a(379),o=a(380);e.exports=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 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(7),d=r(f),m=a(4),h=r(m),b=a(2),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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.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(h.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(h.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){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 o=a(10),l=a(111),i=r(l),s=a(220),u=r(s),c=(0,o.compose)((0,o.applyMiddleware)(i.default))(o.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(10),o=a(221),l=r(o),i=a(222),s=r(i),u=a(223),c=r(u),p=a(224),f=r(p),d=a(225),m=r(d),h=a(226),b=r(h),y=a(227),v=r(y),g=(0,n.combineReducers)({wrappers:l.default,settings:s.default,modal:c.default,integrationConditions:f.default,behaviorArray:m.default,notifications:b.default,pdfs:v.default});t.default=g},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,l.replaceInPosition)(e,r,a)}function o(){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=o;var l=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 s({},e,a)}function o(e,t){var a=t.settings;return s({},a)}function l(e,t){var a=t.title;return e.formName=a,e}function i(){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"RESET_SETTINGS":return o(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 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};t.default=i},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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_INTEGRATION_CONDITIONS":return t.conditions;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;a(1)},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.behavior,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_BEHAVIORS":return t.behaviors;case"UPDATE_BEHAVIOR":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},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,l.replaceInPosition)(e,r,a)}function o(){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=o;var l=a(1)},function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_PDFS":return t.pdfs;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateIntegrationConditions=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_INTEGRATION_CONDITIONS",conditions:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateBehaviorArray=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIORS",behaviors:e})}},t.updateBehavior=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIOR",behavior:e})}}},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){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(373),f=(r(p),function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a.groupId=_.isUndefined(a.props.group)?"":a.props.group,a.actionText=a.groupId?(0,c.translate)("Add fields to group"):(0,c.translate)("Insert Fields"),a}return l(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1,title:this.actionText,groupId:this.groupId},"insert-fields")}},{key:"openModal",value:function(){this.props.actions.modalActions.showModal({open:!0,title:this.actionText,closeModal:this.closeModal,id:"insert-fields",groupId:this.groupId,activeElement:jQuery(document.activeElement),focusFirst:".modal-close-button"},"insert-fields")}},{key:"render",value:function(){var e="pdf-form"===this.props.formType?"blue":"purple";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-"+e+" forminator-open-insert-fields",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.actionText));var t=void 0;return 0!==this.props.wrappers.length||this.groupId||"pdf-form"===this.props.formType||(t=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!"))))),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"}),this.actionText),t)}}]),t}(s.Component));t.default=f},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.props.filename?this.props.filename:"",t="sui-box-banner",a=(0,u.translate)("Forminator image");return _.isUndefined(this.props.logo)||!0!==this.props.logo||(t="sui-box-logo"),_.isUndefined(this.props.alt)||""===this.props.alt||(a=this.props.alt),s.default.createElement("figure",{className:t,"aria-hidden":"true"},s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+e+".png",srcSet:forminatorData.imagesUrl+"/"+e+".png 1x,\n\t\t\t\t\t"+forminatorData.imagesUrl+"/"+e+"@2x.png 2x",alt:a}))}}]),t}(i.Component);t.default=c},function(e,t,a){var r=a(186),n=a(112),o=r(n,"Map");e.exports=o},function(e,t,a){var r=a(112),n=r.Symbol;e.exports=n},function(e,t,a){function r(e){return l(e)?n(e):o(e)}var n=a(381),o=a(469),l=a(385);e.exports=r},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function a(e){return function(t){return e(t)}}e.exports=a},function(e,t,a){(function(e){var r=a(377),n="object"==typeof t&&t&&!t.nodeType&&t,o=n&&"object"==typeof e&&e&&!e.nodeType&&e,l=o&&o.exports===n,i=l&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(t,a(237)(e))},function(e,t){function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=a},function(e,t,a){var r=a(477),n=a(387),o=Object.prototype,l=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return l.call(e,t)}))}:n;e.exports=s},function(e,t,a){var r=a(481),n=a(233),o=a(482),l=a(483),i=a(484),s=a(214),u=a(378),c=u(r),p=u(n),f=u(o),d=u(l),m=u(i),h=s;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=h(new n)||o&&"[object Promise]"!=h(o.resolve())||l&&"[object Set]"!=h(new l)||i&&"[object WeakMap]"!=h(new i))&&(h=function(e){var t=s(e),a="[object Object]"==t?e.constructor:void 0,r=a?u(a):"";if(r)switch(r){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,a){function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}var n=a(487);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=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.validProp=o+"validation",a.validTextProp=o+"validation_message",a}return o(t,e),l(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,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(20),d=r(f),m=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(){return c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"hidden_behavior",defaultValue:"ignore",label:(0,p.translate)("When this field is hidden, should its value be null (zero), or should the field be ignored in calculations?"),noWrapper:!0}),c.default.createElement("span",{value:"zero"},(0,p.translate)("Null (zero)")),c.default.createElement("span",{value:"ignore"},(0,p.translate)("Ignore this field")))}}]),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){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 o(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 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){var a=[],r=!0,n=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw o}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=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}}(),p=a(0),f=r(p),d=a(1),m=a(7),h=r(m),b=a(4),y=r(b),v=a(522),g=r(v),E=a(41),w=r(E),O=a(24),P=r(O),k=a(523),j=r(k),x=function(e){function t(e){o(this,t);var a=l(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),c(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.state.limit_status;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,o=this.state.is_loading,l=void 0,i=void 0;if(n||!e.state.bulk_edit||o||this.setState({is_loading:!0}),!n&&o){var s=r.length<50?400:700;clearTimeout(i),i=setTimeout(function(){a.setState({is_loading:!1,show_standard:!0})},s)}return clearTimeout(l),n&&this.props.state.options_bulk_editor!==e.state.options_bulk_editor?l=setTimeout(function(){a.convertToStandard()},500):n||this.props.state.options===e.state.options||(l=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,d.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"),o=this.$el.find(".import-csv-btn"),l=this.$el.find(".uploaded-csv-file"),i=l.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,d.translate)("Whoops, only .csv filetype is allowed."))):(o.prop("disabled",!1),n.hide(),l.show(),l.find("> span").html(t.replace(/^.*[\\\/]/,"")),0!==e.props.state.options_bulk_editor.length&&e.showError((0,d.translate)("Importing this will replace your current options. Click import to continue."),"warning"))}else o.prop("disabled",!0),n.show(),l.hide(),l.find("> span").html(""),e.hideError()}),o.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,d.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.addClass("sui-active"),this.$importError.show()}},{key:"hideError",value:function(){this.$importError.find("p").text(""),this.$importError.removeClass("sui-active"),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,d.randNumber)()+"-"+(0,d.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,d.randNumber)()+"-"+(0,d.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=this.props.state.value_type,r="",n=!1;_.map(e,function(e,o){o>0&&(r+="\n");var l=e.label,i=e.value;r+=l,r+=";",_.isUndefined(i)?_.isUndefined(l)?r+="":r+=l:r+=i,_.isUndefined(e.default)||!e.default||("radio"===t||"select"===t&&"single"===a)&&n?(r+="; ",r+="0"):e.default&&(r+="; ",r+="1",n=!0),"select"===t?_.isUndefined(e.limit)||_.isEmpty(e.limit)||(r+="; ",r+=e.limit):_.isUndefined(e.image)||_.isEmpty(e.image)||(r+="; ",r+=e.image)}),this.setState({options_bulk_editor:r}),this.props.updateProperty("options_bulk_editor",r)}},{key:"convertToStandard",value:function(){var e=this,t=this.props.state.type,a=this.props.state.value_type,r=[],n=this.props.state.options_bulk_editor;if(!_.isUndefined(n)&&n.length>0){var o=0,l=!1;n=n.split(/\r\n|\r|\n/),_.map(n,function(n,i){if(Boolean(n)){var s=n.split(";"),u=!_.isUndefined(s[2])&&1==s[2],c=_.isEmpty(s[0])?(0,d.translate)("Option ")+(o+1):s[0],p=_.isUndefined(s[1])?"":s[1];if(p=_.isEmpty(p)?c:p,r[o]={key:e.generateUniqId(),label:c,value:p},r[o].default=("radio"!==t&&("select"!==t||"single"!==a)||!l)&&u,u&&(l=!0),_.isEmpty(s[3])||("select"===t?"enable"===e.props.state.limit_status&&(r[o].limit=s[3]):(r[o].image=s[3],r[o].image_filename=s[3].replace(/^.*[\\\/]/,""))),e.props.state.calculations){var f=_.find(e.state.options_calcs,function(e){return e.label===c});r[o].calculation=_.isUndefined(f)?"":f.calculation}o++}})}this.setState({options:r}),this.props.updateProperty("options",r)}},{key:"findDuplicateOptions",value:function(e){var t=null;return _.map(e,function(a){var r=_.filter(e,{label:a.label}).length,n=_.filter(e,{value:a.value}).length;switch(!0){case _.isEmpty(a.value):t="Warning! Option value is empty it won't appear in the dropdown.",a.error=!0;break;case r>1&&n>1:t="Warning! You've added options with same label and value.",a.error=!0;break;case r>1:t="Warning! You've added options with same label.",a.error=!0;break;case n>1:t="Warning! You've added options with same value.",a.error=!0;break;default:t=null,a.error=!1}}),[e,t]}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state.options_expanded)||!this.props.state.options_expanded?(0,d.translate)("Expand All"):(0,d.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",o=this.findDuplicateOptions(this.state.options),l=u(o,2),i=l[0],c=l[1],p=this.state.options_bulk_editor,m=this.state.is_loading,b=this.state.show_standard,v=i.length>1e3,E=0===i.length?"no-option":"";switch(r){case"select":(0,d.translate)("Select");break;case"radio":(0,d.translate)("Radio");break;case"checkbox":(0,d.translate)("Checkbox")}var O=(0,d.translate)("Label; value; selection (0 or 1); image-url");"select"===r&&(O="enable"===this.props.state.limit_status?(0,d.translate)("Label; value; selection (0 or 1); submission limit"):(0,d.translate)("Label; value; selection (0 or 1)"));var k=forminatorData.pluginUrl+"assets/csv/"+n;return f.default.createElement("div",{id:"demo-multi-options--radio",className:"sui-form-field multi-options-bulk",ref:function(t){return e.el=t}},v&&a||c&&f.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"},"aria-live":"assertive"},f.default.createElement("div",{className:"sui-notice-content"},f.default.createElement("div",{className:"sui-notice-message"},f.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),f.default.createElement("p",null,c?(0,d.translate)(c):(0,d.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."))))),f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"3"},f.default.createElement("label",{id:"label-options",className:"sui-label"},(0,d.translate)("Options"))),f.default.createElement(y.default,{cols:"9"},f.default.createElement("div",{className:"switch-box"},!a&&f.default.createElement(w.default,s({},this.props,{settings:this.props.state,label:t,property:"options_expanded",itemClass:"sui-checkbox sui-checkbox-sm collapse-options"})),"select"!==r&&f.default.createElement(w.default,s({},this.props,{settings:this.props.state,label:(0,d.translate)("Enable Images"),property:"enable_images",itemClass:"sui-checkbox-sm "})),f.default.createElement("span",{className:"bulk-edit-toggle "},f.default.createElement(P.default,s({},this.props,{settings:this.props.state,property:"bulk_edit",label:(0,d.translate)("Bulk Edit"),unWrap:!0})))))),m&&f.default.createElement("div",{className:"multi-opts-preloader"},f.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}," ",(0,d.translate)("Loading"),"...")),!a&&b&&f.default.createElement("div",{className:"sui-accordion sui-accordion-block"},f.default.createElement("div",{className:"fui-multi-options standard-editor "+E},_.map(i,function(t,a){return f.default.createElement(g.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))})),f.default.createElement("div",{className:"fui-multi-options"},f.default.createElement("button",{className:"fui-add-option",onClick:this.addOption},f.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,d.translate)("Add Option")))),a&&f.default.createElement("div",{className:"fui-multi-options"},f.default.createElement("div",{className:"sui-box sui-message sui-message-lg fui-multi-options-bulk"},f.default.createElement(j.default,s({},this.props,{settings:this.props.state,property:"options_bulk_editor",defaultValue:p,value:p,updateValue:this.updateBulkValue,label:(0,d.translate)("Enter field options (one per line)"),description:(0,d.translate)('Type or paste options above (one per line and separated by semicolons) or click \n {{b}}"+ Predefined options"{{/b}} link to select an option. Example: {{b}}'+O+"{{/b}}",{components:{b:f.default.createElement("b",null)}})})),f.default.createElement("div",{className:"sui-form-field bulk-importer"},f.default.createElement("label",{className:"sui-label"},(0,d.translate)("Import options from CSV")),f.default.createElement("div",{className:"sui-upload"},f.default.createElement("input",{id:"upload-csv-input",type:"file",value:"",readOnly:"readonly",accept:".csv"}),f.default.createElement("button",{className:"sui-upload-button upload-csv-btn"},f.default.createElement("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),(0,d.translate)("Upload file")),f.default.createElement("div",{className:"sui-upload-file uploaded-csv-file"},f.default.createElement("span",null),f.default.createElement("button",{className:"remove-file","aria-label":"Remove file"},f.default.createElement("span",{className:"sui-icon-close","aria-hidden":"true"}))),f.default.createElement("button",{role:"button",className:"sui-button sui-button-blue import-csv-btn",disabled:!0},f.default.createElement("span",{className:"sui-icon-download-cloud","aria-hidden":"true"}),(0,d.translate)("Import"))),f.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error","aria-live":"assertive"},f.default.createElement("div",{className:"sui-notice-content"},f.default.createElement("div",{className:"sui-notice-message"},f.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),f.default.createElement("p",null)))),f.default.createElement("span",{className:"sui-description"},(0,d.translate)("Choose a CSV (.csv) file to import field options and values.")+" ",k&&f.default.createElement("a",{className:"blue",href:k,target:"_blank",download:n},(0,d.translate)("Download csv template")))))))}}]),t}(p.Component);t.default=x},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(15),d=r(f),m=a(20),h=r(m),b=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:"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=e.charAt(0).toUpperCase()+e.slice(1);return c.default.createElement(d.default,null,c.default.createElement("label",{className:"sui-settings-label"},t+" "+(0,p.translate)("options display order")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, "+e+" options are displayed orderly to users. However, you can use the below option to display them randomly upon refreshing the page.")),c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"options_order",defaultValue:"orderly",noWrapper:!0}),c.default.createElement("div",{value:"orderly"},(0,p.translate)("Orderly")),c.default.createElement("div",{value:"random"},(0,p.translate)("Random"))))}}]),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 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(26),a(1)),f=a(249),d=r(f),m=a(250),h=r(m),b=a(251),y=r(b),v=a(252),g=r(v),E=a(253),_=(r(E),a(254)),w=r(_),O=a(6),P=r(O),k=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Design Style")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a pre-made style for your form and further customize it's appearance below."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(P.default,i({},this.props,{property:"form-style",default:"default"}),c.default.createElement(d.default,{value:"default",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Default")),c.default.createElement(h.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Flat")),c.default.createElement(y.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Bold")),c.default.createElement(g.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Material")),c.default.createElement(w.default,{value:"none",boxClass:"sui-tab-content"},(0,p.translate)("None")))))}}]),t}(u.Component);t.default=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){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(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--default"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),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){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--flat"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),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){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--bold"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),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){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--material"},s.default.createElement("div",{className:"fui-is_empty"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",readOnly:"readonly"})),s.default.createElement("div",{className:"fui-is_filled"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"})),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),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){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--basic"},s.default.createElement("div",{className:"fui-is_empty"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",readOnly:"readonly"})),s.default.createElement("div",{className:"fui-is_filled"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"})),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),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){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,(0,u.translate)("You have opted for no stylesheet to be enqueued. The form will inherit styles from your theme's CSS.")))))}}]),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 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(40),f=r(p),d=a(39),m=r(d),h=a(1),b=a(35),y=r(b),v=a(256),g=r(v),E=a(257),w=r(E),O=a(258),P=r(O),k=a(259),j=r(k),x=a(260),N=r(x),C=a(261),T=r(C),S=a(262),F=r(S),D=a(263),M=r(D),A=a(264),V=r(A),R=a(265),U=r(R),I=a(266),L=r(I),B=a(267),q=r(B),W=a(268),z=r(W),H=a(269),$=r(H),Y=a(270),Q=r(Y),G=a(271),K=r(G),J=a(272),X=r(J),Z=a(273),ee=r(Z),te=a(274),ae=r(te),re=a(275),ne=r(re),oe=a(276),le=r(oe),ie=a(277),se=r(ie),ue=a(278),ce=r(ue),pe=a(279),fe=r(pe),de=a(11),me=r(de),he=a(3),be=r(he),ye=a(6),ve=r(ye),ge=a(280),Ee=r(ge),_e=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:"componentDidMount",value:function(){this.loadFonts()}},{key:"componentDidUpdate",value:function(){this.loadFonts()}},{key:"loadFonts",value:function(){if(_.isUndefined(window.forminatorFonts)){var e={isObject:!0},t={action:"forminator_load_google_fonts",data:e,_wpnonce:forminatorData.gFontNonce};m.default.post(forminatorData.ajaxUrl,f.default.stringify(t)).then(function(e){window.forminatorFonts=e.data.data}).catch(function(e){console.log(e)})}}},{key:"hasIndicatorEnabled",value:function(e){return void 0!==e["submission-indicator"]&&"show"===e["submission-indicator"]}},{key:"render",value:function(){var e=(0,h.hasFieldType)("page-break",this.props.wrappers),t=(0,h.hasFieldType)("section",this.props.wrappers),a=(0,h.hasFieldWithAttribute)(this.props.wrappers,"radio","value_type","radio"),r=(0,h.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","single"),n=(0,h.hasFieldWithAttribute)(this.props.wrappers,"checkbox","value_type","checkbox"),o=(0,h.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),l=(0,h.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,h.hasFieldType)("signature",this.props.wrappers),u=(0,h.hasFieldType)("group",this.props.wrappers),p=(0,h.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),f=(0,h.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,h.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),d=(0,h.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),m=(0,h.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),b=(0,h.hasFieldType)("gdprcheckbox",this.props.wrappers),v=(0,h.hasFieldType)("upload",this.props.wrappers),E=(0,h.hasFieldType)("currency",this.props.wrappers),O=(0,h.hasFieldType)("stripe",this.props.wrappers),k=(0,h.hasFieldType)("calculation",this.props.wrappers),x=(0,h.hasFieldType)("consent",this.props.wrappers),C=(0,h.hasPostdataFieldWithMultiselect)(this.props.wrappers),S=!_.isUndefined(this.props.preset),D=S||this.hasIndicatorEnabled(this.props.settings),A=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],R=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return 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,h.translate)("Colors")),c.default.createElement("span",{className:"sui-description"},(0,h.translate)("Adjust the default color combinations to match your theme styling."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(ve.default,i({},this.props,{property:"cform-color-settings",default:""}),c.default.createElement(me.default,{value:"",boxClass:""},(0,h.translate)("Use Default Colors")),c.default.createElement(be.default,{value:"true",label:(0,h.translate)("Custom")},c.default.createElement("div",{className:"sui-accordion"},c.default.createElement("div",{className:"sui-accordion-header"},c.default.createElement("div",null,(0,h.translate)("Element"))),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Form Container")}),c.default.createElement(g.default,this.props)),D&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Submission Indicator")}),c.default.createElement(P.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Response Success")}),c.default.createElement("p",{className:"sui-description"},(0,h.translate)("Successful response message will be displayed after form submission succeeds.")),c.default.createElement(N.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Response Error")}),c.default.createElement("p",{className:"sui-description"},(0,h.translate)("Error response message will be displayed after form submission fails.")),c.default.createElement(j.default,this.props)),(S||e&&"show"===A&&"nav"===R)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Pagination Steps")}),c.default.createElement(ne.default,this.props)),(S||e&&"show"===A&&"bar"===R)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Pagination Progress Bar")}),c.default.createElement(le.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Fields Basics")}),c.default.createElement(w.default,this.props)),t&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Section")}),c.default.createElement(T.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Input and Textarea")}),c.default.createElement(F.default,this.props)),(l||E||O||k)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Input Extras")}),c.default.createElement(M.default,this.props)),(n||a||b)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Radio and Checkbox")}),c.default.createElement(V.default,this.props)),(r||p||f||d||m)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Select")}),c.default.createElement(L.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Dropdown List")}),c.default.createElement(q.default,this.props))),d&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Dropdown Search")}),c.default.createElement(z.default,this.props)),(o||C)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Multi Select")}),c.default.createElement($.default,this.props)),l&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Calendar Basics")}),c.default.createElement(Q.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Calendar Table")}),c.default.createElement(ae.default,this.props))),v&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("File Upload"),boxedContent:!1}),c.default.createElement(Ee.default,this.props)),s&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("E-Signature")}),c.default.createElement(K.default,this.props))),u&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Field Group")}),c.default.createElement(X.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Repeater Button"),boxedContent:!1}),c.default.createElement(ee.default,this.props))),e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Button Back")}),c.default.createElement(se.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Button Next")}),c.default.createElement(ce.default,this.props))),x&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Consent")}),c.default.createElement(U.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Submit Button")}),c.default.createElement(fe.default,this.props)))))))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#00000000"),property:(0,p.getThemePrefix)(this.props)+"cform-form-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#00000000"),property:(0,p.getThemePrefix)(this.props)+"cform-form-background",label:(0,p.translate)("Background color"),isAlpha:!0})))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"cform-label-color",label:(0,p.translate)("Label")})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"cform-asterisk-color",label:(0,p.translate)("Required asterisk")})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"label-helper-color",label:(0,p.translate)("Description")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"label-validation-background",label:(0,p.translate)("Error message BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"label-validation-color",label:"material"!==this.props.formDesign?(0,p.translate)("Error message color"):(0,p.translate)("Global error color"),description:"material"===this.props.formDesign?(0,p.translate)("This color will be used when fields throw an error as text color, border color, etc."):""})))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F8F8F8"),property:(0,p.getThemePrefix)(this.props)+"response-loading-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666"),property:(0,p.getThemePrefix)(this.props)+"response-loading-color",label:(0,p.translate)("Text color")})))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"response-error-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"response-error-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),property:(0,p.getThemePrefix)(this.props)+"response-error-color",label:(0,p.translate)("Text color")})))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),property:(0,p.getThemePrefix)(this.props)+"response-success-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#BCEEE6"),property:(0,p.getThemePrefix)(this.props)+"response-success-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),property:(0,p.getThemePrefix)(this.props)+"response-success-color",label:(0,p.translate)("Text color")})))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Title color"),property:(0,p.getThemePrefix)(this.props)+"cform-title-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Subtitle color"),property:(0,p.getThemePrefix)(this.props)+"cform-subtitle-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:(0,p.getThemePrefix)(this.props)+"input-placeholder",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-hover-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-hover-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-active-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-active-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"input-border-error",label:(0,p.translate)("Border color"),isAlpha:!0}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),t=(0,p.hasFieldType)("calculation",this.props.wrappers),a=(0,p.hasFieldType)("currency",this.props.wrappers),r=(0,p.hasFieldType)("stripe",this.props.wrappers),n=c.default.createElement(c.default.Fragment,null,(e||r)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"prefix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"suffix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Suffix color")})));return r&&(n=c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},(e||r)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"prefix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"suffix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Suffix color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},r&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},r&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),label:(0,p.translate)("Icon color")}))))),n}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"radio-border-static",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"radio-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),"flat"!==this.props.formDesign||"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image border"),property:(0,p.getThemePrefix)(this.props)+"radio-image-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image background"),property:(0,p.getThemePrefix)(this.props)+"radio-image-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Checked"),value:"checked"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"radio-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"radio-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),"flat"!==this.props.formDesign||"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image border"),property:(0,p.getThemePrefix)(this.props)+"radio-image-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image background"),property:(0,p.getThemePrefix)(this.props)+"radio-image-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E1F6FF"),isAlpha:!0}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"radio-border-error",label:(0,p.translate)("Border color"),isAlpha:!0})),"flat"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),isAlpha:!0}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-border-static",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Checked"),value:"checked"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-border-error",label:(0,p.translate)("Border color"),isAlpha:!0})),"flat"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"consent-cbox-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),isAlpha:!0}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),isAlpha:!0}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-border",label:(0,p.translate)("Container border"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),property:(0,p.getThemePrefix)(this.props)+"dropdown-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-static",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-background-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-hover",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Selected"),value:"selected"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-background-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-active",label:(0,p.translate)("Option color")}))))}}]),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 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(5),d=r(f),m=a(9),h=(r(m),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(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component));t.default=h},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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border",label:"material"!==this.props.formDesign?(0,p.translate)("Container border"):(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),property:(0,p.getThemePrefix)(this.props)+"multiselect-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-static",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-hover",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-bg-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-hover",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Selected"),value:"selected"},"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-active",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-bg-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"material"!==this.props.formDesign?"#FFFFFF":"#17A8E3",property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-active",label:(0,p.translate)("Option color")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-error",label:(0,p.translate)("Container border"),isAlpha:!0}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"container",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Container"),value:"container"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:""!==this.props.formDesign?(0,p.translate)("Border"):(0,p.translate)("Header background"),property:(0,p.getThemePrefix)(this.props)+"calendar-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:""!==this.props.formDesign?(0,p.translate)("Background"):(0,p.translate)("Main background"),property:(0,p.getThemePrefix)(this.props)+"calendar-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Navigation"),value:"navigation"},"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows background"),property:(0,p.getThemePrefix)(this.props)+"calendar-arrows-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows color"),property:(0,p.getThemePrefix)(this.props)+"calendar-arrows-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Select"),value:"select"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#BBBBBB"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"signature-background-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:(0,p.getThemePrefix)(this.props)+"signature-placeholder",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Signature Color"),property:(0,p.getThemePrefix)(this.props)+"signature-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:(0,p.getThemePrefix)(this.props)+"signature-reset-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"signature-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:(0,p.getThemePrefix)(this.props)+"signature-reset-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"error",label:(0,p.translate)("Error")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")}))))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(248,248,248,.5)"),property:(0,p.getThemePrefix)(this.props)+"group-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(221,221,221,.5)"),property:(0,p.getThemePrefix)(this.props)+"group-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(170,170,170,.5)"),property:(0,p.getThemePrefix)(this.props)+"group-divider",label:(0,p.translate)("Divider color"),isAlpha:!0})))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),y=r(b),v=a(35),g=r(v),E=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(){return c.default.createElement("div",{className:"sui-box"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Button")}),c.default.createElement(h.default,{default:"default",extraClass:"sui-tabs-flushed",type:"tabs"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F8F8F8")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"repeater-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#AAAAAA")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F1F1F1")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"repeater-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#AAAAAA")}))),c.default.createElement(y.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-background-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F1F1F1")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"repeater-border-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#AAAAAA")}))))),c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Icon")}),c.default.createElement(h.default,{default:"default",extraClass:"sui-tabs-flushed",type:"tabs"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"repeater-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"repeater-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"repeater-icon-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))))),c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Link")}),c.default.createElement(h.default,{default:"default",extraClass:"sui-tabs-flushed",type:"tabs"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-link",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-link-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-link-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table head color"),property:(0,p.getThemePrefix)(this.props)+"calendar-dweek",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")}))),c.default.createElement(y.default,{label:(0,p.translate)("Active"),value:"active"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Current"),value:"current"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#C8DEE7"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),y=r(b),v=a(15),g=r(v),E=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(){return c.default.createElement(h.default,{default:"border",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Border"),value:"border"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Default"),property:(0,p.getThemePrefix)(this.props)+"timeline-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"bold"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:(0,p.getThemePrefix)(this.props)+"timeline-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Label"),value:"label"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Default"),property:(0,p.getThemePrefix)(this.props)+"timeline-text",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:(0,p.getThemePrefix)(this.props)+"timeline-text-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{label:(0,p.translate)("Dot"),value:"dot"},c.default.createElement(g.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default state colors"))),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(g.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Current state colors"))),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-background-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-color-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")})))))}}]),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 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(5),d=r(f),m=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label"),property:(0,p.getThemePrefix)(this.props)+"progress-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress bar BG"),property:(0,p.getThemePrefix)(this.props)+"progress-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress status BG"),property:(0,p.getThemePrefix)(this.props)+"progress-background-status",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),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 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(35),d=r(f),m=a(281),h=r(m),b=a(282),y=r(b),v=a(283),g=r(v),E=a(284),_=r(E),w=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=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","single")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"postdata","post_image","false"),t=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","multiple");return c.default.createElement("div",{className:"sui-box"},e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Single File Uploader")}),c.default.createElement(h.default,this.props))),t&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Multiple Files Uploader")}),c.default.createElement(y.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Uploaded File")}),c.default.createElement(g.default,this.props))),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Uploaded File Delete Button")}),c.default.createElement(_.default,this.props)))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABC9C"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#01A383"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#01A383"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),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 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(9),d=r(f),m=a(3),h=r(m),b=a(5),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(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(h.default,{value:"default",label:(0,p.translate)("Default")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message text color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-text-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message link color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-link-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(h.default,{value:"hover",label:(0,p.translate)("Hover")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))),c.default.createElement(h.default,{value:"drop",label:(0,p.translate)("Drop")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E1F6FF"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0}))),c.default.createElement(h.default,{value:"error",label:(0,p.translate)("Error")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:"flat"===this.props.formDesign?(0,p.translate)("Left border color"):(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))))}}]),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 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(9),d=r(f),m=a(3),h=r(m),b=a(5),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(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(h.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview border color"),description:(0,p.translate)("Default state border will not appear when file uploaded is an image."),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-background-default",defaultValue:"flat"===this.props.formDesign?"#EDEDED":"#FFFFFF"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File name color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-name-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-size-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Loading icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-loader-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(h.default,{value:"error",label:(0,p.translate)("Error")},c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-background-error",defaultValue:"flat"===this.props.formDesign?"#EDEDED":"#FFFFFF"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-icon-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-error-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")}))))}}]),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 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(5),d=r(f),m=a(9),h=r(m),b=a(3),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(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#00000000"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-static",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-static",label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-hover",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-hover",label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-active",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-active",label:(0,p.translate)("Icon color")}))))}}]),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 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(3),d=r(f),m=a(6),h=r(m),b=a(35),y=r(b),v=a(11),g=r(v),E=a(286),w=r(E),O=a(15),P=r(O),k=a(9),j=r(k),x=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=(0,p.hasFieldType)("page-break",this.props.wrappers),t=(0,p.hasFieldType)("section",this.props.wrappers),a=(0,p.hasFieldWithAttribute)(this.props.wrappers,"radio","value_type","radio"),r=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","single"),n=(0,p.hasFieldWithAttribute)(this.props.wrappers,"checkbox","value_type","checkbox"),o=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),l=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),u=(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),f=(0,p.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),m=(0,p.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),b=(0,p.hasFieldType)("gdprcheckbox",this.props.wrappers),v=(0,p.hasFieldType)("currency",this.props.wrappers),E=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","single")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"postdata","post_image","false"),O=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","multiple"),k=(0,p.hasFieldType)("signature",this.props.wrappers),x=(0,p.hasFieldType)("calculation",this.props.wrappers),N=(0,p.hasFieldType)("group",this.props.wrappers),C=!_.isUndefined(this.props.preset),T=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],S=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return c.default.createElement(P.default,{label:(0,p.translate)("Fonts"),description:(0,p.translate)("By default this form will inherit the fonts your theme uses. You can overwrite these fonts with custom ones from {{link}}Bunny Fonts{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://fonts.bunny.net/about",target:"_blank"})}})},c.default.createElement(h.default,i({},this.props,{property:"form-font-family",default:""}),c.default.createElement(g.default,{value:""},(0,p.translate)("Use Theme Fonts")),c.default.createElement(d.default,{value:"custom",label:(0,p.translate)("Custom")},c.default.createElement("div",{className:"sui-accordion"},c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Response Message")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-response",defaultSize:"15",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),(C||e&&"show"===T&&"nav"===S)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Steps")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-timeline",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(C||e&&"show"===T&&"bar"===S)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Progress Bar")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-progress",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Label")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-label",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Description")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-description",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Error Message")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-validation",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),t&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Section Title")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-title",defaultSize:"45",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Section Subtitle")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-subtitle",defaultSize:"18",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input and Textarea")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input",defaultSize:"16",defaultFont:"Roboto",defaultWeight:"400"}))),x&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input Prefix")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input-prefix",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(v||x)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input Suffix")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input-suffix",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(n||a||b)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Radio and Checkbox")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-radio",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),(r||s||u||f||m)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Select")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-select",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Dropdown")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-dropdown",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})))),l&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Calendar")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-calendar",defaultFont:"custom",defaultCustom:"inherit",familyOnly:!0}))),o&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Multi Select")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-multiselect",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),E&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Single File Upload")}),c.default.createElement(j.default,i({},this.props,{type:"tabs",default:"upload-single-button",extraClass:"sui-tabs-flushed"}),c.default.createElement(w.default,i({},this.props,{value:"upload-single-button",label:(0,p.translate)("Upload Button"),prefix:"upload-single-button",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"})),c.default.createElement(w.default,i({},this.props,{value:"upload-single-text",label:(0,p.translate)("File Name"),prefix:"upload-single-text",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"})))),O&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Multiple Files Upload")}),c.default.createElement(j.default,i({},this.props,{type:"tabs",default:"upload-multiple-panel",extraClass:"sui-tabs-flushed"}),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-panel",label:(0,p.translate)("Upload Panel"),prefix:"upload-multiple-panel",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-file-name",label:(0,p.translate)("File Name"),prefix:"upload-multiple-file-name",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-file-size",label:(0,p.translate)("File Size"),prefix:"upload-multiple-file-size",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})))),k&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("E-Signature Placeholder")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-esign-placeholder",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),N&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Repeater Button")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-repeater-button",defaultSize:"12",defaultFont:"Roboto",defaultWeight:"500"}))),e&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Buttons")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-pagination-buttons",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Submit Button")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-button",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})))))))}}]),t}(u.Component);t.default=x},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(7),d=r(f),m=a(4),h=r(m),b=a(2),y=r(b),v=a(16),g=r(v),E=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:"backwardsCompat",value:function(e,t){return _.contains(t,e)||t.push(e),t}},{key:"render",value:function(){var e=(0,p.getThemePrefix)(this.props),t=e+this.props.prefix,a="basic-"===e?"":this.props.defaultFont,r=_.isUndefined(this.props.settings[t+"-font-family"])?a:this.props.settings[t+"-font-family"],n=_.isUndefined(this.props.settings[t+"-custom-family"])?this.props.defaultCustom:this.props.settings[t+"-custom-family"],o="basic-"===e?"":this.props.defaultWeight,l=_.isUndefined(this.props.settings[t+"-font-weight"])?o:this.props.settings[t+"-font-weight"],s="basic-"===e?"":this.props.defaultSize,u=_.isUndefined(this.props.settings[t+"-font-size"])?s:this.props.settings[t+"-font-size"],f=(0,p.getFontVariants)(r,window.forminatorFonts),m=this.backwardsCompat(l,f);return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Font Family"),placeholder:(0,p.translate)("Roboto"),property:t+"-font-family",defaultValue:""+(0,p.getDefaultValue)(this.props,r)}),_.map(window.forminatorFonts,function(e){return c.default.createElement("option",{value:e.family,key:e.family},e.family)}),c.default.createElement("option",{value:"",key:"inherit"},(0,p.translate)("inherit")),c.default.createElement("option",{value:"custom",key:"custom"},(0,p.translate)("Custom user font"))),"custom"===r&&c.default.createElement(y.default,i({},this.props,{type:"text",property:t+"-custom-family",defaultValue:""+(0,p.getDefaultValue)(this.props,n),placeholder:(0,p.translate)("E.g., Arial, sans-serif"),label:(0,p.translate)("Custom font family"),prefix:""})))),!this.props.familyOnly&&c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{type:"number",property:t+"-font-size",defaultValue:""+(0,p.getDefaultValue)(this.props,u),placeholder:(0,p.translate)("E.g., 16"),label:(0,p.translate)("Font Size"),note:"in px",prefix:""}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Font Weight"),placeholder:(0,p.translate)("Select font weight"),property:t+"-font-weight",defaultValue:""+(0,p.getDefaultValue)(this.props,l)}),c.default.createElement("option",{value:"",key:"inherit"},(0,p.translate)("inherit")),_.map(m,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))}}]),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 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(11),d=r(f),m=a(288),h=r(m),b=a(289),y=r(b),v=a(290),g=r(v),E=a(6),_=r(E),w=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Form Container")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Customize the form container's padding and border."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(_.default,i({},this.props,{property:"form-padding",settingsLabel:(0,p.translate)("Padding"),description:(0,p.translate)("By default the form will fill the available space where you insert it. You can add some padding here to better suit your theme.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(h.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(_.default,i({},this.props,{property:"form-border",settingsLabel:(0,p.translate)("Border"),description:(0,p.translate)("Add an optional border around the form.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(y.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(_.default,i({},this.props,{property:"fields-style",settingsLabel:(0,p.translate)("Spacing"),default:"open",description:(0,p.translate)("Choose how much spacing you want between each form field.")}),c.default.createElement(d.default,{value:"open"},(0,p.translate)("Comfortable")),c.default.createElement(d.default,{value:"enclosed"},(0,p.translate)("Compact")),c.default.createElement(g.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom")))))}}]),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 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(4),d=r(f),m=a(2),h=r(m),b=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Top"),type:"number",placeholder:"0",property:"form-padding-top"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Bottom"),type:"number",placeholder:"0",property:"form-padding-bottom"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Left"),type:"number",placeholder:"0",property:"form-padding-left"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Right"),type:"number",placeholder:"0",property:"form-padding-right"})))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set your custom padding in pixels.")))}}]),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 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(7),d=(r(f),a(4)),m=r(d),h=a(2),b=r(h),y=a(16),v=r(y),g=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(m.default,{cols:"4"},c.default.createElement(b.default,i({},this.props,{label:(0,p.translate)("Radius"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"form-border-radius"}))),c.default.createElement(m.default,{cols:"4"},c.default.createElement(b.default,i({},this.props,{label:(0,p.translate)("Thickness"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"form-border-width"}))),c.default.createElement(m.default,{cols:"4"},c.default.createElement(v.default,i({},this.props,{property:"form-border-style",label:(0,p.translate)("Style")}),c.default.createElement("option",{value:"solid"},(0,p.translate)("Solid")),c.default.createElement("option",{value:"dashed"},(0,p.translate)("Dashed")),c.default.createElement("option",{value:"dotted"},(0,p.translate)("Dotted")),c.default.createElement("option",{value:"none"},(0,p.translate)("None"))))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Note: Set the color of the border in the Colors settings area above.")))}}]),t}(u.Component);t.default=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 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(2),f=r(p),d=a(1),m=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(){return c.default.createElement(f.default,i({},this.props,{label:(0,d.translate)("Spacing"),note:(0,d.translate)("in pixels"),type:"number",placeholder:(0,d.translate)("0"),property:(0,d.getThemePrefix)(this.props)+"spacing"}))}}]),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 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(24),d=r(f),m=a(181),h=r(m),b=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(){return 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)("Custom CSS")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("For more advanced customization options use custom CSS."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("div",{style:{marginBottom:"10px"}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable custom CSS"),property:"use-custom-css",unWrap:!0}))),!_.isUndefined(this.props.settings["use-custom-css"])&&this.props.settings["use-custom-css"]&&c.default.createElement(h.default,i({},this.props,{property:"custom_css",type:"form"})))))}}]),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 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(16),d=r(f),m=a(24),h=r(m),b=a(4),y=(r(b),a(2)),v=(r(y),a(293)),g=r(v),E=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active","aria-live":"assertive",style:{display:"block"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Our PDF builder is constantly improving and we’ll be adding more features over time. While the current release has limited customization options, we appreciate your patience as we work to bring you the best experience possible. Keep an eye out for updates. To manually adjust the appearance of the fields, you can enable the Custom CSS option below."))))),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)("Page settings")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Configure the PDF file settings"))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Page size")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the standard paper size for your PDF document. The default resolution for each page is set at 96dpi.")),c.default.createElement(d.default,i({},this.props,{property:"paper_size",defaultValue:"A4"}),_.map(forminatorData.pdf_page_sizes,function(e,t){return c.default.createElement("option",{key:t,value:t},e)})),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Enable RTL (right-to-left)"),property:"enable_rtl",unWrap:!0}))),c.default.createElement("hr",null),c.default.createElement(g.default,this.props))))}}]),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 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(4),d=r(f),m=a(2),h=r(m),b=a(6),y=r(b),v=a(3),g=r(v),E=a(16),_=r(E),w=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(){return c.default.createElement(y.default,i({},this.props,{property:"pdf_margin",divClass:"pdf-page-margin",settingsLabel:(0,p.translate)("Page Margin"),default:"default",description:(0,p.translate)("Default margin for all paper sizes is 30px. Use the custom tab to set a different value.")}),c.default.createElement(g.default,{value:"default",label:(0,p.translate)("Default")}),c.default.createElement(g.default,{value:"custom",label:(0,p.translate)("Custom")},c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Margin"),property:"pdf_margin_unit",fieldClass:"fui-select-inline",fieldsize:"100"}),c.default.createElement("option",{value:"pt"},"pt"),c.default.createElement("option",{value:"px"},"px"),c.default.createElement("option",{value:"mm"},"mm"),c.default.createElement("option",{value:"in"},"in"))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Top"),type:"number",placeholder:"0",property:"pdf_margin_top"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Bottom"),type:"number",placeholder:"0",property:"pdf_margin_bottom"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Left"),type:"number",placeholder:"0",property:"pdf_margin_left"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Right"),type:"number",placeholder:"0",property:"pdf_margin_right"})))))))}}]),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){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 o(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 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(16)),p=r(c),f=function(e){function t(e){o(this,t);var a=l(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 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(24),d=r(f),m=a(6),h=r(m),b=a(3),y=r(b),v=a(2),g=r(v),E=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default",t=["login","registration","leads"],a=t.includes(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(h.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",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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&&!a&&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.")}),c.default.createElement("div",null,c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Submissions limit per logged in user"),description:(0,p.translate)("Enter the number of times a logged in user can submit this form. Leave blank or enter “0” for no limit."),type:"number",placeholder:"0",property:"limit-per-user"}))),c.default.createElement("div",{style:{marginTop:"20px"}},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Message when user has already reached submissions limit"),placeholder:(0,p.translate)("You’ve already reached submissions limit."),property:"limit-per-user-error"}))))))}}]),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,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.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a}return o(t,e),l(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){"pdf-form"===this.props.formType?(0,u.goToLink)(window.location.href+"&form_type=pdf-form&forminator_action=pdf-preview&preview_nonce="+forminatorData.previewNonce):this.props.actions.modalActions.showModal({open:!0,title:"Preview",closeModal:this.closeModal},"preview")}},{key:"render",value:function(){var e="pdf-form"===this.props.formType?"sui-button-ghost ":"";return s.default.createElement("button",{id:"forminator-preview-button",className:"sui-button "+e+"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";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(417),f=r(p),d=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:"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 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},e.props,{field:t}))}))}}]),t}(u.Component);t.default=d},function(e,t){function a(e,t){return e===t||e!==e&&t!==t}e.exports=a},function(e,t,a){function r(e){if(!o(e))return!1;var t=n(e);return t==i||t==s||t==l||t==u}var n=a(214),o=a(207),l="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(t,a(42))},function(e,t){function a(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,n=r.toString;e.exports=a},function(e,t,a){function r(e,t,a){var r=e[t];i.call(e,t)&&o(r,a)&&(void 0!==a||t in e)||n(e,t,a)}var n=a(380),o=a(375),l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){function r(e,t,a){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}var n=a(460);e.exports=r},function(e,t,a){function r(e,t){var a=l(e),r=!a&&o(e),c=!a&&!r&&i(e),f=!a&&!r&&!c&&u(e),d=a||r||c||f,m=d?n(e.length,String):[],h=m.length;for(var b in e)!t&&!p.call(e,b)||d&&("length"==b||c&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||m.push(b);return m}var n=a(462),o=a(463),l=a(236),i=a(382),s=a(466),u=a(467),c=Object.prototype,p=c.hasOwnProperty;e.exports=r},function(e,t,a){(function(e){var r=a(112),n=a(465),o="object"==typeof t&&t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=l&&l.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c}).call(t,a(237)(e))},function(e,t){function a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=a},function(e,t){function a(e,t){return function(a){return e(t(a))}}e.exports=a},function(e,t,a){function r(e){return null!=e&&o(e.length)&&!n(e)}var n=a(376),o=a(383);e.exports=r},function(e,t,a){function r(e){return l(e)?n(e,!0):o(e)}var n=a(381),o=a(472),l=a(385);e.exports=r},function(e,t){function a(){return[]}e.exports=a},function(e,t,a){var r=a(389),n=a(390),o=a(241),l=a(387),i=Object.getOwnPropertySymbols,s=i?function(e){for(var t=[];e;)r(t,o(e)),e=n(e);return t}:l;e.exports=s},function(e,t){function a(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}e.exports=a},function(e,t,a){var r=a(384),n=r(Object.getPrototypeOf,Object);e.exports=n},function(e,t,a){function r(e,t,a){var r=t(e);return o(e)?r:n(r,a(e))}var n=a(389),o=a(236);e.exports=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 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(7),f=r(p),d=a(4),m=r(d),h=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){var e=forminatorData.isPro?"forminator-disabled":"forminator-pro-feature";return u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,null,forminatorData.showBranding&&u.default.createElement(m.default,{cols:"12"},u.default.createElement("p",{className:"sui-block-content-center"},u.default.createElement("img",{src:forminatorData.pluginUrl+"/assets/images/"+e+".png",srcSet:forminatorData.pluginUrl+"/assets/images/"+e+".png 1x,\n\t\t\t\t\t\t\t\t\t\t"+forminatorData.pluginUrl+"/assets/images/"+e+"@2x.png 2x",className:"sui-image sui-image-center"}))),u.default.createElement(m.default,{cols:"12"},u.default.createElement("p",{className:"sui-block-content-center",style:{maxWidth:"600px",margin:"15px auto"}},u.default.createElement("small",null,this.props.text))),u.default.createElement(m.default,{cols:"12"},u.default.createElement("p",{className:"sui-block-content-center"},forminatorData.isPro&&u.default.createElement("a",{href:forminatorData.adminUrl+"admin.php?page=forminator-addons",target:"_blank",className:"sui-button sui-button-blue"},(0,c.translate)("Get the Add-on")),!forminatorData.isPro&&u.default.createElement("a",{href:this.props.addonUrl,target:"_blank",className:"sui-button sui-button-blue"},(0,c.translate)("Get the Add-on"))))))}}]),t}(s.Component);t.default=h},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(15),d=r(f),m=a(20),h=r(m),b=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:"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(h.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 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(530),d=r(f),m=function(e){function t(e){n(this,t);var a=o(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 l(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(".sui-builder-fields").sortable({start:function(a,r){t&&(e.$el.find(".sui-builder-fields").sortable("refreshPositions"),t=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".sui-builder-fields").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=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 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.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={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";Object.defineProperty(t,"__esModule",{value:!0});t.updatePdfs=function(e){return function(t){t({type:"UPDATE_PDFS",pdfs:e})}}},,,,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n=a(0),o=r(n),l=a(86),i=a(12),s=a(26),u=a(219),c=r(u),p=a(51),f=r(p),d=a(401),m=r(d),h=(0,c.default)(forminatorData.currentForm);f.default.setLocale(forminatorl10n.locale),window.forminatorChanges={fields:[],settings:!1},window.jQueryFormi=jQuery.noConflict(),(0,l.renderBlock)("forminator-form-builder",o.default.createElement(i.Provider,{store:h},o.default.createElement(s.MemoryRouter,null,o.default.createElement(s.Route,{component: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 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(22),p=(r(c),a(26)),f=(a(12),a(402)),d=r(f),m=a(406),h=r(m),b=a(410),y=r(b),v=a(414),g=r(v),E=a(422),w=r(E),O=a(587),P=r(O),k=a(593),j=r(k),x=a(601),N=r(x),C=a(605),T=r(C),S=a(615),F=r(S),D=a(631),M=r(D),A=a(635),V=r(A),R=a(637),U=r(R),I=a(1),L=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){this.goToSectionFromUrl(),window.addEventListener("beforeunload",this.handleBeforeunload),window.addEventListener("scroll",this.applySticky.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.handleBeforeunload)}},{key:"goToSectionFromUrl",value:function(){var e=(0,I.parseQueryString)().gotosection;if(!_.isUndefined(e)){var t=window.location.href;this.props.history.push("/"+(0,I.parseQueryString)().gotosection),window.history.replaceState({},document.title,t.slice(0,t.indexOf("&gotosection")))}}},{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,I.translate)("You have unsaved changes, are you sure want to leave this page"),(0,I.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(h.default,this.props),u.default.createElement("div",{className:"forminator-"+e+"-builder"},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:P.default}),"registration"===e&&u.default.createElement(p.Route,{path:"/registration",component:j.default}),"login"===e&&u.default.createElement(p.Route,{path:"/login",component:N.default}),u.default.createElement(p.Route,{path:"/behaviour",component:T.default}),u.default.createElement(p.Route,{path:"/pdf",component:F.default}),u.default.createElement(p.Route,{path:"/notifications",component:M.default}),u.default.createElement(p.Route,{path:"/integrations",component:V.default}),u.default.createElement(p.Route,{path:"/settings",component:U.default}))),u.default.createElement(w.default,this.props))}}]),t}(s.Component);t.default=L},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 o(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 l=a(12),i=a(10),s=a(108),u=r(s),c=a(62),p=r(c),f=a(372),d=r(f),m=a(403),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){var t="pdf-form"===e.formType?(0,i.translate)("Edit PDF"):(0,i.translate)("Edit Form");return l.default.createElement("div",{className:"sui-header fui-header-with-settings"},l.default.createElement("div",{className:"fui-header-title"},l.default.createElement("h1",{className:"sui-header-title"},t),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(p.default,e))),l.default.createElement("div",{className:"fui-header-settings"},l.default.createElement("div",{className:"sui-actions-left"},l.default.createElement(u.default,e)),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(p.default,e))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(0),l=r(o),i=a(1),s=a(404),u=r(s),c=a(405),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 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(185),d=r(f),m=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=this,t=this.props.title,a=_.isEmpty(t.trim()),r=a?"sui-form-field-error":"",n="pdf-form"===this.props.formType,o=n?"sui-field-has-suffix":"",l={};return"leads"===this.props.formType&&(l={borderColor:"#ddd",backgroundColor:"#fafafa",color:"#666"}),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field "+r},n&&c.default.createElement("strong",{className:"sui-field-prefix"},forminatorData.parent_form_name," -"),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 "+o,style:l,"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}),n&&c.default.createElement("strong",{className:"sui-field-suffix"},".pdf"),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&&"pdf-form"!==this.props.formType&&c.default.createElement(d.default,i({},this.props,{type:"form"})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return forminatorData.showDocLink?o.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#forms",target:"_blank",className:"sui-button sui-button-ghost"},o.default.createElement("span",{className:"sui-icon-academy"})," ",(0,l.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n),l=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 o(e){return{actions:{navigationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(62),u=r(s),c=a(372),p=r(c),f=a(407),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return l.default.createElement("div",{className:"sui-sidenav fui-sidenav"},l.default.createElement(s.default,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(0),l=r(o),i=a(408),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 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(26),p=a(1),f=a(409),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){var e=forminatorData.isPro,t=void 0;return t=e?u.default.createElement("span",{className:"sui-tag sui-tag-sm sui-tag-green",style:{margin:"5px 10px"}},(0,p.translate)("New")):u.default.createElement("span",{className:"sui-tag sui-tag-pro",style:{margin:"9px 10px"}},(0,p.translate)("Pro")),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"))),"pdf-form"!==this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,p.translate)("Behavior"))),"leads"!==this.props.formType&&"pdf-form"!==this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/pdf",activeClassName:"current"},(0,p.translate)("PDF")),t),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&"pdf-form"!==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",{className:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&"pdf-form"!==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",{className:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},"pdf-form"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-top sui-tooltip-constrained",style:{"--tooltip-width":"169px"},"data-tooltip":(0,p.translate)("More settings options are coming soon")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Settings"),u.default.createElement("i",{className:"sui-icon-lock sui-sm","aria-hidden":"true"}))),"pdf-form"!==this.props.formType&&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")),"pdf-form"!==this.props.formType&&u.default.createElement("option",{value:"behaviour"},(0,p.translate)("Behavior")),"leads"!==this.props.formType&&"pdf-form"!==this.props.formType&&u.default.createElement(u.default.Fragment,null,u.default.createElement("option",{value:"pdf"},(0,p.translate)("PDF")),u.default.createElement("option",{value:"notifications"},(0,p.translate)("Email Notifications")),u.default.createElement("option",{value:"integrations"},(0,p.translate)("Integrations"))),"pdf-form"!==this.props.formType&&u.default.createElement("option",{value:"settings"},(0,p.translate)("Settings"))))}}]),t}(s.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 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),SUI.select.init(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-select 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 o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(108),u=r(s),c=a(62),p=r(c),f=a(411),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(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 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(39),d=r(f),m=a(40),h=r(m),b=a(412),y=r(b),v=a(413),g=r(v),E=a(29),w=r(E),O=function(e){function t(e){n(this,t);var a=o(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 l(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,o=_.isUndefined(n)?"":n,l=_.isUndefined(r)?-1:r;this.setState({publishLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:o,form_id:l,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,o=_.isUndefined(n)?"":n,l=_.isUndefined(r)?-1:r;this.setState({draftLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:o,form_id:l,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,o=n.status,l=n.state;d.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(n){var i=(0,p.getFieldsByType)("stripe",l.wrappers),s="draft"===o&&"publish"===t||_.isUndefined(o)&&"publish"===t;if(n.data.success){if(a.reloadPageForSubscriptionPlans(i),-1===e.form_id&&(a.props.actions.settingsActions.updateSetting("form_id",n.data.data),forminatorData.currentForm.settings.form_id=n.data.data,window.history.pushState({},"Edit Form",forminatorData.formEditUrl+"&id="+n.data.data)),a.props.actions.settingsActions.saveBuilder("form_status",t),s){var u=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:u},"shortcode")}}else{s&&r.props.actions.modalActions.showModal({open:!1,closeModal:a.closeModal},"publish");var c=n.data.data&&"string"==typeof n.data.data?n.data.data:(0,p.translate)("Something went wrong while saving your form. Please try again.");new w.default({type:"error",text:c}).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:"reloadPageForSubscriptionPlans",value:function(e){var t=!1;e.map(function(e){_.isUndefined(e.payments)||e.payments.map(function(e){_.isUndefined(e.payment_method)||"subscription"!==e.payment_method||(_.isUndefined(e.plan_id)||_.isEmpty(e.plan_id))&&(t=!0)})}),t&&(window.forminatorChanges={fields:[],settings:!1,saved:!0},location.reload())}},{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-status"},c.default.createElement(y.default,i({},this.props,{state:this.state,formType:this.props.state.settings["form-type"]})),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=e.formType,r="";switch(t){case"publish":r="sui-tag-published";break;case"pdf_form":r="sui-tag-pdf-form";break;default:r="sui-tag-draft"}var i=!(!e.state.draftLoading&&!e.state.publishLoading);return o.default.createElement("div",{className:"sui-status"},"pdf-form"===a&&o.default.createElement("a",{href:forminatorData.adminUrl+"admin.php?page=forminator-cform-wizard&id="+forminatorData.parent_form_id+"&gotosection=pdf",className:"sui-button sui-button-ghost",style:{marginRight:"20px"}},o.default.createElement(n.Fragment,null,o.default.createElement("span",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,l.translate)("Back to form"))),o.default.createElement("div",{className:"sui-status-module"},(0,l.translate)("Status"),"pdf-form"!==e.formType&&o.default.createElement("span",{className:"sui-tag "+r},function(){switch(t){case"publish":return(0,l.translate)("Published");default:return(0,l.translate)("Draft")}}())),i&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,l.translate)("Saving...")),!i&&e.changed.settings&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,l.translate)("Unsaved changes")),!i&&!e.changed.settings&&e.changed.saved&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-check-tick","aria-hidden":"true"}),(0,l.translate)("Saved")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n),l=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 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(373),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return l(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.state,t=e.draftLoading,a=e.publishLoading,r=forminatorData.currentForm.settings["form-type"]||"default",n=this.props.status;return"pdf-form"===r&&(n="pdf_form"),c.default.createElement("div",{className:"sui-actions"},"leads"!==r&&"pdf-form"!==r&&c.default.createElement("button",{id:"forminator-module-save",className:"sui-button sui-button-ghost",style:{borderColor:"transparent"},disabled:!!t||a,onClick:this.draft},"publish"===n&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-unpublish","aria-hidden":"true"}),(0,p.translate)("Unpublish")),"publish"!==n&&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:!(!t&&!a),formType:r})),c.default.createElement("button",{id:"forminator-module-publish",className:"sui-button sui-button-blue",disabled:!(!t&&!a),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(n){case"publish":return(0,p.translate)("Update");case"pdf_form":return(0,p.translate)("Save changes");default:return(0,p.translate)("Publish")}}())),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(u.Component);t.default=m},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"]||"",footerData:e.settings.footerData||{}}}function o(e){return{actions:{builderActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),integrationActions:(0,i.bindActionCreators)(d,e),behaviorsActions:(0,i.bindActionCreators)(h,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(211),u=r(s),c=a(62),p=r(c),f=a(228),d=r(f),m=a(229),h=r(m),b=a(230),y=r(b),v=a(415),g=function(e){return e&&e.__esModule?e:{default:e}}(v);t.default=(0,l.connect)(n,o)(g.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 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(231),d=r(f),m=a(416),h=r(m),b=a(418),y=r(b),v=a(419),g=r(v),E=a(420),w=r(E),O=a(421),P=r(O),k=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.props.wrappers.map(function(e){""===e.parent_group||_.isEmpty(_.intersection((0,p.restrictedGroupFields)(),_.pluck(e.fields,"type")))||(e.parent_group="")}),a}return l(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,p.hasFieldType)("page-break",this.props.wrappers);return c.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},c.default.createElement(d.default,i({},this.props,{header:"true"})),a&&c.default.createElement(y.default,this.props),"pdf-form"===this.props.formType&&c.default.createElement(w.default,this.props),c.default.createElement(h.default,this.props),"pdf-form"===this.props.formType&&c.default.createElement(P.default,this.props),"pdf-form"!==this.props.formType&&c.default.createElement(g.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,p.translate)("Appearance"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=k},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(231),d=r(f),m=a(374),h=r(m),b=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=this,t=_.filter(this.props.wrappers,function(e){return!e.parent_group});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"},t.map(function(t){return c.default.createElement(h.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){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 o(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 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(231),m=r(d),h=a(374),b=r(h),y=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.el=p.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 i(t,e),u(t,[{key:"componentDidMount",value:function(){this.drops=[],this.drop=!1,this.lonerFields=(0,f.lonerFields)(),this.$el=jQuery(this.el.current),this.$main=this.$el.closest("#forminator-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,id:"field-delete",activeElement:jQuery(document.activeElement).closest("ul").siblings(".sui-dropdown-anchor"),focusFirst:".modal-close-button"},"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:"trashFieldRecursively",value:function(e,t){var a=this,r=this.getWrappersWithoutCurrentField(t,e.element_id);return"group"===e.type&&r.filter(function(t){return t.parent_group===e.element_id}).map(function(e){e.fields.map(function(e){r=a.trashFieldRecursively(e,r)})}),r}},{key:"trashField",value:function(){var e=[].concat(n(this.props.wrappers)),t=this.trashFieldRecursively(this.props.field,e).filter(function(e){return!_.isEmpty(e.fields)});if(t=this.getWrappersFilterCondition(t),t=this.getPaymentFilterCondition(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:"duplicateFieldRecursively",value:function(e,t,a){var r=this,o=(0,f.generateWrapperId)();_.isUndefined(a)&&(a="");var l=[],i=[].concat(n(t));e.map(function(t){t=JSON.parse(JSON.stringify(t));var a=t.element_id,s=1===e.length?12:t.cols,u=(0,f.buildFieldObject)(t,o,s,i,l),c=u.element_id;l=[].concat(n(l),[u]),"group"===t.type&&r.props.wrappers.filter(function(e){return e.parent_group===a}).reverse().map(function(e){i=r.duplicateFieldRecursively(e.fields,i,c)})});var s={wrapper_id:o,parent_group:a,fields:l},u=t.findIndex(function(e){return e.wrapper_id===r.props.wrapper.wrapper_id});return i=this.insertInPosition(i,u+1,s)}},{key:"cloneField",value:function(e){var t=jQuery(e.target).closest(".fui-builder-fields").closest(".ui-draggable").data("id"),a=this.duplicateFieldRecursively([this.props.field],[].concat(n(this.props.wrappers)),t);this.closeMenu(),this.updateState(a)}},{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||"pdf-page-break"===this.props.field.type)return!1;this.props.actions.modalActions.showModal({labelledBy:"modal-title-field-settings",describedBy:"modal-desc-field-settings",open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeModal,isValid:!0,id:"field-settings",activeElement:jQuery(document.activeElement).closest("ul").siblings(".sui-dropdown-anchor"),focusFirst:".modal-close-button"},"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(e){this.setClasses(),this.createDropPoints(e.target.id)}},{key:"onDrag",value:function(e){var t=this,a=[].concat(n(this.drops)),r=a.reduce(function(a,r){return t.distToCenter(a,e)<t.distToCenter(r,e)?a:r});r?this.selectDropZone(r):(this.drop=!1,jQuery(".fui-drop-use").removeClass("fui-drop-use"))}},{key:"distToCenter",value:function(e,t){return Math.abs(e.center.x-t.pageX)+Math.abs(e.center.y-t.pageY)}},{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()),jQuery(".fui-builder-form").each(function(){var e=jQuery(this);e.children().length||e.append(jQuery('<div class="fui-end-group fui-row"></div>'))})}},{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(),jQuery(".fui-end-group").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(e){var t=this,a=void 0,r=void 0,n=!1;this.lonerFields.forEach(function(t){if(e.includes(t))return void(n=!0)}),this.props.wrappers.forEach(function(a){var o=!1;if((0,f.restrictedGroupFields)().forEach(function(t){e.includes(t)&&(o=!0)}),!a.parent_group||!o){var l=t.getEl(a.wrapper_id),i=t.getPosition(l);if(t.drops.push({id:(0,f.randNumber)(),top:i.top-50,bottom:i.center.y,left:i.left,right:i.right,type:"full",parent:a.parent_group,insert:["before",l],wrapper:a,is_me:!1}),_.size(a.fields)<4){if(n)return;a.fields.map(function(e){var n=t.getEl("field-"+e.element_id);if(n.length){var l=t.getPosition(n),i=n.attr("id")===t.$el.attr("id");if(t.drops.push({id:(0,f.randNumber)(),top:l.top,bottom:l.bottom,left:l.left,right:l.left+l.width,type:"side-before",insert:["before",n],wrapper:a,field:e,is_me:i}),r=e,"group"===e.type&&!o){var s=jQuery("#field-"+e.element_id+" > div > div > div > .fui-builder-form"),u=s.children().last(),c=t.getPosition(u);t.drops.push({id:(0,f.randNumber)(),top:c.center.y,bottom:c.bottom+65,left:c.left,right:c.right,type:"full",parent:e.element_id,insert:["after",u],wrapper:a,is_me:!1})}}});var s=t.getEl("field-"+r.element_id),u=t.getPosition(s),c=s.attr("id")===t.$el.attr("id");t.drops.push({id:(0,f.randNumber)(),top:u.top,bottom:u.bottom,left:u.center.x,right:u.right+20,type:"side-after",insert:["after",s],wrapper:a,field:r,is_me:c})}}}),this.drops=this.drops.filter(function(a){return _.isUndefined(a.wrapper.wrapper_id)||!t.getEl(a.wrapper.wrapper_id).closest("#"+e).length}),a=this.props.wrappers.filter(function(e){return!e.parent_group}).pop();var o=this.getEl(a.wrapper_id),l=this.getPosition(o);this.drops.push({id:(0,f.randNumber)(),top:l.center.y,bottom:l.bottom+65,left:l.left,right:l.right,type:"full",insert:["after",o],wrapper:a,is_me:!1}),this.renderDropPoints()}},{key:"getCenterXY",value:function(e,t,a){var r=Math.round(e.top+a/2);return{x:Math.round(e.left+t/2),y:r}}},{key:"renderDropPoints",value:function(){var e=this,t=void 0;this.drops.forEach(function(a){switch(t=jQuery('<div id="forminator-drop-'+a.id+'" class="fui-drop fui-drop-'+a.type+'"></div>'),a.insert[0]){case"before":t.insertBefore(a.insert[1]);break;case"after":t.insertAfter(a.insert[1])}"full"===a.type||"inside"===a.type?t.css("width",a.right-a.left-20):"side-before"!==a.type&&"side-after"!==a.type||t.css("height",a.bottom-a.top-10),a.center=e.getCenterXY(t.offset(),parseFloat(t.css("width")),parseFloat(t.css("height")))})}},{key:"getPosition",value:function(e){var t=e,a=t.offset(),r=parseFloat(t.css("width")),n=parseFloat(t.css("height"))-10,o=a.top,l=a.left-10,i=void 0,s=t.prev(),u=o+n,c=l+r,p=Math.round(o+n/2),f=Math.round(l+r/2);return this.isRow(t)?s.length>0&&(i=this.getPosition(s),o=i.center.y+20,n=p-o):s.length>0?(i=this.getPosition(s),l=i.center.x):r/=2,{width:r,height:n,top:o,bottom:u,left:l,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=Math.floor(Math.random()*(this.drops.length-1)),t=this.drops[e],a="2px solid #"+Math.floor(16777215*Math.random()).toString(16),r=jQuery('<div class="fui-drop-view"><span className="fui-drop-view-pos"></span></div>');r.css({top:t.top,left:t.left,width:t.right-t.left,height:t.bottom-t.top,border:a}),this.$main.append(r);var n=jQuery('<div class="fui-drop-view"><span className="fui-drop-view-pos"></span></div>');n.css({top:t.center.y,left:t.center.x,width:15,height:15,border:a,"background-color":"red"}),this.$main.append(n)}},{key:"selectDropZone",value:function(e){if(_.isUndefined(e.field)||!_.includes(this.lonerFields,e.field.type)){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)||_.contains((0,f.restrictedGroupFields)(),this.props.field.type)&&(this.isWrapperDrop()&&!_.isUndefined(this.drop.parent)&&this.drop.parent.startsWith("group-")||!this.isWrapperDrop()&&this.drop.wrapper.parent_group))){var t=this.drop.insert[0],a=this.drop.insert[1],r=[].concat(n(this.props.wrappers)),o=Object.assign({},this.props.field);if(this.isWrapperDrop()){var l={wrapper_id:(0,f.generateWrapperId)(),parent_group:this.drop.parent,fields:[o]},i=r.findIndex(function(e){return e.wrapper_id===a.attr("id")});"after"===t&&i++;var s=this.getWrappersWithoutCurrentField(r);s=this.insertInPosition(s,i,l).filter(function(e){return!_.isEmpty(e.fields)}),s=this.updateCols(s),this.updateState(s)}else{var u=r.findIndex(function(t){return t.wrapper_id===e.drop.wrapper.wrapper_id}),c=this.getWrappersWithoutCurrentField(r),p=this.drop.wrapper.fields.findIndex(function(e){return e.element_id===a.data("id")});"after"===t&&p++;var d=this.drop.wrapper,m=this.insertInPosition(d.fields,p,o);d.fields=m,c=this.replaceInPosition(c,u,d).filter(function(e){return!_.isEmpty(e.fields)}),c=this.updateCols(c),this.updateState(c)}}}},{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,t){return _.isUndefined(t)&&(t=this.props.field.element_id),e.map(function(e){return e.fields=e.fields.filter(function(e){return e.element_id!==t}),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:"getPaymentFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.fields.map(function(e){return _.isEmpty(e.payments)||e.payments.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e}),e}),e})}},{key:"insertInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t)))}},{key:"replaceInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t+1)))}},{key:"isWrapperDrop",value:function(){return!!_.isUndefined(this.drop.field)}},{key:"conditionMarkup",value:function(){var e=(0,f.getFields)(this.props.wrappers,null,{main_date_field:!0}),t="hide"===this.props.field.condition_action?(0,f.translate)("Hide"):(0,f.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,o=(0,f.getRuleLabel)(a.rule,r.field_type),l=(0,f.getConditionLabel)(r[0],a),i=this.props.field.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,f.translate)("more condition(s)")),p.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,f.translate)("if")+" "+n+" "+o+" "+l+" "+s},p.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"draggableArea",value:function(e){var t=this,a=_.filter(this.props.wrappers,function(t){return t.parent_group===e});return p.default.createElement("div",{className:"fui-builder-fields"},p.default.createElement("div",{className:"fui-builder-form--wrap"},p.default.createElement("span",{className:"fui-swipe"},(0,f.translate)("Swipe"),p.default.createElement("i",{className:"sui-icon-finger-point","aria-hidden":"true"})),p.default.createElement("div",{className:"fui-builder-form"},a.map(function(e){return p.default.createElement(b.default,s({},t.props,{key:e.wrapper_id,wrapper:e}))}))),p.default.createElement(m.default,s({},this.props,{header:"false",group:e})))}},{key:"isDeleteEnabled",value:function(){return!("login"===this.props.formType&&"password"===this.props.field.type&&(0,f.countFieldsByType)("password",this.props.wrappers)<2)&&("registration"!==this.props.formType&&"leads"!==this.props.formType||"email"!==this.props.field.type||!((0,f.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(),o=void 0;return"group"===this.props.field.type&&(o=this.draggableArea(this.props.field.element_id)),_.isUndefined(t)?p.default.createElement("div",null):p.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},p.default.createElement("div",{className:"fui-builder-field-block "+r,"data-field":this.props.field.type},p.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},p.default.createElement("span",{className:"fui-field--move"},p.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"})),p.default.createElement("span",{className:"fui-field--icon"},p.default.createElement("i",{className:t.icon,"aria-hidden":"true"})),p.default.createElement("span",{className:"fui-field--name"},this.props.field.field_label&&p.default.createElement(p.default.Fragment,null,p.default.createElement("span",{className:"fui-field--label"},this.props.field.field_label,((0,f.isFieldRequired)(this.props.field)||"stripe"===this.props.field.type)&&p.default.createElement("span",{className:"sui-error"},"*")),"pdf-form"!==this.props.formType&&p.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")),!this.props.field.field_label&&p.default.createElement(p.default.Fragment,null,p.default.createElement("span",{className:"fui-field--label"},this.props.field.section_title||t.name,(0,f.isFieldRequired)(this.props.field)&&p.default.createElement("span",{className:"sui-error"},"*")),"pdf-form"!==this.props.formType&&p.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")))),p.default.createElement("div",{className:"fui-field--actions"},p.default.createElement("div",{className:"sui-dropdown"},p.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},p.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),p.default.createElement("span",{className:"sui-screen-reader-text"},(0,f.translate)("Field options"))),p.default.createElement("ul",null,"page-break"!==this.props.field.type&&"pdf-page-break"!==this.props.field.type&&p.default.createElement("li",null,p.default.createElement("button",{className:"forminator-field-edit",onClick:this.editSettings},p.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),(0,f.translate)("Edit Field"))),"stripe"!==this.props.field.type&&"paypal"!==this.props.field.type&&"password"!==this.props.field.type&&"captcha"!==this.props.field.type&&p.default.createElement("li",null,p.default.createElement("button",{className:"forminator-field-clone",onClick:this.cloneField},p.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,f.translate)("Duplicate"))),this.isDeleteEnabled()&&p.default.createElement("li",null,p.default.createElement("button",{className:"forminator-field-remove sui-option-red",onClick:this.deleteField},p.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,f.translate)("Delete")))))),!_.isUndefined(this.props.field.conditions)&&this.props.field.conditions.length>0&&p.default.createElement(p.default.Fragment,null,n),!_.isUndefined(o)&&p.default.createElement(p.default.Fragment,null,o)))}}]),t}(c.Component);t.default=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=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 o(t,e),l(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,id:"pagination-settings",activeElement:jQuery(document.activeElement),focusFirst:".modal-close-button"},"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 forminator-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 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.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(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:"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,o=(0,u.getRuleLabel)(a.rule,r.field_type),l=(0,u.getConditionLabel)(r[0],a),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+" "+o+" "+l+" "+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,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.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"pageHeader")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"pageHeader")}},{key:"render",value:function(){var e=(0,u.translate)("Page Header");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"})))))}}]),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.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"pageFooter")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"pageFooter")}},{key:"render",value:function(){var e=(0,u.translate)("Page Footer");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"})))))}}]),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{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,pdfs:e.pdfs||{}}}function o(e){return{actions:{modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e),settingsActions:(0,i.bindActionCreators)(h,e),integrationActions:(0,i.bindActionCreators)(g,e),behaviorsActions:(0,i.bindActionCreators)(_,e),notificationsActions:(0,i.bindActionCreators)(y,e),pdfsActions:(0,i.bindActionCreators)(O,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(423),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(62),p=r(c),f=a(211),d=r(f),m=a(108),h=r(m),b=a(230),y=r(b),v=a(228),g=r(v),E=a(229),_=r(E),w=a(396),O=r(w);t.default=(0,l.connect)(n,o)(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 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=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"==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=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(22),d=r(f),m=a(424),h=r(m),b=a(190),y=(r(b),a(180)),v=r(y),g={"insert-fields":h.default.fieldsModal,"field-settings":h.default.settingsModal,preview:h.default.previewModal,submit:h.default.submitModal,publish:h.default.publishModal,delete:h.default.deleteModal,shortcode:h.default.shortcodeModal,applyPreset:h.default.applyPresetModal,pagination:h.default.paginationModal,notification:h.default.notificationModal,behavior:h.default.behaviorModal,integration:h.default.integrationConditionsModal,deleteNotification:h.default.deleteNotificationModal,deletePdf:h.default.deletePdfModal,accessPdfAddon:h.default.accessPdfAddonModal,pageHeader:h.default.pageHeaderModal,pageFooter:h.default.pageFooterModal,installPDFAddon:h.default.installPdfAddonModal},E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),u(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.$el=jQuery(this.el);var a=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var r=d.default.findDOMNode(this);if(this.props.modal.modalProps.open){this.focusAfterClosed=this.props.modal.modalProps.activeElement;var n=this.props.modal.modalProps.focusFirst;setTimeout(function(){"string"==typeof n?a.focusFirst=a.$el.find(n):"object"===(void 0===n?"undefined":s(n))?a.focusFirst=n:a.focusFirst=null,a.focusFirst&&a.focusFirst.length&&a.setFocus(a.focusFirst.first())},320),jQuery("#wpwrap").attr("aria-hidden","true")}this.props.modal.modalProps.open?r.removeAttribute("aria-hidden"):(jQuery("#wpwrap").attr("aria-hidden","false"),setTimeout(function(){a.setFocus(a.focusAfterClosed)},320),this.hideModalTimeout=setTimeout(function(){r.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300))}}},{key:"setFocus",value:function(e){if(void 0!==e){e.attr("tabindex","0"),e.blur();var t=0,a=window.setInterval(function(){e.focus(),++t>=10&&window.clearInterval(a)},10)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){var e=this;if(!this.props.modal.modalType)return null;var t="sui-modal-lg",a=["sui-modal-content","sui-content-fade-in"];this.props.modal.modalProps.open||(a=["sui-modal-content","sui-content-fade-out"]);var r=this.props.modal.modalType,n=g[r];if("publish"===r&&(t="sui-modal-sm fui-dialog-publish"),"shortcode"===r&&(t="sui-modal-sm fui-dialog-publish"),["delete","deleteNotification","applyPreset","deletePdf"].includes(r)&&(t="sui-modal-sm"),!_.isUndefined(this.props.modal.modalProps)&&!_.isUndefined(this.props.modal.modalProps.field)&&!_.isUndefined(this.props.modal.modalProps.field.type)){var o=this.props.modal.modalProps.field.type;t+="radio"===o||"checkbox"===o||"select"===o?" multivalue-modal":" "+this.props.modal.modalProps.field.type+"-modal"}var l=jQuery(".sui-color-accessible").length?"sui-wrap sui-color-accessible":"sui-wrap";return p.default.createElement("div",{className:l},p.default.createElement("div",{id:"forminator-modal",className:"sui-modal sui-active "+t+" "+r},p.default.createElement("div",i({role:"dialog",id:"modal-"+this.props.modal.modalProps.id,className:""+a.join(" "),"aria-modal":"true","aria-live":"polite"},this.props.modal.modalProps.labelledBy&&{"aria-labelledby":this.props.modal.modalProps.labelledBy},this.props.modal.modalProps.describedBy&&{"aria-describedby":this.props.modal.modalProps.describedBy},{ref:function(t){return e.el=t}}),p.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},p.default.createElement(n,this.props)))))}}]),t}(c.Component),w=(0,v.default)(E);w.renderTo=function(e){return(0,v.default)(E,{renderTo:e})},e.exports=w},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(425),o=r(n),l=a(426),i=r(l),s=a(558),u=r(s),c=a(559),p=r(c),f=a(560),d=r(f),m=a(561),h=r(m),b=a(562),y=r(b),v=a(563),g=r(v),E=a(564),_=r(E),w=a(566),O=r(w),P=a(575),k=r(P),j=a(578),x=r(j),N=a(581),C=r(N),T=a(582),S=r(T),F=a(583),D=r(F),M=a(584),A=r(M),V=a(585),R=r(V),U=a(586),I=r(U),L={fieldsModal:o.default,settingsModal:i.default,previewModal:u.default,submitModal:p.default,publishModal:d.default,deleteModal:h.default,shortcodeModal:y.default,applyPresetModal:g.default,paginationModal:_.default,notificationModal:O.default,behaviorModal:k.default,integrationConditionsModal:x.default,deleteNotificationModal:C.default,deletePdfModal:S.default,accessPdfAddonModal:D.default,pageHeaderModal:A.default,pageFooterModal:R.default,installPdfAddonModal:I.default};t.default=L},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 o(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 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),p=a(1),f=a(29),d=r(f),m=a(60),h=r(m),b=a(84),y=r(b),v=a(63),g=r(v),E=a(61),w=r(E),O=a(21),P=function(e){function t(e){o(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.missingPaymentField=!1,a}return i(t,e),s(t,[{key:"closeSettingsModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:[],wrapper:[]},"field-settings");var t=(0,p.hasFieldType)("stripe",this.props.wrappers),a=(0,p.hasFieldType)("paypal",this.props.wrappers);(_.contains(this.state.fields,"stripe")&&a||_.contains(this.state.fields,"paypal")&&t)&&this.showPaymentNotice()}},{key:"insertFields",value:function(){if(this.state.fields.length){if(this.hasStripe||this.hasCaptcha||this.hasPayPal)return!1;var e=this.props.modal.modalProps.groupId,t=[].concat(n(this.props.wrappers)),a=this.state.fields.map(function(a){var r=(0,p.generateWrapperId)();return{wrapper_id:r,parent_group:e,fields:[(0,p.buildFieldObjectFromSlug)(a,t,r)]}});if(forminatorData.showFieldSettings&&1===this.state.fields.length){var r=this,o=void 0!==a[0]&&a[0],l=void 0!==a[0].fields[0]&&a[0].fields[0];o&&l&&("page-break"!==l.type&&"pdf-page-break"!==l.type&&setTimeout(function(){r.props.actions.modalActions.showModal({open:!0,field:l,wrapper:o,closeModal:r.closeSettingsModal,isValid:!0},"field-settings")},500),"stripe"===l.type&&(this.props.settings["enable-ajax"]="true"))}this.props.actions.builderActions.updateFields([].concat(n(t),n(a))),this.closeFields()}}},{key:"closeFields",value:function(){this.closeModal(),_.contains(this.state.fields,"stripe")&&_.contains(this.state.fields,"paypal")&&this.showPaymentNotice()}},{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,r=(0,p.hasFieldType)("stripe",this.props.wrappers),o=(0,p.hasFieldType)("captcha",this.props.wrappers),l=(0,p.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(n(this.state.fields),[e])};if(this.setState(a),this.hasStripePayPal=!1,_.contains(a.fields,"stripe")&&r?this.hasStripe=!0:this.hasStripe=!1,_.contains(a.fields,"paypal")&&l?this.hasPayPal=!0:this.hasPayPal=!1,_.contains(a.fields,"captcha")&&o?this.hasCaptcha=!0:this.hasCaptcha=!1,"pdf-form"===this.props.formType){var s=_.isUndefined(forminatorData.parentFormFields)?[]:forminatorData.parentFormFields,u=(0,p.hasFieldType)("stripe",s),c=(0,p.hasFieldType)("paypal",s);this.missingPaymentField=_.contains(a.fields,"payment")&&!u&&!c}}},{key:"showPaymentNotice",value:function(){new d.default({type:"info",text:"<strong>"+(0,p.translate)("Collect payments like a pro")+'</strong></p>\n\t<p style="margin-top: -10px; margin-bottom: 5px;">'+(0,p.translate)("You have added both Stripe and PayPal fields to your form. We recommend that you use the visibility conditions, so only one of them is visible at a time. For example:")+'</p>\n\t<p style="margin-top: 0; margin-bottom: 5px;">1. '+(0,p.translate)("Add an option to your form using a Radio (or Select) field that allows visitors to choose the payment method.")+'</p>\n\t<p style="margin-top: 0;">2. '+(0,p.translate)("Apply visibility conditions to both Stripe and PayPal fields so only one is visible based on the visitor's selection in the Radio (or Select) field."),dismiss:!0}).open()}},{key:"render",value:function(){var e=this,t=forminatorData.fields.filter(function(e){return e.category}),a={position:"absolute",top:"5px",right:"5px"},r={},n=forminatorData.fieldsPro||[],o=(0,p.hasFieldType)("password",this.props.wrappers),l=this.props.modal.modalProps.groupId;t=_.filter(t,function(e){return"gdprcheckbox"!==e.slug}),("registration"!==this.props.formType&&"login"!==this.props.formType||o&&"registration"===this.props.formType)&&(t=_.filter(t,function(e){return"password"!==e.slug})),l&&(t=_.filter(t,function(e){return!_.contains((0,p.restrictedGroupFields)(),e.slug)}));var i=_.sortBy(t,"position");this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal,forminatorData.isPro||this.props.skipProNotice||(r={display:"block"});var s=this.props.formType,u=void 0,f=void 0;return"pdf-form"===s?(u=(0,p.translate)("PDF file"),f="blue"):(u=(0,p.translate)("form"),f="red"),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,{closeType:"icon",closeModal:this.closeModal},c.default.createElement(w.default,{id:this.props.modal.modalProps.id,label:(0,p.translate)("Insert Fields")})),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("p",null,(0,p.translate)("Choose which fields you want to insert into your "+u+".")),(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal||"pdf-form"===s)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-"+f+" sui-active","aria-live":"assertive",style:{display:"block"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),this.hasStripe&&!this.hasStripePayPal&&c.default.createElement("p",null,(0,p.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&&c.default.createElement("p",null,(0,p.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&&c.default.createElement("p",null,(0,p.translate)("You can have only one payment field in your form. Please delete the existing payment field to add another one.")),this.hasCaptcha&&c.default.createElement("p",null,(0,p.translate)("You can have only one captcha field in your form for captcha to work accurately. Please delete the existing captcha field to add a new one.")),"pdf-form"===s&&c.default.createElement("p",null,(0,p.translate)("{{b}}Note{{/b}}: You can use the {{b}}Rich Text{{/b}} field to add form fields and custom text to your PDF.",{components:{b:c.default.createElement("b",null)}})))))),c.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-5",style:{margin:0}},c.default.createElement("ul",{id:"forminator-form-fields-to-insert",className:"sui-spacing-slim "+s+"-field-selectors"},i.map(function(t){return c.default.createElement("li",{key:t.slug},c.default.createElement("label",{htmlFor:"forminator-form-field-"+t.slug,className:"sui-box-selector sui-box-selector-vertical"},c.default.createElement("input",{type:"checkbox",id:"forminator-form-field-"+t.slug,"data-field":t.slug,onChange:function(a){return e.toggleField(t.slug,a)}}),c.default.createElement("span",null,c.default.createElement("i",{className:t.icon,"aria-hidden":"true"}),t.name,"slider"===t.slug&&c.default.createElement("span",{className:"sui-tag sui-tag-beta forminator-small-blue-tag",style:a},"New"))))}),!forminatorData.isPro&&n.map(function(e){if("signature"!==e.field_type||"signature"===e.field_type&&_.isEmpty(l))return c.default.createElement("li",{key:e.slug},c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:e.icon,"aria-hidden":"true"}),e.name,c.default.createElement("span",{className:"sui-tag sui-tag-pro"},"Pro"))))}),_.isEmpty(l)&&!forminatorData.isPro&&_.isEmpty(n)&&"pdf-form"!==s&&c.default.createElement("li",null,c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,p.translate)("E-Signature"),c.default.createElement("span",{className:"sui-tag sui-tag-pro"},"Pro")))),"pdf-form"===s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("li",{className:"pdf-field-coming-soon sui-tooltip","data-tooltip":(0,p.translate)("Coming soon")},c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),(0,p.translate)("Quotation")))))),"pdf-form"!==s&&c.default.createElement("div",{role:"alert",id:"fui-notice-pro-fields",className:"sui-notice sui-notice-purple "+(!forminatorData.isPro&&!this.props.skipProNotice&&" sui-active"),style:r,"aria-live":"assertive"},_.isEmpty(l)&&!forminatorData.isPro&&!this.props.skipProNotice&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Need access to pro form fields? {{link}}Upgrade to Pro{{/link}}",{components:{link:c.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"}})}}))),c.default.createElement("div",{className:"sui-notice-actions"},c.default.createElement(O.ButtonIcon,{icon:"check",iconSize:"sm",label:(0,p.translate)("Dismiss"),onClick:this.skipProNotice})))),"pdf-form"===s&&this.missingPaymentField&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block",marginTop:"15px"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("This PDF is linked to a form without a payment field. To include payment information in your PDF, please add either a PayPal or Stripe field to your form.")))))),c.default.createElement(y.default,{alignment:"separated"},c.default.createElement(g.default,{label:(0,p.translate)("Cancel"),customClass:"sui-button-ghost forminator-builder-fields-close",closeModal:this.closeModal}),c.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||this.missingPaymentField,onClick:this.insertFields},c.default.createElement("span",{className:"sui-loading-text"},(0,p.translate)("Insert Fields")),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),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,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(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 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(26),d=a(1),m=a(427),h=r(m),b=a(498),y=r(b),v=a(557),g=r(v),E=a(63),w=r(E),O=a(60),P=r(O),k=a(84),j=r(k),x=a(61),N=r(x),C={email:y.default.emailSettings,address:y.default.addressSettings,captcha:y.default.captchaSettings,date:y.default.dateSettings,signature:y.default.signatureSettings,consent:y.default.consentSettings,gdprcheckbox:y.default.gdprcheckboxSettings,hidden:y.default.hiddenSettings,html:y.default.htmlSettings,group:y.default.groupSettings,slider:y.default.sliderSettings,checkbox:y.default.multivalueSettings,radio:y.default.radioSettings,name:y.default.nameSettings,number:y.default.numberSettings,pagination:y.default.paginationSettings,phone:y.default.phoneSettings,postdata:y.default.postdataSettings,section:y.default.sectionSettings,select:y.default.singlevaluesettings,text:y.default.textSettings,textarea:y.default.textareaSettings,time:y.default.timeSettings,upload:y.default.uploadSettings,url:y.default.websiteSettings,calculation:y.default.calculationSettings,stripe:y.default.stripeSettings,currency:y.default.currencySettings,password:y.default.passwordSettings,paypal:y.default.paypalSettings,"rich-text":y.default.richTextSettings,"all-form-data":y.default.allFormDataSettings,payment:y.default.paymentSettings},T=function(e){function t(e){o(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.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.cancelModal=a.cancelModal.bind(a),a.state=(0,h.default)(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("select"===this.state.type){var n=_.some(this.state.options,function(e){return!_.isUndefined(e.default)&&e.default});this.state.required&&!n&&("single"===this.state.value_type&&_.isEmpty(this.state.placeholder)?(t.error=(0,d.translate)("Please add a placeholder or select a default option."),t.isValid=!1):"multiselect"===this.state.value_type&&(t.error=(0,d.translate)("Please select a default option."),t.isValid=!1))}if("postdata"===this.state.type&&((0,d.isTrue)(this.state.post_title)||(0,d.isTrue)(this.state.post_content)||(0,d.isTrue)(this.state.post_excerpt)||(t.error=(0,d.translate)("At least one of Title, Content, or Excerpt must be enabled for post data to be submitted."),t.isValid=!1)),"stripe"===this.state.type){forminatorData.hasStripe||(t.error=(0,d.translate)("Please, connect your Stripe account first!"),t.isValid=!1),_.isEmpty(this.state.payments)&&(t.error=(0,d.translate)("You need at least one payment!"),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);_.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)}t=(0,d.getPlanValidation)(t,this.state.payments),"paypal"===this.state.type&&(forminatorData.hasPayPal||(t.error=(0,d.translate)("Please connect your PayPal account first!"),t.isValid=!1),"fixed"!==this.state.amount_type||this.state.amount||(t.error=(0,d.translate)("Please enter PayPal payment amount!"),t.isValid=!1),"variable"!==this.state.amount_type||this.state.variable||(t.error=(0,d.translate)("Please select PayPal payment variable field!"),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),"number"===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);var o=_.isUndefined(this.state.captcha_provider)?"recaptcha":this.state.captcha_provider;if("captcha"===this.state.type&&("recaptcha"===o&&(("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)),"hcaptcha"===o&&(forminatorData.hasHCaptcha||(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 l=_.isUndefined(this.state.time_type)?"":this.state.time_type,i="twelve"===l?"h:mma":"H:mm",s=_.isUndefined(this.state.restrict_start_hour)?0:this.state.restrict_start_hour,u=_.isUndefined(this.state.restrict_start_minute)?0:this.state.restrict_start_minute,c=_.isUndefined(this.state.restrict_start_ampm)?"AM":this.state.restrict_start_ampm,p=_.isUndefined(this.state.restrict_end_hour)?0:this.state.restrict_end_hour,f=_.isUndefined(this.state.restrict_end_minute)?0:this.state.restrict_end_minute,m=_.isUndefined(this.state.restrict_end_ampm)?"AM":this.state.restrict_end_ampm,h=_.isUndefined(this.state.default_time)?"none":this.state.default_time,b=_.isUndefined(this.state.default_time_hour)?0:this.state.default_time_hour,y=_.isUndefined(this.state.default_time_minute)?0:this.state.default_time_minute,v=_.isUndefined(this.state.default_time_ampm)?"AM":this.state.default_time_ampm,g="twelve"===l?c:"",E="twelve"===l?m:"",w="twelve"===l?v:"",O=s+":"+u+g.toLowerCase(),P=moment(O,i),k=p+":"+f+E.toLowerCase(),j=moment(k,i),x=moment(b+":"+y+w,i);j.isBefore(P)?(t.error=(0,d.translate)("Please select a valid end time limit."),t.isValid=!1):"default"===h&&(x.isBefore(P)||j.isBefore(x))?(t.error=(0,d.translate)("Please fix the Default time error."),t.isValid=!1):("0:0am"===O&&"0:0pm"===k||"0:0pm"===O&&"0:0am"===k||O===k&&("0:0am"===O||"0:0pm"===O))&&(t.error=(0,d.translate)("Please fix the Start or End time."),t.isValid=!1)}if(_.isUndefined(this.state.conditions)||_.isEmpty(this.state.conditions)||_.isUndefined(this.state.hidden)||(0,d.isTrue)(this.state.hidden)||_.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 N=this.state["start-date"],C=this.state["end-date"],T=!0;if("specific"!==N||"specific"!==C||_.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"===N&&"today"===C){var S=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],F=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),D=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],M=this.getDateDuration(S,F,D,"MM/DD/YYYY"),A=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],V=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),R=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],U=this.getDateDuration(A,V,R,"MM/DD/YYYY");moment(U,"MM/DD/YYYY").isBefore(moment(M,"MM/DD/YYYY"))&&(T=!1)}else if("specific"!==N||"today"!==C||_.isUndefined(this.state["start-specific-date"])){if("today"===N&&"specific"===C&&!_.isUndefined(this.state["end-specific-date"])){var I=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],L=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),B=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],q=this.getDateDuration(I,L,B,"MM/DD/YYYY");moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(q,"MM/DD/YYYY"))&&(T=!1)}}else{var W=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],z=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),H=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],$=this.getDateDuration(W,z,H,"MM/DD/YYYY");moment($,"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY"))&&(T=!1)}else T=!1;T||(t.error=(0,d.translate)("Please fix the limit Start or End date."),t.isValid=!1)}return t}},{key:"cancelModal",value:function(){this.closeModal()}},{key:"render",value:function(){var e=this,t=(0,d.getForminatorField)(this.state),a=C[t.type],r=!_.contains(["captcha","paypal","rich-text","all-form-data","payment"],t.type),n="address"===t.type,o=!_.contains(["submit","hidden","html","page-break"],t.type),l=!_.contains(["captcha","page-break","hidden","rich-text","all-form-data","payment"],t.type),i=!_.contains(["page-break","paypal"],t.type),u=_.contains(["calculation","number","slider","radio","checkbox","select","currency"],t.type),c=_.contains(["stripe","paypal"],t.type),m=_.contains(["paypal"],t.type),h=_.contains(["date"],t.type),b=_.isUndefined(this.state.field_type)?"picker":this.state.field_type,y=this.isValid(),v=y.isValid,E=y.error||"";_.isUndefined(this.props.formType)||"registration"!==this.props.formType||"password"!==this.state.type||this.props.location.pathname;return p.default.createElement(p.default.Fragment,null,p.default.createElement(P.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(N.default,{id:this.props.modal.modalProps.id,label:(0,d.translate)("Edit Field"),tag:t.name})),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&&p.default.createElement(f.NavLink,{to:"/builder/geolocation/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},forminatorData.isPro?(0,d.translate)("Geolocation"):(0,d.translate)("Geolocation {{span}}Pro{{/span}}",{components:{span:p.default.createElement("span",{className:"sui-tag sui-tag-pro"})}})),o>0&&p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item "+(this.props.location.pathname.startsWith("/builder/settings/stripe")?"active":""),activeClassName:"active",role:"tab"},"group"===t.type?(0,d.translate)("Repeater"):(0,d.translate)("Settings")),h>0&&"picker"===b&&p.default.createElement(f.NavLink,{to:"/builder/limits/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Limits")),u>0&&p.default.createElement(f.NavLink,{to:"/builder/calculations/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Calculations")),c&&p.default.createElement(f.NavLink,{to:"/builder/advanced-settings/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced")),i>0&&p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Styling")),m>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"===b&&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/geolocation",render:function(){return p.default.createElement(a,{type:"geolocation",updateProperty:e.updateProperty,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(g.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(j.default,{customClass:"sui-content-separated"},p.default.createElement(w.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),customClass:"sui-button-ghost forminator-discard-field-settings",closeModal:this.closeModal}),v&&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"})),!v&&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=T},function(e,t,a){function r(e){return n(e,o|l)}var n=a(428),o=1,l=4;e.exports=r},function(e,t,a){function r(e,t,a,D,M,A){var V,R=t&k,U=t&j,I=t&x;if(a&&(V=M?a(e,D,M,A):a(e)),void 0!==V)return V;if(!w(e))return e;var L=g(e);if(L){if(V=b(e),!R)return c(e,V)}else{var B=h(e),q=B==C||B==T;if(E(e))return u(e,R);if(B==S||B==N||q&&!M){if(V=U||q?{}:v(e),!R)return U?f(e,s(V,e)):p(e,i(V,e))}else{if(!F[B])return M?e:{};V=y(e,B,R)}}A||(A=new n);var W=A.get(e);if(W)return W;if(A.set(e,V),O(e))return e.forEach(function(n){V.add(r(n,t,a,n,e,A))}),V;if(_(e))return e.forEach(function(n,o){V.set(o,r(n,t,a,o,e,A))}),V;var z=I?U?m:d:U?keysIn:P,H=L?void 0:z(e);return o(H||e,function(n,o){H&&(o=n,n=e[o]),l(V,o,r(n,t,a,o,e,A))}),V}var n=a(429),o=a(459),l=a(379),i=a(461),s=a(471),u=a(474),c=a(475),p=a(476),f=a(478),d=a(479),m=a(480),h=a(242),b=a(485),y=a(486),v=a(492),g=a(236),E=a(382),_=a(494),w=a(207),O=a(496),P=a(235),k=1,j=2,x=4,N="[object Arguments]",C="[object Function]",T="[object GeneratorFunction]",S="[object Object]",F={};F[N]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[S]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[C]=F["[object WeakMap]"]=!1,e.exports=r},function(e,t,a){function r(e){var t=this.__data__=new n(e);this.size=t.size}var n=a(212),o=a(435),l=a(436),i=a(437),s=a(438),u=a(439);r.prototype.clear=o,r.prototype.delete=l,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){function a(){this.__data__=[],this.size=0}e.exports=a},function(e,t,a){function r(e){var t=this.__data__,a=n(t,e);return!(a<0)&&(a==t.length-1?t.pop():l.call(t,a,1),--this.size,!0)}var n=a(213),o=Array.prototype,l=o.splice;e.exports=r},function(e,t,a){function r(e){var t=this.__data__,a=n(t,e);return a<0?void 0:t[a][1]}var n=a(213);e.exports=r},function(e,t,a){function r(e){return n(this.__data__,e)>-1}var n=a(213);e.exports=r},function(e,t,a){function r(e,t){var a=this.__data__,r=n(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}var n=a(213);e.exports=r},function(e,t,a){function r(){this.__data__=new n,this.size=0}var n=a(212);e.exports=r},function(e,t){function a(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}e.exports=a},function(e,t){function a(e){return this.__data__.get(e)}e.exports=a},function(e,t){function a(e){return this.__data__.has(e)}e.exports=a},function(e,t,a){function r(e,t){var a=this.__data__;if(a instanceof n){var r=a.__data__;if(!o||r.length<i-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new l(r)}return a.set(e,t),this.size=a.size,this}var n=a(212),o=a(233),l=a(446),i=200;e.exports=r},function(e,t,a){function r(e){return!(!l(e)||o(e))&&(n(e)?m:u).test(i(e))}var n=a(376),o=a(443),l=a(207),i=a(378),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,f=c.toString,d=p.hasOwnProperty,m=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,a){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(234),o=Object.prototype,l=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=r},function(e,t){function a(e){return n.call(e)}var r=Object.prototype,n=r.toString;e.exports=a},function(e,t,a){function r(e){return!!o&&o in e}var n=a(444),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,a){var r=a(112),n=r["__core-js_shared__"];e.exports=n},function(e,t){function a(e,t){return null==e?void 0:e[t]}e.exports=a},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(447),o=a(454),l=a(456),i=a(457),s=a(458);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(){this.size=0,this.__data__={hash:new n,map:new(l||o),string:new n}}var n=a(448),o=a(212),l=a(233);e.exports=r},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(449),o=a(450),l=a(451),i=a(452),s=a(453);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(){this.__data__=n?n(null):{},this.size=0}var n=a(215);e.exports=r},function(e,t){function a(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=a},function(e,t,a){function r(e){var t=this.__data__;if(n){var a=t[e];return a===o?void 0:a}return i.call(t,e)?t[e]:void 0}var n=a(215),o="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){function r(e){var t=this.__data__;return n?void 0!==t[e]:l.call(t,e)}var n=a(215),o=Object.prototype,l=o.hasOwnProperty;e.exports=r},function(e,t,a){function r(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=n&&void 0===t?o:t,this}var n=a(215),o="__lodash_hash_undefined__";e.exports=r},function(e,t,a){function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}var n=a(216);e.exports=r},function(e,t){function a(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=a},function(e,t,a){function r(e){return n(this,e).get(e)}var n=a(216);e.exports=r},function(e,t,a){function r(e){return n(this,e).has(e)}var n=a(216);e.exports=r},function(e,t,a){function r(e,t){var a=n(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}var n=a(216);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!1!==t(e[a],a,e););return e}e.exports=a},function(e,t,a){var r=a(186),n=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},function(e,t,a){function r(e,t){return e&&n(t,o(t),e)}var n=a(217),o=a(235);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}e.exports=a},function(e,t,a){var r=a(464),n=a(208),o=Object.prototype,l=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return n(e)&&l.call(e,"callee")&&!i.call(e,"callee")};e.exports=s},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(214),o=a(208),l="[object Arguments]";e.exports=r},function(e,t){function a(){return!1}e.exports=a},function(e,t){function a(e,t){var a=typeof e;return!!(t=null==t?r:t)&&("number"==a||"symbol"!=a&&n.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=a},function(e,t,a){var r=a(468),n=a(238),o=a(239),l=o&&o.isTypedArray,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return l(e)&&o(e.length)&&!!i[n(e)]}var n=a(214),o=a(383),l=a(208),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=r},function(e,t,a){function r(e){if(!n(e))return o(e);var t=[];for(var a in Object(e))i.call(e,a)&&"constructor"!=a&&t.push(a);return t}var n=a(240),o=a(470),l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){var r=a(384),n=r(Object.keys,Object);e.exports=n},function(e,t,a){function r(e,t){return e&&n(t,o(t),e)}var n=a(217),o=a(386);e.exports=r},function(e,t,a){function r(e){if(!n(e))return l(e);var t=o(e),a=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&a.push(r);return a}var n=a(207),o=a(240),l=a(473),i=Object.prototype,s=i.hasOwnProperty;e.exports=r},function(e,t){function a(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}e.exports=a},function(e,t,a){(function(e){function r(e,t){if(t)return e.slice();var a=e.length,r=u?u(a):new e.constructor(a);return e.copy(r),r}var n=a(112),o="object"==typeof t&&t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=l&&l.exports===o,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=r}).call(t,a(237)(e))},function(e,t){function a(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}e.exports=a},function(e,t,a){function r(e,t){return n(e,o(e),t)}var n=a(217),o=a(241);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=null==e?0:e.length,n=0,o=[];++a<r;){var l=e[a];t(l,a,e)&&(o[n++]=l)}return o}e.exports=a},function(e,t,a){function r(e,t){return n(e,o(e),t)}var n=a(217),o=a(388);e.exports=r},function(e,t,a){function r(e){return n(e,l,o)}var n=a(391),o=a(241),l=a(235);e.exports=r},function(e,t,a){function r(e){return n(e,l,o)}var n=a(391),o=a(388),l=a(386);e.exports=r},function(e,t,a){var r=a(186),n=a(112),o=r(n,"DataView");e.exports=o},function(e,t,a){var r=a(186),n=a(112),o=r(n,"Promise");e.exports=o},function(e,t,a){var r=a(186),n=a(112),o=r(n,"Set");e.exports=o},function(e,t,a){var r=a(186),n=a(112),o=r(n,"WeakMap");e.exports=o},function(e,t){function a(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var r=Object.prototype,n=r.hasOwnProperty;e.exports=a},function(e,t,a){function r(e,t,a){var r=e.constructor;switch(t){case y:return n(e);case u:case c:return new r(+e);case v:return o(e,a);case g:case E:case _:case w:case O:case P:case k:case j:case x:return s(e,a);case p:return new r;case f:case h:return new r(e);case d:return l(e);case m:return new r;case b:return i(e)}}var n=a(243),o=a(488),l=a(489),i=a(490),s=a(491),u="[object Boolean]",c="[object Date]",p="[object Map]",f="[object Number]",d="[object RegExp]",m="[object Set]",h="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",v="[object DataView]",g="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",j="[object Uint16Array]",x="[object Uint32Array]";e.exports=r},function(e,t,a){var r=a(112),n=r.Uint8Array;e.exports=n},function(e,t,a){function r(e,t){var a=t?n(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var n=a(243);e.exports=r},function(e,t){function a(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=a},function(e,t,a){function r(e){return l?Object(l.call(e)):{}}var n=a(234),o=n?n.prototype:void 0,l=o?o.valueOf:void 0;e.exports=r},function(e,t,a){function r(e,t){var a=t?n(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var n=a(243);e.exports=r},function(e,t,a){function r(e){return"function"!=typeof e.constructor||l(e)?{}:n(o(e))}var n=a(493),o=a(390),l=a(240);e.exports=r},function(e,t,a){var r=a(207),n=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(n)return n(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();e.exports=o},function(e,t,a){var r=a(495),n=a(238),o=a(239),l=o&&o.isMap,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(242),o=a(208),l="[object Map]";e.exports=r},function(e,t,a){var r=a(497),n=a(238),o=a(239),l=o&&o.isSet,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(242),o=a(208),l="[object Set]";e.exports=r},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(499),o=r(n),l=a(501),i=r(l),s=a(503),u=r(s),c=a(504),p=r(c),f=a(508),d=r(f),m=a(509),h=r(m),b=a(510),y=r(b),v=a(511),g=r(v),E=a(512),_=r(E),w=a(513),O=r(w),P=a(517),k=r(P),j=a(521),x=r(j),N=a(524),C=r(N),T=a(526),S=r(T),F=a(527),D=r(F),M=a(528),A=r(M),V=a(529),R=r(V),U=a(531),I=r(U),L=a(532),B=r(L),q=a(533),W=r(q),z=a(534),H=r(z),$=a(535),Y=r($),Q=a(536),G=r(Q),K=a(539),J=r(K),X=a(540),Z=r(X),ee=a(541),te=r(ee),ae=a(543),re=r(ae),ne=a(551),oe=r(ne),le=a(552),ie=r(le),se=a(553),ue=r(se),ce=a(554),pe=r(ce),fe=a(555),de=r(fe),me=a(556),he=r(me),be={emailSettings:o.default,addressSettings:i.default,captchaSettings:u.default,dateSettings:p.default,signatureSettings:d.default,consentSettings:h.default,gdprcheckboxSettings:y.default,hiddenSettings:g.default,htmlSettings:_.default,groupSettings:O.default,sliderSettings:k.default,multivalueSettings:x.default,nameSettings:C.default,numberSettings:S.default,paginationSettings:D.default,phoneSettings:A.default,postdataSettings:R.default,sectionSettings:I.default,singlevaluesettings:B.default,textSettings:W.default,textareaSettings:H.default,timeSettings:Y.default,uploadSettings:G.default,websiteSettings:J.default,radioSettings:Z.default,calculationSettings:te.default,stripeSettings:re.default,currencySettings:oe.default,passwordSettings:ie.default,paypalSettings:ue.default,richTextSettings:pe.default,allFormDataSettings:de.default,paymentSettings:he.default};t.default=be},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(218),p=r(c),f=a(28),d=r(f),m=a(25),h=r(m),b=a(43),y=r(b),v=a(244),g=r(v),E=a(188),_=(r(E),a(85)),w=r(_),O=a(1),P=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(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(h.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 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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(19),E=r(g),w=a(109),O=r(w),P=function(e){function t(e){n(this,t);var a=o(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 l(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:"getRuleValue",value:function(){if(_.isEmpty(this.props.rule.value))return(0,p.translate)("null");var e=this.props.rule.value;return["is_before","is_after"].includes(this.props.rule.rule)&&(e=(0,p.convertTimestamp)(e)),e}},{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="consent"===a.field_type;r&&(this.props.rule.value=(0,p.translate)("checked"));var n=this.getRuleValue(),o=["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"],s=["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,(0,f.escapeHTML)(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,n)),!("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,n))),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},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(m.default,null,c.default.createElement(b.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")),"signature"===a.field_type&&!r&&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"))),"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&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&!r&&"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)&&!r&&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)&&!r&&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&&!r&&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(b.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},(0,f.escapeHTML)(e.label))}))),!a.hasOptions&&r&&c.default.createElement(v.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!r&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.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(o,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(s,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",hasWordFormat:!0,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(v.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 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(17),d=a(28),m=r(d),h=a(502),b=r(h),y=a(392),v=r(y),g=a(25),E=r(g),w=a(205),O=r(w),P=a(7),k=r(P),j=a(4),x=r(j),N=a(2),C=r(N),T=a(19),S=r(T),F=a(9),D=r(F),M=a(43),A=r(M),V=a(85),R=r(V),U=function(e){function t(e){n(this,t);var a=o(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 l(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;(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(O.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(k.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.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(x.default,{cols:"6"},c.default.createElement(S.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),"data-placeholder":(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"}),c.default.createElement("option",null),_.map(forminatorData.countries,function(e,t){return c.default.createElement("option",{value:e,key:t},e)})))),c.default.createElement(k.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.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(O.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(k.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.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(x.default,{cols:"6"},c.default.createElement(C.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(k.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.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 a=void 0,r=this.multiFields.map(function(t,r){if(!_.isUndefined(e.props.state[t.slug])&&e.props.state[t.slug])return _.isEmpty(a)&&(a=t.slug),c.default.createElement(x.default,{cols:"12",label:(0,f.escapeHTML)(t.label),settings:e.props.state,value:t.slug,required:e.props.state[t.slug+"_required"],boxClass:"sui-tab-boxed",key:r},c.default.createElement(A.default,i({},e.props,{prefix:t.slug})),c.default.createElement(R.default,i({},e.props,{prefix:t.slug})))});return this.hasChildrens(r)?c.default.createElement(D.default,{default:a},r):c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"none"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")))));case"geolocation":return forminatorData.geolocation?c.default.createElement(b.default,this.props):c.default.createElement(v.default,i({},this.props,{text:(0,p.translate)("The Autocomplete feature simplifies entering addresses by offering real-time suggestions as you type. This feature requires the Forminator Geolocation Add-on."),addonUrl:"https://wpmudev.com/project/forminator-pro/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_geolocation-addon"}));case"visibility":return c.default.createElement(m.default,this.props);case"styling":return c.default.createElement(E.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 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(17),a(39)),d=r(f),m=a(40),h=r(m),b=a(15),y=r(b),v=a(6),g=r(v),E=a(3),_=r(E),w=a(7),O=r(w),P=a(4),k=r(P),j=a(2),x=r(j),N=a(16),C=r(N),T=a(11),S=r(T),F=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={action:"forminator_geolocation_check_api",_ajax_nonce:forminatorData.geolocation.nonce};d.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(e){e.data.success||jQuery("#forminator-geolocation-api-invalid").show()});var t=((0,p.getFields)(this.props.wrappers),(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_settings)||(0,p.isTrue)(forminatorData.userPermissions.manage_options));return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",id:"forminator-geolocation-api-invalid","aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Failed to connect to the Google Maps API. Please ensure you have entered a valid API key in the {{link}}Settings page{{/link}}.",{components:{link:t?c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=geolocation",target:"_blank"}):c.default.createElement("b",null)}}))))),c.default.createElement(y.default,{label:(0,p.translate)("Autocomplete"),labelDark:!0,description:(0,p.translate)("Enable this option to integrate Google Maps' address auto-completion service into your addresses field. This powerful feature will simplify the address entry process for users by providing real-time suggestions as they type."),descriptionSpacing:20,sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"auto_suggest",settings:this.props.state,default:"disable",simple:!0}),c.default.createElement(S.default,{value:"enable"},(0,p.translate)("Enable")),c.default.createElement(S.default,{value:"disable"},(0,p.translate)("Disable")))),c.default.createElement(y.default,{label:(0,p.translate)("Display address on Map"),labelDark:!0,description:(0,p.translate)("Use this option to display a Google Map next to your address field(s), showing the entered address. Users will be able to see their selected address on the map."),descriptionSpacing:20,sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"show_map",settings:this.props.state,default:"hide",simple:!0}),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Show"),settings:this.props.state,value:"show",boxClass:"sui-tab-boxed"}),c.default.createElement(y.default,{label:(0,p.translate)("Map position"),labelDark:!0,description:(0,p.translate)("The map is displayed at the bottom of the address field by default. You can also set it to be displayed above the address field below."),descriptionSpacing:20,sidebar:!1},c.default.createElement(O.default,null,c.default.createElement(k.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,property:"map_placement",defaultValue:"after"}),c.default.createElement("option",{value:"before"},(0,p.translate)("Above Address field(s)")),c.default.createElement("option",{value:"after"},(0,p.translate)("Below Address field(s)")))))),c.default.createElement(y.default,{label:(0,p.translate)("Map Size"),labelDark:!0,description:(0,p.translate)("Set the size of your map."),descriptionSpacing:20,sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"map_size",settings:this.props.state,default:"responsive",simple:!0}),c.default.createElement(S.default,{value:"responsive"},(0,p.translate)("Responsive")),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Custom Size"),settings:this.props.state,value:"custom",boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(k.default,{cols:"6"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Height"),note:"px",type:"number",isPositive:"true",placeholder:(0,p.translate)("Enter Height"),property:"map_height",defaultValue:"300"}))),c.default.createElement(k.default,{cols:"6"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Width"),note:"px",type:"number",isPositive:"true",placeholder:(0,p.translate)("Enter Width"),property:"map_width",defaultValue:"300"}))))))),c.default.createElement(y.default,{label:(0,p.translate)("Default map location"),labelDark:!0,description:(0,p.translate)("By default we show a 0.0 latitude and longitude on the map, you can use the option below to specify a default geolocation to display on the Map."),descriptionSpacing:20,sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"map_location",settings:this.props.state,default:"default",simple:!0}),c.default.createElement(S.default,{value:"default"},(0,p.translate)("Default location")),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Custom location"),settings:this.props.state,value:"custom",boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(k.default,{cols:"12"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"default_coordinates",label:(0,p.translate)("Enter coordinates"),placeholder:(0,p.translate)("E.g., 1.234567, 9.876543"),description:(0,p.translate)("To get coordinates, visit {{link}}https://map.google.com{{/link}} navigate to your preferred location, and right-click on any point and click on the first option with digits.",{components:{link:c.default.createElement("a",{href:"https://map.google.com",target:"_blank"})}})})))))))),c.default.createElement(S.default,{value:"hide"},(0,p.translate)("Hide")))))}}]),t}(u.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 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(25),d=r(f),m=a(7),h=r(m),b=a(4),y=r(b),v=a(6),g=r(v),E=a(16),w=r(E),O=a(15),P=r(O),k=a(113),j=r(k),x=a(11),N=r(x),C=a(3),T=r(C),S=a(2),F=r(S),D=a(30),M=r(D),A=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=this.props.type,t=_.isUndefined(this.props.state.captcha_provider)?"recaptcha":this.props.state.captcha_provider,a=_.isUndefined(this.props.state.hcaptcha_error_message)?(0,p.translate)("hCaptcha verification failed. Please try again."):this.props.state.hcaptcha_error_message,r=(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_settings)||(0,p.isTrue)(forminatorData.userPermissions.manage_options),n=r?(0,p.translate)("Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=captcha",target:"_blank"})}}):"",o=(0,p.translate)("You haven't added hCaptcha API keys in your global settings."),l=(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings.");switch(e){case"labels":return c.default.createElement("div",null);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(P.default,{label:(0,p.translate)("Captcha Provider"),labelDark:!0,description:(0,p.translate)("Select your preferred CAPTCHA provider below."),sidebar:!1},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"captcha_provider",default:"recaptcha"}),c.default.createElement(T.default,{value:"recaptcha",label:(0,p.translate)("reCAPTCHA")}),c.default.createElement(T.default,i({settings:this.props.state,value:"hcaptcha",label:(0,p.translate)("hCaptcha")},this.props),!forminatorData.hasHCaptcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red "+(!forminatorData.hasHCaptcha&&"sui-active"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,o," ",n))))))),"recaptcha"===t&&c.default.createElement(P.default,{label:(0,p.translate)("reCAPTCHA type"),labelDark:!0,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"})}}),sidebar:!1},c.default.createElement(g.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",{role:"alert",className:"sui-notice sui-notice-red "+(!forminatorData.hasV2Captcha&&" sui-active"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,l," ",n)))),forminatorData.hasV2Captcha&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.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(y.default,{cols:"6"},c.default.createElement(w.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",{role:"alert",className:"sui-notice sui-notice-red"+(!forminatorData.hasV2InvisibleCaptcha&&" sui-acitve"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,l," ",n)))),forminatorData.hasV2InvisibleCaptcha&&c.default.createElement(w.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",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,l," ",n)))),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(w.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")))))))),"hcaptcha"===t&&forminatorData.hasHCaptcha&&c.default.createElement(P.default,{label:(0,p.translate)("hCaptcha type"),labelDark:!0,description:(0,p.translate)("hCaptcha offers two different types of CAPTCHA challenges, a Checkbox and an Invisible type. Choose the hCaptcha type you want to use in your form."),sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"hcaptcha_type",settings:this.props.state,default:"hc_checkbox",label:""}),c.default.createElement(T.default,i({settings:this.props.state},this.props,{value:"hc_checkbox",label:(0,p.translate)("Checkbox"),boxClass:"sui-tab-boxed"}),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Size"),property:"hcaptcha_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(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"hcaptcha_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:"hc_invisible",label:(0,p.translate)("Invisible"),boxClass:"sui-tab-boxed"}),c.default.createElement(M.default,i({},this.props,{settings:this.props.state,property:"hc_invisible_notice",hideEditorOptions:"true",descriptionTop:(0,p.translate)("To comply with online privacy laws, users should be informed that this form includes an invisible CAPTCHA field.")}))))),c.default.createElement(P.default,{label:(0,p.translate)("Language"),labelDark:!0,description:(0,p.translate)("By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here."),sidebar:!1},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"language",fieldClass:"sui-input-md","data-placeholder":(0,p.translate)("Automatic"),hasSearch:!0}),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)}))),"recaptcha"===t&&"v3_recaptcha"===this.props.state.captcha_type&&forminatorData.hasV3Captcha&&c.default.createElement(P.default,{label:(0,p.translate)("Theme"),labelDark:!0,description:(0,p.translate)("Select the theme for the captcha."),sidebar:!1},c.default.createElement(w.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")))),"recaptcha"===t&&("v2_invisible"===this.props.state.captcha_type&&forminatorData.hasV2InvisibleCaptcha||"v3_recaptcha"===this.props.state.captcha_type&&forminatorData.hasV3Captcha)&&c.default.createElement(P.default,{label:(0,p.translate)("Badge Position"),labelDark:!0,description:(0,p.translate)("Select where the reCAPTCHA badge will be displayed on your page."),sidebar:!1},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"captcha_badge",defaultValue:"inline",radioClass:"sui-radio-sm"}),c.default.createElement(N.default,{value:"bottomright",hasImage:!0,image1x:"recaptcha-bottomright.png",image2x:"recaptcha-bottomright@2x.png",label:(0,p.translate)("Bottom Right")}),c.default.createElement(N.default,{value:"bottomleft",hasImage:!0,image1x:"recaptcha-bottomleft.png",image2x:"recaptcha-bottomleft@2x.png",label:(0,p.translate)("Bottom Left")}),c.default.createElement(N.default,{value:"inline",hasImage:!0,image1x:"recaptcha-inline.png",image2x:"recaptcha-inline@2x.png",label:(0,p.translate)("Inline in Form")}))),c.default.createElement(P.default,{label:(0,p.translate)("Error Message"),labelDark:!0,sidebar:!1},"recaptcha"===t&&c.default.createElement(c.default.Fragment,null,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(F.default,i({},this.props,{type:"text",property:"recaptcha_error_message",settings:this.props.state}))),"hcaptcha"===t&&c.default.createElement(c.default.Fragment,null,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 hCaptcha verification fails.")),c.default.createElement(F.default,i({},this.props,{type:"text",property:"hcaptcha_error_message",settings:this.props.state,defaultValue:a})))));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=A},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(28),d=r(f),m=a(25),h=r(m),b=a(43),y=r(b),v=a(3),g=r(v),E=a(20),_=r(E),w=a(6),O=r(w),P=a(7),k=r(P),j=a(4),x=r(j),N=a(2),C=r(N),T=a(16),S=r(T),F=a(11),D=r(F),M=a(109),A=r(M),V=a(35),R=r(V),U=a(85),I=r(U),L=a(505),B=r(L),q=a(15),W=r(q),z=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=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(k.default,null,c.default.createElement(x.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(x.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(k.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(S.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(S.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(S.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(k.default,null,c.default.createElement(x.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(k.default,null,c.default.createElement(x.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(x.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(k.default,null,c.default.createElement(x.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(x.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(k.default,null,c.default.createElement(x.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(x.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(W.default,{label:(0,p.translate)("Default Date"),labelDark:!0,description:(0,p.translate)("Use this feature to specify a default selected date."),sidebar:!1},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({},this.props,{settings:this.props.state,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(W.default,{label:(0,p.translate)("Year Range"),labelDark:!0,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."),sidebar:!1},c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement(k.default,null,c.default.createElement(x.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(x.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(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=z},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(17),d=a(16),m=r(d),h=a(7),b=r(h),y=a(4),v=r(y),g=a(109),E=r(g),w=a(2),O=r(w),P=a(11),k=r(P),j=a(41),x=r(j),N=a(3),C=r(N),T=a(6),S=r(T),F=a(506),D=r(F),M=a(507),A=r(M),V=a(15),R=r(V),U=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:"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!_.isEmpty(this.props.state.min_year)&&_.isUndefined(this.props.state["start-date"])&&(e="specific",this.props.state["start-date"]=e,this.props.state["start-specific-date"]="Jan 1 "+this.props.state.min_year),!_.isEmpty(this.props.state.max_year)&&_.isUndefined(this.props.state["end-date"])&&(t="specific",this.props.state["end-date"]=t,this.props.state["end-specific-date"]="Dec 31 "+this.props.state.max_year),c.default.createElement(c.default.Fragment,null,c.default.createElement(R.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",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(m.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},(0,f.escapeHTML)(e.label))})))),"specific"===e&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement(E.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",{className:"fui-form-field--col"},c.default.createElement("div",{className:"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(m.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(O.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(m.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",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(m.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},(0,f.escapeHTML)(e.label))})))),"specific"===t&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement(E.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",{className:"fui-form-field--col"},c.default.createElement("div",{className:"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(m.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(O.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(m.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(R.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(k.default,{value:"all"},(0,p.translate)("All days")),c.default.createElement(C.default,i({},this.props,{settings:this.props.state,value:"week",label:(0,p.translate)("Selected days"),boxClass:"sui-tab-boxed"}),c.default.createElement(b.default,null,c.default.createElement(v.default,{cols:"4"},c.default.createElement(x.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(x.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(x.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(v.default,{cols:"4"},c.default.createElement(x.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(x.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(v.default,{cols:"4"},c.default.createElement(x.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(x.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(R.default,null,c.default.createElement(D.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(R.default,null,c.default.createElement(A.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(R.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(O.default,i({},this.props,{settings:this.props.state,property:"restrict_message"}))))}}]),t}(u.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(){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}),t.updateValue(a)}),_.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",{className:"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 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(){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",{className:"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",{className:"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 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(218),d=r(f),m=a(28),h=r(m),b=a(25),y=r(b),v=a(43),g=r(v),E=a(2),_=r(E),w=a(16),O=r(w),P=a(15),k=r(P),j=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(){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(k.default,{label:(0,p.translate)("Signature Filetype"),labelDark:!0,description:(0,p.translate)("Choose the filetype to save your users' signature in."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(O.default,i({},this.props,{property:"filetype",settings:this.props.state,"data-width":"100",fieldsize:"100"}),c.default.createElement("option",{value:"png"},(0,p.translate)("PNG")),c.default.createElement("option",{value:"jpg"},(0,p.translate)("JPG"))))),c.default.createElement(k.default,{label:(0,p.translate)("Height"),labelDark:!0,description:(0,p.translate)("Choose the height of your signature field. The default value is 180px."),descriptionSpacing:20,sidebar:!1},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"180",property:"height",suffix:"px"}))),c.default.createElement(k.default,{label:(0,p.translate)("Stroke Thickness"),labelDark:!0,description:(0,p.translate)("Choose the thickness in pixels for signature strokes. The default value is 2px."),descriptionSpacing:20,sidebar:!1},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"2",property:"thickness",suffix:"px"}))));case"visibility":return c.default.createElement(h.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=j},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(28),d=r(f),m=a(25),h=r(m),b=a(30),y=r(b),v=a(2),g=r(v),E=a(43),w=r(E),O=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=this.props.type,t={};switch(_.assign(t,forminatorData.variables),delete t.submission_id,e){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)("E.g. Consent"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"consent_description",editorOptions:t,description:(0,p.translate)("Describe what your users should consent to.")})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.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 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(28),d=r(f),m=a(25),h=r(m),b=a(30),y=r(b),v=a(2),g=r(v),E=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(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("The {{strong}}GDPR Field{{/strong}} has been deprecated and replaced by the new {{strong}}Consent Field{{/strong}}. Your existing fields should continue to work as expected, but please consider using the {{strong}}Consent Field{{/strong}} in the future.",{components:{strong:c.default.createElement("strong",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(h.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 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(25),d=r(f),m=a(7),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(16),w=r(E),O=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(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(h.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.variablesForHiddenField,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})))),"custom_value"===this.props.state.default_value&&c.default.createElement(h.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(h.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 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(28),d=r(f),m=a(25),h=r(m),b=a(30),y=r(b),v=a(2),g=r(v),E=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=this.props.type,t={};switch(_.assign(t,forminatorData.variables),delete t.submission_id,e){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,{extraId:"html-type",settings:this.props.state,boxClass:"sui-tab-boxed",property:"variations",editorOptions:t,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(h.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 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),a(28)),p=r(c),f=a(514),d=r(f),m=a(515),h=r(m),b=a(516),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),i(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return u.default.createElement(d.default,this.props);case"settings":return u.default.createElement(h.default,this.props);case"visibility":return u.default.createElement(p.default,this.props);case"styling":return u.default.createElement(y.default,this.props);default:return u.default.createElement("div",null)}}}]),t}(s.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 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(7),d=r(f),m=a(4),h=r(m),b=a(2),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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Use this field to group Forminator fields together and collect repeating data in your form. Learn more about grouping and repeating use cases in {{link}}this tutorial. {{icon/}}{{/link}}",{components:{strong:c.default.createElement("strong",null),link:c.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#field-group",target:"_blank"}),icon:c.default.createElement("span",{className:"sui-icon-open-new-window sui-sm","aria-hidden":"true"})}})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},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(d.default,null,c.default.createElement(h.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){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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(6),E=r(g),w=a(3),O=r(w),P=a(11),k=r(P),j=a(16),x=r(j),N=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:"getVariables",value:function(){return(0,p.getFields)(this.props.wrappers,[],{},["calculation","currency","number","slider"])}},{key:"render",value:function(){var e=this.getVariables();return c.default.createElement(E.default,i({},this.props,{property:"is_repeater",settings:this.props.state,default:"true",label:(0,p.translate)("Field Repeater"),description:(0,p.translate)("Allow fields in this group to be repeated.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(E.default,i({},this.props,{property:"min_limit_type",settings:this.props.state,default:"custom",label:(0,p.translate)("Minimum repeater limit"),wrapperClass:"forminator-float",description:(0,p.translate)("Enter the minimum number of times this group field will be repeated by default, or select a variable from your form fields. If left empty, the minimum will default to 1.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Custom"),boxClass:""}),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"",minValue:"1",property:"min_limit",placeholder:(0,p.translate)("Enter minimum limit"),type:"number"}))),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:""}),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"min_limit_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Choose form field")),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label+" {"+e.element_id+"}"))})))),c.default.createElement(E.default,i({},this.props,{property:"max_limit_type",settings:this.props.state,default:"custom",label:(0,p.translate)("Maximum repeater limit"),wrapperClass:"forminator-float",description:(0,p.translate)("Enter the maximum number of times this group field can be repeated, or select a variable from your form fields. If left empty, the maximum will be unlimited.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Custom"),boxClass:""}),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"",minValue:"1",property:"max_limit",placeholder:(0,p.translate)("Enter maximum limit"),type:"number"}))),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:""}),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"max_limit_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Choose form field")),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label+" {"+e.element_id+"}"))})))),c.default.createElement(E.default,i({},this.props,{property:"action_element_type",settings:this.props.state,default:"button",label:(0,p.translate)("Repeater Element Type"),description:(0,p.translate)("Choose the element type and label text for your repeater actions.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"button",label:(0,p.translate)("Buttons"),boxClass:"sui-tab-boxed"}),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Add Button Text (optional)"),placeholder:(0,p.translate)("Add item"),defaultValue:(0,p.translate)("Add item"),property:"add_action_text"}))),c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Remove Button Text (optional)"),placeholder:(0,p.translate)("Remove item"),defaultValue:(0,p.translate)("Remove item"),property:"remove_action_text"}))))),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,value:"icon",label:(0,p.translate)("Icons")})),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"link",label:(0,p.translate)("Text links"),boxClass:"sui-tab-boxed"}),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Add Link Text (optional)"),placeholder:(0,p.translate)("Add item"),defaultValue:(0,p.translate)("Add item"),property:"add_action_text"}))),c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Add Link Text (optional)"),placeholder:(0,p.translate)("Remove item"),defaultValue:(0,p.translate)("Remove item"),property:"remove_action_text"}))))))),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))}}]),t}(u.Component);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=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),m=a(6),h=r(m),b=a(11),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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,this.props),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)("Group Field Styling")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, the Group Field will apply the styles you have set in the Appearance settings, but you can remove those styles with this option."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(h.default,i({},this.props,{property:"group_styles",settings:this.props.state,default:"default"}),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,value:"default",label:(0,p.translate)("Apply")})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Remove")}))))))}}]),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 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(28),p=r(c),f=a(518),d=r(f),m=a(519),h=r(m),b=a(25),y=r(b),v=a(206),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return u.default.createElement(d.default,this.props);case"settings":return u.default.createElement(h.default,this.props);case"calculations":return u.default.createElement(g.default,this.props);case"visibility":return u.default.createElement(p.default,this.props);case"styling":return u.default.createElement(y.default,this.props);default:return u.default.createElement("div",null)}}}]),t}(s.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 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(7),d=r(f),m=a(4),h=r(m),b=a(2),y=r(b),v=a(113),g=r(v),E=a(11),_=r(E),w=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"slider_type",label:(0,p.translate)("Type"),defaultValue:"single",radioClass:"sui-radio-sm"}),c.default.createElement(_.default,{value:"single",hasImage:!0,image1x:"slider-single.png",image2x:"slider-single@2x.png",label:(0,p.translate)("Single Slider")}),c.default.createElement(_.default,{value:"range",hasImage:!0,image1x:"slider-range.png",image2x:"slider-range@2x.png",label:(0,p.translate)("Range Slider")})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},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(d.default,null,c.default.createElement(h.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=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 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(7),d=r(f),m=a(4),h=r(m),b=a(2),y=r(b),v=a(6),g=r(v),E=a(11),_=r(E),w=a(16),O=r(w),P=a(43),k=r(P),j=a(35),x=r(j),N=a(15),C=r(N),T=a(24),S=(r(T),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=parseFloat(this.props.state.slider_min||1),t=parseFloat(this.props.state.slider_max||10),a=parseFloat(this.props.state.slider_step||1),r="range"===this.props.state.slider_type;t<e&&(t=e),t!==this.props.state.slider_max&&this.props.updateProperty("slider_max",t);var n=c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginBottom:"-30px"}},c.default.createElement(x.default,i({},this.props,{label:(0,p.translate)("Advanced settings")}),c.default.createElement(d.default,null,c.default.createElement(h.default,r&&{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,type:"number",minValue:e,maxValue:t,step:a,label:r?(0,p.translate)("Start value"):(0,p.translate)("Default value"),placeholder:(0,p.translate)("Enter value"),property:"slider_default",defaultValue:e}))),r&&c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,type:"number",minValue:e,maxValue:t,step:a,label:(0,p.translate)("End value"),placeholder:(0,p.translate)("Enter value"),property:"slider_default_2",defaultValue:t})))),c.default.createElement(d.default,null,c.default.createElement(h.default,null,c.default.createElement(O.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Display value position"),property:"value_position"}),c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"bottom"},(0,p.translate)("Bottom")),c.default.createElement("option",{value:"top"},(0,p.translate)("Top")))))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Prefix text"),placeholder:(0,p.translate)("Enter prefix text"),property:"prefix"}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Suffix text"),placeholder:(0,p.translate)("Enter suffix text"),property:"suffix"}))),c.default.createElement(h.default,null,c.default.createElement("span",{className:"sui-description sui-description-alt"},(0,p.translate)("Use these fields to display texts (e.g. currency symbols or units of measure) before and after the slider values.")))))),o=c.default.createElement(C.default,{label:(0,p.translate)("Slider width"),labelDark:!0,description:(0,p.translate)("The Slider takes the full-width of its container by default, but you can select a different size below."),descriptionSpacing:20,sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"slider_width",settings:this.props.state,default:"full",simple:!0}),c.default.createElement(_.default,{value:"small"},(0,p.translate)("Small")),c.default.createElement(_.default,{value:"medium"},(0,p.translate)("Medium")),c.default.createElement(_.default,{value:"large"},(0,p.translate)("Large")),c.default.createElement(_.default,{value:"full"},(0,p.translate)("Full width")))),l=c.default.createElement(C.default,{label:(0,p.translate)("Values"),labelDark:!0,sidebar:!1,lastChild:!0},c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,type:"number",maxValue:t,step:a,label:(0,p.translate)("Minimum value"),placeholder:(0,p.translate)("Enter value"),property:"slider_min",defaultValue:e}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,type:"number",minValue:e,value:t,step:a,label:(0,p.translate)("Maximum Value"),placeholder:(0,p.translate)("Enter value"),property:"slider_max"})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,type:"number",label:(0,p.translate)("Step"),minValue:"0",placeholder:(0,p.translate)("Enter value"),property:"slider_step",defaultValue:a}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{property:"slider_limits",settings:this.props.state,default:"show",label:(0,p.translate)("Show / Hide slider limits")}),c.default.createElement(_.default,{value:"show"},(0,p.translate)("Show")),c.default.createElement(_.default,{value:"hide"},(0,p.translate)("Hide"))))));return c.default.createElement(c.default.Fragment,null,c.default.createElement(k.default,this.props),o,l,n)}}]),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 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(17),f=a(2),d=(r(f),a(245)),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateField=a.updateField.bind(a),a.updateState=a.updateState.bind(a),a}return l(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"},(0,p.escapeHTML)(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!")))}),u.default.createElement(m.default,this.props))}}]),t}(s.Component);t.default=h},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(28),d=r(f),m=a(25),h=r(m),b=a(246),y=r(b),v=a(43),g=r(v),E=a(7),w=r(E),O=a(4),P=r(O),k=a(2),j=r(k),x=a(206),N=r(x),C=a(20),T=r(C),S=a(15),F=r(S),D=a(393),M=r(D),A=a(247),V=r(A),R=a(85),U=r(R),I=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=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(j.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(j.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(T.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),c.default.createElement(U.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(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=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 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(35),d=(r(f),a(64)),m=r(d),h=function(e){function t(e){n(this,t);var a=o(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 l(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);_.isEmpty(this.props.option.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,o=void 0;clearTimeout(n),n=setTimeout(function(){t.each(function(){jQuery(this).find(".sui-accordion-item").hasClass("sui-accordion-item--open")?a++:r++}),clearTimeout(o),o=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)||this.props.option.error?"sui-form-field-error":"",r=this.state.open,n=this.props.state.enable_images,o="",l=void 0!==this.props.option.image?"url("+this.props.option.image+")":"";return o=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 "+o,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:l}}))),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(m.default,i({},this.props,{settings:this.props.option,type:"image",fieldClass:"sui-auto",property:"image",updateProperty:this.updateImage})))))))}}]),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 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,t=this;this.$el=jQuery(this.el),this.$addPredefined=jQuery(this.addPredefined),SUI.select.initVars(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.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.select.initVars(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(".select2-container").find(".select2-selection").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",o=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images,l=(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("div",{className:"sui-row"},s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-col-sm-6 sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *")),s.default.createElement("div",{id:"add-predefined",className:"sui-col-sm-6 sui-insert-variables",ref:function(t){return e.addPredefined=t}},s.default.createElement("select",{className:"predefined-options sui-variables",ref:function(t){return e.el=t}},s.default.createElement("option",{value:i},(0,u.translate)("New option")),o&&s.default.createElement("option",{value:l},(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"},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 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(17),d=a(218),m=r(d),h=a(28),b=r(h),y=a(25),v=r(y),g=a(6),E=r(g),w=a(9),O=r(w),P=a(525),k=r(P),j=a(43),x=r(j),N=a(244),C=(r(N),a(188)),T=(r(C),a(4)),S=r(T),F=a(85),D=r(F),M=a(3),A=r(M),V=a(11),R=r(V),U=a(15),I=r(U),L=a(16),B=r(L),q=function(e){function t(e){n(this,t);var a=o(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 l(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(E.default,i({},this.props,{property:"multiple_name",settings:this.props.state,default:"false",divClass:"sui-tabs-content-lg"}),c.default.createElement(m.default,i({settings:this.props.state},this.props,{value:"false"}),(0,p.translate)("Single")),c.default.createElement(k.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:(0,f.escapeHTML)(a.label),value:a.slug,settings:e.props.state,boxClass:"sui-tab-boxed",key:r},c.default.createElement(D.default,i({},e.props,{prefix:a.slug})));if("prefix"!==a.slug)return c.default.createElement(S.default,{cols:"12",label:(0,f.escapeHTML)(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(x.default,i({},e.props,{prefix:a.slug})),c.default.createElement(D.default,i({},e.props,{prefix:a.slug})))}});return this.hasChildrens(a)?c.default.createElement("div",null,c.default.createElement(O.default,{default:t},a),c.default.createElement(I.default,{label:(0,p.translate)("Layout"),labelDark:!0,description:(0,p.translate)('By default, the "Prefix" and "First Name" fields are added to the first row, and the rest of the name fields are added to the second row. Under the Custom tab, you can choose the number of columns for displaying the name fields.'),sidebar:!1},c.default.createElement(E.default,i({},this.props,{property:"default_layout",settings:this.props.state,default:"default",label:""}),c.default.createElement(R.default,{value:"default"},(0,p.translate)("Default")),c.default.createElement(A.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:160}},c.default.createElement(B.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Number of columns"),placeholder:"1",property:"layout_columns"}),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("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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(x.default,this.props),c.default.createElement(D.default,this.props));case"visibility":return c.default.createElement(b.default,this.props);case"styling":return c.default.createElement(v.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 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(205),d=r(f),m=a(7),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(19),_=r(E),w=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=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(h.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(h.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(h.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(h.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 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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(43),P=r(O),k=a(206),j=r(k),x=a(85),N=r(x),C=a(6),T=r(C),S=a(11),F=r(S),D=a(3),M=r(D),A=a(15),V=r(A),R=a(16),U=r(R),I=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=this.props.type,t=_.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,{label:(0,p.translate)("Limits"),labelDark:!0,description:(0,p.translate)("Set the minimum and maximum values the user can choose. Leave the fields blank to allow any number including negatives."),descriptionSpacing:20,sidebar:!1},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(T.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,type:"text",property:"limit_min_message",label:(0,p.translate)("When number is smaller than the min limit"),placeholder:(0,p.translate)("E.g. Please enter a number greater than 0.")})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_max_message",label:(0,p.translate)("When number is greater than the max limit"),placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000.")}))))),c.default.createElement(V.default,{label:(0,p.translate)("Formatting"),labelDark:!0,description:(0,p.translate)("Choose how do you want to format the value of this field."),descriptionSpacing:20,sidebar:!1},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"1234567.89",label:(0,p.translate)("Separators"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),"custom"!==t&&c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"0",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))),"custom"===t&&c.default.createElement("div",{className:"sui-form-field-inline sui-border-frame",style:{marginBottom:"5px"}},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator"),fieldClass:"sui-input-md"}))),"custom"===t&&c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))),c.default.createElement(N.default,this.props));case"calculations":return c.default.createElement(j.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=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 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(2),d=r(f),m=a(11),h=r(m),b=a(3),y=r(b),v=a(6),g=r(v),E=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(){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",description:(0,p.translate)("Choose whether you want to use default text for the Previous and Next button or use custom text.")}),c.default.createElement(h.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 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(218),d=r(f),m=a(28),h=r(m),b=a(25),y=r(b),v=a(43),g=r(v),E=a(188),w=(r(E),a(3)),O=r(w),P=a(6),k=r(P),j=a(2),x=r(j),N=a(19),C=r(N),T=a(11),S=r(T),F=a(85),D=r(F),M=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(){for(var e=this.props.type,t=window.intlTelInputGlobals.getCountryData(),a=new Object,r=0;r<t.length;r++)a[t[r].iso2]=t[r].name;switch(e){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(k.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(S.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(a,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})),c.default.createElement(x.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(a,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})),c.default.createElement(x.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(x.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(x.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(h.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 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(17),d=a(28),m=r(d),h=a(25),b=r(h),y=a(43),v=r(y),g=a(205),E=r(g),w=a(7),O=r(w),P=a(4),k=r(P),j=a(2),x=r(j),N=a(20),C=r(N),T=a(19),S=r(T),F=a(41),D=r(F),M=a(394),A=r(M),V=a(15),R=r(V),U=function(e){function t(e){n(this,t);var a=o(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:!0},{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 l(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",null)}})),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(E.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(O.default,null,c.default.createElement(k.default,{cols:"6"},c.default.createElement(x.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(k.default,{cols:"6"},c.default.createElement(x.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(O.default,null,c.default.createElement(k.default,{cols:"12"},c.default.createElement(x.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(E.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(O.default,null,c.default.createElement(k.default,{cols:"12"},c.default.createElement(x.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(O.default,null,c.default.createElement(k.default,{cols:"12"},c.default.createElement(x.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(E.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(A.default,i({wrappers:e.props.wrappers},e.props)))):void 0})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(v.default,this.props),c.default.createElement(R.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},(0,f.escapeHTML)(e.label))}))),c.default.createElement(R.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(R.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},(0,f.escapeHTML)(e.label))})),c.default.createElement(D.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(O.default,null,_.map(a,function(t,a){return c.default.createElement(k.default,{cols:"6",key:a},c.default.createElement(C.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(m.default,this.props);case"styling":return c.default.createElement(b.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 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(17),d=a(52),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return l(t,e),s(t,[{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","captcha","consent","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(m.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},(0,f.escapeHTML)(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=h},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(28),d=r(f),m=a(25),h=r(m),b=a(6),y=r(b),v=a(3),g=r(v),E=a(11),_=r(E),w=a(7),O=r(w),P=a(4),k=r(P),j=a(2),x=r(j),N=a(5),C=r(N),T=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(){switch(this.props.type){case"labels":return c.default.createElement(O.default,null,c.default.createElement(k.default,{cols:"6"},c.default.createElement(x.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(k.default,{cols:"6"},c.default.createElement(x.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(k.default,{cols:"3"},c.default.createElement(x.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(k.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(k.default,{cols:"3"},c.default.createElement(x.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(k.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(h.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,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(28),d=r(f),m=a(25),h=r(m),b=a(246),y=r(b),v=a(43),g=r(v),E=a(7),_=r(E),w=a(4),O=r(w),P=a(2),k=r(P),j=a(20),x=r(j),N=a(206),C=r(N),T=a(15),S=r(T),F=a(6),D=r(F),M=a(11),A=r(M),V=a(247),R=r(V),U=a(85),I=r(U),L=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=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",o=(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(x.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(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(_.default,null,c.default.createElement(O.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(_.default,null,c.default.createElement(O.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: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(S.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(x.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",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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,this.props),c.default.createElement(I.default,i({},this.props,{notice:"multiselect"===t&&o})));case"calculations":return c.default.createElement(C.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=L},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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(19),O=r(w),P=a(43),k=r(P),j=a(188),x=(r(j),a(85)),N=r(x),C=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(){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(k.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(h.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 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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=(r(b),a(4)),v=(r(y),a(2)),g=r(v),E=a(395),_=r(E),w=a(19),O=r(w),P=a(43),k=r(P),j=a(188),x=(r(j),a(20)),N=r(x),C=a(85),T=r(C),S=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return l(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"})),!(0,p.isTrue)(this.props.state["editor-type"])&&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(k.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(T.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.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){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 o(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 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(28),m=r(d),h=a(25),b=r(h),y=a(43),v=r(y),g=a(188),E=(r(g),a(6)),w=r(E),O=a(35),P=r(O),k=a(7),j=r(k),x=a(4),N=r(x),C=a(20),T=r(C),S=a(2),F=r(S),D=a(16),M=r(D),A=a(3),V=r(A),R=a(11),U=r(R),I=a(85),L=r(I),B=a(15),q=r(B),W=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.timeTypeChanged=!1,a.checkTimeTypeChange=a.checkTimeTypeChange.bind(a),a}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,o=_.isUndefined(this.props.state.restrict_start_ampm)?"AM":this.props.state.restrict_start_ampm,l=_.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?o:"",m="twelve"===e?s:"",h="twelve"===e?f:"",b=moment(r+":"+n+d,a),y=moment(l+":"+i+m,a),v=moment(c+":"+p+h,a);"default"===u&&(v.isBefore(b)||y.isBefore(v))&&(t=!1)}return t}},{key:"checkTimeTypeChange",value:function(e){_.isUndefined(this.props.state.restrict_time)||"none"===this.props.state.restrict_time||(this.props.state.time_type!==e?(this.timeTypeChanged=!0,this.convertTime()):this.timeTypeChanged=!1)}},{key:"convertTime",value:function(){var e=this.props.state,t=_.isUndefined(e.restrict_start_minute)?"00":e.restrict_start_minute,a=_.isUndefined(e.restrict_end_minute)?"00":e.restrict_end_minute,r=parseInt(e.restrict_start_hour),n=_.isUndefined(e.restrict_start_ampm)?"":e.restrict_start_ampm,o=parseInt(e.restrict_end_hour),l=_.isUndefined(e.restrict_end_ampm)?"":e.restrict_end_ampm;"twelve"===e.time_type?("pm"===n&&(r+=12,n=""),"pm"===l&&(o+=12,l=""),this.updateProperty("restrict_start_hour",r),this.updateProperty("restrict_start_minute",t),this.updateProperty("restrict_start_ampm",n),this.updateProperty("restrict_end_hour",o),this.updateProperty("restrict_end_minute",a),this.updateProperty("restrict_end_ampm",l)):(r>12?(r-=12,n="pm"):n="am",o>12?(o-=12,l="pm"):l="am",this.updateProperty("restrict_start_hour",r),this.updateProperty("restrict_start_minute",t),this.updateProperty("restrict_start_ampm",n),this.updateProperty("restrict_end_hour",o),this.updateProperty("restrict_end_minute",a),this.updateProperty("restrict_end_ampm",l))}},{key:"updateProperty",value:function(e,t){this.props.updateProperty(e,t)}},{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.time_type)?"twelve":this.props.state.time_type,a=_.isUndefined(this.props.state.field_type)?"input":this.props.state.field_type,r="twelve"===t?12:24,o=(0,f.translate)("{{strong}}Note:{{/strong}} The query parameter's value passed in URL should match with the selected time format.",{components:{strong:p.default.createElement("strong",null)}}),l=this.isTimeValid(t),i="twelve"===t?"h:mma":"H:mm",u=this.props.state,c=u.restrict_start_hour,d=_.isUndefined(u.restrict_start_minute)?"0":u.restrict_start_minute,h=_.isUndefined(u.restrict_start_ampm)?"":u.restrict_start_ampm,y=u.restrict_end_hour,g=_.isUndefined(u.restrict_end_minute)?"0":u.restrict_end_minute,E=_.isUndefined(u.restrict_end_ampm)?"":u.restrict_end_ampm,O=moment(c+":"+d+h,i).format(i),k=moment(y+":"+g+E,i).format(i);switch(e){case"labels":return p.default.createElement(p.default.Fragment,null,p.default.createElement(j.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(T.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(T.default,s({},this.props,{settings:this.props.state,property:"time_type",label:(0,f.translate)("Format"),timeType:this.checkTimeTypeChange}),p.default.createElement("span",{value:"twelve"},(0,f.translate)("12 hour")),p.default.createElement("span",{value:"twentyfour"},(0,f.translate)("24 hour"))))),this.timeTypeChanged&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-grey sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("We have mapped the time limit you have set to match the new time format you have chosen. The current time limit is set between "+O+" and "+k+". You can adjust this limit under the Settings tab."))))),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(j.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"}))),"select"!==a&&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(j.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"}))),"select"!==a&&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(q.default,{label:(0,f.translate)("Increments"),labelDark:!0,description:(0,f.translate)("Choose what time increments you want to use for the hour and minute timepickers."),descriptionSpacing:20,sidebar:!1},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","data-width":"86"}),[].concat(n(Array(r))).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","data-width":"86"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})))),p.default.createElement(q.default,{label:(0,f.translate)("Limits"),labelDark:!0,description:(0,f.translate)("Choose a time limit for the time picker field to restrict the time selection between specific hours."),descriptionSpacing:20,sidebar:!1},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(j.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(r))).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(j.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(r))).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(j.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(q.default,{label:(0,f.translate)("Default Time"),labelDark:!0,description:(0,f.translate)("Use this feature to specify a default selected time."),descriptionSpacing:20,sidebar:!1},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({},this.props,{label:(0,f.translate)("Default"),settings:this.props.state,value:"default",boxClass:"sui-tab-boxed"}),p.default.createElement(j.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(r))).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:o})));case"visibility":return p.default.createElement(m.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=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 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(28),d=r(f),m=a(25),h=r(m),b=a(537),y=r(b),v=a(43),g=r(v),E=a(2),w=r(E),O=a(4),P=(r(O),a(19)),k=r(P),j=a(20),x=r(j),N=a(6),C=r(N),T=a(11),S=r(T),F=a(3),D=r(F),M=a(15),A=r(M),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=this.props.type,t=_.isUndefined(this.props.state["upload-limit"])?0:this.props.state["upload-limit"],a=_.isUndefined(this.props.state.filesize)?"MB":this.props.state.filesize,r="KB"===a?1e3*parseInt(forminatorData.maxUpload):"B"===a?1e6*parseInt(forminatorData.maxUpload):parseInt(forminatorData.maxUpload),n=_.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(x.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"===n&&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(S.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"===n?(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's 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)>r?" sui-form-field-error":"")})),c.default.createElement(k.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")))),c.default.createElement("div",{role:"alert",className:"sui-notice"+(parseInt(t)>r&&" sui-active"),style:{display:parseInt(t)>r?"block":"none"},"aria-live":"assertive"},parseInt(t)>r&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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"===n&&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(x.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(x.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(h.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 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(7),d=r(f),m=a(4),h=r(m),b=a(41),y=(r(b),a(538)),v=r(y),g=a(395),E=r(g),w=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:"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=[],o=[],l=[],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){o.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){l.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)("We use WordPress' {{a}}default allowed mime types{{/a}} to determine which file types can be uploaded. If you want to allow or restrict specific file types from being upload, you can do so by choosing the Specific filetypes option below.",{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(h.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(h.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(h.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(h.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(h.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:o}))),c.default.createElement(h.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:l}))),c.default.createElement(h.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(h.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(h.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",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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.")))))))))),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-warning",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-warning-alert","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("For security reasons, the following file types are disabled by default: .htm, .html, .shtml, .phtml, .jse, .jar, .xml, .css, .asp, .aspx, .jsp, .sql, .hta, .dll, .bat, .com, .sh, .bash, .py, .pl, .js, .php, .svg, .swf, .dfxp and .exe. The above file types could potentially allow malicious files to be uploaded, which could be used to gain access to your site.")))))))}}]),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 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=a(17),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.updateCheckboxItem=a.updateCheckboxItem.bind(a),a.onSelectAllCheckboxes=a.onSelectAllCheckboxes.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:"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 o=a.filter(function(e){return n.includes(e.value)});n=o.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,(0,c.escapeHTML)(r.label)))}))}}]),t}(i.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 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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(43),O=r(w),P=a(244),k=r(P),j=a(85),x=r(j),N=a(188),C=(r(N),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(){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(k.default,this.props),c.default.createElement(x.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.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 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(28),d=r(f),m=a(25),h=r(m),b=a(246),y=r(b),v=a(43),g=r(v),E=a(7),w=r(E),O=a(4),P=r(O),k=a(2),j=r(k),x=a(206),N=r(x),C=a(20),T=r(C),S=a(15),F=r(S),D=a(393),M=r(D),A=a(247),V=r(A),R=a(85),U=r(R),I=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=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(j.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(j.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(T.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),c.default.createElement(U.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(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=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 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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(542),P=r(O),k=a(16),j=r(k),x=a(15),N=r(x),C=a(41),T=r(C),S=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateHidden=a.updateHidden.bind(a),a}return l(t,e),s(t,[{key:"updateHidden",value:function(e,t){this.props.updateProperty("hidden",t),this.removeConditions()}},{key:"removeConditions",value:function(){(0,p.isTrue)(this.props.state.hidden)&&!_.isEmpty(this.props.state.conditions)&&(this.props.state.conditions={},this.props.updateProperty("conditions",this.props.state.conditions))}},{key:"render",value:function(){var e=this.props.type,t=this.props.state,a=t.hidden,r=t.conditions,n=_.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(T.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(T.default,i({},this.props,{property:"hidden",settings:this.props.state,label:(0,p.translate)("Hidden"),itemClass:"sui-checkbox-sm sui-checkbox-stacked",updateProperty:this.updateHidden.bind(this)})),!a&&!_.isEmpty(r)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Visibility rules have been added for this field. Enabling the Hidden option will remove the existing visibility rules."))))))),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")})))),"custom"===n&&c.default.createElement(u.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"5px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Separators")),c.default.createElement(j.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"blank",simple:!0}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator")})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator")})))))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))),"custom"!==n&&c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"blank",label:(0,p.translate)("Separators")}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To")}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 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,a&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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."))))),!a&&c.default.createElement(d.default,this.props));case"styling":return c.default.createElement(h.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 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(245),f=r(p),d=a(17),m=function(e){function t(e){n(this,t);var a=o(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),i(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"),o=a.slice(0,n)+t+a.slice(n);this.updateValue(o),r.val(o),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 o=a,l=a;"{"!==r.substr(o-1,1)&&o-1>=0;)o-=1;var i=r.slice(0,o-1)+r.slice(l,r.length);this.updateValue(i),t.val(i),t.prop("selectionStart",o-1),t.prop("selectionEnd",o-1)}}}},{key:"insertChar",value:function(e){var t=[32,34,37,40,41,42,43,44,45,47,46,48,49,50,51,52,53,54,55,56,57,94];_.contains(t,e.charCode)||e.preventDefault()}},{key:"getDisabledFields",value:function(){var e=["number","slider","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,c.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("|"),o="("+n+")-\\d+",l=new RegExp("\\{("+o+")(\\-[A-Za-z-_]+)?(\\-[0-9\\*]+)?\\}","g"),i=e;a=l.exec(e);){var s=a[0];if(!_.isUndefined(s)){if(!(0,c.fieldExist)(a[1],this.props.wrappers))return{error:(0,c.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 u=(0,c.getFieldLabel)(a[1],this.props.wrappers),p=a[3]||"";i=i.replace(s,'<span className="forminator-preview-label">'+(0,d.escapeHTML)(u)+p+"</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,c.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,c.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=_.indexBy(this.props.wrappers,"wrapper_id"),r=this.props.modal.wrapper.wrapper_id||this.props.state.wrapper_id,n=a[r].parent_group,o=_.map(t,function(t,a){if(t.element_id!==e.props.state.element_id||"slider"===t.field_type)return t.hasCalcs||"calculation"===t.field_type?u.default.createElement(u.default.Fragment,null,u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.default.createElement("button",{onClick:function(a){return e.insert(a,"{"+t.element_id+"}")}},(0,d.escapeHTML)(t.label))),t.parent_group&&!n&&u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.default.createElement("button",{onClick:function(a){return e.insert(a,"{"+t.element_id+"-*}")}},t.label+(0,c.translate)(" (all)")))):void 0}),l=["abs","avg","ceil","floor","max","min","round"],i=_.map(l,function(t){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:t},u.default.createElement("button",{onClick:function(a){return e.insert(a,t+"()")}},t+"()"))}),s=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],p=this.validateFormula(s),m=this.previewFormula(s),h=!1===p.result?" fui-error":"";return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{className:"sui-label"},(0,c.translate)("Calculation Formula")),u.default.createElement("div",{className:"fui-calculations"+h,ref:function(t){return e.el=t}},u.default.createElement("div",{className:"fui-calcs-bar"},u.default.createElement("div",{className:"sui-dropdown sui-dropdown-right"},u.default.createElement("button",{className:"sui-button-icon sui-button-blue sui-tooltip sui-tooltip-top-left sui-dropdown-anchor","data-tooltip":(0,c.translate)("Add Form Fields")},u.default.createElement("i",{className:"sui-icon-layout","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open list of fields"))),u.default.createElement("ul",null,o)),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"+")}},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Sum"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"-")}},u.default.createElement("b",{"aria-hidden":"true"},"-"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Minus"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"*")}},u.default.createElement("b",{"aria-hidden":"true"},"*"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Multiply"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"/")}},u.default.createElement("b",{"aria-hidden":"true"},"/"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Divide"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"^")}},u.default.createElement("b",{"aria-hidden":"true"},"^"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Exponentiate"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"%")}},u.default.createElement("b",{"aria-hidden":"true"},"%"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Modulus"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"(")}},u.default.createElement("b",{"aria-hidden":"true"},"("),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open parenthesis"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,")")}},u.default.createElement("b",{"aria-hidden":"true"},")"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Close parenthesis"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,",")}},u.default.createElement("b",{"aria-hidden":"true"},","),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Comma"))),u.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"PI")}},u.default.createElement("b",{"aria-hidden":"true"},"PI"),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("PI constant"))),u.default.createElement("div",{className:"sui-dropdown sui-dropdown-right"},u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-left sui-dropdown-anchor","data-tooltip":(0,c.translate)("Add Function")},u.default.createElement("i",{className:"sui-icon-more","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open function list"))),u.default.createElement("ul",null,i))),u.default.createElement("div",{className:"fui-calcs-editor"},u.default.createElement("textarea",{autoFocus:!0,onKeyPress:function(t){return e.insertChar(t)},onKeyDown:function(t){return e.deleteChar(t)},defaultValue:s,onChange:function(t){e.updateValue(t.target.value)}}))),!1===p.result&&u.default.createElement("span",{className:"sui-error-message"},p.error),u.default.createElement("span",{className:"sui-description"},(0,c.translate)("You can preview your form and check if the formula is generating expected results."))),u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{className:"sui-label"},(0,c.translate)("Formula Preview")),u.default.createElement("div",{className:"fui-calculations-preview",dangerouslySetInnerHTML:{__html:m}})),u.default.createElement(f.default,this.props))}}]),t}(s.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 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(17),d=a(3),m=r(d),h=a(2),b=r(h),y=a(20),v=r(y),g=a(6),E=r(g),w=a(19),O=r(w),P=a(16),k=r(P),j=a(15),x=r(j),N=a(544),C=r(N),T=a(7),S=r(T),F=a(4),D=r(F),M=a(11),A=r(M),V=a(28),R=r(V),U=a(52),I=r(U),L=a(546),B=r(L),q=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return l(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","consent","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:"requireErrorState",value:function(){var e={isValid:!0,error:!1,paymentKey:[]};return e=(0,p.getPlanValidation)(e,this.props.state.payments)}},{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:"conditionNotes",value:function(){var e=!0,t=[];return _.isUndefined(this.props.state.payments)||_.isEmpty(this.props.state.payments)||_.each(this.props.state.payments,function(e){_.isEmpty(e.conditions)||t.push(e)}),this.props.state.payments.length<=t.length&&(e=!1),e}},{key:"render",value:function(){var e=this.props.type,t=this.getZipFields(),a=this.requireErrorState(),r=this.conditionNotes(),n=(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_settings)||(0,p.isTrue)(forminatorData.userPermissions.manage_options);switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(S.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(b.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(D.default,{cols:"12"},c.default.createElement(b.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(D.default,{cols:"12"},c.default.createElement(O.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(D.default,{cols:"12"},c.default.createElement(v.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(D.default,{cols:"12"},c.default.createElement(E.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(m.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(k.default,i({},this.props,{settings:this.props.state,property:"zip_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(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(A.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,c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red"+(!forminatorData.hasStripe&&" sui-active"),style:{display:forminatorData.hasStripe?"none":"block"},"aria-live":"assertive"},!forminatorData.hasStripe&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You have not connected your Stripe account with Forminator. ")," ",n&&(0,p.translate)("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(x.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Payment Mode")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(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(v.default,i({},this.props,{settings:this.props.state,defaultValue:"test",property:"mode",clearOptions:"true"}),c.default.createElement("span",{value:"test"},(0,p.translate)("Test")),c.default.createElement("span",{value:"live"},(0,p.translate)("Live"))),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Charge currency"),property:"currency",description:(0,p.translate)("Choose the currency your users will be charged in."),fieldsize:"240"}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},t)}))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Payment Plan")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Payment plans let you set up options for accepting payments on your site. You can add multiple plans and conditionally process them based on your form data.")),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue "+(this.props.state.payments.length>1&&r&&" sui-active"),style:{display:this.props.state.payments.length>1&&r?"block":"none"},"aria-live":"assertive"},this.props.state.payments.length>1&&r&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note: You'll need to configure conditions on each plan to let Forminator know when to process each of the payment plans below."))))),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error"+(!a.isValid&&" sui-active"),style:{display:a.isValid?"none":"block"},"aria-live":"assertive"},!a.isValid&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("There is an error in one or more of your payment plans. Please review the error and try again."))))),c.default.createElement(B.default,i({},this.props,{errorState:a.paymentKey}))));case"advanced-settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.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(E.default,i({},this.props,{property:"receipt",settings:this.props.state,defaultValue:"true"}),c.default.createElement(m.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(k.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},(0,f.escapeHTML)(e.label)," ",e.value)}))),c.default.createElement(A.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(x.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(b.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(I.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},(0,f.escapeHTML)(e.label))}))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Card Validation")),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),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 behavior set on the Behaviours tab.")))))),c.default.createElement(x.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(E.default,i({},this.props,{settings:this.props.state,property:"billing",default:"false"}),c.default.createElement(m.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(k.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},(0,f.escapeHTML)(e.label))})),c.default.createElement(k.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 email field")),_.map(this.getFieldsByType("email"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"billing_address",label:(0,p.translate)("Billing address (optional)")}),c.default.createElement("option",{value:""},(0,p.translate)("Select an address field")),_.map(this.getFieldsByType("address"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))}))),c.default.createElement(A.default,i({},this.props,{value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Meta Data")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"55px"}},(0,p.translate)("You can send custom meta data to Stripe. This would appear under the MetaData section of every payment. A maximum of 20 meta keys can be sent. The key name must be 20 characters or less, and the mapped data will be truncated to 500 characters as Stripe's requirements.")),c.default.createElement(C.default,i({},this.props,{settings:this.props.state}))));case"meta":return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Meta Data")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("You can send custom meta data to Stripe. This would appear under the MetaData section of every payment. A maximum of 20 meta keys can be sent. The key name must be 20 characters or less, and the mapped data will be truncated to 500 characters as Stripe's requirements."))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("span",{className:"sui-label"},(0,p.translate)("MetaData"))),c.default.createElement(C.default,i({},this.props,{settings:this.props.state})));case"styling":return 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)("Additional CSS Classes")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Stripe automatically adds classes to the container DOM element based on the field state. However, you can customize them here. {{link}}Read more{{/link}}",{components:{link:c.default.createElement("a",{href:"https://stripe.com/docs/stripe-js/reference#element-options",target:"_blank"})}}))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(b.default,i({},this.props,{property:"base_class",defaultValue:"StripeElement",settings:this.props.state,label:(0,p.translate)("Base class")})),c.default.createElement(b.default,i({},this.props,{property:"complete_class",defaultValue:"StripeElement--complete",settings:this.props.state,label:(0,p.translate)("Complete")})),c.default.createElement(b.default,i({},this.props,{property:"empty_class",defaultValue:"StripeElement--empty",settings:this.props.state,label:(0,p.translate)("Empty")})),c.default.createElement(b.default,i({},this.props,{property:"focused_class",defaultValue:"StripeElement--focus",settings:this.props.state,label:(0,p.translate)("Focused")})),c.default.createElement(b.default,i({},this.props,{property:"invalid_class",defaultValue:"StripeElement--invalid",settings:this.props.state,label:(0,p.translate)("Invalid")})),c.default.createElement(b.default,i({},this.props,{property:"autofilled_class",defaultValue:"StripeElement--webkit-autofill",settings:this.props.state,label:(0,p.translate)("Autofilled (Chrome and Safari only)")}))));case"visibility":return c.default.createElement(R.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){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 o(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 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(545),m=r(d),h=function(e){function t(e){o(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.state={options:[].concat(n(a.props.state.options))},a}return i(t,e),u(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(".sui-builder-fields").sortable({start:function(a,r){t&&(e.$el.find(".sui-builder-fields").sortable("refreshPositions"),t=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".sui-builder-fields").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)}},{key:"updateLabel",value:function(e,t){var a=this.state.options;a[e].label=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:"removeOption",value:function(e){var t=this.state.options;t.splice(e,1),this.updateState(t)}},{key:"addOption",value:function(){var e=this.state.options;e.push({label:"",value:"",default:!1}),this.updateState(e)}},{key:"render",value:function(){var e=this,t=this.state.options;return p.default.createElement("div",{className:"sui-box-builder sui-flushed",ref:function(t){return e.el=t}},p.default.createElement("div",{className:"sui-box-builder-body"},p.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,a){return p.default.createElement(m.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel},e.props))}),p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addOption},p.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Custom Meta"))),0===t.length&&p.default.createElement("div",{className:"sui-form-field sui-block-content-center"},p.default.createElement("span",{className:"sui-description"},(0,f.translate)('No custom meta data created yet. Click on "+ Add Custom to create custom meta and map form fields to it.'))))))}}]),t}(c.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 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=a(17),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return o(t,e),l(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:"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=this.state.focus?"fui-on_focus":"",t=(_.isEmpty(this.props.option.label),(0,u.getFields)(this.props.wrappers,["stripe","paypal","upload","section"]));return s.default.createElement("div",{className:"sui-builder-field sui-can_move sui-react "+e},s.default.createElement("div",{className:"sui-field-info"},s.default.createElement("i",{className:"sui-icon-drag sui-align_top","aria-hidden":"true"}),s.default.createElement("div",{className:"sui-builder-field-form"},s.default.createElement("div",{className:"sui-form-field-row"},s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("input",{type:"text",size:"1",placeholder:(0,u.translate)("Label"),value:(0,c.escapeHTML)(this.props.option.label),className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)})),s.default.createElement("select",{className:"fui-select",value:this.props.option.value,onChange:this.updateValue.bind(this)},s.default.createElement("option",{value:""},(0,u.translate)("Select a Field")),_.map(t,function(e,t){return s.default.createElement("option",{value:e.element_id,key:t},(0,c.escapeHTML)(e.label)," | ",e.element_id)}))))),s.default.createElement("div",{className:"sui-field-actions sui-align_top"},s.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:this.removeOption.bind(this)},s.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Delete MetaData")))))}}]),t}(i.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 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(26),d=a(3),m=(r(d),a(7)),h=(r(m),a(4)),b=(r(h),a(547)),y=r(b),v=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addPayment=a.addPayment.bind(a),a.removePayment=a.removePayment.bind(a),a.updatePayment=a.updatePayment.bind(a),a.updateActivePayment=a.updateActivePayment.bind(a),a.state={activePayment:0},a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.props.updateProperty("payments",e)}},{key:"updateActivePayment",value:function(e){this.setState({activePayment:e})}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.payments,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updatePayment",value:function(e,t,a){var r=this.getPropState();r[e][t]=a,this.updateState(r)}},{key:"removePayment",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addPayment",value:function(){var e=this.getPropState(),t=void 0!==this.props.state.payments?this.props.state.payments.length:0,a=t+1;e.push({plan_name:(0,p.translate)("Plan")+" "+a,payment_method:"single",amount_type:"fixed",subscription_amount_type:"fixed",quantity_type:"fixed",quantity:"1",bill_input:"1"}),this.updateState(e),this.props.history.push("/builder/settings/stripe/plan"),this.updateActivePayment(t)}},{key:"render",value:function(){var e=this;return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-box-builder sui-flushed",style:{marginTop:30}},c.default.createElement("div",{className:"sui-box-builder-body"},c.default.createElement("div",{id:"fui-stripe-plans",className:"sui-accordion sui-accordion-block"},_.map(this.props.state.payments,function(t,a){return c.default.createElement(y.default,i({},e.props,{key:a,counter:a,payment:t,removePayment:e.removePayment,updatePayment:e.updatePayment,activePayment:e.state.activePayment,updateActivePayment:e.updateActivePayment,errorStateClass:e.props.errorState.indexOf(a)>-1}))})))),c.default.createElement("button",{className:"sui-button sui-button-ghost",accessKey:"a",onClick:this.addPayment},c.default.createElement("span",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Another Plan")))}}]),t}(u.Component);t.default=(0,f.withRouter)(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 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(26),d=a(28),m=r(d),h=a(548),b=r(h),y=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.removePayment=a.removePayment.bind(a),a.updatePayment=a.updatePayment.bind(a),a.updateProperty=a.updateProperty.bind(a),a}return l(t,e),s(t,[{key:"updatePayment",value:function(e,t,a){this.props.updatePayment(e,t,a)}},{key:"updateProperty",value:function(e,t){this.props.payment[e]=t,this.forceUpdate()}},{key:"toggleState",value:function(){this.props.history.push("/builder/settings/stripe/plan");var e=this.props.counter;this.props.activePayment===this.props.counter&&(e=-1),this.props.updateActivePayment(e)}},{key:"removePayment",value:function(){this.props.removePayment(this.props.counter)}},{key:"showPlanLabel",value:function(){if("single"===this.props.payment.payment_method){var e=(0,p.translate)("Fixed");return"variable"===this.props.payment.amount_type&&(e=(0,p.translate)("Variable")),(0,p.translate)("One Time")+" ("+e+")"}if("subscription"===this.props.payment.payment_method)return(0,p.translate)("Subscription")}},{key:"conditionMarkup",value:function(){var e=(0,p.getFields)(this.props.wrappers),t="hide"===this.props.payment.condition_action?(0,p.translate)("Hide"):(0,p.translate)("Show");if(!_.isUndefined(this.props.payment.conditions)){var a=this.props.payment.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,o=(0,p.getRuleLabel)(a.rule,r.field_type),l=(0,p.getConditionLabel)(r[0],a),i=this.props.payment.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,p.translate)("more condition(s)")),c.default.createElement("span",{className:"fui-has_conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,p.translate)("if")+" "+n+" "+o+" "+l+" "+s},c.default.createElement("span",{className:"sui-icon-link sui-sm","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=this,t="plan-"+this.props.counter,a=this.conditionMarkup();return c.default.createElement("div",{className:"sui-accordion-item"+(this.props.counter===this.props.activePayment?" sui-accordion-item--open":"")+(this.props.errorStateClass?" validation-error":"")},c.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},c.default.createElement("div",{className:"sui-accordion-item-title sui-trim-title"},c.default.createElement("span",{className:"sui-trim-text"},this.props.payment.plan_name)),c.default.createElement("div",{className:"sui-accordion-item-tag sui-trim-title"},c.default.createElement("span",{className:"sui-tag sui-tag-sm"},this.showPlanLabel())),c.default.createElement("div",{className:"sui-accordion-col-auto"},this.props.state.payments.length>1&&c.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:function(){return e.removePayment()}},c.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Remove This Plan"))),c.default.createElement("button",{id:"forminator-field-"+t,className:"sui-button-icon sui-accordion-open-indicator","aria-controls":"forminator-field-"+t+"-content","aria-expanded":this.props.counter===this.props.activePayment,onClick:function(){return e.toggleState()}},c.default.createElement("span",{className:"sui-icon-chevron-down","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Open Plan Settings"))),!_.isUndefined(this.props.payment.conditions)&&this.props.payment.conditions.length>0&&c.default.createElement(c.default.Fragment,null,a))),c.default.createElement("div",{role:"region",id:"forminator-field-"+t+"-content",className:"sui-accordion-item-body","aria-labelledby":"forminator-field-"+t,"aria-hidden":this.props.counter!==this.props.activePayment},c.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},c.default.createElement("div",{role:"tablist",className:"sui-tabs-menu"},c.default.createElement(f.NavLink,{to:"/builder/settings/stripe/plan",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,p.translate)("Plan setup")),c.default.createElement(f.NavLink,{to:"/builder/settings/stripe/conditions",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,p.translate)("Conditions"))),c.default.createElement(f.Route,{exact:!0,path:"/builder/settings",render:function(){return c.default.createElement(f.Redirect,{to:"/builder/settings/stripe/plan"})}}),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-content active",role:"tabpanel"},c.default.createElement(f.Route,{path:"/builder/settings/stripe/plan",render:function(){return c.default.createElement(b.default,i({},e.props,{payment:e.props.payment,updatePayment:e.updatePayment}))}}),c.default.createElement(f.Route,{path:"/builder/settings/stripe/conditions",render:function(){return c.default.createElement(m.default,i({},e.props,{state:e.props.payment,updateProperty:e.updateProperty,updatePayment:e.updatePayment,isPayment:!0}))}}))))))}}]),t}(u.Component);t.default=(0,f.withRouter)(y)},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(3),d=r(f),m=a(7),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(6),_=r(E),w=a(549),O=r(w),P=a(550),k=r(P),j=a(392),x=r(j),N=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updatePayment=a.updatePayment.bind(a),a}return l(t,e),s(t,[{key:"updatePayment",value:function(e,t){this.props.updatePayment(this.props.counter,e,t)}},{key:"updateState",value:function(e){this.props.updateProperty("payments",e)}},{key:"render",value:function(){var e=forminatorData.isPro?(0,p.translate)("The Stripe Subscription Add-ons is required to use this feature. Install it from the Add-ons page."):(0,p.translate)("The Stripe Subscription Add-on is required to use this feature. Upgrade to Pro to install the add-on."),t=forminatorData.isPro?(0,p.translate)("Subscription"):(0,p.translate)("Subscription {{span}}Pro{{/span}}",{components:{span:c.default.createElement("span",{className:"sui-tag sui-tag-pro"})}});return c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.payment,label:(0,p.translate)("Plan name"),placeholder:(0,p.translate)("Plan"),description:(0,p.translate)("This will be displayed on the submissions as well as the Stripe dashboard."),property:"plan_name",isRequired:"true",requiredError:(0,p.translate)("Plan Name is required."),updateProperty:this.updatePayment})))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.payment,property:"payment_method",default:"single",label:(0,p.translate)("Payment type"),updateProperty:this.updatePayment}),c.default.createElement(d.default,i({},this.props,{value:"single",label:(0,p.translate)("One Time"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,i({},this.props,{payment:this.props.payment,updatePayment:this.updatePayment}))),c.default.createElement(d.default,i({},this.props,{value:"subscription",label:t,boxClass:"sui-tab-boxed"}),forminatorData.hasStripePro&&forminatorData.isPro&&c.default.createElement(k.default,i({},this.props,{payment:this.props.payment,updatePayment:this.updatePayment})),(!forminatorData.hasStripePro||!forminatorData.isPro)&&c.default.createElement(x.default,i({},this.props,{text:e,addonUrl:"https://wpmudev.com/project/forminator-pro/?coupon=FORMINATOR-SUBSCRIPTIONS&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_stripe-addon"})))))))}}]),t}(u.Component);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=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(17),d=a(3),m=r(d),h=a(2),b=r(h),y=a(6),v=r(y),g=a(16),E=r(g),w=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.updatePayment=a.updatePayment.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state.payments[this.props.counter][e]=t,this.forceUpdate()}},{key:"updatePayment",value:function(e,t){this.props.updatePayment(e,t)}},{key:"getDisabledFields",value:function(){var e=["calculation","currency","number","slider"],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,p.getFields)(this.props.wrappers,e)}},{key:"render",value:function(){var e=(0,p.translate)("In %s",{args:[this.props.state.currency]}),t=this.getFields();return c.default.createElement(v.default,i({},this.props,{property:"amount_type",settings:this.props.payment,updateProperty:this.updatePayment,defaultValue:"fixed",wrapperClass:"fui-plan-amount",label:(0,p.translate)("Plan amount"),description:(0,p.translate)("Enter an amount or select a value from a form field in the Variable tab.")}),c.default.createElement(m.default,i({},this.props,{value:"fixed",label:(0,p.translate)("Fixed")}),c.default.createElement(b.default,i({},this.props,{type:"number",property:"amount",settings:this.props.payment,updateProperty:this.updatePayment,fieldClass:"fui-fixed-plan",inputClass:"sui-field-has-suffix",suffix:this.props.state.currency,placeholder:(0,p.translate)("E.g., 20.00"),isRequired:"true",requiredError:(0,p.translate)("Enter an amount or choose a form field.")}))),c.default.createElement(m.default,i({},this.props,{value:"variable",label:(0,p.translate)("Variable"),boxClass:""}),c.default.createElement(E.default,i({},this.props,{settings:this.props.payment,updateProperty:this.updatePayment,property:"variable",note:e}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label))}))))}}]),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 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(17),d=a(3),m=r(d),h=a(2),b=r(h),y=a(6),v=r(y),g=a(16),E=r(g),w=a(7),O=r(w),P=a(4),k=r(P),j=a(19),x=(r(j),a(41)),N=r(x),C=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.updatePayment=a.updatePayment.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state.payments[this.props.counter][e]=t,this.forceUpdate()}},{key:"updatePayment",value:function(e,t){this.props.updatePayment(e,t)}},{key:"getDisabledFields",value:function(){var e=["calculation","currency","number","slider"],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,p.getFields)(this.props.wrappers,e)}},{key:"render",value:function(){var e=(0,p.translate)("In %s",{args:[this.props.state.currency]}),t=this.getFields(),a=_.isUndefined(this.props.payment.bill_input)?1:this.props.payment.bill_input;return c.default.createElement(c.default.Fragment,null,c.default.createElement(v.default,i({},this.props,{property:"subscription_amount_type",settings:this.props.payment,updateProperty:this.updatePayment,wrapperClass:"fui-plan-amount",default:"fixed",label:(0,p.translate)("Plan amount"),description:(0,p.translate)("Enter an amount or select a value from a form field in the Variable tab.")}),c.default.createElement(m.default,i({},this.props,{value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-border-frame"}),c.default.createElement(b.default,i({},this.props,{property:"subscription_amount",settings:this.props.payment,updateProperty:this.updatePayment,type:"number",placeholder:(0,p.translate)("E.g. 20.00"),suffix:this.props.state.currency,fieldClass:"fui-fixed-plan",inputClass:"sui-field-has-suffix",label:(0,p.translate)("Amount"),isRequired:"true",requiredError:(0,p.translate)("Enter an amount or choose a form field.")}))),c.default.createElement(m.default,i({},this.props,{value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-border-frame"}),c.default.createElement(E.default,i({},this.props,{settings:this.props.payment,updateProperty:this.updatePayment,property:"subscription_variable",label:(0,p.translate)("Choose form field"),note:e}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label))})))),c.default.createElement(v.default,i({},this.props,{property:"quantity_type",settings:this.props.payment,updateProperty:this.updatePayment,default:"fixed",label:(0,p.translate)("Quantity"),description:(0,p.translate)("Enter the quantity or let your users set the quantity in a form field.")}),c.default.createElement(m.default,i({},this.props,{value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-border-frame"}),c.default.createElement(b.default,i({},this.props,{property:"quantity",settings:this.props.payment,updateProperty:this.updatePayment,type:"number",defaultValue:"1",placeholder:(0,p.translate)("E.g., 1"),fieldClass:"sui-input-md",label:(0,p.translate)("Quantity"),isRequired:"true",requiredError:(0,p.translate)("Please enter a quantity or select a form field.")}))),c.default.createElement(m.default,i({},this.props,{value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-border-frame"}),c.default.createElement(E.default,i({},this.props,{settings:this.props.payment,updateProperty:this.updatePayment,property:"variable_quantity",label:(0,p.translate)("Choose form field"),note:e}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label))})))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Bill every")," ",c.default.createElement("span",{className:"sui-error","aria-hidden":"true"},"*")),c.default.createElement(O.default,null,c.default.createElement(k.default,{cols:"6"},c.default.createElement(b.default,i({},this.props,{property:"bill_input",settings:this.props.payment,updateProperty:this.updatePayment,type:"number",defaultValue:"1",placeholder:(0,p.translate)("E.g., 1"),isRequired:"true",requiredError:(0,p.translate)("Duration cannot be empty."),fieldClass:parseInt(a)<=0?" sui-form-field-error":""}))),c.default.createElement(k.default,{cols:"6"},c.default.createElement(E.default,i({},this.props,{property:"bill_period",settings:this.props.payment,updateProperty:this.updatePayment,defaultValue:"years"}),c.default.createElement("option",{value:"day"},(0,p.translate)("Day(s)")),c.default.createElement("option",{value:"week"},(0,p.translate)("Week(s)")),c.default.createElement("option",{value:"month"},(0,p.translate)("Month(s)")),c.default.createElement("option",{value:"year"},(0,p.translate)("Year(s)")))))),c.default.createElement("div",{style:{marginBottom:this.props.payment.allow_trial?20:0}},c.default.createElement(N.default,i({},this.props,{property:"allow_trial",settings:this.props.payment,fieldId:"allow-trial"+this.props.counter,updateProperty:this.updatePayment,label:(0,p.translate)("Allow Trial Period"),tooltip:(0,p.translate)("Check this option to offer a limited-time free trial for this plan"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),this.props.payment.allow_trial&&c.default.createElement(b.default,i({},this.props,{property:"trial_days",settings:this.props.payment,updateProperty:this.updatePayment,inputClass:"sui-field-has-suffix",label:(0,p.translate)("Trial Duration"),description:(0,p.translate)("Enter the number of days that users will try your product for free before they start paying."),type:"number",defaultValue:"14",placeholder:(0,p.translate)("E.g., 14"),suffix:(0,p.translate)("Days")})))}}]),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 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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(15),P=r(O),k=a(16),j=r(k),x=a(43),N=r(x),C=a(206),T=r(C),S=a(85),F=r(S),D=a(6),M=r(D),A=a(11),V=r(A),R=a(3),U=r(R),I=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=this.props.type,t=_.isUndefined(this.props.state.limit_min)?1:this.props.state.limit_min,a=_.isUndefined(this.props.state.limit_max)?150:this.props.state.limit_max,r=_.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(N.default,this.props),c.default.createElement(P.default,{label:(0,p.translate)("Currency"),labelDark:!0,description:(0,p.translate)("Choose the currency to display on the field. If you are going to collect payments based on this field, it is recommended to keep this currency same as your charge currency to avoid any confusions."),sidebar:!1},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"currency",hasSearch:!0}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},e[0])}))),c.default.createElement(P.default,{label:(0,p.translate)("Limit"),labelDark:!0,description:(0,p.translate)("Restrict the value that your users can enter in this field within a custom range."),descriptionSpacing:20,sidebar:!1},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)("Min"),fieldClass:"sui-input-sm"+(parseInt(t)>=parseInt(a)?" sui-form-field-error":"")})),c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_max",label:(0,p.translate)("Max"),fieldClass:"sui-input-sm"+(parseInt(t)>=parseInt(a)?" sui-form-field-error":"")}))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(M.default,i({},this.props,{property:"limit_message",settings:this.props.state,default:"false",label:(0,p.translate)("Error Messages")}),c.default.createElement(V.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(U.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"limit_min_message",type:"text",label:(0,p.translate)("When number is smaller than the min limit"),placeholder:(0,p.translate)("E.g. Please enter a number greater than 0.")})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_max_message",label:(0,p.translate)("When number is greater than the max limit"),placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000.")})))))),c.default.createElement(P.default,{label:(0,p.translate)("Formatting"),labelDark:!0,description:(0,p.translate)("Choose how do you want to format the value of this field."),descriptionSpacing:20,sidebar:!1},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"1234567.89",label:(0,p.translate)("Separators"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),"custom"!==r&&c.default.createElement(g.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))),"custom"===r&&c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("div",{className:"sui-form-field-inline",style:{marginBottom:"5px"}},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator"),fieldClass:"sui-input-md"})))),"custom"===r&&c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(j.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))))),c.default.createElement(F.default,this.props));case"calculations":return c.default.createElement(T.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=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 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(28),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(16),O=r(w),P=a(43),k=r(P),j=a(205),x=r(j),N=a(3),C=(r(N),a(6)),T=(r(C),a(11)),S=(r(T),a(30)),F=r(S),D=a(15),M=r(D),A=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(){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(F.default,i({},this.props,{settings:this.props.state,extraId:"password",label:(0,p.translate)("Description (optional)"),property:"description",hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright"})))),"registration"===this.props.formType&&c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},c.default.createElement(x.default,i({},this.props,{label:(0,p.translate)("Confirm Password"),property:"confirm-password",settings:this.props.state}),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)("Confirm password"),property:"confirm-password-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)("Confirm new password"),property:"confirm-password-placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(F.default,i({},this.props,{settings:this.props.state,extraId:"confirm-password",label:(0,p.translate)("Description (optional)"),property:"confirm-password-description",hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright"}))))))));case"settings":return c.default.createElement(c.default.Fragment,null,"registration"===this.props.formType&&c.default.createElement(M.default,{label:(0,p.translate)("Minimum password strength"),labelDark:!0,description:(0,p.translate)("Choose a minimum password strength required to force your users to sign up with a password stronger than the minimum requirement."),sidebar:!1},c.default.createElement("div",{style:{marginTop:"10px",marginBottom:"0"}},c.default.createElement(O.default,i({property:"strength",settings:this.props.state},this.props,{defaultValue:"none",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"none"},(0,p.translate)("None")),c.default.createElement("option",{value:"short"},(0,p.translate)("Short")),c.default.createElement("option",{value:"bad"},(0,p.translate)("Bad")),c.default.createElement("option",{value:"good"},(0,p.translate)("Good")),c.default.createElement("option",{value:"strong"},(0,p.translate)("Strong")))),"none"!==this.props.state.strength&&c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Error message"),type:"text",className:"sui-form-control",property:"strength_validation_message",description:(0,p.translate)("This is displayed when the user's password is weaker than the minimum requirement.")})))),c.default.createElement(k.default,this.props),(0,p.isTrue)(this.props.state["confirm-password"])&&c.default.createElement(M.default,{label:(0,p.translate)("Password validation error message"),labelDark:!0,description:(0,p.translate)("Enter an error message to be displayed when the passwords do not match."),sidebar:!1},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,type:"text",placeholder:(0,p.translate)("Passwords do not match. Please try again."),property:"validation_message"}))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=A},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(17),d=a(3),m=r(d),h=a(2),b=r(h),y=a(20),v=r(y),g=a(6),E=r(g),w=a(16),O=r(w),P=a(19),k=r(P),j=a(15),x=r(j),N=a(28),C=r(N),T=a(7),S=r(T),F=a(4),D=r(F),M=a(41),A=r(M),V=a(11),R=r(V),U=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:"getDisabledFields",value:function(){var e=["calculation","currency","number","slider"],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,p.getFields)(this.props.wrappers,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:"isCountryRequired",value:function(e){var t=void 0;return this.props.wrappers.map(function(a){a.fields.map(function(a){a.element_id===e&&(t=a.address_country_required)})}),(0,p.isTrue)(t)}},{key:"render",value:function(){for(var e=(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_settings)||(0,p.isTrue)(forminatorData.userPermissions.manage_options),t=this.props.type,a=this.props.state.layout,r=(this.props.state.card,(0,p.translate)("In %s",{args:[this.props.state.currency]})),n=this.getFields(),o=[],l=25;l<56;l++)o.push(l);switch(t){case"settings":return c.default.createElement(c.default.Fragment,null,!forminatorData.hasPayPal&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You have not connected your PayPal account with Forminator. ")," ",e&&(0,p.translate)("Connect your PayPal 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(v.default,i({},this.props,{settings:this.props.state,defaultValue:"sandbox",label:(0,p.translate)("Mode of payment"),property:"mode",clearOptions:"true",description:(0,p.translate)("We recommend using sandbox mode to ensure the payments are working as expected and when you are ready to start collecting live payments, switch to the {{strong}}Live{{/strong}} payments mode.",{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement("span",{value:"sandbox"},(0,p.translate)("Sandbox")),c.default.createElement("span",{value:"live"},(0,p.translate)("Live"))),c.default.createElement(O.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."),fieldsize:"240"}),_.map(forminatorData.ppCurrencies,function(e,t){return c.default.createElement("option",{value:t,key:t},t)})),c.default.createElement(E.default,i({},this.props,{property:"amount_type",settings:this.props.state,default:"fixed",label:(0,p.translate)("Payment amount")}),c.default.createElement(m.default,i({},this.props,{settings:this.props.state,value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-tab-boxed"}),c.default.createElement(b.default,i({},this.props,{type:"number",property:"amount",settings:this.props.state,inputClass:"sui-field-has-suffix",label:(0,p.translate)("Fixed amount"),suffix:this.props.state.currency,placeholder:(0,p.translate)("E.g. 20.00"),isRequired:"true",requiredError:(0,p.translate)("Enter an amount or choose a form field.")}))),c.default.createElement(m.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"},r)),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,property:"variable",note:r,noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(n,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(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"customize":return c.default.createElement(c.default.Fragment,null,c.default.createElement(O.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),property:"label",description:(0,p.translate)("Choose a label for your PayPal button. Note that PayPal checkout doesn't allow a custom label for the PayPal button. You can only choose from the pre-defined labels."),fieldsize:"240"}),c.default.createElement("option",{value:"checkout"},(0,p.translate)("PayPal Checkout")),c.default.createElement("option",{value:"pay"},(0,p.translate)("Pay with PayPal")),c.default.createElement("option",{value:"paypal"},(0,p.translate)("PayPal"))),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"color",elementClass:"sui-select-colors",fieldsize:"240",label:(0,p.translate)("Color"),description:(0,p.translate)("PayPal recommends using the Gold button since it is widely known as their brand color. However, if that does not suit your theme, you can choose a different color.")}),c.default.createElement("option",{value:"gold","data-color":"#FFC439"},(0,p.translate)("Gold")),c.default.createElement("option",{value:"blue","data-color":"#009CDE"},(0,p.translate)("Blue")),c.default.createElement("option",{value:"silver","data-color":"#EEEEEE"},(0,p.translate)("Silver")),c.default.createElement("option",{value:"white","data-color":"#FFFFFF"},(0,p.translate)("White")),c.default.createElement("option",{value:"black","data-color":"#2C2E2F"},(0,p.translate)("Black"))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Width")),c.default.createElement("div",{style:{width:"100%",maxWidth:"100px",display:"inline-block"}},c.default.createElement(b.default,i({},this.props,{type:"number",property:"width",minValue:"150",maxValue:"750",settings:this.props.state,placeholder:(0,p.translate)("E.g. 250"),simple:!0}))),c.default.createElement("span",{className:"sui-field-suffix"},(0,p.translate)("px")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the width of PayPal Smart Buttons. It can be anywhere between 150px to 750px. Leave this empty if you want the buttons to take the full width of the form up to the 750px limit."))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Height")),c.default.createElement("div",{style:{width:"100%",maxWidth:"100px",display:"inline-block",verticalAlign:"middle"}},c.default.createElement(O.default,i({},this.props,{settings:this.props.state,property:"height",noWrapper:!0}),o.map(function(e,t){return c.default.createElement("option",{value:e,key:t},e)}))),c.default.createElement("span",{className:"sui-field-suffix"},(0,p.translate)("px")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the height of PayPal Smart Buttons. It can be anywhere between 25px to 55px"))),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"rect",label:(0,p.translate)("Shape"),property:"shape",clearOptions:"true",description:(0,p.translate)("Choose your preferred shape from your PayPal Smart Buttons.")}),c.default.createElement("span",{value:"rect"},(0,p.translate)("Rectangular")),c.default.createElement("span",{value:"pill"},(0,p.translate)("Pill"))),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"vertical",label:(0,p.translate)("Layout"),property:"layout",clearOptions:"true",description:(0,p.translate)("We recommend the vertical layout as it allows additional payment methods such as Credit Cards. You can read about the layout options {{link}}here{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://developer.paypal.com/docs/checkout/integration-features/customize-button/#layout",target:"_blank"})}})}),c.default.createElement("span",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("span",{value:"horizontal"},(0,p.translate)("Horizontal"))),"vertical"!==a&&c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"true",label:(0,p.translate)("Tagline"),property:"tagline",clearOptions:"true",description:(0,p.translate)('Choose whether to show the default PayPal tagline {{strong}}"The safer, easier way to pay"{{/strong}} below your PayPal button.',{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement("span",{value:"true"},(0,p.translate)("Show")),c.default.createElement("span",{value:"false"},(0,p.translate)("Hide"))));case"advanced-settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Disable Funding Sources")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("PayPal automatically adds additional funding sources to the PayPal checkout for visitors from supported countries. However, you can choose to disable funding sources which shouldn't be displayed to visitors.")),c.default.createElement(S.default,null,c.default.createElement(D.default,{cols:"6"},c.default.createElement(A.default,i({},this.props,{property:"card",settings:this.props.state,label:(0,p.translate)("Credit or debit cards"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"credit",settings:this.props.state,label:(0,p.translate)("PayPal Credit"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"bancontact",settings:this.props.state,label:(0,p.translate)("Bancontact"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"blik",settings:this.props.state,label:(0,p.translate)("BLIK"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"eps",settings:this.props.state,label:(0,p.translate)("eps"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"giropay",settings:this.props.state,label:(0,p.translate)("giropay"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"ideal",settings:this.props.state,label:(0,p.translate)("iDEAL"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(D.default,{cols:"6"},c.default.createElement(A.default,i({},this.props,{property:"mercadopago",settings:this.props.state,label:(0,p.translate)("Mercado Pago"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"mybank",settings:this.props.state,label:(0,p.translate)("MyBank"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"p24",settings:this.props.state,label:(0,p.translate)("Przelewy24"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"sepa",settings:this.props.state,label:(0,p.translate)("SEPA-Lastschrift"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"sofort",settings:this.props.state,label:(0,p.translate)("Sofort"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(A.default,i({},this.props,{property:"venmo",settings:this.props.state,label:(0,p.translate)("Venmo"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Pre-fill Billing Details")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Pre-fill the payer's billing info collected on your form on the Debit or Credit Card checkout, so the payer doesn't have to enter those details again.")),c.default.createElement(S.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(E.default,i({},this.props,{property:"billing-details",settings:this.props.state,default:"false"}),c.default.createElement(m.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"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Customer name (optional)")),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,property:"billing-name",noWrapper:!0}),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},(0,f.escapeHTML)(e.label))}))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Customer email address (optional)")),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,property:"billing-email",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select an email field")),_.map(this.getFieldsByType("email"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))}))),c.default.createElement("div",{className:"sui-form-field",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Billing address (optional)")),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,property:"billing-address",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select an address field")),_.map(this.getFieldsByType("address"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))}))),!_.isEmpty(this.props.state["billing-address"])&&!this.isCountryRequired(this.props.state["billing-address"])&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Ensure the Country option is enabled and required for {{strong}}%(fieldName)s{{/strong}} to process Paypal’s transaction successfully.",{args:{fieldName:this.props.state["billing-address"]},components:{strong:c.default.createElement("strong",null)}})))))),c.default.createElement(R.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Shipping Address")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("If you are selling a product that doesn't need to be shipped, you can choose to disable and hide the shipping address fields from the PayPal payment page.")),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,property:"shipping_address",defaultValue:"disable",noWrapper:!0}),c.default.createElement("div",{value:"enable"},(0,p.translate)("Enable")),c.default.createElement("div",{value:"disable"},(0,p.translate)("Disable")))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Language")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, PayPal detects the language for the visitors based on their geolocation and browser preferences. It is recommended to pass this parameter only if you need the PayPal buttons to render in the same language as the rest of your site. {{link}}Supported locale codes.{{/link}}",{components:{link:c.default.createElement("a",{href:"https://developer.paypal.com/docs/api/reference/locale-codes/#supported-locale-codes",target:"_blank"})}})),c.default.createElement(S.default,null,c.default.createElement(D.default,{cols:"6"},c.default.createElement(b.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("Eg. en_US"),property:"locale"}))))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Debug Mode")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("PayPal debug mode helps troubleshoot any issues. However, it's recommended to disable this in production as it causes a significant increase in the script size and performance decrease.")),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,property:"debug_mode",defaultValue:"disable",noWrapper:!0}),c.default.createElement("div",{value:"disable"},(0,p.translate)("Disable")),c.default.createElement("div",{value:"enable"},(0,p.translate)("Enable")))));case"visibility":return c.default.createElement(C.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 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(7),d=r(f),m=a(4),h=r(m),b=a(25),y=r(b),v=a(2),g=r(v),E=a(30),w=r(E),O=a(24),P=r(O),k=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=this.props.type,t={};switch(_.assign(t,forminatorData.variables),e){case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},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(P.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Hide label"),property:"hide-label"})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{extraId:"html-type",settings:this.props.state,boxClass:"sui-tab-boxed",property:"value",disableMiscData:!1,editorOptions:t,enableAllFormFields:!1,enableAllNonFormFields:!1,allowRepeater:!1,excludeSubFields:!0,enableFormData:!0,enablePostData:!1,enableUpload:"true",allowButtonOnclick:"true",enableParentForm:"true",mainOptionsLabel:(0,p.translate)("Site Information"),mainOptions:{site_title:(0,p.translate)("Site Title"),site_url:(0,p.translate)("Site URL"),date_dmy:(0,p.translate)("Date")},paymentOptions:forminatorData.payment_variables,label:(0,p.translate)("Value")})))));case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=k},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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(25),v=r(y),g=a(52),E=r(g),w=a(20),O=r(w),P=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:"getDisabledFields",value:function(){var e=["captcha","product","page-break","total","paypal","password"];return!_.isUndefined(this.props.enablePostData)&&this.props.enablePostData&&!_.isUndefined(this.props.enableUpload)&&this.props.enableUpload&&(e=["captcha","product","page-break","total","stripe","paypal","password"]),e}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,p.getFields)(forminatorData.parentFormFields,e,void 0,void 0,!0)}},{key:"render",value:function(){switch(this.props.type){case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"12"},c.default.createElement(O.default,i({},this.props,{settings:this.props.state,property:"input_label",label:(0,p.translate)("Hide or show input labels")}),c.default.createElement("span",{value:"true"},(0,p.translate)("Show")),c.default.createElement("span",{value:"false"},(0,p.translate)("Hide"))))),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"12"},c.default.createElement(E.default,i({},this.props,{settings:this.props.state,property:"exclusion-field",type:"textarea",placeholder:(0,p.translate)("Enter form fields to remove from PDF."),boxClass:"sui-tab-boxed",label:(0,p.translate)("Form field exclusion"),description:(0,p.translate)("Use the input option to remove specific field(s) from your PDF file."),customClass:"sui-variables-select-text"}),_.map(this.getFields(),function(e,t){return c.default.createElement("option",{key:t,value:"{"+e.element_id+"}","data-content":e.element_id},(0,f.escapeHTML)(e.label))})))));case"styling":return c.default.createElement(v.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,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(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 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(7),m=r(d),h=a(4),b=r(h),y=a(25),v=r(y),g=a(2),E=r(g),_=a(30),w=r(_),O=a(24),P=r(O),k=a(52),j=r(k),x=a(205),N=r(x),C=a(17),T=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.multiFields=[{slug:"payment_amount",label:(0,f.translate)("Price")},{slug:"quantity",label:(0,f.translate)("Quantity")},{slug:"payment_type",label:(0,f.translate)("Payment Type")},{slug:"payment_method",label:(0,f.translate)("Payment Method")},{slug:"transaction_id",label:(0,f.translate)("Transaction/Payment ID")},{slug:"payment_status",label:(0,f.translate)("Payment Status")},{slug:"subtotal",label:(0,f.translate)("Subtotal")},{slug:"tax",label:(0,f.translate)("Tax")},{slug:"total_amount",label:(0,f.translate)("Total Amount")}],a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"getNameOptions",value:function(){var e=[];return(0,f.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","date","time","email","consent","gdprcheckbox","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"render",value:function(){var e=this;switch(this.props.type){case"settings":return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{id:"pdf-payment-modal",className:"sui-accordion sui-accordion-flushed fui-modal-accordion-flushed"},p.default.createElement(N.default,s({},this.props,{label:(0,f.translate)("Product name"),property:"product_name",settings:this.props.state,required:this.props.state.product_name_required}),p.default.createElement(p.default.Fragment,null,p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(j.default,s({},this.props,{settings:this.props.state,type:"input",property:"product_label",placeholder:(0,f.translate)("Enter Label"),defaultValue:(0,f.translate)("Product Name"),label:(0,f.translate)("Label")}),this.getNameOptions().map(function(e,t){return p.default.createElement("option",{key:t,value:e.value},(0,C.escapeHTML)(e.label))})),p.default.createElement(P.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hide label"),property:"hide-label"})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(w.default,s({},this.props,{extraId:"html-type",settings:this.props.state,boxClass:"sui-tab-boxed",property:"product_value",disableMiscData:!0,allowRepeater:!1,excludeSubFields:!0,enableFormData:!0,enablePostData:!1,enableUpload:"true",allowButtonOnclick:"true",enableParentForm:"true",mainOptions:[],label:(0,f.translate)("Value"),selectLabel:(0,f.translate)("Insert dynamic data"),tooltipLabel:(0,f.translate)("Add dynamic data")})))))),this.multiFields.map(function(t,a){return p.default.createElement(N.default,s({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),p.default.createElement(p.default.Fragment,null,p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(E.default,s({},e.props,{settings:e.props.state,label:(0,f.translate)("Label"),placeholder:(0,f.translate)("Enter label"),defaultValue:t.label,property:t.slug+"_label"}))))))})));case"styling":return p.default.createElement(v.default,this.props);default:return p.default.createElement("div",null)}}}]),t}(c.Component);t.default=T},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(17),d=a(3),m=r(d),h=a(7),b=r(h),y=a(4),v=r(y),g=a(2),E=r(g),w=a(24),O=r(w),P=a(19),k=r(P),j=a(20),x=r(j),N=a(5),C=r(N),T=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=(0,p.getForminatorField)(a.props.state);return a.settings=r.settings,a}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=_.map(this.settings,function(t,a){switch(t.type){case"Toggle":return c.default.createElement(v.default,{cols:t.size,customClass:t.className,key:a},c.default.createElement(O.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default})));case"Text":return c.default.createElement(v.default,{cols:t.size,key:a},c.default.createElement(E.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default})));case"Color":return c.default.createElement(v.default,{cols:t.size,key:a},c.default.createElement(C.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default})));case"Select":return c.default.createElement(v.default,{cols:t.size,key:a},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default}),_.map(t.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))})));case"Radio":return c.default.createElement(v.default,{cols:t.size,key:a},c.default.createElement(x.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default}),_.map(t.values,function(e,t){return c.default.createElement(m.default,{value:e.value,key:t},(0,f.escapeHTML)(e.label))})));default:return c.default.createElement("div",null,(0,p.translate)("Unknown setting"))}});return c.default.createElement("div",{className:"forminator-advanced-settings"},c.default.createElement(b.default,null,t))}}]),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,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(60),f=r(p),d=a(61),m=r(d),h=function(e){function t(e){n(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.previewLoaded=a.previewLoaded.bind(a),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$body=jQuery(this.body),this.mounted=!0,this.load(),jQuery(document).off("after.load.forminator"),jQuery(document).on("after.load.forminator",this.previewLoaded)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,(0,c.hasFieldType)("postdata",this.props.wrappers)&&(window.jQuery=window.jQueryFormi)}},{key:"previewLoaded",value:function(){this.$body.find(".sui-notice-loading").remove()}},{key:"load",value:function(){var e={wrappers:this.props.wrappers,settings:this.props.settings},t={id:this.props.id,action:"forminator_load_form",type:"forminator_forms",nonce:forminatorData.previewNonce,render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,{closeType:"icon",closeModal:this.closeModal},u.default.createElement(m.default,{label:(0,c.translate)("Preview")})),u.default.createElement("div",{className:"sui-box-body",ref:function(t){return e.body=t}},u.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-loading sui-active",style:{display:"block"},"aria-live":"assertive"},u.default.createElement("div",{className:"sui-notice-content"},u.default.createElement("div",{className:"sui-notice-message"},u.default.createElement("span",{className:"sui-notice-icon sui-icon-loader sui-loading","aria-hidden":"true"}),u.default.createElement("p",null,(0,c.translate)("Loading preview…"))))),u.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),t}(s.Component);t.default=h},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 o(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 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(26),d=a(1),m=a(28),h=r(m),b=a(25),y=r(b),v=a(7),g=r(v),E=a(4),_=r(E),w=a(2),O=r(w),P=a(60),k=r(P),j=a(61),x=r(j),N=a(84),C=r(N),T=a(63),S=r(T),F=function(e){function t(e){o(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.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.state=a.props.settings.submitData||{},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(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){var e=this;return p.default.createElement(p.default.Fragment,null,p.default.createElement(k.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(x.default,{label:(0,d.translate)("Edit Field"),tag:(0,d.translate)("Submit")})),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{className:"sui-tabs-menu"},p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Labels")),p.default.createElement(f.NavLink,{to:"/builder/visibility/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Visibility")),p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Styling"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){return p.default.createElement(f.Redirect,{to:"/builder/labels"})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(g.default,null,p.default.createElement(_.default,{cols:"12"},p.default.createElement(O.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Button text"),placeholder:(0,d.translate)("Enter text"),property:"custom-submit-text",updateProperty:e.updateProperty})))),p.default.createElement(g.default,null,p.default.createElement(_.default,{cols:"12"},p.default.createElement(O.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Error message"),placeholder:(0,d.translate)("Enter message"),property:"custom-invalid-form-message",updateProperty:e.updateProperty})))))}}),p.default.createElement(f.Route,{path:"/builder/visibility",render:function(){return p.default.createElement(h.default,s({},e.props,{updateProperty:e.updateProperty,settings:e.state,state:e.state}))}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(y.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),p.default.createElement(C.default,{alignment:"separated"},p.default.createElement(S.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),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"}))))}}]),t}(c.Component);t.default=F},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.closeModal=a.props.modal.modalProps.closeModal.bind(a),a}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"+(forminatorData.showBranding?" sui-spacing-bottom--30":" sui-spacing-bottom--60")},s.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),s.default.createElement("h3",{className:"sui-box-title sui-lg",id:"dialogTitle"},(0,u.translate)("Publishing form…")),s.default.createElement("p",{className:"sui-description"},(0,u.translate)("Great work! Please hold tight a few moments while we publish your form to the world."))))}}]),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 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(26),a(1)),p=a(17),f=a(63),d=r(f),m=a(60),h=r(m),b=a(84),y=r(b),v=a(61),g=r(v),E=function(e){function t(e){n(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.closeSettingModal=a.closeSettingModal.bind(a),a.trashField=a.trashField.bind(a),a}return l(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal(),this.closeNotice()}},{key:"closeNotice",value:function(){var e=(0,c.hasFieldType)("stripe",this.props.wrappers),t=(0,c.hasFieldType)("paypal",this.props.wrappers);if(e&&!t||t&&!e){jQuery("#forminator-notification").stop().slideUp("slow")}}},{key:"editSettings",value:function(e){var t=JSON.stringify(this.props.wrappers),a=JSON.parse(t),r=a.map(function(t){return t.fields=t.fields.filter(function(t){return t.element_id===e.id}),t}),n=r.filter(function(e){return!_.isEmpty(e.fields)});this.closeModal(),this.props.actions.modalActions.showModal({open:!0,field:e.field.fieldData,wrapper:n[0],closeModal:this.closeSettingModal,isValid:!0},"field-settings")}},{key:"closeSettingModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper},"field-settings")}},{key:"render",value:function(){var e=this,t=this,a=function(a){e.closeModal(),setTimeout(function(){t.props.history.push("/"+a)},800)},r=(_.isEmpty(this.props.modal.modalProps.field.field_label)?this.props.modal.modalProps.field.element_id:this.props.modal.modalProps.field.field_label,_.filter(this.props.settings,function(e,t){return 0===t.indexOf("registration")})),n=(0,c.getCalculationFields)(this.props.wrappers),o=[];if(_.each(n,function(t){(_.isUndefined(t.formula)||!1===t.formula)&&(t.formula=""),t.formula.indexOf("{"+e.props.modal.modalProps.field.element_id+"}")>=0&&o.push({id:t.element_id,label:t.label,field:t})}),_.isEmpty(o)){var l="group"===this.props.modal.modalProps.field.type?(0,c.translate)("Delete Field Group"):(0,c.translate)("Delete Field"),i="group"===this.props.modal.modalProps.field.type?(0,c.translate)("Are you sure you want to delete this group and all the fields it contains?"):(0,c.translate)("Deleting this field {%(name)s} will also remove associated values from existing submissions.",{args:{name:this.props.modal.modalProps.field.element_id}});return u.default.createElement(u.default.Fragment,null,u.default.createElement(h.default,{flatten:!0,alignment:"center",closeType:"icon",closeModal:this.closeModal,customClass:"sui-spacing-top--60"},u.default.createElement(g.default,{id:this.props.modal.modalProps.id,label:l,size:"lg"}),u.default.createElement("p",{id:"modal-desc-"+this.props.modal.modalProps.id,className:"sui-description"},i),r.length>0&&-1!==r.indexOf(this.props.modal.modalProps.field.element_id)&&u.default.createElement("p",{className:"sui-description"},(0,c.translate)("Note that this field is mapped in {{link}}Default Meta Keys{{/link}}. If deleted, you will need to remap meta keys {{link}}here{{/link}}.",{components:{link:u.default.createElement("a",{onClick:function(){return a("registration")},style:{cursor:"pointer"}})}}))),u.default.createElement(y.default,{customClass:"sui-flatten sui-content-center"},u.default.createElement(d.default,{label:(0,c.translate)("Cancel"),closeModal:this.closeModal,customClass:"sui-button-ghost"}),u.default.createElement("button",{className:"sui-button sui-button-red sui-button-ghost",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}if(!_.isEmpty(o)){var s=_.map(o,function(t,a){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.default.createElement("i",{className:"fui-list-icon sui-icon-calculator","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-list-label"},(0,p.escapeHTML)(t.label)),u.default.createElement("button",{className:"sui-button-icon",onClick:e.editSettings.bind(e,t)},u.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Edit Field"))))});return u.default.createElement(u.default.Fragment,null,u.default.createElement(h.default,{flatten:!0,alignment:"center",closeType:"icon",closeModal:this.closeModal,customClass:"sui-spacing-top--60"},u.default.createElement(g.default,{id:this.props.modal.modalProps.id,label:(0,c.translate)("Delete Field")}),u.default.createElement("p",{id:"modal-desc-"+this.props.modal.modalProps.id,className:"sui-description"},(0,c.translate)("Please remove the references to this field from the following form fields first."))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{className:"sui-label"},(0,c.translate)("Form Fields")),u.default.createElement("ul",{className:"fui-list-fields"},s))),u.default.createElement(y.default,{flatten:!0,alignment:"center"},u.default.createElement(d.default,{label:(0,c.translate)("Got It"),closeModal:this.closeModal})))}}}]),t}(s.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 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(29),f=r(p),d=a(21),m=function(e){function t(e){n(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.copyToClipboard=a.copyToClipboard.bind(a),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:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},u.default.createElement(d.ButtonIcon,{icon:"close",iconSize:"md",label:(0,c.translate)("Close this dialog window"),className:"sui-button-float--right forminator-cancel-create-form",onClick:this.closeModal}),u.default.createElement("span",{className:"sui-icon-check sui-lg","aria-hidden":"true"}),u.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title sui-lg"},(0,c.translate)("Ready to go!")),u.default.createElement("p",{className:"sui-description"},(0,c.translate)("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!"))),u.default.createElement("div",{className:"sui-box-body"+(forminatorData.showBranding?"":" sui-spacing-bottom--60")},u.default.createElement("div",{id:"forminator-form-name-input",className:"sui-form-field"},u.default.createElement("label",{htmlFor:"forminator-form-name",className:"sui-label"},(0,c.translate)("Shortcode")),u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},u.default.createElement("input",{type:"text",defaultValue:'[forminator_form id="'+this.props.id+'"]',id:"forminator-form-shortcode",className:"sui-form-control",ref:function(t){return e.input=t}}),u.default.createElement(d.ButtonIcon,{icon:"copy",iconSize:"sm",label:(0,c.translate)("Copy shortcode"),onClick:this.copyToClipboard})))))}}]),t}(s.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 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(39),d=r(f),m=a(40),h=r(m),b=a(29),y=r(b),v=a(16),g=r(v),E=function(e){function t(e){n(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}return l(t,e),s(t,[{key:"applyPreset",value:function(){var e=this,t=this.props.settings,a=jQuery("#forminator-apply-preset"),r=[forminatorData.currentForm.settings.form_id],n=jQuery("#forminator-field-appearance_preset").val();a.addClass("sui-button-onload-text");var o={action:"forminator_apply_appearance_preset",_ajax_nonce:forminatorData.modules.ApplyPreset.nonce,edit_form:!0,settings:JSON.stringify(t),preset_id:n,ids:r};d.default.post(forminatorData.ajaxUrl,h.default.stringify(o)).then(function(t){if(t.data.success){e.props.actions.settingsActions.resetSettings(t.data.data),jQuery(".sui-accordion-item--open .sui-accordion-item-header").trigger("click"),e.closeModal();new y.default({type:"success",text:(0,p.translate)("Appearance preset successfully applied."),time:4e3}).open()}else{new y.default({type:"error",text:t.data.data}).open()}}).catch(function(e){new y.default({type:"error",text:(0,p.translate)("Something went wrong. Please try again.")}).open(),console.log(e)}).then(function(){setTimeout(function(){a.removeClass("sui-button-onload-text")},1e3)})}},{key:"render",value:function(){var e=this;return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60",style:{paddingBottom:"0"}},c.default.createElement("button",{className:"sui-button-icon sui-button-float--right forminator-popup-close forminator-cancel-create-form","aria-label":(0,p.translate)("Close this dialog window"),onClick:this.closeModal},c.default.createElement("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Close this dialog window"))),c.default.createElement("h3",{className:"sui-box-title sui-lg",id:"dialogTitle"},forminatorData.modules.ApplyPreset.title),c.default.createElement("span",{className:"sui-description",style:{marginTop:"15px"}},(0,p.translate)("Select an appearance preset from the list below to apply the appearance to your form. You can edit or create new presets in {{link}}Settings > Appearance Preset{{/link}}",{components:{link:c.default.createElement("a",{href:forminatorData.modules.ApplyPreset.presetUrl,target:"_blank"})}}))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("div",{className:"sui-form-field",style:{marginBottom:"10px"}},c.default.createElement(g.default,i({},this.props,{property:"appearance_preset"}),_.map(forminatorData.modules.ApplyPreset.presets,function(e,t){return c.default.createElement("option",{value:t,key:t},e)}))),c.default.createElement("div",{className:"sui-notice",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Your form's current appearance configurations will be overwritten.")))))),c.default.createElement("div",{className:"sui-box-footer sui-flatten sui-content-center",style:{paddingTop:"0"}},c.default.createElement("button",{id:"forminator-apply-preset",className:"sui-button sui-button-blue",onClick:function(){return e.applyPreset()}},c.default.createElement("span",{className:"sui-button-text-default"},c.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"})," ",forminatorData.modules.ApplyPreset.button),c.default.createElement("span",{className:"sui-button-text-onload"},c.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,p.translate)("Applying preset...")))))}}]),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,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(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 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(26),d=a(1),m=a(7),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(11),w=r(E),O=a(3),P=r(O),k=a(6),j=r(k),x=a(113),N=r(x),C=a(565),T=r(C),S=a(15),F=r(S),D=a(84),M=r(D),A=a(63),V=r(A),R=a(60),U=r(R),I=a(61),L=r(I),B=function(e){function t(e){o(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.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.state=a.props.settings.paginationData||{},a.fields=(0,d.getFields)(a.props.wrappers,[]),a.fields=_.filter(a.fields,function(e){return"page-break"===e.field_type}),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(){this.props.actions.settingsActions.updateSetting("paginationData",this.state),this.closeModal()}},{key:"render",value:function(){var e=this,t=this.fields.length;return p.default.createElement(p.default.Fragment,null,p.default.createElement(U.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(L.default,{label:(0,d.translate)("Edit Field"),tag:(0,d.translate)("Pagination")})),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{className:"sui-tabs-menu"},p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Labels")),p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Settings"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){return p.default.createElement(f.Redirect,{to:"/builder/labels"})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"12"},p.default.createElement("span",{className:"sui-description"},(0,d.translate)("Your form is divided into multiple pages by Page Break field(s), and you can customize the label of each page here. Page names appear on your form header along with the progress indicator.")))),_.map(e.fields,function(t,a){return p.default.createElement(h.default,{key:t.element_id},p.default.createElement(y.default,{cols:"12"},p.default.createElement(g.default,s({},e.props,{settings:e.state,label:"Page "+(a+1),defaultValue:"Page "+(a+1),property:t.element_id+"-steps",updateProperty:e.updateProperty}))))}),p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"12"},p.default.createElement(g.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Finish"),defaultValue:"Finish",property:"last-steps",updateProperty:e.updateProperty})))))}}),p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(F.default,null,p.default.createElement(j.default,s({},e.props,{settings:e.state,property:"pagination-header-design",settingsLabel:(0,d.translate)("Progress Indicator"),default:"show",description:(0,d.translate)("Choose whether to show a progress indicator on top of your form, so your users know how far they are through your form."),updateProperty:e.updateProperty}),p.default.createElement(P.default,s({},e.props,{value:"show",boxClass:"sui-tab-boxed",label:(0,d.translate)("Show")}),p.default.createElement(N.default,s({},e.props,{settings:e.state,defaultValue:"nav",radioClass:"sui-radio-sm",property:"pagination-header",updateProperty:e.updateProperty}),p.default.createElement("div",{value:"nav",hasImage:!0,image1x:"pagination-steps.png",image2x:"pagination-steps@2x.png"},(0,d.translate)("Steps")),p.default.createElement("div",{value:"bar",hasImage:!0,image1x:"pagination-progress-bar.png",image2x:"pagination-progress-bar@2x.png"},(0,d.translate)("Progress Bar")))),p.default.createElement(w.default,{value:"off"},(0,d.translate)("Hide")))),p.default.createElement(F.default,null,p.default.createElement(j.default,s({},e.props,{settings:e.state,property:"pagination-labels",settingsLabel:(0,d.translate)("Buttons Text"),default:"default",description:(0,d.translate)("Choose whether you want to use default text for the Previous and Next button or use custom text."),updateProperty:e.updateProperty}),p.default.createElement(w.default,{value:"default"},(0,d.translate)("Default")),p.default.createElement(P.default,s({},e.props,{value:"custom",label:(0,d.translate)("Custom")}),p.default.createElement(T.default,s({},e.props,{field:e.fields,length:t,updateProperty:e.updateProperty,state:e.state}))))))}}))))),p.default.createElement(M.default,{alignment:"separated"},p.default.createElement(V.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),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"}))))}}]),t}(c.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;return s.default.createElement("table",{className:"sui-table fui-table--pagination"},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,(0,u.translate)("Page")),s.default.createElement("th",null,(0,u.translate)("Previous Button")),s.default.createElement("th",null,(0,u.translate)("Next Button")))),s.default.createElement("tbody",null,_.map(this.props.field,function(t,a){return s.default.createElement("tr",null,s.default.createElement("td",{className:"sui-table-item-title"},"Page "+(a+1)),s.default.createElement("td",null,a<=0&&s.default.createElement("strong",{style:{color:"#888888"}},(0,u.translate)("No Previous button")),a>0&&s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Previous"),className:"sui-form-control",value:_.isUndefined(e.props.state[t.element_id+"-previous"])?(0,u.translate)("Previous"):e.props.state[t.element_id+"-previous"],onChange:function(a){e.props.updateProperty(t.element_id+"-previous",a.target.value)}})),s.default.createElement("td",null,s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Next"),className:"sui-form-control",value:_.isUndefined(e.props.state[t.element_id+"-next"])?(0,u.translate)("Next"):e.props.state[t.element_id+"-next"],onChange:function(a){e.props.updateProperty(t.element_id+"-next",a.target.value)}})))}),s.default.createElement("tr",null,s.default.createElement("td",{className:"sui-table-item-title"},"Page "+(this.props.length+1)),s.default.createElement("td",null,s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Previous"),className:"sui-form-control",value:_.isUndefined(this.props.state["last-previous"])?(0,u.translate)("Previous"):this.props.state["last-previous"],onChange:function(t){e.props.updateProperty("last-previous",t.target.value)}})),s.default.createElement("td",null,s.default.createElement("strong",{style:{color:"#888888"}},(0,u.translate)("No Next button"))))))}}]),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 o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var 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(){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}}(),p=a(0),f=r(p),d=a(26),m=a(1),h=a(17),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(30),P=r(O),k=a(52),j=r(k),x=a(6),N=r(x),C=a(567),T=r(C),S=a(569),F=r(S),D=a(3),M=r(D),A=a(20),V=r(A),R=a(60),U=r(R),I=a(61),L=r(I),B=a(84),q=r(B),W=a(63),z=r(W),H=a(571),$=r(H),Y=function(e){function t(e){l(this,t);var a=i(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.data=Object.assign({},a.props.modal.modalProps),a.state=a.data.notification,a}return s(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/notifications/"})}},{key:"getNameOptions",value:function(){var e=[];return(0,m.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","date","time","email","consent","gdprcheckbox","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getEmailOptions",value:function(){var e=[];return(0,m.getFields)(this.props.wrappers,["address","captcha","date","consent","gdprcheckbox","html","name","number","slider","page-break","phone","postdata","section","time","upload","website","textarea","text","paypal","stripe","currency","calculation","password","signature"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getRecipientAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push({id:e.value,text:e.label})}),t}},{key:"getRecipientTagsOptions",value:function(){var e=this.getRecipientAddressesOptions();return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,m.translate)("Searching")},noResults:function(){return(0,m.translate)("No Result Found")}},placeholder:(0,m.translate)("Recipient(s)"),ajax:{url:forminatorData.ajaxUrl,type:"POST",delay:350,data:function(e){return{action:"forminator_builder_search_emails",_wpnonce:forminatorData.searchNonce,q:e.term,permission:"forminator"}},processResults:function(t){return{results:e.concat(t.data)}},cache:!0},templateResult:function(e){return _.isUndefined(e.id)||_.isUndefined(e.text)||_.isUndefined(e.display_name)?e.text:jQuery("<span><b>"+e.text+"</b> - <small>"+e.display_name+"</small></span>")},createTag:function(e){var t=e.term.trim();return(0,m.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(n(this.data.notifications),[e]);this.props.actions.notificationsActions.updateNotifications(t)}this.data.new||this.props.actions.notificationsActions.updateNotification(this.state),this.closeModal()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.state["email-recipients"])?"default":this.state["email-recipients"],a=(0,m.hasFieldType)("upload",this.props.wrappers),r=_.isUndefined(this.state.type)?"default":this.state.type,n=!0,o="",l={};"default"===t&&_.isEmpty(this.state.recipients)&&(n=!1,o=(0,m.translate)("Please enter recipients")),"routing"===t&&(_.isUndefined(this.state.routing)||_.isEmpty(this.state.routing)?(o=(0,m.translate)("Please add email routing"),n=!1):_.each(this.state.routing,function(e){_.isEmpty(e.email)&&(o=(0,m.translate)("Please enter recipients"),n=!1),_.isEmpty(e.rule)&&(o=(0,m.translate)("Please select rule"),n=!1)}));var i="email-subject",s="email-editor";if("registration"===this.props.formType)switch(_.isUndefined(this.props.settings["activation-method"])?"":this.props.settings["activation-method"]){case"email":i="email-subject-method-email",s="email-editor-method-email";break;case"manual":i="email-subject-method-manual",s="email-editor-method-manual";break;case"default":default:i="email-subject",s="email-editor"}return(_.isUndefined(this.state[s])||_.isEmpty(this.state[s]))&&(n=!1,o=(0,m.translate)("Please fix the error(s) in the EMAIL tab.")),(_.isUndefined(this.state[i])||_.isEmpty(this.state[i]))&&(n=!1,o=(0,m.translate)("Please fix the error(s) in the EMAIL tab.")),_.isEmpty(this.state["form-email"])||(l={display:"block"}),f.default.createElement(f.default.Fragment,null,f.default.createElement(U.default,{closeType:"icon",closeModal:this.closeModal,customClass:"forminator-builder-fields-close"},f.default.createElement(L.default,{id:"",label:(0,m.translate)("Add Email Notification")})),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},f.default.createElement("div",{className:"sui-tabs-menu"},f.default.createElement(d.NavLink,{to:"/notifications/email/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Email")),"save_draft"!==r&&f.default.createElement(d.NavLink,{to:"/notifications/recipients/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Recipients")),f.default.createElement(d.NavLink,{to:"/notifications/advanced/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Advanced")),"save_draft"!==r&&f.default.createElement(d.NavLink,{to:"/notifications/conditions/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Conditions"))),f.default.createElement(d.Route,{exact:!0,path:"/notifications/",render:function(){return f.default.createElement(d.Redirect,{to:"/notifications/email"})}}),f.default.createElement("div",{className:"sui-tabs-content"},f.default.createElement("div",{className:"sui-tab-content active"},f.default.createElement(d.Route,{path:"/notifications/email",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(w.default,u({},e.props,{settings:e.state,label:(0,m.translate)("Label"),description:(0,m.translate)("The label is to help you identify this email and won't appear anywhere in the email."),placeholder:(0,m.translate)("E.g. Sales Team Notification"),property:"label",updateProperty:e.updateProperty})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:i,placeholder:(0,m.translate)("E.g. New Form Submission"),label:(0,m.translate)("Subject"),required:"true",isRequired:"true",requiredError:(0,m.translate)("Email subject can't be empty"),updateProperty:e.updateProperty}),e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:s,extraId:"email-editor",editorOptions:forminatorData.variables,paymentOptions:forminatorData.payment_variables,enableFormData:"true",enableAllFormFields:"true",enableAllNonFormFields:"true",enablePostData:"true",enableUpload:"true",wrappers:e.props.wrappers,boxClass:"sui-tab-boxed",label:(0,m.translate)("Body"),isRequired:"true",requiredError:(0,m.translate)("Email body can't be empty"),updateProperty:e.updateProperty})))),a&&f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(V.default,u({},e.props,{settings:e.state,property:"email-attachment",defaultValue:"false",label:(0,m.translate)("Attachments"),description:(0,m.translate)("Choose whether you want to attach the files uploaded via the File Upload fields to this email."),updateProperty:e.updateProperty}),f.default.createElement("div",{value:"false"},(0,m.translate)("None")),f.default.createElement("div",{value:"true"},(0,m.translate)("Uploaded files"))))),"save_draft"!==r&&f.default.createElement($.default,u({},e.props,{settings:e.state,property:"email-pdfs",updateProperty:e.updateProperty})))}}),f.default.createElement(d.Route,{path:"/notifications/recipients",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement("span",{className:"sui-description",style:{marginTop:"0",marginBottom:"10px"}},(0,m.translate)("The default behavior is to send the email to the same recipients. If you want to send this email to different recipients conditionally, you can enable the email routing and change the recipients of this email based on the user input.")),f.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},f.default.createElement(N.default,u({},e.props,{property:"email-recipients",default:"default",settings:e.state,updateProperty:e.updateProperty,simple:!0}),f.default.createElement(M.default,u({},e.props,{value:"default",label:(0,m.translate)("Default"),boxClass:"sui-tab-boxed"}),f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"recipients",placeholder:(0,m.translate)("E.g. sales@website.com"),label:(0,m.translate)("Recipients"),required:"true",type:"textarea",updateProperty:e.updateProperty,note:(0,m.translate)("(Separate multiple emails with a comma)"),customClass:"sui-variables-select-text"}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))}))),f.default.createElement(M.default,u({},e.props,{value:"routing",label:(0,m.translate)("Email Routing")}),f.default.createElement(T.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))))))}}),f.default.createElement(d.Route,{path:"/notifications/advanced",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"from-name",placeholder:(0,m.translate)("Enter from name here"),label:(0,m.translate)("From Name"),updateProperty:e.updateProperty}),e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"form-email",placeholder:(0,m.translate)("Enter from email here"),label:(0,m.translate)("From Email"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))})),f.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue"+(!_.isEmpty(e.state["form-email"])&&" sui-active"),"aria-live":"assertive",style:l},!_.isEmpty(e.state["form-email"])&&f.default.createElement("div",{className:"sui-notice-content"},f.default.createElement("div",{className:"sui-notice-message"},f.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),f.default.createElement("p",null,(0,m.translate)('Some hosts do not allow "from email" to be overridden or replaced due to spam issues.'))))))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"replyto-email",placeholder:(0,m.translate)("Enter reply-to email here"),label:(0,m.translate)("Reply-to Email"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"cc-email",placeholder:(0,m.translate)("Enter CC email here"),label:(0,m.translate)("CC Emails"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"bcc-email",placeholder:(0,m.translate)("Enter BCC email here"),label:(0,m.translate)("BCC Emails"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))})))))}}),f.default.createElement(d.Route,{path:"/notifications/conditions",render:function(){return f.default.createElement(F.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),f.default.createElement(q.default,{alignment:"separated"},f.default.createElement(z.default,{icon:"undo",label:(0,m.translate)("Discard Changes"),closeModal:this.closeModal}),n&&f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,m.translate)("Add")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!n&&f.default.createElement("div",{className:"sui-tooltip","data-tooltip":o},f.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":o},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,m.translate)("Add")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(p.Component);t.default=Y},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(568),d=r(f),m=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.updateValue=a.updateValue.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateRuleValue=a.updateRuleValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers),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}),a.validateConditions(),a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.props.updateProperty("routing",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.routing,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:"updateValue",value:function(e,t){var a=this.getPropState();a[e].email=t,this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateRuleValue",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({email:"",element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.routing,"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-group"},c.default.createElement("div",{className:"fui-visibility",style:{marginTop:"0"}},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)('You haven\'t defined any email routing rules yet. Click on the "+ Add Rule" button to add the recipients along with the routing rules.')))));return(_.isUndefined(this.props.state.routing)||0===this.props.state.routing.length)&&c.default.createElement(c.default.Fragment,null,t),!_.isUndefined(this.props.state.routing)&&this.props.state.routing.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},c.default.createElement("div",{className:"fui-visibility",style:{marginTop:"0"}},c.default.createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.routing,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateValue:e.updateValue,updateField:e.updateField,updateRule:e.updateRule,updateRuleValue:e.updateRuleValue,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,t)}}]),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 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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(19),E=r(g),w=a(16),O=r(w),P=a(52),k=r(P),j=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateValue=a.updateValue.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateRuleValue=a.updateRuleValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateValue",value:function(e,t){this.props.updateValue(this.props.counter,t)}},{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:"updateRuleValue",value:function(e){this.props.updateRuleValue(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:"getEmailOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["address","captcha","date","consent","gdprcheckbox","html","name","number","slider","page-break","phone","postdata","section","time","upload","website","textarea","text","paypal","stripe","currency","calculation","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"render",value:function(){var e=this,t="routing-"+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=_.isEmpty(this.props.rule.email)?"":this.props.rule.email,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["day_is","day_is_not","month_is","month_is_not"],s=["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-sitemap fui-visibility-rule-icon","aria-hidden":"true"}),c.default.createElement("span",{className:"fui-visibility-rule-text"},(0,p.translate)('Send to {{strong}}"%(label)s"{{/strong}} if {{strong}}%(field)s{{/strong}} %(rule)s {{strong}}%(value)s{{/strong}}',{args:{label:n,field:a.label,rule:(0,p.getRuleLabel)(this.props.rule.rule,a.field_type),value:r},components:{strong:c.default.createElement("strong",null)}})),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(k.default,i({},this.props,{property:"email",placeholder:(0,p.translate)("E.g. sales@website.com"),label:(0,p.translate)("Recipients"),settings:this.props.rule,value:this.props.rule.email,required:"true",note:(0,p.translate)("Separate multiple emails with a comma"),onChange:this.updateValue.bind(this)}),this.getEmailOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,f.escapeHTML)(e.label))})),c.default.createElement(m.default,{class:"sui-align-bottom sui-spacing-10"},c.default.createElement(b.default,{cols:"6",customClass:"sui-padding-right-10"},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)("Routing Condition")}),_.map(this.fields,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label)," | ",e.element_id)}))),c.default.createElement(b.default,{cols:"6",customClass:"sui-padding-left-10"},c.default.createElement(O.default,i({},this.props,{elementId:t+"-condrule",settings:this.props.rule,property:"rule",updateProperty:this.updateRule,options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"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"))),"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 greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!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")))))),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"12"},a.hasOptions&&c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateRuleValue.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},(0,f.escapeHTML)(e.label))})),!a.hasOptions&&"signature"!==a.field_type&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,placeholder:(0,p.translate)("Enter value")})),!a.hasOptions&&"date"===a.field_type&&("month_is"===this.props.rule.rule==="month_is"||"month_is_not"===this.props.rule.rule)&&c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateRuleValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(o,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("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateRuleValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select day")),_.map(s,function(e){return c.default.createElement("option",{value:e,key:e},e)})))),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=j},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(570),d=r(f),m=a(20),h=r(m),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),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}),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(h.default,i({},this.props,{settings:this.props.state,property:"condition_action",defaultValue:"send",noWrapper:!0}),c.default.createElement("span",{value:"send"},(0,p.translate)("Send")),c.default.createElement("span",{value:"dont-send"},(0,p.translate)("Don't Send"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("this email if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.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>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)("Conditions"))),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 Conditions")),c.default.createElement("p",null,(0,p.translate)("By default, this email is always sent on form submission. You can add conditions to send this email conditionally based on user input.")))));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>1)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Conditions"))),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){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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(19),E=r(g),w=a(16),O=r(w),P=function(e){function t(e){n(this,t);var a=o(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 l(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"],o=["day_is","day_is_not","month_is","month_is_not"],l=["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,(0,f.escapeHTML)(a.label))," ",(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},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"6"},c.default.createElement(O.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")),"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"))),"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 greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!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&&"signature"!==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"))))),c.default.createElement(b.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},(0,f.escapeHTML)(e.label))}))),!a.hasOptions&&"signature"!==a.field_type&&(!o.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.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"||"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(l,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))),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 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(7),d=r(f),m=a(4),h=r(m),b=a(572),y=r(b),v=a(573),g=r(v),E=a(574),w=r(E),O=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=forminatorData.isPro,t=forminatorData.pdfAddonActive,a=c.default.createElement(y.default,i({},this.props,{text:(0,p.translate)("The {{strong}}Forminator PDF Generator Add-on{{/strong}} is required to use the PDF generator feature. Install it from the Add-ons page.",{components:{strong:c.default.createElement("strong",null)}}),buttonText:(0,p.translate)("Get the Add-on"),buttonUrl:forminatorData.addonsUrl,color:"blue"})),r=void 0;return r=e?t?_.isEmpty(this.props.pdfs)?c.default.createElement("div",{className:"sui-border-frame",style:{marginTop:"0"}},c.default.createElement(g.default,this.props)):c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(w.default,i({},this.props,{pdfs:this.props.pdfs}))):c.default.createElement("div",{className:"sui-border-frame"},a):a,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{htmlFor:"forminator-field-email-pdf-attachment",className:"sui-label"},(0,p.translate)("PDF Attachments"),!e&&c.default.createElement("span",{className:"sui-tag sui-tag-pro"},(0,p.translate)("Pro"))),c.default.createElement("span",{className:"sui-description",style:{padding:"5px 0 7px"}},(0,p.translate)("Select PDF file(s) to attach to this email notification.")),r)))}}]),t}(u.Component);t.default=O},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=this.props.color,a=(0,u.isTrue)(forminatorData.userPermissions.manage_forminator_addons)||(0,u.isTrue)(forminatorData.userPermissions.manage_options);return s.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-"+t+" sui-active",style:{display:"block"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,this.props.text),a&&s.default.createElement("p",null,s.default.createElement("button",{className:"sui-button sui-button-"+t,onClick:function(t){(0,u.goToLink)(e.props.buttonUrl)}},this.props.buttonText)))))}}]),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.goToSection=a.goToSection.bind(a),a}return o(t,e),l(t,[{key:"goToSection",value:function(e){var t=this;this.props.modal.modalProps.closeModal(),setTimeout(function(){t.props.history.push("/"+e)},700)}},{key:"render",value:function(){var e=this;return s.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,(0,u.translate)("No PDF file available for this form yet. Go to the {{link}}PDF tab{{/link}} to create one.",{components:{link:s.default.createElement("a",{onClick:function(){return e.goToSection("pdf")},href:"#"})}})))))}}]),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.getCheckedPdfs=a.getCheckedPdfs.bind(a),a.state={pdfsChecked:_.isUndefined(a.props.settings["email-pdfs"])?[]:a.getCheckedPdfs()},a}return o(t,e),l(t,[{key:"getCheckedPdfs",value:function(){var e=this.props.pdfs.map(function(e){return e.pdfId.toString()});return this.props.settings["email-pdfs"].filter(function(t){if(e.includes(t))return t})}},{key:"updateValue",value:function(e,t){var a=this.state.pdfsChecked;t=String(t),a=e.target.checked?_.union(a,[t]):_.without(a,t),this.props.updateProperty(this.props.property,a),this.setState({pdfsChecked:a})}},{key:"render",value:function(){var e=this,t=this.props.pdfs,a=this.state.pdfsChecked;return s.default.createElement("div",{className:"sui-form-field"},t.map(function(t,r){return s.default.createElement("label",{htmlFor:"forminator-pdf-"+t.pdfId,className:"sui-checkbox sui-checkbox-stacked",key:"forminator-pdf-"+t.pdfId+"-"+(0,u.randNumber)()},s.default.createElement("input",{type:"checkbox",id:"forminator-pdf-"+t.pdfId,"aria-labelledby":"label-pdf-"+t.pdfId,checked:_.includes(a,String(t.pdfId))?"checked":"",onChange:function(a){e.updateValue(a,t.pdfId)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",{id:"label-pdf-"+t.pdfId},t.pdfFilename+".pdf"))}))}}]),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 o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var 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(){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}}(),p=a(0),f=r(p),d=a(26),m=a(1),h=a(17),b=a(7),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(41),P=r(O),k=a(52),j=r(k),x=a(19),N=r(x),C=a(30),T=r(C),S=a(15),F=(r(S),a(6)),D=r(F),M=a(576),A=r(M),V=a(3),R=r(V),U=a(20),I=(r(U),a(21)),L=function(e){function t(e){l(this,t);var a=i(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.data=Object.assign({},a.props.modal.modalProps),a.state=a.data.behavior,a}return s(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/behaviour/"})}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(n(this.data.behaviors),[e]);this.props.actions.behaviorsActions.updateBehaviorArray(t)}this.data.new||this.props.actions.behaviorsActions.updateBehavior(this.state),this.closeModal()}},{key:"getNameOptions",value:function(){var e=[];return(0,m.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","gdprcheckbox","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings["activation-method"])?"":this.props.settings["activation-method"],a={};_.assign(a,forminatorData.variables),delete a.submission_id;var r="thankyou-message",n=(0,m.getSubmissionBehaviors)(),o=Object.values(n),l=Object.keys(n);return"email"!==t&&"manual"!==t||(r=t+"-"+r),f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"sui-box-header"},f.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title"},(0,m.translate)("After Submission")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement(I.ButtonIcon,{icon:"close",iconSize:"md",label:(0,m.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal}))),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},f.default.createElement("div",{className:"sui-tabs-menu"},f.default.createElement(d.NavLink,{to:"/behaviour/behavior/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Behavior")),f.default.createElement(d.NavLink,{to:"/behaviour/conditions/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Conditions"))),f.default.createElement(d.Route,{exact:!0,path:"/behaviour/",render:function(){return f.default.createElement(d.Redirect,{to:"/behaviour/behavior"})}}),f.default.createElement("div",{className:"sui-tabs-content"},f.default.createElement("div",{className:"sui-tab-content active"},f.default.createElement(d.Route,{path:"/behaviour/behavior",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(w.default,u({},e.props,{settings:e.state,label:(0,m.translate)("Label"),description:(0,m.translate)("Only used to identify this behavior, and not displayed to users."),placeholder:(0,m.translate)("E.g., Inline Message"),property:"label",updateProperty:e.updateProperty})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(D.default,u({},e.props,{settings:e.state,updateProperty:e.updateProperty,property:"submission-behaviour",label:(0,m.translate)("Behavior"),default:l[0]}),f.default.createElement(R.default,{value:l[0],boxClass:"sui-tab-boxed",label:o[0]},f.default.createElement(T.default,u({},e.props,{settings:e.state,updateProperty:e.updateProperty,property:r,descriptionTop:(0,m.translate)("Display an inline success message to the user after the form is submitted."),editorOptions:a,paymentOptions:forminatorData.payment_variables,cutomTinymce:"bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link",enableFormData:"true"}),o[0]),f.default.createElement("div",{className:"sui-form-field"},f.default.createElement("div",{style:{display:"inline-block"}},f.default.createElement(P.default,u({},e.props,{property:"autoclose",settings:e.state,updateProperty:e.updateProperty,defaultValue:"true",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),f.default.createElement("span",{className:"sui-field-prefix sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("Auto-close success message after")),f.default.createElement(w.default,u({},e.props,{property:"autoclose-time",settings:e.state,updateProperty:e.updateProperty,placeholder:(0,m.translate)("E.g. 5"),inputClass:"sui-input-sm sui-field-has-suffix",disabled:!e.state.autoclose,simple:!0})),f.default.createElement("span",{className:"sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("seconds.")))),f.default.createElement(R.default,{value:l[1],boxClass:"sui-tab-boxed",label:o[1]},f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{placeholder:(0,m.translate)("https://www.mywebsite.com"),property:"redirect-url",settings:e.state,updateProperty:e.updateProperty,label:(0,m.translate)("Redirect URL"),boxClass:"sui-tab-boxed",customClass:"redirect-url",description:(0,m.translate)("Provide the absolute URL of the page you want to redirect users to after submitting the login form. For example, to redirect users to the WordPress admin, use the URL {{strong}}http://www.website.com/wp-admin/{{/strong}}.",{components:{strong:f.default.createElement("strong",null)}})}),e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(N.default,u({},e.props,{property:"newtab",settings:e.state,updateProperty:e.updateProperty,label:(0,m.translate)("Redirection Option"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}),f.default.createElement("option",{value:"sametab"},(0,m.translate)("Redirect on the same tab")),f.default.createElement("option",{value:"newtab_thankyou"},(0,m.translate)("Redirect on new tab and show thank you message on form page")),f.default.createElement("option",{value:"newtab_hide"},(0,m.translate)("Redirect on new tab and hide form on the form page")))))),f.default.createElement(R.default,{value:l[2],boxClass:"sui-tab-boxed",label:o[2]},f.default.createElement(T.default,u({},e.props,{property:r,settings:e.state,updateProperty:e.updateProperty,extraId:"-hide",descriptionTop:(0,m.translate)("Hide the form after submission, and display a success message to the user."),editorOptions:a,enableFormData:"true"}),(0,m.translate)("Submit Message")),f.default.createElement("div",{className:"sui-form-field"},f.default.createElement("div",{style:{display:"inline-block"}},f.default.createElement(P.default,u({},e.props,{property:"autoclose",settings:e.state,updateProperty:e.updateProperty,defaultValue:"true",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),f.default.createElement("span",{className:"sui-field-prefix sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("Auto-close success message after")),f.default.createElement(w.default,u({},e.props,{property:"autoclose-time",settings:e.state,updateProperty:e.updateProperty,defaultValue:"5",placeholder:(0,m.translate)("E.g. 5"),inputClass:"sui-input-sm sui-field-has-suffix",disabled:!e.state.autoclose,simple:!0})),f.default.createElement("span",{className:"sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("seconds."))))))))}}),f.default.createElement(d.Route,{path:"/behaviour/conditions",render:function(){return f.default.createElement(A.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),f.default.createElement("div",{className:"sui-box-footer"},f.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},f.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),(0,m.translate)("Cancel")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,m.translate)("Apply")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!1)))}}]),t}(p.Component);t.default=L},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(577),d=r(f),m=a(20),h=r(m),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),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}),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("span",{className:"sui-description",style:{marginRight:"10px"}},(0,p.translate)("Process behavior if ")),c.default.createElement(h.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 conditions below match.")))),a=c.default.createElement("div",{className:"fui-visibility-group"},(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)("Conditions"))),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 Conditions")),c.default.createElement("p",null,(0,p.translate)("Add conditions for when this behavior will be processed.")))));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>1)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Conditions"))),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 Condition"))):c.default.createElement(c.default.Fragment,null,a)}}]),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 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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(16),E=r(g),w=function(e){function t(e){n(this,t);var a=o(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 l(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:"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"],o=["day_is","day_is_not","month_is","month_is_not"],l=["Su","Mo","Tu","We","Th","Fr","Sa"],s="consent"===a.field_type;return s&&(this.props.rule.value=(0,p.translate)("checked")),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("span",{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,(0,f.escapeHTML)(a.label))," ",(0,p.getRuleLabel)(this.props.rule.rule,a.field_type)," ",c.default.createElement("strong",null,r)),c.default.createElement("span",{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"),hasSearch:!0}),_.map(this.fields,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(m.default,null,c.default.createElement(b.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)"),"data-placeholder":(0,p.translate)("Select rule"),hasSearch:!0}),c.default.createElement("option",null),"signature"===a.field_type&&!s&&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"))),"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&&!s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&"signature"!==a.field_type&&!s&&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)&&!s&&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&&"signature"!==a.field_type&&("date-month"===a.field_slug||"date"===a.field_slug)&&!s&&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"))))),c.default.createElement(b.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},(0,f.escapeHTML)(e.label))}))),!a.hasOptions&&s&&c.default.createElement(v.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!s&&(!o.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.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(l,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))),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=w},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 o(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 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(579),m=r(d),h=a(21),b=function(e){function t(e){o(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.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.data=Object.assign({},a.props.modal.modalProps),a.state=_.isUndefined(a.data.conditions[a.data.integrationId])?{}:a.data.conditions[a.data.integrationId],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:"/integrations/"})}},{key:"applyChanges",value:function(){var e=Object.assign({},this.data.conditions);e[this.data.integrationId]=Object.assign({},this.state),this.props.actions.integrationActions.updateIntegrationConditions(e),this.closeModal()}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title"},(0,f.translate)("Conditions")),p.default.createElement("div",{className:"sui-actions-left"},p.default.createElement("span",{className:"sui-tag sui-tag-draft"},this.data.integrationTitle)),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement(h.ButtonIcon,{icon:"close",iconSize:"md",label:(0,f.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(m.default,s({},this.props,{updateProperty:this.updateProperty,state:this.state}))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),(0,f.translate)("Cancel")),p.default.createElement("div",{className:"sui-actions-right"},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,f.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),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 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(580),d=r(f),m=a(20),h=r(m),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"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}),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,"slug"),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(h.default,i({},this.props,{settings:this.props.state,property:"condition_action",defaultValue:"send",noWrapper:!0}),c.default.createElement("span",{value:"send"},(0,p.translate)("Send")),c.default.createElement("span",{value:"dont-send"},(0,p.translate)("Don't Send"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("data if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.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 conditions below are met.")))),a=c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Conditions"))),r=c.default.createElement("div",{className:"sui-description",style:{margin:"0 0 30px"}},(0,p.translate)("Use conditional logic to send data to this app based on submitted form data.")),n=c.default.createElement("div",{className:"fui-visibility-group"},r,(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&a,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 Conditions")),c.default.createElement("p",null,(0,p.translate)("Add conditions under which data should be sent to this app.")))));return!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},r,(this.props.wrappers.length>1||this.fields.length>1)&&a,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 Condition"))):c.default.createElement(c.default.Fragment,null,n)}}]),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 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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(19),E=r(g),w=a(16),O=r(w),P=function(e){function t(e){n(this,t);var a=o(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 l(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"],o=["day_is","day_is_not","month_is","month_is_not"],l=["Su","Mo","Tu","We","Th","Fr","Sa"],s="consent"===a.field_type;return s&&(this.props.rule.value=(0,p.translate)("checked")),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,(0,f.escapeHTML)(a.label))," ",(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},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"6"},c.default.createElement(O.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")),"signature"===a.field_type&&!s&&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"))),"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&&!s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&"signature"!==a.field_type&&!s&&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)&&!s&&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&&"signature"!==a.field_type&&("date-month"===a.field_slug||"date"===a.field_slug)&&!s&&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"))))),c.default.createElement(b.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},(0,f.escapeHTML)(e.label))}))),!a.hasOptions&&s&&c.default.createElement(v.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!s&&(!o.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.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"||"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(l,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))),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 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(60),f=r(p),d=a(61),m=r(d),h=a(84),b=r(h),y=a(63),v=r(y),g=function(e){function t(e){n(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.trashField=a.trashField.bind(a),a}return l(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,{flatten:!0,alignment:"center",closeModal:this.closeModal,closeType:"icon",customClass:"sui-spacing-top--60"},u.default.createElement(m.default,{id:"",label:(0,c.translate)("Delete Notification"),size:"lg"}),u.default.createElement("p",{id:"",className:"sui-description"},(0,c.translate)("Are you sure you wish to delete this Notification?"))),u.default.createElement(b.default,{customClass:"sui-flatten sui-content-center"},u.default.createElement(v.default,{label:(0,c.translate)("Cancel"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(s.Component);t.default=g},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 o(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 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),p=a(1),f=a(60),d=r(f),m=a(61),h=r(m),b=a(84),y=r(b),v=a(63),g=r(v),E=a(29),_=r(E),w=a(39),O=r(w),P=a(40),k=r(P),j=function(e){function t(e){o(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.deletePdf=a.deletePdf.bind(a),a.showNotification=a.showNotification.bind(a),a.trashPDF=a.trashPDF.bind(a),a.data=Object.assign({},a.props.modal.modalProps),a}return i(t,e),s(t,[{key:"deletePdf",value:function(){var e=this,t={action:"forminator_delete_pdf",_wpnonce:forminatorData.formNonce,pdfId:this.data.pdf.pdfId};O.default.post(forminatorData.ajaxUrl,k.default.stringify(t)).then(function(t){t.data.success?(e.showNotification("success",(0,p.translate)("PDF file successfully deleted.")),e.trashPDF(t.data.data)):e.showNotification("error",t.data)}).catch(function(t){e.showNotification("error",t)})}},{key:"showNotification",value:function(e,t){new _.default({type:e,text:"error"===e?(0,p.translate)("Something went wrong while creating your PDF. Please try again."):t}).open(),"error"===e&&console.log(t),this.closeModal()}},{key:"trashPDF",value:function(e){var t=[].concat(n(this.props.pdfs)),a=this.getPDFWithoutCurrent(t,e);this.props.actions.pdfsActions.updatePdfs(a)}},{key:"getPDFWithoutCurrent",value:function(e,t){return e.filter(function(e){return parseInt(e.pdfId)!==parseInt(t)})}},{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,{flatten:!0,alignment:"center",closeModal:this.closeModal,closeType:"icon",customClass:"sui-spacing-top--60"},c.default.createElement(h.default,{id:"forminator-delete-pdf-modal__title",label:(0,p.translate)("Delete PDF File"),size:"sm"}),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Are you sure you wish to delete"),c.default.createElement("b",null," ",this.data.pdf.pdfFilename,".pdf"),"?")),c.default.createElement(y.default,{customClass:"sui-flatten sui-content-center"},c.default.createElement(g.default,{label:(0,p.translate)("Cancel"),closeModal:this.closeModal,customClass:"sui-button-ghost"}),c.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red pdf-delete-button",onClick:this.deletePdf},c.default.createElement("span",{className:"sui-loading-text"},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,p.translate)("Delete")),c.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(u.Component);t.default=j},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(60),f=r(p),d=a(61),m=r(d),h=a(84),b=r(h),y=function(e){function t(e){n(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.onClickCallback=a.onClickCallback.bind(a),a}return l(t,e),i(t,[{key:"onClickCallback",value:function(e,t){var a=this;e.preventDefault(),(0,c.goToLink)(t),setTimeout(function(){a.closeModal()},500)}},{key:"render",value:function(){var e=this,t=encodeURIComponent(forminatorData.siteUrl);return u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,{alignment:"center",closeModal:this.closeModal,closeType:"icon",closeColor:"white",flatten:!0,imageName:"connect-to-wpmudev"},u.default.createElement(m.default,{id:"forminator-delete-pdf-modal__title",label:(0,c.translate)("Access PDF Generator Add-on"),size:"lg"}),u.default.createElement("p",{className:"sui-description"},(0,c.translate)("Create an account with WPMU DEV (the developers of Forminator) to get instant access to PDF Add-on, plus a host of bonus site management tools that come included. It’s fast, easy, and free!"))),u.default.createElement("div",{className:"sui-box-body sui-content-center sui-spacing-bottom--20"},u.default.createElement("button",{className:"sui-button connect-button",style:{backgroundColor:"#286EF1"},onClick:function(a){e.onClickCallback(a,"https://wpmudev.com/register/?signup=forminator-pdf-addon&forminator_url="+t)}},u.default.createElement("span",{className:"sui-loading-text"},(0,c.translate)("Connect to WPMU DEV")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))),u.default.createElement(b.default,{customClass:"sui-flatten sui-content-center"},u.default.createElement("small",{style:{fontWeight:"500"}},(0,c.translate)("Already a member? {{link}}Connect site{{/link}}",{components:{link:u.default.createElement("a",{onClick:function(a){e.onClickCallback(a,"https://wpmudev.com/login/?signin=forminator-pdf-addon&forminator_url="+t)},target:"_blank"})}}))))}}]),t}(s.Component);t.default=y},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 o(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 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(26),d=a(1),m=a(17),h=a(25),b=r(h),y=a(7),v=r(y),g=a(4),E=r(g),w=a(60),O=r(w),P=a(61),k=r(P),j=a(84),x=r(j),N=a(63),C=r(N),T=a(205),S=r(T),F=a(52),D=r(F),M=a(6),A=r(M),V=a(3),R=r(V),U=a(2),I=r(U),L=a(64),B=r(L),q=a(11),W=r(q),z=function(e){function t(e){o(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.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.state=a.props.settings||{},a}return i(t,e),u(t,[{key:"getNameOptions",value:function(){var e=[];return(0,d.getFields)(forminatorData.parentFormFields,["page-break","postdata","captcha","consent","gdprcheckbox","stripe","paypal","password","group"],void 0,void 0,!0).map(function(t){_.isEmpty(t.parent_group)&&e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{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(){this.props.actions.settingsActions.updateSettings(this.state),this.closeModal()}},{key:"getMiscData",value:function(){var e={};_.assign(e,forminatorData.variables);var t=_.isEmpty(e)?[]:e;return p.default.createElement(p.default.Fragment,null,t&&p.default.createElement("optgroup",{label:(0,d.translate)("Misc Data")},_.map(t,function(e,t){return p.default.createElement("option",{key:t,value:"{"+t+"}","data-content":"{"+t+"}"},e)})))}},{key:"render",value:function(){var e=this,t=[{value:"{site_title}",label:"Site Title"},{value:"{site_url}",label:"Site URL"},{value:"{date_dmy}",label:"Date"}],a=p.default.createElement(p.default.Fragment,null,p.default.createElement("optgroup",{label:(0,d.translate)("Site Information")},t.map(function(e,t){return p.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})),this.getMiscData());return p.default.createElement(p.default.Fragment,null,p.default.createElement(O.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(k.default,{label:(0,d.translate)("Edit Field"),tag:(0,d.translate)("Header")})),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{className:"sui-tabs-menu"},p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Settings")),p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Styling"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){return p.default.createElement(f.Redirect,{to:"/builder/settings"})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active"},p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"-30px",marginBottom:"-30px"},value:"multiple"},p.default.createElement(S.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Logo"),property:"pdf_logo_enabled",open:!0,updateProperty:e.updateProperty}),p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,null,p.default.createElement(E.default,{cols:"12"},p.default.createElement(A.default,s({},e.props,{label:(0,d.translate)("Logo Type"),property:"pdf_logo_type",default:"text",settings:e.state,updateProperty:e.updateProperty}),p.default.createElement(R.default,{value:"text",label:(0,d.translate)("Text")},p.default.createElement("div",{style:{marginTop:"20px"}},p.default.createElement(D.default,s({},e.props,{label:(0,d.translate)("Logo Text"),settings:e.state,property:"pdf_logo_text",placeholder:(0,d.translate)("Value"),className:"sui-form-control",updateProperty:e.updateProperty}),a))),p.default.createElement(R.default,{value:"image",label:(0,d.translate)("Image")},p.default.createElement("div",{style:{marginTop:"20px"}},p.default.createElement(A.default,s({},e.props,{label:(0,d.translate)("Logo image source"),property:"pdf_logo_image_type",default:"image_site_logo",settings:e.state,updateProperty:e.updateProperty}),p.default.createElement(R.default,{value:"image_site_logo",label:(0,d.translate)("Use site logo")},p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block",marginTop:"20px"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,d.translate)("Your site’s logo will be used as the logo for this PDF file."))))),!forminatorData.hasSiteLogo&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block",marginTop:"20px"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,d.translate)("Your site doesn’t have any logo image set. You can set a site logo or upload a new logo for your PDF file.")))))),p.default.createElement(R.default,{value:"image_upload_logo",label:(0,d.translate)("Use logo image"),boxClass:"sui-tab-boxed"},p.default.createElement(B.default,s({},e.props,{settings:e.state,updateProperty:e.updateProperty,type:"image",fieldClass:"sui-auto",property:"image_upload_logo_value",label:(0,d.translate)("Upload Image"),description:(0,d.translate)("Supported formats (.png, .gif, .jpg, and .svg). For best output, please upload an image with a height of 80px.")}))),p.default.createElement(R.default,{value:"image_logo_url",label:(0,d.translate)("Logo URL"),boxClass:"sui-tab-boxed"},p.default.createElement(I.default,s({},e.props,{property:"image_logo_url_value",settings:e.state,updateProperty:e.updateProperty,label:(0,d.translate)("Image URL"),placeholder:(0,d.translate)("E.g. https://domain.com/images/logo.png"),requiredError:(0,d.translate)("Please enter the image URL for the logo."),description:(0,d.translate)("For best output, image height is constrained to 80px. You can adjust this size using custom CSS.")}))))))))))),p.default.createElement(S.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Title"),property:"pdf_title_enabled",open:!0,updateProperty:e.updateProperty}),p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,null,p.default.createElement(E.default,{cols:"12"},p.default.createElement(D.default,s({},e.props,{settings:e.state,property:"pdf_title",placeholder:(0,d.translate)("Value"),className:"sui-form-control",updateProperty:e.updateProperty}),a))),p.default.createElement(v.default,null,p.default.createElement(E.default,{cols:"12"},p.default.createElement(A.default,s({},e.props,{label:(0,d.translate)("Title alignment"),property:"pdf_title_alignment",default:"left",settings:e.state,updateProperty:e.updateProperty}),p.default.createElement(W.default,{value:"left"},(0,d.translate)("Left")),p.default.createElement(W.default,{value:"center"},(0,d.translate)("Center")),p.default.createElement(W.default,{value:"right"},(0,d.translate)("Right"))))))))}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(b.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),p.default.createElement(x.default,{alignment:"separated"},p.default.createElement(C.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),p.default.createElement("button",{className:"sui-button forminator-save-field-settings",disabled:(0,d.isTrue)(this.state.pdf_title_enabled)&&_.isEmpty(this.state.pdf_title),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"}))))}}]),t}(c.Component);t.default=z},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 o(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 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(26),d=a(1),m=(a(17),a(25)),h=r(m),b=a(7),y=r(b),v=a(4),g=r(v),E=a(60),w=r(E),O=a(61),P=r(O),k=a(84),j=r(k),x=a(63),N=r(x),C=a(30),T=r(C),S=a(24),F=r(S),D=function(e){function t(e){o(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.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.state=a.props.settings||{},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(){this.props.actions.settingsActions.updateSettings(this.state),this.closeModal()}},{key:"getFieldOptions",value:function(){var e=[];return(0,d.getFields)(forminatorData.parentFormFields,["page-break","postdata","captcha","consent","gdprcheckbox","stripe","paypal","password","group"],void 0,void 0,!0).map(function(t){_.isEmpty(t.parent_group)&&(e[t.element_id]=t.label)}),e}},{key:"render",value:function(){var e=this;return p.default.createElement(p.default.Fragment,null,p.default.createElement(w.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(P.default,{label:(0,d.translate)("Edit Field"),tag:(0,d.translate)("Footer")})),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{className:"sui-tabs-menu"},p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Settings")),p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Styling"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){return p.default.createElement(f.Redirect,{to:"/builder/settings"})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active"},p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(y.default,null,p.default.createElement(g.default,{cols:"12"},p.default.createElement(T.default,s({},e.props,{extraId:"html-type",settings:e.state,boxClass:"sui-tab-boxed",property:"footer_value",disableMiscData:!0,allowRepeater:!1,excludeSubFields:!0,enableFormData:!0,enablePostData:!1,enableUpload:!0,allowButtonOnclick:"true",enableParentForm:"true",mainOptions:[],label:(0,d.translate)("Value"),updateProperty:e.updateProperty})))),p.default.createElement(y.default,null,p.default.createElement(g.default,{cols:"12"},p.default.createElement(F.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Show page number"),property:"show_page_number",updateProperty:e.updateProperty,unWrap:!0})))))}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(h.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),p.default.createElement(j.default,{alignment:"separated"},p.default.createElement(N.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),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"}))))}}]),t}(c.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 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(60),f=r(p),d=a(61),m=r(d),h=function(e){function t(e){n(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.onClickCallback=a.onClickCallback.bind(a),a}return l(t,e),i(t,[{key:"onClickCallback",value:function(e,t){var a=this;e.preventDefault(),(0,c.goToLink)(t),setTimeout(function(){a.closeModal()},500)}},{key:"render",value:function(){var e=this,t=_.isUndefined(forminatorData.upsellModalText)?[]:forminatorData.upsellModalText;return u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,{alignment:"center",closeModal:this.closeModal,closeType:"icon",flatten:!0,imageName:"pdf-header"},u.default.createElement(m.default,{id:"forminator-upsell-pdf-modal__title",label:t.pdf_title,size:"lg"}),u.default.createElement("p",{className:"sui-description",style:{marginTop:"5px",marginBottom:"30px"}},t.pdf_desc),u.default.createElement("button",{className:"sui-button sui-button-purple",style:{marginRight:0},onClick:function(t){e.onClickCallback(t,"https://wpmudev.com/project/forminator-pro/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_form-builder_pdf-addon")}},u.default.createElement("span",{className:"sui-loading-text"},t.button_text),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),u.default.createElement("p",{className:"sui-description",style:{marginTop:"17px",fontWeight:"500"}},t.after_button_text," ",u.default.createElement("a",{target:"_blank",href:"https://wpmudev.com/hub2/connect/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_form-builder_pdf-addon_existing"},t.login_text))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("h4",{style:{margin:0}},t.features_title),u.default.createElement("ul",{className:"sui-modal-features-list"},_.map(t.features,function(e,t){return u.default.createElement("li",{key:t},u.default.createElement("span",{className:"sui-modal-list-icon"},u.default.createElement("span",{className:"sui-icon-check","aria-hidden":"true"})),u.default.createElement("h4",null,e.title,_.isUndefined(e.tag)?"":u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},e.tag)),u.default.createElement("p",null,e.desc))}))))}}]),t}(s.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{settings:e.settings,wrappers:e.wrappers,formDesign:e.settings["form-style"]||"default"}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(108),u=r(s),c=a(62),p=r(c),f=a(588),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(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 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(248),d=r(f),m=a(589),h=r(m),b=a(255),y=r(b),v=a(285),g=r(v),E=a(287),w=r(E),O=a(591),P=r(O),k=a(291),j=r(k),x=a(292),N=r(x),C=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:"componentDidMount",value:function(){jQuery("html, body").animate({scrollTop:0},"fast");var e=this;jQuery("#forminator-open-apply-preset").off("click").on("click",function(t){var a=function(t){e.props.actions.modalActions.showModal({open:!1},"applyPreset")};e.props.actions.modalActions.showModal({open:!0,closeModal:a},"applyPreset")})}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=_.isUndefined(this.props.settings["form-style"])?"default":this.props.settings["form-style"],r=forminatorData.currentForm.settings["form-type"]||"default",n="pdf-form"===r?"pdf-appearance":"";return c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box "+n},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Appearance")),"pdf-form"!==r&&c.default.createElement("div",{className:"sui-actions-right"},c.default.createElement("button",{id:"forminator-open-apply-preset",className:"sui-button sui-button-ghost"},c.default.createElement("span",{className:"sui-icon-brush","aria-hidden":"true"}),(0,p.translate)("Apply Preset")))),c.default.createElement("div",{className:"sui-box-body"},"pdf-form"===r&&c.default.createElement(N.default,this.props),"pdf-form"!==r&&c.default.createElement(d.default,this.props),"pdf-form"!==r&&c.default.createElement(h.default,this.props),"pdf-form"!==r&&"none"!==a&&c.default.createElement(c.default.Fragment,{key:(0,p.getThemePrefix)(this.props)+"themeKey"},c.default.createElement(y.default,this.props),c.default.createElement(g.default,this.props),c.default.createElement(w.default,this.props),c.default.createElement(P.default,this.props)),c.default.createElement(j.default,i({},this.props,{formType:r}))),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},c.default.createElement("span",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-actions-right"},"registration"!==r&&"login"!==r&&"pdf-form"!==r&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,p.translate)("Behavior"),c.default.createElement("span",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"registration"===r&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("registration")}},(0,p.translate)("User Registration"),c.default.createElement("span",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"login"===r&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("login")}},(0,p.translate)("User Login"),c.default.createElement("span",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),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 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(6),d=r(f),m=a(11),h=r(m),b=a(15),y=r(b),v=a(590),g=r(v),E=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(y.default,{label:(0,p.translate)("Layout"),labelDark:!0,description:(0,p.translate)("Adjust the layout of fields.")},c.default.createElement(d.default,i({},this.props,{property:"field-image-size",default:"custom",settingsLabel:(0,p.translate)("Radio/Checkbox Image Size"),description:(0,p.translate)("Set radio/checkbox image size.")}),c.default.createElement(h.default,{value:"auto"},(0,p.translate)("Automatic")),c.default.createElement(g.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))))}}]),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 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(4),d=r(f),m=a(2),h=r(m),b=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active","aria-live":"assertive",style:{display:"block"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note: If value is empty or zero, image will fallback to default size."))))),c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Width"),type:"number",placeholder:"0",defaultValue:70,property:"field-image-width"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Height"),type:"number",placeholder:"0",defaultValue:70,property:"field-image-height"})))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set your custom dimensions in pixels.")))}}]),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 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(11),d=r(f),m=a(592),h=r(m),b=a(6),y=r(b),v=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Field Container")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Customize the field container's border."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(y.default,i({},this.props,{property:"field-border",settingsLabel:(0,p.translate)("Border"),description:(0,p.translate)("Add an border style around the field.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(h.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom")))))}}]),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 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(4),d=r(f),m=a(2),h=r(m),b=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(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"6"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Radius"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"field-border-radius"}))),c.default.createElement(d.default,{cols:"6"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Thickness"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"field-border-width"})))))}}]),t}(u.Component);t.default=b},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{settings:e.settings,wrappers:e.wrappers}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(d,e),builderActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(211),u=r(s),c=a(108),p=r(c),f=a(62),d=r(f),m=a(594),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.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 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(595),f=r(p),d=a(598),m=r(d),h=a(599),b=r(h),y=a(600),v=r(y),g=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(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)};return u.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("User Registration"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props),forminatorData.isMainSite&&u.default.createElement(m.default,this.props),u.default.createElement(b.default,this.props),u.default.createElement(v.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behavior"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=g},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 o(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 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(17),m=a(6),h=r(m),b=a(16),y=r(b),v=a(294),g=r(v),E=a(19),w=r(E),O=a(11),P=r(O),k=a(3),j=r(k),x=a(394),N=r(x),C=a(596),T=r(C),S=a(15),F=r(S),D=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.state=a.props.settings||{},a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"render",value:function(){var e=this,t=(0,f.getFields)(this.props.wrappers,["password"]),a=(0,f.mapFieldsByType)("password",this.props.wrappers),r=Object.assign({},forminatorData.userRoles),n=function(t){e.props.history.push("/"+t)},o=void 0,l=void 0;return forminatorData.isMainSite?(o=(0,f.translate)("Network's Main Site Role"),l=(0,f.translate)("If you don't want to create a user in the network's main site, set this meta key to {{strong}}Don't create a user in the network's main site{{/strong}}.",{components:{strong:p.default.createElement("strong",null)}}),r.notCreate={name:"Don't create a user in the network's main site",capabilities:{read:!0}}):(o=(0,f.translate)("User Role"),l=""),p.default.createElement(F.default,{label:(0,f.translate)("User Meta Mapping"),description:(0,f.translate)("Assign your form fields to the user meta keys to use the data collected from the visitor to create a user profile.")},p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("h4",{className:"sui-settings-label"},(0,f.translate)("Default Meta Keys")),p.default.createElement("p",{className:"sui-description",style:{marginBottom:10}},(0,f.translate)("Assign form fields to the default WordPress user meta keys (used in Profiles) below. You can assign a form field to multiple meta keys. If you assign a non-required form field to a required user meta, that form field will automatically become required in your form.")),p.default.createElement("div",{className:"sui-border-frame"},p.default.createElement(g.default,s({},this.props,{property:"registration-username-field",label:(0,f.translate)("Username"),defaultValue:"text-1",fieldClass:"field-required",required:!0}),p.default.createElement("option",{value:""},(0,f.translate)("Select a field")),_.map(t,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},(0,d.escapeHTML)(e.label)," | ",e.element_id)})),p.default.createElement(g.default,s({},this.props,{property:"registration-email-field",label:(0,f.translate)("Email"),defaultValue:"email-1",fieldClass:"field-required",required:!0}),p.default.createElement("option",{value:""},(0,f.translate)("Select a field")),_.map(t,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},(0,d.escapeHTML)(e.label)," | ",e.element_id)})),p.default.createElement(y.default,s({},this.props,{property:"registration-first-name-field",label:(0,f.translate)("First Name"),defaultValue:""}),p.default.createElement("option",{value:""},(0,f.translate)("Select a field")),_.map(t,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},(0,d.escapeHTML)(e.label)," | ",e.element_id)})),p.default.createElement(y.default,s({},this.props,{property:"registration-last-name-field",label:(0,f.translate)("Last Name"),defaultValue:""}),p.default.createElement("option",{value:""},(0,f.translate)("Select a field")),_.map(t,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},(0,d.escapeHTML)(e.label)," | ",e.element_id)})),p.default.createElement(y.default,s({},this.props,{property:"registration-website-field",label:(0,f.translate)("Website"),defaultValue:""}),p.default.createElement("option",{value:""},(0,f.translate)("Select a field")),_.map(t,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},(0,d.escapeHTML)(e.label)," | ",e.element_id)})),p.default.createElement(g.default,s({},this.props,{property:"registration-password-field",label:(0,f.translate)("Password"),defaultValue:"password-1",fieldClass:"field-required",required:!0}),p.default.createElement("option",{value:""},(0,f.translate)("Select a field")),_.map(a,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},(0,d.escapeHTML)(e.label)," | ",e.element_id)}),p.default.createElement("option",{value:"auto"},(0,f.translate)("Auto Generated Password"))),a.length>0&&"auto"===this.props.settings["registration-password-field"]&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("This form includes a {{strong}}Password field{{/strong}}. Since user passwords will be {{strong}}automatically generated{{/strong}}, the {{strong}}Password field{{/strong}} should be deleted.",{components:{strong:p.default.createElement("strong",null)}}))))),0===a.length&&"auto"===this.props.settings["registration-password-field"]&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("This form is set to {{strong}}automatically generate{{/strong}} user passwords. To allow users to set their own passwords, insert a {{strong}}Password field{{/strong}} into {{link}}this form{{/link}}.",{components:{strong:p.default.createElement("strong",null),link:p.default.createElement("a",{onClick:function(){return n("builder")},style:{cursor:"pointer"}})}}))))))),p.default.createElement(h.default,s({},this.props,{property:"registration-user-role",settingsLabel:o,default:"fixed",description:(0,f.translate)("Choose which user role you want to assign to the visitors signing up. You can either assign a fixed user role to all of them or assign a user role conditionally, based on their response to the form fields.")}),p.default.createElement(j.default,{value:"fixed",label:(0,f.translate)("Fixed Role to All"),boxClass:"sui-tab-boxed"},p.default.createElement(w.default,s({},this.props,{property:"registration-role-field",label:o,defaultValue:"subscriber",description:l,required:!0}),_.map(r,function(e,t){return p.default.createElement("option",{value:t,key:t},e.name)}))),p.default.createElement(j.default,{value:"conditionally",label:(0,f.translate)("Assign Role Conditionally")},p.default.createElement(T.default,s({},this.props,{updateProperty:this.updateProperty,settings:this.state,state:this.state,metaDescription:(0,f.translate)('No custom user meta created yet. Click on "+ Add Custom User Meta" to create custom user meta and map form fields to it.')})))),p.default.createElement(h.default,s({},this.props,{property:"custom-mapping",settingsLabel:(0,f.translate)("Custom User Meta"),default:"none",description:(0,f.translate)("Create custom user meta keys and assign your form fields to them to set additional user meta keys upon successful user registration.")}),p.default.createElement(P.default,{value:"none",label:(0,f.translate)("None")}),p.default.createElement(j.default,{value:"custom",label:(0,f.translate)("Add Custom User Meta")},p.default.createElement(N.default,s({},this.props,{updateProperty:this.updateProperty,settings:this.state,state:this.state,metaDescription:(0,f.translate)('No custom user meta created yet. Click on "+ Add Custom User Meta" to create custom user meta and map form fields to it.')})))))}}]),t}(c.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 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(597),d=r(f),m=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.updateValue=a.updateValue.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateRuleValue=a.updateRuleValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers),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}),a.validateConditions(),a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("user_role",e),_.isUndefined(this.props.actions)||this.props.actions.settingsActions.updateSetting("user_role",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.user_role,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:"updateValue",value:function(e,t){var a=this.getPropState();a[e].role=t,this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateRuleValue",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({role:"subscriber",element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.user_role,"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;return c.default.createElement("div",{className:"sui-box-builder"},c.default.createElement("div",{className:"fui-visibility sui-box-builder-body",style:{margin:0}},c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.state.user_role,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateValue:e.updateValue,updateField:e.updateField,updateRule:e.updateRule,updateRuleValue:e.updateRuleValue,updateInputValue:e.updateInputValue,fields:e.fields}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addRule},c.default.createElement("span",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add User Role"))))}}]),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 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(17),d=a(7),m=r(d),h=a(4),b=r(h),y=a(2),v=r(y),g=a(19),E=r(g),w=a(16),O=r(w),P=a(109),k=r(P),j=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateValue=a.updateValue.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateRuleValue=a.updateRuleValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateValue",value:function(e,t){this.props.updateValue(this.props.counter,t)}},{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:"updateRuleValue",value:function(e){this.props.updateRuleValue(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:"getEmailOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["address","captcha","date","consent","gdprcheckbox","html","name","number","slider","page-break","phone","postdata","section","time","upload","website","textarea","text","paypal","stripe","currency","calculation","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"render",value:function(){var e=this,t="routing-"+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=_.isEmpty(this.props.rule.role)?"subscriber":this.props.rule.role,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["day_is","day_is_not","month_is","month_is_not"],s=["Su","Mo","Tu","We","Th","Fr","Sa"],u=void 0,d=void 0,h=Object.assign({},forminatorData.userRoles);return forminatorData.isMainSite?(u=(0,p.translate)("Network's Main Site Role"),d=(0,p.translate)("If you don't want to create a user in the network's main site, set this meta key to {{strong}}Don't create a user in the network's main site{{/strong}}.",{components:{strong:c.default.createElement("strong",null)}}),h.notCreate={name:"Don't create a user in the network's main site",capabilities:{read:!0}}):(u=(0,p.translate)("User Role"),d=""),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-sitemap fui-visibility-rule-icon","aria-hidden":"true"}),c.default.createElement("span",{className:"fui-visibility-rule-text"},(0,p.translate)('{{strong}}"%(label)s"{{/strong}} when {{strong}}%(field)s{{/strong}} %(rule)s {{strong}}%(value)s{{/strong}}',{args:{label:(0,p.ucfirst)(n),field:a.label,rule:(0,p.getRuleLabel)(this.props.rule.rule,a.field_type),value:r},components:{strong:c.default.createElement("strong",null)}})),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,{property:"role",settings:this.props.rule,label:u,defaultValue:"subscriber",value:this.props.rule.role,description:d,updateProperty:this.updateValue,required:!0}),_.map(h,function(e,t){return c.default.createElement("option",{value:t,key:t},e.name)})),c.default.createElement(m.default,{className:"sui-align-bottom sui-spacing-10"},c.default.createElement(b.default,{cols:"6",customClass:"sui-padding-right-10"},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},(0,f.escapeHTML)(e.label)," | ",e.element_id)}))),c.default.createElement(b.default,{cols:"6",customClass:"sui-padding-left-10"},c.default.createElement(O.default,i({},this.props,{elementId:t+"-condrule",label:(0,p.translate)("Condition (Required)"),settings:this.props.rule,property:"rule",updateProperty:this.updateRule,options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"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"))),"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 greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!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")))))),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"12"},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.updateRuleValue.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},(0,f.escapeHTML)(e.label))}))),!a.hasOptions&&"signature"!==a.field_type&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,placeholder:(0,p.translate)("Enter value"),label:(0,p.translate)("Value")})),!a.hasOptions&&"date"===a.field_type&&("month_is"===this.props.rule.rule==="month_is"||"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.updateRuleValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(o,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.updateRuleValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select day")),_.map(s,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(k.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(v.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=j},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(17),d=a(6),m=r(d),h=a(16),b=(r(h),a(19)),y=r(b),v=a(11),g=r(v),E=a(3),w=r(E),O=a(294),P=r(O),k=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.getFields)(this.props.wrappers,["password"]),t=forminatorData.isSubdomainNetwork?"http://sitename.website.com":"http://website.com/network-name/sitename";return 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)("Site Registration")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow site registrations on your multisite network and different related settings."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(m.default,i({},this.props,{property:"site-registration",default:"enable"}),c.default.createElement(w.default,{value:"enable",label:(0,p.translate)("Enable")},c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"sui-description",style:{marginTop:"0",marginBottom:"10px"}},(0,p.translate)("Assign form fields to the default WordPress site meta keys below.")),c.default.createElement(P.default,i({},this.props,{property:"site-registration-name-field",label:(0,p.translate)("Site Name"),defaultValue:"",fieldClass:"field-required",required:!0,description:(0,p.translate)("Site address meta key will be automatically set based on this field as {{strong}}"+t+"{{/strong}}",{components:{strong:c.default.createElement("strong",null)}})}),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(P.default,i({},this.props,{property:"site-registration-title-field",label:(0,p.translate)("Site Title"),defaultValue:"",fieldClass:"field-required",required:!0}),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(y.default,i({},this.props,{property:"site-registration-role-field",label:(0,p.translate)("Site Role"),defaultValue:"",required:!0}),_.map(forminatorData.userRoles,function(e,t){return c.default.createElement("option",{value:t,key:t},e.name)}))))),c.default.createElement(g.default,{value:"disable",label:(0,p.translate)("Disable")})))))}}]),t}(u.Component);t.default=k},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(6),d=r(f),m=a(16),h=r(m),b=a(11),y=r(b),v=a(3),g=r(v),E=a(20),w=r(E),O=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.settings["registration-password-field"])?"":this.props.settings["registration-password-field"],t=_.isUndefined(this.props.settings["activation-method"])?"":this.props.settings["activation-method"];return 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)("User Account Activation")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the activation method and other settings for the user accounts."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{property:"activation-method",settingsLabel:(0,p.translate)("Activation Method"),default:"default",description:(0,p.translate)("By default, the user account is activated upon form submission. However, you can choose between {{strong}}Email Activation{{/strong}}, which requires the user to click on an activation email, or {{strong}}Manual Approval{{/strong}} which requires site admin to approve an account.",{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")}),c.default.createElement(g.default,{value:"email",label:(0,p.translate)("Email Activation"),boxClass:"sui-tab-boxed"},c.default.createElement(h.default,i({},this.props,{property:"confirmation-page",label:(0,p.translate)("Confirmation Page"),defaultValue:"",triggerChange:"1",description:(0,p.translate)("Choose the page to redirect users to when they click on the confirmation link.")}),_.map(forminatorData.pages,function(e,t){return c.default.createElement("option",{value:e.ID,key:t},_.isEmpty(e.post_title)?(0,p.translate)("page ID: ")+e.ID:e.post_title)}))),c.default.createElement(g.default,{value:"manual",label:(0,p.translate)("Manual Approval")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("A site admin will have to manually approve each entry from the submissions page to activate the user accounts."))))))),c.default.createElement(w.default,i({},this.props,{property:"activation-email",settingsLabel:(0,p.translate)("Activation Email"),default:"default",settingsDesc:(0,p.translate)("By default, WordPress sends an activation email containing user account information after the account activation. However, you can choose not to send this email.")}),c.default.createElement("div",{value:"default"},(0,p.translate)("Default")),c.default.createElement("div",{value:"none"},(0,p.translate)("None"))),"auto"===e&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Since the {{strong}}Password{{/strong}} user meta key is mapped to {{strong}}Auto Generate Password{{/strong}}, it's recommended to keep this option to {{strong}}Default{{/strong}} so the auto-generated password can be sent to the users.",{components:{strong:c.default.createElement("strong",null)}}))))),"manual"===t&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Since the activation requires manual approval from site admin, it's recommended to keep this option to {{strong}}Default{{/strong}} to let users know when their account is activated.",{components:{strong:c.default.createElement("strong",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 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(24),d=r(f),m=a(30),h=r(m),b=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.settings["hide-registration-form"])?"":this.props.settings["hide-registration-form"];return 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)("Additional Settings")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("These settings will add some extra control on your registration process."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("div",{style:{marginBottom:"10px"}},"manual"!==this.props.settings["activation-method"]&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Automatically log in newly activated users"),description:(0,p.translate)("This will automatically log in a user upon successful activation of their account."),property:"automatic-login"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Hide the form if a user is already logged in"),description:(0,p.translate)("Enabling this will hide the form from logged-in users."),property:"hide-registration-form",unWrap:!0}))),e&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(h.default,i({},this.props,{property:"hidden-registration-form-message",label:(0,p.translate)("Message (optional)"),hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright",placeholder:(0,p.translate)("Type a message for logged in users here..."),description:(0,p.translate)("You can optionally add a message for logged in users, which appears when the form is hidden.")}))))))}}]),t}(u.Component);t.default=b},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{settings:e.settings,wrappers:e.wrappers}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(108),u=r(s),c=a(62),p=r(c),f=a(211),d=r(f),m=a(602),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.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 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(603),f=r(p),d=a(604),m=r(d),h=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(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)};return u.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Login User"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props),u.default.createElement(m.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behavior"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=h},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(17),d=a(2),m=r(d),h=a(6),b=r(h),y=a(16),v=(r(y),a(19)),g=r(v),E=a(11),w=r(E),O=a(3),P=r(O),k=a(7),j=r(k),x=a(4),N=r(x),C=a(294),T=r(C),S=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=((0,p.getFields)(this.props.wrappers,["password"]),(0,p.mapFieldsByType)("email",this.props.wrappers)),t=(0,p.mapFieldsByType)("text",this.props.wrappers),a=e.concat(t),r=(0,p.mapFieldsByType)("password",this.props.wrappers),n=_.isEmpty(a)?"":a[0].element_id,o=this.props.settings["login-username-field"],l=_.find(a,function(e){return o===e.element_id});return this.props.settings["login-username-field"]=l?o:n,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)("Login Fields")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Map your form fields to the meta keys and have additional control over the login form fields."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Form Fields Mapping")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Assign your form fields to the meta keys required to login a user.")),c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(c.default.Fragment,null,c.default.createElement(T.default,i({},this.props,{property:"login-username-field",label:(0,p.translate)("Username"),defaultValue:n,fieldClass:"field-required",required:!0}),_.map(a,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label)," | ",e.element_id)})),c.default.createElement(T.default,i({},this.props,{property:"login-password-field",label:(0,p.translate)("Password"),defaultValue:"password-1",fieldClass:"field-required",required:!0}),_.map(r,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label)," | ",e.element_id)})))),c.default.createElement(b.default,i({},this.props,{property:"remember-me",settingsLabel:(0,p.translate)("Remember Me Field"),default:"true",description:(0,p.translate)("Choose whether to show the {{strong}}Remember Me{{/strong}} field in your form. This option will add a Remember Me checkbox before the submit button.",{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement(P.default,{value:"true",label:(0,p.translate)("Show"),boxClass:"sui-tab-boxed"},c.default.createElement(j.default,null,c.default.createElement(N.default,{cols:"12"},c.default.createElement(m.default,i({},this.props,{property:"remember-me-label",placeholder:(0,p.translate)("Remember me"),label:(0,p.translate)("Label")})))),c.default.createElement(j.default,null,c.default.createElement(N.default,{cols:"4"},c.default.createElement(m.default,i({},this.props,{type:"number",defaultValue:"0",property:"remember-me-cookie-number",placeholder:"10",label:(0,p.translate)("Cookie Expiration")}))),c.default.createElement(N.default,{cols:"4"},c.default.createElement(g.default,i({},this.props,{defaultValue:"days",property:"remember-me-cookie-type",label:" "}),c.default.createElement("option",{value:"days"},(0,p.translate)("day(s)")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("week(s)")),c.default.createElement("option",{value:"months"},(0,p.translate)("month(s)")),c.default.createElement("option",{value:"years"},(0,p.translate)("year(s)")))),c.default.createElement(N.default,{cols:"12"},c.default.createElement("span",{className:"sui-description sui-description-toggle"},(0,p.translate)("Users will have to provide login details again after the selected period."))))),c.default.createElement(w.default,{value:"false",label:(0,p.translate)("Hide")})))))}}]),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 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(24),d=r(f),m=a(30),h=r(m),b=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.settings["hide-login-form"])?"":this.props.settings["hide-login-form"];return 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)("Additional Settings")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("These settings will add some extra control on your login process."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("div",{style:{marginBottom:"10px"}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Hide the form if a user is already logged in"),description:(0,p.translate)("Enabling this will hide the form from logged-in users."),property:"hide-login-form",unWrap:!0}))),e&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(h.default,i({},this.props,{property:"hidden-login-form-message",label:(0,p.translate)("Message (optional)"),hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright",placeholder:(0,p.translate)("Type a message for logged in users here..."),description:(0,p.translate)("You can optionally add a message for logged in users, which appears when the form is hidden.")}))))))}}]),t}(u.Component);t.default=b},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{settings:e.settings,wrappers:e.wrappers,notifications:e.notifications,behaviors:e.behaviorArray,formType:e.settings["form-type"]||"default"}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),behaviorsActions:(0,i.bindActionCreators)(d,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(108),u=r(s),c=a(62),p=r(c),f=a(229),d=r(f),m=a(606),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.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 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(607),d=r(f),m=a(610),h=r(m),b=a(295),y=r(b),v=a(611),g=r(v),E=a(612),_=r(E),w=a(613),O=r(w),P=a(614),k=r(P),j=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:"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,p.hasFieldType)("stripe",this.props.wrappers),r=(0,p.hasFieldType)("paypal",this.props.wrappers),n=forminatorData.currentForm.settings["form-type"]||"default";return c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Behavior"))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("div",{className:"sui-box-settings-row"},"leads"===this.props.formType&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Some of the settings you'd find in a regular form are unavailable in this form template because they are either unnecessary or controlled by the parent quiz automatically.")))))),c.default.createElement(d.default,this.props),(a||r)&&c.default.createElement(k.default,this.props),c.default.createElement(h.default,this.props),c.default.createElement(y.default,i({},this.props,{moduleSlug:"form"})),"leads"!==this.props.formType&&c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(_.default,this.props),c.default.createElement(O.default,this.props))),c.default.createElement("div",{className:"sui-box-footer"},"registration"!==n&&"login"!==n&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("Appearance")),"registration"===n&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("registration")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("User Registration")),"login"===n&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("login")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("User Login")),c.default.createElement("div",{className:"sui-actions-right"},"leads"===this.props.formType&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("settings")}},(0,p.translate)("Settings"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"leads"!==this.props.formType&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("pdf")}},(0,p.translate)("PDF"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=j},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(20),d=r(f),m=a(24),h=r(m),b=a(6),y=r(b),v=a(2),g=r(v),E=a(11),_=r(E),w=a(3),O=r(w),P=a(608),k=r(P),j=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Submission Behavior")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Configure what should happen when a user submits this form."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},"leads"!==this.props.formType&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("After submission")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:10}},(0,p.translate)("Choose what happens after successful submission of this form. Multiple submission behaviors can be added and conditionally processed based on submitted form data.")),this.props.behaviors.length>1&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{style:"block",margin:"10px 0 20px"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You’ll need to configure conditional logic for each submission behavior to ensure Forminator knows when each behavior should be processed. If no conditions have been set, the first submission behavior will be processed."))))),c.default.createElement("div",{className:"sui-box-body",style:{marginBottom:30}},c.default.createElement(k.default,this.props)),c.default.createElement(y.default,i({},this.props,{property:"enable-ajax",defaultValue:"true",settingsLabel:(0,p.translate)("Method"),disabled:(0,p.hasFieldType)("stripe",this.props.wrappers),description:(0,p.translate)("Choose whether you want to use AJAX to send this form without reloading the page, or use the more traditional method of reloading the page.")}),c.default.createElement(O.default,{value:"true",label:(0,p.translate)("Ajax")},(0,p.hasFieldType)("stripe",this.props.wrappers)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note that you can only use the Ajax submission method while using the Stripe field in your form. The Ajax method will hide your form after the successful submission and only your inline success message will be shown. The form will be available again when the page is reloaded.")))))),c.default.createElement(O.default,{value:"false",label:(0,p.translate)("Page Reload")},(0,p.hasFieldType)("stripe",this.props.wrappers)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note that you can only use the Ajax submission method while using the Stripe field in your form. The Ajax method will hide your form after the successful submission and only your inline success message will be shown. The form will be available again when the page is reloaded.")))))))),c.default.createElement(d.default,i({},this.props,{property:"validation",defaultValue:"true",settingsLabel:(0,p.translate)("Validation"),settingsDesc:(0,p.translate)("For fields that you've chosen to validate, choose how you want the validation to behave. On submission will run validation checks when the user submits the form using Ajax (recommended). The Live method will check fields at the same time as the user fills them out. Server side does the validation using PHP and returns any error messages after a page reload.")}),c.default.createElement("div",{value:"on_submit"},(0,p.translate)("On Submit")),c.default.createElement("div",{value:"server"},(0,p.translate)("Server Side"))),c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Enable inline validation (as user types)"),property:"validation-inline",unWrap:!0})),c.default.createElement("div",{style:{marginTop:"30px"}},c.default.createElement(y.default,i({},this.props,{property:"submission-indicator",settingsLabel:(0,p.translate)("Submission Indicator"),default:"",description:(0,p.translate)("Choose whether you want to show a loader on your form until it is submitted. We highly recommend using this on long forms or forms with payment field since they may take a few seconds to submit.")}),c.default.createElement(O.default,{value:"show",boxClass:"sui-tab-boxed",label:(0,p.translate)("Show Loader")},c.default.createElement(g.default,i({},this.props,{property:"indicator-label",placeholder:(0,p.translate)("E.g. Submitting..."),defaultValue:"Submitting...",description:(0,p.translate)("Choose the text to show on the right of loading icon")}))),c.default.createElement(_.default,{label:(0,p.translate)("None"),value:""})))))}}]),t}(u.Component);t.default=j},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(609),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addBehavior=a.addBehavior.bind(a),a.closeModal=a.closeModal.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"behavior")}},{key:"addBehavior",value:function(){var e={slug:"behavior-"+(0,p.randNumber)(),autoclose:!0,"autoclose-time":5,newtab:"sametab"};e["submission-behaviour"]=this.props.settings["submission-behaviour"]?this.props.settings["submission-behaviour"]:"behaviour-thankyou",this.props.settings["thankyou-message"]&&(e["thankyou-message"]=this.props.settings["thankyou-message"]),this.props.settings["email-thankyou-message"]&&(e["email-thankyou-message"]=this.props.settings["email-thankyou-message"]),this.props.settings["manual-thankyou-message"]&&(e["manual-thankyou-message"]=this.props.settings["manual-thankyou-message"]),this.props.actions.modalActions.showModal({open:!0,new:!0,behavior:e,field:this.props.field,behaviors:this.props.behaviors,closeModal:this.closeModal},"behavior")}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{className:"sui-box-builder sui-flushed",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-box-builder-body"},this.props.behaviors.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.behaviors,function(t,a){return c.default.createElement(d.default,i({key:t.slug,behavior:t},e.props,{counter:a}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addBehavior},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Behavior"))))}}]),t}(u.Component);t.default=m},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 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=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.deleteBehavior=a.deleteBehavior.bind(a),a.editModal=a.editModal.bind(a),a.closeEditModal=a.closeEditModal.bind(a),a}return l(t,e),i(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getAllWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.behavior.slug})}},{key:"deleteBehavior",value:function(){var e=[].concat(r(this.props.behaviors)),t=this.getAllWithoutCurrent(e);this.closeMenu(),this.props.actions.behaviorsActions.updateBehaviorArray(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"behavior")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,behavior:this.props.behavior,field:this.props.field,behaviors:this.props.behaviors,closeModal:this.closeEditModal},"behavior")}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers);if(!_.isUndefined(this.props.behavior.conditions)){var t=this.props.behavior.conditions[0];if(!_.isUndefined(t)){var a=_.filter(e,function(e){return e.element_id===t.element_id});if(!_.isUndefined(a)&&!_.isUndefined(a[0])){var r=a[0].label,n=(0,c.getRuleLabel)(t.rule,a.field_type),o=(0,c.getConditionLabel)(a[0],t),l=this.props.behavior.conditions.length,i="";return l-1>0&&(i="+ "+(l-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":(0,c.translate)("Process behavior if")+" "+r+" "+n+" "+o+" "+i,"aria-hidden":"true"},u.default.createElement("i",{className:"sui-icon-link sui-sm"}))}}}}},{key:"render",value:function(){var e="",t="",a=(0,c.getSubmissionBehaviors)(),r=Object.keys(a)[0];_.isUndefined(this.props.behavior["submission-behaviour"])||_.isEmpty(this.props.behavior["submission-behaviour"])||(r=this.props.behavior["submission-behaviour"]),e=this.props.behavior.label?this.props.behavior.label:a[r],t=r===Object.keys(a)[1]?this.props.behavior["redirect-url"]:this.props.behavior["thankyou-message"]?jQuery("<div>"+this.props.behavior["thankyou-message"]+"</div>").text():"";var n=this.conditionMarkup();return u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},!_.isUndefined(this.props.behavior.conditions)&&this.props.behavior.conditions.length>0&&u.default.createElement(u.default.Fragment,null,n),u.default.createElement("div",{className:"sui-field-info fui-behaviors-info",onClick:this.editModal},u.default.createElement("div",{className:"sui-builder-field-label fui-behaviors-label",style:{minWidth:"90px"}},u.default.createElement("i",{className:"","aria-hidden":"true"}),u.default.createElement("span",null,e)),u.default.createElement("div",{className:"sui-builder-field-label fui-notifications-recipient"},u.default.createElement("span",null,t))),u.default.createElement("div",{className:"sui-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)("Open condition settings"))),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{onClick:this.editModal},u.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit Behavior"))),this.props.behaviors.length>1&&u.default.createElement("li",null,u.default.createElement("button",{className:"sui-option-red",onClick:this.deleteBehavior},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),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 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){var a=[],r=!0,n=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw o}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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(7),m=r(d),h=a(4),b=r(h),y=a(24),v=r(y),g=a(35),E=r(g),w=a(16),O=r(w),P=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),u(t,[{key:"getFieldsWithAutofill",value:function(){var e=this;this.fields=(0,f.getFields)(this.props.wrappers,[]),this.savedFieldsAutofill=_.isUndefined(this.props.settings["fields-autofill"])?[]:this.props.settings["fields-autofill"],this.fieldsWithAutoFill=[],this.fields.map(function(t){var a=t.field_type,r=(0,f.getFieldAutofillProviders)(a),n=t.field_slug;if(!_.isUndefined(r[n])&&!_.isUndefined(r[n].values)&&!_.isEmpty(r[n].values)){var o={element_id:"",provider:"",is_editable:"no"},l=e.savedFieldsAutofill.filter(function(e){return e.element_id===t.element_id}),i=!1;_.isUndefined(l)||_.isEmpty(l)||(l=l[0],o={element_id:l.element_id,provider:l.provider,is_editable:l.is_editable},i=!0),t.selectedProvider=o,t.isActive=i,t.autofillProviders=r[n].values,e.fieldsWithAutoFill.push(t)}})}},{key:"maybeGetNoFieldsMarkup",value:function(){return _.isEmpty(this.fieldsWithAutoFill)?p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("Form does not have fields that can be autofilled."))))):""}},{key:"updateProvider",value:function(e,t,a){var r=this.savedFieldsAutofill.filter(function(e){return e.element_id===a});_.isEmpty(r)?(r={element_id:a,provider:t,is_editable:"no"},this.savedFieldsAutofill.push(r)):(r=r[0],r.provider=t,this.savedFieldsAutofill=this.savedFieldsAutofill.map(function(e){return e.element_id===a?r:e})),this.props.actions.settingsActions.updateSetting("fields-autofill",this.savedFieldsAutofill)}},{key:"updateEditable",value:function(e,t,a){var r=this.savedFieldsAutofill.filter(function(e){return e.element_id===a});_.isEmpty(r)?(r={element_id:a,provider:"",is_editable:t},this.savedFieldsAutofill.push(r)):(r=r[0],r.is_editable=t,this.savedFieldsAutofill=this.savedFieldsAutofill.map(function(e){return e.element_id===a?r:e})),this.props.actions.settingsActions.updateSetting("fields-autofill",this.savedFieldsAutofill)}},{key:"renderProviderOptions",value:function(e){var t=[];return Object.entries(e).forEach(function(e){var a=s(e,2),r=a[0],n=a[1],o=[];Object.entries(n.attributes).forEach(function(e){var t=s(e,2),a=t[0],r=t[1];o.push(p.default.createElement("option",{value:a,key:a},r.name))}),t.push(p.default.createElement("optgroup",{label:n.name,key:r},o))}),t}},{key:"render",value:function(){var e=this;this.getFieldsWithAutofill();var t=_.isUndefined(this.props.settings["use-autofill"])?"":this.props.settings["use-autofill"],a="sui-hidden";return t&&"false"!==t&&(a="sui-toggle-content"),!(!_.isUndefined(this.props.settings["form-type"])&&_.contains(["registration","login"],this.props.settings["form-type"]))&&p.default.createElement("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-1"},p.default.createElement("span",{className:"sui-settings-label"},(0,f.translate)("Autofill")),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("If the user filling out the form is logged in, we can auto-fill fields with any available data."))),p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement(v.default,i({},this.props,{label:(0,f.translate)("Enable Autofill"),property:"use-autofill",unWrap:!0})),p.default.createElement("div",{className:a,style:{marginTop:"10px"}},this.maybeGetNoFieldsMarkup(),p.default.createElement("div",{className:"sui-accordion"},this.fieldsWithAutoFill.map(function(t){return p.default.createElement(E.default,i({},e.props,{label:t.label,key:t.element_id}),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"6"},p.default.createElement(O.default,{property:"provider",updateProperty:function(a,r){e.updateProvider(a,r,t.element_id)},defaultValue:"",label:(0,f.translate)("Autofill source"),settings:t.selectedProvider,hasSearch:!0,elementId:t.element_id},p.default.createElement("option",{value:""},(0,f.translate)("Disable Autofill")),e.renderProviderOptions(t.autofillProviders))),p.default.createElement(b.default,{cols:"6"},p.default.createElement(O.default,{property:"is_editable",updateProperty:function(a,r){e.updateEditable(a,r,t.element_id)},defaultValue:"no",label:(0,f.translate)("Editable"),settings:t.selectedProvider,elementId:t.element_id+"_editable"},p.default.createElement("option",{value:"no"},(0,f.translate)("No")),p.default.createElement("option",{value:"yes"},(0,f.translate)("Yes"))))))})))))}}]),t}(c.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 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(6),d=r(f),m=a(11),h=r(m),b=a(109),y=r(b),v=a(3),g=r(v),E=a(2),_=r(E),w=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Lifespan")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default this form will always be available for submissions. However you can lock down if need be."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label",style:{marginBottom:"10px"}},(0,p.translate)("Expiry")),c.default.createElement(d.default,i({},this.props,{property:"form-expire",default:"no_expire",simple:!0}),c.default.createElement(h.default,{value:"no_expire"},(0,p.translate)("None")),c.default.createElement(g.default,{value:"date",boxClass:"sui-tab-boxed",label:(0,p.translate)("Date")},c.default.createElement(y.default,i({},this.props,{property:"expire_date",placeholder:(0,p.translate)("20 April 2018"),hasWordFormat:!0})),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Expiration Message"),placeholder:(0,p.translate)("Whoops! This form has expired."),property:"expire_message",description:(0,p.translate)("Add some custom message for users to see when your form stops appearing or leave empty to show nothing (just an empty space).")}))),c.default.createElement(g.default,{value:"submits",boxClass:"sui-tab-boxed",label:(0,p.translate)("Submissions")},c.default.createElement(_.default,i({},this.props,{placeholder:"10",property:"expire_submits",type:"number"})),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Expiration Message"),placeholder:(0,p.translate)("Whoops! This form has expired."),property:"expire_message",description:(0,p.translate)("Add some custom message for users to see when your form stops appearing or leave empty to show nothing (just an empty space).")}))))))}}]),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 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(24),d=r(f),m=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Rendering")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how you want your form to be rendered for users."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{property:"use_ajax_load",label:(0,p.translate)("Load form using AJAX"),description:(0,p.translate)("Enabling this feature will load the form via AJAX after the page has loaded up, effectively speeding up your page load time. This method can also (in most cases) avoid page caching issues with your form.")})),c.default.createElement(d.default,i({},this.props,{property:"use_donotcachepage",label:(0,p.translate)("Prevent page caching on form pages"),description:(0,p.translate)("Page caching plugins serve a static HTML version of the page which can cause issues to your dynamic forms. By enabling this, we'll use {{strong}}DONOTCACHEPAGE{{/strong}} constant to prevent pages with this form on it from being cached.",{components:{strong:c.default.createElement("strong",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 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(7),d=(r(f),a(4)),m=(r(d),a(24)),h=r(m),b=a(6),y=r(b),v=a(3),g=r(v),E=a(2),w=r(E),O=a(30),P=r(O),k=a(35),j=(r(k),a(16)),x=(r(j),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:"componentDidUpdate",value:function(){this.addSaveAndContinueNotification()}},{key:"addSaveAndContinueNotification",value:function(){var e=_.findIndex(this.props.notifications,{slug:"notification-0008-7000"});if(!this.props.settings.use_save_and_continue||!this.props.settings.sc_email_link)return void(-1!==e&&this.props.notifications.splice(e,1));var t={slug:"notification-0008-7000",recipients:"{save_and_continue_email}",label:(0,p.translate)("Save and Continue"),"email-subject":(0,p.translate)("Your {form_name} form on {site_title} has been saved as draft"),"email-editor":(0,p.translate)("<p>Hi there!</p><p>You've successfully saved <b>{form_name}</b> form on <a href='{site_url}' target='_blank' rel='noopener noreferrer' style='color:#17A8E3;'>{site_title}</a>.\nTo continue where you left off, click the link below or copy the link to your web browser.</p><p><a href='{form_link}' target='_blank' rel='noopener noreferrer' style='color:#17A8E3;'>{form_link}</a></p><p>The above link will expire in {retention_period} days. Also note that anyone visiting the link will be able to view your partially completed form data.</p>"),"email-recipients":"default","email-attachment":"false",type:"save_draft"};-1===e&&this.props.notifications.push(t)}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=this.props.settings,r=!_.isUndefined(a.use_save_and_continue)&&a.use_save_and_continue;return _.isUndefined(a.sc_email_link)&&(a.sc_email_link=!0),_.isUndefined(a.sc_message)&&(a.sc_message=(0,p.translate)("<p>Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.</p><p>These fields weren't saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.</p>")),"login"===a["form-type"]?"":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)("Save and Continue")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Enable this option if you want to allow users save their progress and return to complete the form at a later time."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(h.default,i({},this.props,{property:"use_save_and_continue",label:(0,p.translate)("Enable save and continue"),unWrap:!0})),r&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{property:"sc_tab",default:"configuration",wrapperClass:"save-continue-wrap mtop10",simple:!0,basicTabs:!0}),c.default.createElement(g.default,{value:"configuration",boxClass:"sui-tab-boxed",label:(0,p.translate)("Configuration")},c.default.createElement(w.default,i({},this.props,{property:"sc_draft_retention",label:(0,p.translate)("Draft retention period"),defaultValue:"30",description:(0,p.translate)("Enter the number of days a form's draft will be stored on your server before they are automatically deleted."),suffix:"days"})),c.default.createElement(w.default,i({},this.props,{property:"sc_link_text",label:(0,p.translate)("Save form link text"),defaultValue:(0,p.translate)("Save as Draft"),description:(0,p.translate)("Edit text for the save draft link.")})),c.default.createElement(P.default,i({},this.props,{property:"sc_message",extraId:"-draft",updateProperty:this.updateProperty,label:(0,p.translate)("Resume message"),description:(0,p.translate)("This message will be shown when a form is successfully saved as draft."),editorOptions:forminatorData.variables,cutomTinymce:"bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link",enableFormData:"true"})),c.default.createElement("div",{role:"alert",className:"sui-notice sui-active","aria-live":"assertive",style:{display:"block"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("These fields will not be saved in the submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload."))))),c.default.createElement(h.default,i({},this.props,{property:"sc_email_link",label:(0,p.translate)("Allow send draft link to email"),description:(0,p.translate)("Enable to allow users send the draft form's link to their email."),unWrap:!0})),a.sc_email_link&&c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("p",null,c.default.createElement("small",null,(0,p.translate)("Configure the send link email form below. You can edit the email contents in the {{link}}Email Notifications{{/link}} tab.",{components:{link:c.default.createElement("a",{onClick:function(){return t("notifications")},href:"#"})}}))),c.default.createElement(w.default,i({},this.props,{property:"sc_email_input_label",label:(0,p.translate)("Email input label"),defaultValue:(0,p.translate)("Send draft link to")})),c.default.createElement(w.default,i({},this.props,{property:"sc_email_placeholder",label:(0,p.translate)("Placeholder (Optional)"),defaultValue:(0,p.translate)("E.g., johndoe@gmail.com")})),c.default.createElement(w.default,i({},this.props,{property:"sc_email_button_label",label:(0,p.translate)("Send link button label"),defaultValue:(0,p.translate)("Send draft link")})))),c.default.createElement(g.default,{value:"permission",boxClass:"sui-tab-boxed",label:(0,p.translate)("Permission")},c.default.createElement("p",{style:{marginBottom:"20px"}},c.default.createElement("small",null,(0,p.translate)("Select which users can save their forms as draft."))),c.default.createElement(y.default,i({},this.props,{property:"sc_permission",default:"public",simple:!0}),c.default.createElement(g.default,{value:"public",boxClass:"sui-tab-boxed",label:(0,p.translate)("Public")},c.default.createElement("p",null,c.default.createElement("small",null,(0,p.translate)("Every user can save their forms as draft.")))),c.default.createElement(g.default,{value:"registered",boxClass:"sui-tab-boxed",label:(0,p.translate)("Registered Users")},c.default.createElement("p",null,c.default.createElement("small",null,(0,p.translate)("Only registered users can save their forms as draft."))))))))))}}]),t}(u.Component));t.default=x},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(24),d=r(f),m=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return 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)("Payments")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how you want the form to behave when you are collecting payments."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Require SSL certificate to submit this form"),property:"payment_require_ssl",description:(0,p.translate)("Enabling this will allow the form submission on an HTTPS page only. It is highly recommended to embed the form with payments action on an HTTPS page to avoid any man in the middle attack.")}))))}}]),t}(u.Component);t.default=m},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,settings:e.settings,formType:e.settings["form-type"]||"default",pdfs:e.pdfs||{},formState:e}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),pdfsActions:(0,i.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(108),u=r(s),c=a(62),p=r(c),f=a(396),d=r(f),m=a(616),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.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 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(617),f=r(p),d=a(618),m=r(d),h=a(619),b=r(h),y=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(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=forminatorData.isPro,r=forminatorData.pdfAddonActive,n=void 0;return n=a?r?u.default.createElement(b.default,this.props):u.default.createElement(m.default,this.props):u.default.createElement(f.default,this.props),u.default.createElement("div",{id:"forminator-form-pdf",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("PDF")),u.default.createElement("div",{className:"sui-actions-left"},a&&u.default.createElement("span",{className:"sui-tag sui-tag-sm sui-tag-green"},(0,c.translate)("New")),!a&&u.default.createElement("span",{className:"sui-tag sui-tag-pro"},(0,c.translate)("Pro")))),u.default.createElement("div",{className:"sui-box-body"},n),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Behavior")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("notifications")}},(0,c.translate)("Email Notifications"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=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=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.installLink=a.installLink.bind(a),a.showModal=a.showModal.bind(a),a.closeModal=a.closeModal.bind(a),a}return o(t,e),l(t,[{key:"installLink",value:function(e){e.preventDefault(),(0,u.isTrue)(forminatorData.isPro)?(0,u.goToLink)(forminatorData.addonsUrl):this.showFeatureModal()}},{key:"showModal",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"installPDFAddon")}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"installPDFAddon")}},{key:"render",value:function(){var e=forminatorData.pluginUrl+"assets/images/";return s.default.createElement(s.default.Fragment,null,forminatorData.showBranding&&s.default.createElement("img",{src:e+"/forminator-pro-feature.png",srcSet:e+"/forminator-pro-feature.png 1x,\n\t\t\t\t\t\t"+e+"/forminator-pro-feature@2x.png 2x",className:"sui-image sui-image-center"}),s.default.createElement("p",{className:"sui-block-content-center",style:{maxWidth:"600px",margin:"15px auto"}},s.default.createElement("small",null,(0,u.translate)("Install The PDF Generator Add-on to easily generate and send PDF files (e.g., form entries, receipts, invoices, quotations) to users after form submission. A WPMU DEV Pro membership is required to install this add-on."))),s.default.createElement("p",{className:"sui-block-content-center"},s.default.createElement("button",{className:"sui-button sui-button-blue",onClick:this.showModal},(0,u.translate)("Get the Add-On"))))}}]),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(){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){var e=forminatorData.pluginUrl+"assets/images/",t=(0,u.isTrue)(forminatorData.userPermissions.manage_forminator_addons)||(0,u.isTrue)(forminatorData.userPermissions.manage_options);return s.default.createElement(s.default.Fragment,null,forminatorData.showBranding&&s.default.createElement("img",{src:e+"/forminator-disabled.png",srcSet:e+"/forminator-disabled.png 1x,\n\t\t\t\t\t\t"+e+"/forminator-disabled@2x.png 2x",className:"sui-image sui-image-center"}),s.default.createElement("p",{className:"sui-block-content-center",style:{marginTop:"30px"}},s.default.createElement("small",null,(0,u.translate)("The {{b}}Forminator PDF Generator Add-on{{/b}} is required to use the PDF generator feature. Install it from the Add-ons page.",{components:{b:s.default.createElement("b",null)}}))),t&&s.default.createElement("p",{className:"sui-block-content-center"},s.default.createElement("button",{className:"sui-button sui-button-blue",href:forminatorData.addonsUrl,onClick:function(e){(0,u.goToLink)(forminatorData.addonsUrl)}},(0,u.translate)("Get the Add-on"))))}}]),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 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(620),d=r(f),m=a(621),h=r(m),b=a(622),y=r(b),v=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"createPdf")}},{key:"render",value:function(){var e=this,t=forminatorData.pdfExtensionsEnabled;return 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)("Manage PDF files")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Create one or more PDF file templates that will be generated and populated with user data on form submissions. "))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Available PDF files")),!(0,p.isTrue)(t)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active","aria-live":"assertive",style:{display:"block",margin:"10px 0 20px"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("{{b}}Forminator PDF Generator Add-on{{/b}} requires the following modules ({{b}}mbstring{{/b}} and {{b}}gd{{/b}}). Please contact your hosting provider to enable the extensions.",{components:{b:c.default.createElement("b",null)}}))))),(0,p.isTrue)(t)&&c.default.createElement("div",{className:"pdf-files-box",style:{marginTop:"10px"}},this.props.pdfs.length>0&&c.default.createElement("table",{className:"sui-table"},c.default.createElement("tbody",null,_.map(this.props.pdfs,function(t,a){return c.default.createElement(h.default,i({},e.props,{key:a,pdf:t}))}))),this.props.pdfs.length<=0&&c.default.createElement(d.default,this.props)),c.default.createElement(y.default,this.props)))}}]),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 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(){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,(0,u.translate)("You haven't created any PDF files yet. When you do, you'll be able to view them all 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.showPreview=a.showPreview.bind(a),a.editPdf=a.editPdf.bind(a),a.deletePdf=a.deletePdf.bind(a),a.closeModal=a.closeModal.bind(a),a}return o(t,e),l(t,[{key:"showPreview",value:function(e){(0,u.goToLink)(window.location.href+"&form_type=pdf-form&forminator_action=pdf-preview&preview_nonce="+forminatorData.previewNonce+"&pdf_id="+e)}},{key:"editPdf",value:function(e){window.location.href=forminatorData.formEditUrl+"&id="+e}},{key:"deletePdf",value:function(e){this.props.actions.modalActions.showModal({open:!0,pdf:e,closeModal:this.closeModal,focusFirst:".pdf-delete-button"},"deletePdf")}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"deletePdf")}},{key:"render",value:function(){var e=this;return s.default.createElement("tr",{key:this.props.pdf.pdfId,className:"pdf-"+this.props.pdf.pdfId},s.default.createElement("td",{className:"sui-table-item-title",colSpan:2},s.default.createElement("span",{className:"sui-icon-page-pdf","aria-hidden":"true"}),this.props.pdf.pdfFilename+".pdf"),s.default.createElement("td",{colSpan:1,style:{textAlign:"right"}},s.default.createElement("button",{role:"button",className:"sui-button-icon sui-tooltip sui-tooltip-left","data-tooltip":(0,u.translate)("Preview this PDF"),onClick:function(){e.showPreview(e.props.pdf.pdfId)}},s.default.createElement("span",{className:"sui-icon-eye","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Preview this PDF"))),s.default.createElement("button",{role:"button",className:"sui-button-icon sui-tooltip sui-tooltip","data-tooltip":(0,u.translate)("Edit PDF File"),onClick:function(){e.editPdf(e.props.pdf.pdfId)}},s.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Edit PDF File"))),s.default.createElement("button",{role:"button",className:"sui-button-icon sui-button-red sui-tooltip","data-tooltip":(0,u.translate)("Delete PDF File"),onClick:function(){e.deletePdf(e.props.pdf)}},s.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Delete PDF File")))))}}]),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,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(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 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(623),m=r(d),h=a(624),b=r(h),y=a(625),v=r(y),g=a(626),E=r(g),_=a(627),w=r(_),O=a(628),P=r(O),k=a(629),j=a(630),x=r(j),N=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.closeModal=a.closeModal.bind(a),a.state={pdfId:"",pdfFilename:"",pdfTemplate:"",payeeInfo:"",payerInfo:"",paymentNote:"",pdfPreloadContent:"",pdfSaved:!1},a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"createPdf")}},{key:"render",value:function(){var e=this,t=window.forminatorChanges.settings,a=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(m.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state}))},r=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(b.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state,updateProperty:e.updateProperty}))},n=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(v.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state,updateProperty:e.updateProperty}))},o=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(E.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state,updateProperty:e.updateProperty}))},l=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(x.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state,updateProperty:e.updateProperty}))},i=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(w.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state,updateProperty:e.updateProperty}))},u=function(t){var a=t.closeModal,r=t.slideTo;return p.default.createElement(P.default,s({},e.props,{closeModal:a,slideTo:r,state:e.state,updateProperty:e.updateProperty}))},c=forminatorData.pdfExtensionsEnabled,d=function(e){var t=e.openModal;return p.default.createElement("button",{className:"sui-button sui-button-blue",onClick:t,disabled:!(0,f.isTrue)(c)},p.default.createElement("span",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Create New PDF"))},h={pdfUnsavedSlide:{render:a,focus:".forminator-pdf-save-continue",size:"sm"},pdfFilenameSlide:{render:r,focus:"#forminator-field-pdf-filename",size:"sm"},pdfChooseTemplateSlide:{render:n,size:"xl"}};return"receipt"===this.state.pdfTemplate?h.invoiceInfoSlide={render:l,size:"lg"}:h.pdfPreloadContentSlide={render:o,size:"lg"},h.pdfLoadingSlide={render:i,size:"sm"},h.pdfFileCreatedSlide={render:u,size:"sm"},p.default.createElement("p",{id:"create-new-pdf-btn"},p.default.createElement(k.Modal,s({},this.props,{dialogId:"create-pdf-modal",firstSlide:t?"pdfUnsavedSlide":"pdfFilenameSlide",titleId:"forminator-pdf-modal__title",modalContent:h,triggerContent:d,focusTrapPaused:"receipt"===this.state.pdfTemplate})))}}]),t}(c.Component);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(21),f=a(39),d=r(f),m=a(40),h=r(m),b=a(29),y=r(b),v=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.saveForm=a.saveForm.bind(a),a}return l(t,e),i(t,[{key:"closeModal",value:function(){this.props.closeModal()}},{key:"saveForm",value:function(){var e=this,t=this.props.formState,a=_.isUndefined(t.settings.form_status)?"draft":t.settings.form_status,r=_.isUndefined(t.settings.formName)?"":t.settings.formName,n=_.isUndefined(t.settings.form_id)?-1:t.settings.form_id,o="draft";"publish"===a&&(o="publish");var l={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:r,form_id:n,status:o,version:forminatorData.version,data:JSON.stringify(t)};d.default.post(forminatorData.ajaxUrl,h.default.stringify(l)).then(function(r){var n=(0,c.getFieldsByType)("stripe",t.wrappers);if(r.data.success)e.reloadPageForSubscriptionPlans(n),-1===a.form_id&&(e.props.actions.settingsActions.updateSetting("form_id",r.data.data),forminatorData.currentForm.settings.form_id=r.data.data,window.history.pushState({},"Edit Form",forminatorData.formEditUrl+"&id="+r.data.data)),e.props.actions.settingsActions.saveBuilder("form_status",o),e.props.slideTo("pdfFilenameSlide","right");else{var l=r.data.data&&"string"==typeof r.data.data?r.data.data:(0,c.translate)("Something went wrong while saving your form. Please try again.");new y.default({type:"error",text:l}).open(),e.closeModal()}}).catch(function(t){new y.default({type:"error",text:(0,c.translate)("Something went wrong while saving your form. Please try again.")}).open(),e.closeModal()})}},{key:"reloadPageForSubscriptionPlans",value:function(e){var t=!1;e.map(function(e){_.isUndefined(e.payments)||e.payments.map(function(e){_.isUndefined(e.payment_method)||"subscription"!==e.payment_method||(_.isUndefined(e.plan_id)||_.isEmpty(e.plan_id))&&(t=!0)})}),t&&(window.forminatorChanges={fields:[],settings:!1,saved:!0},location.reload())}},{key:"render",value:function(){var e=this.props.closeModal;return u.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},u.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement(p.ButtonIcon,{icon:"close",iconSize:"md",label:(0,c.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:e})),u.default.createElement("h2",{id:"forminator-pdf-modal__title",className:"sui-box-title sui-lg"},(0,c.translate)("You have unsaved changes")),u.default.createElement("p",{id:"forminator-settings__description",className:"sui-description"},(0,c.translate)("Your form contains unsaved changes. Please save your form before proceeding."))),u.default.createElement("div",{className:"sui-box-body sui-flatten sui-content-center sui-spacing-top--20 sui-spacing-bottom--40"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-pdf-settings",onClick:e},(0,c.translate)("Cancel")),u.default.createElement("button",{className:"sui-button forminator-pdf-save-continue",onClick:this.saveForm},u.default.createElement("span",{className:"sui-loading-text"},(0,c.translate)("Save and Continue")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(s.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 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(2),f=(r(p),a(21)),d=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.filename_input=u.default.createRef(),a.createBtn=u.default.createRef(),a.hyphenateFilename=a.hyphenateFilename.bind(a),a.setFilename=a.setFilename.bind(a),a.state={fileName:_.isEmpty(a.props.state.pdfFilename)?"":a.props.state.pdfFilename},a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){_.isEmpty(this.props.state.pdfFilename)&&jQuery(this.createBtn.current).prop("disabled",!0)}},{key:"hyphenateFilename",value:function(e){var t=jQuery(this.createBtn.current),a=e.currentTarget.value;a=a.replace(" ","-"),e.currentTarget.value=a,this.setState({fileName:a}),a.length>0?t.prop("disabled",!1):t.prop("disabled",!0)}},{key:"setFilename",value:function(){var e=this;this.props.updateProperty("pdfFilename",this.state.fileName),setTimeout(function(){e.props.slideTo("pdfChooseTemplateSlide","right")},20)}},{key:"render",value:function(){var e=this,t=this.props.closeModal;return u.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},u.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement(f.ButtonIcon,{icon:"close",iconSize:"md",label:(0,c.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:t})),u.default.createElement("h2",{id:"forminator-pdf-modal__title",className:"sui-box-title sui-lg"},(0,c.translate)("Enter PDF filename")),u.default.createElement("p",{id:"forminator-settings__description",className:"sui-description"},(0,c.translate)("Give your file a name so you can identify it later."))),u.default.createElement("div",{className:"sui-box-body sui-content-center"},u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("input",{type:"text",id:"forminator-field-pdf-filename",name:"pdf_filename",className:"sui-form-control",defaultValue:this.state.fileName,onChange:function(t){return e.hyphenateFilename(t)},ref:this.filename_input})),u.default.createElement("button",{id:"forminator-pdf-create-btn",className:"sui-button pdf-btn-next",onClick:this.setFilename,ref:this.createBtn},u.default.createElement("span",{className:"sui-loading-text"},(0,c.translate)("Next")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(s.Component);t.default=d},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=a(21),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.templates=s.default.createRef(),a.saveTemplate=a.saveTemplate.bind(a),a.setTemplate=a.setTemplate.bind(a),a.state={pdfTemplate:_.isEmpty(a.props.state.pdfTemplate)?"basic":a.props.state.pdfTemplate},a}return o(t,e),l(t,[{key:"saveTemplate",value:function(){this.props.updateProperty("pdfTemplate",this.state.pdfTemplate);var e="receipt"===this.state.pdfTemplate?"invoiceInfoSlide":"pdfPreloadContentSlide";this.props.slideTo(e,"right")}},{key:"setTemplate",value:function(e){this.setState({pdfTemplate:e.currentTarget.value})}},{key:"render",value:function(){var e=this,t=this.props,a=t.closeModal,r=t.slideTo,n=(0,u.hasFieldType)("stripe",this.props.wrappers),o=(0,u.hasFieldType)("paypal",this.props.wrappers),l=[{name:"basic",disabled:!1},{name:"receipt",disabled:!1},{name:"quotation",disabled:!0}];return s.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},s.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},s.default.createElement("div",{className:"sui-actions-right"},s.default.createElement(c.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:a})),s.default.createElement("h2",{id:"forminator-pdf-modal__title",className:"sui-box-title sui-lg"},(0,u.translate)("Choose a template")),s.default.createElement("p",{id:"forminator-settings__description",className:"sui-description"},(0,u.translate)("Select a template below to get started."))),s.default.createElement("div",{className:"sui-box-body sui-spacing-sides--0 sui-spacing-bottom--0"},s.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-3",ref:this.templates},s.default.createElement("ul",{role:"radiogroup"},l.map(function(t,a){return s.default.createElement("li",{key:"template-"+(0,u.randNumber)()},s.default.createElement("label",{htmlFor:"pdf-template-"+t.name,className:"sui-box-selector "+(t.disabled?"sui-disabled":"")},s.default.createElement("input",{type:"radio",id:"pdf-template-"+t.name,name:"pdf-template","aria-labelledby":"pdf-template-"+t.name+"-label",value:t.name,defaultChecked:t.name===e.state.pdfTemplate,onClick:e.setTemplate}),s.default.createElement("span",{"aria-hidden":"true",className:"box-select-head"},s.default.createElement("span",{id:"pdf-template-"+t.name+"-label","aria-hidden":"true",style:{textTransform:"capitalize"}},(0,u.translate)(t.name)),t.disabled&&s.default.createElement("span",{className:"sui-tag sui-tag-blue",style:{padding:"0 5px",marginLeft:"10px",fontWeight:"900",fontSize:"8px",textTransform:"uppercase",minHeight:"0",lineHeight:"1.1"}},(0,u.translate)("Coming Soon"))),s.default.createElement("span",{"aria-hidden":"true",className:"pdf-template-img"},s.default.createElement("img",{src:forminatorData.imagesUrl+"/pdf-template-"+t.name+".png",srcSet:forminatorData.imagesUrl+"/pdf-template-"+t.name+".png 1x,\n\t\t\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/pdf-template-"+t.name+"@2x.png 2x",alt:"pdf-template-"+t.name}))))})),"receipt"===this.state.pdfTemplate&&!n&&!o&&s.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block",paddingTop:"30px"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,(0,u.translate)("Receipt template requires at least one payment field. Please add a PayPal or Stripe field to your form to proceed or choose a different template."))))))),s.default.createElement("div",{className:"sui-box-footer"},s.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:function(){return r("pdfFilenameSlide","left")}},(0,u.translate)("Back")),s.default.createElement("div",{className:"sui-actions-right"},s.default.createElement("button",{className:"sui-button pdf-btn-next",onClick:function(t){return e.saveTemplate(t)},disabled:"receipt"===this.state.pdfTemplate&&!n&&!o},s.default.createElement("span",{className:"sui-loading-text"},(0,u.translate)("Next")),s.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(i.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=a(1),c=a(21),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.contentTypes=s.default.createRef(),a.setType=a.setType.bind(a),a.state={preloadContent:"preload"},a}return o(t,e),l(t,[{key:"createPdf",value:function(e){this.props.updateProperty("pdfPreloadContent",this.state.preloadContent),this.props.slideTo("pdfLoadingSlide","right")}},{key:"setType",value:function(e){this.setState({preloadContent:e.currentTarget.value})}},{key:"render",value:function(){var e=this,t=this.props,a=t.closeModal,r=t.slideTo,n=[{name:(0,u.translate)("Preload form fields in PDF file"),value:"preload"},{name:(0,u.translate)("Start with a blank PDF file"),value:"blank"}];return s.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},s.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},s.default.createElement("div",{className:"sui-actions-right"},s.default.createElement(c.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:a})),s.default.createElement("h2",{id:"forminator-pdf-modal__title",className:"sui-box-title sui-lg"},(0,u.translate)("Preload PDF Content")),s.default.createElement("p",{id:"forminator-settings__description",className:"sui-description"},(0,u.translate)("Choose if you want to load form data into your PDF file or start with a blank PDF file."))),s.default.createElement("div",{className:"sui-box-body sui-content-center sui-spacing-sides--0 sui-spacing-bottom--0"},s.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-2",style:{marginBottom:"0"},ref:this.contentTypes},s.default.createElement("ul",{role:"radiogroup"},n.map(function(t,a){return s.default.createElement("li",{key:"content-"+(0,u.randNumber)()},s.default.createElement("label",{htmlFor:"pdf-content-"+t.value,className:"sui-box-selector"},s.default.createElement("input",{type:"radio",id:"pdf-content-"+t.value,name:"pdf-content","aria-labelledby":"pdf-content-"+t.value+"-label",value:t.value,checked:t.value===e.state.preloadContent,onChange:function(t){return e.setType(t)}}),s.default.createElement("span",{"aria-hidden":"true",className:"box-select-head"},s.default.createElement("span",{id:"pdf-content-"+t.value+"-label","aria-hidden":"true"},t.name))))})))),s.default.createElement("div",{className:"sui-box-footer"},s.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:function(){return r("pdfChooseTemplateSlide","left")}},(0,u.translate)("Back")),s.default.createElement("div",{className:"sui-actions-right"},s.default.createElement("button",{className:"sui-button sui-button-blue pdf-btn-next",onClick:function(t){return e.createPdf(t)}},s.default.createElement("span",{className:"sui-loading-text"},s.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,u.translate)("Create")),s.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(i.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 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(39),f=r(p),d=a(40),m=r(d),h=a(29),b=r(h),y=a(21),v=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.save=a.save.bind(a),a.showError=a.showError.bind(a),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.state.pdfSaved||this.save({action:"forminator_save_pdf",_wpnonce:forminatorData.formNonce,parent_form_id:this.props.settings.form_id,pdf_filename:this.props.state.pdfFilename,pdf_template:this.props.state.pdfTemplate,payee_info:this.props.state.payeeInfo,payer_info:this.props.state.payerInfo,payment_note:this.props.state.paymentNote,pdf_preload:this.props.state.pdfPreloadContent,version:forminatorData.version})}},{key:"save",value:function(e){var t=this;this.props.updateProperty("pdfSaved",!0),f.default.post(forminatorData.ajaxUrl,m.default.stringify(e)).then(function(e){e.data.success?(t.props.updateProperty("pdfId",e.data.data.pdf_id),setTimeout(function(){t.props.slideTo("pdfFileCreatedSlide","right")},20)):t.showError(e.data)}).catch(function(e){t.showError(e)})}},{key:"showError",value:function(e){new b.default({type:"error",text:(0,c.translate)("Something went wrong while creating your PDF. Please try again.")}).open(),console.log(e),this.props.closeModal()}},{key:"render",value:function(){var e=this.props.closeModal;return u.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},u.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement(y.ButtonIcon,{icon:"close",iconSize:"md",label:(0,c.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:e}))),u.default.createElement("div",{className:"sui-box-body sui-content-center"},u.default.createElement("p",null,u.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),u.default.createElement("p",null,(0,c.translate)("Hold tight a few moments while we create your PDF file."))))}}]),t}(s.Component);t.default=v},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 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=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=a(21),f=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.customizePdf=a.customizePdf.bind(a),a.closeModal=a.closeModal.bind(a),a.applyChanges=a.applyChanges.bind(a),a}return l(t,e),i(t,[{key:"customizePdf",value:function(e){window.location.href=forminatorData.formEditUrl+"&id="+e}},{key:"closeModal",value:function(){this.props.closeModal()}},{key:"applyChanges",value:function(){var e=this.getPropState();e=[this.props.state].concat(r(e)),this.props.actions.pdfsActions.updatePdfs(e),this.closeModal()}},{key:"componentWillUnmount",value:function(){this.props.updateProperty("pdfFilename",""),this.props.updateProperty("pdfTemplate",""),this.props.updateProperty("pdfPreloadContent","preload"),this.props.updateProperty("pdfSaved",!1)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.pdfs,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"render",value:function(){var e=this;return u.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},u.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement(p.ButtonIcon,{icon:"close",iconSize:"md",label:(0,c.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:this.closeModal})),u.default.createElement("p",null,u.default.createElement("span",{className:"sui-icon-check sui-lg","aria-hidden":"true"})),u.default.createElement("h2",{id:"forminator-pdf-modal__title",className:"sui-box-title sui-lg"},(0,c.translate)("PDF File Created!")),u.default.createElement("p",{id:"forminator-settings__description",className:"sui-description"},(0,c.translate)("The PDF file has been created. Click “Edit PDF” to customize the created PDF or “Continue” to continue building your form."))),u.default.createElement("div",{className:"sui-box-body sui-content-center"},u.default.createElement("button",{className:"sui-button forminator-customize-pdf-settings","data-pdf-id":"",onClick:function(){return e.customizePdf(e.props.state.pdfId)}},(0,c.translate)("Edit PDF")),u.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:this.applyChanges},u.default.createElement("span",{className:"sui-loading-text"},(0,c.translate)("Continue")))))}}]),t}(s.Component);t.default=f},function(e,t,a){"use strict";function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function n(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){u(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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)}}function s(e,t,a){return t&&i(e.prototype,t),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(){return 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},c.apply(this,arguments)}function p(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function b(e,t){if(null==e)return{};var a,r,n=h(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function g(e){var t=m();return function(){var a,r=f(e);if(t){var n=f(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return v(this,a)}}function E(e,t){return _(e)||w(e,t)||O(e,t)||k()}function _(e){if(Array.isArray(e))return e}function w(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o=[],l=!0,i=!1;try{for(a=a.call(e);!(l=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==a.return||a.return()}finally{if(i)throw n}}return o}}function O(e,t){if(e){if("string"==typeof e)return P(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=O(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return l=e.done,e},e:function(e){i=!0,o=e},f:function(){try{l||null==a.return||a.return()}finally{if(i)throw o}}}}function x(){if(void 0!==te)return te;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),te=t.offsetWidth-t.clientWidth,e.removeChild(t),te}function N(){return document.documentElement.scrollHeight>window.innerHeight}function C(){if("undefined"!=typeof document&&!ie){var e=document.documentElement;ae=window.pageYOffset,N()?e.style.width="calc(100% - "+x()+"px)":e.style.width="100%",e.style.position="fixed",e.style.top=-ae+"px",e.style.overflow="hidden",ie=!0}}function T(){if("undefined"!=typeof document&&ie){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="","number"==typeof ae&&window.scroll(0,ae),ie=!1}}function S(e,t){var a,r=[],n=j(e.querySelectorAll(t));try{for(n.s();!(a=n.n()).done;){var o=a.value;o instanceof HTMLElement&&r.push(o)}}catch(e){n.e(e)}finally{n.f()}return r}function F(e,t){var a=t||{},r=[],n=[],o=S(e,ue);a.includeContainer&&ce.call(e,ue)&&(o=Array.prototype.slice.apply(o),o.unshift(e));for(var l,i,s=0;s<o.length;s++)l=o[s],D(l)&&(i=R(l),0===i?r.push(l):n.push({documentOrder:s,tabIndex:i,node:l}));return n.sort(U).map(function(e){return e.node}).concat(r)}function D(e){return!(!A(e)||W(e)||R(e)<0)}function M(e){if(!e)throw new Error("No node provided");return!1!==ce.call(e,ue)&&D(e)}function A(e){return!(e.disabled||B(e)||$(e))}function V(e){if(!e)throw new Error("No node provided");return e instanceof HTMLElement&&(!1!==ce.call(e,fe)&&A(e))}function R(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?I(e)?0:e.tabIndex:t}function U(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function I(e){return"true"===e.contentEditable}function L(e){return"INPUT"===e.tagName}function B(e){return L(e)&&"hidden"===e.type}function q(e){return L(e)&&"radio"===e.type}function W(e){return q(e)&&!H(e)}function z(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function H(e){if(!e.name)return!0;if(!e.ownerDocument)return!1;var t=Array.from(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]')),a=z(t);return!a||a===e}function $(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function Y(e,t){var a=e.querySelector(t);if(!(a&&a instanceof HTMLElement))throw new Error('No HTML element matches "'.concat(t,'"!'));return a}function Q(e,t){function a(e){if(!O.active){v(),O.active=!0,O.paused=!1,O.nodeFocusedBeforeActivation=E.activeElement;var t=e&&e.onActivate?e.onActivate:w.onActivate;return t&&t(),s(),P}}function r(e){if(O.active){clearTimeout(pe),u(),O.active=!1,O.paused=!1,de.deactivateTrap(P);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:w.onDeactivate;t&&t();return(e&&void 0!==e.returnFocus?e.returnFocus:w.returnFocusOnDeactivate)&&X(function(){g(f(O.nodeFocusedBeforeActivation))}),P}}function o(e){return!!(e&&e instanceof Node)&&_.contains(e)}function l(){!O.paused&&O.active&&(O.paused=!0,u())}function i(){O.paused&&O.active&&(O.paused=!1,v(),s())}function s(){if(O.active)return de.activateTrap(P),pe=X(function(){g(p())}),E.addEventListener("focusin",m,!0),E.addEventListener("mousedown",d,{capture:!0,passive:!1}),E.addEventListener("touchstart",d,{capture:!0,passive:!1}),E.addEventListener("click",y,{capture:!0,passive:!1}),E.addEventListener("keydown",h,{capture:!0,passive:!1}),P}function u(){if(O.active)return E.removeEventListener("focusin",m,!0),E.removeEventListener("mousedown",d,!0),E.removeEventListener("touchstart",d,!0),E.removeEventListener("click",y,!0),E.removeEventListener("keydown",h,!0),P}function c(e){var t=w[e],a=t;if(!t)return null;if("string"==typeof t&&!(a=E.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(a=t()))throw new Error("`"+e+"` did not return a node");return a}function p(){var e;if(!(e=null!==c("initialFocus")?c("initialFocus"):_.contains(E.activeElement)?E.activeElement:O.firstTabbableNode||c("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function f(e){var t=c("setReturnFocus");return t||e}function d(e){if(!o(e.target))return w.clickOutsideDeactivates?void r({returnFocus:!F.isFocusable(e.target)}):void(w.allowOutsideClick&&w.allowOutsideClick(e)||e.preventDefault())}function m(e){o(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),g(O.mostRecentlyFocusedNode||p()))}function h(e){return!1!==w.escapeDeactivates&&K(e)?(e.preventDefault(),void r()):J(e)?void b(e):void 0}function b(e){return v(),e.shiftKey&&e.target===O.firstTabbableNode?(e.preventDefault(),void g(O.lastTabbableNode)):e.shiftKey||e.target!==O.lastTabbableNode?void 0:(e.preventDefault(),void g(O.firstTabbableNode))}function y(e){w.clickOutsideDeactivates||o(e.target)||w.allowOutsideClick&&w.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function v(){var e=F(_);O.firstTabbableNode=e[0]||p(),O.lastTabbableNode=e[e.length-1]||p()}function g(e){if(e!==E.activeElement){if(!e||!e.focus)return void g(p());e.focus({preventScroll:t.preventScroll}),O.mostRecentlyFocusedNode=e,G(e)&&e.select()}}var E=document,_="string"==typeof e?Y(E,e):e,w=n({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),O={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},P={activate:a,deactivate:r,pause:l,unpause:i};return P}function G(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}function K(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function J(e){return"Tab"===e.key||9===e.keyCode}function X(e){return window.setTimeout(e,0)}function Z(e){return e.focus}function ee(e,t){var a=t||{};return function(t){function r(){return l(this,r),n.apply(this,arguments)}p(r,t);var n=g(r);return s(r,[{key:"componentDidMount",value:function(){this.container=function(){var e=a.renderTo;if(e){if("string"==typeof e){var t=document.querySelector(e);if(!t)throw new Error('No element matches "'.concat(e,'"!'));return t}return e}var r=document.createElement("div");return document.body.appendChild(r),r}(),this.forceUpdate()}},{key:"componentWillUnmount",value:function(){!a.renderTo&&this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:"render",value:function(){return!1===this.props.mounted?null:!!this.container&&le.a.createPortal(ne.a.createElement(e,this.props,this.props.children),this.container)}}]),r}(ne.a.Component)}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"Modal",function(){return ve});var te,ae,re=a(0),ne=a.n(re),oe=a(22),le=a.n(oe),ie=!1,se=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],ue=se.join(","),ce="undefined"==typeof Element?function(){return!1}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;F.isTabbable=M,F.isFocusable=V;var pe,fe=se.concat("iframe").join(","),de=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var r=e.indexOf(t);-1===r?e.push(t):(e.splice(r,1),e.push(t))},deactivateTrap:function(t){var a=e.indexOf(t);-1!==a&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}}}(),me=function(e){function t(e){var r;return l(this,t),r=a.call(this,e),r.setFocusTrapElement=function(e){r.focusTrapElement=e},"undefined"!=typeof document&&(r.previouslyFocusedElement=document.activeElement),r}p(t,e);var a=g(t);return s(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&"returnFocusOnDeactivate"!==a&&(t[a]=e[a]);var r=le.a.findDOMNode(this.focusTrapElement);if(!(r instanceof HTMLElement))throw new Error("Focus trap element DOM node is not an HTML element!");this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(!this.focusTrap)throw new Error("Assertion failure!");if(e.active&&!this.props.active){var t=this.props.focusTrapOptions.returnFocusOnDeactivate,a=t||!1,r={returnFocus:a};this.focusTrap.deactivate(r)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){if(!this.focusTrap)throw new Error("Assertion failure!");this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&Z(this.previouslyFocusedElement)&&this.previouslyFocusedElement.focus()}},{key:"render",value:function(){var e=this,t=ne.a.Children.only(this.props.children),a=function(a){e.setFocusTrapElement(a),"function"==typeof t.ref&&t.ref(a)};return ne.a.cloneElement(t,{ref:a})}}]),t}(ne.a.Component);me.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:Q};var he=function(e){function t(e){var r;if(l(this,t),r=a.call(this,e),u(y(r),"clearTimer",function(){var e;null===(e=r.timeout)||void 0===e||e.forEach(function(e){clearTimeout(e)})}),r.getApplicationNode=function(){return r.props.getApplicationNode?r.props.getApplicationNode():r.props.applicationNode},r.checkUnderlayClick=function(e){r.dialogNode&&e.target instanceof Node&&r.dialogNode.contains(e.target)||e.target instanceof Element&&e.target.ownerDocument&&(e.pageX>e.target.ownerDocument.documentElement.offsetWidth||e.pageY>e.target.ownerDocument.documentElement.offsetHeight)||r.exit(e)},r.checkDocumentKeyDown=function(e){!r.props.escapeExits||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||r.exit(e)},r.exit=function(e){r.props.onExit&&r.props.onExit(e)},!r.props.titleText&&!r.props.titleId)throw new Error("react-aria-modal instances should have a `titleText` or `titleId`");return r.timeout=[],r}p(t,e);var a=g(t);return s(t,[{key:"componentDidMount",value:function(){this.props.onEnter&&this.props.onEnter();var e=this.getApplicationNode();this.timeout.push(setTimeout(function(){e&&e instanceof Element&&e.setAttribute("aria-hidden","true")},0)),this.props.escapeExits&&this.timeout.push(this.addKeyDownListener()),this.props.scrollDisabled&&C()}},{key:"componentDidUpdate",value:function(e){e.scrollDisabled&&!this.props.scrollDisabled?T():!e.scrollDisabled&&this.props.scrollDisabled&&C(),this.props.escapeExits&&!e.escapeExits?this.timeout.push(this.addKeyDownListener()):!this.props.escapeExits&&e.escapeExits&&this.timeout.push(this.removeKeyDownListener())}},{key:"componentWillUnmount",value:function(){this.props.scrollDisabled&&T();var e=this.getApplicationNode();e&&e instanceof Element&&e.setAttribute("aria-hidden","false"),this.timeout.push(this.removeKeyDownListener()),this.clearTimer()}},{key:"addKeyDownListener",value:function(){var e=this;return setTimeout(function(){document.addEventListener("keydown",e.checkDocumentKeyDown)})}},{key:"removeKeyDownListener",value:function(){var e=this;return setTimeout(function(){document.removeEventListener("keydown",e.checkDocumentKeyDown)})}},{key:"render",value:function(){var e=this,t=this.props,a={};if(t.underlayStyle)for(var r in t.underlayStyle)Object.prototype.hasOwnProperty.call(t.underlayStyle,r)&&(a[r]=t.underlayStyle[r]);var o={className:t.underlayClass,style:a};t.underlayClickExits&&(o.onMouseDown=this.checkUnderlayClick);for(var l in this.props.underlayProps)o[l]=this.props.underlayProps[l];var i={},s={};if(t.dialogStyle)for(var u in t.dialogStyle)Object.prototype.hasOwnProperty.call(t.dialogStyle,u)&&(s[u]=t.dialogStyle[u]);var c={key:"b",ref:function(t){e.dialogNode=t},role:t.alert?"alertdialog":"dialog",id:t.dialogId,className:t.dialogClass,style:s};t.titleId?c["aria-labelledby"]=t.titleId:t.titleText&&(c["aria-label"]=t.titleText),t.focusDialog&&(c.tabIndex=-1);for(var p in t)/^(data-|aria-)/.test(p)&&(c[p]=t[p]);var f=[ne.a.createElement("div",n({},c),t.children)];t.verticallyCenter&&f.unshift(ne.a.createElement("div",{key:"a",style:i}));var d=t.focusTrapOptions||{};return(t.focusDialog||t.initialFocus)&&(d.initialFocus=t.focusDialog?"#".concat(this.props.dialogId):t.initialFocus),d.escapeDeactivates=t.escapeExits,ne.a.createElement(me,{focusTrapOptions:d,paused:t.focusTrapPaused},ne.a.createElement("div",n({},o),f))}}]),t}(ne.a.Component);he.defaultProps={underlayProps:{},dialogId:"react-aria-modal-dialog",escapeExits:!0,focusTrapPaused:!1,scrollDisabled:!0};var be=ee(he);be.renderTo=function(e){return ee(he,{renderTo:e})};var ye=["modalContent","triggerContent"],ve=function(e){var t=e.modalContent,a=e.triggerContent,r=b(e,ye),n=ne.a.useState(!1),l=E(n,2),i=l[0],s=l[1],u=ne.a.useState(!1),p=E(u,2),f=p[0],d=p[1],m=ne.a.useState(r.firstSlide),h=E(m,2),y=h[0],v=h[1],g=ne.a.useState(null),_=E(g,2),w=_[0],O=_[1];ne.a.useEffect(function(){if(!r.dialogId)throw new Error("SUI Modal instances should have a `dialogId`")},[r.dialogId]);var P,k,j,x="object"===o(t)&&null!==t,N=function(){return s(!0)},C=function(){d(!0),setTimeout(function(){s(!1),d(!1),x&&(O(null),v(r.firstSlide))},300)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";v(e),O(t)},S=r.getApplicationNode,F=void 0===S?function(){return document.getElementsByClassName("sui-wrap")[0]}:S,D="sui-modal-content sui-content-".concat(f?"fade-out":"fade-in"," ").concat(r.dialogClass||"");x?(P=t[y].render,j=t[y].focus||!1,k=t[y].size,w&&!f&&(D+="sui-modal-slide sui-active sui-fadein-".concat(w))):(P=t,k=r.size,j=r.initialFocus||!1),void 0===r.mounted&&(r.mounted=i);var M=r.renderToNode?r.renderToNode:".sui-wrap",A=M?be.renderTo(M):be;return ne.a.createElement(ne.a.Fragment,null,ne.a.createElement(A,c({getApplicationNode:F,dialogClass:D,underlayClass:"sui-modal sui-modal-".concat(k||"md"," sui-active ").concat(r.underlayClass||""),includeDefaultStyle:!1,initialFocus:j},r),P({closeModal:C,slideTo:T})),a&&a({openModal:N}))}},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 o(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 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(21),m=a(30),h=r(m),b=a(35),y=r(b),v=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.contentTypes=p.default.createRef(),a.saveReceiptInfo=a.saveReceiptInfo.bind(a),a.updateProperty=a.updateProperty.bind(a),a.state={payeeInfo:_.isEmpty(a.props.state.payeeInfo)?"":a.props.state.payeeInfo,payerInfo:_.isEmpty(a.props.state.payerInfo)?"":a.props.state.payerInfo,paymentNote:_.isEmpty(a.props.state.paymentNote)?"":a.props.state.paymentNote},a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"getOptions",value:function(){var e=[];return(0,f.getFields)(this.props.wrappers).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"saveReceiptInfo",value:function(){this.props.updateProperty("payeeInfo",this.state.payeeInfo),this.props.updateProperty("payerInfo",this.state.payerInfo),this.props.updateProperty("paymentNote",this.state.paymentNote),this.props.slideTo("pdfLoadingSlide","right")}},{key:"getFieldElementId",value:function(e){var t=(0,f.getFieldsByType)(e,this.props.wrappers),a="";return t.map(function(e,t){0===t&&(a="{"+e.element_id+"}")}),a}},{key:"render",value:function(){var e=this,t=this.props,a=t.closeModal,r=t.slideTo,n={site_title:(0,f.translate)("Site Title"),site_url:(0,f.translate)("Site URL"),date_dmy:(0,f.translate)("Date")},o=this.getFieldElementId("name"),l=this.getFieldElementId("email"),i=this.getFieldElementId("address"),u={};return _.assign(u,forminatorData.variables),p.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},p.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement(d.ButtonIcon,{icon:"close",iconSize:"md",label:(0,f.translate)("Close this dialog window"),className:"sui-button-float--right forminator-pdf-create-close",onClick:a})),p.default.createElement("h2",{id:"forminator-pdf-modal__title",className:"sui-box-title sui-lg"},(0,f.translate)("Payee and Payer Details")),p.default.createElement("p",{id:"forminator-settings__description",className:"sui-description"},(0,f.translate)("Enter the payee and payer details for your receipt. You can insert merge tags or manually enter the details below. The details can later be changed in the PDF editor."))),p.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"30px"}},p.default.createElement(y.default,s({},this.props,{label:(0,f.translate)("Payee details"),expanded:!0,defaultContentRender:!0}),p.default.createElement(h.default,s({},this.props,{extraId:"payee-info",settings:this.props.state,boxClass:"sui-tab-boxed",property:"payeeInfo",disableMiscData:!1,editorOptions:u,allowRepeater:!1,excludeSubFields:!0,enableFormData:!0,enableAllFormFields:!1,enableAllNonFormFields:!1,enablePostData:!1,enableUpload:"true",allowButtonOnclick:"true",enableParentForm:"true",mainOptionsLabel:(0,f.translate)("Site Information"),mainOptions:n,paymentOptions:forminatorData.payment_variables,label:(0,f.translate)("Payee details"),updateProperty:this.updateProperty,selectLabel:(0,f.translate)("Insert dynamic data"),tooltipLabel:(0,f.translate)("Add dynamic data"),defaultValue:"<strong>"+(0,f.translate)("Company:")+"</strong> {site_title}<br><strong>"+(0,f.translate)("Address:")+"</strong> "+i+"<br><strong>"+(0,f.translate)("Invoice No:")+"</strong> INV-{date_dmy}-{submission_id}"}))),p.default.createElement(y.default,s({},this.props,{label:(0,f.translate)("Payer details"),defaultContentRender:!0}),p.default.createElement(h.default,s({},this.props,{extraId:"payer-info",settings:this.props.state,boxClass:"sui-tab-boxed",property:"payerInfo",disableMiscData:!1,editorOptions:u,allowRepeater:!1,excludeSubFields:!0,enableFormData:!0,enablePostData:!1,enableUpload:"true",allowButtonOnclick:"true",enableParentForm:"true",mainOptions:n,paymentOptions:forminatorData.payment_variables,label:(0,f.translate)("Payer details"),updateProperty:this.updateProperty,selectLabel:(0,f.translate)("Insert dynamic data"),tooltipLabel:(0,f.translate)("Add dynamic data"),defaultValue:"<strong>"+(0,f.translate)("Name / Company:")+"</strong> "+o+"<br><strong>"+(0,f.translate)("Address:")+"</strong> "+i+"<br><strong>"+(0,f.translate)("Email:")+"</strong> "+l+"<br><strong>"+(0,f.translate)("Date:")+"</strong> {date_dmy}"}))),p.default.createElement(y.default,s({},this.props,{label:(0,f.translate)("Payment note or other instructions (Optional)")}),p.default.createElement(h.default,s({},this.props,{extraId:"payment-note",settings:this.props.state,boxClass:"sui-tab-boxed",property:"paymentNote",disableMiscData:!1,editorOptions:u,allowRepeater:!1,excludeSubFields:!0,enableFormData:!0,enablePostData:!1,enableUpload:"true",allowButtonOnclick:"true",enableParentForm:"true",mainOptions:n,paymentOptions:forminatorData.payment_variables,label:(0,f.translate)("Payment note or other instructions (Optional)"),updateProperty:this.updateProperty,selectLabel:(0,f.translate)("Insert dynamic data"),tooltipLabel:(0,f.translate)("Add dynamic data")})))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:function(){return r("pdfChooseTemplateSlide","left")}},(0,f.translate)("Back")),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-button sui-button-blue pdf-btn-next",onClick:function(t){return e.saveReceiptInfo(t)}},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Create")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=v},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{settings:e.settings,wrappers:e.wrappers,notifications:e.notifications}}function o(e){return{actions:{notificationsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(230),u=r(s),c=a(62),p=r(c),f=a(632),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(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 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(633),f=r(p),d=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(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)};return u.default.createElement("div",{id:"forminator-form-notifications",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Email Notifications"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",{className:"sui-description"},(0,c.translate)("You can send customized email notifications to your site admins and visitors on successful form submission. Advanced features like email routing and conditional emails provide granular control over the email notifications."))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("pdf")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("PDF")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("integrations")}},(0,c.translate)("Integrations"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.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 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(634),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addNotification=a.addNotification.bind(a),a.closeModal=a.closeModal.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"notification")}},{key:"addNotification",value:function(){var e={slug:"notification-"+(0,p.randNumber)()+"-"+(0,p.randNumber)()};this.props.actions.modalActions.showModal({open:!0,new:!0,notification:e,field:this.props.field,notifications:this.props.notifications,closeModal:this.closeModal},"notification")}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{className:"sui-box-builder sui-flushed",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-box-builder-body"},this.props.notifications.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.notifications,function(t,a){return c.default.createElement(d.default,i({key:t.slug,notification:t},e.props,{counter:a}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addNotification},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Email Notification"))))}}]),t}(u.Component);t.default=m},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 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=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.trashNotification=a.trashNotification.bind(a),a.deleteNotification=a.deleteNotification.bind(a),a.closeDeleteField=a.closeDeleteField.bind(a),a.editModal=a.editModal.bind(a),a.closeEditModal=a.closeEditModal.bind(a),a.duplicateNotification=a.duplicateNotification.bind(a),a}return l(t,e),i(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getNotificationsWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.notification.slug})}},{key:"deleteNotification",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,notification:this.props.notification,closeModal:this.closeDeleteField,trashField:this.trashNotification},"deleteNotification")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,notification:this.props.notification,closeModal:this.closeDeleteField,trashField:this.trashNotification},"deleteNotification")}},{key:"trashNotification",value:function(){var e=[].concat(r(this.props.notifications)),t=this.getNotificationsWithoutCurrent(e);this.closeMenu(),this.props.actions.notificationsActions.updateNotifications(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"notification")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,notification:this.props.notification,field:this.props.field,notifications:this.props.notifications,closeModal:this.closeEditModal},"notification")}},{key:"duplicateNotification",value:function(){var e=Object.assign({},this.props.notification);e.slug="notification-"+(0,c.randNumber)()+"-"+(0,c.randNumber)();var t=[].concat(r(this.props.notifications),[e]);this.props.actions.notificationsActions.updateNotifications(t)}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers),t="hide"===this.props.notification.condition_action?(0,c.translate)("Hide"):(0,c.translate)("Show");if(!_.isUndefined(this.props.notification.conditions)){var a=this.props.notification.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,o=(0,c.getRuleLabel)(a.rule,r.field_type),l=(0,c.getConditionLabel)(r[0],a),i=this.props.notification.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,c.translate)("if")+" "+n+" "+o+" "+l+" "+s,"aria-hidden":"true"},u.default.createElement("i",{className:"sui-icon-link sui-sm"}))}}}}},{key:"render",value:function(){var e="";if(_.isUndefined(this.props.notification["email-recipients"])||"routing"!==this.props.notification["email-recipients"]){var t="";if(!_.isUndefined(this.props.notification.recipients)&&!_.isEmpty(this.props.notification.recipients)){var a=this.props.notification.recipients.split(","),r=a.length;t=r>2?a[0]+", "+a[1]+" + "+(r-2)+" "+(0,c.translate)("more recipient(s)"):this.props.notification.recipients,e=t}}else e=(0,c.translate)("Email routing is enabled");var n=this.conditionMarkup();return u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},!_.isUndefined(this.props.notification.conditions)&&this.props.notification.conditions.length>0&&u.default.createElement(u.default.Fragment,null,n),u.default.createElement("div",{className:"sui-field-info fui-notifications-info",onClick:this.editModal},u.default.createElement("div",{className:"sui-builder-field-label fui-notifications-label"},u.default.createElement("i",{className:"sui-icon-mail","aria-hidden":"true"}),u.default.createElement("span",null,this.props.notification.label)),u.default.createElement("div",{className:"sui-builder-field-label fui-notifications-recipient"},u.default.createElement("span",null,e))),u.default.createElement("div",{className:"sui-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)("Open field settings"))),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{onClick:this.editModal},u.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),"notification-0008-7000"!==this.props.notification.slug&&u.default.createElement(u.default.Fragment,null,u.default.createElement("li",null,u.default.createElement("button",{onClick:this.duplicateNotification},u.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),u.default.createElement("li",null,u.default.createElement("button",{className:"sui-option-red",onClick:this.deleteNotification},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete"))))))))}}]),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{actions:{integrationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}function o(e){return{integrationConditions:e.integrationConditions,wrappers:e.wrappers}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(62),u=r(s),c=a(228),p=r(c),f=a(636),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(o,n)(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 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){var a=[],r=!0,n=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw o}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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(194);r(f);a(196);var d=a(15),m=r(d),h=a(50),b=r(h),y=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={loading:!1,markup:""},a.loadIntegrations=a.loadIntegrations.bind(a),a.closeModal=a.closeModal.bind(a),a.conditionMarkup=a.conditionMarkup.bind(a),a}return l(t,e),s(t,[{key:"componentDidUpdate",value:function(){_.isEmpty(this.props.integrationConditions)||this.conditionMarkup()}},{key:"componentDidMount",value:function(){this.mounted=!0,this.loadIntegrations(),jQuery("html, body").animate({scrollTop:0},"fast");var e=this;window.jQuery("#forminator-form-appearance").on("click",".conditions-integration",function(){var t=jQuery(this).data("multi-id"),a=jQuery(this).data("title");e.openConditionsModal(t,a)})}},{key:"openConditionsModal",value:function(e,t){this.props.actions.modalActions.showModal({open:!0,integrationId:e,integrationTitle:t,field:this.props.field,conditions:this.props.integrationConditions,closeModal:this.closeModal},"integration")}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"integration")}},{key:"conditionMarkup",value:function(){var e=this,t=(0,p.getFields)(this.props.wrappers);Object.entries(this.props.integrationConditions).forEach(function(a){var r=i(a,2),n=r[0],o=r[1];if(jQuery(".fui-connected").length){var l=jQuery('.fui-conditions[data-integration-id="'+n+'"]');if(!l.length)return void delete e.props.integrationConditions[n];if(l.hide(),!_.isUndefined(o.conditions)){var s=o.conditions[0];if(!_.isUndefined(s)){var u=_.filter(t,function(e){return e.element_id===s.element_id});if(!_.isUndefined(u)&&!_.isUndefined(u[0])){var c="send"===o.condition_action||_.isUndefined(o.condition_action)?(0,p.translate)("Send"):(0,p.translate)("Don't send"),f=u[0].label,d=(0,p.getRuleLabel)(s.rule,u.field_type),m=(0,p.getConditionLabel)(u[0],s),h=o.conditions.length,b="";h-1>0&&(b="+ "+(h-1)+" "+(0,p.translate)("more condition(s)"));var y=c+" "+(0,p.translate)("data if")+" "+f+" "+d+" "+m+" "+b;l.attr("data-tooltip",y).show()}}}}})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"loadIntegrations",value:function(){var e=this,t=forminatorData.currentForm.settings.form_id;_.isUndefined(t)||+t<=0||this.state.loading||(this.setState({markup:"",loading:!0}),window.fetch(forminatorData.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=forminator_addon_get_module_addons&_ajax_nonce="+forminatorData.addonNonce+"&data[module_type]=form&data[module_id]="+t}).then(function(e){return e.json()}).then(function(t){if(t.success&&e.mounted){var a=e;e.setState({markup:t.data.data}),setTimeout(function(){var e=window.jQuery(".form-integrations-wrapper");e.ForminatorIntegrationsModal(),e.on("reload",function(){e.unbind(),a.loadIntegrations()})},10),e.setState({loading:!1})}}).catch(function(e){console.log(e)}))}},{key:"render",value:function(){var e=this,t=this.state.loading,a=this.state.markup,r=forminatorData.currentForm.settings.form_id,n=function(t){e.props.history.push("/"+t)},o=(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_integrations)||(0,p.isTrue)(forminatorData.userPermissions.manage_options),l="";return l=t?c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-loader sui-loading","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Fetching integration list…"))))):_.isUndefined(r)||+r<=0?c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You need to save this form before using integrations."))),c.default.createElement("div",{className:"sui-notice-actions"},c.default.createElement(b.default,{label:(0,p.translate)("Try Again"),onClick:this.loadIntegrations})))):c.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:a}}),c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Integrations"))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement(m.default,{label:(0,p.translate)("Applications"),description:(0,p.translate)("You can send this form's data to any of the connected third party apps. Connect to more apps on the {{link}}Integrations{{/link}} page.",{components:{link:o?c.default.createElement("a",{href:forminatorData.integrationsUrl}):c.default.createElement("b",null)}})},l)),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("button",{className:"sui-button",onClick:function(){return n("notifications")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("Email Notifications")),c.default.createElement("div",{className:"sui-actions-right"},c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return n("settings")}},(0,p.translate)("Settings"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=y},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 e&&e.__esModule?e:{default:e}}function o(e){return{settings:e.settings,formType:e.settings["form-type"]||"default"}}function l(e){return{actions:{settingsActions:(0,u.bindActionCreators)(p,e),modalActions:(0,u.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=a(0),s=(n(i),a(12)),u=a(10),c=a(108),p=r(c),f=a(62),d=r(f),m=a(638),h=n(m);t.default=(0,s.connect)(o,l)(h.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 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(24),d=r(f),m=a(41),h=r(m),b=a(6),y=r(b),v=a(3),g=r(v),E=a(2),w=r(E),O=a(16),P=r(O),k=a(7),j=r(k),x=a(4),N=r(x),C=a(20),T=r(C),S=a(11),F=r(S),D=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:"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=_.isEmpty(forminatorData.retain_number)||"0"===forminatorData.retain_number,r=c.default.createElement(c.default.Fragment,null,a&&c.default.createElement(c.default.Fragment,null,(0,p.translate)("forever")),!a&&c.default.createElement(c.default.Fragment,null,forminatorData.retain_number," ",forminatorData.retain_unit)),n=forminatorData.erasure?(0,p.translate)("remove"):(0,p.translate)("retain"),o=(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_settings)||(0,p.isTrue)(forminatorData.userPermissions.manage_options),l=o?c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=submissions",target:"_blank"},(0,p.translate)("global privacy settings.")):(0,p.translate)("global privacy settings.");return c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Settings"))),c.default.createElement("div",{className:"sui-box-body"},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)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default we will store all submissions in your database."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Store Submissions in Database"),property:"store_submissions",description:(0,p.translate)("Disable this feature to prevent submissions from being stored in your database. Note that any submissions previously stored in the database will be retained and automatically deleted according to the retention schedule configured in the Privacy settings below."),unWrap:!0})))),forminatorData.geolocation&&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)("User’s Geolocation")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Enabling this option will attempt to collect and store users' location information when this form is submitted."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable current user’s Geolocation"),property:"geolocation_field",unWrap:!0}),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Enable the checkbox to make it mandatory for users to grant access to the location permission to submit this form.")),c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Require access to users' location"),property:"geolocation_field_required",itemClass:"sui-checkbox-sm sui-checkbox-stacked"})),c.default.createElement(w.default,i({},this.props,{label:(0,p.translate)("Error message"),placeholder:(0,p.translate)("Enter message"),property:"require_geolocation_field",fieldClass:"sui-margin-top"}))))),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)("Multiple Option Value")),c.default.createElement("span",{className:"sui-description"},c.default.createElement("div",null,(0,p.translate)("Choose how you want to handle multiple option values in form submissions and email notifications.")))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Default Stored Value")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we store option labels of multiple option fields ({{strong}}e.g., Radio, Checkbox, and Select{{/strong}}) in submissions, and use the same in email notifications. You can choose to use option values instead.",{components:{strong:c.default.createElement("strong",null)}})),c.default.createElement("div",{className:"sui-side-tabs"},c.default.createElement(y.default,i({},this.props,{property:"print_value",default:"false"}),c.default.createElement(F.default,{value:"false"},(0,p.translate)("Option labels")),c.default.createElement(F.default,{value:"true"},(0,p.translate)("Option values"))))))),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)("Privacy")),c.default.createElement("span",{className:"sui-description"},c.default.createElement("div",null,(0,p.translate)("Choose how you want to handle this form's data storage.")),c.default.createElement("div",null,(0,p.translate)("By default we will use the configuration you have set in your")),c.default.createElement("div",null,l))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Submissions")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("How long do you want to retain this form's submissions for?")),c.default.createElement("div",{className:"sui-side-tabs"},c.default.createElement(y.default,i({},this.props,{default:"false",property:"enable-submissions-retention"}),c.default.createElement(g.default,{value:"false",label:(0,p.translate)("Use default")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Your default setting value is to keep the submissions")," ",r))))),c.default.createElement(g.default,i({},this.props,{value:"true",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(j.default,null,c.default.createElement(N.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{type:"number",placeholder:"10",property:"submissions-retention-number"}))),c.default.createElement(N.default,{cols:"6"},c.default.createElement(P.default,i({},this.props,{property:"submissions-retention-unit",defaultValue:"days"}),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("span",{className:"sui-description"},(0,p.translate)("Leave the field blank to retain submissions forever.")))))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Account Erasure Requests")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("When handling an account erasure request that contains an email associated with a submission, what do you want to do?")),c.default.createElement("div",{className:"sui-side-tabs"},c.default.createElement(y.default,i({},this.props,{property:"enable-submissions-erasure",default:"false"}),c.default.createElement(g.default,{value:"false",label:(0,p.translate)("Use default")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Your default setting value is to ")," ",n," ",(0,p.translate)(" the submission.")))))),c.default.createElement(g.default,i({},this.props,{value:"true",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(P.default,i({property:"submission-erasure-remove",defaultValue:"false"},this.props),c.default.createElement("option",{value:"false"},(0,p.translate)("Retain Submissions")),c.default.createElement("option",{value:"true"},(0,p.translate)("Remove Submissions"))))))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Submission Files")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("If your form has file upload field(s), choose whether to delete the file(s) related to a submission when that submission gets deleted.")),c.default.createElement(T.default,i({},this.props,{property:"submission-file",defaultValue:"delete"}),c.default.createElement("div",{value:"delete"},(0,p.translate)("Delete")),c.default.createElement("div",{value:"keep"},(0,p.translate)("Keep"))))))),c.default.createElement("div",{className:"sui-box-footer"},"leads"===this.props.formType&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,p.translate)("Behavior")),"leads"!==this.props.formType&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,p.translate)("Integrations"))))}}]),t}(u.Component);t.default=D}]);