index of
/
home
/
thefkyzp
/
easyloanly.com
/
wp-content
/
plugins
/
forminator
/
build
/
File: /home/thefkyzp/easyloanly.com/wp-content/plugins/forminator/build/knowledge-scripts.js
!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=717)}([function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function o(){return"wrapper-"+a()+"-"+a()}function i(e,t){var n=void 0;return t.map(function(t){t.wrapper_id===e&&(n=t)}),n}function s(e,t){return"basic"!==u(e)?t:""}function l(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":S("Inline Message"),"behaviour-redirect":S("Redirect user to a URL"),"behaviour-hide":S("Hide form")}}function d(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n}function h(e,t){var n=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,a=r.split("-");switch(t.type){case"page-break":case"rich-text":n.push(parseInt(a[2]));break;case"all-form-data":case"pdf-page-break":n.push(parseInt(a[3]));break;default:n.push(parseInt(a[1]))}}})});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function m(e,t){var n=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");n.push(parseInt(r[1]))});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function y(e){return e=e.trim().replace(/\s+|\//g,"-")}function b(e){return null===e}function v(e,t){var n=0;return!!b(t)||(t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n>0)}function g(e,t){var n=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&n.push(t)})}),n}function E(e,t){var n=[];return g(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),n.push({value:t.element_id,label:r,element_id:t.element_id})}),n}function w(e,t){var n="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(n=t.field_label)})}),n}function O(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&n++})}),n>0}function j(e,t,n,a,o){o=o||[];var i=[].concat(r(a),[{fields:o}]),s=h(e.type,i);return _.extend(e,{element_id:e.type+"-"+s,formID:t,cols:n})}function x(e,t,n){var r=forminatorData.fields.find(function(t){return t.slug===e}),a=h(r.type,t),o={element_id:r.type+"-"+a,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:n};return _.contains(["calculation","number","slider","radio","currency","select","checkbox"],r.type)&&(o.hidden_behavior="zero"),_.extend(o,JSON.parse(JSON.stringify(r.defaults)))}function P(e){return e.type}function k(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function N(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t)))}function C(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t+1)))}function S(){return ue.default.translate.apply(null,arguments)}function T(e,t){var n=_.filter(t,function(t){return t.family===e});return _.isUndefined(n[0])||_.isUndefined(n[0].variants)?[S("None")]:n[0].variants}function A(e){return e.charAt(0).toUpperCase()+e.slice(1)}function M(e,t){var n=t.value,r=void 0;if(e.hasOptions&&e.values.length>0){var a=void 0;if(a=_.where(e.values,{value:n})[0],a||(a=_.where(e.values,{label:n})[0]),!a)return;r=a.label}else r="date"===e.field_type&&["is_before","is_after"].includes(t.rule)?F(n):n;return _.isEmpty(r)?S("null"):r}function F(e){if(!isNaN(Number(e))){var t=new Date(1*e),n={day:"numeric",month:"numeric",year:"numeric"};e=t.toLocaleDateString("en-US",n)}return e}function R(e,t,n,r,a){var o=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]),Array.isArray(t)&&!ae(a)&&t.push("group");var i=!1;return _.isUndefined(n)||_.isUndefined(n.main_date_field)||!0!==n.main_date_field||(i=!0),e.map(function(e){var n=e.fields,s=e.parent_group;n.map(function(e){if(_.isUndefined(r)){if(_.contains(t,e.type))return}else if(!_.contains(r,e.type))return;var n=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(n=e.type,n=A(n)):n=e.field_label,"name"!==e.type||ae(a)?"address"!==e.type||ae(a)?"slider"===e.type&&"range"===e.slider_type?o=o.concat(L(e,n,s)):"time"!==e.type||ae(a)?"date"===e.type&&"picker"!==e.field_type&&!1===i||o.push({element_id:e.element_id,parent_group:s,required:e.required,field_type:e.type,field_slug:e.type,label:n,values:B(e),hasOptions:V(e),hasCalcs:U(e),formula:z(e),isNumber:q(e),fieldData:e}):o=o.concat(Q(e,n,s)):o=o.concat($(e,n,s)):o=o.concat(I(e,n,s)),"date"!==e.type||"picker"===e.field_type||ae(a)||(o=o.concat(D(e,n,s)))})}),o}function D(e,t,n){var r=[],a=void 0;a=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+S("Day"):t+" - "+e.day_label;var o=void 0;o=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+S("Month"):t+" - "+e.month_label;var i=void 0;return i=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+S("Year"):t+" - "+e.year_label,"input"===e.field_type?r.push({element_id:e.element_id+"-day",parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-day",label:a,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",parent_group:n,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:n,required:e.required,field_type:e.type,field_slug:e.type+"-year",label:i,values:!1,hasOptions:!1,isNumber:!0}):r.push({element_id:e.element_id+"-day",parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-day",label:a,values:B(e),hasOptions:V(e),isNumber:q(e)},{element_id:e.element_id+"-month",parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:B(e),hasOptions:V(e),isNumber:q(e)},{element_id:e.element_id+"-year",parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-year",label:i,values:B(e),hasOptions:V(e),isNumber:q(e)}),r}function I(e,t,n){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(a){if("true"===e[a.attr]||!0===e[a.attr]){var o=void 0;o=_.isUndefined(e[a.label])||_.isEmpty(e[a.label])?t+" - ":t+" - "+e[a.label],r.push({element_id:e.element_id+"-"+a.element_suffix,parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-"+a.element_suffix,label:o,values:a.values,hasOptions:a.hasOptions,isNumber:a.isNumber})}}):r.push({element_id:e.element_id,parent_group:n,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:B(e),hasOptions:V(e),isNumber:q(e)}),r}function L(e,t,n){var r=[];return[{suffix:"min"},{suffix:"max"}].map(function(a){r.push({element_id:e.element_id+"-"+a.suffix,parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-"+a.suffix,label:t+" - "+a.suffix,isNumber:!0,hasCalcs:U(e)})}),r}function q(e){return!!_.contains(["calculation","number","slider","phone","currency"],e.type)}function U(e){return"true"===e.calculations||!0===e.calculations}function z(e){return!!e.formula&&e.formula}function V(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function B(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function $(e,t,n){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(a){if(ae(e[a.attr])){var o=void 0;o=_.isUndefined(e[a.label])||_.isEmpty(e[a.label])?t+" - ":t+" - "+e[a.label],r.push({element_id:e.element_id+"-"+a.element_suffix,parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-"+a.element_suffix,label:o,values:a.values,hasOptions:a.hasOptions,isNumber:a.isNumber})}}),r}function Q(e,t,n){var r=[],a=void 0;a=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+S("Hour"):t+" - "+e.hh_label;var o=void 0;return o=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+S("Minute"):t+" - "+e.mm_label,r.push({element_id:e.element_id+"-hours",parent_group:n,required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:a,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",parent_group:n,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:n,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 H(e){var t=[],n=forminatorData.fields.filter(function(t){return t.type===e});return n.length<1?[]:(n=n[0],_.isUndefined(n.autofill_settings)||(t=n.autofill_settings),t)}function W(e,t,n){var r=_.isUndefined(n)?"":n;switch(e){case"is":return S("is");case"is_not":return S("is not");case"day_is":return S("day is");case"day_is_not":return S("day is not");case"month_is_not":return S("month is not");case"month_is":return S("month is");case"is_before":return S("is before");case"is_after":return S("is after");case"is_before_n_or_more_days":return S("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return S("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return S("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return S("is after less than %s days from current date").replace("%s",r);case"is_great":return S("is greater than");case"is_less":return S("is less than");case"contains":return S("contains");case"starts":return S("starts with");case"ends":return S("ends with");case"is_correct":return S("is correct");case"is_incorrect":return S("is incorrect");case"is_final_result":return S("is final result");case"is_not_final_result":return S("is not final result");default:return"-"}}function Y(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var n=t[1],r=n.split(".");if(r.length<2)return!1;for(var a=r.length,o=0;o<a;o++)if(!r[o].match(/^[a-z0-9-]+$/i))return!1;return!0}function G(){"object"===se(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 J(e){var t="none";return se(e["results-behav"])&&se(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function K(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),R(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,n=jQuery(t),r=jQuery(this);r.append(n),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,n,r){var a=0;return!!b(e)||(e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[n]&&a++})}),a>0)}function te(e){var t=0;return!!b(e)||(e.map(function(e){e.fields.map(function(e){var n=forminatorData.postCategories[e.post_type];void 0!==n&&n.map(function(n){var r=n.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0)}function ne(e,t){var n=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,a){t.result===n&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}function re(e,t){var n=[];return _.each(t,function(t,r){if(t.amount_type&&t.plan_name||(e.error=S("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,n.push(r)),"single"===t.payment_method&&("fixed"===t.amount_type&&_.isEmpty(t.amount)||"variable"===t.amount_type&&_.isEmpty(t.variable)))e.error=S("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,n.push(r);else if("subscription"===t.payment_method){var a=_.isUndefined(t.subscription_amount_type)?"fixed":t.subscription_amount_type,o=_.isUndefined(t.quantity_type)?"fixed":t.quantity_type,i=_.isUndefined(t.quantity)?1:t.quantity,s=_.isUndefined(t.bill_input)?1:t.bill_input;("fixed"===a&&_.isEmpty(t.subscription_amount)||"variable"===a&&_.isEmpty(t.subscription_variable))&&(e.error=S("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,n.push(r)),("fixed"===o&&!i||"variable"===o&&_.isEmpty(t.variable_quantity))&&(e.error=S("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,n.push(r)),s?s<=0&&(e.error=S("Billing frequency should be greater than or equal to 1"),e.isValid=!1,n.push(r)):(e.error=S("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,n.push(r))}}),n.length>0&&(e.paymentKey=n),e}function ae(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("&"),n=0;n<t.length;n++){var r=t[n].split("=");e[r[0]]=decodeURIComponent(r[1])}return e}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";window.open(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var se="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=a,t.generateWrapperId=o,t.getWrapper=i,t.getDefaultValue=s,t.getThemePrefix=l,t.restrictedGroupFields=c,t.lonerFields=p,t.getSubmissionBehaviors=f,t.countFieldsByType=d,t.getMaxIDByType=h,t.getMaxID=m,t.generateValue=y,t.hasFieldType=v,t.getFieldsByType=g,t.mapFieldsByType=E,t.getFieldLabel=w,t.fieldExist=O,t.buildFieldObject=j,t.buildFieldObjectFromSlug=x,t.getFieldType=P,t.getForminatorField=k,t.insertInPosition=N,t.replaceInPosition=C,t.translate=S,t.getFontVariants=T,t.ucfirst=A,t.getConditionLabel=M,t.convertTimestamp=F,t.getFields=R,t.getDateFields=D,t.getNameFields=I,t.getRangeSliderFields=L,t.fieldHasNumber=q,t.fieldHasCalcs=U,t.fieldFormula=z,t.fieldHasOptions=V,t.getFieldValues=B,t.getAddressFields=$,t.getTimeFields=Q,t.getFieldAutofillProviders=H,t.getRuleLabel=W,t.isEmailWp=Y,t.suiDelegateEvents=G,t.getChartType=J,t.getCalculationFields=K,t.select2Tags=X,t.isFieldRequired=Z,t.hasFieldWithAttribute=ee,t.hasPostdataFieldWithMultiselect=te,t.getPersonalityQuestions=ne,t.getPlanValidation=re,t.isTrue=ae,t.parseQueryString=oe,t.goToLink=ie;var le=n(51),ue=function(e){return e&&e.__esModule?e:{default:e}}(le)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(1),p=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return o(t,e),s(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],n=_.isUndefined(this.props.type)?"text":this.props.type,r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,a=this.isValid(t)?"":"sui-form-field-error",o=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,s="sui-form-control";_.isUndefined(this.props.inputClass)||""===this.props.inputClass||(s+=" "+this.props.inputClass),_.isUndefined(this.props.prefix)||""===this.props.prefix||(s+=" sui-field-has-prefix"),_.isUndefined(this.props.suffix)||""===this.props.suffix||(s+=" sui-field-has-suffix");var l=_.isUndefined(this.props.inputId)?this.props.property:this.props.inputId,p=void 0;this.props.label&&(p=u.default.createElement("label",{htmlFor:"forminator-field-"+l,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",i({type:n,placeholder:this.props.placeholder,value:t||"",id:"forminator-field-"+l,className:s},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+" "+a},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}(l.Component);t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){var e=l.default.Children.map(this.props.children,function(e){return e});return l.default.createElement("div",null,e)}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){var e=l.default.Children.map(this.props.children,function(e){return e}),t=this.props.customClass?this.props.customClass:"";return l.default.createElement("div",{className:"sui-col-md-"+this.props.cols+" "+t},e)}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return o(t,e),i(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"),n=t.find(".sui-colorpicker-value span[role=button]"),r=t.find(".sui-colorpicker-value"),a=r.find("button"),o=e.closest(".wp-picker-container"),i=o.find(".wp-color-result"),s=i.find(".color-alpha"),l=o.find(".wp-picker-clear"),u=s;u=!0===e.data("alpha")?s:i,e.bind("change",function(){n.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(),i.click()}),a.on("click",function(e){e.preventDefault(),e.stopPropagation(),l.click(),r.find("input").val(""),n.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],n="";return this.props.label&&(n=l.default.createElement("label",{className:"sui-label",htmlFor:"forminator-color-"+this.props.property},this.props.label,this.props.note&&l.default.createElement("span",{className:"sui-label-note"}," ",this.props.note))),l.default.createElement("div",{className:"sui-form-field"},n,l.default.createElement("div",{className:"sui-colorpicker-wrap"},l.default.createElement("div",{className:"sui-colorpicker sui-colorpicker-"+(this.props.isAlpha?"rgba":"hex"),"aria-hidden":"true"},l.default.createElement("div",{className:"sui-colorpicker-value"},l.default.createElement("span",{role:"button"},l.default.createElement("span",{style:{backgroundColor:t}})),l.default.createElement("input",{type:"text",defaultValue:t,readOnly:"readonly"}),l.default.createElement("button",null,l.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}))),l.default.createElement("button",{className:"sui-button"},(0,u.translate)("Select"))),l.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&&l.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(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(),n=l.default.Children.map(this.props.children,function(n){if(!n)return l.default.createElement(l.default.Fragment,null);var r=_.isUndefined(n.props.label)?n.props.children:n.props.label;return e.props.disabled?l.default.createElement("div",{className:"sui-tab-item"+(n.props.value===t?" active":""),style:{opacity:.5,cursor:"not-allowed"}},r):e.props.disabled?void 0:l.default.createElement("div",{className:"sui-tab-item"+(n.props.value===t?" active":""),onClick:e.toggleValue.bind(e,n.props.value)},r)}),r=_.isUndefined(this.props.divClass)?"sui-tabs-content":"sui-tabs-content "+this.props.divClass,a=l.default.Children.map(this.props.children,function(e){if(!e)return l.default.createElement(l.default.Fragment,null);var n=_.isUndefined(e.props.boxClass)?"":e.props.boxClass;return"Empty"!==e.type.name?l.default.createElement("div",{className:n+" sui-tab-content"+(e.props.value===t?" active":"")},e.props.value===t&&e):l.default.createElement(l.default.Fragment,null)}),o="";this.props.label&&""!==this.props.label&&(o=l.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&l.default.createElement("span",{className:"sui-label-note"}," ",this.props.note)));var i="";if(this.props.settingsLabel&&""!==this.props.settingsLabel){var s=this.props.labelClass?this.props.labelClass:"sui-settings-label";i=l.default.createElement("label",{className:s},this.props.settingsLabel)}var u="";this.props.description&&""!==this.props.description&&(u=l.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=l.default.createElement("div",{className:c},l.default.createElement("div",{className:"sui-tabs-menu"},n),l.default.createElement("div",{className:r},a));return this.props.simple||(p=l.default.createElement("div",{className:"sui-form-field"},i,o,u,l.default.createElement("div",{className:c},l.default.createElement("div",{className:"sui-tabs-menu"},n),l.default.createElement("div",{className:r},a)))),p}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){var e=l.default.Children.map(this.props.children,function(e){return e});return l.default.createElement("div",{className:"sui-row"+(_.isUndefined(this.props.class)?"":" "+this.props.class)},e)}}]),t}(s.Component);t.default=u},function(e,t,n){e.exports=n(115)()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={active:n.props.default?n.props.default:""},n}return o(t,e),i(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"),n=this.props.extraClass?this.props.extraClass:"",r=l.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t))return l.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&&l.default.createElement("span",{className:"sui-error"},"*"))}),a=l.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t)){var n=_.isUndefined(t.props.boxClass)?"sui-tab-content":t.props.boxClass;return l.default.createElement("div",{className:n+(t.props.value===e.state.active?" active":"")},t.props.value===e.state.active&&t)}});return l.default.createElement("div",{className:"sui-"+t+" "+n},l.default.createElement("div",{className:"sui-tabs-menu"},r),l.default.createElement("div",{className:"sui-tabs-content"},a))}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e){if("object"!==(void 0===e?"undefined":h(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a(e,t,n){function o(){v===b&&(v=b.slice())}function i(){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 y}function s(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 n=v.indexOf(e);v.splice(n,1)}}}function l(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,y=m(y,e)}finally{g=!1}for(var t=b=v,n=0;n<t.length;n++){(0,t[n])()}return e}function u(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");m=e,l({type:d.REPLACE})}function c(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(i())}if("object"!==(void 0===e?"undefined":h(e))||null===e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[f.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var m=e,y=t,b=[],v=b,g=!1;return l({type:d.INIT}),p={dispatch:l,subscribe:s,getState:i,replaceReducer:u},p[f.a]=c,p}function o(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"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 i(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(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===n(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 s(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}var s=Object.keys(n),l=void 0;try{i(n)}catch(e){l=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var r=!1,a={},i=0;i<s.length;i++){var u=s[i],c=n[u],p=e[u],f=c(p,t);if(void 0===f){var d=o(u,t);throw new Error(d)}a[u]=f,r=r||f!==p}return r?a:e}}function l(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if("function"==typeof e)return l(e,t);if("object"!==(void 0===e?"undefined":h(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":h(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},a=0;a<n.length;a++){var o=n[a],i=e[o];"function"==typeof i&&(r[o]=l(i,t))}return r}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];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),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var o=e.apply(void 0,r),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(e){return e(s)});return i=c.apply(void 0,l)(o.dispatch),m({},o,{dispatch:i})}}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"createStore",function(){return a}),n.d(t,"combineReducers",function(){return s}),n.d(t,"bindActionCreators",function(){return u}),n.d(t,"applyMiddleware",function(){return p}),n.d(t,"compose",function(){return c}),n.d(t,"__DO_NOT_USE__ActionTypes",function(){return d});var f=n(121),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(0);!function(e){e&&e.__esModule}(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(114),a=n(66),o=n(118);n.d(t,"Provider",function(){return r.b}),n.d(t,"createProvider",function(){return r.a}),n.d(t,"connectAdvanced",function(){return a.a}),n.d(t,"connect",function(){return o.a})},function(e,t,n){"use strict";function r(e){return"[object Array]"===j.call(e)}function a(e){return"[object ArrayBuffer]"===j.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function i(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function l(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]"===j.call(e)}function f(e){return"[object File]"===j.call(e)}function d(e){return"[object Blob]"===j.call(e)}function h(e){return"[object Function]"===j.call(e)}function m(e){return c(e)&&h(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function b(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 n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function _(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=_(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)g(arguments[n],e);return t}function E(e,t,n){return g(t,function(t,r){e[r]=n&&"function"==typeof t?w(t,n):t}),e}var w=n(77),O=n(161),j=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:a,isBuffer:O,isFormData:o,isArrayBufferView:i,isString:s,isNumber:l,isObject:c,isUndefined:u,isDate:p,isFile:f,isBlob:d,isFunction:h,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:v,forEach:g,merge:_,extend:E,trim:b}},function(e,t,n){"use strict";var r=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){var e=l.default.Children.map(this.props.children,function(e){return e}),t="";this.props.label&&""!==this.props.label&&(t=l.default.createElement("span",{className:"sui-settings-label"+(!0===this.props.labelDark?" sui-dark":"")},this.props.label));var n="",r=10;_.isUndefined(this.props.descriptionSpacing)||""===this.props.descriptionSpacing||(r=this.props.descriptionSpacing),_.isUndefined(this.props.description)||""===this.props.description||(n=!1===this.props.sidebar?l.default.createElement("span",{className:"sui-description",style:{marginBottom:r+"px"}},this.props.description):l.default.createElement("span",{className:"sui-description"},this.props.description));var a="";(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(a=l.default.createElement("div",{className:"sui-box-settings-col-1"},t,n));var o=this.props.lastChild?{marginBottom:0,borderBottom:"unset"}:{};return l.default.createElement("div",{className:"sui-box-settings-row",style:o},(_.isUndefined(this.props.sidebar)||!1!==this.props.sidebar)&&a,l.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&&n,e))}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(u),p=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.afterSave=n.afterSave.bind(n),n}return i(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=this.$el.closest(".sui-modal-content"),t=e.attr("id"),n=this.props.hasSearch?0:-1,r=Object.assign({dropdownParent:e.length?jQuery("#"+t):jQuery('body[class*="sui-"]'),minimumResultsForSearch:n,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],n=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,a=_.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 i=this.props.multiple,l=this.props,u=(l.formType,l.updateProperty,l.noWrapper,l.fieldClass,l.staticContext,l.formDesign,l.fieldSize,r(l,["formType","updateProperty","noWrapper","fieldClass","staticContext","formDesign","fieldSize"])),p=c.default.createElement("select",s({id:"forminator-field-"+a,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:i},u),this.props.children),f=c.default.createElement("select",{id:"forminator-field-"+a,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:i},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:n},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,n){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function a(e){return e.replace(/"/g,""")}function o(e){return e.replace(/</g,"<")}function i(e){return Object(c.a)(a(r(e)))}function s(e){return o(r(e))}function l(e){return o(e.replace(/&/g,"&"))}function u(e){return!p.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeAmpersand=r,t.escapeQuotationMark=a,t.escapeLessThan=o,t.escapeAttribute=i,t.escapeHTML=s,t.escapeEditableHTML=l,t.isValidAttributeName=u;var c=n(187);const p=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return o(t,e),i(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],n=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=_.isUndefined(this.props.elementClass)?"":this.props.elementClass,a=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o="";this.props.label&&(o=l.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&&l.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&l.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 i=l.default.createElement("select",{defaultValue:t,id:"forminator-field-"+a,className:r,"aria-labelledby":"forminator-field-"+a+"-label",ref:function(t){return e.el=t},style:{maxWidth:"none"}},this.props.children),s=i;"md"===this.props.fieldsize||"medium"===this.props.fieldsize?s=l.default.createElement("div",{className:"sui-form-field sui-input-md"},i):"sm"===this.props.fieldsize||"small"===this.props.fieldsize?s=l.default.createElement("div",{className:"sui-form-field sui-input-sm"},i):""!==this.props.fieldsize&&(s=l.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldsize+"px"}},i));var u=s;return this.props.simple||(u=l.default.createElement("div",{className:n},o,s,this.props.description&&l.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))),u}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.radioContainer=u.default.createRef(),n}return o(t,e),s(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],n=u.default.Children.map(this.props.children,function(n){return u.default.createElement("button",i({id:"tab-option-"+n.props.value,role:"tab",className:"forminator-toggle sui-tab-item "+(n.props.value===t?"active":""),"aria-selected":n.props.value===t?"true":"false"},n.props.value!==t&&{tabIndex:"-1"},{"data-val":n.props.value,onClick:e.updateValue.bind(e,n.props.value)}),n.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 a="";this.props.description&&""!==this.props.description&&(a=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 s="";!this.props.label&&this.props.settingsDesc&&(s=u.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var l=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"},n)),c=u.default.createElement(u.default.Fragment,null,r,l);return this.props.noWrapper||(c=u.default.createElement("div",{className:"sui-form-field"},r,o,s,l,a)),c}}]),t}(l.Component);t.default=c},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function s(e,t){if(null==e)return{};var n,r,a=i(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"ButtonIcon",function(){return c});var l=n(0),u=n.n(l),c=function(e){var t=e.label,n=e.icon,r=e.iconSize,a=e.design,i=void 0===a?"solid":a,l=e.color,c=e.className,p=e.loading,f=s(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"}),h=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"sui-icon-".concat(n).concat(r?" sui-"+r:""),"aria-hidden":"true"}),u.a.createElement("span",{className:"sui-screen-reader-text"},t));switch(c="sui-button-icon ".concat(c||""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":c+=" sui-button-"+l;break;case"gray":default:c+=""}switch(i){case"ghost":case"outlined":c+=" sui-button-"+i;break;case"solid":default:c+=""}p&&(c+=" sui-button-onload");var m=f.href?"a":"button";return u.a.createElement(m,o({className:c,disabled:f.disabled||p},f),p?d:h)}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var r=n(138);n.d(t,"a",function(){return r.a});var a=n(141);n.d(t,"b",function(){return a.a});var o=n(142);n.d(t,"d",function(){return o.a});var i=n(34);n.d(t,"c",function(){return i.a}),n.d(t,"f",function(){return i.b});var s=n(27);n.d(t,"e",function(){return s.b})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}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:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],n=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,r=!_.isUndefined(this.props.disabled)&&this.props.disabled,a=t&&!r,o=l.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle"},l.default.createElement("input",{type:"checkbox",value:"true",id:"forminator-field-"+this.props.property,className:n,disabled:r?"disabled":"",checked:a?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),l.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&l.default.createElement(l.default.Fragment,null,l.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label),l.default.createElement("span",{className:"sui-toggle-label"},this.props.label)),this.props.description&&l.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)),i="";return this.props.children&&this.props.settings[this.props.property]&&(i=l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{tabIndex:"0",className:"sui-toggle-content sui-border-frame","aria-label":this.props.label},this.props.children))),this.props.unWrap?l.default.createElement(l.default.Fragment,null,o,i):this.props.unWrap?void 0:l.default.createElement("div",{className:"sui-form-field"},o,i)}}]),t}(s.Component);t.default=c},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(137);n.d(t,"BrowserRouter",function(){return r.a});var a=n(143);n.d(t,"HashRouter",function(){return a.a});var o=n(72);n.d(t,"Link",function(){return o.a});var i=n(144);n.d(t,"MemoryRouter",function(){return i.a});var s=n(146);n.d(t,"NavLink",function(){return s.a});var l=n(148);n.d(t,"Prompt",function(){return l.a});var u=n(150);n.d(t,"Redirect",function(){return u.a});var c=n(73);n.d(t,"Route",function(){return c.a});var p=n(46);n.d(t,"Router",function(){return p.a});var f=n(152);n.d(t,"StaticRouter",function(){return f.a});var d=n(154);n.d(t,"Switch",function(){return d.a});var h=n(156);n.d(t,"generatePath",function(){return h.a});var m=n(157);n.d(t,"matchPath",function(){return m.a});var y=n(158);n.d(t,"withRouter",function(){return y.a})},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},a=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},i=function(e,t){return o(e,t)?e.substr(t.length):e},s=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}},,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=(function(e){e&&e.__esModule}(s),function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(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}(s.Component));t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(17),f=n(189),d=r(f),h=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.textEditor=u.default.createRef(),n.updateValue=n.updateValue.bind(n),n.updateEditor=n.updateEditor.bind(n),n.toggleOptions=n.toggleOptions.bind(n),n.state={editorOptionsOpen:!1},n}return i(t,e),s(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),n=t.prop("selectionStart"),r=t.prop("selectionEnd"),a=t.val();t.val(a.substring(0,n)+"{"+e+"}"+a.substring(r,a.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,n=this.props.wrappers;return _.isUndefined(this.props.enableParentForm)||_.isUndefined(forminatorData.parentFormFields)||(n=forminatorData.parentFormFields),(0,c.getFields)(n,e,void 0,void 0,t)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),n=!!_.isUndefined(this.props.allowRepeater)||this.props.allowRepeater,r=_.map(t,function(t,r){if(t.required&&(n||!n&&_.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)))}),a=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,o=_.map(t,function(t,r){if(!t.required&&a!==t.field_type&&(n||!n&&_.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,n){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,n)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=this.props.wrappers;_.isUndefined(this.props.enableParentForm)||_.isUndefined(forminatorData.parentFormFields)||(t=forminatorData.parentFormFields);var n=(0,c.getFieldsByType)("paypal",t),r=(0,c.getFieldsByType)("stripe",t),a=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(n)||!_.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(a,function(t,n){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,n)},t))}))}},{key:"getEditorOptions",value:function(){var e=this;if(this.props.hideEditorOptions)return"";var t=this.props.disableMiscData?"":this.getMiscData(),n=this.props.enableFormData?this.getPaymentData():"",r=this.props.enableFormData?this.getFormData():"",a=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(a,function(t,n){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},u.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,n)},t))})),t,n)}},{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||"",n=this.getEditorOptions(),r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,a=this.isValid(t)?"":"sui-form-field-error",o=void 0;_.isEmpty(n)||(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),n));var i="";return this.props.label&&(i=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 "+a},i,this.props.descriptionTop&&u.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),u.default.createElement("div",{className:"sui-editor"+(_.isEmpty(n)?"":" 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}(l.Component);t.default=h},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!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 i(){m&&d&&(m=!1,d.length?h=d.concat(h):y=-1,h.length&&s())}function s(){if(!m){var e=a(i);m=!0;for(var t=h.length;t;){for(d=h,h=[];++y<t;)d&&d[y].run();y=-1,t=h.length}d=null,m=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,p,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],m=!1,y=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||m||a(s)},l.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,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(7),d=r(f),h=n(4),m=r(h),y=n(2),b=r(y),v=n(16),g=r(v),E=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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,n="basic-"===e?"":this.props.defaultFont,r=_.isUndefined(this.props.settings[t+"-font-family"])?n:this.props.settings[t+"-font-family"],a="basic-"===e?"":this.props.defaultSize,o=_.isUndefined(this.props.settings[t+"-font-size"])?a:this.props.settings[t+"-font-size"],i="basic-"===e?"":this.props.defaultWeight,l=_.isUndefined(this.props.settings[t+"-font-weight"])?i:this.props.settings[t+"-font-weight"],u=(0,p.getFontVariants)(r,window.forminatorFonts),f=this.backwardsCompat(l,u),h="";return"custom"===r&&(h=c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"12"},c.default.createElement(b.default,s({},this.props,{type:"text",label:(0,p.translate)("Custom font family"),placeholder:(0,p.translate)("E.g., Arial, sans-serif"),property:t+"-custom-family"}))))),c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"12"},c.default.createElement(g.default,s({},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:""},(0,p.translate)("inherit")),c.default.createElement("option",{value:"custom",key:"custom"},(0,p.translate)("Custom user font"))))),h,c.default.createElement(d.default,null,c.default.createElement(m.default,{cols:"6"},c.default.createElement(b.default,s({},this.props,{type:"number",label:(0,p.translate)("Font Size"),placeholder:(0,p.translate)("e.g., 0.75em"),property:t+"-font-size",defaultValue:""+(0,p.getDefaultValue)(this.props,o)}))),c.default.createElement(m.default,{cols:"6"},c.default.createElement(g.default,s({},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(f,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))}}]),t}(u.Component);t.default=E},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(139),a=n(140),o=n(27),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t,n,a){var s=void 0;"string"==typeof e?(s=Object(o.d)(e),s.state=t):(s=i({},e),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),a?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.a)(s.pathname,a.pathname)):s.pathname=a.pathname:s.pathname||(s.pathname="/"),s},l=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(a.a)(e.state,t.state)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=(n(1),function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={open:e.expanded||!1},n.toggleState=n.toggleState.bind(n),n}return o(t,e),i(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this,t=this.props.label,n=this.state.open,r="";n&&(r="sui-accordion-item--open");var a=!(!_.isUndefined(this.props.boxedContent)&&""!==this.props.boxedContent)||this.props.boxedContent,o=!_.isUndefined(this.props.defaultContentRender)&&this.props.defaultContentRender,i=l.default.Children.map(this.props.children,function(e){return e});return l.default.createElement("div",{className:"sui-accordion-item "+r},l.default.createElement("span",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},l.default.createElement("div",{className:"sui-accordion-item-title"},l.default.createElement("span",null,t),l.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},l.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),l.default.createElement("div",{className:"sui-accordion-item-body"},!1===a?(o||n)&&i:l.default.createElement("div",{className:"sui-box"},l.default.createElement("div",{className:"sui-box-body"},(o||n)&&i),a)))}}]),t}(s.Component));t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.showModal=function(e,t){return function(n){n({type:"SHOW_MODAL",modalProps:e,modalType:t})}},t.hideModal=function(){return function(e){e({type:"HIDE_MODAL"})}}},function(e,t,n){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var a=e.charCodeAt(r),o=a>>8,i=255&a;o?n.push(o,i):n.push(i)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n}function a(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=o(a)),n+=l(a.toString(16))}return n}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,n,r){var a=n-t;N(a%4==0);for(var o=new Array(a/4),i=0,s=t;i<o.length;i++,s+=4){var l;l="big"===r?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[i]=l>>>0}return o}function c(e,t){for(var n=new Array(4*e.length),r=0,a=0;r<e.length;r++,a+=4){var o=e[r];"big"===t?(n[a]=o>>>24,n[a+1]=o>>>16&255,n[a+2]=o>>>8&255,n[a+3]=255&o):(n[a+3]=o>>>24,n[a+2]=o>>>16&255,n[a+1]=o>>>8&255,n[a]=255&o)}return n}function p(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function d(e,t){return e+t>>>0}function h(e,t,n){return e+t+n>>>0}function m(e,t,n,r){return e+t+n+r>>>0}function y(e,t,n,r,a){return e+t+n+r+a>>>0}function b(e,t,n,r){var a=e[t],o=e[t+1],i=r+o>>>0,s=(i<r?1:0)+n+a;e[t]=s>>>0,e[t+1]=i}function v(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0}function g(e,t,n,r){return t+r>>>0}function _(e,t,n,r,a,o,i,s){var l=0,u=t;return u=u+r>>>0,l+=u<t?1:0,u=u+o>>>0,l+=u<o?1:0,u=u+s>>>0,l+=u<s?1:0,e+n+a+i+l>>>0}function E(e,t,n,r,a,o,i,s){return t+r+o+s>>>0}function w(e,t,n,r,a,o,i,s,l,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+s>>>0,c+=p<s?1:0,p=p+u>>>0,c+=p<u?1:0,e+n+a+i+l+c>>>0}function O(e,t,n,r,a,o,i,s,l,u){return t+r+o+s+u>>>0}function j(e,t,n){return(t<<32-n|e>>>n)>>>0}function x(e,t,n){return(e<<32-n|t>>>n)>>>0}function P(e,t,n){return e>>>n}function k(e,t,n){return(e<<32-n|t>>>n)>>>0}var N=n(53),C=n(54);t.inherits=C,t.toArray=r,t.toHex=a,t.htonl=o,t.toHex32=i,t.zero2=s,t.zero8=l,t.join32=u,t.split32=c,t.rotr32=p,t.rotl32=f,t.sum32=d,t.sum32_3=h,t.sum32_4=m,t.sum32_5=y,t.sum64=b,t.sum64_hi=v,t.sum64_lo=g,t.sum64_4_hi=_,t.sum64_4_lo=E,t.sum64_5_hi=w,t.sum64_5_lo=O,t.rotr64_hi=j,t.rotr64_lo=x,t.shr64_hi=P,t.shr64_lo=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateSetting=function(e,t){return function(n){window.forminatorChanges.settings=!0,n({type:"UPDATE_SETTING",setting:e,value:t})}},t.updateSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_SETTINGS",settings:e})}},t.saveBuilder=function(e,t){return function(n){window.forminatorChanges={fields:[],settings:!1,saved:!0},n({type:"UPDATE_SETTING",setting:e,value:t})}}},function(e,t,n){e.exports=n(160)},function(e,t,n){"use strict";var r=n(178),a=n(179),o=n(83);e.exports={formats:o,parse:a,stringify:r}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}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:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],n=_.isUndefined(this.props.fieldId)?this.props.property:this.props.fieldId,r=!(_.isUndefined(this.props.disabled)||!this.props.disabled),a="";return this.props.itemClass&&""!==this.props.itemClass&&(a=" "+this.props.itemClass),l.default.createElement("label",{htmlFor:"forminator-field-"+n,className:"sui-checkbox"+a},l.default.createElement("input",{type:"checkbox",id:"forminator-field-"+n,value:"true",checked:t?"checked":"",disabled:r,onChange:function(t){e.updateValue(t.target.checked)}}),l.default.createElement("span",{"aria-hidden":"true"}),this.props.label&&l.default.createElement("span",null,this.props.label,!_.isUndefined(this.props.tooltip)&&""!==this.props.tooltip&&l.default.createElement("span",{className:"sui-tooltip sui-tooltip-constrained",style:{marginLeft:10,verticalAlign:"middle","--tooltip-width":"165px"},"data-tooltip":this.props.tooltip},l.default.createElement("span",{className:"sui-icon-info","aria-hidden":"true",style:{pointerEvents:"none"}}))))}}]),t}(s.Component);t.default=u},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"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,n){"use strict";var r=n(33),a=n.n(r),o=function(){var e=null,t=function(t){return a()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):(a()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=o},function(e,t,n){"use strict";var r=n(47);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(18),s=n.n(i),l=n(14),u=n.n(l),c=n(0),p=n.n(c),f=n(8),d=n.n(f),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e){function t(){var n,o,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=a(this,e.call.apply(e,[this].concat(l))),o.state={match:o.computeMatch(o.props.history.location.pathname)},i=n,a(o,i)}return o(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;u()(null==n||1===p.a.Children.count(n),"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){s()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(75),a=n.n(r),o={},i=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=o[n]||(o[n]={});if(r[e])return r[e];var s=[],l=a()(e,s,t),u={re:l,keys:s};return i<1e4&&(r[e]=u,i++),u},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,a=r.path,o=r.exact,i=void 0!==o&&o,l=r.strict,u=void 0!==l&&l,c=r.sensitive,p=void 0!==c&&c;if(null==a)return n;var f=s(a,{end:i,strict:u,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var y=m[0],b=m.slice(1),v=e===y;return i&&!v?null:{path:a,url:"/"===a&&""===y?"/":y,isExact:v,params:h.reduce(function(e,t,n){return e[t.name]=b[n],e},{})}};t.a=l},function(e,t,n){"use strict";(function(t){function r(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a=n(13),o=n(163),i={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(78):void 0!==t&&(e=n(78)),e}(),transformRequest:[function(e,t){return o(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.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}};s.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],function(e){s.headers[e]={}}),a.forEach(["post","put","patch"],function(e){s.headers[e]=a.merge(i)}),e.exports=s}).call(t,n(31))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function s(e,t){if(null==e)return{};var n,r,a=i(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Button",function(){return c});var l=n(0),u=n.n(l),c=function(e){var t=e.label,n=e.icon,r=e.design,a=void 0===r?"solid":r,i=e.color,l=e.className,c=e.loading,p=s(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,n&&""!==n&&u.a.createElement("span",{className:"sui-icon-"+n,"aria-hidden":"true"}),t);switch(l="sui-button".concat(l?" "+l:""),i){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":l+=" sui-button-"+i;break;case"gray":default:l+=""}switch(a){case"ghost":case"outlined":l+=" sui-button-"+a;break;case"solid":default:l+=""}c&&(l+=" sui-button-onload");var h="button";return p.href?h="a":p.htmlFor&&(h="label"),u.a.createElement(h,o({className:l,disabled:p.disabled||c},p),c?f:d)}},function(e,t,n){var r=n(89),a=new r;e.exports={numberFormat:a.numberFormat.bind(a),translate:a.translate.bind(a),configure:a.configure.bind(a),setLocale:a.setLocale.bind(a),getLocale:a.getLocale.bind(a),getLocaleSlug:a.getLocaleSlug.bind(a),addTranslations:a.addTranslations.bind(a),reRenderTranslations:a.reRenderTranslations.bind(a),registerComponentUpdateHook:a.registerComponentUpdateHook.bind(a),registerTranslateHook:a.registerTranslateHook.bind(a),state:a.state,stateObserver:a.stateObserver,on:a.stateObserver.on.bind(a.stateObserver),off:a.stateObserver.removeListener.bind(a.stateObserver),emit:a.stateObserver.emit.bind(a.stateObserver),localize:n(103)(a),$this:a,I18N:r}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.updateValue=n.updateValue.bind(n),n.clearValue=n.clearValue.bind(n);var o=_.isUndefined(n.props.defaultValue)?"":n.props.defaultValue,i=_.isUndefined(n.props.settings[n.props.property])?o:n.props.settings[n.props.property];return n.state={value:i},n}return o(t,e),i(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(n){var r=e.state.value+(t?"":" ")+n.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,n=_.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,a=this.isValid(n)?"":" sui-form-field-error",o=_.isUndefined(this.props.customClass)?"":" "+this.props.customClass,i="",s="input",c="";"textarea"===this.props.type&&(s="textarea",c="textarea-type"),this.props.label&&(i=l.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&l.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&l.default.createElement("span",{className:"sui-label-note"},this.props.note)));var p=l.default.createElement(l.default.Fragment,null,"input"===s&&l.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"===s&&l.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 l.default.createElement("div",{className:"sui-form-field"+o+a},i,l.default.createElement("div",{className:"sui-insert-variables "+c},p,l.default.createElement("select",{className:"sui-variables",ref:function(t){return e.el=t}},this.props.children.length<=0&&l.default.createElement("optgroup",{label:(0,u.translate)("No available options")}),this.props.children),this.props.isRequired&&!this.isValid(n)&&l.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&l.default.createElement("span",{className:"sui-description"},this.props.description)))}}]),t}(s.Component);t.default=c},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function a(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!a(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,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(n=this._events[e],i(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),a=u.length,l=0;l<a;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;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&&(a=i(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),a||(a=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var a=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,a,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=s;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r,o,i,s,l){if(a(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=[n,r,o,i,s,l],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};e.exports=r},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function a(e,t){var n=M(e)||d(e)?r(e.length,String):[],a=n.length,o=!!a;for(var i in e)!t&&!k.call(e,i)||o&&("length"==i||u(i,a))||n.push(i);return n}function o(e,t,n){var r=e[t];k.call(e,t)&&f(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function i(e){if(!p(e))return S(e);var t=[];for(var n in Object(e))k.call(e,n)&&"constructor"!=n&&t.push(n);return t}function s(e,t){return t=T(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=T(r.length-t,0),i=Array(o);++a<o;)i[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=i,n(e,this,s)}}function l(e,t,n,r){n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;o(n,s,void 0===l?e[s]:l)}return n}function u(e,t){return!!(t=null==t?E:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function c(e,t,n){if(!v(n))return!1;var r=typeof t;return!!("number"==r?h(n)&&u(t,n.length):"string"==r&&t in n)&&f(n[t],e)}function p(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||P)}function f(e,t){return e===t||e!==e&&t!==t}function d(e){return m(e)&&k.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==w)}function h(e){return null!=e&&b(e.length)&&!y(e)}function m(e){return g(e)&&h(e)}function y(e){var t=v(e)?N.call(e):"";return t==O||t==j}function b(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=E}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function _(e){return h(e)?a(e):i(e)}var E=9007199254740991,w="[object Arguments]",O="[object Function]",j="[object GeneratorFunction]",x=/^(?:0|[1-9]\d*)$/,P=Object.prototype,k=P.hasOwnProperty,N=P.toString,C=P.propertyIsEnumerable,S=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),T=Math.max,A=!C.call({valueOf:1},"valueOf"),M=Array.isArray,F=function(e){return s(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&c(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,o)}return t})}(function(e,t){if(A||p(t)||h(t))return void l(t,_(t),e);for(var n in t)k.call(t,n)&&o(e,n,t[n])});e.exports=F},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function a(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function o(e,t){if(null==e)return{};var n,r,o=a(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function s(){var e=i(["\n.sui-wrap && {\n\tdisplay: ",";\n\t","\n\t","\n\tmargin: 0;\n\tpadding-top: ","px;\n\tpadding-right: ","px;\n\tpadding-bottom: ","px;\n\tpadding-left: ","px;\n\tborder: 0 solid #E6E6E6;\n\tborder-top-width: ","px;\n\t","\n\n\t","\n\t","\n\n\t@media "," {\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t}\n}\n"]);return s=function(){return e},e}function l(){var e=i(["\n.sui-wrap && {\n\tmargin: 0;\n\tpadding-top: ","px;\n\tpadding-right: ","px;\n\tpadding-bottom: ","px;\n\tpadding-left: ","px;\n\tborder: 0 solid #E6E6E6;\n\tborder-top-width: ","px;\n\tborder-bottom-width: ","px;\n\ttext-align: ",";\n\n\t@media "," {\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t}\n}\n"]);return l=function(){return e},e}function u(){var e=i(["\n.sui-wrap && {\n\tdisplay: ",";\n\t","\n\t","\n\tmargin: 0;\n\tpadding-top: ","px;\n\tpadding-right: ","px;\n\tpadding-bottom: ","px;\n\tpadding-left: ","px;\n\tborder: 0 solid #E6E6E6;\n\tborder-bottom-width: ","px;\n\t","\n\n\t","\n\t","\n\n\t@media "," {\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t}\n}\n"]);return u=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Box",function(){return y}),n.d(t,"BoxBody",function(){return E}),n.d(t,"BoxFooter",function(){return O}),n.d(t,"BoxHeader",function(){return g}),n.d(t,"BoxSection",function(){return j}),n.d(t,"BoxTitle",function(){return b});var c=n(0),p=n.n(c),f=n(197),d={gutter:30,gutter_md:20},h={mobile:480,tablet:783,laptop:1200,desktop:1500},m={mobile:"(min-width: ".concat(h.mobile,"px)"),tablet:"(min-width: ".concat(h.tablet,"px)"),laptop:"(min-width: ".concat(h.laptop,"px)"),desktop:"(min-width: ".concat(h.desktop,"px)")},y=function(e){var t=e.children,n=e.className,a=o(e,["children","className"]);return p.a.createElement("div",r({className:void 0!==n&&""!==n?"sui-box ".concat(n):"sui-box"},a),t)},b=function(e){var t=e.icon,n=e.tagLabel,a=e.tagColor,i=e.tagSize,s=e.tagDesign,l=e.className,u=e.children,c=o(e,["icon","tagLabel","tagColor","tagSize","tagDesign","className","children"]),f="sui-tag";switch(a){case"red":case"yellow":case"green":case"blue":case"purple":f+=" sui-tag-"+a}switch(i){case"sm":case"small":f+=" sui-tag-sm"}switch(s){case"outlined":f+=" sui-tag-ghost"}return p.a.createElement("h3",r({className:void 0!==l&&""!==l?"sui-box-title ".concat(l):"sui-box-title"},c),t&&""!==t&&p.a.createElement("span",{className:"sui-icon-".concat(t," sui-md"),"aria-hidden":"true"}),u,n&&""!==n&&p.a.createElement("span",{className:f,style:{marginLeft:10}},n))},v=f.b.div.attrs(function(e){return{props:e}})(u(),function(e){return"block"!==e.display?"flex":"block"},function(e){return"block"!==e.display&&"flex-flow: row wrap;"},function(e){return"block"===e.display||"left"!==e.alignment&&"right"!==e.alignment&&"center"!==e.alignment?"justify-content: space-between;":"left"===e.alignment?"justify-content: flex-start;":"right"===e.alignment?"justify-content: flex-end;":"justify-content: center;"},function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:d.gutter_md/2},function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:d.gutter_md},function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:d.gutter_md/2},function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:d.gutter_md},function(e){return e.border||0===e.border?e.border:1},function(e){return"block"===e.display&&("right"===e.alignment||"center"===e.alignment)&&"text-align: "+e.alignment+";"},function(e){return"block"!==e.display&&"> * { max-width: 100%; flex: 0 0 auto; }"},function(e){return"block"!==e.display&&"> * + * { margin-left: 10px; }"},m.tablet,function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:d.gutter/2},function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:d.gutter},function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:d.gutter/2},function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:d.gutter}),g=function(e){var t=e.title,n=e.titleIcon,r=e.tagLabel,a=e.tagColor,i=e.tagSize,s=e.tagDesign,l=(e.className,e.children),u=o(e,["title","titleIcon","tagLabel","tagColor","tagSize","tagDesign","className","children"]);return p.a.createElement(v,u,t&&""!==t&&p.a.createElement(b,{icon:n,tagLabel:r,tagColor:a,tagSize:i,tagDesign:s},t),l)},_=f.b.div.attrs(function(e){return{props:e}})(l(),function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:d.gutter_md},function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:d.gutter_md},function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:d.gutter_md},function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:d.gutter_md},function(e){return e.borderTop||0===e.borderTop?e.borderTop:0},function(e){return e.borderBottom||0===e.borderBottom?e.borderBottom:0},function(e){return e.alignment||"left"},m.tablet,function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:d.gutter},function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:d.gutter},function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:d.gutter},function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:d.gutter}),E=function(e){var t=e.className,n=e.children,a=o(e,["className","children"]);return p.a.createElement(_,r({className:t},a),n)},w=f.b.div.attrs(function(e){return{props:e}})(s(),function(e){return"block"!==e.display?"flex":"block"},function(e){return"block"!==e.display&&"flex-flow: row wrap;"},function(e){return"block"===e.display||"left"!==e.alignment&&"right"!==e.alignment&&"center"!==e.alignment?"justify-content: space-between;":"left"===e.alignment?"justify-content: flex-start;":"right"===e.alignment?"justify-content: flex-end;":"justify-content: center;"},function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:d.gutter_md},function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:d.gutter_md},function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:d.gutter_md},function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:d.gutter_md},function(e){return e.border||0===e.border||""===e.border?e.border:1},function(e){return"block"===e.display&&("right"===e.alignment||"center"===e.alignment)&&"text-align: "+e.alignment+";"},function(e){return"block"!==e.display&&"> * { max-width: 100%; flex: 0 0 auto; }"},function(e){return"block"!==e.display&&"> * + * { margin-left: 10px; }"},m.tablet,function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:d.gutter},function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:d.gutter},function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:d.gutter},function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:d.gutter}),O=function(e){var t=e.className,n=e.children,a=o(e,["className","children"]);return p.a.createElement(w,r({className:t},a),n)},j=function(e){var t=e.title,n=e.description,a=e.className,i=e.children,s=o(e,["title","description","className","children"]);return p.a.createElement("div",r({className:void 0!==a&&""!==a?"sui-box-settings-row ".concat(a):"sui-box-settings-row"},s),(t&&""!==t||n&&""!==n)&&p.a.createElement("div",{className:"sui-box-settings-col-1"},""!==t&&p.a.createElement("h4",{className:"sui-settings-label"},t),""!==n&&p.a.createElement("p",{className:"sui-description"},n)),p.a.createElement("div",{className:"sui-box-settings-col-2"},i))}},,,,,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(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 n=void 0,r=t.state().get("selection").first().toJSON();n=_.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,n),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,n),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",n=_.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=l.default.createElement("label",{className:"sui-label"},this.props.label));var a="";this.props.description&&(a=l.default.createElement("span",{className:"sui-description"},this.props.description));var o="";if("image"===this.props.type){var i="";e&&(i="url("+e+")"),o=l.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},l.default.createElement("div",{className:"sui-image-mask"}),l.default.createElement("div",{role:"button",onClick:this.openMedia.bind(this),className:"sui-image-preview",style:{backgroundImage:i}}))}var s=this.props.fieldClass?" "+this.props.fieldClass:"";return l.default.createElement("div",{className:"sui-form-field"+s},r,l.default.createElement("div",{className:"sui-upload "+t},l.default.createElement("input",{type:"file",value:"",readOnly:"readonly"}),o,l.default.createElement("button",{className:"sui-upload-button",onClick:this.openMedia.bind(this)},l.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")),l.default.createElement("div",{className:"sui-upload-file"},l.default.createElement("span",{title:n},n),l.default.createElement("button",{className:"sui-upload-button--remove",onClick:this.clearImage.bind(this)},l.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},"image"===this.props.type?""+(0,u.translate)("Remove uploaded image"):""+(0,u.translate)("Remove uploaded file"))))),a)}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});var r=n(8),a=n.n(r),o=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),i=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)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 i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(){}function l(e,t){var n={run:function(r){try{var a=e(t.getState(),r);(a!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=a,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function u(e){var t,n,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,f=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,_=u.methodName,E=void 0===_?"connectAdvanced":_,w=u.renderCountProp,O=void 0===w?void 0:w,j=u.shouldHandleStateChanges,x=void 0===j||j,P=u.storeKey,k=void 0===P?"store":P,N=u.withRef,C=void 0!==N&&N,S=i(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=k+"Subscription",A=v++,M=(t={},t[k]=y.a,t[T]=y.b,t),F=(n={},n[T]=y.b,n);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+E+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=f(n),u=b({},S,{getDisplayName:f,methodName:E,renderCountProp:O,shouldHandleStateChanges:x,storeKey:k,withRef:C,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){r(this,c);var o=a(this,n.call(this,e,t));return o.version=A,o.state={},o.renderCount=0,o.store=e[k]||t[k],o.propsMode=Boolean(e[k]),o.setWrappedInstance=o.setWrappedInstance.bind(o),d()(o.store,'Could not find "'+k+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+k+'" as a prop to "'+i+'".'),o.initSelector(),o.initSubscription(),o}return o(c,n),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[T]=t||this.context[T],e},c.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,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 "+E+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=l(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new m.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(C||O||this.propsMode&&this.subscription))return e;var t=b({},e);return C&&(t.ref=this.setWrappedInstance),O&&(t[O]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(h.createElement)(t,this.addExtraProps(e.props))},c}(h.Component);return c.WrappedComponent=t,c.displayName=i,c.childContextTypes=F,c.contextTypes=M,c.propTypes=M,p()(c,t)}}t.a=u;var c=n(67),p=n.n(c),f=n(14),d=n.n(f),h=n(0),m=(n.n(h),n(117)),y=n(65),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=0,g={}},function(e,t,n){"use strict";function r(e,t,n){if("string"!=typeof t){if(p){var f=c(t);f&&f!==p&&r(e,f,n)}var d=s(t);l&&(d=d.concat(l(t)));for(var h=0;h<d.length;++h){var m=d[h];if(!(a[m]||o[m]||n&&n[m])){var y=u(t,m);try{i(e,m,y)}catch(e){}}}return e}return e}var a={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},i=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=r},function(e,t,n){"use strict";function r(e){return function(t,n){function r(){return a}var a=e(t,n);return r.dependsOnOwnProps=!1,r}}function a(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,n){var r=(n.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=a(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=a(o),o=r(t,n)),o},r}}t.a=r,t.b=o;n(69)},function(e,t,n){"use strict";n(124),n(44)},function(e,t,n){"use strict";var r=n(126),a=r.a.Symbol;t.a=a},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),a=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},o=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},i=function(e,t){return t(window.confirm(e))},s=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)},l=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,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(0),l=n.n(s),u=n(8),c=n.n(u),p=n(14),f=n.n(p),d=n(23),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},y=function(e){function t(){var n,r,i;a(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(l))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!m(e)){e.preventDefault();var t=r.context.router.history,n=r.props,a=n.replace,o=n.to;a?t.replace(o):t.push(o)}},i=n,o(r,i)}return i(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,a=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,i="string"==typeof t?Object(d.c)(t,null,null,o.location):t,s=o.createHref(i);return l.a.createElement("a",h({},a,{onClick:this.handleClick,href:s,ref:n}))},t}(l.a.Component);y.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])},y.defaultProps={replace:!1},y.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=y},function(e,t,n){"use strict";var r=n(74);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(18),s=n.n(i),l=n(14),u=n.n(l),c=n(0),p=n.n(c),f=n(8),d=n.n(f),h=n(48),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(e){return 0===p.a.Children.count(e)},b=function(e){function t(){var n,o,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=a(this,e.call.apply(e,[this].concat(l))),o.state={match:o.computeMatch(o.props,o.context.router)},i=n,a(o,i)}return o(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,a=e.path,o=e.strict,i=e.exact,s=e.sensitive;if(n)return n;u()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,c=(r||l.location).pathname;return Object(h.a)(c,{path:a,strict:o,exact:i,sensitive:s},l.match)},t.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),s()(!(this.props.component&&this.props.children&&!y(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),s()(!(this.props.render&&this.props.children&&!y(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){s()(!(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.'),s()(!(!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,n=t.children,r=t.component,a=t.render,o=this.context.router,i=o.history,s=o.route,l=o.staticContext,u=this.props.location||s.location,c={match:e,location:u,history:i,staticContext:l};return r?e?p.a.createElement(r,c):null:a?e?a(c):null:"function"==typeof n?n(c):n&&!y(n)?p.a.Children.only(n):null},t}(p.a.Component);b.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},b.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},b.childContextTypes={router:d.a.object.isRequired},t.a=b},function(e,t,n){function r(e,t){for(var n,r=[],a=0,o=0,i="",s=t&&t.delimiter||"/";null!=(n=v.exec(e));){var c=n[0],p=n[1],f=n.index;if(i+=e.slice(o,f),o=f+c.length,p)i+=p[1];else{var d=e[o],h=n[2],m=n[3],y=n[4],b=n[5],g=n[6],_=n[7];i&&(r.push(i),i="");var E=null!=h&&null!=d&&d!==h,w="+"===g||"*"===g,O="?"===g||"*"===g,j=n[2]||s,x=y||b;r.push({name:m||a++,prefix:h||"",delimiter:j,optional:O,repeat:w,partial:E,asterisk:!!_,pattern:x?u(x):_?".*":"[^"+l(j)+"]+?"})}}return o<e.length&&(i+=e.substr(o)),i&&r.push(i),r}function a(e,t){return s(r(e,t))}function o(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var a="",s=n||{},l=r||{},u=l.pretty?o:encodeURIComponent,c=0;c<e.length;c++){var p=e[c];if("string"!=typeof p){var f,d=s[p.name];if(null==d){if(p.optional){p.partial&&(a+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(b(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===h?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?i(d):u(d),!t[c].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');a+=p.prefix+f}}else a+=p}return a}}function l(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 n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.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,n){for(var r=[],a=0;a<e.length;a++)r.push(y(e[a],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",p(n)),t)}function h(e,t,n){return m(r(e,n),t,n)}function m(e,t,n){b(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,a=!1!==n.end,o="",i=0;i<e.length;i++){var s=e[i];if("string"==typeof s)o+=l(s);else{var u=l(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+u+f+")*"),f=s.optional?s.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")",o+=f}}var d=l(n.delimiter||"/"),h=o.slice(-d.length)===d;return r||(o=(h?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=a?"$":r&&h?"":"(?="+d+"|$)",c(new RegExp("^"+o,p(n)),t)}function y(e,t,n){return b(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?f(e,t):b(e)?d(e,t,n):h(e,t,n)}var b=n(147);e.exports=y,e.exports.parse=r,e.exports.compile=a,e.exports.tokensToFunction=s,e.exports.tokensToRegExp=m;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,n){"use strict";var r=n(75),a=n.n(r),o={},i=0,s=function(e){var t=e,n=o[t]||(o[t]={});if(n[e])return n[e];var r=a.a.compile(e);return i<1e4&&(n[e]=r,i++),r},l=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:s(e)(t,{pretty:!0})};t.a=l},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(13),a=n(164),o=n(166),i=n(167),s=n(168),l=n(79),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(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,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var y=e.auth.username||"",b=e.auth.password||"";f.Authorization="Basic "+u(y+":"+b)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?i(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:n,config:e,request:d};a(t,c,o),d=null}},d.onerror=function(){c(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=n(170),g=(e.withCredentials||s(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,n){"use strict";var r=n(165);e.exports=function(e,t,n,a,o){var i=new Error(e);return r(i,t,n,a,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"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,n){"use strict";var r=Object.prototype.hasOwnProperty,a=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 n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],a=0;a<t.length;++a)void 0!==t[a]&&r.push(t[a]);n.obj[n.prop]=r}}return t},i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},s=function e(t,n,a){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(a.plainObjects||a.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var o=t;return Array.isArray(t)&&!Array.isArray(n)&&(o=i(t,a)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,o){r.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],n,a):t.push(n):t[o]=n}),t):Object.keys(n).reduce(function(t,o){var i=n[o];return r.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],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),n="",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?n+=t.charAt(r):o<128?n+=a[o]:o<2048?n+=a[192|o>>6]+a[128|63&o]:o<55296||o>=57344?n+=a[224|o>>12]+a[128|o>>6&63]+a[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),n+=a[240|o>>18]+a[128|o>>12&63]+a[128|o>>6&63]+a[128|63&o])}return n},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var a=t[r],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var u=s[l],c=i[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:i,prop:u}),n.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:i,assign:l,compact:p,decode:u,encode:c,isBuffer:d,isRegExp:f,merge:s}},function(e,t,n){"use strict";var r=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},,,function(e,t,n){"use strict";function r(e,t){var n=document.getElementById(e);if(!_.isNull(n))if(s.default.gte(a.version,"18.0.0")){var r=(0,o.createRoot)(n);r.render(t)}else(0,a.render)(t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.renderBlock=r;var a=n(22),o=n(87),i=n(88),s=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";var r=n(22);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t,n){(function(n){function r(e,t){if(e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>K)return null;if(!(t?Z[ye]:Z[de]).test(e))return null;try{return new i(e,t)}catch(e){return null}}function a(e,t){var n=r(e,t);return n?n.version:null}function o(e,t){var n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}function i(e,t){if(e instanceof i){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>K)throw new TypeError("version is longer than "+K+" characters");if(!(this instanceof i))return new i(e,t);J("SemVer",e,t),this.loose=t;var n=e.trim().match(t?Z[ye]:Z[de]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[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");n[4]?this.prerelease=n[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=n[5]?n[5].split("."):[],this.format()}function s(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new i(e,n).inc(t,r).version}catch(e){return null}}function l(e,t){if(E(e,t))return null;var n=r(e),a=r(t);if(n.prerelease.length||a.prerelease.length){for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==a[o])return"pre"+o;return"prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==a[o])return o}function u(e,t){var n=Ue.test(e),r=Ue.test(t);return n&&r&&(e=+e,t=+t),n&&!r?-1:r&&!n?1:e<t?-1:e>t?1:0}function c(e,t){return u(t,e)}function p(e,t){return new i(e,t).major}function f(e,t){return new i(e,t).minor}function d(e,t){return new i(e,t).patch}function h(e,t,n){return new i(e,n).compare(new i(t,n))}function m(e,t){return h(e,t,!0)}function y(e,t,n){return h(t,e,n)}function b(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function v(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function g(e,t,n){return h(e,t,n)>0}function _(e,t,n){return h(e,t,n)<0}function E(e,t,n){return 0===h(e,t,n)}function w(e,t,n){return 0!==h(e,t,n)}function O(e,t,n){return h(e,t,n)>=0}function j(e,t,n){return h(e,t,n)<=0}function x(e,t,n,r){var a;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),a=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),a=e!==n;break;case"":case"=":case"==":a=E(e,n,r);break;case"!=":a=w(e,n,r);break;case">":a=g(e,n,r);break;case">=":a=O(e,n,r);break;case"<":a=_(e,n,r);break;case"<=":a=j(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return a}function P(e,t){if(e instanceof P){if(e.loose===t)return e;e=e.value}if(!(this instanceof P))return new P(e,t);J("comparator",e,t),this.loose=t,this.parse(e),this.semver===ze?this.value="":this.value=this.operator+this.semver.version,J("comp",this)}function k(e,t){if(e instanceof k)return e.loose===t?e:new k(e.raw,t);if(e instanceof P)return new k(e.value,t);if(!(this instanceof k))return new k(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 k(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function C(e,t){return J("comp",e),e=M(e,t),J("caret",e),e=T(e,t),J("tildes",e),e=R(e,t),J("xrange",e),e=I(e,t),J("stars",e),e}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function T(e,t){return e.trim().split(/\s+/).map(function(e){return A(e,t)}).join(" ")}function A(e,t){var n=t?Z[Ne]:Z[ke];return e.replace(n,function(t,n,r,a,o){J("tilde",e,t,n,r,a,o);var i;return S(n)?i="":S(r)?i=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?i=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":o?(J("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),i=">="+n+"."+r+"."+a+o+" <"+n+"."+(+r+1)+".0"):i=">="+n+"."+r+"."+a+" <"+n+"."+(+r+1)+".0",J("tilde return",i),i})}function M(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){J("caret",e,t);var n=t?Z[Ae]:Z[Te];return e.replace(n,function(t,n,r,a,o){J("caret",e,t,n,r,a,o);var i;return S(n)?i="":S(r)?i=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?i="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":o?(J("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),i="0"===n?"0"===r?">="+n+"."+r+"."+a+o+" <"+n+"."+r+"."+(+a+1):">="+n+"."+r+"."+a+o+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+a+o+" <"+(+n+1)+".0.0"):(J("no pr"),i="0"===n?"0"===r?">="+n+"."+r+"."+a+" <"+n+"."+r+"."+(+a+1):">="+n+"."+r+"."+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+a+" <"+(+n+1)+".0.0"),J("caret return",i),i})}function R(e,t){return J("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return D(e,t)}).join(" ")}function D(e,t){e=e.trim();var n=t?Z[Oe]:Z[we];return e.replace(n,function(t,n,r,a,o,i){J("xRange",e,t,n,r,a,o,i);var s=S(r),l=s||S(a),u=l||S(o),c=u;return"="===n&&c&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&c?(l&&(a=0),u&&(o=0),">"===n?(n=">=",l?(r=+r+1,a=0,o=0):u&&(a=+a+1,o=0)):"<="===n&&(n="<",l?r=+r+1:a=+a+1),t=n+r+"."+a+"."+o):l?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0"),J("xRange return",t),t})}function I(e,t){return J("replaceStars",e,t),e.trim().replace(Z[Le],"")}function L(e,t,n,r,a,o,i,s,l,u,c,p,f){return t=S(n)?"":S(r)?">="+n+".0.0":S(a)?">="+n+"."+r+".0":">="+t,s=S(l)?"":S(u)?"<"+(+l+1)+".0.0":S(c)?"<"+l+"."+(+u+1)+".0":p?"<="+l+"."+u+"."+c+"-"+p:"<="+s,(t+" "+s).trim()}function q(e,t){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length){for(var n=0;n<e.length;n++)if(J(e[n].semver),e[n].semver!==ze&&e[n].semver.prerelease.length>0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function U(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function z(e,t,n){var r=null,a=null;try{var o=new k(t,n)}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&-1!==a.compare(e)||(r=e,a=new i(r,n)))}),r}function V(e,t,n){var r=null,a=null;try{var o=new k(t,n)}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&1!==a.compare(e)||(r=e,a=new i(r,n)))}),r}function B(e,t){try{return new k(e,t).range||"*"}catch(e){return null}}function $(e,t,n){return H(e,t,"<",n)}function Q(e,t,n){return H(e,t,">",n)}function H(e,t,n,r){e=new i(e,r),t=new k(t,r);var a,o,s,l,u;switch(n){case">":a=g,o=j,s=_,l=">",u=">=";break;case"<":a=_,o=O,s=g,l="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(U(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===ze&&(e=new P(">=0.0.0")),f=f||e,d=d||e,a(e.semver,f.semver,r)?f=e:s(e.semver,d.semver,r)&&(d=e)}),f.operator===l||f.operator===u)return!1;if((!d.operator||d.operator===l)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function W(e,t){var n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}function Y(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)}function G(e){if(e instanceof i)return e;if("string"!=typeof e)return null;var t=e.match(Z[je]);return null==t?null:r((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}t=e.exports=i;var J;J="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.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 K=256,X=Number.MAX_SAFE_INTEGER||9007199254740991,Z=t.re=[],ee=t.src=[],te=0,ne=te++;ee[ne]="0|[1-9]\\d*";var re=te++;ee[re]="[0-9]+";var ae=te++;ee[ae]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var oe=te++;ee[oe]="("+ee[ne]+")\\.("+ee[ne]+")\\.("+ee[ne]+")";var ie=te++;ee[ie]="("+ee[re]+")\\.("+ee[re]+")\\.("+ee[re]+")";var se=te++;ee[se]="(?:"+ee[ne]+"|"+ee[ae]+")";var le=te++;ee[le]="(?:"+ee[re]+"|"+ee[ae]+")";var ue=te++;ee[ue]="(?:-("+ee[se]+"(?:\\."+ee[se]+")*))";var ce=te++;ee[ce]="(?:-?("+ee[le]+"(?:\\."+ee[le]+")*))";var pe=te++;ee[pe]="[0-9A-Za-z-]+";var fe=te++;ee[fe]="(?:\\+("+ee[pe]+"(?:\\."+ee[pe]+")*))";var de=te++,he="v?"+ee[oe]+ee[ue]+"?"+ee[fe]+"?";ee[de]="^"+he+"$";var me="[v=\\s]*"+ee[ie]+ee[ce]+"?"+ee[fe]+"?",ye=te++;ee[ye]="^"+me+"$";var be=te++;ee[be]="((?:<|>)?=?)";var ve=te++;ee[ve]=ee[re]+"|x|X|\\*";var ge=te++;ee[ge]=ee[ne]+"|x|X|\\*";var _e=te++;ee[_e]="[v=\\s]*("+ee[ge]+")(?:\\.("+ee[ge]+")(?:\\.("+ee[ge]+")(?:"+ee[ue]+")?"+ee[fe]+"?)?)?";var Ee=te++;ee[Ee]="[v=\\s]*("+ee[ve]+")(?:\\.("+ee[ve]+")(?:\\.("+ee[ve]+")(?:"+ee[ce]+")?"+ee[fe]+"?)?)?";var we=te++;ee[we]="^"+ee[be]+"\\s*"+ee[_e]+"$";var Oe=te++;ee[Oe]="^"+ee[be]+"\\s*"+ee[Ee]+"$";var je=te++;ee[je]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var xe=te++;ee[xe]="(?:~>?)";var Pe=te++;ee[Pe]="(\\s*)"+ee[xe]+"\\s+",Z[Pe]=new RegExp(ee[Pe],"g");var ke=te++;ee[ke]="^"+ee[xe]+ee[_e]+"$";var Ne=te++;ee[Ne]="^"+ee[xe]+ee[Ee]+"$";var Ce=te++;ee[Ce]="(?:\\^)";var Se=te++;ee[Se]="(\\s*)"+ee[Ce]+"\\s+",Z[Se]=new RegExp(ee[Se],"g");var Te=te++;ee[Te]="^"+ee[Ce]+ee[_e]+"$";var Ae=te++;ee[Ae]="^"+ee[Ce]+ee[Ee]+"$";var Me=te++;ee[Me]="^"+ee[be]+"\\s*("+me+")$|^$";var Fe=te++;ee[Fe]="^"+ee[be]+"\\s*("+he+")$|^$";var Re=te++;ee[Re]="(\\s*)"+ee[be]+"\\s*("+me+"|"+ee[_e]+")",Z[Re]=new RegExp(ee[Re],"g");var De=te++;ee[De]="^\\s*("+ee[_e]+")\\s+-\\s+("+ee[_e]+")\\s*$";var Ie=te++;ee[Ie]="^\\s*("+ee[Ee]+")\\s+-\\s+("+ee[Ee]+")\\s*$";var Le=te++;ee[Le]="(<|>)?=?\\s*\\*";for(var qe=0;qe<te;qe++)J(qe,ee[qe]),Z[qe]||(Z[qe]=new RegExp(ee[qe]));t.parse=r,t.valid=a,t.clean=o,t.SemVer=i,i.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},i.prototype.toString=function(){return this.version},i.prototype.compare=function(e){return J("SemVer.compare",this.version,this.loose,e),e instanceof i||(e=new i(e,this.loose)),this.compareMain(e)||this.comparePre(e)},i.prototype.compareMain=function(e){return e instanceof i||(e=new i(e,this.loose)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)},i.prototype.comparePre=function(e){if(e instanceof i||(e=new i(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 n=this.prerelease[t],r=e.prerelease[t];if(J("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return u(n,r)}while(++t)},i.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 n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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=s,t.diff=l,t.compareIdentifiers=u;var Ue=/^[0-9]+$/;t.rcompareIdentifiers=c,t.major=p,t.minor=f,t.patch=d,t.compare=h,t.compareLoose=m,t.rcompare=y,t.sort=b,t.rsort=v,t.gt=g,t.lt=_,t.eq=E,t.neq=w,t.gte=O,t.lte=j,t.cmp=x,t.Comparator=P;var ze={};P.prototype.parse=function(e){var t=this.loose?Z[Me]:Z[Fe],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new i(n[2],this.loose):this.semver=ze},P.prototype.toString=function(){return this.value},P.prototype.test=function(e){return J("Comparator.test",e,this.loose),this.semver===ze||("string"==typeof e&&(e=new i(e,this.loose)),x(e,this.operator,this.semver,this.loose))},P.prototype.intersects=function(e,t){if(!(e instanceof P))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new k(e.value,t),U(this.value,n,t);if(""===e.operator)return n=new k(this.value,t),U(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),a=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||a||o&&i||s||l},t.Range=k,k.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),J("range",e,t);var n=t?Z[Ie]:Z[De];e=e.replace(n,L),J("hyphen replace",e),e=e.replace(Z[Re],"$1$2$3"),J("comparator trim",e,Z[Re]),e=e.replace(Z[Pe],"$1~"),e=e.replace(Z[Se],"$1^"),e=e.split(/\s+/).join(" ");var r=t?Z[Me]:Z[Fe],a=e.split(" ").map(function(e){return C(e,t)}).join(" ").split(/\s+/);return this.loose&&(a=a.filter(function(e){return!!e.match(r)})),a=a.map(function(e){return new P(e,t)})},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=N,k.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new i(e,this.loose));for(var t=0;t<this.set.length;t++)if(q(this.set[t],e))return!0;return!1},t.satisfies=U,t.maxSatisfying=z,t.minSatisfying=V,t.validRange=B,t.ltr=$,t.gtr=Q,t.outside=H,t.prerelease=W,t.intersects=Y,t.coerce=G}).call(t,n(31))},function(e,t,n){function r(){u.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function a(e){return Array.prototype.slice.call(e)}function o(e){var t,n=e[0],o={};for(("string"!=typeof n||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",a(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof n&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",a(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(o=e[t]);if("string"==typeof n?o.original=n:"object"==typeof o.original&&(o.plural=o.original.plural,o.count=o.original.count,o.original=o.original.single),"string"==typeof e[1]&&(o.plural=e[1]),void 0===o.original)throw new Error("Translate called without a `string` value as first argument.");return o}function i(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 s(e,t){var n,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),n=i(r,t),e[r].apply(e,n)}function l(e,t){var n,r;for(n=v.length-1;n>=0;n--)if(r=v[n](y({},t)),e.state.locale[r.original])return s(e.state.jed,r);return null}function u(){if(!(this instanceof u))return new u;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:m({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new d,this.stateObserver.setMaxListeners(0),this.configure()}var c=n(90)("i18n-wp-plugin"),p=n(93),f=n(94),d=n(55).EventEmitter,h=n(97).default,m=n(101),y=n(58),b=n(102),v=[function(e){return e}],g={};u.throwErrors=!1,u.prototype.numberFormat=function(e){var t=arguments[1]||{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",a=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return b(e,n,r,a)},u.prototype.configure=function(e){y(this,e||{}),this.setLocale()},u.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,n,r,a=e[""]["key-hash"],i=function(e,t){const n=!1===t?"":String(t);if(void 0!==g[n+e])return g[n+e];var r=f().update(e).digest("hex");return g[n+e]=t?r.substr(0,t):r},l=function(e){return function(t){return t.context?(t.original=i(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=i(t.original,e),t}};if("sha1"===a.substr(0,4))if(4===a.length)v.push(l(!1));else{var u=a.substr(5).indexOf("-");if(u<0)t=Number(a.substr(5)),v.push(l(t));else for(n=Number(a.substr(5,u)),r=Number(a.substr(6+u)),t=n;t<=r;t++)v.push(l(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;y(this.state.locale,e)}else this.state.locale=y({},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=s(this.state.jed,o(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=s(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!!l(this,o(arguments))},u.prototype.translate=function(){var e,t,n,r,a,i;if(e=o(arguments),i=!e.components){try{a=JSON.stringify(e)}catch(e){i=!1}if(a&&(t=this.state.translations.get(a)))return t}if(t=l(this,e),t||(t=s(this.state.jed,e)),e.args){n=Array.isArray(e.args)?e.args.slice(0):[e.args],n.unshift(t);try{t=p.sprintf.apply(p,n)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=h({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(n){t=n(t,e)}),i&&this.state.translations.set(a,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,n){(function(r){function a(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))}),e.splice(o,0,r)}}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function l(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(91),t.log=i,t.formatArgs=o,t.save=s,t.load=l,t.useColors=a,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(l())}).call(t,n(31))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function a(e){function n(){if(n.enabled){var e=n,r=+new Date,o=r-(a||r);e.diff=o,e.prev=a,e.curr=r,a=r;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var a=t.formatters[r];if("function"==typeof a){var o=i[l];n=a.call(e,o),i.splice(l,1),l--}return n}),t.formatArgs.call(e,i);(n.log||t.log||console.log.bind(console)).apply(e,i)}}var a;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=o,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function i(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}}function s(){t.enable("")}function l(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=a.debug=a.default=a,t.coerce=u,t.disable=s,t.enable=i,t.enabled=l,t.humanize=n(92),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){function n(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=l?Math.round(e/l)+"h":e>=s?Math.round(e/s)+"m":e>=i?Math.round(e/i)+"s":e+"ms"}function a(e){return o(e,u,"day")||o(e,l,"hour")||o(e,s,"minute")||o(e,i,"second")||e+" ms"}function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var i=1e3,s=60*i,l=60*s,u=24*l,c=365.25*u;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return n(e);if("number"===o&&!1===isNaN(e))return t.long?a(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){/** * @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed */ !function(n,r){function a(e){return d.PF.compile(e||"nplurals=2; plural=(n != 1);")}function o(e,t){this._key=e,this._i18n=t}var i=Array.prototype,s=Object.prototype,l=i.slice,u=s.hasOwnProperty,c=i.forEach,p={},f={forEach:function(e,t,n){var r,a,o;if(null!==e)if(c&&e.forEach===c)e.forEach(t,n);else if(e.length===+e.length){for(r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r,e)===p)return}else for(o in e)if(u.call(e,o)&&t.call(n,e[o],o,e)===p)return},extend:function(e){return this.forEach(l.call(arguments,1),function(t){for(var n in t)e[n]=t[n]}),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,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,a){return this.dcnpgettext.call(this,e,t,n,r,a)},dcnpgettext:function(e,t,n,r,o){r=r||n,e=e||this._textdomain;var i;if(!this.options)return i=new d,i.dcnpgettext.call(i,void 0,void 0,n,r,o);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var s,l,u,c=t?t+d.context_delimiter+n:n,p=this.options.locale_data,f=p[e],h=(p.messages||this.defaults.locale_data.messages)[""],m=f[""].plural_forms||f[""]["Plural-Forms"]||f[""]["plural-forms"]||h.plural_forms||h["Plural-Forms"]||h["plural-forms"];if(void 0===o)u=1;else{if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");u=a(m)(o)+1}if(!f)throw new Error("No domain named `"+e+"` could be found.");return!(s=f[c])||u>=s.length?(this.options.missing_key_callback&&this.options.missing_key_callback(c,e),l=[null,n,r],!0===this.options.debug&&console.log(l[a(m)(o)+1]),l[a()(o)+1]):(l=s[u])||(l=[null,n,r],l[a()(o)+1])}});var h=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var a,o,i,s,l,u,c,p=1,f=n.length,d="",m=[];for(o=0;o<f;o++)if("string"===(d=e(n[o])))m.push(n[o]);else if("array"===d){if(s=n[o],s[2])for(a=r[p],i=0;i<s[2].length;i++){if(!a.hasOwnProperty(s[2][i]))throw h('[sprintf] property "%s" does not exist',s[2][i]);a=a[s[2][i]]}else a=s[1]?r[s[1]]:r[p++];if(/[^s]/.test(s[8])&&"number"!=e(a))throw h("[sprintf] expecting number but found %s",e(a));switch(void 0!==a&&null!==a||(a=""),s[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":a=parseInt(a,10);break;case"e":a=s[7]?a.toExponential(s[7]):a.toExponential();break;case"f":a=s[7]?parseFloat(a).toFixed(s[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&s[7]?a.substring(0,s[7]):a;break;case"u":a=Math.abs(a);break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}a=/[def]/.test(s[8])&&s[3]&&a>=0?"+"+a:a,u=s[4]?"0"==s[4]?"0":s[4].charAt(1):" ",c=s[6]-String(a).length,l=s[6]?t(u,c):"",m.push(s[5]?a+l:l+a)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],a=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){a|=1;var o=[],i=n[2],s=[];if(null===(s=/^([a-z_][a-z_\d]*)/i.exec(i)))throw"[sprintf] huh?";for(o.push(s[1]);""!==(i=i.substring(s[0].length));)if(null!==(s=/^\.([a-z_][a-z_\d]*)/i.exec(i)))o.push(s[1]);else{if(null===(s=/^\[(\d+)\]/.exec(i)))throw"[sprintf] huh?";o.push(s[1])}n[2]=o}else a|=2;if(3===a)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),m=function(e,t){return t.unshift(e),h.apply(null,t)};d.parse_plural=function(e,t){return e=e.replace(/n/g,t),d.parse_expression(e)},d.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?m(e,[].slice.call(t)):h.apply(this,[].slice.call(arguments))},d.prototype.sprintf=function(){return d.sprintf.apply(this,arguments)},d.PF={},d.PF.parse=function(e){var t=d.PF.extractPluralExpr(e);return d.PF.parser.parse.call(d.PF.parser,t)},d.PF.compile=function(e){function t(e){return!0===e?1:e||0}var n=d.PF.parse(e);return function(e){return t(d.PF.interpreter(n)(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,n=/nplurals\=(\d+);/,r=/plural\=(.*);/,a=e.match(n),o={};if(!(a.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(o.nplurals=a[1],e=e.replace(n,""),!((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,n,r,a,o,i){var s=o.length-1;switch(a){case 1:return{type:"GROUP",expr:o[s-1]};case 2:this.$={type:"TERNARY",expr:o[s-4],truthy:o[s-2],falsey:o[s]};break;case 3:this.$={type:"OR",left:o[s-2],right:o[s]};break;case 4:this.$={type:"AND",left:o[s-2],right:o[s]};break;case 5:this.$={type:"LT",left:o[s-2],right:o[s]};break;case 6:this.$={type:"LTE",left:o[s-2],right:o[s]};break;case 7:this.$={type:"GT",left:o[s-2],right:o[s]};break;case 8:this.$={type:"GTE",left:o[s-2],right:o[s]};break;case 9:this.$={type:"NEQ",left:o[s-2],right:o[s]};break;case 10:this.$={type:"EQ",left:o[s-2],right:o[s]};break;case 11:this.$={type:"MOD",left:o[s-2],right:o[s]};break;case 12:this.$={type:"GROUP",expr:o[s-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||1,"number"!=typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],a=[null],o=[],i=this.table,s="",l=0,u=0,c=0,p=2;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;o.push(f),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,m,y,b,v,g,_,E,w={};;){if(m=r[r.length-1],this.defaultActions[m]?y=this.defaultActions[m]:(null==d&&(d=t()),y=i[m]&&i[m][d]),void 0===y||!y.length||!y[0]){if(!c){E=[];for(v in i[m])this.terminals_[v]&&v>2&&E.push("'"+this.terminals_[v]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(l+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:E})}if(3==c){if(1==d)throw new Error(O||"Parsing halted.");u=this.lexer.yyleng,s=this.lexer.yytext,l=this.lexer.yylineno,f=this.lexer.yylloc,d=t()}for(;;){if(p.toString()in i[m])break;if(0==m)throw new Error(O||"Parsing halted.");!function(e){r.length=r.length-2*e,a.length=a.length-e,o.length=o.length-e}(1),m=r[r.length-1]}h=d,d=p,m=r[r.length-1],y=i[m]&&i[m][p],c=3}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(y[0]){case 1:r.push(d),a.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(y[1]),d=null,h?(d=h,h=null):(u=this.lexer.yyleng,s=this.lexer.yytext,l=this.lexer.yylineno,f=this.lexer.yylloc,c>0&&c--);break;case 2:if(g=this.productions_[y[1]][1],w.$=a[a.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!==(b=this.performAction.call(w,s,u,l,this.yy,y[1],a,o)))return b;g&&(r=r.slice(0,-1*g*2),a=a.slice(0,-1*g),o=o.slice(0,-1*g)),r.push(this.productions_[y[1]][0]),a.push(w.$),o.push(w._$),_=i[r[r.length-2]][r[r.length-1]],r.push(_);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t;this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return t=e[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=t,e}(),void 0!==e&&e.exports&&(t=e.exports=d),t.Jed=d}()},function(e,t,n){"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 a=n(37),o=n(95),i=n(96),s=a.rotl32,l=a.sum32,u=a.sum32_5,c=i.ft_1,p=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];a.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 n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var a=this.h[0],o=this.h[1],i=this.h[2],p=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var h=~~(r/20),m=u(s(a,5),c(h,o,i,p),d,n[r],f[h]);d=p,p=i,i=s(o,30),o=a,a=m}this.h[0]=l(this.h[0],a),this.h[1]=l(this.h[1],o),this.h[2]=l(this.h[2],i),this.h[3]=l(this.h[3],p),this.h[4]=l(this.h[4],d)},r.prototype._digest=function(e){return"hex"===e?a.toHex32(this.h,"big"):a.split32(this.h,"big")}},function(e,t,n){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var a=n(37),o=n(53);t.BlockHash=r,r.prototype.update=function(e,t){if(e=a.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=a.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var a=1;a<n;a++)r[a]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[a++]=0;r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=e>>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,o=8;o<this.padLength;o++)r[a++]=0;return r}},function(e,t,n){"use strict";function r(e,t,n,r){return 0===e?a(t,n,r):1===e||3===e?i(t,n,r):2===e?o(t,n,r):void 0}function a(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function i(e,t,n){return e^t^n}function s(e){return f(e,2)^f(e,13)^f(e,22)}function l(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=n(37),f=p.rotr32;t.ft_1=r,t.ch32=a,t.maj32=o,t.p32=i,t.s0_256=s,t.s1_256=l,t.g0_256=u,t.g1_256=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n,r,a=t[e],o=0;for(r=e+1;r<t.length;r++)if(n=t[r],n.value===a.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+a.value+"`")}function o(e,t){var n,r,i,l,c,f,d,m,y,b,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"!==s(t[c.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+c.value+"`","\n> "+h);if("componentClose"===c.type)throw new Error("Missing opening component token: `"+c.value+"`");if("componentOpen"===c.type){n=t[c.value],i=f;break}v.push(t[c.value])}else v.push(c.value);return n&&(l=a(i,e),d=e.slice(i+1,l),m=o(d,t),r=u.default.cloneElement(n,{},m),v.push(r),l<e.length-1&&(y=e.slice(l+1),b=o(y,t),v=v.concat(b))),1===v.length?v[0]:(v.forEach(function(e,t){e&&(g["interpolation-child-"+t]=e)}),(0,p.default)(g))}function i(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(h=t,!n)return t;if("object"!==(void 0===n?"undefined":s(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,d.default)(t);try{return o(a,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}Object.defineProperty(t,"__esModule",{value:!0});var 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},l=n(0),u=r(l),c=n(98),p=r(c),f=n(100),d=r(f),h=void 0;t.default=i},function(e,t,n){"use strict";function r(e){var t=e&&(E&&e[E]||e[w]);if("function"==typeof t)return t}function a(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?a(e.key):t.toString(36)}function i(e,t,n,a){var s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===m)return n(a,e,""===t?g+o(e,0):t),1;var l,u,c=0,p=""===t?g:t+_;if(Array.isArray(e))for(var f=0;f<e.length;f++)l=e[f],u=p+o(l,f),c+=i(l,u,n,a);else{var d=r(e);if(d)for(var h,y=d.call(e),v=0;!(h=y.next()).done;)l=h.value,u=p+o(l,v++),c+=i(l,u,n,a);else if("object"===s){var E="",w=""+e;b(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,E)}}return c}function s(e,t,n){return null==e?0:i(e,"",t,n)}function l(e){return(""+e).replace(O,"$&/")}function u(e,t){return h.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}function c(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function p(e,t,n){var r=e.result,a=e.keyPrefix,o=e.func,i=e.context,s=o.call(i,t,e.count++);Array.isArray(s)?f(s,r,n,y.thatReturnsArgument):null!=s&&(h.isValidElement(s)&&(s=u(s,a+(!s.key||t&&t.key===s.key?"":l(s.key)+"/")+n)),r.push(s))}function f(e,t,n,r,a){var o="";null!=n&&(o=l(n)+"/");var i=c.getPooled(t,o,r,a);s(e,p,i),c.release(i)}function d(e){if("object"!=typeof e||!e||Array.isArray(e))return v(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(h.isValidElement(e))return v(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;b(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)f(e[n],t,n,y.thatReturnsArgument);return t}var h=n(0),m="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,y=n(56),b=n(57),v=n(99),g=".",_=":",E="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",O=/\/+/g,j=x,x=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},P=function(e){var t=this;b(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},k=function(e,t,n,r){var a=this;if(a.instancePool.length){var o=a.instancePool.pop();return a.call(o,e,t,n,r),o}return new a(e,t,n,r)};c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},function(e,t){var n=e;n.instancePool=[],n.getPooled=t||j,n.poolSize||(n.poolSize=10),n.release=P}(c,k);e.exports=d},function(e,t,n){"use strict";var r=n(56),a=r;e.exports=a},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),a.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}var a=n(55),o=n(54);e.exports=r,o(r,a.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},r.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.prototype.set=function(e,t){"string"!=typeof e&&(e=""+e);var n;if(this.cache.hasOwnProperty(e)){if(n=this.cache[e],n.value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},r.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},r.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},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 n(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var a=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,i=void 0===r?",":r,s=void 0===n?".":n,l="";return l=(o?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(a,o):""+Math.round(a)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(s)}e.exports=n},function(e,t,n){var r=n(0),a=n(58),o=n(104);e.exports=function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var i=n.displayName||n.name||"",s=o({displayName:"Localized("+i+")",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=a({},this.props,t);return r.createElement(n,e)}});return s._composedComponent=n,s}}},function(e,t,n){"use strict";var r=n(0),a=n(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=a(r.Component,r.isValidElement,o)},function(e,t,n){"use strict";function r(e){return e}function a(e,t,n){function a(e,t){var n=v.hasOwnProperty(t)?v[t]:null;O.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;n.hasOwnProperty(l)&&_.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==l){var u=n[i],c=r.hasOwnProperty(i);if(a(c,i),_.hasOwnProperty(i))_[i](e,u);else{var p=v.hasOwnProperty(i),h="function"==typeof u,m=h&&!p&&!c&&!1!==n.autobind;if(m)o.push(i,u),r[i]=u;else if(c){var y=v[i];s(p&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,i),"DEFINE_MANY_MERGED"===y?r[i]=f(r[i],u):"DEFINE_MANY"===y&&(r[i]=d(r[i],u))}else r[i]=u}}}else;}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var a=n in _;s(!a,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var o=n in e;if(o){var i=g.hasOwnProperty(n)?g[n]:null;return s("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r))}e[n]=r}}}function p(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var a={};return p(a,n),p(a,r),a}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],a=t[n+1];e[r]=h(e,a)}}function y(e){var t=r(function(e,r,a){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var o=this.getInitialState?this.getInitialState():null;s("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o});t.prototype=new j,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],b.forEach(u.bind(null,t)),u(t,E),u(t,e),u(t,w),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),s(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var a in v)t.prototype[a]||(t.prototype[a]=null);return t}var b=[],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"},_={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)u(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=o({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=o({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=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(){}},E={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}},j=function(){};return o(j.prototype,e.prototype,O),y}var o=n(106),i=n(107),s=n(57),l="mixins";e.exports=a},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* object-assign (c) Sindre Sorhus @license MIT */ var a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)o.call(n,c)&&(l[c]=n[c]);if(a){s=a(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){"use strict";var r={};e.exports=r},,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(1),p=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.hasWordFormat=!_.isUndefined(n.props.hasWordFormat)&&n.props.hasWordFormat,n}return o(t,e),s(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],n=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,n){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:n,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,n=_.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 a=void 0,o=void 0;this.props.label&&(a=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 s=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,l=u.default.createElement(u.default.Fragment,null,u.default.createElement("input",i({ref:function(t){return e.el=t},id:s,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),this.hasWordFormat&&u.default.createElement("input",{id:s+"-altfield",style:{display:"none"}})),p=u.default.createElement("div",{className:r},a,this.props.noCalendar?l:u.default.createElement("div",{className:"sui-date"},"left"===n&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),l,"right"===n&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{id:s+"-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},a,this.props.noCalendar?l:u.default.createElement("div",{className:"sui-date"},l,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}(l.Component);t.default=p},function(e,t,n){"use strict";e.exports=n(198)},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,r,e):t(a)}}}}Object.defineProperty(t,"__esModule",{value:!0});var a=r();a.withExtraArgument=r,t.default=a},,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}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:"render",value:function(){var e=this,t=_.isUndefined(this.props.radioClass)?"sui-radio":"sui-radio "+this.props.radioClass,n=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],r=l.default.Children.map(this.props.children,function(r){var a="",o=_.isUndefined(r.props.label)?r.props.children:r.props.label;return r.props.image1x&&r.props.image2x&&(a=l.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&&(a=l.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(a=l.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?l.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},a,l.default.createElement("span",{className:t},l.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,value:r.props.value,id:"forminator-field-"+r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,o))):r.props.hasImage?void 0:l.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},l.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,id:"forminator-field-"+r.props.value,value:r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,o))}),a=l.default.Children.map(this.props.children,function(t){return"true"!==e.props.radioContent||_.isUndefined(t.props.children)?l.default.createElement(l.default.Fragment,null):l.default.createElement("div",{className:"sui-border-frame"+(t.props.value===n?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===n&&t)}),o="";this.props.label&&""!==this.props.label&&(o=l.default.createElement("label",{className:"sui-label"},this.props.label,this.props.note&&l.default.createElement("span",{className:"sui-label-note"},this.props.note)));var i="";this.props.description&&""!==this.props.description&&(i=l.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.description));var s="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(s=l.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var u="";return this.props.settingsDesc&&""!==this.props.settingsDesc&&(u=l.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc)),this.props.noWrapper?r:l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{role:"radiogroup",className:"sui-form-field"},o,s,i,u,r,a))}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)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 i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],i=n||t+"Subscription",l=function(e){function n(o,i){r(this,n);var s=a(this,e.call(this,o,i));return s[t]=o.store,s}return o(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[i]=null,e},n.prototype.render=function(){return s.Children.only(this.props.children)},n}(s.Component);return l.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},l.childContextTypes=(e={},e[t]=c.a.isRequired,e[i]=c.b,e),l}t.a=i;var s=n(0),l=(n.n(s),n(8)),u=n.n(l),c=n(65);n(44);t.b=i()},function(e,t,n){"use strict";function r(){}var a=n(116);e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={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 n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){var e=[],t=[];return{clear:function(){t=o,e=o},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==o&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return s});var o=null,i={notify:function(){}},s=function(){function e(t,n,a){r(this,e),this.store=t,this.parentSub=n,this.onStateChange=a,this.unsubscribe=null,this.listeners=i}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=a())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=i)},e}()},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t,n){for(var r=t.length-1;r>=0;r--){var a=t[r](e);if(a)return a}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function o(e,t){return e===t}var i=n(66),s=n(119),l=n(120),u=n(133),c=n(134),p=n(135),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?i.a:t,d=e.mapStateToPropsFactories,h=void 0===d?u.a:d,m=e.mapDispatchToPropsFactories,y=void 0===m?l.a:m,b=e.mergePropsFactories,v=void 0===b?c.a:b,g=e.selectorFactory,_=void 0===g?p.a:g;return function(e,t,i){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.pure,c=void 0===u||u,p=l.areStatesEqual,d=void 0===p?o:p,m=l.areOwnPropsEqual,b=void 0===m?s.a:m,g=l.areStatePropsEqual,E=void 0===g?s.a:g,w=l.areMergedPropsEqual,O=void 0===w?s.a:w,j=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=a(e,h,"mapStateToProps"),P=a(t,y,"mapDispatchToProps"),k=a(i,v,"mergeProps");return n(_,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:P,initMergeProps:k,pure:c,areStatesEqual:d,areOwnPropsEqual:b,areStatePropsEqual:E,areMergedPropsEqual:O},j))}}()},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function a(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!o.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}t.a=a;var o=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e){return"function"==typeof e?Object(s.b)(e,"mapDispatchToProps"):void 0}function a(e){return e?void 0:Object(s.a)(function(e){return{dispatch:e}})}function o(e){return e&&"object"==typeof e?Object(s.a)(function(t){return Object(i.bindActionCreators)(e,t)}):void 0}var i=n(10),s=n(68);t.a=[r,a,o]},function(e,t,n){"use strict";(function(e,r){var a,o=n(123);a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(o.a)(a);t.a=i}).call(t,n(42),n(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,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.a=r},function(e,t,n){"use strict";function r(e){if(!Object(i.a)(e)||Object(a.a)(e)!=s)return!1;var t=Object(o.a)(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var a=n(125),o=n(130),i=n(132),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?Object(o.a)(e):Object(i.a)(e)}var a=n(70),o=n(128),i=n(129),s="[object Null]",l="[object Undefined]",u=a.a?a.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(127),a="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||a||Function("return this")();t.a=o},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(42))},function(e,t,n){"use strict";function r(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=s.call(e);return r&&(t?e[l]=n:delete e[l]),a}var a=n(70),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,l=a.a?a.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return o.call(e)}var a=Object.prototype,o=a.toString;t.a=r},function(e,t,n){"use strict";var r=n(131),a=Object(r.a)(Object.getPrototypeOf,Object);t.a=a},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e?Object(o.b)(e,"mapStateToProps"):void 0}function a(e){return e?void 0:Object(o.a)(function(){return{}})}var o=n(68);t.a=[r,a]},function(e,t,n){"use strict";function r(e,t,n){return s({},n,e,t)}function a(e){return function(t,n){var r=(n.displayName,n.pure),a=n.areMergedPropsEqual,o=!1,i=void 0;return function(t,n,s){var l=e(t,n,s);return o?r&&a(l,i)||(i=l):(o=!0,i=l),i}}}function o(e){return"function"==typeof e?a(e):void 0}function i(e){return e?void 0:function(){return r}}var s=(n(69),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});t.a=[o,i]},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t,n,r){return function(a,o){return n(e(a,o),t(r,o),o)}}function o(e,t,n,r,a){function o(a,o){return h=a,m=o,y=e(h,m),b=t(r,m),v=n(y,b,m),d=!0,v}function i(){return y=e(h,m),t.dependsOnOwnProps&&(b=t(r,m)),v=n(y,b,m)}function s(){return e.dependsOnOwnProps&&(y=e(h,m)),t.dependsOnOwnProps&&(b=t(r,m)),v=n(y,b,m)}function l(){var t=e(h,m),r=!f(t,y);return y=t,r&&(v=n(y,b,m)),v}function u(e,t){var n=!p(t,m),r=!c(e,h);return h=e,m=t,n&&r?i():n?s():r?l():v}var c=a.areStatesEqual,p=a.areOwnPropsEqual,f=a.areStatePropsEqual,d=!1,h=void 0,m=void 0,y=void 0,b=void 0,v=void 0;return function(e,t){return d?u(e,t):o(e,t)}}function i(e,t){var n=t.initMapStateToProps,i=t.initMapDispatchToProps,s=t.initMergeProps,l=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=n(e,l),c=i(e,l),p=s(e,l);return(l.pure?o:a)(u,c,p,e,l)}t.a=i;n(136)},function(e,t,n){"use strict";n(44)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(18),s=n.n(i),l=n(0),u=n.n(l),c=n(8),p=n.n(c),f=n(23),d=n(46),h=function(e){function t(){var n,o,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=a(this,e.call.apply(e,[this].concat(l))),o.history=Object(f.a)(o.props),i=n,a(o,i)}return o(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,n){"use strict";var r=n(33),a=n.n(r),o=n(14),i=n.n(o),s=n(34),l=n(27),u=n(45),c=n(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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){try{return window.history.state||{}}catch(e){return{}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(c.b,"Browser history needs a DOM");var t=window.history,n=Object(c.g)(),r=!Object(c.h)(),o=e.forceRefresh,h=void 0!==o&&o,m=e.getUserConfirmation,y=void 0===m?c.c:m,b=e.keyLength,v=void 0===b?6:b,g=e.basename?Object(l.g)(Object(l.a)(e.basename)):"",_=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname,u=o.search,c=o.hash,p=i+u+c;return a()(!g||Object(l.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(l.e)(p,g)),Object(s.a)(p,r,n)},E=function(){return Math.random().toString(36).substr(2,v)},w=Object(u.a)(),O=function(e){f(V,e),V.length=t.length,w.notifyListeners(V.location,V.action)},j=function(e){Object(c.d)(e)||k(_(e.state))},x=function(){k(_(d()))},P=!1,k=function(e){if(P)P=!1,O();else{w.confirmTransitionTo(e,"POP",y,function(t){t?O({action:"POP",location:e}):N(e)})}},N=function(e){var t=V.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(P=!0,F(a))},C=_(d()),S=[C.key],T=function(e){return g+Object(l.b)(e)},A=function(e,r){a()(!("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(s.a)(e,r,E(),V.location);w.confirmTransitionTo(o,"PUSH",y,function(e){if(e){var r=T(o),i=o.key,s=o.state;if(n)if(t.pushState({key:i,state:s},null,r),h)window.location.href=r;else{var l=S.indexOf(V.location.key),u=S.slice(0,-1===l?0:l+1);u.push(o.key),S=u,O({action:"PUSH",location:o})}else a()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},M=function(e,r){a()(!("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(s.a)(e,r,E(),V.location);w.confirmTransitionTo(o,"REPLACE",y,function(e){if(e){var r=T(o),i=o.key,s=o.state;if(n)if(t.replaceState({key:i,state:s},null,r),h)window.location.replace(r);else{var l=S.indexOf(V.location.key);-1!==l&&(S[l]=o.key),O({action:"REPLACE",location:o})}else a()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},F=function(e){t.go(e)},R=function(){return F(-1)},D=function(){return F(1)},I=0,L=function(e){I+=e,1===I?(Object(c.a)(window,"popstate",j),r&&Object(c.a)(window,"hashchange",x)):0===I&&(Object(c.e)(window,"popstate",j),r&&Object(c.e)(window,"hashchange",x))},q=!1,U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return q||(L(1),q=!0),function(){return q&&(q=!1,L(-1)),t()}},z=function(e){var t=w.appendListener(e);return L(1),function(){L(-1),t()}},V={length:t.length,action:"POP",location:C,createHref:T,push:A,replace:M,go:F,goBack:R,goForward:D,block:U,listen:z};return V};t.a=h},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&r(e),s=t&&r(t),l=i||s;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!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?a(o,f):".."===d?(a(o,f),p++):p&&(a(o,f),p--)}if(!l)for(;p--;p)o.unshift("..");!l||""===o[0]||o[0]&&r(o[0])||o.unshift("");var h=o.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}t.a=o},function(e,t,n){"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,n){return r(e,t[n])});var n=void 0===e?"undefined":a(e);if(n!==(void 0===t?"undefined":a(t)))return!1;if("object"===n){var o=e.valueOf(),i=t.valueOf();if(o!==e||i!==t)return r(o,i);var s=Object.keys(e),l=Object.keys(t);return s.length===l.length&&s.every(function(n){return r(e[n],t[n])})}return!1}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,n){"use strict";var r=n(33),a=n.n(r),o=n(14),i=n.n(o),s=n(34),l=n(27),u=n(45),c=n(71),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Object(l.f)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:l.f,decodePath:l.a},slash:{encodePath:l.a,decodePath:l.a}},d=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},m=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(c.b,"Hash history needs a DOM");var t=window.history,n=Object(c.f)(),r=e.getUserConfirmation,o=void 0===r?c.c:r,y=e.hashType,b=void 0===y?"slash":y,v=e.basename?Object(l.g)(Object(l.a)(e.basename)):"",g=f[b],_=g.encodePath,E=g.decodePath,w=function(){var e=E(d());return a()(!v||Object(l.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(l.e)(e,v)),Object(s.a)(e)},O=Object(u.a)(),j=function(e){p(Q,e),Q.length=t.length,O.notifyListeners(Q.location,Q.action)},x=!1,P=null,k=function(){var e=d(),t=_(e);if(e!==t)m(t);else{var n=w(),r=Q.location;if(!x&&Object(s.b)(r,n))return;if(P===Object(l.b)(n))return;P=null,N(n)}},N=function(e){if(x)x=!1,j();else{O.confirmTransitionTo(e,"POP",o,function(t){t?j({action:"POP",location:e}):C(e)})}},C=function(e){var t=Q.location,n=M.lastIndexOf(Object(l.b)(t));-1===n&&(n=0);var r=M.lastIndexOf(Object(l.b)(e));-1===r&&(r=0);var a=n-r;a&&(x=!0,I(a))},S=d(),T=_(S);S!==T&&m(T);var A=w(),M=[Object(l.b)(A)],F=function(e){return"#"+_(v+Object(l.b)(e))},R=function(e,t){a()(void 0===t,"Hash history cannot push state; it is ignored");var n=Object(s.a)(e,void 0,void 0,Q.location);O.confirmTransitionTo(n,"PUSH",o,function(e){if(e){var t=Object(l.b)(n),r=_(v+t);if(d()!==r){P=t,h(r);var o=M.lastIndexOf(Object(l.b)(Q.location)),i=M.slice(0,-1===o?0:o+1);i.push(t),M=i,j({action:"PUSH",location:n})}else a()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),j()}})},D=function(e,t){a()(void 0===t,"Hash history cannot replace state; it is ignored");var n=Object(s.a)(e,void 0,void 0,Q.location);O.confirmTransitionTo(n,"REPLACE",o,function(e){if(e){var t=Object(l.b)(n),r=_(v+t);d()!==r&&(P=t,m(r));var a=M.indexOf(Object(l.b)(Q.location));-1!==a&&(M[a]=t),j({action:"REPLACE",location:n})}})},I=function(e){a()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},L=function(){return I(-1)},q=function(){return I(1)},U=0,z=function(e){U+=e,1===U?Object(c.a)(window,"hashchange",k):0===U&&Object(c.e)(window,"hashchange",k)},V=!1,B=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return V||(z(1),V=!0),function(){return V&&(V=!1,z(-1)),t()}},$=function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}},Q={length:t.length,action:"POP",location:A,createHref:F,push:R,replace:D,go:I,goBack:L,goForward:q,block:B,listen:$};return Q};t.a=y},function(e,t,n){"use strict";var r=n(33),a=n.n(r),o=n(27),i=n(34),s=n(45),l="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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t,n){return Math.min(Math.max(e,t),n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,p=e.initialIndex,f=void 0===p?0:p,d=e.keyLength,h=void 0===d?6:d,m=Object(s.a)(),y=function(e){u(C,e),C.length=C.entries.length,m.notifyListeners(C.location,C.action)},b=function(){return Math.random().toString(36).substr(2,h)},v=c(f,0,r.length-1),g=r.map(function(e){return"string"==typeof e?Object(i.a)(e,void 0,b()):Object(i.a)(e,void 0,e.key||b())}),_=o.b,E=function(e,n){a()(!("object"===(void 0===e?"undefined":l(e))&&void 0!==e.state&&void 0!==n),"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(i.a)(e,n,b(),C.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=C.index,n=t+1,a=C.entries.slice(0);a.length>n?a.splice(n,a.length-n,r):a.push(r),y({action:"PUSH",location:r,index:n,entries:a})}})},w=function(e,n){a()(!("object"===(void 0===e?"undefined":l(e))&&void 0!==e.state&&void 0!==n),"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(i.a)(e,n,b(),C.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(C.entries[C.index]=r,y({action:"REPLACE",location:r}))})},O=function(e){var n=c(C.index+e,0,C.entries.length-1),r=C.entries[n];m.confirmTransitionTo(r,"POP",t,function(e){e?y({action:"POP",location:r,index:n}):y()})},j=function(){return O(-1)},x=function(){return O(1)},P=function(e){var t=C.index+e;return t>=0&&t<C.entries.length},k=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},N=function(e){return m.appendListener(e)},C={length:g.length,action:"POP",location:g[v],index:v,entries:g,createHref:_,push:E,replace:w,go:O,goBack:j,goForward:x,canGo:P,block:k,listen:N};return C};t.a=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(18),s=n.n(i),l=n(0),u=n.n(l),c=n(8),p=n.n(c),f=n(23),d=n(46),h=function(e){function t(){var n,o,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=a(this,e.call.apply(e,[this].concat(l))),o.history=Object(f.b)(o.props),i=n,a(o,i)}return o(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=h},function(e,t,n){"use strict";var r=n(145);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(18),s=n.n(i),l=n(0),u=n.n(l),c=n(8),p=n.n(c),f=n(23),d=n(47),h=function(e){function t(){var n,o,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=a(this,e.call.apply(e,[this].concat(l))),o.history=Object(f.d)(o.props),i=n,a(o,i)}return o(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);h.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=h},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=n(0),o=n.n(a),i=n(8),s=n.n(i),l=n(73),u=n(72),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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,n=e.exact,a=e.strict,i=e.location,s=e.activeClassName,f=e.className,d=e.activeStyle,h=e.style,m=e.isActive,y=e["aria-current"],b=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(l.a,{path:g,exact:n,strict:a,location:i,children:function(e){var n=e.location,r=e.match,a=!!(m?m(r,n):r);return o.a.createElement(u.a,c({to:t,className:a?[f,s].filter(function(e){return e}).join(" "):f,style:a?c({},h,d):h,"aria-current":a&&y||null},b))}})};f.propTypes={to:u.a.propTypes.to,exact:s.a.bool,strict:s.a.bool,location:s.a.object,activeClassName:s.a.string,className:s.a.string,activeStyle:s.a.object,style:s.a.object,isActive:s.a.func,"aria-current":s.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,n){"use strict";var r=n(149);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(8),u=n.n(l),c=n(14),p=n.n(c),f=function(e){function t(){return r(this,t),a(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}(s.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,n){"use strict";var r=n(151);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(8),u=n.n(l),c=n(18),p=n.n(c),f=n(14),d=n.n(f),h=n(23),m=n(76),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e){function t(){return r(this,t),a(this,e.apply(this,arguments))}return o(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(h.c)(e.to),n=Object(h.c)(this.props.to);if(Object(h.f)(t,n))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"');this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Object(m.a)(n,t.params):y({},n,{pathname:Object(m.a)(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(s.a.Component);b.propTypes={computedMatch:u.a.object,push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},b.defaultProps={push:!1},b.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=b},function(e,t,n){"use strict";var r=n(153);t.a=r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(18),l=n.n(s),u=n(14),c=n.n(u),p=n(0),f=n.n(p),d=n(8),h=n.n(d),m=n(23),y=n(47),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e){return"/"===e.charAt(0)?e:"/"+e},g=function(e,t){return e?b({},t,{pathname:v(e)+t.pathname}):t},_=function(e,t){if(!e)return t;var n=v(e);return 0!==t.pathname.indexOf(n)?t:b({},t,{pathname:t.pathname.substr(n.length)})},E=function(e){return"string"==typeof e?e:Object(m.e)(e)},w=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},O=function(){},j=function(e){function t(){var n,r,i;a(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(l))),r.createHref=function(e){return v(r.props.basename+E(e))},r.handlePush=function(e){var t=r.props,n=t.basename,a=t.context;a.action="PUSH",a.location=g(n,Object(m.c)(e)),a.url=E(a.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,a=t.context;a.action="REPLACE",a.location=g(n,Object(m.c)(e)),a.url=E(a.location)},r.handleListen=function(){return O},r.handleBlock=function(){return O},i=n,o(r,i)}return i(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){l()(!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,n=(e.context,e.location),a=r(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:_(t,Object(m.c)(n)),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(y.a,b({},a,{history:o}))},t}(f.a.Component);j.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},j.defaultProps={basename:"",location:"/"},j.childContextTypes={router:h.a.object.isRequired},t.a=j},function(e,t,n){"use strict";var r=n(155);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(0),s=n.n(i),l=n(8),u=n.n(l),c=n(18),p=n.n(c),f=n(14),d=n.n(f),h=n(48),m=function(e){function t(){return r(this,t),a(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,n=this.props.location||e.location,r=void 0,a=void 0;return s.a.Children.forEach(t,function(t){if(null==r&&s.a.isValidElement(t)){var o=t.props,i=o.path,l=o.exact,u=o.strict,c=o.sensitive,p=o.from,f=i||p;a=t,r=Object(h.a)(n.pathname,{path:f,exact:l,strict:u,sensitive:c},e.match)}}),r?s.a.cloneElement(a,{location:n,computedMatch:r}):null},t}(s.a.Component);m.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},m.propTypes={children:u.a.node,location:u.a.object},t.a=m},function(e,t,n){"use strict";var r=n(76);t.a=r.a},function(e,t,n){"use strict";var r=n(48);t.a=r.a},function(e,t,n){"use strict";var r=n(159);t.a=r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=n(0),o=n.n(a),i=n(8),s=n.n(i),l=n(67),u=n.n(l),c=n(74),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(e){var t=function(t){var n=t.wrappedComponentRef,a=r(t,["wrappedComponentRef"]);return o.a.createElement(c.a,{children:function(t){return o.a.createElement(e,p({},a,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:s.a.func},u()(t,e)};t.a=f},function(e,t,n){"use strict";function r(e){var t=new i(e),n=o(i.prototype.request,t);return a.extend(n,i.prototype,t),a.extend(n,t),n}var a=n(13),o=n(77),i=n(162),s=n(49),l=r(s);l.Axios=i,l.create=function(e){return r(a.merge(s,e))},l.Cancel=n(81),l.CancelToken=n(176),l.isCancel=n(80),l.all=function(e){return Promise.all(e)},l.spread=n(177),e.exports=l,e.exports.default=l},function(e,t){function n(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&&n(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&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var a=n(49),o=n(13),i=n(171),s=n(172);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(a,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],n=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;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(79);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e}},function(e,t,n){"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 a=n(13);e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(a.isURLSearchParams(t))o=t.toString();else{var i=[];a.forEach(t,function(e,t){null!==e&&void 0!==e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),o=i.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,n){"use strict";var r=n(13),a=["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,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&a.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}}),i):i}},function(e,t,n){"use strict";var r=n(13);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(a.setAttribute("href",t),t=a.href),a.setAttribute("href",t),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");return t=e(window.location.href),function(n){var a=r.isString(n)?e(n):n;return a.protocol===t.protocol&&a.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function a(e){for(var t,n,a=String(e),i="",s=0,l=o;a.charAt(0|s)||(l="=",s%1);i+=l.charAt(63&t>>8-s%1*8)){if((n=a.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return i}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=a},function(e,t,n){"use strict";var r=n(13);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,a,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.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,n){"use strict";function r(){this.handlers=[]}var a=n(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){a.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var a=n(13),o=n(173),i=n(80),s=n(49),l=n(174),u=n(175);e.exports=function(e){return r(e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"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 n=this;e(function(e){n.reason||(n.reason=new a(e),t(n.reason))})}var a=n(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,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(82),a=n(83),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,a,o,i,l,u,c,p,f,d,h){var m=t;if("function"==typeof u)m=u(n,m);else if(m instanceof Date)m=f(m);else if(null===m){if(o)return l&&!h?l(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m)){if(l){return[d(h?n:l(n,s.encoder))+"="+d(l(m,s.encoder))]}return[d(n)+"="+d(String(m))]}var y=[];if(void 0===m)return y;var b;if(Array.isArray(u))b=u;else{var v=Object.keys(m);b=c?v.sort(c):v}for(var g=0;g<b.length;++g){var _=b[g];i&&null===m[_]||(y=Array.isArray(m)?y.concat(e(m[_],a(n,_),a,o,i,l,u,c,p,f,d,h)):y.concat(e(m[_],n+(p?"."+_:"["+_+"]"),a,o,i,l,u,c,p,f,d,h)))}return y};e.exports=function(e,t){var n=e,i=t?r.assign({},t):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===i.delimiter?s.delimiter:i.delimiter,c="boolean"==typeof i.strictNullHandling?i.strictNullHandling:s.strictNullHandling,p="boolean"==typeof i.skipNulls?i.skipNulls:s.skipNulls,f="boolean"==typeof i.encode?i.encode:s.encode,d="function"==typeof i.encoder?i.encoder:s.encoder,h="function"==typeof i.sort?i.sort:null,m=void 0!==i.allowDots&&i.allowDots,y="function"==typeof i.serializeDate?i.serializeDate:s.serializeDate,b="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:s.encodeValuesOnly;if(void 0===i.format)i.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,i.format))throw new TypeError("Unknown format option provided.");var v,g,_=a.formatters[i.format];"function"==typeof i.filter?(g=i.filter,n=g("",n)):Array.isArray(i.filter)&&(g=i.filter,v=g);var E=[];if("object"!=typeof n||null===n)return"";var w;w=i.arrayFormat in o?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=o[w];v||(v=Object.keys(n)),h&&v.sort(h);for(var j=0;j<v.length;++j){var x=v[j];p&&null===n[x]||(E=E.concat(l(n[x],x,O,c,p,f?d:null,g,h,m,y,_,b)))}var P=E.join(u),k=!0===i.addQueryPrefix?"?":"";return P.length>0?k+P:""}},function(e,t,n){"use strict";var r=n(82),a=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=r.split(t.delimiter,i),l=0;l<s.length;++l){var u,c,p=s[l],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)),a.call(n,u)?n[u]=[].concat(n[u]).concat(c):n[u]=c}return n},s=function(e,t,n){for(var r=t,a=e.length-1;a>=0;--a){var o,i=e[a];if("[]"===i)o=[],o=o.concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(s,10);!isNaN(l)&&i!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[],o[l]=r):o[s]=r}r=o}return r},l=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,l=o.exec(r),u=l?r.slice(0,l.index):r,c=[];if(u){if(!n.plainObjects&&a.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var p=0;null!==(l=i.exec(r))&&p<n.depth;){if(p+=1,!n.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+r.slice(l.index)+"]"),s(c,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof e?i(e,n):e,s=n.plainObjects?Object.create(null):{},u=Object.keys(a),c=0;c<u.length;++c){var p=u[c],f=l(p,a[p],n);s=r.merge(s,f,n)}return r.compact(s)}},function(e,t,n){"use strict";(function(t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)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 i(e,n){if(!t.document)return function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"render",value:function(){return!1}}]),t}(l.Component);n=n||{};var i=function(t){function i(){var t,n,o,s;r(this,i);for(var c=arguments.length,p=Array(c),f=0;f<c;f++)p[f]=arguments[f];return n=o=a(this,(t=i.__proto__||Object.getPrototypeOf(i)).call.apply(t,[this].concat(p))),o.renderDisplaced=function(){u.unstable_renderSubtreeIntoContainer(o,l.createElement(e,o.props,o.props.children),o.container)},o.removeDisplaced=function(){u.unmountComponentAtNode(o.container)},s=n,a(o,s)}return o(i,t),s(i,[{key:"componentWillMount",value:function(){this.container=function(){if(n.renderTo)return"string"==typeof n.renderTo?document.querySelector(n.renderTo):n.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),n.renderTo||this.container.parentNode.removeChild(this.container)}},{key:"render",value:function(){return c&&!1!==this.props.mounted?u.createPortal(l.createElement(e,this.props,this.props.children),this.container):null}}]),i}(l.Component);return i.defaultProps={mounted:!0},i.WrappedComponent=e,i}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=n(22),c=!!u.createPortal;e.exports=i}).call(t,n(42))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.insertSelector=n.insertSelector.bind(n),n}return o(t,e),i(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],n=_.isUndefined(this.props.type)?"form":this.props.type;"pdf-form"===this.props.formType&&(n=this.props.formType);var r=l.default.createElement(l.default.Fragment,null,l.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),l.default.createElement("div",{className:"sui-ace-selectors"},l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Form")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-title ")}},(0,u.translate)("Section Title")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-subtitle ")}},(0,u.translate)("Section Subtitle")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-label ")}},(0,u.translate)("Field Label")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-description ")}},(0,u.translate)("Field Description")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-input ")}},(0,u.translate)("Input")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-textarea ")}},(0,u.translate)("Textarea")))),a=l.default.createElement(l.default.Fragment,null,l.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),l.default.createElement("div",{className:"sui-ace-selectors"},l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Poll")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll--question ")}},(0,u.translate)("Question")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-radio .forminator-radio-bullet ")}},(0,u.translate)("Answer Input")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio .forminator-radio-label ")}},(0,u.translate)("Answer Label")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-button ")}},(0,u.translate)("Submit Button")),l.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=l.default.createElement(l.default.Fragment,null,l.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),l.default.createElement("div",{className:"sui-ace-selectors"},l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Quiz")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,u.translate)("Title")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description p ")}},(0,u.translate)("Description")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question .forminator-legend ")}},(0,u.translate)("Question")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--design ")}},(0,u.translate)("Answer Container")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,u.translate)("Answer Text")))),i=l.default.createElement(l.default.Fragment,null,l.default.createElement("label",{className:"sui-label"},(0,u.translate)("PDF selectors")),l.default.createElement("div",{className:"sui-ace-selectors"},l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector("body")}},(0,u.translate)("Body")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-pdf-header")}},(0,u.translate)("PDF Header")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".pdf-logo")}},(0,u.translate)("Logo")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".pdf-title")}},(0,u.translate)("Title")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-row-heading td")}},(0,u.translate)("Field Label")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-row-content td")}},(0,u.translate)("Field Value")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-pdf-footer-text td")}},(0,u.translate)("Footer")),l.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-pdf-pagination td")}},(0,u.translate)("Pagination"))));return l.default.createElement(l.default.Fragment,null,"form"===n&&r,"poll"===n&&a,"quiz"===n&&o,"pdf-form"===n&&i,l.default.createElement("div",{id:"forminator-field-"+this.props.property,"data-value":t,style:{height:"210px"}},t))}}]),t}(s.Component);t.default=c},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateQuestions=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_QUESTIONS",questions:e})}},t.updateQuestion=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_QUESTION",question:e})}},t.updateResults=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_RESULTS",results:e})}},t.updateResult=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_RESULT",result:e})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(29),f=r(p),d=function(e){function t(e){a(this,t);var n=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="+n.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="+n.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="+n.props.id,dropdownLabel:(0,c.translate)("Open quiz options")}};return n.copyToClipboard=n.copyToClipboard.bind(n),n.resetTrackingData=n.resetTrackingData.bind(n),n.data=r[n.props.type],n}return i(t,e),s(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",n=e.data||(0,c.translate)("Something went wrong.");new f.default({type:t,text:n,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,n=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:n},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}(l.Component);t.default=d},,function(e,t,n){"use strict";function r(e){return e.replace(/>/g,">")}t.a=r},,function(e,t,n){/*! @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,n){e.exports=n()}(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,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){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,a,o){return r=n()?Reflect.construct:function(e,n,r){var a=[null];a.push.apply(a,n);var o=Function.bind.apply(e,a),i=new o;return r&&t(i,r.prototype),i},r.apply(null,arguments)}function a(e,t){return s(e)||u(e,t)||c(e,t)||d()}function o(e){return i(e)||l(e)||c(e)||f()}function i(e){if(Array.isArray(e))return p(e)}function s(e){if(Array.isArray(e))return e}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw a}}return o}}function c(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];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 h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function m(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return C(e,t,r)}}function y(e,t,n){n=n||F,E&&E(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var o=n(a);o!==a&&(w(t)||(t[r]=o),a=o)}e[a]=!0}return e}function b(e){var t,n=k(null),r=h(_(e));try{for(r.s();!(t=r.n()).done;){var o=a(t.value,2),i=o[0],s=o[1];n[i]=s}}catch(e){r.e(e)}finally{r.f()}return n}function v(e,t){function n(e){return console.warn("fallback value for",e),null}for(;null!==e;){var r=j(e,t);if(r){if(r.get)return m(r.get);if("function"==typeof r.value)return m(r.value)}e=O(e)}return n}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le(),n=function(e){return g(e)};if(n.version="3.0.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,u=t.Element,c=t.NodeFilter,p=t.NamedNodeMap,f=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,d=t.HTMLFormElement,h=t.DOMParser,m=t.trustedTypes,E=u.prototype,w=v(E,"cloneNode"),O=v(E,"nextSibling"),j=v(E,"childNodes"),P=v(E,"parentNode");if("function"==typeof s){var k=a.createElement("template");k.content&&k.content.ownerDocument&&(a=k.content.ownerDocument)}var N=ue(m,r),C=N?N.createHTML(""):"",S=a,ce=S.implementation,pe=S.createNodeIterator,fe=S.createDocumentFragment,de=S.getElementsByTagName,he=r.importNode,me={};n.isSupported="function"==typeof _&&"function"==typeof P&&ce&&void 0!==ce.createHTMLDocument;var ye,be,ve=Z,ge=ee,_e=te,Ee=ne,we=re,Oe=oe,je=ie,xe=ae,Pe=null,ke=y({},[].concat(o(V),o(B),o($),o(H),o(Y))),Ne=null,Ce=y({},[].concat(o(G),o(J),o(K),o(X))),Se=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}})),Te=null,Ae=null,Me=!0,Fe=!0,Re=!1,De=!0,Ie=!1,Le=!1,qe=!1,Ue=!1,ze=!1,Ve=!1,Be=!1,$e=!0,Qe=!1,He=!0,We=!1,Ye={},Ge=null,Je=y({},["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"]),Ke=null,Xe=y({},["audio","video","img","source","image","track"]),Ze=null,et=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",at=rt,ot=!1,it=null,st=y({},[tt,nt,rt],R),lt=["application/xhtml+xml","text/html"],ut=null,ct=a.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=b(t),ye=ye=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ye?R:F,Pe="ALLOWED_TAGS"in t?y({},t.ALLOWED_TAGS,be):ke,Ne="ALLOWED_ATTR"in t?y({},t.ALLOWED_ATTR,be):Ce,it="ALLOWED_NAMESPACES"in t?y({},t.ALLOWED_NAMESPACES,R):st,Ze="ADD_URI_SAFE_ATTR"in t?y(b(et),t.ADD_URI_SAFE_ATTR,be):et,Ke="ADD_DATA_URI_TAGS"in t?y(b(Xe),t.ADD_DATA_URI_TAGS,be):Xe,Ge="FORBID_CONTENTS"in t?y({},t.FORBID_CONTENTS,be):Je,Te="FORBID_TAGS"in t?y({},t.FORBID_TAGS,be):{},Ae="FORBID_ATTR"in t?y({},t.FORBID_ATTR,be):{},Ye="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Fe=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ie=t.SAFE_FOR_TEMPLATES||!1,Le=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,Ue=t.FORCE_BODY||!1,$e=!1!==t.SANITIZE_DOM,Qe=t.SANITIZE_NAMED_PROPS||!1,He=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,at=t.NAMESPACE||rt,Se=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Fe=!1),Ve&&(ze=!0),Ye&&(Pe=y({},o(Y)),Ne=[],!0===Ye.html&&(y(Pe,V),y(Ne,G)),!0===Ye.svg&&(y(Pe,B),y(Ne,J),y(Ne,X)),!0===Ye.svgFilters&&(y(Pe,$),y(Ne,J),y(Ne,X)),!0===Ye.mathMl&&(y(Pe,H),y(Ne,K),y(Ne,X))),t.ADD_TAGS&&(Pe===ke&&(Pe=b(Pe)),y(Pe,t.ADD_TAGS,be)),t.ADD_ATTR&&(Ne===Ce&&(Ne=b(Ne)),y(Ne,t.ADD_ATTR,be)),t.ADD_URI_SAFE_ATTR&&y(Ze,t.ADD_URI_SAFE_ATTR,be),t.FORBID_CONTENTS&&(Ge===Je&&(Ge=b(Ge)),y(Ge,t.FORBID_CONTENTS,be)),He&&(Pe["#text"]=!0),Le&&y(Pe,["html","head","body"]),Pe.table&&(y(Pe,["tbody"]),delete Te.tbody),x&&x(t),ut=t)},dt=y({},["mi","mo","mn","ms","mtext"]),ht=y({},["foreignobject","desc","title","annotation-xml"]),mt=y({},["title","style","font","a","script"]),yt=y({},B);y(yt,$),y(yt,Q);var bt=y({},H);y(bt,W);var vt=function(e){var t=P(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var n=F(e.tagName),r=F(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(yt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&ht[r]:Boolean(bt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!ht[r])&&(!(t.namespaceURI===tt&&!dt[r])&&(!bt[n]&&(mt[n]||!yt[n]))):!("application/xhtml+xml"!==ye||!it[e.namespaceURI]))},gt=function(e){M(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},_t=function(e,t){try{M(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){M(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(ze||Ve)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,n;if(Ue)e="<remove></remove>"+e;else{var r=D(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ye&&at===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=N?N.createHTML(e):e;if(at===rt)try{t=(new h).parseFromString(o,ye)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(at,"template",null);try{t.documentElement.innerHTML=ot?C:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),at===rt?de.call(t,Le?"html":"body")[0]:Le?t.documentElement:i},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)},jt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,r){me[e]&&T(me[e],function(e){e.call(n,t,r,ut)})},Pt=function(e){var t;if(xt("beforeSanitizeElements",e,null),Ot(e))return gt(e),!0;var r=be(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:r,allowedTags:Pe}),e.hasChildNodes()&&!jt(e.firstElementChild)&&(!jt(e.content)||!jt(e.content.firstElementChild))&&U(/<[/\w]/g,e.innerHTML)&&U(/<[/\w]/g,e.textContent))return gt(e),!0;if(!Pe[r]||Te[r]){if(!Te[r]&&Nt(r)){if(Se.tagNameCheck instanceof RegExp&&U(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(He&&!Ge[r]){var a=P(e)||e.parentNode,o=j(e)||e.childNodes;if(o&&a)for(var i=o.length,s=i-1;s>=0;--s)a.insertBefore(w(o[s],!0),O(e))}return gt(e),!0}return e instanceof u&&!vt(e)?(gt(e),!0):"noscript"!==r&&"noembed"!==r||!U(/<\/no(script|embed)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=I(t,ve," "),t=I(t,ge," "),t=I(t,_e," "),e.textContent!==t&&(M(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(gt(e),!0)},kt=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in a||n in ct))return!1;if(Fe&&!Ae[t]&&U(Ee,t));else if(Me&&U(we,t));else if(!Ne[t]||Ae[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&U(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&U(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&U(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ze[t]);else if(U(xe,I(n,je,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==L(n,"data:")||!Ke[e]){if(Re&&!U(Oe,I(n,je,"")));else if(n)return!1}else;return!0},Nt=function(e){return e.indexOf("-")>0},Ct=function(t){var r,a,o,i;xt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(i=s.length;i--;){r=s[i];var u=r,c=u.name,p=u.namespaceURI;if(a="value"===c?r.value:q(r.value),o=be(c),l.attrName=o,l.attrValue=a,l.keepAttr=!0,l.forceKeepAttr=void 0,xt("uponSanitizeAttribute",t,l),a=l.attrValue,!l.forceKeepAttr&&(_t(c,t),l.keepAttr))if(De||!U(/\/>/i,a)){Ie&&(a=I(a,ve," "),a=I(a,ge," "),a=I(a,_e," "));var f=be(t.nodeName);if(kt(f,o,a)){if(!Qe||"id"!==o&&"name"!==o||(_t(c,t),a="user-content-"+a),N&&"object"===e(m)&&"function"==typeof m.getAttributeType)if(p);else switch(m.getAttributeType(f,o)){case"TrustedHTML":a=N.createHTML(a);break;case"TrustedScriptURL":a=N.createScriptURL(a)}try{p?t.setAttributeNS(p,c,a):t.setAttribute(c,a),A(n.removed)}catch(e){}}}else _t(c,t)}xt("afterSanitizeAttributes",t,null)}},St=function e(t){var n,r=wt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),Pt(n)||(n.content instanceof i&&e(n.content),Ct(n));xt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t,a,o,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!jt(e)){if("function"!=typeof e.toString)throw z("toString is not a function");if("string"!=typeof(e=e.toString()))throw z("dirty is not a string, aborting")}if(!n.isSupported)return e;if(qe||ft(u),n.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){var c=be(e.nodeName);if(!Pe[c]||Te[c])throw z("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)t=Et("\x3c!----\x3e"),a=t.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName?t=a:"HTML"===a.nodeName?t=a:t.appendChild(a);else{if(!ze&&!Ie&&!Le&&-1===e.indexOf("<"))return N&&Be?N.createHTML(e):e;if(!(t=Et(e)))return ze?null:Be?C:""}t&&Ue&>(t.firstChild);for(var p=wt(We?e:t);o=p.nextNode();)Pt(o)||(o.content instanceof i&&St(o.content),Ct(o));if(We)return e;if(ze){if(Ve)for(s=fe.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(Ne.shadowroot||Ne.shadowrootmod)&&(s=he.call(r,s,!0)),s}var f=Le?t.outerHTML:t.innerHTML;return Le&&Pe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&U(se,t.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+f),Ie&&(f=I(f,ve," "),f=I(f,ge," "),f=I(f,_e," ")),N&&Be?N.createHTML(f):f},n.setConfig=function(e){ft(e),qe=!0},n.clearConfig=function(){ut=null,qe=!1},n.isValidAttribute=function(e,t,n){ut||ft({});var r=be(e),a=be(t);return kt(r,a,n)},n.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],M(me[e],t))},n.removeHook=function(e){if(me[e])return A(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}var _=Object.entries,E=Object.setPrototypeOf,w=Object.isFrozen,O=Object.getPrototypeOf,j=Object.getOwnPropertyDescriptor,x=Object.freeze,P=Object.seal,k=Object.create,N="undefined"!=typeof Reflect&&Reflect,C=N.apply,S=N.construct;C||(C=function(e,t,n){return e.apply(t,n)}),x||(x=function(e){return e}),P||(P=function(e){return e}),S||(S=function(e,t){return r(e,o(t))});var T=m(Array.prototype.forEach),A=m(Array.prototype.pop),M=m(Array.prototype.push),F=m(String.prototype.toLowerCase),R=m(String.prototype.toString),D=m(String.prototype.match),I=m(String.prototype.replace),L=m(String.prototype.indexOf),q=m(String.prototype.trim),U=m(RegExp.prototype.test),z=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S(e,n)}}(TypeError),V=x(["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"]),B=x(["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"]),$=x(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=x(["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"]),H=x(["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"]),W=x(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=x(["#text"]),G=x(["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"]),J=x(["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"]),K=x(["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=x(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=P(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ee=P(/<%[\w\W]*|[\w\W]*%>/gm),te=P(/\${[\w\W]*}/gm),ne=P(/^data-[\-\w.\u00B7-\uFFFF]/),re=P(/^aria-[\-\w]+$/),ae=P(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=P(/^(?:\w+script|data):/i),ie=P(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),se=P(/^html$/i),le=function(){return"undefined"==typeof window?null:window},ue=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return g()})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(22),p=r(c),f=n(191),d=r(f),h=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return"undefined"!=typeof document&&(n.previouslyFocusedElement=document.activeElement),n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1,fallbackFocus:"body"};for(var n in e)e.hasOwnProperty(n)&&"returnFocusOnDeactivate"!==n&&(t[n]=e[n]);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,n=t||!1,r={returnFocus:n};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),n=function(n){e.setFocusTrapElement(n),"function"==typeof t.ref&&t.ref(n)};return u.default.cloneElement(t,{ref:n})}}]),t}(u.default.Component);h.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d.default},e.exports=h},function(e,t,n){function r(e,t){function n(e){if(!C.active){j(),C.active=!0,C.paused=!1,C.nodeFocusedBeforeActivation=P.activeElement;var t=e&&e.onActivate?e.onActivate:N.onActivate;return t&&t(),h(),S}}function r(e){if(C.active){clearTimeout(l),m(),C.active=!1,C.paused=!1,p.deactivateTrap(S);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:N.onDeactivate;t&&t();return(e&&void 0!==e.returnFocus?e.returnFocus:N.returnFocusOnDeactivate)&&s(function(){x(v(C.nodeFocusedBeforeActivation))}),S}}function f(){!C.paused&&C.active&&(C.paused=!0,m())}function d(){C.paused&&C.active&&(C.paused=!1,j(),h())}function h(){if(C.active)return p.activateTrap(S),l=s(function(){x(b())}),P.addEventListener("focusin",_,!0),P.addEventListener("mousedown",g,{capture:!0,passive:!1}),P.addEventListener("touchstart",g,{capture:!0,passive:!1}),P.addEventListener("click",O,{capture:!0,passive:!1}),P.addEventListener("keydown",E,{capture:!0,passive:!1}),S}function m(){if(C.active)return P.removeEventListener("focusin",_,!0),P.removeEventListener("mousedown",g,!0),P.removeEventListener("touchstart",g,!0),P.removeEventListener("click",O,!0),P.removeEventListener("keydown",E,!0),S}function y(e){var t=N[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=P.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function b(){var e;if(!(e=null!==y("initialFocus")?y("initialFocus"):k.contains(P.activeElement)?P.activeElement:C.firstTabbableNode||y("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){var t=y("setReturnFocus");return t||e}function g(e){if(!k.contains(e.target))return N.clickOutsideDeactivates?void r({returnFocus:!u.isFocusable(e.target)}):void(N.allowOutsideClick&&N.allowOutsideClick(e)||e.preventDefault())}function _(e){k.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),x(C.mostRecentlyFocusedNode||b()))}function E(e){return!1!==N.escapeDeactivates&&o(e)?(e.preventDefault(),void r()):i(e)?void w(e):void 0}function w(e){return j(),e.shiftKey&&e.target===C.firstTabbableNode?(e.preventDefault(),void x(C.lastTabbableNode)):e.shiftKey||e.target!==C.lastTabbableNode?void 0:(e.preventDefault(),void x(C.firstTabbableNode))}function O(e){N.clickOutsideDeactivates||k.contains(e.target)||N.allowOutsideClick&&N.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function j(){var e=u(k);C.firstTabbableNode=e[0]||b(),C.lastTabbableNode=e[e.length-1]||b()}function x(e){if(e!==P.activeElement){if(!e||!e.focus)return void x(b());e.focus(),C.mostRecentlyFocusedNode=e,a(e)&&e.select()}}var P=document,k="string"==typeof e?P.querySelector(e):e,N=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),C={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},S={activate:n,deactivate:r,pause:f,unpause:d};return S}function a(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 i(e){return"Tab"===e.key||9===e.keyCode}function s(e){return setTimeout(e,0)}var l,u=n(192),c=n(193),p=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r?e.push(t):(e.splice(r,1),e.push(t))},deactivateTrap:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}();e.exports=r},function(e,t){function n(e,t){t=t||{};var n=[],a=[],o=e.querySelectorAll(v);t.includeContainer&&g.call(e,v)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var i,u,c;for(i=0;i<o.length;i++)u=o[i],r(u)&&(c=s(u),0===c?n.push(u):a.push({documentOrder:i,tabIndex:c,node:u}));return a.sort(l).map(function(e){return e.node}).concat(n)}function r(e){return!(!o(e)||d(e)||s(e)<0)}function a(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)||y(e))}function i(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,_)&&o(e)}function s(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?u(e)?0:e.tabIndex:t}function l(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)&&!m(e)}function h(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function m(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=h(t);return!n||n===e}function y(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}var b=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],v=b.join(","),g="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;n.isTabbable=a,n.isFocusable=i;var _=b.concat("iframe").join(",");e.exports=n},function(e,t){function n(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var a in n)r.call(n,a)&&(e[a]=n[a])}return e}e.exports=n;var r=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";var r=n(195),a=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,n,r){function o(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(i,t),this.init()}var i={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 n=jQuery(e.target);n.hasClass("connect-integration")||(n=n.closest(".connect-integration"));var r=function(){return t.close(),!1},o=n.data("nonce"),i=n.data("slug"),s=n.data("multi-global-id"),l=n.data("title"),u=n.data("image"),c=n.data("imagex2"),p=n.data("action"),f=n.data("form-id"),d=n.data("multi-id"),h=n.data("poll-id"),m=n.data("quiz-id"),y=_.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(y({image:u,image2x:c,title:l})),this.$popup=jQuery("#forminator-integration-popup");var b={slug:i,nonce:o,action:p,multi_id:d,global_id:s,el:this.$popup,type:t.options.type};return"form"===t.options.type?b.form_id=f:"poll"===t.options.type?b.poll_id=h:"quiz"===t.options.type&&(b.quiz_id=m),new a.default(b).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,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(29),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){var n;r(this,t);var o=a(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),n=o.render(),a(o,n)}return o(t,e),i(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,n){var r=this,a={data:e,close:t,loader:n};n&&(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 n=e.data.data;if(r.onRender(n),r.resetLoader(r.$el),(t||!_.isUndefined(n.is_close)&&n.is_close)&&r.close(r),r.$el.find(".forminator-addon-close").on("click",function(){r.close(r)}),!_.isUndefined(n.notification)&&!_.isUndefined(n.notification.type)&&!_.isUndefined(n.notification.text)){new l.default({type:n.notification.type,text:n.notification.text,time:4e3}).open()}if(_.isUndefined(n.has_back)?r.$el.find(".forminator-addon-back").hide():n.has_back?r.$el.find(".forminator-addon-back").show():r.$el.find(".forminator-addon-back").hide(),!_.isUndefined(n.size)){var o=jQuery("#forminator-integration-popup");"normal"===n.size&&o.removeClass("sui-modal-sm sui-modal-lg"),"small"===n.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-reduced")),"reduced"===n.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-md")),"large"===n.size&&(o.addClass("sui-modal-lg"),o.removeClass("sui-modal-sm sui-modal-md"))}n.is_poll&&setTimeout(r.request(a.data,a.close,a.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 i=r.$el.find("#group");i.length&&i.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,n=e.data.data.buttons;t.$el.find(".sui-box-footer").html(""),_.each(n,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),n=this.slug,r=this.global_id,a=this.nonce,o={slug:n,global_id:r};t.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:o,_ajax_nonce:a}}).done(function(e){if(e.success&&void 0!==e.data.options){var n=t.siblings(".sui-select"),r=n.closest(".sui-modal-content"),a=r.attr("id"),o=r.length?jQuery("#"+a):jQuery("body"),i="true"===n.attr("data-search")?0:-1,s=n.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";n.html(e.data.options),n.SUIselect2({dropdownParent:o,minimumResultsForSearch:i,dropdownCssClass:s})}}).fail(function(){}).always(function(){t.removeClass("sui-button-onload")})}},{key:"showInterests",value:function(e){var t=this,n=jQuery(e.currentTarget),r=n.data("nonce"),a={},o=t.$el.find("form"),i={slug:t.slug,global_id:this.global_id,module_id:this.module_id,module_type:this.type},s=o.serialize();s=s+"&"+jQuery.param(i),a.action="forminator_mailchimp_get_group_interests",a._ajax_nonce=r,a.data=s,t.applyLoader(t.$el),jQuery.ajax({url:ajaxurl,type:"POST",data:a}).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={},n=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},a=n.serialize();r=this.getAjaxModuleData(r,!1),a=a+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},n={slug:this.slug,step:this.getPrevStep(),global_id:this.global_id,current_step:this.step};n=this.getAjaxModuleData(n,!0),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"finishSteps",value:function(e){var t={},n=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},a=n.serialize();r=this.getAjaxModuleData(r,!0),a=a+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,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"),n={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},r=t.serialize();n=this.getAjaxModuleData(n,!0),r=r+"&"+jQuery.param(n),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"),n=jQuery('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=t.width()-n.width(),t.add(n).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,n){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function a(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 i(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return E.iterable&&(t[Symbol.iterator]=function(){return t}),t}function s(e){this.map={},e instanceof s?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 l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function c(e){var t=new FileReader,n=u(t);return t.readAsArrayBuffer(e),n}function p(e){var t=new FileReader,n=u(t);return t.readAsText(e),n}function f(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:E.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:E.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:E.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():E.arrayBuffer&&E.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):E.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):E.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},E.blob&&(this.blob=function(){var e=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=l(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)},E.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}function m(e){var t=e.toUpperCase();return j.indexOf(t)>-1?t:e}function y(e,t){t=t||{};var n=t.body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 s(t.headers)),this.method=m(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}}),t}function v(e){var t=new s;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}}),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 s(t.headers),this.url=t.url||"",this._initBody(e)}function _(e,t){return new Promise(function(n,r){function a(){i.abort()}var o=new y(e,t);if(o.signal&&o.signal.aborted)return r(new P("Aborted","AbortError"));var i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:v(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new g(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.onabort=function(){r(new P("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&E.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=s,t.Request=y,t.Response=g,n.d(t,"DOMException",function(){return P}),t.fetch=_;var E={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(E.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};s.prototype.append=function(e,t){e=a(e),t=o(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[a(e)]},s.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},s.prototype.set=function(e,t){this.map[a(e)]=o(t)},s.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},s.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),i(e)},s.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),i(e)},s.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),i(e)},E.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var j=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];g.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var P=self.DOMException;try{new P}catch(e){P=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},P.prototype=Object.create(Error.prototype),P.prototype.constructor=P}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=s,self.Request=y,self.Response=g)},function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e){return"function"==typeof e}function o(e){return e.displayName||e.name||"Component"}function i(e){return e&&"string"==typeof e.styledComponentId}function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}function l(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=se(t%52)+n;return(se(t%52)+n).replace(ie,"$1-$2")}function u(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(a(n)&&!i(n))return!1}return!0}function c(e){function t(e,t,i,s){void 0===s&&(s="&");var l=e.replace(fe,""),u=t&&i?i+" "+t+" { "+l+" }":l;return n=s,r=t,a=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),f(i||!t?"":t,u)}var n,r,a,o,i=void 0===e?D:e,l=i.options,u=void 0===l?D:l,c=i.plugins,p=void 0===c?R:c,f=new N.a(u),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,o,i,s,l,u,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),m=function(e,t,a){return 0===t&&-1!==de.indexOf(a[r.length])||a.match(o)?e:"."+n};return f.use([].concat(p,[function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(r)>0&&(n[0]=n[0].replace(a,m))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),t.hash=p.length?p.reduce(function(e,t){return t.name||s(15),le(e,t.name)},5381).toString():"",t}function p(){return Object(j.useContext)(he)||ye}function f(){return Object(j.useContext)(me)||be}function d(e){var t=Object(j.useState)(e.stylisPlugins),n=t[0],r=t[1],a=p(),o=Object(j.useMemo)(function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),i=Object(j.useMemo)(function(){return c({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return Object(j.useEffect)(function(){k()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]),x.a.createElement(he.Provider,{value:o},x.a.createElement(me.Provider,{value:i},e.children))}function h(e){return ge.test(e)?e.replace(_e,we).replace(Ee,"-ms-"):e}function m(e,t,n,r){if(Array.isArray(e)){for(var o,s=[],l=0,u=e.length;l<u;l+=1)""!==(o=m(e[l],t,n,r))&&(Array.isArray(o)?s.push.apply(s,o):s.push(o));return s}if(Oe(e))return"";if(i(e))return"."+e.styledComponentId;if(a(e)){if("function"!=typeof(p=e)||p.prototype&&p.prototype.isReactComponent||!t)return e;var c=e(t);return m(c,t,n,r)}var p;return e instanceof ve?n?(e.inject(n,r),e.getName(r)):e:F(e)?function e(t,n){var r,o,i=[];for(var s in t)t.hasOwnProperty(s)&&!Oe(t[s])&&(Array.isArray(t[s])&&t[s].isCss||a(t[s])?i.push(h(s)+":",t[s],";"):F(t[s])?i.push.apply(i,e(t[s],s)):i.push(h(s)+": "+(r=s,null==(o=t[s])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in C.a?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a(e)||F(e)?je(m(M(R,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:je(m(M(e,n)))}function b(e){return e.replace(Pe,"-").replace(ke,"")}function v(e){return"string"==typeof e&&!0}function g(e,t,n){var r=e[n];Ce(t)&&Ce(r)?_(r,t):e[n]=t}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,o=n;a<o.length;a++){var i=o[a];if(Ce(i))for(var s in i)Se(s)&&g(e,i[s],s)}return e}function E(e,t,n){var s=i(e),l=!v(e),u=t.attrs,c=void 0===u?R:u,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":b(e);Ae[n]=(Ae[n]||0)+1;var r=n+"-"+Ne("5.3.3"+n+Ae[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,m=t.displayName,y=void 0===m?function(e){return v(e)?"styled."+e:"Styled("+o(e)+")"}(e):m,g=t.displayName&&t.componentId?b(t.displayName)+"-"+t.componentId:t.componentId||h,w=s&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,O=t.shouldForwardProp;s&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,a){return e.shouldForwardProp(n,r,a)&&t.shouldForwardProp(n,r,a)}:e.shouldForwardProp);var P,k=new pe(n,g,s?e.componentStyle:void 0),N=k.isStatic&&0===c.length,C=function(e,t){return function(e,t,n,o){var i=e.attrs,s=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,h=e.target,m=function(e,t,n){void 0===e&&(e=D);var o=r({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,r,s=e;for(t in a(s)&&(s=s(o)),s)o[t]=i[t]="className"===t?(n=i[t],r=s[t],n&&r?n+" "+r:n||r):s[t]}),[o,i]}(xe(t,Object(j.useContext)(Te),l)||D,t,i),y=m[0],b=m[1],g=function(e,t,n,r){var a=p(),o=f(),i=t?e.generateAndInjectStyles(D,a,o):e.generateAndInjectStyles(n,a,o);return i}(s,o,y),_=n,E=b.$as||t.$as||b.as||t.as||h,w=v(E),O=b!==t?r({},t,{},b):t,x={};for(var P in O)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?x.as=O[P]:(c?c(P,S.a,E):!w||Object(S.a)(P))&&(x[P]=O[P]));return t.style&&b.style!==t.style&&(x.style=r({},t.style,{},b.style)),x.className=Array.prototype.concat(u,d,g!==d?g:null,t.className,b.className).filter(Boolean).join(" "),x.ref=_,Object(j.createElement)(E,x)}(P,e,t,N)};return C.displayName=y,(P=x.a.forwardRef(C)).attrs=w,P.componentStyle=k,P.displayName=y,P.shouldForwardProp=O,P.foldedComponentIds=s?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):R,P.styledComponentId=g,P.target=s?e.target:e,P.withComponent=function(e){var a=t.componentId,i=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["componentId"]),s=a&&a+"-"+(v(e)?e:b(o(e)));return E(e,r({},i,{attrs:w,componentId:s}),n)},Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=s?_({},e.defaultProps,t):t}}),P.toString=function(){return"."+P.styledComponentId},l&&A()(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),P}function w(e){function t(e){var t=p(),r=f(),a=Object(j.useContext)(Te),o=Object(j.useRef)(t.allocateGSInstance(l)).current;return t.server&&n(o,e,t,a,r),Object(j.useLayoutEffect)(function(){if(!t.server)return n(o,e,t,a,r),function(){return u.removeStyles(o,t)}},[o,e,t,a,r]),null}function n(e,n,a,o,i){if(u.isStatic)u.renderStyles(e,U,a,i);else{var s=r({},n,{theme:xe(n,o,t.defaultProps)});u.renderStyles(e,s,a,i)}}for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];var s=y.apply(void 0,[e].concat(o)),l="sc-global-"+Ne(JSON.stringify(s)),u=new Fe(s,l);return x.a.memo(t)}n.d(t,"a",function(){return w});var O=n(110),j=(n.n(O),n(0)),x=n.n(j),P=n(199),k=n.n(P),N=n(200),C=n(201),S=n(202),T=n(204),A=n.n(T),M=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},F=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(O.typeOf)(e)},R=Object.freeze([]),D=Object.freeze({}),I=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",L="undefined"!=typeof window&&"HTMLElement"in window,q=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),U={},z=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&s(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o<a;o++)this.groupSizes[o]=0}for(var i=this.indexOfGroup(e+1),l=0,u=t.length;l<u;l++)this.tag.insertRule(i,t[l])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,o=r;o<a;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),V=new Map,B=new Map,$=1,Q=function(e){if(V.has(e))return V.get(e);for(;B.has($);)$++;var t=$++;return V.set(e,t),B.set(t,e),t},H=function(e){return B.get(e)},W=function(e,t){t>=$&&($=t+1),V.set(e,t),B.set(t,e)},Y="style["+I+'][data-styled-version="5.3.3"]',G=new RegExp("^"+I+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),J=function(e,t,n){for(var r,a=n.split(","),o=0,i=a.length;o<i;o++)(r=a[o])&&e.registerName(t,r)},K=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],a=0,o=n.length;a<o;a++){var i=n[a].trim();if(i){var s=i.match(G);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(W(u,l),J(e,u,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(i)}}},X=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Z=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(I))return r}}(n),o=void 0!==a?a.nextSibling:null;r.setAttribute(I,"active"),r.setAttribute("data-styled-version","5.3.3");var i=X();return i&&r.setAttribute("nonce",i),n.insertBefore(r,o),r},ee=function(){function e(e){var t=this.element=Z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}s(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),te=function(){function e(e){var t=this.element=Z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ne=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),re=L,ae={isServer:!L,useCSSOMInjection:!q},oe=function(){function e(e,t,n){void 0===e&&(e=D),void 0===t&&(t={}),this.options=r({},ae,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&L&&re&&(re=!1,function(e){for(var t=document.querySelectorAll(Y),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(I)&&(K(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Q(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new ne(a):r?new ee(a):new te(a),new z(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Q(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Q(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Q(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var o=H(a);if(void 0!==o){var i=e.names.get(o),s=t.getGroup(a);if(i&&s&&i.size){var l=I+".g"+a+'[id="'+o+'"]',u="";void 0!==i&&i.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),ie=/(a)(d)/gi,se=function(e){return String.fromCharCode(e+(e>25?39:97))},le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ue=function(e){return le(5381,e)},ce=ue("5.3.3"),pe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&u(e),this.componentId=t,this.baseHash=le(ce,t),this.baseStyle=n,oe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var o=m(this.rules,e,t,n).join(""),i=l(le(this.baseHash,o)>>>0);if(!t.hasNameForId(r,i)){var s=n(o,"."+i,void 0,r);t.insertRules(r,i,s)}a.push(i),this.staticRulesId=i}else{for(var u=this.rules.length,c=le(this.baseHash,n.hash),p="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)p+=d;else if(d){var h=m(d,e,t,n),y=Array.isArray(h)?h.join(""):h;c=le(c,y+f),p+=y}}if(p){var b=l(c>>>0);if(!t.hasNameForId(r,b)){var v=n(p,"."+b,void 0,r);t.insertRules(r,b,v)}a.push(b)}}return a.join(" ")},e}(),fe=/^\s*\/\/.*$/gm,de=[":","[",".","#"],he=x.a.createContext(),me=(he.Consumer,x.a.createContext()),ye=(me.Consumer,new oe),be=c(),ve=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=be);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return s(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=be),this.name+e.hash},e}(),ge=/([A-Z])/,_e=/([A-Z])/g,Ee=/^ms-/,we=function(e){return"-"+e.toLowerCase()},Oe=function(e){return null==e||!1===e||""===e},je=function(e){return Array.isArray(e)&&(e.isCss=!0),e},xe=(new Set,function(e,t,n){return void 0===n&&(n=D),e.theme!==n.theme&&e.theme||t||n.theme}),Pe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g,Ne=function(e){return l(ue(e)>>>0)},Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Se=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e},Te=x.a.createContext(),Ae=(Te.Consumer,{}),Me=function(e){return function e(t,n,a){if(void 0===a&&(a=D),!Object(O.isValidElementType)(n))return s(1,String(n));var o=function(){return t(n,a,y.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,r({},a,{},o))},o.attrs=function(o){return e(t,n,r({},a,{attrs:Array.prototype.concat(a.attrs,o).filter(Boolean)}))},o}(E,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Me[e]=Me(e)});var Fe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=u(e),oe.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(m(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&oe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=X();return"<style "+[n&&'nonce="'+n+'"',I+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?s(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return s(2);var n=((t={})[I]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),a=X();return a&&(n.nonce=a),[x.a.createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new oe({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?s(2):x.a.createElement(d,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return s(3)}}();t.b=Me}).call(t,n(31))},function(e,t,n){"use strict";function r(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case h:case l:case c:case u:case y:return e;default:switch(e=e&&e.$$typeof){case f:case m:case g:case v:case p:return e;default:return t}}case s:return t}}}function a(e){return r(e)===h}/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,s=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,p=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,h=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,b=o?Symbol.for("react.suspense_list"):60120,v=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,_=o?Symbol.for("react.block"):60121,E=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,O=o?Symbol.for("react.scope"):60119;t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=f,t.ContextProvider=p,t.Element=i,t.ForwardRef=m,t.Fragment=l,t.Lazy=g,t.Memo=v,t.Portal=s,t.Profiler=c,t.StrictMode=u,t.Suspense=y,t.isAsyncMode=function(e){return a(e)||r(e)===d},t.isConcurrentMode=a,t.isContextConsumer=function(e){return r(e)===f},t.isContextProvider=function(e){return r(e)===p},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return r(e)===m},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===g},t.isMemo=function(e){return r(e)===v},t.isPortal=function(e){return r(e)===s},t.isProfiler=function(e){return r(e)===c},t.isStrictMode=function(e){return r(e)===u},t.isSuspense=function(e){return r(e)===y},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===h||e===c||e===u||e===y||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===p||e.$$typeof===f||e.$$typeof===m||e.$$typeof===E||e.$$typeof===w||e.$$typeof===O||e.$$typeof===_)},t.typeOf=r},function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],p=t[u];if(!1===(a=n?n.call(r,c,p,u):void 0)||void 0===a&&c!==p)return!1}return!0}},function(e,t,n){"use strict";function r(e){function t(e,r,l,u,c){for(var d,h,m,y,b,E=0,O=0,j=0,x=0,P=0,k=0,M=m=d=0,R=0,I=0,L=0,q=0,U=l.length,z=U-1,V="",B="",$="",Q="";R<U;){if(h=l.charCodeAt(R),R===z&&0!==O+x+j+E&&(0!==O&&(h=47===O?10:47),x=j=E=0,U++,z++),0===O+x+j+E){if(R===z&&(0<I&&(V=V.replace(f,"")),0<V.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:V+=l.charAt(R)}h=59}switch(h){case 123:for(V=V.trim(),d=V.charCodeAt(0),m=1,q=++R;R<U;){switch(h=l.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(R+1)){case 42:case 47:e:{for(M=R+1;M<z;++M)switch(l.charCodeAt(M)){case 47:if(42===h&&42===l.charCodeAt(M-1)&&R+2!==M){R=M+1;break e}break;case 10:if(47===h){R=M+1;break e}}R=M}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<z&&l.charCodeAt(R)!==h;);}if(0===m)break;R++}switch(m=l.substring(q,R),0===d&&(d=(V=V.replace(p,"").trim()).charCodeAt(0)),d){case 64:switch(0<I&&(V=V.replace(f,"")),h=V.charCodeAt(1)){case 100:case 109:case 115:case 45:I=r;break;default:I=A}if(m=t(r,I,m,h,c+1),q=m.length,0<F&&(I=n(A,V,L),b=s(3,m,I,r,C,N,q,h,c,u),V=I.join(""),void 0!==b&&0===(q=(m=b.trim()).length)&&(h=0,m="")),0<q)switch(h){case 115:V=V.replace(w,i);case 100:case 109:case 45:m=V+"{"+m+"}";break;case 107:V=V.replace(v,"$1 $2"),m=V+"{"+m+"}",m=1===T||2===T&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=V+m,112===u&&(B+=m,m="")}else m="";break;default:m=t(r,n(r,V,L),m,u,c+1)}$+=m,m=L=I=M=d=0,V="",h=l.charCodeAt(++R);break;case 125:case 59:if(V=(0<I?V.replace(f,""):V).trim(),1<(q=V.length))switch(0===M&&(45===(d=V.charCodeAt(0))||96<d&&123>d)&&(q=(V=V.replace(" ",":")).length),0<F&&void 0!==(b=s(1,V,r,e,C,N,B.length,u,c,u))&&0===(q=(V=b.trim()).length)&&(V="\0\0"),d=V.charCodeAt(0),h=V.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){Q+=V+l.charAt(R);break}default:58!==V.charCodeAt(q-1)&&(B+=a(V,d,h,V.charCodeAt(2)))}L=I=M=d=0,V="",h=l.charCodeAt(++R)}}switch(h){case 13:case 10:47===O?O=0:0===1+d&&107!==u&&0<V.length&&(I=1,V+="\0"),0<F*D&&s(0,V,r,e,C,N,B.length,u,c,u),N=1,C++;break;case 59:case 125:if(0===O+x+j+E){N++;break}default:switch(N++,y=l.charAt(R),h){case 9:case 32:if(0===x+E+O)switch(P){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===x+O+E&&(I=L=1,y="\f"+y);break;case 108:if(0===x+O+E+S&&0<M)switch(R-M){case 2:112===P&&58===l.charCodeAt(R-3)&&(S=P);case 8:111===k&&(S=k)}break;case 58:0===x+O+E&&(M=R);break;case 44:0===O+j+x+E&&(I=1,y+="\r");break;case 34:case 39:0===O&&(x=x===h?0:0===x?h:x);break;case 91:0===x+O+j&&E++;break;case 93:0===x+O+j&&E--;break;case 41:0===x+O+E&&j--;break;case 40:if(0===x+O+E){if(0===d)switch(2*P+3*k){case 533:break;default:d=1}j++}break;case 64:0===O+j+x+E+M+m&&(m=1);break;case 42:case 47:if(!(0<x+E+j))switch(O){case 0:switch(2*h+3*l.charCodeAt(R+1)){case 235:O=47;break;case 220:q=R,O=42}break;case 42:47===h&&42===P&&q+2!==R&&(33===l.charCodeAt(q+2)&&(B+=l.substring(q,R+1)),y="",O=0)}}0===O&&(V+=y)}k=P,P=h,R++}if(0<(q=B.length)){if(I=r,0<F&&void 0!==(b=s(2,B,I,e,C,N,q,u,c,u))&&0===(B=b).length)return Q+B+$;if(B=I.join(",")+"{"+B+"}",0!=T*S){switch(2!==T||o(B,2)||(S=0),S){case 111:B=B.replace(_,":-moz-$1")+B;break;case 112:B=B.replace(g,"::-webkit-input-$1")+B.replace(g,"::-moz-$1")+B.replace(g,":-ms-input-$1")+B}S=0}}return Q+B+$}function n(e,t,n){var a=t.trim().split(y);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<i;++u)t[l++]=r(e[u]+" ",a[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===T||2===T&&o(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(k,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return h.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(l=i.substring(13).trim(),t=l.indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(E,"tb");break;case 232:l=i.replace(E,"tb-rl");break;case 220:l=i.replace(E,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim(),s=l.charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(j,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(j,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===P.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(x,"$1"),n,t)}function i(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,a,o,i,s,l,u){for(var p,f=0,d=t;f<F;++f)switch(p=M[f].call(c,e,d,n,r,a,o,i,s,l,u)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function l(e){switch(e){case void 0:case null:F=M.length=0;break;default:if("function"==typeof e)M[F++]=e;else if("object"==typeof e)for(var t=0,n=e.length;t<n;++t)l(e[t]);else D=0|!!e}return l}function u(e){return e=e.prefix,void 0!==e&&(R=null,e?"function"!=typeof e?T=1:(T=2,R=e):T=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),I=r,r=[I],0<F){var a=s(-1,n,r,r,C,N,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var o=t(A,r,n,0,0);return 0<F&&void 0!==(a=s(-2,o,r,r,C,N,o.length,0,0,0))&&(o=a),I="",S=0,N=C=1,o}var p=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,m=/([,: ])(transform)/g,y=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,_=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,j=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,N=1,C=1,S=0,T=1,A=[],M=[],F=0,R=null,D=0,I="";return c.use=l,c.set=u,void 0!==e&&u(e),c}t.a=r},function(e,t,n){"use strict";var r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};t.a=r},function(e,t,n){"use strict";var r=n(203),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=Object(r.a)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});t.a=o},function(e,t,n){"use strict";function r(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}t.a=r},function(e,t,n){"use strict";function r(e){return o.isMemo(e)?u:c[e.$$typeof]||i}function a(e,t,n){if("string"!=typeof t){if(y){var o=m(t);o&&o!==y&&a(e,o,n)}var i=f(t);d&&(i=i.concat(d(t)));for(var l=r(e),u=r(t),c=0;c<i.length;++c){var b=i[c];if(!(s[b]||n&&n[b]||u&&u[b]||l&&l[b])){var v=h(t,b);try{p(e,b,v)}catch(e){}}}}return e}var o=n(110),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[o.ForwardRef]=l,c[o.Memo]=u;var p=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;e.exports=a},,,,,function(e,t,n){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:a,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var a=t.UPDATE_TITLE="UPDATE_TITLE"},function(e,t,n){"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,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return c(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=n(10),i=n(111),s=r(i),l=n(299),u=r(l),c=(0,o.compose)((0,o.applyMiddleware)(s.default))(o.createStore)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),o=n(300),i=r(o),s=n(301),l=r(s),u=n(302),c=r(u),p=n(303),f=r(p),d=n(304),h=r(d),m=(0,a.combineReducers)({questions:i.default,results:l.default,settings:c.default,modal:f.default,notifications:h.default});t.default=m},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n=t.question,r=e.findIndex(function(e){return e.slug===n.slug});return e=(0,i.replaceInPosition)(e,r,n)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_QUESTIONS":return t.questions;case"UPDATE_QUESTION":return a([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(1)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n=t.result,r=e.findIndex(function(e){return e.slug===n.slug});return e=(0,i.replaceInPosition)(e,r,n)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_RESULTS":return t.results;case"UPDATE_RESULT":return a([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(1)},function(e,t,n){"use strict";function r(e,t){var n=t.setting,r=t.value;return e[n]=r,e}function a(e,t){var n=t.settings;return s({},e,n)}function o(e,t){var n=t.title;return e.formName=n,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=Object.assign({},e);switch(t.type){case"UPDATE_SETTINGS":return a(n,t);case"UPDATE_SETTING":return r(n,t);case"UPDATE_TITLE":return o(n,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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i},function(e,t,n){"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,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n=t.notification,r=e.findIndex(function(e){return e.slug===n.slug});return e=(0,i.replaceInPosition)(e,r,n)}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 a([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return i.default.createElement("div",{className:"sui-header fui-header-with-settings"},i.default.createElement("div",{className:"fui-header-title"},i.default.createElement("h1",{className:"sui-header-title"},(0,s.translate)("Edit Quiz")),i.default.createElement("div",{className:"sui-actions-right"},i.default.createElement(u.default,e))),i.default.createElement("div",{className:"fui-header-settings"},i.default.createElement("div",{className:"sui-actions-left"},i.default.createElement(p.default,e)),i.default.createElement("div",{className:"sui-actions-right"},i.default.createElement(u.default,e))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=n(0),i=r(o),s=n(1),l=n(306),u=r(l),c=n(307),p=r(c)},function(e,t,n){"use strict";function r(e){return forminatorData.showDocLink?o.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#quizzes",target:"_blank",className:"sui-button sui-button-ghost"},o.default.createElement("span",{className:"sui-icon-academy"})," ",(0,i.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(a),i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(185),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"componentDidMount",value:function(){var e=jQuery(".sui-sidenav .sui-with-floating-input"),t=jQuery(".sui-header"),n=t.find(".sui-header-title"),r=n.width();r>t.next().find(".sui-sidenav").width()&&e.css({left:r+20+"px"})}},{key:"render",value:function(){var e=this,t=this.props.title,n=_.isEmpty(t.trim()),r=n?"sui-form-field-error":"";return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field "+r},c.default.createElement("label",{htmlFor:"forminator-set-title",id:"forminator-set-title-label",className:"sui-screen-reader-text"},(0,p.translate)("Name your form")),c.default.createElement("input",{type:"text",value:t,placeholder:(0,p.translate)("Give your quiz a name"),id:"forminator-set-title",className:"sui-form-control","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)}}),c.default.createElement("p",{role:"alert",id:"forminator-set-title-message",className:"sui-error-message",style:{display:n?"block":"none",marginBottom:0}},n&&(0,p.translate)("Please, enter a valid name."))),c.default.createElement(d.default,s({type:"quiz"},this.props)))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(22),d=r(f),h=n(309),m=r(h),y=n(190),b=(r(y),n(180)),v=r(b),g={preview:m.default.previewModal,publish:m.default.publishModal,delete:m.default.deleteModal,shortcode:m.default.shortcodeModal,question:m.default.questionModal,submit:m.default.submitModal,personality:m.default.personalityModal,deletePersonality:m.default.deletePersonalityModal,notification:m.default.notificationModal,deleteNotification:m.default.deleteNotificationModal},E=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.$el=jQuery(this.el);var n=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 a=this.props.modal.modalProps.focusFirst;setTimeout(function(){"string"==typeof a?n.focusFirst=n.$el.find(a):"object"===(void 0===a?"undefined":l(a))?n.focusFirst=a:n.focusFirst=null,n.focusFirst&&n.focusFirst.length&&n.setFocus(n.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(){n.setFocus(n.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,n=window.setInterval(function(){e.focus(),++t>=10&&window.clearInterval(n)},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",n=["sui-modal-content","sui-content-fade-in"];this.props.modal.modalProps.open||(n=["sui-modal-content","sui-content-fade-out"]);var r=g[this.props.modal.modalType];if("publish"===this.props.modal.modalType&&(t="sui-modal-sm fui-dialog-publish"),"shortcode"===this.props.modal.modalType&&(t="sui-modal-sm fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deleteNotification"!==this.props.modal.modalType||(t="sui-modal-sm"),!_.isUndefined(this.props.modal.modalProps)&&!_.isUndefined(this.props.modal.modalProps.field)&&!_.isUndefined(this.props.modal.modalProps.field.type)){var a=this.props.modal.modalProps.field.type;t+="radio"===a||"checkbox"===a||"select"===a?" multivalue-modal":" "+this.props.modal.modalProps.field.type+"-modal"}var o=jQuery(".sui-color-accessible").length?"sui-wrap sui-color-accessible":"sui-wrap";return p.default.createElement("div",{className:o},p.default.createElement("div",{id:"forminator-modal",className:"sui-modal sui-active "+t},p.default.createElement("div",s({role:"dialog",id:"modal-"+this.props.modal.modalProps.id,className:""+n.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(r,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,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(310),o=r(a),i=n(311),s=r(i),l=n(312),u=r(l),c=n(313),p=r(c),f=n(314),d=r(f),h=n(315),m=r(h),y=n(318),b=r(y),v=n(319),g=r(v),_=n(320),E=r(_),w=n(325),O=r(w),j={previewModal:o.default,publishModal:s.default,deleteModal:u.default,shortcodeModal:d.default,questionModal:m.default,submitModal:b.default,personalityModal:g.default,deletePersonalityModal:p.default,notificationModal:E.default,deleteNotificationModal:O.default};t.default=j},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=n(59),p=n(21),f=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.preloader=l.default.createRef(),n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.previewLoaded=n.previewLoaded.bind(n),n}return o(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$preloader=jQuery(this.preloader),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}},{key:"previewLoaded",value:function(){this.$preloader.remove()}},{key:"load",value:function(){var e={questions:this.props.questions,settings:this.props.settings,type:this.props.type},t={id:this.props.id,action:"forminator_load_quiz",type:"forminator_quizzes",nonce:forminatorData.previewNonce,render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};if(this.props.settings.hasLeads){var n={wrappers:this.props.settings.wrappers,settings:this.props.settings.lead_settings};t.has_lead=this.props.settings.hasLeads,t.leads_id=this.props.settings.leadsId,t.lead_preview_data=n}this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.BoxHeader,{title:(0,u.translate)("Preview")},l.default.createElement(p.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal})),l.default.createElement(c.BoxBody,null,l.default.createElement("div",{ref:function(t){return e.preloader=t},className:"sui-notice sui-notice-loading sui-active",style:{display:"block"}},l.default.createElement("div",{className:"sui-notice-content"},l.default.createElement("div",{className:"sui-notice-message"},l.default.createElement("span",{className:"sui-notice-icon sui-icon-loader sui-loading","aria-hidden":"true"}),l.default.createElement("p",null,(0,u.translate)("Loading preview…"))))),l.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=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.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")},l.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),l.default.createElement("h3",{className:"sui-box-title sui-lg",id:"dialogTitle"},(0,u.translate)("Publishing quiz…")),l.default.createElement("p",{className:"sui-description"},(0,u.translate)("Great work! Please hold tight a few moments while we publish your quiz to the world."))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=n(59),p=n(21),f=n(50),d=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.trashField=n.trashField.bind(n),n}return o(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.BoxHeader,{title:(0,u.translate)("Delete Question")},l.default.createElement(p.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal})),l.default.createElement(c.BoxBody,{alignment:"center"},l.default.createElement("p",{className:"sui-description"},(0,u.translate)("Deleting this question will remove its value from the existing submissions as well."))),l.default.createElement(c.BoxFooter,{alignment:"center"},l.default.createElement(f.Button,{design:"ghost",label:(0,u.translate)("Cancel"),className:"forminator-discard-field-settings",onClick:this.closeModal}),l.default.createElement(f.Button,{color:"red",design:"ghost",icon:"trash",label:(0,u.translate)("Delete"),onClick:this.trashField})))}}]),t}(s.Component);t.default=d},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=n(59),p=n(50),f=n(21),d=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.trashField=n.trashField.bind(n),n}return o(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"editQuestion",value:function(e){this.closeModal(),this.props.actions.modalActions.showModal({open:!0,new:!1,type:"personality",results:this.props.results||{},question:e.question,closeModal:this.closeModal},"question")}},{key:"render",value:function(){var e=this,t=this.props.modal.modalProps.result.title,n=(0,u.getPersonalityQuestions)(this.props.modal.modalProps.result,this.props.questions);if(_.isEmpty(n))return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.BoxHeader,{title:(0,u.translate)("Delete personality %s",{args:[t]})},l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(f.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal}))),l.default.createElement(c.BoxBody,{alignment:"center"},l.default.createElement("p",{className:"sui-description"},(0,u.translate)("Are you sure you wish to delete this personality?"))),l.default.createElement(c.BoxFooter,null,l.default.createElement(p.Button,{design:"ghost",label:(0,u.translate)("Cancel"),className:"forminator-discard-field-settings",onClick:this.closeModal}),l.default.createElement(p.Button,{color:"red",design:"ghost",icon:"trash",label:(0,u.translate)("Delete"),onClick:this.trashField})));if(!_.isEmpty(n)){var r=_.map(n,function(t,n){return l.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},l.default.createElement("span",{className:"fui-list-label"},t.title),l.default.createElement("button",{className:"sui-button-icon",onClick:e.editQuestion.bind(e,t)},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Edit Question"))))});return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.BoxHeader,{title:(0,u.translate)("%s can't be deleted",{args:[t]})},l.default.createElement(f.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal})),l.default.createElement(c.BoxBody,null,l.default.createElement("p",{className:"sui-description",style:{textAlign:"center"}},(0,u.translate)("Please remove the reference of this Personality from the questions in your quiz and then delete this.")),l.default.createElement("div",{className:"sui-form-field"},l.default.createElement("label",{className:"sui-label"},(0,u.translate)("Questions")),l.default.createElement("ul",{className:"fui-list-fields"},r))),l.default.createElement(c.BoxFooter,{alignment:"right"},l.default.createElement(p.Button,{label:(0,u.translate)("Got It"),className:"forminator-discard-field-settings",onClick:this.closeModal})))}}}]),t}(s.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(29),f=r(p),d=n(21),h=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.copyToClipboard=n.copyToClipboard.bind(n),n}return i(t,e),s(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 quiz 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_quiz 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}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)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 u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(0),f=r(p),d=n(1),h=n(2),m=r(h),y=n(64),b=r(y),v=n(316),g=r(v),E=n(30),w=r(E),O=n(59),j=n(50),x=n(21),P=function(e){function t(e){i(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.updateProperty=n.updateProperty.bind(n),n.applyChanges=n.applyChanges.bind(n),n.data=Object.assign({},n.props.modal.modalProps),n.state=n.data.question,(_.isUndefined(n.state.type)||_.isEmpty(n.state.type))&&(n.state.type=n.props.type),n}return l(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(a(this.data.questions),[e]);this.props.actions.builderActions.updateQuestions(t)}this.data.new||this.props.actions.builderActions.updateQuestion(this.state),this.closeModal()}},{key:"isValid",value:function(){var e={isValid:!0,error:""};if(_.isUndefined(this.state.title)||_.isEmpty(this.state.title))return e.isValid=!1,e.error="",e;if(_.isUndefined(this.state.answers)||_.isEmpty(this.state.answers))return e.isValid=!1,e.error="",e;var t=_.filter(this.state.answers,function(e){return!(!_.isEmpty(e.title)||!_.isEmpty(e.image))});if(!_.isEmpty(t))return e.isValid=!1,e.error=(0,d.translate)("Options cannot be empty. You either need to enter answer text or upload an image for the empty options."),e;if("knowledge"===this.state.type){if(!_.some(this.state.answers,function(e){return e.toggle}))return e.isValid=!1,e.error=(0,d.translate)("You need to select at least one correct answer before you can add this question."),e}if("nowrong"===this.state.type){if(_.some(this.state.answers,function(e){return _.isEmpty(e.result)}))return e.isValid=!1,e.error=(0,d.translate)("You need to select an associated personality for every option."),e}return e}},{key:"render",value:function(){var e=this,t=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Edit Question"),n=(0,d.translate)("Cancel"),r=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Apply"),a=this.state.type,o=this.isValid(),i=_.isUndefined(this.props.settings.results_behav)?"after":this.props.settings.results_behav,s=_.filter(this.state.answers,function(e){return e.toggle}),l=function(t){e.closeModal(),setTimeout(function(){e.props.history.push("/"+t)},500)};return f.default.createElement(f.default.Fragment,null,f.default.createElement(O.BoxHeader,{title:t},f.default.createElement(x.ButtonIcon,{icon:"close",iconSize:"md",label:(0,d.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal})),f.default.createElement(O.BoxBody,null,f.default.createElement(m.default,u({},this.props,{settings:this.state,label:(0,d.translate)("Question"),placeholder:(0,d.translate)("E.g. Why did the chicken cross the road?"),updateProperty:this.updateProperty,property:"title",darkLabel:!0,isRequired:!0})),f.default.createElement(b.default,u({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty,darkLabel:!0})),f.default.createElement(w.default,u({},this.props,{settings:this.state,property:"question_description",hideEditorOptions:!0,boxClass:"sui-tab-boxed",updateProperty:this.updateProperty,label:(0,d.translate)("Description (Optional)")})),f.default.createElement("div",{className:"sui-form-field"},f.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,d.translate)("Answers")," ",f.default.createElement("span",{className:"sui-error"},"*")),"knowledge"===a&&"after"===i&&f.default.createElement(f.default.Fragment,null,f.default.createElement("span",{className:"sui-description"},(0,d.translate)("Users can select one answer with the {{b}}Real Time{{/b}} display method. To allow multiple answers, you can switch to the {{b}}On Submission{{/b}} display method in {{a}}Behaviour → Display Method{{/a}}.",{components:{b:f.default.createElement("b",null),a:f.default.createElement("a",{onClick:function(){return l("behaviour")},style:{cursor:"pointer"}})}})),s.length>1&&f.default.createElement("div",{className:"sui-notice sui-notice-blue sui-active",style:{display:"block",marginTop:"20px",marginBottom:"-10px"}},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,d.translate)("Note that user's selection will be considered as correct when any of the correct answers is selected.")))))),"knowledge"===a&&"end"===i&&f.default.createElement("span",{className:"sui-description"},(0,d.translate)("Note: For questions with multiple correct answers, user's selection will be considered as correct only when all correct answers are selected.")),"nowrong"===a&&f.default.createElement("span",{className:"sui-description"},(0,d.translate)("Add answers to your question and choose an associated personality. Multiple answers can be associated with a single personality as well.")),!o.isValid&&!_.isEmpty(o.error)&&f.default.createElement("div",{className:"sui-notice sui-notice-error sui-active",style:{display:"block"}},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,o.error)))))),f.default.createElement(g.default,u({},this.props,{state:this.state,type:this.data.type,results:this.data.results,updateProperty:this.updateProperty})),f.default.createElement(O.BoxFooter,null,f.default.createElement(j.Button,{icon:"undo",design:"ghost",label:n,className:"forminator-discard-field-settings",onClick:this.closeModal}),o.isValid&&f.default.createElement(j.Button,{icon:"check",label:r,className:"forminator-save-field-settings",onClick:this.applyChanges}),!o.isValid&&f.default.createElement("div",{className:"sui-tooltip","data-tooltip":(0,d.translate)("Please, validate your fields!")},f.default.createElement(j.Button,{icon:"check",label:r,disabled:!0}))))}}]),t}(p.Component);t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(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 l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),d=n(317),h=r(d),m=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addAnswer=n.addAnswer.bind(n),n.removeAnswer=n.removeAnswer.bind(n),n.updateTitle=n.updateTitle.bind(n),n.updateImage=n.updateImage.bind(n),n.updateCheckbox=n.updateCheckbox.bind(n),n.updateResult=n.updateResult.bind(n),n.state={answers:[].concat(a(n.props.state.answers))},n}return s(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(n,r){t&&(e.$el.find(".sui-builder-fields").sortable("refreshPositions"),t=!1)},stop:function(t,n){var r=n.item.index();e.$el.find(".sui-builder-fields").sortable("cancel");var a=n.item.index();e.moveOption(a,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"moveOption",value:function(e,t){var n=this.state.answers;n.splice(t,0,n.splice(e,1)[0]),this.updateState(n)}},{key:"updateState",value:function(e){this.setState({answers:e}),this.props.updateProperty("answers",e)}},{key:"removeAnswer",value:function(e){var t=this.state.answers;t.splice(e,1),this.updateState(t)}},{key:"addAnswer",value:function(){var e=this.state.answers;e.push({title:"",image:"",default:!1}),this.updateState(e)}},{key:"updateTitle",value:function(e,t){var n=this.state.answers;n[e].title=t,this.updateState(n)}},{key:"updateImage",value:function(e,t,n){var r=this.state.answers;"image"===n&&(r[e].image=t),"image"!==n&&(r[e].image_filename=t),this.updateState(r)}},{key:"updateCheckbox",value:function(e,t){var n=this.state.answers;n[e].toggle=t,this.updateState(n)}},{key:"updateResult",value:function(e,t){var n=this.state.answers;n[e].result=t,this.updateState(n)}},{key:"render",value:function(){var e=this,t=this.state.answers;return p.default.createElement("div",{className:"sui-box-body",style:{paddingBottom:"0"},ref:function(t){return e.el=t}},p.default.createElement("div",{className:"sui-box-builder sui-flushed"},p.default.createElement("div",{className:"sui-box-builder-body"},p.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,n){return p.default.createElement(h.default,l({key:n,counter:n,answer:t,removeAnswer:e.removeAnswer,updateTitle:e.updateTitle,updateImage:e.updateImage,updateCheckbox:e.updateCheckbox,updateResult:e.updateResult},e.props))})),p.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addAnswer},p.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Answer")))))}}]),t}(c.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(2),d=r(f),h=n(64),m=r(h),y=n(41),b=r(y),v=n(19),g=(r(v),function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateTitle=n.updateTitle.bind(n),n.updateImage=n.updateImage.bind(n),n.updateCheckbox=n.updateCheckbox.bind(n),n.updateResult=n.updateResult.bind(n),n.updateValue=n.updateValue.bind(n),n}return i(t,e),l(t,[{key:"removeAnswer",value:function(){this.props.removeAnswer(this.props.counter)}},{key:"updateTitle",value:function(e,t){this.props.updateTitle(this.props.counter,t)}},{key:"updateImage",value:function(e,t){this.props.updateImage(this.props.counter,t,e)}},{key:"updateCheckbox",value:function(e,t){this.props.updateCheckbox(this.props.counter,t)}},{key:"updateResult",value:function(e,t){this.props.updateResult(this.props.counter,t)}},{key:"updateValue",value:function(e){var t=e.target.value;this.updateResult("result",t)}},{key:"isValid",value:function(){return(!_.isEmpty(this.props.answer.title)||!_.isEmpty(this.props.answer.image))&&("personality"!==this.props.type||!_.isEmpty(this.props.answer.result))}},{key:"render",value:function(){var e=this.isValid()?"":"fui-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(d.default,s({},this.props,{settings:this.props.answer,property:"title",updateProperty:this.updateTitle}))),c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement(m.default,s({},this.props,{settings:this.props.answer,type:"image",property:"image",updateProperty:this.updateImage})),"knowledge"===this.props.type&&c.default.createElement(b.default,s({},this.props,{settings:this.props.answer,property:"toggle",fieldId:"answer-checkbox-"+this.props.counter,label:(0,p.translate)("Correct Answer"),updateProperty:this.updateCheckbox})),"personality"===this.props.type&&c.default.createElement("select",{value:this.props.answer.result,className:"fui-select",onChange:this.updateValue},c.default.createElement("option",{value:""},(0,p.translate)("Select Personality")),_.map(this.props.results,function(e){return c.default.createElement("option",{value:e.slug,key:e.slug},e.title)}))))),c.default.createElement("div",{className:"sui-field-actions sui-align_top"},c.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:this.removeAnswer.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 answer")))))}}]),t}(u.Component));t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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 l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),d=n(7),h=r(d),m=n(4),y=r(m),b=n(2),v=r(b),g=n(59),_=n(50),E=n(21),w=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.updateProperty=n.updateProperty.bind(n),n.applyChanges=n.applyChanges.bind(n),n.state=n.props.settings.submitData||{},n}return s(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(g.BoxHeader,{title:(0,f.translate)("Submit Button")},p.default.createElement(E.ButtonIcon,{icon:"close",iconSize:"md",label:(0,f.translate)("close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal})),p.default.createElement(g.BoxBody,null,p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"6"},p.default.createElement(v.default,l({},this.props,{settings:this.state,label:(0,f.translate)("Button Text"),placeholder:(0,f.translate)("Enter text"),property:"button-text",updateProperty:this.updateProperty}))),p.default.createElement(y.default,{cols:"6"},p.default.createElement(v.default,l({},this.props,{settings:this.state,label:(0,f.translate)("Button Processing Text"),placeholder:(0,f.translate)("Sending…"),property:"button-processing-text",description:(0,f.translate)("This text will appear as button text while the quiz is being submitted."),updateProperty:this.updateProperty})))),p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"12"},p.default.createElement(v.default,l({},this.props,{settings:this.state,label:(0,f.translate)("Custom CSS Classes"),placeholder:(0,f.translate)("E.g. form-submit-btn"),property:"custom-class",description:(0,f.translate)('These will be output as you see them here. To add multiple classes, separate them with a space. For example, "form-submit-btn button" will add two classes "form-submit-btn" and "button".'),updateProperty:this.updateProperty}))))),p.default.createElement(g.BoxFooter,null,p.default.createElement(_.Button,{icon:"undo",design:"ghost",label:(0,f.translate)("Cancel"),className:"forminator-discard-field-settings",onClick:this.closeModal}),p.default.createElement(_.Button,{icon:"check",label:(0,f.translate)("Apply"),className:"forminator-save-field-settings",onClick:this.applyChanges})))}}]),t}(c.Component);t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)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 u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(0),f=r(p),d=n(1),h=n(7),m=r(h),y=n(4),b=r(y),v=n(2),g=r(v),E=n(64),w=r(E),O=n(30),j=r(O),x=n(59),P=n(50),k=n(21),N=function(e){function t(e){i(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.updateProperty=n.updateProperty.bind(n),n.applyChanges=n.applyChanges.bind(n),n.data=Object.assign({},n.props.modal.modalProps),n.state=n.data.result,n}return l(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(a(this.data.results),[e]);this.props.actions.builderActions.updateResults(t)}this.data.new||this.props.actions.builderActions.updateResult(this.state),this.closeModal()}},{key:"isValid",value:function(){return!_.isUndefined(this.state.title)&&!_.isEmpty(this.state.title)}},{key:"render",value:function(){var e=!0===this.data.new?(0,d.translate)("Add Personality"):(0,d.translate)("Edit Personality"),t=(0,d.translate)("Cancel"),n=!0===this.data.new?(0,d.translate)("Add Personality"):(0,d.translate)("Apply");return f.default.createElement(f.default.Fragment,null,f.default.createElement(x.BoxHeader,{title:e},f.default.createElement(k.ButtonIcon,{icon:"close",iconSize:"md",label:(0,d.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal})),f.default.createElement(x.BoxBody,null,f.default.createElement(m.default,null,f.default.createElement(b.default,{cols:"12"},f.default.createElement(g.default,u({},this.props,{settings:this.state,label:(0,d.translate)("Title"),placeholder:(0,d.translate)("E.g. Iron Man"),updateProperty:this.updateProperty,property:"title",isRequired:!0})))),f.default.createElement(m.default,null,f.default.createElement(b.default,{cols:"12"},f.default.createElement(w.default,u({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty})))),f.default.createElement(m.default,null,f.default.createElement(b.default,{cols:"12"},f.default.createElement(j.default,u({},this.props,{settings:this.state,label:(0,d.translate)("Description"),property:"description",updateProperty:this.updateProperty,disableMiscData:!0,enableFormData:!1,mainOptions:{quiz_name:(0,d.translate)("Quiz Name"),quiz_answer:(0,d.translate)("Quiz Answer"),quiz_result:(0,d.translate)("Quiz Result")}}))))),f.default.createElement(x.BoxFooter,null,f.default.createElement(P.Button,{icon:"undo",design:"ghost",label:t,className:"forminator-discard-field-settings",onClick:this.closeModal}),this.isValid()&&f.default.createElement(P.Button,{icon:"check",label:n,className:"forminator-save-field-settings",onClick:this.applyChanges}),!this.isValid()&&f.default.createElement("div",{className:"sui-tooltip","data-tooltip":(0,d.translate)("Please validate your fields!")},f.default.createElement(P.Button,{icon:"check",label:n,disabled:!0}))))}}]),t}(p.Component);t.default=N},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)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 u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(0),f=r(p),d=n(26),h=n(1),m=n(17),y=n(7),b=r(y),v=n(4),g=r(v),E=n(2),w=r(E),O=n(30),j=r(O),x=n(52),P=r(x),k=n(6),N=r(k),C=n(3),S=r(C),T=n(321),A=r(T),M=n(323),F=r(M),R=n(20),D=r(R),I=n(59),L=n(50),q=n(21),U=function(e){function t(e){i(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.updateProperty=n.updateProperty.bind(n),n.applyChanges=n.applyChanges.bind(n),n.data=Object.assign({},n.props.modal.modalProps),n.state=n.data.notification,n}return l(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 _.map(forminatorData.variables,function(t,n){e.push({label:t,value:"{"+n+"}"})}),e}},{key:"getEmailOptions",value:function(){var e=[];return _.map(forminatorData.variables,function(t,n){e.push({label:t,value:"{"+n+"}"})}),e}},{key:"getRoutingEmailOptions",value:function(){var e=[];return(0,h.getFields)(this.props.settings.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:"getRoutingSubjectOptions",value:function(){var e=[];return(0,h.getFields)(this.props.settings.wrappers,["address","captcha","consent","gdprcheckbox","html","page-break","postdata","section","upload","textarea","paypal","stripe","currency","calculation","password","signature"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getRecipientTagsOptions",value:function(){return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,h.translate)("Searching")},noResults:function(){return(0,h.translate)("No Result Found")}},placeholder:(0,h.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(e){return{results:e.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,h.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(a(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.props.settings.wrappers)?[]:this.props.settings.wrappers,n=!_.isEmpty(t)&&(0,h.hasFieldType)("upload",t),r=_.isUndefined(this.state["email-recipients"])?"default":this.state["email-recipients"],a=!0,o="";"default"===r&&_.isEmpty(this.state.recipients)&&(a=!1,o=(0,h.translate)("Please enter recipients")),"routing"===r&&(_.isUndefined(this.state.routing)||_.isEmpty(this.state.routing)?(o=(0,h.translate)("Please add email routing"),a=!1):_.each(this.state.routing,function(e){_.isEmpty(e.email)&&(o=(0,h.translate)("Please enter recipients"),a=!1),_.isEmpty(e.rule)&&(o=(0,h.translate)("Please select rule"),a=!1)})),(_.isUndefined(this.state["email-editor"])||_.isEmpty(this.state["email-editor"]))&&(a=!1,o=(0,h.translate)("Please fix the error(s) in the EMAIL tab.")),(_.isUndefined(this.state["email-subject"])||_.isEmpty(this.state["email-subject"]))&&(a=!1,o=(0,h.translate)("Please fix the error(s) in the EMAIL tab."));var i=!(_.isUndefined(this.props.settings.hasLeads)||!this.props.settings.hasLeads)&&"true";return f.default.createElement(f.default.Fragment,null,f.default.createElement(I.BoxHeader,{title:(0,h.translate)("Add Email Notification")},f.default.createElement(q.ButtonIcon,{icon:"close",iconSize:"md",label:(0,h.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:"/notifications/email/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,h.translate)("Email")),f.default.createElement(d.NavLink,{to:"/notifications/recipients/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,h.translate)("Recipients")),f.default.createElement(d.NavLink,{to:"/notifications/advanced/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,h.translate)("Advanced")),f.default.createElement(d.NavLink,{to:"/notifications/conditions/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,h.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(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(w.default,u({},e.props,{settings:e.state,label:(0,h.translate)("Label"),description:(0,h.translate)("The label is to help you identify this email and won't appear anywhere in the email."),placeholder:(0,h.translate)("E.g. Sales Team Notification"),property:"label",updateProperty:e.updateProperty})))),f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"email-subject",placeholder:(0,h.translate)("E.g. New Form Submission"),label:(0,h.translate)("Subject"),required:"true",isRequired:"true",requiredError:(0,h.translate)("Email subject can't be empty"),updateProperty:e.updateProperty}),f.default.createElement("optgroup",{label:(0,h.translate)("Quiz data")},f.default.createElement("option",{value:"{quiz_name}"},(0,h.translate)("Quiz Name")),f.default.createElement("option",{value:"{quiz_answer}"},(0,h.translate)("Quiz Answer")),f.default.createElement("option",{value:"{quiz_result}"},(0,h.translate)("Quiz Result"))),e.getRoutingSubjectOptions().length>0&&f.default.createElement("optgroup",{label:(0,h.translate)("Lead data")},e.getRoutingSubjectOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})),e.getNameOptions().length>0&&f.default.createElement("optgroup",{label:(0,h.translate)("Misc data")},e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))}))))),f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{settings:e.state,property:"email-editor",editorOptions:forminatorData.variables,enableFormData:i,enableAllFormFields:i,enableAllNonFormFields:i,boxClass:"sui-tab-boxed",mainOptionsLabel:(0,h.translate)("Quiz Data"),mainOptions:{quiz_name:(0,h.translate)("Quiz Name"),quiz_answer:(0,h.translate)("Quiz Answer"),quiz_result:(0,h.translate)("Quiz Result")},wrappers:t,label:(0,h.translate)("Body"),isRequired:"true",requiredError:(0,h.translate)("Email body can't be empty"),updateProperty:e.updateProperty})))),n&&f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(D.default,u({},e.props,{settings:e.state,property:"email-attachment",defaultValue:"false",label:(0,h.translate)("Attachments"),description:(0,h.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,h.translate)("None")),f.default.createElement("div",{value:"true"},(0,h.translate)("Uploaded files"))))))}}),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,h.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(S.default,u({},e.props,{value:"default",label:(0,h.translate)("Default"),boxClass:"sui-tab-boxed"}),f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"recipients",placeholder:(0,h.translate)("E.g. sales@website.com"),label:(0,h.translate)("Recipients"),required:"true",updateProperty:e.updateProperty,note:(0,h.translate)("Separate multiple emails with a comma")}),e.getRoutingEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))}))),f.default.createElement(S.default,u({},e.props,{value:"routing",label:(0,h.translate)("Email Routing")}),f.default.createElement(F.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(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"from-name",placeholder:(0,h.translate)("Enter from name here"),label:(0,h.translate)("From Name"),updateProperty:e.updateProperty}),f.default.createElement("optgroup",{label:(0,h.translate)("Quiz data")},f.default.createElement("option",{value:"{quiz_name}"},(0,h.translate)("Quiz Name"))),f.default.createElement("optgroup",{label:(0,h.translate)("Lead data")},e.getRoutingSubjectOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})),f.default.createElement("optgroup",{label:(0,h.translate)("Misc data")},e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))}))))),f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"form-email",placeholder:(0,h.translate)("Enter from email here"),label:(0,h.translate)("From Email"),updateProperty:e.updateProperty}),e.getRoutingEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})))),f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"replyto-email",placeholder:(0,h.translate)("Enter reply-to email here"),label:(0,h.translate)("Reply-to Email"),updateProperty:e.updateProperty}),e.getRoutingEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})))),f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"cc-email",placeholder:(0,h.translate)("Enter CC email here"),label:(0,h.translate)("CC Emails"),updateProperty:e.updateProperty}),e.getRoutingEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})))),f.default.createElement(b.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"bcc-email",placeholder:(0,h.translate)("Enter BCC email here"),label:(0,h.translate)("BCC Emails"),updateProperty:e.updateProperty}),e.getRoutingEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,m.escapeHTML)(e.label))})))))}}),f.default.createElement(d.Route,{path:"/notifications/conditions",render:function(){return f.default.createElement(A.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),f.default.createElement(I.BoxFooter,null,f.default.createElement(L.Button,{icon:"undo",design:"ghost",label:(0,h.translate)("Cancel"),className:"forminator-discard-field-settings",onClick:this.closeModal}),a&&f.default.createElement(L.Button,{icon:"check",label:(0,h.translate)("Add"),className:"forminator-save-field-settings",onClick:this.applyChanges}),!a&&f.default.createElement("div",{className:"sui-tooltip","data-tooltip":o},f.default.createElement(L.Button,{icon:"check",label:(0,h.translate)("Add"),disabled:!0}))))}}]),t}(p.Component);t.default=U},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(322),d=r(f),h=n(20),m=r(h),y=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.addRule=n.addRule.bind(n),n.removeRule=n.removeRule.bind(n),n.updateField=n.updateField.bind(n),n.updateRule=n.updateRule.bind(n),n.updateValue=n.updateValue.bind(n),n.updateInputValue=n.updateInputValue.bind(n),n.fields=_.isUndefined(n.props.settings.wrappers)?[]:n.props.settings.wrappers,n.fields=(0,p.getFields)(n.fields);var r=[];return _.each(n.props.questions,function(e){var t=Object.assign({},e);r.push(t)}),n.questions=r,n.fields=_.filter(n.fields,function(e){return"gdprcheckbox"!==e.field_type&&"consent"!==e.field_type&&"html"!==e.field_type}),n}return i(t,e),l(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 n=Object.assign({},t);e.push(n)}),e}},{key:"updateField",value:function(e,t){var n=this.getPropState();n[e].element_id=t,n[e].rule="is",n[e].value="",this.updateState(n)}},{key:"updateRule",value:function(e,t){var n=this.getPropState();n[e].rule=t,this.updateState(n)}},{key:"updateValue",value:function(e,t){var n=this.getPropState();n[e].value=t,this.updateState(n)}},{key:"updateInputValue",value:function(e,t){var n=this.getPropState();n[e].value=t,this.updateState(n)}},{key:"removeRule",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addRule",value:function(){var e="",t=this.getPropState(),n=_.isUndefined(this.fields[0])?"":this.fields[0].element_id,r=_.isUndefined(this.questions[0])?"":this.questions[0].slug;_.isEmpty(this.fields)||(e=n),_.isEmpty(this.questions)||(e=r),t.push({element_id:e,rule:"is",value:""}),this.updateState(t)}},{key:"removeCondition",value:function(e){var t=this.getPropState(),n=_.filter(t,function(t){return!_.contains(e,t.element_id)});this.updateState(n)}},{key:"render",value:function(){var e=this,t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(m.default,s({},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(m.default,s({},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:")))),n=c.default.createElement("div",{className:"fui-visibility-group"},(!_.isEmpty(this.fields)||!_.isEmpty(this.questions))&&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"},(!_.isEmpty(this.fields)||!_.isEmpty(this.questions))&&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,n),_.isUndefined(this.props.state.conditions)||!(this.props.state.conditions.length>0)||_.isEmpty(this.fields)&&_.isEmpty(this.questions)?c.default.createElement(c.default.Fragment,null,n):c.default.createElement("div",{className:"fui-visibility-group"},(!_.isEmpty(this.fields)||!_.isEmpty(this.questions))&&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,n){return c.default.createElement(d.default,s({},e.props,{rule:t,key:n,counter:n,removeRule:e.removeRule,updateField:e.updateField,updateRule:e.updateRule,updateValue:e.updateValue,updateInputValue:e.updateInputValue,fields:e.fields,questions:e.questions}))}))),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")))}}]),t}(u.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(17),d=n(7),h=r(d),m=n(4),y=r(m),b=n(2),v=r(b),g=n(19),E=r(g),w=n(16),O=r(w),j=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggleState=n.toggleState.bind(n),n.updateField=n.updateField.bind(n),n.updateRule=n.updateRule.bind(n),n.updateValue=n.updateValue.bind(n),n.updateInputValue=n.updateInputValue.bind(n),n.state={open:!1},n.fields=n.props.fields,n.questions=n.props.questions,n.personalities=n.props.results,n}return i(t,e),l(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,n=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r=_.where(this.questions,{slug:this.props.rule.element_id})[0]||{},a=_.where(this.personalities,{slug:this.props.rule.element_id})[0]||{},o=_.isEmpty(n)?_.isEmpty(a)?r.title:a.title:n.label,i=_.isUndefined(this.props.rule.element_id)||"final_result"!==this.props.rule.element_id?o:(0,p.translate)("Final Score"),l=_.isEmpty(this.props.rule.value)&&_.isEmpty(r)&&_.isEmpty(a)?(0,p.translate)("null"):_.isEmpty(r)&&_.isEmpty(a)?this.props.rule.value:"",u=this.props.type,d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=["day_is","day_is_not","month_is","month_is_not"],b=["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,i)," ",(0,p.getRuleLabel)(this.props.rule.rule,n.field_type)," ",c.default.createElement("strong",null,l)),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,s({},this.props,{elementId:t+"-field",property:"element_id",updateProperty:this.updateField,settings:this.props.rule,label:(0,p.translate)("Field")}),!_.isEmpty(this.fields)&&c.default.createElement("optgroup",{label:(0,p.translate)("Form Data")},_.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)})),"knowledge"===u&&!_.isEmpty(this.questions)&&c.default.createElement("optgroup",{label:(0,p.translate)("Quiz Data")},_.map(this.questions,function(e,t){return c.default.createElement("option",{value:e.slug,key:t},e.title," | ",e.slug)}),c.default.createElement("option",{value:"final_result"},(0,p.translate)("Final Score"))),"nowrong"===u&&!_.isEmpty(this.personalities)&&c.default.createElement("optgroup",{label:(0,p.translate)("Personality Result")},_.map(this.personalities,function(e,t){return c.default.createElement("option",{value:e.slug,key:t},e.title," | ",e.slug)}))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(O.default,s({},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")),!_.isEmpty(r)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_correct"},(0,p.translate)("Is correct")),c.default.createElement("option",{value:"is_incorrect"},(0,p.translate)("Is incorrect"))),!_.isEmpty(a)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_final_result"},(0,p.translate)("Is final result")),c.default.createElement("option",{value:"is_not_final_result"},(0,p.translate)("Is not final result"))),"final_result"===this.props.rule.element_id&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"contains"},(0,p.translate)("Contains")),c.default.createElement("option",{value:"is_great"},(0,p.translate)("greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("less than"))),"signature"===n.field_type&&_.isEmpty(r)&&_.isEmpty(a)&&"final_result"!==this.props.rule.element_id&&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"!==n.field_type&&_.isEmpty(r)&&_.isEmpty(a)&&"final_result"!==this.props.rule.element_id&&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"))),n.isNumber&&_.isEmpty(r)&&_.isEmpty(a)&&"final_result"!==this.props.rule.element_id&&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"))),!n.isNumber&&!n.hasOptions&&"signature"!==n.field_type&&_.isEmpty(r)&&_.isEmpty(a)&&"final_result"!==this.props.rule.element_id&&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"===n.field_type&&("date-day"===n.field_slug||"date"===n.field_slug)&&_.isEmpty(r)&&_.isEmpty(a)&&"final_result"!==this.props.rule.element_id&&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"===n.field_type&&"signature"!==n.field_type&&("date-month"===n.field_slug||"date"===n.field_slug)&&_.isEmpty(r)&&_.isEmpty(a)&&"final_result"!==this.props.rule.element_id&&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(y.default,{cols:"6"},n.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(n.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))}))),!n.hasOptions&&"signature"!==n.field_type&&(!m.includes(this.props.rule.rule)||"date"!==n.field_type)&&_.isEmpty(r)&&_.isEmpty(a)&&c.default.createElement(v.default,s({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Value")})),!n.hasOptions&&"date"===n.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(d,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!n.hasOptions&&"date"===n.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(b,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,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(324),d=r(f),h=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.addRule=n.addRule.bind(n),n.removeRule=n.removeRule.bind(n),n.updateValue=n.updateValue.bind(n),n.updateField=n.updateField.bind(n),n.updateRule=n.updateRule.bind(n),n.updateRuleValue=n.updateRuleValue.bind(n),n.updateInputValue=n.updateInputValue.bind(n),n.fields=_.isUndefined(n.props.settings.wrappers)?[]:n.props.settings.wrappers,n.fields=(0,p.getFields)(n.fields),n.fields=_.filter(n.fields,function(e){return"gdprcheckbox"!==e.field_type&&"consent"!==e.field_type&&"html"!==e.field_type});var r=[];return _.each(n.props.questions,function(e){var t=Object.assign({},e);r.push(t)}),n.questions=r,n}return i(t,e),l(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 n=Object.assign({},t);e.push(n)}),e}},{key:"updateField",value:function(e,t){var n=this.getPropState();n[e].element_id=t,n[e].rule="is",n[e].value="",this.updateState(n)}},{key:"updateValue",value:function(e,t){var n=this.getPropState();n[e].email=t,this.updateState(n)}},{key:"updateRule",value:function(e,t){var n=this.getPropState();n[e].rule=t,this.updateState(n)}},{key:"updateRuleValue",value:function(e,t){var n=this.getPropState();n[e].value=t,this.updateState(n)}},{key:"updateInputValue",value:function(e,t){var n=this.getPropState();n[e].value=t,this.updateState(n)}},{key:"removeRule",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addRule",value:function(){var e="",t=this.getPropState(),n=_.isUndefined(this.fields[0])?"":this.fields[0].element_id,r=_.isUndefined(this.questions[0])?"":this.questions[0].slug;_.isEmpty(this.fields)||(e=n),_.isEmpty(this.questions)||(e=r),t.push({email:"",element_id:e,rule:"is",value:""}),this.updateState(t)}},{key:"removeCondition",value:function(e){var t=this.getPropState(),n=_.filter(t,function(t){return!_.contains(e,t.element_id)});this.updateState(n)}},{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"},(!_.isEmpty(this.fields)||!_.isEmpty(this.questions))&&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)&&_.isEmpty(this.questions)?c.default.createElement(c.default.Fragment,null,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-rules"},_.map(this.props.state.routing,function(t,n){return c.default.createElement(d.default,s({},e.props,{rule:t,key:n,counter:n,removeRule:e.removeRule,updateValue:e.updateValue,updateField:e.updateField,updateRule:e.updateRule,updateRuleValue:e.updateRuleValue,updateInputValue:e.updateInputValue,fields:e.fields,questions:e.questions}))}))),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")))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(17),d=n(7),h=r(d),m=n(4),y=r(m),b=n(2),v=r(b),g=n(19),E=r(g),w=n(16),O=r(w),j=n(52),x=r(j),P=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggleState=n.toggleState.bind(n),n.updateValue=n.updateValue.bind(n),n.updateField=n.updateField.bind(n),n.updateRule=n.updateRule.bind(n),n.updateRuleValue=n.updateRuleValue.bind(n),n.updateInputValue=n.updateInputValue.bind(n),n.state={open:!1},n.fields=n.props.fields,n.questions=n.props.questions,n}return i(t,e),l(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 _.map(forminatorData.variables,function(t,n){e.push({label:t,value:n})}),e}},{key:"render",value:function(){var e=this,t="routing-"+this.props.counter,n=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r=_.where(this.questions,{slug:this.props.rule.element_id})[0]||{},a=_.isEmpty(n)?r.title:n.label,o=_.isUndefined(this.props.rule.element_id)||"final_result"!==this.props.rule.element_id?a:(0,p.translate)("Final Score"),i=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,l=_.isEmpty(this.props.rule.email)?"":this.props.rule.email,u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],d=["day_is","day_is_not","month_is","month_is_not"],m=["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:l,field:o,rule:(0,p.getRuleLabel)(this.props.rule.rule,n.field_type),value:i},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(x.default,s({},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(h.default,{class:"sui-align-bottom sui-spacing-10"},c.default.createElement(y.default,{cols:"6",customClass:"sui-padding-right-10"},c.default.createElement(E.default,s({},this.props,{elementId:t+"-field",property:"element_id",updateProperty:this.updateField,settings:this.props.rule,label:(0,p.translate)("Routing Condition")}),!_.isEmpty(this.fields)&&c.default.createElement("optgroup",{label:(0,p.translate)("Form Data")},_.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)})),!_.isEmpty(this.questions)&&c.default.createElement("optgroup",{label:(0,p.translate)("Quiz Data")},_.map(this.questions,function(e,t){return c.default.createElement("option",{value:e.slug,key:t},e.title," | ",e.slug)}),c.default.createElement("option",{value:"final_result"},(0,p.translate)("Final Score"))))),c.default.createElement(y.default,{cols:"6",customClass:"sui-padding-left-10"},c.default.createElement(O.default,s({},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")),!_.isEmpty(r)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_correct"},(0,p.translate)("Is correct")),c.default.createElement("option",{value:"is_incorrect"},(0,p.translate)("Is incorrect"))),"final_result"===this.props.rule.element_id&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"contains"},(0,p.translate)("Contains")),c.default.createElement("option",{value:"is_great"},(0,p.translate)("greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("less than"))),"signature"===n.field_type&&_.isEmpty(r)&&"final_result"!==this.props.rule.element_id&&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"!==n.field_type&&_.isEmpty(r)&&"final_result"!==this.props.rule.element_id&&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"))),n.isNumber&&_.isEmpty(r)&&"final_result"!==this.props.rule.element_id&&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"))),!n.isNumber&&!n.hasOptions&&"signature"!==n.field_type&&_.isEmpty(r)&&"final_result"!==this.props.rule.element_id&&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"===n.field_type&&("date-day"===n.field_slug||"date"===n.field_slug)&&_.isEmpty(r)&&"final_result"!==this.props.rule.element_id&&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"===n.field_type&&"signature"!==n.field_type&&("date-month"===n.field_slug||"date"===n.field_slug)&&_.isEmpty(r)&&"final_result"!==this.props.rule.element_id&&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(h.default,null,c.default.createElement(y.default,{cols:"12"},n.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(n.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},(0,f.escapeHTML)(e.label))}))),!n.hasOptions&&"signature"!==n.field_type&&(!d.includes(this.props.rule.rule)||"date"!==n.field_type)&&_.isEmpty(r)&&c.default.createElement(v.default,s({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Value")})),!n.hasOptions&&"date"===n.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(u,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!n.hasOptions&&"date"===n.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(m,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,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=n(50),p=n(21),f=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.props.modal.modalProps.closeModal.bind(n),n.trashField=n.trashField.bind(n),n}return o(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},l.default.createElement(p.ButtonIcon,{icon:"close",iconSize:"md",label:(0,u.translate)("Close this dialog window"),className:"sui-button-float--right forminator-builder-fields-close",onClick:this.closeModal}),l.default.createElement("h3",{className:"sui-box-title sui-lg",id:"dialogTitle"},(0,u.translate)("Delete Notification")),l.default.createElement("p",{className:"sui-description"},(0,u.translate)("Are you sure you wish to delete this Notification?"))),l.default.createElement("div",{className:"sui-box-footer sui-flatten sui-content-center"},l.default.createElement(c.Button,{design:"ghost",label:(0,u.translate)("Cancel"),className:"forminator-discard-field-settings",onClick:this.closeModal}),l.default.createElement(c.Button,{color:"red",design:"ghost",icon:"trash",label:(0,u.translate)("Delete"),onClick:this.trashField})))}}]),t}(s.Component);t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return o(t,e),i(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 l.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},l.default.createElement("label",{className:"sui-label"},(0,u.translate)("Navigate")),l.default.createElement("select",{className:"sui-select sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(39),d=r(f),h=n(40),m=r(h),y=n(29),b=r(y),v=n(328),g=r(v),E=n(329),w=r(E),O=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={publishLoading:!1,draftLoading:!1},n.publish=n.publish.bind(n),n.draft=n.draft.bind(n),n}return i(t,e),l(t,[{key:"publish",value:function(){var e=this,t=this.props,n=t.state,r=t.type,a=n.settings,o=a.form_id,i=a.formName,s=_.isUndefined(i)?"":i,l=_.isUndefined(o)?-1:o;this.setState({publishLoading:!0});var u={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:l,status:"publish",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(u,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props,n=t.state,r=t.type,a=n.settings,o=a.form_id,i=a.formName,s=_.isUndefined(i)?"":i,l=_.isUndefined(o)?-1:o;this.setState({draftLoading:!0});var u={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:l,status:"draft",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(u,"draft")},1500)}},{key:"save",value:function(e,t){var n=this,r=this,a=this.props,o=a.status,i=a.type;d.default.post(forminatorData.ajaxUrl,m.default.stringify(e)).then(function(a){var s="draft"===o&&"publish"===t||_.isUndefined(o)&&"publish"===t;if(a.data.success){if(-1===e.form_id&&(n.props.actions.settingsActions.updateSetting("form_id",a.data.data),forminatorData.currentForm.settings.form_id=a.data.data,"knowledge"===i?window.history.pushState({},"Edit Knowledge Quiz",forminatorData.knowledgeEditUrl+"&id="+a.data.data):window.history.pushState({},"Edit No Wrong Quiz",forminatorData.noWrongEditUrl+"&id="+a.data.data)),n.props.actions.settingsActions.saveBuilder("form_status",t),s){var l=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:l},"shortcode")}}else{s&&r.props.actions.modalActions.showModal({open:!1,closeModal:n.closeModal},"publish");new b.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open()}n.setState({publishLoading:!1,draftLoading:!1})}).catch(function(e){new b.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open(),console.log(e),n.setState({publishLoading:!1,draftLoading:!1})})}},{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-status"},c.default.createElement(g.default,s({},this.props,{state:this.state})),c.default.createElement(w.default,s({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(u.Component);t.default=O},function(e,t,n){"use strict";function r(e){var t=e.status,n="publish"===t?"sui-tag-published":"sui-tag-draft",r=!(!e.state.draftLoading&&!e.state.publishLoading);return o.default.createElement("div",{className:"sui-status"},o.default.createElement("div",{className:"sui-status-module"},(0,i.translate)("Status"),o.default.createElement("span",{className:"sui-tag "+n},function(){switch(t){case"publish":return(0,i.translate)("Published");default:return(0,i.translate)("Draft")}}())),r&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,i.translate)("Saving...")),!r&&e.changed.settings&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,i.translate)("Unsaved changes")),!r&&!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,i.translate)("Saved")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(a),i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(330),d=r(f),h=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.publish=n.publish.bind(n),n.draft=n.draft.bind(n),n}return i(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this.props,t=e.status,n=e.title;_.isEmpty(n.trim())||(this.props.publish(),("draft"===t||_.isEmpty(t))&&this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e.trim())||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,n=t.draftLoading,r=t.publishLoading;return c.default.createElement("div",{className:"sui-actions"},c.default.createElement("button",{id:"forminator-module-save",className:"sui-button sui-button-ghost",style:{borderColor:"transparent"},disabled:!!n||r,onClick:this.draft},"publish"===e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-unpublish","aria-hidden":"true"}),(0,p.translate)("Unpublish")),"publish"!==e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,p.translate)("Save Draft"))),c.default.createElement(d.default,s({},this.props,{disabled:!(!n&&!r)})),c.default.createElement("button",{id:"forminator-module-publish",className:"sui-button sui-button-blue",disabled:!(!n&&!r),onClick:this.publish},c.default.createElement("span",{className:"sui-loading-text"},c.default.createElement("span",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),c.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,p.translate)("Update");default:return(0,p.translate)("Publish")}}())),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.openModal=n.openModal.bind(n),n}return o(t,e),i(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,u.translate)("Preview")},"preview"),jQuery("#forminator-module-styles-"+this.props.id).remove()}},{key:"openModal",value:function(e){this.props.actions.modalActions.showModal({open:!0,title:"Preview",closeModal:this.closeModal},"preview")}},{key:"render",value:function(){return l.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",accessKey:"p",onClick:this.openModal,disabled:this.props.disabled},l.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,u.translate)("Preview"))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(2),d=r(f),h=n(64),m=r(h),y=n(30),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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)},n={};return _.assign(n,forminatorData.variables),delete n.submission_id,c.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Intro"))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Title")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Start by adding a title for your quiz to let your visitors know what this quiz is all about."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Title"),type:"text",placeholder:(0,p.translate)("Which superhero are you?"),description:(0,p.translate)("Choose a title to grab the attention of your visitors."),property:"quiz_name"})))),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)("Feature Image")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Upload a nice feature image for your quiz."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(m.default,s({},this.props,{type:"image",label:(0,p.translate)("Upload Feature Image"),property:"quiz_feat_image",imageSize:"large"})))),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)("Description")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Provide your visitors with more information about your quiz."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(b.default,s({},this.props,{property:"quiz_description",editorOptions:n,enableFormData:!1,boxClass:"sui-tab-boxed",label:"",mainOptions:{quiz_name:(0,p.translate)("Quiz Name")}})))))),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("div",{className:"sui-actions-right"},"knowledge"===this.props.type&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("questions")}},(0,p.translate)("Questions"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"personality"===this.props.type&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("personalities")}},(0,p.translate)("Personalities"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(333),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(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)};return u.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Questions"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},"knowledge"===this.props.type&&u.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),"personality"===this.props.type&&u.default.createElement("button",{className:"sui-button",onClick:function(){return t("personalities")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Personalities")),u.default.createElement("div",{className:"sui-actions-right"},this.props.hasLead&&u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("leads")}},(0,c.translate)("Leads"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})),!this.props.hasLead&&u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,c.translate)("Appearance"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(334),d=r(f),h=n(335),m=r(h),y=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addQuestion=n.addQuestion.bind(n),n.closeModal=n.closeModal.bind(n),n}return i(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.moveOption=this.moveOption.bind(this),this.initSortable()}},{key:"componentDidUpdate",value:function(e){_.isEmpty(e.questions)&&!_.isEmpty(this.props.questions)&&this.initSortable()}},{key:"initSortable",value:function(){var e=this;this.$el.find(".sui-builder-fields").sortable({stop:function(t,n){var r=n.item.index();e.$el.find(".sui-builder-fields").sortable("cancel");var a=n.item.index();e.moveOption(a,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"moveOption",value:function(e,t){var n=this.props.questions;n.splice(t,0,n.splice(e,1)[0]),this.props.actions.builderActions.updateQuestions(n),this.forceUpdate()}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"question")}},{key:"addQuestion",value:function(){var e={slug:"question-"+(0,p.randNumber)()+"-"+(0,p.randNumber)(),answers:[]};this.props.actions.modalActions.showModal({open:!0,new:!0,type:this.props.type,results:this.props.results||{},question:e,questions:this.props.questions,closeModal:this.closeModal},"question")}},{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.questions.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.questions,function(t,n){return c.default.createElement(d.default,s({key:t.slug,question:t},e.props,{counter:n}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addQuestion},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Question")),0===this.props.questions.length&&c.default.createElement("div",{className:"sui-builder-empty-message sui-block-content-center"},c.default.createElement("p",{className:"sui-description"},(0,p.translate)("A quiz without questions is not going to be very useful… Add your questions above!")))),c.default.createElement(m.default,this.props))}}]),t}(u.Component);t.default=y},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(1),p=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.trashQuestion=n.trashQuestion.bind(n),n.deleteQuestion=n.deleteQuestion.bind(n),n.closeDeleteField=n.closeDeleteField.bind(n),n.editModal=n.editModal.bind(n),n.closeEditModal=n.closeEditModal.bind(n),n.duplicateQuestion=n.duplicateQuestion.bind(n),n}return i(t,e),s(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getQuestionsWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.question.slug})}},{key:"deleteQuestion",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,question:this.props.question,closeModal:this.closeDeleteField,trashField:this.trashQuestion},"delete")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,question:this.props.question,closeModal:this.closeDeleteField,trashField:this.trashQuestion},"delete")}},{key:"trashQuestion",value:function(){var e=[].concat(r(this.props.questions)),t=this.getQuestionsWithoutCurrent(e);this.closeMenu(),this.props.actions.builderActions.updateQuestions(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"question")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,type:this.props.type,results:this.props.results||{},question:this.props.question,closeModal:this.closeEditModal},"question")}},{key:"duplicateQuestion",value:function(){var e=JSON.parse(JSON.stringify(this.props.question));e.slug="question-"+(0,c.randNumber)()+"-"+(0,c.randNumber)();var t=[].concat(r(this.props.questions),[e]);this.props.actions.builderActions.updateQuestions(t)}},{key:"render",value:function(){var e="";return _.isUndefined(this.props.question.image)||_.isEmpty(this.props.question.image)||(e="url("+this.props.question.image+")"),u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},u.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},u.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),u.default.createElement("div",{className:"sui-builder-field-label"},u.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},u.default.createElement("span",{style:{backgroundImage:e}})),u.default.createElement("span",null,this.props.question.title))),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"))),u.default.createElement("li",null,u.default.createElement("button",{onClick:this.duplicateQuestion},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.deleteQuestion},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(l.Component);t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.editSettings=n.editSettings.bind(n),n}return o(t,e),i(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:"render",value:function(){var e=_.isUndefined(this.props.settings.submitData)||_.isUndefined(this.props.settings.submitData["button-text"])||!this.props.settings.submitData["button-text"]?(0,u.translate)("Submit"):this.props.settings.submitData["button-text"];return l.default.createElement("div",{className:"sui-box-builder-footer sui-fields-boxed"},l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},l.default.createElement("div",{onClick:this.editSettings,className:"sui-field-info"},l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),l.default.createElement("span",null,e))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon",onClick:this.editSettings},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open field settings")))))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(11),d=r(f),h=n(3),m=r(h),y=n(15),b=r(y),v=n(6),g=r(v),_=n(2),E=r(_),w=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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 c.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Leads"))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement(b.default,{label:(0,p.translate)("Capture Leads"),description:(0,p.translate)("Collect participants' details (e.g. name, email, etc.) by integrating a lead generation form in your quiz.")},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("h4",{className:"sui-settings-label"},(0,p.translate)("Lead generation form")),c.default.createElement("p",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Customize the default lead generation form using the edit button below. Note that this lead generation form has limited settings only, and the rest of them are either automatically set by this quiz or they are shared between this quiz and the lead generation form (such as Email Notifications, Integrations, etc.).")),c.default.createElement("div",{className:"fui-recipient"},c.default.createElement("span",{className:"sui-icon-clipboard-notes sui-lg","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("%s - Leads form",{args:[this.props.settings.formName]})),c.default.createElement("div",{className:"sui-tooltip","data-tooltip":(0,p.translate)("Edit Form")},c.default.createElement("a",{href:forminatorData.formEditUrl+"&id="+this.props.leadsForm,target:"_blank",className:"sui-icon-button"},c.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Edit")))))),c.default.createElement(g.default,s({},this.props,{property:"form-placement",default:"beginning",settingsLabel:(0,p.translate)("Form Placement"),description:(0,p.translate)("Where do you want to embed the lead generation form in your quiz?")}),c.default.createElement(d.default,{value:"beginning"},(0,p.translate)("Beginning of quiz")),c.default.createElement(d.default,{value:"end"},(0,p.translate)("Before showing results"))),c.default.createElement(g.default,s({},this.props,{property:"skip-form",default:"",settingsLabel:(0,p.translate)("Skip Form"),description:(0,p.translate)("Enable this option if you want to allow your participants to skip the form.")}),c.default.createElement(m.default,{value:"true",boxClass:"sui-tab-boxed",label:(0,p.translate)("Enable")},c.default.createElement(E.default,s({},this.props,{label:(0,p.translate)("Link text"),placeholder:(0,p.translate)("Skip and continue"),property:"skip-text"}))),c.default.createElement(d.default,{value:""},(0,p.translate)("Disable"))))),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("button",{className:"sui-button",onClick:function(){return t("questions")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("Questions")),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=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(6),m=r(h),y=n(338),b=r(y),v=n(339),g=r(v),_=n(340),E=r(_),w=n(341),O=r(w),j=n(342),x=(r(j),n(343)),P=r(x),k=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,p.translate)("Design Style"),description:(0,p.translate)("Choose a pre-made style for your quiz and further customize it's appearance below.")},c.default.createElement(m.default,s({},this.props,{property:"forminator-quiz-theme",default:"default"}),c.default.createElement(b.default,{value:"default",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Default")),c.default.createElement(g.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Flat")),c.default.createElement(E.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Bold")),c.default.createElement(O.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Material")),c.default.createElement(P.default,{value:"none",boxClass:"sui-tab-content"},(0,p.translate)("None"))))}}]),t}(u.Component);t.default=k},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--default"},l.default.createElement("span",null,(0,u.translate)("Question text?")),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Unselected")))),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Selected")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--flat"},l.default.createElement("span",null,(0,u.translate)("Question text?")),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Unselected")))),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Selected")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--bold"},l.default.createElement("span",null,(0,u.translate)("Question text?")),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Unselected")))),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Selected")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--material"},l.default.createElement("span",null,(0,u.translate)("Question text?")),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Unselected")))),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Selected")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--basic"},l.default.createElement("span",null,(0,u.translate)("Question text?")),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Unselected")))),l.default.createElement("label",null,l.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),l.default.createElement("span",null,l.default.createElement("span",{"aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Selected")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"sui-notice sui-active",style:{display:"block"}},l.default.createElement("div",{className:"sui-notice-content"},l.default.createElement("div",{className:"sui-notice-message"},l.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),l.default.createElement("p",null,(0,u.translate)("You have opted for no stylesheet to be enqueued. The quiz will inherit styles from your theme's CSS.")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"start-button-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"start-button-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"start-button-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"start-button-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"start-button-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"start-button-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"disabled",label:(0,p.translate)("Disabled")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-background-disabled",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"navigation-button-color-disabled",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"question-description",defaultFont:"Roboto",defaultSize:"16",defaultWeight:"400"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"page-indicator",defaultFont:"Roboto",defaultSize:"13",defaultWeight:"400"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"navigation-button",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"start-button",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(113),m=r(h),y=n(6),b=r(y),v=n(351),g=r(v),_=n(11),E=r(_),w=n(19),O=r(w),j=n(3),x=r(j),P=n(352),k=r(P),N=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,p.translate)("Layout"),description:(0,p.translate)("Customize your quiz layout by adjusting the answers layout and overall quiz alignment.")},c.default.createElement(b.default,s({},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(E.default,{value:"auto"},(0,p.translate)("Automatic")),c.default.createElement(k.default,s({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(m.default,s({},this.props,{property:"visual_style",settingsLabel:(0,p.translate)("Answers"),settingsDesc:(0,p.translate)("Choose whether the quiz answers should appear in a list or a grid."),radioClass:"sui-radio-sm",radioContent:"true"}),c.default.createElement(E.default,{value:"list",hasImage:!0,image1x:"quiz-list.png",image2x:"quiz-list@2x.png",label:(0,p.translate)("List")}),c.default.createElement(x.default,{value:"grid",hasImage:!0,image1x:"quiz-grid.png",image2x:"quiz-grid@2x.png",label:(0,p.translate)("Grid")},c.default.createElement("p",{className:"sui-description",style:{marginBottom:"20px"}},(0,p.translate)("Choose the number of columns to fit in one row. Note that grid layout changes to list on smaller screens so this won't affect the smaller screens.")),c.default.createElement(O.default,s({},this.props,{property:"quiz-grid-cols",defaultValue:"3",label:(0,p.translate)("Columns per row"),fieldsize:"100"}),c.default.createElement("option",{value:"2"},"2"),c.default.createElement("option",{value:"3"},"3"),c.default.createElement("option",{value:"4"},"4"),c.default.createElement("option",{value:"5"},"5"),c.default.createElement("option",{value:"6"},"6")))),"none"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{property:"quiz-alignment",default:"grid"===this.props.quizLayout?"center":"left",settingsLabel:(0,p.translate)("Quiz Alignment"),description:(0,p.translate)("Choose the overall alignment of your quiz. This setting affects everything, including title, description, questions and answers, buttons, and social share message.")}),c.default.createElement(E.default,{value:"left"},(0,p.translate)("Left")),c.default.createElement(E.default,{value:"center"},(0,p.translate)("Center")),c.default.createElement(E.default,{value:"right"},(0,p.translate)("Right"))),c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Question Item Ordering")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the order of items (Questions, Images, and Descriptions) from {{strong}}Top{{/strong}} to {{strong}}Bottom{{/strong}} in this quiz.",{components:{strong:c.default.createElement("strong",null)}})),c.default.createElement(g.default,s({},this.props,{property:"order",items:[{key:"question",icon:"question",label:(0,p.translate)("Question")},{key:"description",icon:"blog",label:(0,p.translate)("Description")},{key:"image",icon:"photo-picture",label:(0,p.translate)("Image")}]})))}}]),t}(u.Component);t.default=N},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"updateValue",value:function(e){this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),this.$el.find(".sui-builder-fields").sortable({stop:function(t,n){e.updateOrder()}})}},{key:"updateOrder",value:function(){var e=this.$el.find(".sui-builder-field.sui-can_move").map(function(){return jQuery(this).data("key")}).get();this.updateValue(e)}},{key:"render",value:function(){var e=this,t=this.props.items,n=[],r=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?_.pluck(t,"key"):this.props.settings[this.props.property];return _.map(r,function(e,r){var a=_.findWhere(t,{key:e});_.isUndefined(a)||(n.push(a),t=_.filter(t,function(t){return t.key!==e}))}),t.length&&(n=_.union(n,t)),l.default.createElement("div",{className:"sui-box-body",ref:function(t){return e.el=t}},l.default.createElement("div",{className:"sui-box-builder sui-flushed"},l.default.createElement("div",{className:"sui-box-builder-body"},l.default.createElement("div",{className:"sui-builder-fields"},_.map(n,function(e,t){return l.default.createElement("div",{className:"sui-builder-field sui-can_move sui-react","data-key":e.key,key:e.key},l.default.createElement("div",{className:"sui-field-info"},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("i",{className:"sui-icon-"+e.icon,"aria-hidden":"true"}),l.default.createElement("span",null,e.label))),l.default.createElement("div",{className:"sui-field-actions"}))})))))}}]),t}(s.Component);t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(4),d=r(f),h=n(2),m=r(h),y=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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(m.default,s({},this.props,{label:(0,p.translate)("Width"),type:"number",placeholder:"0",defaultValue:80,property:"field-image-width"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Height"),type:"number",placeholder:"0",defaultValue:80,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=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(6),m=r(h),y=n(11),b=r(y),v=n(354),g=r(v),_=n(355),E=r(_),w=n(356),O=r(w),j=n(357),x=r(j),P=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,p.translate)("Quiz Container"),description:(0,p.translate)("Customize the quiz container as per your liking.")},c.default.createElement(m.default,s({},this.props,{property:"quiz-padding",default:"none",settingsLabel:(0,p.translate)("Padding"),description:(0,p.translate)("By default the quiz will fill the available space where you insert it. You can add some padding here to better suit your theme.")}),c.default.createElement(b.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(g.default,s({},this.props,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-border-frame"}))),c.default.createElement(m.default,s({},this.props,{property:"quiz-border",default:"none",settingsLabel:(0,p.translate)("Border"),description:(0,p.translate)("Add an optional border around the quiz.")}),c.default.createElement(b.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(E.default,s({},this.props,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-border-frame"}))),c.default.createElement(m.default,s({},this.props,{property:"quiz-spacing",default:"default",settingsLabel:(0,p.translate)("Spacing"),description:(0,p.translate)("Choose how much spacing you want between each quiz question.")}),c.default.createElement(b.default,{value:"default"},(0,p.translate)("Comfortable")),c.default.createElement(b.default,{value:"enclosed"},(0,p.translate)("Compact")),c.default.createElement(O.default,s({},this.props,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-border-frame"}))),c.default.createElement(m.default,s({},this.props,{property:"quiz-size",default:"custom",settingsLabel:(0,p.translate)("Maximum Width"),description:(0,p.translate)("Choose the maximum container width for your quiz. Full Width means quiz container will fill the 100% available space where you insert it, and the Custom option lets you define a maximum container width.")}),c.default.createElement(b.default,{value:"default"},(0,p.translate)("Full Width")),c.default.createElement(x.default,s({},this.props,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-border-frame"}))))}}]),t}(u.Component);t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(4),d=r(f),h=n(2),m=r(h),y=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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(m.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:"quiz-padding-top",label:(0,p.translate)("Top")}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(m.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:"quiz-padding-bottom",label:(0,p.translate)("Bottom")}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(m.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:"quiz-padding-left",label:(0,p.translate)("Left")}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(m.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:"quiz-padding-right",label:(0,p.translate)("Right")})))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set your custom padding in pixels.")))}}]),t}(u.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(4),d=r(f),h=n(2),m=r(h),y=n(19),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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:"4"},c.default.createElement(m.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:"quiz-border-radius",label:(0,p.translate)("Radius"),note:(0,p.translate)("in px")}))),c.default.createElement(d.default,{cols:"4"},c.default.createElement(m.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:"quiz-border-width",label:(0,p.translate)("Thickness"),note:(0,p.translate)("in px")}))),c.default.createElement(d.default,{cols:"4"},c.default.createElement(b.default,s({},this.props,{property:"quiz-border-style",defaultValue:"none",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=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(2),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",property:(0,p.getThemePrefix)(this.props)+"quiz-custom-spacing",label:(0,p.translate)("Spacing"),note:(0,p.translate)("in pixels")}))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(2),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{type:"number",minValue:"0",placeholder:"0",defaultValue:"600",label:(0,p.translate)("Maximum width"),suffix:"px",property:(0,p.getThemePrefix)(this.props)+"quiz-custom-size",inputClass:"sui-field-has-suffix",inputStyles:{maxWidth:"110px"}}))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(24),m=r(h),y=n(181),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){var e="";return!_.isUndefined(this.props.settings["use-custom-css"])&&this.props.settings["use-custom-css"]&&(e=c.default.createElement("div",{className:"sui-toggle-content"},c.default.createElement(b.default,s({},this.props,{property:"custom_css",type:"quiz"})))),c.default.createElement(d.default,{label:(0,p.translate)("Custom CSS"),description:(0,p.translate)("For more advanced customization options use custom CSS.")},c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Enable custom CSS"),property:"use-custom-css"})),e)}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(24),d=r(f),h=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(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 quiz to be rendered for users."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{property:"use_ajax_load",label:(0,p.translate)("Load quiz using AJAX"),description:(0,p.translate)("Enabling this feature will load the quiz 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 quiz.")})),c.default.createElement(d.default,s({},this.props,{property:"use_donotcachepage",label:(0,p.translate)("Prevent page caching on quiz pages"),description:(0,p.translate)("Page caching plugins serve a static HTML version of the page which can cause issues to your dynamic quizzes. By enabling this, we'll use {{strong}}DONOTCACHEPAGE{{/strong}} constant to prevent pages with this quiz on it from being cached.",{components:{strong:c.default.createElement("strong",null)}})}))))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(6),d=r(f),h=n(11),m=r(h),y=n(361),b=r(y),v=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(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)("Questions")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how questions will be presented in the quiz."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{property:"pagination",defaultValue:"",settingsLabel:(0,p.translate)("Question Presentation"),description:(0,p.translate)("Use this option to set how questions in this quiz will be presented. Paginated questions will display a number of questions to users at a time."),divClass:"sui-tabs-content-lg"}),c.default.createElement(m.default,{value:"",label:(0,p.translate)("No Pagination")}),c.default.createElement(b.default,s({},this.props,{value:"true",label:(0,p.translate)("Paginated Quiz")})))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(4),d=r(f),h=n(2),m=r(h),y=n(41),b=r(y),v=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-border-frame",style:{marginBottom:"10px"}},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Number of questions per page"),type:"number",description:(0,p.translate)("Enter the number of questions to be displayed per page."),property:"questions-per-page",defaultValue:"1"}))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Start quiz button text"),description:(0,p.translate)("Enter your start quiz button text. This button will not be shown If the lead generation is enabled and set to show before the quiz."),placeholder:(0,p.translate)("Start Quiz"),property:"text-start"}))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"6"},c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Previous button text"),placeholder:(0,p.translate)("Previous"),property:"text-previous"}))),c.default.createElement(d.default,{cols:"6"},c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Next button text"),placeholder:(0,p.translate)("Next"),property:"text-next"}))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, quiz navigation button texts are set to “Next”, and “Previous”, you can use the fields above to set a custom texts for these buttons.")))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Show page indicator"),property:"page-indicator",defaultValue:"1",itemClass:"sui-checkbox-sm"})),c.default.createElement("span",{className:"sui-tooltip sui-tooltip-right",style:{verticalAlign:"middle"},"data-tooltip":(0,p.translate)("Display current, and total page indicator")},c.default.createElement("i",{className:"sui-icon-info","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(6),m=r(h),y=n(363),b=r(y),v=n(11),g=r(v),_=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,p.translate)("Social Sharing"),description:(0,p.translate)("Choose whether you want to allow the quiz participants to share their results on social media.")},c.default.createElement(m.default,s({},this.props,{property:"enable-share",default:"on"}),c.default.createElement(b.default,s({},this.props,{value:"on",boxClass:"",label:(0,p.translate)("Enable")})),c.default.createElement(g.default,{value:"off",label:(0,p.translate)("Disable")})))}}]),t}(u.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(17),d=n(41),h=r(d),m=n(52),y=r(m),b=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-border-frame",style:{marginBottom:"10px"}},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("span",{className:"sui-label"},(0,p.translate)("Social Sharing Platforms")),c.default.createElement(h.default,s({},this.props,{label:(0,p.translate)("Facebook"),fieldId:"share-facebook",property:"facebook",tooltip:(0,p.translate)("Facebook no longer supports passing the Social Share Message that you enter below. Your users will need to enter their own messages in the share box."),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(h.default,s({},this.props,{label:(0,p.translate)("Twitter"),fieldId:"share-twitter",property:"twitter",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(h.default,s({},this.props,{label:(0,p.translate)("LinkedIn"),fieldId:"share-linkedin",property:"linkedin",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,s({},this.props,{property:"social-share-message",defaultValue:(0,p.translate)("I got {quiz_result} on {quiz_name} quiz!"),label:(0,p.translate)("Social Share Message"),type:"textarea",rows:"5",updateProperty:this.updateProperty}),c.default.createElement("option",{value:"{quiz_result}","data-content":"quiz_result"},(0,f.escapeHTML)((0,p.translate)("Quiz Result"))),c.default.createElement("option",{value:"{quiz_name}","data-content":"quiz_name"},(0,f.escapeHTML)((0,p.translate)("Quiz Name"))),c.default.createElement("option",{value:"{embed_title}","data-content":"embed_title"},(0,f.escapeHTML)((0,p.translate)("Page/Post Title"))),c.default.createElement("option",{value:"{embed_url}","data-content":"embed_url"},(0,f.escapeHTML)((0,p.translate)("Page/Post URL"))),c.default.createElement("option",{value:"{site_url}","data-content":"{site_url}"},(0,f.escapeHTML)((0,p.translate)("Site URL"))))),c.default.createElement("div",{className:"sui-notice sui-notice-blue sui-active",style:{display:"block",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","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Want to enhance how the result will look when shared on Social Media? {{link}}SmartCrawl{{/link}} OpenGraph and Twitter Card support lets you choose how your content looks when it's shared on social media.",{components:{link:c.default.createElement("a",{href:"https://wpmudev.com/project/smartcrawl-wordpress-seo/"})}}))))))}}]),t}(u.Component);t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(6),d=r(f),h=n(11),m=r(h),y=n(109),b=r(y),v=n(3),g=r(v),_=n(2),E=r(_),w=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(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 quiz 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,s({},this.props,{property:"form-expire",default:"no_expire",simple:!0}),c.default.createElement(m.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(b.default,s({},this.props,{property:"expire_date",placeholder:(0,p.translate)("20 April 2018"),hasWordFormat:!0})),c.default.createElement(E.default,s({},this.props,{label:(0,p.translate)("Expiration Message"),placeholder:(0,p.translate)("Whoops! This quiz has expired."),property:"expire_message",description:(0,p.translate)("Add some custom message for users to see when your quiz 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(E.default,s({},this.props,{placeholder:"10",property:"expire_submits",type:"number"})),c.default.createElement(E.default,s({},this.props,{label:(0,p.translate)("Expiration Message"),placeholder:(0,p.translate)("Whoops! This quiz has expired."),property:"expire_message",description:(0,p.translate)("Add some custom message for users to see when your quiz stops appearing or leave empty to show nothing (just an empty space).")}))))))}}]),t}(u.Component);t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(366),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(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)};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 participant on successful quiz submission. Use advanced features such as email routing, and conditions to have granular control over them."))),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("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("integrations")}},(0,c.translate)("Integrations"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(367),d=r(f),h=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addNotification=n.addNotification.bind(n),n.closeModal=n.closeModal.bind(n),n}return i(t,e),l(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,n){return c.default.createElement(d.default,s({key:t.slug,notification:t},e.props,{counter:n}))})),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=h},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(1),p=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.trashNotification=n.trashNotification.bind(n),n.deleteNotification=n.deleteNotification.bind(n),n.closeDeleteField=n.closeDeleteField.bind(n),n.editModal=n.editModal.bind(n),n.closeEditModal=n.closeEditModal.bind(n),n.duplicateNotification=n.duplicateNotification.bind(n),n}return i(t,e),s(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=_.isUndefined(this.props.settings.wrappers)?[]:this.props.settings.wrappers,t=(0,c.getFields)(e),n=[];_.each(this.props.questions,function(e){var t=Object.assign({},e);n.push(t)}),n.push({slug:"final_result",title:"Final Score"});var r="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 o=_.filter(t,function(e){return e.element_id===a.element_id}),i=_.filter(n,function(e){return e.slug===a.element_id});if(!(_.isUndefined(o)&&_.isUndefined(i)||_.isUndefined(o[0])&&_.isUndefined(i[0]))){var s="",l="",p="";_.isUndefined(o[0])?_.isUndefined(i[0])||(s=i.field_type,l=i[0],p=i[0].title):(s=o.field_type,l=o[0],p=o[0].label);var f=p,d=(0,c.getRuleLabel)(a.rule,s),h=(0,c.getConditionLabel)(l,a),m=this.props.notification.conditions.length,y="";return m-1>0&&(y="+ "+(m-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":r+" "+(0,c.translate)("if")+" "+f+" "+d+" "+h+" "+y,"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 n=this.props.notification.recipients.split(","),r=n.length;t=r>2?n[0]+", "+n[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 a=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,a),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"))),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}(l.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(194);r(p);n(196);var f=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={loading:!1,markup:""},n.loadIntegrations=n.loadIntegrations.bind(n),n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.loadIntegrations(),jQuery("html, body").animate({scrollTop:0},"fast")}},{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]=quiz&data[module_id]="+t}).then(function(e){return e.json()}).then(function(t){if(t.success&&e.mounted){var n=e;e.setState({markup:t.data.data}),setTimeout(function(){var e=window.jQuery(".form-integrations-wrapper");e.ForminatorIntegrationsModal({type:"quiz"}),e.on("reload",function(){e.unbind(),n.loadIntegrations()})},10),e.setState({loading:!1})}}).catch(function(e){console.log(e)}))}},{key:"render",value:function(){var e=this,t=this.state.loading,n=this.state.markup,r=forminatorData.currentForm.settings.form_id,a=function(t){e.props.history.push("/"+t)},o="";return o=t?u.default.createElement("div",{className:"sui-notice sui-notice-loading sui-active",style:{display:"block"}},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)("Fetching integration list…"))))):_.isUndefined(r)||+r<=0?u.default.createElement("div",{className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"}},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-info","aria-hidden":"true"}),u.default.createElement("p",null,(0,c.translate)("You need to save this quiz before using integrations.")),u.default.createElement("div",{className:"sui-notice-buttons"},u.default.createElement("a",{className:"sui-button",onClick:this.loadIntegrations},(0,c.translate)("TRY AGAIN")))))):u.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:n}}),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)("Integrations"))),u.default.createElement("div",{className:"sui-box-body"},o),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return a("notifications")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Email Notifications")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return a("settings")}},(0,c.translate)("Settings"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(370),f=r(p),d=n(371),h=r(d),m=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(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)};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)("Settings"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props),u.default.createElement(h.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,c.translate)("Integrations"))))}}]),t}(l.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(24),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default we'll store all submissions in your database."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{property:"store_submissions",label:(0,p.translate)("Store Submissions in Database"),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.")}))))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(6),d=r(f),h=n(3),m=r(h),y=n(4),b=r(y),v=n(2),g=r(v),E=n(19),w=r(E),O=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){var e=_.isEmpty(forminatorData.submissions_quiz_retain_number)||"0"===forminatorData.submissions_quiz_retain_number,t=(0,p.translate)("forever");e||(t=forminatorData.submissions_quiz_retain_number+" "+forminatorData.submissions_quiz_retain_unit);var n=(0,p.isTrue)(forminatorData.userPermissions.manage_forminator_settings)||(0,p.isTrue)(forminatorData.userPermissions.manage_options);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)("Privacy")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how you want to handle this quiz's data storage. By default we'll use the configuration you've set in your "),n&&c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=submissions",target:"_blank"},(0,p.translate)("global privacy settings.")),!n&&(0,p.translate)("global privacy settings."))),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 quiz's submissions for?")),c.default.createElement(d.default,s({},this.props,{default:"false",property:"enable-submissions-retention"}),c.default.createElement(m.default,{value:"false",label:(0,p.translate)("Use default")},c.default.createElement("div",{className:"sui-notice sui-active",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)("Your default setting value is to keep the submissions %s.",{args:[t]})))))),c.default.createElement(m.default,s({},this.props,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(b.default,{cols:"6"},c.default.createElement(g.default,s({},this.props,{type:"number",defaultValue:"0",property:"submissions-retention-number",placeholder:"10"}))),c.default.createElement(b.default,{cols:"6"},c.default.createElement(w.default,s({},this.props,{defaultValue:"days",property:"submissions-retention-unit"}),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("span",{className:"sui-description"},(0,p.translate)("Leave the field blank to retain submissions forever.")))))))}}]),t}(u.Component);t.default=O},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(0),o=r(a),i=n(86),s=n(12),l=n(26),u=n(298),c=r(u),p=n(51),f=r(p),d=n(718),h=r(d),m=(0,c.default)(forminatorData.currentForm);f.default.setLocale(forminatorl10n.locale),window.forminatorChanges={questions:[],results:[],settings:!1},(0,i.renderBlock)("forminator-knowledge-builder",o.default.createElement(s.Provider,{store:m},o.default.createElement(l.MemoryRouter,null,o.default.createElement(l.Route,{component:h.default}))))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(26),p=(n(12),n(1)),f=n(719),d=r(f),h=n(720),m=r(h),y=n(721),b=r(y),v=n(724),g=r(v),_=n(725),E=r(_),w=n(726),O=r(w),j=n(727),x=r(j),P=n(728),k=r(P),N=n(752),C=r(N),S=n(758),T=r(S),A=n(759),M=r(A),F=n(760),R=r(F),D=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.handleBeforeunload),window.addEventListener("scroll",this.applySticky.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.handleBeforeunload)}},{key:"applySticky",value:function(){var e=this.refs.StickyHeader;e.getBoundingClientRect().top<=parseInt(window.getComputedStyle(e).top.replace("px",""))?e.classList.add("sui-is-sticky"):e.classList.remove("sui-is-sticky")}},{key:"handleBeforeunload",value:function(e){if(window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.preventDefault(),e.returnValue=(0,p.translate)("You have unsaved changes, are you sure want to leave this page"),(0,p.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){return u.default.createElement("div",null,u.default.createElement(d.default,null),u.default.createElement("div",{className:"sui-row-with-sidenav"},u.default.createElement(b.default,this.props),u.default.createElement("div",null,u.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},u.default.createElement(g.default,null)),u.default.createElement(c.Route,{exact:!0,path:"/",render:function(){return u.default.createElement(c.Redirect,{to:"/intro"})}}),u.default.createElement(c.Route,{path:"/intro",component:E.default}),u.default.createElement(c.Route,{path:"/questions",component:O.default}),u.default.createElement(c.Route,{path:"/leads",component:x.default}),u.default.createElement(c.Route,{path:"/appearance",component:k.default}),u.default.createElement(c.Route,{path:"/behaviour",component:C.default}),u.default.createElement(c.Route,{path:"/notifications",component:T.default}),u.default.createElement(c.Route,{path:"/integrations",component:M.default}),u.default.createElement(c.Route,{path:"/settings",component:R.default}))),u.default.createElement(m.default,this.props))}}]),t}(l.Component);t.default=D},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{id:e.settings.form_id,title:e.settings.formName||"",hasLead:e.settings.hasLeads||!1}}function o(e){return{actions:{navigationActions:(0,s.bindActionCreators)(d,e),modalActions:(0,s.bindActionCreators)(p,e),settingsActions:(0,s.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(38),u=r(l),c=n(36),p=r(c),f=n(209),d=r(f),h=n(305),m=function(e){return e&&e.__esModule?e:{default:e}}(h);t.default=(0,i.connect)(a,o)(m.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{modal:e.modal,questions:e.questions,settings:e.settings,notifications:e.notifications,type:"knowledge",id:e.settings.form_id||-1}}function o(e){return{actions:{builderActions:(0,s.bindActionCreators)(p,e),settingsActions:(0,s.bindActionCreators)(d,e),notificationsActions:(0,s.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(308),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(184),p=r(c),f=n(38),d=r(f),h=n(210),m=r(h);t.default=(0,i.connect)(a,o)(u.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{id:e.settings.form_id,title:e.settings.formName||"",hasLead:e.settings.hasLeads||!1}}function o(e){return{actions:{navigationActions:(0,s.bindActionCreators)(p,e),modalActions:(0,s.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(36),u=r(l),c=n(209),p=r(c),f=n(722),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,i.connect)(a,o)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return i.default.createElement("div",{className:"sui-sidenav fui-sidenav"},i.default.createElement(l.default,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=n(0),i=r(o),s=n(723),l=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(26),p=n(1),f=n(326),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("ul",{className:"sui-vertical-tabs sui-sidenav-sticky sui-sidenav-hide-md fui-sidenav"},u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/intro",activeClassName:"current"},(0,p.translate)("Intro"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/questions",activeClassName:"current"},(0,p.translate)("Questions"))),this.props.hasLead&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/leads",activeClassName:"current"},(0,p.translate)("Leads"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,p.translate)("Appearance"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,p.translate)("Behavior"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,p.translate)("Email Notifications"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,p.translate)("Integrations"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,p.translate)("Settings")))),u.default.createElement(d.default,this.props,u.default.createElement("option",{value:""},(0,p.translate)("Intro")),u.default.createElement("option",{value:"questions"},(0,p.translate)("Questions")),this.props.hasLead&&u.default.createElement("option",{value:"leads"},(0,p.translate)("Leads")),u.default.createElement("option",{value:"appearance"},(0,p.translate)("Appearance")),u.default.createElement("option",{value:"behaviour"},(0,p.translate)("Behavior")),u.default.createElement("option",{value:"notifications"},(0,p.translate)("Email Notifications")),u.default.createElement("option",{value:"integrations"},(0,p.translate)("Integrations")),u.default.createElement("option",{value:"settings"},(0,p.translate)("Settings"))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges,type:"knowledge"}}function o(e){return{actions:{settingsActions:(0,s.bindActionCreators)(u,e),modalActions:(0,s.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(38),u=r(l),c=n(36),p=r(c),f=n(327),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,i.connect)(a,o)(d.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return{settings:e.settings,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,u.bindActionCreators)(p,e),modalActions:(0,u.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),l=(a(s),n(12)),u=n(10),c=n(38),p=r(c),f=n(36),d=r(f),h=n(331),m=a(h);t.default=(0,l.connect)(o,i)(m.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return{settings:e.settings,questions:e.questions,hasLead:e.settings.hasLeads||!1,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,u.bindActionCreators)(d,e),builderActions:(0,u.bindActionCreators)(p,e),modalActions:(0,u.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),l=(a(s),n(12)),u=n(10),c=n(184),p=r(c),f=n(38),d=r(f),h=n(36),m=r(h),y=n(332),b=a(y);t.default=(0,l.connect)(o,i)(b.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return{settings:e.settings,hasLead:e.settings.hasLeads||!1,leadsForm:e.settings.leadsId||!1,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,u.bindActionCreators)(d,e),builderActions:(0,u.bindActionCreators)(p,e),modalActions:(0,u.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),l=(a(s),n(12)),u=n(10),c=n(184),p=r(c),f=n(38),d=r(f),h=n(36),m=r(h),y=n(336),b=a(y);t.default=(0,l.connect)(o,i)(b.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{settings:e.settings,quizDesign:e.settings["forminator-quiz-theme"]||"default",quizLayout:e.settings.visual_style||"list",quizLoader:e.settings["quiz-ajax-loader"]||"show",hasLead:e.settings.hasLeads||!1}}function o(e){return{actions:{settingsActions:(0,s.bindActionCreators)(u,e),modalActions:(0,s.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(38),u=r(l),c=n(36),p=r(c),f=n(729),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,i.connect)(a,o)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(39),f=r(p),d=n(40),h=r(d),m=n(337),y=r(m),b=n(730),v=r(b),g=n(740),E=r(g),w=n(350),O=r(w),j=n(353),x=r(j),P=n(358),k=r(P),N=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"componentDidMount",value:function(){this.loadFonts(),jQuery("html, body").animate({scrollTop:0},"fast")}},{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};f.default.post(forminatorData.ajaxUrl,h.default.stringify(t)).then(function(e){window.forminatorFonts=e.data.data}).catch(function(e){console.log(e)})}}},{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)("Appearance"))),u.default.createElement("div",{className:"sui-box-body",key:(0,c.getThemePrefix)(this.props)+"themeKey"},u.default.createElement(y.default,this.props),"none"!==this.props.quizDesign&&u.default.createElement(v.default,this.props),"none"!==this.props.quizDesign&&u.default.createElement(E.default,this.props),u.default.createElement(O.default,this.props),"none"!==this.props.quizDesign&&u.default.createElement(x.default,this.props),u.default.createElement(k.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},this.props.hasLead&&u.default.createElement("button",{className:"sui-button",onClick:function(){return t("leads")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Leads")),!this.props.hasLead&&u.default.createElement("button",{className:"sui-button",onClick:function(){return t("questions")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Questions")),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}(l.Component);t.default=N},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(6),m=r(h),y=n(11),b=r(y),v=n(731),g=r(v),_=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,p.translate)("Colors"),description:(0,p.translate)("Adjust the default color combinations to match your theme styling.")},c.default.createElement(m.default,s({},this.props,{property:"knowledge-toggle-palette",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,p.translate)("Default")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,p.translate)("Custom"))))}}]),t}(u.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(35),d=r(f),h=n(732),m=r(h),y=n(733),b=r(y),v=n(734),g=r(v),_=n(735),E=r(_),w=n(736),O=r(w),j=n(344),x=r(j),P=n(345),k=r(P),N=n(737),C=r(N),S=n(738),T=r(S),A=n(739),M=r(A),F=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-accordion"},c.default.createElement("div",{className:"sui-accordion-header"},c.default.createElement("div",null,(0,p.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Basic")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Answer - Container")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Answer - Checkbox")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Answer - Text")}),c.default.createElement(E.default,this.props)),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Start Quiz Button")}),c.default.createElement(x.default,this.props)),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Quiz Navigation Button")}),c.default.createElement(k.default,this.props)),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Back to Answers Button")}),c.default.createElement(C.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Retake Button")}),c.default.createElement(M.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Social Share")}),c.default.createElement(T.default,this.props)))}}]),t}(u.Component);t.default=F},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(5),d=r(f),h=n(9),m=r(h),y=n(3),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"common_blocks",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Main Container"),property:(0,p.getThemePrefix)(this.props)+"knowledge-container-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#00000000"),isAlpha:!0})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Container border"),property:(0,p.getThemePrefix)(this.props)+"container-border-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),isAlpha:!0})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Title color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-title-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Description color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-description-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Page Indicator color"),property:(0,p.getThemePrefix)(this.props)+"page-indicator-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Question color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-question-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Quiz result color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-summary-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})))}},{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,this.props.settings.hasLeads&&c.default.createElement(m.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(b.default,{value:"default",label:(0,p.translate)("Default")},this.common_blocks(),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Skip form button"),property:(0,p.getThemePrefix)(this.props)+"knowledge-skip-default-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(b.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Skip form button"),property:(0,p.getThemePrefix)(this.props)+"knowledge-skip-hover-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")}))),c.default.createElement(b.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Skip form button"),property:(0,p.getThemePrefix)(this.props)+"knowledge-skip-focus-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})))),!this.props.settings.hasLeads&&this.common_blocks())}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.quizDesign&&"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EBEDEB"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FAFAFA"),isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,p.translate)("Hover")},"flat"!==this.props.quizDesign&&"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F3FBFE"),isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},"flat"!==this.props.quizDesign&&"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F3FBFE"),isAlpha:!0}))),c.default.createElement(m.default,{value:"right",label:(0,p.translate)("Right")},"flat"!==this.props.quizDesign&&"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-aright-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#0BC30B"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-aright-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F4FCF2"),isAlpha:!0}))),c.default.createElement(m.default,{value:"wrong",label:(0,p.translate)("Wrong")},"flat"!==this.props.quizDesign&&"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-awrong-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DA0000"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-awrong-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FDF2F2"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#BFBFBF"),isAlpha:!0})),"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},"flat"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"show"===this.props.quizLoader&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Evaluation loader icon"),description:(0,p.translate)('This picker works only when "Evaluation Loader" is set to "Show Loader".'),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-loader-icon-color",defaultValue:"material"===this.props.quizDesign?"#17A8E3":"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"right",label:(0,p.translate)("Right")},"flat"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-border-correct",defaultValue:""+(0,p.getDefaultValue)(this.props,"#0BC30B"),isAlpha:!0})),"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-background-correct",defaultValue:""+(0,p.getDefaultValue)(this.props,"#0BC30B"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-icon-correct",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"wrong",label:(0,p.translate)("Wrong")},"flat"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-border-incorrect",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DA0000"),isAlpha:!0})),"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-check-background-incorrect",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DA0000"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-icon-incorrect",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Answer text color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Answer result message"),property:(0,p.getThemePrefix)(this.props)+"knowledge-phrasing-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Answer text color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-answer-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")}))),c.default.createElement(m.default,{value:"right",label:(0,p.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Answer text color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-aright-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#0BC30B")}))),c.default.createElement(m.default,{value:"wrong",label:(0,p.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Answer text color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-awrong-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DA0000")}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-submit-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-submit-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-submit-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-submit-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-submit-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-submit-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"back-questions-button-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"back-questions-button-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"back-questions-button-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"back-questions-button-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"back-questions-button-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"back-questions-button-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(5),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Title color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-sshare-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Facebook"),property:(0,p.getThemePrefix)(this.props)+"knowledge-social-facebook",defaultValue:""+(0,p.getDefaultValue)(this.props,"#0084BF")})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Twitter"),property:(0,p.getThemePrefix)(this.props)+"knowledge-social-twitter",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1DA1F2")})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("LinkedIn"),property:(0,p.getThemePrefix)(this.props)+"knowledge-social-linkedin",defaultValue:""+(0,p.getDefaultValue)(this.props,"#0084BF")})))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(9),d=r(f),h=n(3),m=r(h),y=n(5),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"default",label:(0,p.translate)("Default")},"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-result-retake-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-result-retake-color-static",defaultValue:"material"===this.props.quizDesign?"#222222":"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,p.translate)("Hover")},"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-result-retake-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-result-retake-color-hover",defaultValue:"material"===this.props.quizDesign?"#222222":"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,p.translate)("Active")},"material"!==this.props.quizDesign&&c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-result-retake-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"knowledge-result-retake-color-active",defaultValue:"material"===this.props.quizDesign?"#222222":"#FFFFFF",isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(15),d=r(f),h=n(6),m=r(h),y=n(11),b=r(y),v=n(741),g=r(v),_=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,p.translate)("Fonts"),description:(0,p.translate)("By default this quiz will inherit the fonts your theme uses. You can override 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(m.default,s({},this.props,{property:"knowledge-toggle-typography",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,p.translate)("Use Theme Fonts")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,p.translate)("Custom"))))}}]),t}(u.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(35),d=r(f),h=n(742),m=r(h),y=n(743),b=r(y),v=n(346),g=r(v),_=n(347),E=r(_),w=n(348),O=r(w),j=n(349),x=r(j),P=n(744),k=r(P),N=n(745),C=r(N),S=n(746),T=r(S),A=n(747),M=r(A),F=n(748),R=r(F),D=n(749),I=r(D),L=n(750),q=r(L),U=n(751),z=r(U),V=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-accordion"},c.default.createElement("div",{className:"sui-accordion-header"},c.default.createElement("div",null,(0,p.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Quiz Title")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Quiz Description")}),c.default.createElement(b.default,this.props)),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Page Indicator")}),c.default.createElement(E.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Question")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Question Description")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Answer")}),c.default.createElement(C.default,this.props)),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Start Quiz Button")}),c.default.createElement(x.default,this.props)),this.props.settings.pagination&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Quiz Navigation Buttons")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Answer Result Message")}),c.default.createElement(T.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Submit Button")}),c.default.createElement(M.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Quiz Result")}),c.default.createElement(R.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Social Share Title")}),c.default.createElement(I.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Social Share Icons")}),c.default.createElement(q.default,this.props)),this.props.settings.hasLeads&&c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Skip Form Button")}),c.default.createElement(z.default,this.props)))}}]),t}(u.Component);t.default=V},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-title",defaultFont:"Roboto",defaultSize:"36",defaultWeight:"700"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-description",defaultFont:"Roboto",defaultSize:"16",defaultWeight:"400"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-question",defaultFont:"Roboto",defaultSize:"16",defaultWeight:"700"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-answer",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-phrasing",defaultFont:"Roboto",defaultSize:"13",defaultWeight:"700"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-submit",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-summary",defaultFont:"Roboto",defaultSize:"40",defaultWeight:"400"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-sshare",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(20),d=r(f),h=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{property:(0,p.getThemePrefix)(this.props)+"knowledge-social-size",defaultValue:""+(0,p.getDefaultValue)(this.props,"36"),label:(0,p.translate)("Icon size"),description:(0,p.translate)("Choose one of the pre-defined sizes we have for social share icons.")}),c.default.createElement("div",{value:"24"},(0,p.translate)("Regular")),c.default.createElement("div",{value:"30"},(0,p.translate)("Medium")),c.default.createElement("div",{value:"36"},(0,p.translate)("Large")))}}]),t}(u.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(32),f=r(p),d=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(f.default,s({},this.props,{prefix:"knowledge-skip",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"400"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{settings:e.settings,notifications:e.notifications}}function o(e){return{actions:{settingsActions:(0,s.bindActionCreators)(u,e),modalActions:(0,s.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(38),u=r(l),c=n(36),p=r(c),f=n(753),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,i.connect)(a,o)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=n(359),f=r(p),d=n(360),h=r(d),m=n(754),y=r(m),b=n(757),v=r(b),g=n(362),E=r(g),w=n(364),O=r(w),j=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(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)},n=_.isUndefined(this.props.settings["form-placement"])?"":this.props.settings["form-placement"];return u.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Behavior"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(u.default.Fragment,null,u.default.createElement(h.default,this.props),"end"!==n&&u.default.createElement(y.default,this.props),u.default.createElement(v.default,this.props),u.default.createElement(E.default,this.props),u.default.createElement(O.default,this.props),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("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("notifications")}},(0,c.translate)("Notifications"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=j},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(6),d=r(f),h=n(11),m=r(h),y=n(755),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(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)("Results")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how do you want to show quiz results to the participants."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{property:"results_behav",defaultValue:"after",settingsLabel:(0,p.translate)("Display Method"),description:(0,p.translate)("Choose whether to display the correct answer as the user answers each question or after the quiz is submitted."),divClass:"sui-tabs-content-lg"}),c.default.createElement(b.default,s({},this.props,{value:"after",label:(0,p.translate)("Real Time")})),c.default.createElement(m.default,{value:"end",label:(0,p.translate)("On Submission")}))))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(6),d=r(f),h=n(11),m=r(h),y=n(756),b=r(y),v=function(e){function t(e){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-notice sui-notice-blue sui-active",style:{display:"block",marginTop:"-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)('Note: Participants can only choose one answer with "Real Time" method.'))))),c.default.createElement(d.default,s({},this.props,{property:"quiz-ajax-loader",default:"show",label:"",settingsLabel:(0,p.translate)("Evaluation Loader"),description:(0,p.translate)("Choose whether you want to show a loader while evaluating the selected answer in real-time. We recommend using this on long quizzes since evaluating an answer might take a bit longer.")}),c.default.createElement(b.default,{value:"show",label:(0,p.translate)("Show Loader"),boxClass:"sui-tab-boxed"}),c.default.createElement(m.default,{value:"none",label:(0,p.translate)("None")})))}}]),t}(u.Component);t.default=v},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(1),c=function(e){function t(e){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("p",{className:"sui-description"},(0,u.translate)("Note: You can change the color of the loader in the Appearance tab.")),l.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--default"},l.default.createElement("label",null,l.default.createElement("input",{type:"radio",readOnly:"readonly",checked:!0}),l.default.createElement("span",{className:"forminator-ui"},l.default.createElement("span",{className:"sui-icon-loader","aria-hidden":"true"}),l.default.createElement("span",null,(0,u.translate)("Option Selected"))))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=n(2),d=r(f),h=n(30),m=r(h),y=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(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)("Messages")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the copy of the messages for the correct and wrong answers and also for the final score count."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Correct Answer Message"),description:(0,p.translate)("Use {{strong}}%UserAnswer%{{/strong}} and {{strong}}%CorrectAnswer%{{/strong}} to display the answer chosen by the user and the correct answer for each question respectively.",{components:{strong:c.default.createElement("strong",null)}}),property:"msg_correct",defaultValue:""})),c.default.createElement(d.default,s({},this.props,{label:(0,p.translate)("Incorrect Answer Message"),description:(0,p.translate)("Use {{strong}}%UserAnswer%{{/strong}} and {{strong}}%CorrectAnswer%{{/strong}} to display the answer chosen by the user and the correct answer for each question respectively.",{components:{strong:c.default.createElement("strong",null)}}),property:"msg_incorrect",defaultValue:""})),c.default.createElement(m.default,s({},this.props,{label:(0,p.translate)("Final Count Message"),description:(0,p.translate)("Final count message will appear after the quiz is complete. Use {{strong}}%YourNum%{{/strong}} to display number of correct answers and {{strong}}%Total%{{/strong}} for total number of questions.",{components:{strong:c.default.createElement("strong",null)}}),property:"msg_count",defaultValue:"",disableMiscData:!0,enableFormData:!1,mainOptions:{quiz_name:(0,p.translate)("Quiz Name"),quiz_answer:(0,p.translate)("Quiz Answer"),quiz_result:(0,p.translate)("Quiz Result")}}))))}}]),t}(u.Component);t.default=y},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return{settings:e.settings,notifications:e.notifications,questions:e.questions}}function o(e){return{actions:{settingsActions:(0,s.bindActionCreators)(u,e),notificationsActions:(0,s.bindActionCreators)(p,e),modalActions:(0,s.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(10),l=n(38),u=r(l),c=n(210),p=r(c),f=n(36),d=r(f),h=n(365),m=function(e){return e&&e.__esModule?e:{default:e}}(h);t.default=(0,i.connect)(a,o)(m.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),a=n(36),o=n(368),i=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(e){return{hideModal:function(){return e((0,a.hideModal)())},showModal:function(t,n){e((0,a.showModal)({modalProps:t,modalType:n}))}}};t.default=(0,r.connect)(null,s)(i.default)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return{settings:e.settings}}function i(e){return{actions:{settingsActions:(0,u.bindActionCreators)(p,e),modalActions:(0,u.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),l=(a(s),n(12)),u=n(10),c=n(38),p=r(c),f=n(36),d=r(f),h=n(369),m=a(h);t.default=(0,l.connect)(o,i)(m.default)}]);