Version Description
- Fix: WordPress 5.3 compatibility issues
Download this release
Release Info
Developer | jdailey |
Plugin | Forminator Payment, Quiz and Contact Form Plugin |
Version | 1.10.2 |
Comparing to | |
See all releases |
Code changes from version 1.10.1 to 1.10.2
assets/js/knowledge-scripts.js
CHANGED
@@ -22,4 +22,4 @@ var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.pr
|
|
22 |
* @author Feross Aboukhadijeh <https://feross.org>
|
23 |
* @license MIT
|
24 |
*/
|
25 |
-
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 o=n(38),a=n(8),i=n(158),s=n(159);r.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,{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},a.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))}}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(8);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(69);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(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,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,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 o=n(8);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(o.isURLSearchParams(t))a=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(8),o=["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,a,i={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.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(8);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),i="",s=0,u=a;o.charAt(0|s)||(u="=",s%1);i+=u.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return i}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(8);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!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 o=n(8);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){o.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 o=n(8),a=n(160),i=n(70),s=n(38),u=n(161),l=n(162);e.exports=function(e){return r(e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.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=a(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(8);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 o(e),t(n.reason))})}var o=n(71);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(73),o=n(74),a={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},u=function e(t,n,o,a,i,u,l,c,f,p,d,h){var m=t;if("function"==typeof l)m=l(n,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return u&&!h?u(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m)){if(u){return[d(h?n:u(n,s.encoder))+"="+d(u(m,s.encoder))]}return[d(n)+"="+d(String(m))]}var y=[];if(void 0===m)return y;var b;if(Array.isArray(l))b=l;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[_],o(n,_),o,a,i,u,l,c,f,p,d,h)):y.concat(e(m[_],n+(f?"."+_:"["+_+"]"),o,a,i,u,l,c,f,p,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 l=void 0===i.delimiter?s.delimiter:i.delimiter,c="boolean"==typeof i.strictNullHandling?i.strictNullHandling:s.strictNullHandling,f="boolean"==typeof i.skipNulls?i.skipNulls:s.skipNulls,p="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=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var v,g,_=o.formatters[i.format];"function"==typeof i.filter?(g=i.filter,n=g("",n)):Array.isArray(i.filter)&&(g=i.filter,v=g);var w=[];if("object"!=typeof n||null===n)return"";var E;E=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=a[E];v||(v=Object.keys(n)),h&&v.sort(h);for(var j=0;j<v.length;++j){var P=v[j];f&&null===n[P]||(w=w.concat(u(n[P],P,O,c,f,p?d:null,g,h,m,y,_,b)))}var x=w.join(l),k=!0===i.addQueryPrefix?"?":"";return x.length>0?k+x:""}},function(e,t,n){"use strict";var r=n(73),o=Object.prototype.hasOwnProperty,a={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),u=0;u<s.length;++u){var l,c,f=s[u],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=t.decoder(f,a.decoder),c=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,d),a.decoder),c=t.decoder(f.slice(d+1),a.decoder)),o.call(n,l)?n[l]=[].concat(n[l]).concat(c):n[l]=c}return n},s=function(e,t,n){for(var r=t,o=e.length-1;o>=0;--o){var a,i=e[o];if("[]"===i)a=[],a=a.concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,u=parseInt(s,10);!isNaN(u)&&i!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=r):a[s]=r}r=a}return r},u=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,u=a.exec(r),l=u?r.slice(0,u.index):r,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;null!==(u=i.exec(r))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+r.slice(u.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:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?i(e,n):e,s=n.plainObjects?Object.create(null):{},l=Object.keys(o),c=0;c<l.length;++c){var f=l[c],p=u(f,o[f],n);s=r.merge(s,p,n)}return r.compact(s)}},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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=u.default.Children.map(this.props.children,function(r){var o="";return r.props.image1x&&r.props.image2x&&(o=u.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&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},o,u.default.createElement("span",{className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,value:r.props.value,id:"forminator-field-"+r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))):r.props.hasImage?void 0:u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,id:"forminator-field-"+r.props.value,value:r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))});return this.props.noWrapper?r:u.default.createElement("div",{className:"sui-form-field"},r)}}]),t}(s.Component);t.default=l},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.insertSelector=n.insertSelector.bind(n),n}return a(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,r=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Form")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-title ")}},(0,l.translate)("Section Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-subtitle ")}},(0,l.translate)("Section Subtitle")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label ")}},(0,l.translate)("Field Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label--helper ")}},(0,l.translate)("Field Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-input ")}},(0,l.translate)("Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-textarea ")}},(0,l.translate)("Textarea")))),o=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Poll")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--question ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--design ")}},(0,l.translate)("Answer Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--label ")}},(0,l.translate)("Answer Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-button ")}},(0,l.translate)("Submit Button")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--actions a ")}},(0,l.translate)("View Results Link")))),a=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Quiz")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,l.translate)("Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description ")}},(0,l.translate)("Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question legend ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer ")}},(0,l.translate)("Answer Container")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,l.translate)("Answer Text"))));return u.default.createElement(u.default.Fragment,null,"form"===n&&r,"poll"===n&&o,"quiz"===n&&a,u.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";var r=n(170),o=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,n,r){function a(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(a.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},a=n.data("nonce"),i=n.data("slug"),s=n.data("title"),u=n.data("image"),l=n.data("imagex2"),c=n.data("action"),f=n.data("form-id"),p=n.data("multi-id"),d=n.data("poll-id"),h=n.data("quiz-id"),m=_.template('<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup"><div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div><div class="sui-dialog-content sui-bounce-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog"><div class="sui-box" role="document"><div class="sui-box-header sui-block-content-center"><div class="sui-dialog-image" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image_x2 %> 2x" alt="<%= title %>" class="sui-image sui-image-center" /></div><div class="integration-header"></div><button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button><button class="sui-dialog-close forminator-integration-close" aria-label="Close"></button></div><div class="sui-box-body"></div><div class="sui-box-footer sui-box-footer-center"></div></div></div></div>');jQuery("main.sui-wrap").append(m({image:u,image_x2:l,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:i,nonce:a,action:c,multi_id:p,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=d:"quiz"===t.options.type&&(y.quiz_id=h),new o.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),jQuery("body").css("overflow","hidden"),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){var t=jQuery("#forminator-integration-popup");t.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),t.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),jQuery("body").css("overflow","auto"),setTimeout(function(){t.attr("aria-hidden","true")},300),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new a(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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(44),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){var n;r(this,t);var a=o(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"}}));return a.slug=e.slug,a.nonce=e.nonce,a.action=e.action,a.multi_id=e.multi_id,a.type=e.type,a.step=0,a.next_step=!1,a.prev_step=!1,a.scrollbar_width=a.getScrollbarWidth(),"form"===a.type?a.form_id=e.form_id:"poll"===a.type?a.poll_id=e.poll_id:"quiz"===a.type&&(a.quiz_id=e.quiz_id),n=a.render(),o(a,n)}return a(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=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"request",value:function(e,t,n){var r=this,o={data:e,close:t,loader:n};n&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var n=e.data.data;if(r.onRender(n),r.$el.find(".sui-button").removeClass("sui-button-onload"),(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 u.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 a=jQuery("#forminator-integration-popup");"normal"===n.size&&a.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n.size&&(a.addClass("sui-dialog-sm"),a.removeClass("sui-dialog-lg sui-dialog-reduced")),"reduced"===n.size&&(a.addClass("sui-dialog-reduced"),a.removeClass("sui-dialog-lg sui-dialog-sm")),"large"===n.size&&(a.addClass("sui-dialog-lg"),a.removeClass("sui-dialog-sm sui-dialog-reduced"))}n.is_poll&&setTimeout(r.request(o.data,o.close,o.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .integration-header").remove();t.length>0&&this.$el.find(".integration-header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,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,l.suiDelegateEvents)(),(0,l.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:"submitNextStep",value:function(e){var t={},n=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!1),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},n={slug:this.slug,step:this.getPrevStep(),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(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!0),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,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(),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,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(jQuery.browser.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"form"===this.type&&this.form_id?e.form_id=this.form_id:"poll"===this.type&&this.poll_id?e.poll_id=this.poll_id:"quiz"===this.type&&this.quiz_id&&(e.quiz_id=this.quiz_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":"form"===this.type?e="forminator_addon_form_deactivate":"poll"===this.type?e="forminator_addon_poll_deactivate":"quiz"===this.type&&(e="forminator_addon_quiz_deactivate")}return e}}]),t}(Backbone.View);t.default=c},function(e,t,n){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function o(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 a(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 w.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 u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(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=l(t);return t.readAsArrayBuffer(e),n}function f(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}function p(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:w.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:w.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():w.arrayBuffer&&w.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):w.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):w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},w.blob&&(this.blob=function(){var e=u(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?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w.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," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),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 o=n.join(":").trim();t.append(r,o)}}),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 o(){i.abort()}var a=new y(e,t);if(a.signal&&a.signal.aborted)return r(new x("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 x("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&w.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",o),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",o)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=s,t.Request=y,t.Response=g,n.d(t,"DOMException",function(){return x}),t.fetch=_;var w={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(w.arrayBuffer)var E=["[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&&E.indexOf(Object.prototype.toString.call(e))>-1};s.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[o(e)]},s.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},s.prototype.set=function(e,t){this.map[o(e)]=a(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)},w.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 P=[301,302,303,307,308];g.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var x=self.DOMException;try{new x}catch(e){x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},x.prototype=Object.create(Error.prototype),x.prototype.constructor=x}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=s,self.Request=y,self.Response=g)},,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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$el.on("change.select2",this.handleChange),_.each(t,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(t).trigger("change.select2")}},{key:"handleChange",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)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.handleChange),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],n="";return this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),u.default.createElement("div",{className:"sui-form-field"},n,u.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select",defaultValue:t,multiple:"multiple"},this.props.children))}}]),t}(s.Component);t.default=l},,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c(l.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(5),i=n(127),s=r(i),u=n(184),l=r(u),c=(0,a.compose)((0,a.applyMiddleware)(s.default))(a.createStore)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),a=n(185),i=r(a),s=n(186),u=r(s),l=n(187),c=r(l),f=n(188),p=r(f),d=(0,o.combineReducers)({questions:i.default,results:u.default,settings:c.default,modal:p.default});t.default=d},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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(e,t){var n=t.settings;return s({},e,n)}function a(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 o(n,t);case"UPDATE_SETTING":return r(n,t);case"UPDATE_TITLE":return a(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){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement("div",{className:"sui-header sui-header-inline sui-with-floating-input"},i.default.createElement("h1",{className:"sui-header-title"},(0,l.translate)("Edit Quiz")),i.default.createElement("div",{className:"sui-actions-right"},i.default.createElement(u.default,e)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(190),u=r(s),l=n(1)},function(e,t,n){"use strict";function r(e){return forminatorData.showDocLink?a.default.createElement("a",{href:"https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#quizzes",target:"_blank",className:"sui-button sui-button-ghost"},a.default.createElement("i",{className:"sui-icon-academy"})," ",(0,i.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(41),f=r(c),p=n(192),d=r(p),h={preview:d.default.previewModal,publish:d.default.publishModal,delete:d.default.deleteModal,shortcode:d.default.shortcodeModal,question:d.default.questionModal,submit:d.default.submitModal,personality:d.default.personalityModal,deletePersonality:d.default.deletePersonalityModal},m=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var n=f.default.findDOMNode(this);this.props.modal.modalProps.open?n.removeAttribute("aria-hidden"):this.hideModalTimeout=setTimeout(function(){n.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){if(!this.props.modal.modalType)return null;var e="",t=["sui-dialog-overlay","sui-fade-in"],n=["sui-dialog-content","sui-bounce-in"];this.props.modal.modalProps.open||(t=["sui-dialog-overlay","sui-fade-out"],n=["sui-dialog-content","sui-bounce-out"]);var r=h[this.props.modal.modalType];return"publish"!==this.props.modal.modalType&&"shortcode"!==this.props.modal.modalType||(e=" sui-dialog-sm fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deletePersonality"!==this.props.modal.modalType||(e=" sui-dialog-sm"),l.default.createElement("div",{id:"forminator-modal",className:"sui-dialog"+e,tabIndex:"-1"},l.default.createElement("div",{className:""+t.join(" "),onClick:this.props.modal.modalProps.closeModal}),l.default.createElement("div",{className:""+n.join(" "),"aria-labelledby":"dialogTitle","aria-describedby":"dialogDescription",role:"dialog"},l.default.createElement("div",{className:"sui-box",role:"document"},l.default.createElement(r,this.props))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(193),a=r(o),i=n(194),s=r(i),u=n(195),l=r(u),c=n(196),f=r(c),p=n(197),d=r(p),h=n(198),m=r(h),y=n(201),b=r(y),v=n(202),g=r(v),_={previewModal:a.default,publishModal:s.default,deleteModal:l.default,shortcodeModal:d.default,questionModal:m.default,submitModal:b.default,personalityModal:g.default,deletePersonalityModal:f.default};t.default=_},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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.previewLoaded=n.previewLoaded.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$body=jQuery(this.body),this.mounted=!0,this.load(),jQuery(document).off("after.load.forminator"),jQuery(document).on("after.load.forminator",this.previewLoaded)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"previewLoaded",value:function(){this.$body.find(".sui-notice-loading").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",render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},"Preview"),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),u.default.createElement("div",{ref:function(t){return e.body=t},className:"sui-box-body"},u.default.createElement("div",{className:"sui-notice sui-notice-loading"},u.default.createElement("p",null,(0,l.translate)("Loading preview…"))),u.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),t}(s.Component);t.default=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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Publishing quiz…"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Great work! Please hold tight a few moments while we publish your quiz to the world."))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Question")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Deleting this question will remove its value from the existing submissions as well."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("DELETE")))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Personality")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Are you sure you wish to delete this Personality? Questions in your quiz may end up with the answers without any associated Personality."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("Delete")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(44),p=r(f),d=function(e){function t(e){o(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.copyToClipboard=n.copyToClipboard.bind(n),n}return i(t,e),s(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new p.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"render",value:function(){var e=this;return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-box-header sui-block-content-center"},l.default.createElement("i",{className:"sui-icon-check sui-lg","aria-hidden":"true"}),l.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Ready to go!")),l.default.createElement("button",{className:"sui-dialog-close forminator-cancel-create-form","aria-label":(0,c.translate)("Close this dialog window"),onClick:this.closeModal})),l.default.createElement("div",{className:"sui-box-body sui-block-content-center"},l.default.createElement("p",null,l.default.createElement("small",null,(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!"))),l.default.createElement("div",{id:"forminator-form-name-input",className:"sui-form-field"},l.default.createElement("label",{htmlFor:"forminator-form-name",className:"sui-label"},(0,c.translate)("Shortcode")),l.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},l.default.createElement("input",{type:"text",id:"forminator-form-shortcode",ref:function(t){return e.input=t},className:"sui-form-control",defaultValue:'[forminator_quiz id="'+this.props.id+'"]'}),l.default.createElement("button",{className:"sui-button-icon",onClick:this.copyToClipboard},l.default.createElement("i",{"aria-hidden":"true",className:"sui-icon-copy"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Copy shortcode")))))),forminatorData.showBranding&&l.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=(r(h),n(6)),y=(r(m),n(2)),b=r(y),v=n(76),g=r(v),w=n(199),E=r(w),O=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 u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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(){if(_.isUndefined(this.state.title)||_.isEmpty(this.state.title))return!1;if(_.isUndefined(this.state.answers)||_.isEmpty(this.state.answers))return!1;var e=_.filter(this.state.answers,function(e){return!(!_.isEmpty(e.title)||!_.isEmpty(e.image))});if(!_.isEmpty(e))return!1;if("knowledge"===this.state.type){if(!_.some(this.state.answers,function(e){return e.toggle}))return!1}if("nowrong"===this.state.type){if(_.some(this.state.answers,function(e){return _.isEmpty(e.result)}))return!1}return!0}},{key:"render",value:function(){var e=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Edit Question"),t=!0===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(b.default,l({},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})),p.default.createElement(g.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty,darkLabel:!0})),p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,d.translate)("Answers")," ",p.default.createElement("span",{className:"sui-error"},"*")),p.default.createElement("span",{className:"sui-description"},(0,d.translate)("You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected.")))),p.default.createElement(E.default,l({},this.props,{state:this.state,type:this.data.type,results:this.data.results,updateProperty:this.updateProperty})),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(200),h=r(d),m=function(e){function t(e){a(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(o(n.props.state.answers))},n}return s(t,e),l(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 o=n.item.index();e.moveOption(o,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 f.default.createElement("div",{className:"sui-box-body",style:{paddingBottom:"0"},ref:function(t){return e.el=t}},f.default.createElement("div",{className:"sui-box-builder sui-flushed"},f.default.createElement("div",{className:"sui-box-builder-body"},f.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,n){return f.default.createElement(h.default,u({key:n,counter:n,answer:t,removeAnswer:e.removeAnswer,updateTitle:e.updateTitle,updateImage:e.updateImage,updateCheckbox:e.updateCheckbox,updateResult:e.updateResult},e.props))})),f.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addAnswer},f.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(43),b=r(y),v=n(15),g=(r(v),function(e){function t(e){o(this,t);var n=a(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),u(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)&&("nowrong"!==this.props.answer.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",fieldClass:"sui-auto",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,f.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,f.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,f.translate)("Delete answer")))))}}]),t}(l.Component));t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default: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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(10),h=r(d),m=n(6),y=r(m),b=n(2),v=r(b),g=function(e){function t(e){a(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),l(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"applyChanges",value:function(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"sui-box-header"},f.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,p.translate)("Submit Button")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,p.translate)("Close this dialog window"),onClick:this.closeModal}))),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Text"),placeholder:(0,p.translate)("Enter text"),property:"button-text",updateProperty:this.updateProperty}))),f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Processing Text"),placeholder:(0,p.translate)("Sending..."),property:"button-processing-text",description:(0,p.translate)("This text will appear as button text while the quiz is being submitted."),updateProperty:this.updateProperty})))),f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"12"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Custom CSS Classes"),placeholder:(0,p.translate)("E.g. form-submit-btn"),property:"custom-class",description:(0,p.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}))))),f.default.createElement("div",{className:"sui-box-footer"},f.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},f.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,p.translate)("Discard Changes")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,p.translate)("Apply")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(76),E=r(w),O=n(39),j=r(O),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.result,n}return u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Personality"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(g.default,l({},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})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(E.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(j.default,l({},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")}}))))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=P},function(e,t,n){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:o,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var o=t.UPDATE_TITLE="UPDATE_TITLE"},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(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)?"sui-form-field-error":"";return u.default.createElement("div",{className:"sui-form-field sui-with-floating-input "+n},u.default.createElement("input",{type:"text",placeholder:(0,l.translate)("Give your quiz a name"),value:t,className:"sui-form-control",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)}}),_.isEmpty(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,l.translate)("Please, enter a valid name.")))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.openModal=n.openModal.bind(n),n}return a(t,e),i(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,l.translate)("Preview")},"preview"),$("#forminator-quiz-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 u.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,l.translate)("Preview"))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return u.default.createElement("select",{className:"sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children)}}]),t}(s.Component);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=(n(1),n(66)),p=r(f),d=n(72),h=r(d),m=n(208),y=r(m),b=n(209),v=r(b),g=function(e){function t(e){o(this,t);var n=a(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),u(t,[{key:"publish",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({publishLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"publish",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({draftLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"draft",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"draft")},1500)}},{key:"save",value:function(e,t){var n=this,r=this,o=this.props,a=o.status,i=o.type;p.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(o){-1===e.form_id&&(n.props.actions.settingsActions.updateSetting("form_id",o.data.data),forminatorData.currentForm.settings.form_id=o.data.data,"knowledge"===i?window.history.pushState({},"Edit Knowledge Quiz",forminatorData.knowledgeEditUrl+"&id="+o.data.data):window.history.pushState({},"Edit No Wrong Quiz",forminatorData.noWrongEditUrl+"&id="+o.data.data)),n.props.actions.settingsActions.saveBuilder("form_status",t),n.setState({publishLoading:!1,draftLoading:!1}),("draft"===a&&"publish"===t||_.isUndefined(a)&&"publish"===t)&&setTimeout(function(){var e=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:e},"shortcode")},50)}).catch(function(e){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(y.default,s({},this.props,{state:this.state})),c.default.createElement(v.default,s({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(l.Component);t.default=g},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 a.default.createElement("div",{className:"sui-status"},a.default.createElement("div",{className:"sui-status-module"},"Status",a.default.createElement("span",{className:"sui-tag "+n},function(){switch(t){case"publish":return(0,i.translate)("Published");default:return(0,i.translate)("Draft")}}())),r&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,i.translate)("Saving...")),!r&&e.changed.settings&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,i.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&a.default.createElement("div",{className:"sui-status-changes"},a.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 o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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 a(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this,t=this.props,n=t.status,r=t.title;_.isEmpty(r)||(this.props.publish(),("draft"===n||_.isEmpty(n))&&(this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"),setTimeout(function(){e.closeModal()},1500)))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e)||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,n=t.draftLoading,r=t.publishLoading;return u.default.createElement("div",{className:"sui-actions"},u.default.createElement("button",{id:"forminator-module-save",disabled:!!n,className:"sui-button",onClick:this.draft},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-save","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Unpublish");default:return(0,l.translate)("Save Draft")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),u.default.createElement("button",{id:"forminator-module-publish",disabled:!!r,className:"sui-button sui-button-blue",onClick:this.publish},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Update");default:return(0,l.translate)("Publish")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(39),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.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,f.translate)("Title")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.translate)("Title"),type:"text",placeholder:(0,f.translate)("Which superhero are you?"),description:(0,f.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,f.translate)("Feature Image")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.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,f.translate)("Description")),c.default.createElement("span",{className:"sui-description"},(0,f.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:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",label:"",mainOptions:{quiz_name:(0,f.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,f.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,f.translate)("Personalities"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(212),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Questions"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},"knowledge"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),"personality"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("personalities")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Personalities")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,c.translate)("Appearance"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(213),d=r(p),h=n(214),m=r(h),y=function(e){function t(e){o(this,t);var n=a(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),u(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 o=n.item.index();e.moveOption(o,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,f.randNumber)()+"-"+(0,f.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,f.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,f.translate)("A quiz without questions is not going to be very useful… Add your questions above!")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))),c.default.createElement(m.default,this.props))}}]),t}(l.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 o(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 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}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(1),f=function(e){function t(e){o(this,t);var n=a(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=Object.assign({},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+")"),l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},l.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},l.default.createElement("span",{style:{backgroundImage:e}})),l.default.createElement("span",null,this.props.question.title))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open field settings"))),l.default.createElement("ul",null,l.default.createElement("li",null,l.default.createElement("button",{onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),l.default.createElement("li",null,l.default.createElement("button",{onClick:this.duplicateQuestion},l.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),l.default.createElement("li",null,l.default.createElement("button",{className:"sui-option-red",onClick:this.deleteQuestion},l.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(u.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.editSettings=n.editSettings.bind(n),n}return a(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,l.translate)("Submit"):this.props.settings.submitData["button-text"];return u.default.createElement("div",{className:"sui-box-builder-footer sui-fields-boxed"},u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},u.default.createElement("div",{onClick:this.editSettings,className:"sui-field-info"},u.default.createElement("div",{className:"sui-builder-field-label"},u.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),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",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(216),b=r(y),v=n(217),g=r(v),_=n(218),w=r(_),E=n(219),O=r(E),j=n(220),P=r(j),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Design Style"),description:(0,f.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,f.translate)("Default")),c.default.createElement(g.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Flat")),c.default.createElement(w.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Bold")),c.default.createElement(O.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Material")),c.default.createElement(P.default,{value:"none",boxClass:"sui-tab-content"},(0,f.translate)("None"))))}}]),t}(l.Component);t.default=x},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--default"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--flat"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--bold"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--material"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(167),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Options Layout"),description:(0,f.translate)("Choose how you want to display the quiz options to the viewers.")},c.default.createElement(m.default,s({},this.props,{radioClass:"sui-radio-sm",property:"visual_style"}),c.default.createElement("div",{value:"list",hasImage:!0,image1x:"quiz-list.png",image2x:"quiz-list@2x.png"},(0,f.translate)("List")),c.default.createElement("div",{value:"grid",hasImage:!0,image1x:"quiz-grid.png",image2x:"quiz-grid@2x.png"},(0,f.translate)("Grid"))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(24),m=r(h),y=n(168),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Custom CSS"),description:(0,f.translate)("For more advanced customization options use custom CSS.")},c.default.createElement(m.default,s({},this.props,{label:(0,f.translate)("Enable custom CSS"),property:"use-custom-css"})),e)}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Rendering")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want your poll 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,f.translate)("Load quiz using AJAX"),description:(0,f.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,f.translate)("Prevent page caching on quiz pages"),description:(0,f.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}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(225),b=r(y),v=n(18),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Social Sharing"),description:(0,f.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,f.translate)("Enable")})),c.default.createElement(g.default,{value:"off",label:(0,f.translate)("Disable")})))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(43),d=r(p),h=n(75),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Social Sharing Platforms")),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),fieldId:"share-facebook",property:"facebook",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),fieldId:"share-twitter",property:"twitter",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),fieldId:"share-linkedin",property:"linkedin",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(m.default,s({},this.props,{property:"social-share-message",defaultValue:"I got {quiz_result} on {quiz_name} quiz!",label:(0,f.translate)("Social Share Message"),type:"textarea",rows:"5"}),c.default.createElement("option",{value:"{quiz_result}","data-content":"quiz_result"},(0,f.translate)("Quiz Result")),c.default.createElement("option",{value:"{quiz_name}","data-content":"quiz_name"},(0,f.translate)("Quiz Name")),c.default.createElement("option",{value:"{embed_title}","data-content":"embed_title"},(0,f.translate)("Page/Post Title")),c.default.createElement("option",{value:"{embed_url}","data-content":"embed_url"},(0,f.translate)("Page/Post URL")),c.default.createElement("option",{value:"{site_url}","data-content":"{site_url}"},(0,f.translate)("Site URL")))),c.default.createElement("div",{className:"sui-notice sui-notice-info",style:{marginTop:"10px"}},c.default.createElement("p",null,(0,f.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://premium.wpmudev.org/project/smartcrawl-wordpress-seo/"})}}))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(227),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-notifications",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Email Notifications"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Behaviour")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("integrations")}},(0,c.translate)("Integrations"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(24),m=r(h),y=n(175),b=r(y),v=n(39),g=r(v),w=n(75),E=r(w),O=n(29),j=r(O),P=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getNameOptions",value:function(){var e=[];return _.map(forminatorData.variables,function(t,n){e.push({label:t,value:n})}),e}},{key:"getEmailOptions",value:function(){return[]}},{key:"getRecipientTagsOptions",value:function(){return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,f.translate)("Searching")},noResults:function(){return(0,f.translate)("No Result Found")}},placeholder:(0,f.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}},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:$("<span><b>"+e.text+"</b> - <small>"+e.display_name+"</small></span>")},createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcBccOptions",value:function(){return{tags:!0,placeholder:(0,f.translate)("None"),createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-cc-address"])||!_.isArray(this.props.settings["admin-email-cc-address"])?[]:this.props.settings["admin-email-cc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getBccAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-bcc-address"])||!_.isArray(this.props.settings["admin-email-bcc-address"])?[]:this.props.settings["admin-email-bcc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getAutoCreateEmailAddressOptions",value:function(){return{tags:!0,createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null},insertTag:function(e,t){e.push(t)}}}},{key:"getFromAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("Default")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-from-address"])?"":this.props.settings["admin-email-from-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"getReplyToAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("None")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-reply-to-address"])?"":this.props.settings["admin-email-reply-to-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"render",value:function(){return this.getEmailOptions().unshift({value:"",label:(0,f.translate)("Default")}),this.getEmailOptions().unshift({value:"",label:(0,f.translate)("None")}),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,f.translate)("Admin Email")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Optionally, you can send a notification email to nominated email accounts when quiz submissions come in."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(m.default,s({},this.props,{property:"use-admin-email",label:(0,f.translate)("Send an email to admin users")})),!_.isUndefined(this.props.settings["use-admin-email"])&&this.props.settings["use-admin-email"]&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(E.default,s({},this.props,{property:"admin-email-from-name",placeholder:(0,f.translate)("Default"),label:(0,f.translate)("From Name")}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-from-address",label:(0,f.translate)("From Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getFromAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(b.default,s({},this.props,{property:"admin-email-recipients",placeholder:(0,f.translate)("Recipient(s)"),options:this.getRecipientTagsOptions(),label:(0,f.translate)("Recipients"),note:(0,f.translate)("Add as many emails as you like")})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-reply-to-address",label:(0,f.translate)("Reply To Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getReplyToAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-cc-address",label:(0,f.translate)("CC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getCcAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-bcc-address",label:(0,f.translate)("BCC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getBccAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(d.default,s({},this.props,{property:"admin-email-title",placeholder:(0,f.translate)("Enter subject"),label:(0,f.translate)("Subject"),defaultValue:""})),c.default.createElement(g.default,s({},this.props,{property:"admin-email-editor",editorOptions:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",mainOptions:{quiz_name:(0,f.translate)("Quiz Name"),quiz_answer:(0,f.translate)("Quiz Answer"),quiz_result:(0,f.translate)("Quiz Result")},label:(0,f.translate)("Body")})))))}}]),t}(l.Component);t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(169);r(f);n(171);var p=function(e){function t(e){o(this,t);var n=a(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_quiz_addons&_ajax_nonce="+forminatorData.addonNonce+"&data[quiz_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,o=function(t){e.props.history.push("/"+t)},a="";return a=t?l.default.createElement("div",{className:"sui-notice sui-notice-loading"},l.default.createElement("p",null,(0,c.translate)("Fetching integration list…"))):_.isUndefined(r)||+r<=0?l.default.createElement("div",{className:"sui-notice sui-notice-warning"},l.default.createElement("p",null,(0,c.translate)("You need to save this quiz before using integrations.")),l.default.createElement("div",{className:"sui-notice-buttons"},l.default.createElement("a",{className:"sui-button",onClick:this.loadIntegrations},(0,c.translate)("TRY AGAIN")))):l.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:n}}),l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Integrations"))),l.default.createElement("div",{className:"sui-box-body"},a),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return o("notifications")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Email Notifications")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return o("settings")}},(0,c.translate)("Settings"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(230),p=r(f),d=n(231),h=r(d),m=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Settings"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props),l.default.createElement(h.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,c.translate)("Integrations"))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,f.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",label:(0,f.translate)("Disable store submissions in my database"),description:(0,f.translate)("If you don't want to store submissions in your database you can disable this feature. Alternately you can also schedule automatic deletion of submissions after a period of time below.")}))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(12),d=r(p),h=n(7),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(15),E=r(w),O=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){var e=_.isEmpty(forminatorData.submissions_quiz_retain_number)||"0"===forminatorData.submissions_quiz_retain_number,t=(0,f.translate)("forever");return e||(t=forminatorData.submissions_quiz_retain_number+" "+forminatorData.submissions_quiz_retain_unit),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,f.translate)("Privacy")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want to handle this quiz’s data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=data",target:"_blank"})}}))),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,f.translate)("Submissions")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.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,f.translate)("Use default")},c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,f.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,f.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(E.default,s({},this.props,{defaultValue:"days",property:"submissions-retention-unit"}),c.default.createElement("option",{value:"days"},(0,f.translate)("day(s)")),c.default.createElement("option",{value:"weeks"},(0,f.translate)("week(s)")),c.default.createElement("option",{value:"months"},(0,f.translate)("month(s)")),c.default.createElement("option",{value:"years"},(0,f.translate)("year(s)"))))),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Leave the field blank to retain submissions forever.")))))))}}]),t}(l.Component);t.default=O},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=r(o),i=n(41),s=n(4),u=n(19),l=n(183),c=r(l),f=n(58),p=r(f),d=n(449),h=r(d),m=(0,c.default)(forminatorData.currentForm);p.default.setLocale(forminatorl10n.locale),window.forminatorChanges={questions:[],results:[],settings:!1},(0,i.render)(a.default.createElement(s.Provider,{store:m},a.default.createElement(u.MemoryRouter,null,a.default.createElement(u.Route,{component:h.default}))),document.getElementById("forminator-knowledge-builder"))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=(n(4),n(1)),p=n(450),d=r(p),h=n(451),m=r(h),y=n(452),b=r(y),v=n(455),g=r(v),_=n(456),w=r(_),E=n(457),O=r(E),j=n(458),P=r(j),x=n(479),k=r(x),C=n(483),N=r(C),S=n(484),T=r(S),A=n(485),M=r(A),F=function(e){function t(e){return o(this,t),a(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(e.preventDefault(),window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.returnValue=(0,f.translate)("You have unsaved changes, are you sure want to leave this page"),(0,f.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){return l.default.createElement("div",null,l.default.createElement(d.default,null),l.default.createElement("div",{className:"sui-row-with-sidenav"},l.default.createElement("div",{className:"sui-sidenav"},l.default.createElement(b.default,this.props)),l.default.createElement("div",null,l.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},l.default.createElement(g.default,null)),l.default.createElement(c.Route,{exact:!0,path:"/",render:function(){return l.default.createElement(c.Redirect,{to:"/intro"})}}),l.default.createElement(c.Route,{path:"/intro",component:w.default}),l.default.createElement(c.Route,{path:"/questions",component:O.default}),l.default.createElement(c.Route,{path:"/appearance",component:P.default}),l.default.createElement(c.Route,{path:"/behaviour",component:k.default}),l.default.createElement(c.Route,{path:"/notifications",component:N.default}),l.default.createElement(c.Route,{path:"/integrations",component:T.default}),l.default.createElement(c.Route,{path:"/settings",component:M.default}))),l.default.createElement(m.default,this.props))}}]),t}(u.Component);t.default=F},function(e,t,n){"use strict";function r(e){return{id:e.settings.form_id}}function o(e){return(0,i.bindActionCreators)(u,e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=n(5),s=n(25),u=function(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}(s),l=n(189),c=function(e){return e&&e.__esModule?e:{default:e}}(l);t.default=(0,a.connect)(r,o)(c.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 o(e){return{modal:e.modal,questions:e.questions,settings:e.settings,type:"knowledge",id:e.settings.form_id||-1}}function a(e){return{actions:{builderActions:(0,s.bindActionCreators)(f,e),settingsActions:(0,s.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(191),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(173),f=r(c),p=n(25),d=r(p);t.default=(0,i.connect)(o,a)(l.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 o(e){return{id:e.settings.form_id,title:e.settings.formName||""}}function a(e){return{actions:{navigationActions:(0,s.bindActionCreators)(f,e),modalActions:(0,s.bindActionCreators)(l,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(26),l=r(u),c=n(203),f=r(c),p=n(453),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(454),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=n(1),p=n(204),d=r(p),h=n(205),m=r(h),y=n(206),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-sidenav-sticky sui-sidenav-hide-md"},l.default.createElement("ul",{className:"sui-vertical-tabs sui-alt-design"},l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/intro",activeClassName:"current"},(0,f.translate)("Intro"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/questions",activeClassName:"current"},(0,f.translate)("Questions"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,f.translate)("Appearance"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,f.translate)("Behaviour"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,f.translate)("Email Notifications"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,f.translate)("Integrations"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(m.default,this.props))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(d.default,this.props),l.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},l.default.createElement("label",{className:"sui-label"},(0,f.translate)("Navigate")),l.default.createElement(b.default,this.props,l.default.createElement("option",{value:""},(0,f.translate)("Intro")),l.default.createElement("option",{value:"questions"},(0,f.translate)("Questions")),l.default.createElement("option",{value:"appearance"},(0,f.translate)("Appearance")),l.default.createElement("option",{value:"behaviour"},(0,f.translate)("Behaviour")),l.default.createElement("option",{value:"notifications"},(0,f.translate)("Email Notifications")),l.default.createElement("option",{value:"integrations"},(0,f.translate)("Integrations")),l.default.createElement("option",{value:"settings"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-hide-lg"},l.default.createElement(m.default,this.props))))}}]),t}(u.Component);t.default=v},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 o(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges,type:"knowledge"}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(207),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(210),m=o(h);t.default=(0,u.connect)(a,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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,questions:e.questions,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(d,e),builderActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(173),f=r(c),p=n(25),d=r(p),h=n(26),m=r(h),y=n(211),b=o(y);t.default=(0,u.connect)(a,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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(459),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(66),p=r(f),d=n(72),h=r(d),m=n(215),y=r(m),b=n(460),v=r(b),g=n(468),w=r(g),E=n(221),O=r(E),j=n(222),P=r(j),x=function(e){function t(e){return o(this,t),a(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};p.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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Appearance"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(y.default,this.props),l.default.createElement(v.default,this.props),l.default.createElement(w.default,this.props),l.default.createElement(O.default,this.props),l.default.createElement(P.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("questions")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Questions")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behaviour"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(461),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Colors"),description:(0,f.translate)("Adjust the default colour 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,f.translate)("Default")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(462),m=r(h),y=n(463),b=r(y),v=n(464),g=r(v),_=n(465),w=r(_),E=n(466),O=r(E),j=n(467),P=r(j),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Basic")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Container")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Checkbox")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Text")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share")}),c.default.createElement(P.default,this.props)))}}]),t}(l.Component);t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"knowledge-title-color",defaultValue:"#333333"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Description color"),property:"knowledge-description-color",defaultValue:"#8C8C8C"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question color"),property:"knowledge-question-color",defaultValue:"#333333"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz result color"),property:"knowledge-summary-color",defaultValue:"#333333"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-border-static",defaultValue:"#EBEDEB",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-background-static",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-background-hover",defaultValue:"#F3FBFE",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-background-active",defaultValue:"#F3FBFE",isAlpha:!0}))),c.default.createElement(m.default,{value:"right",label:(0,f.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-aright-border",defaultValue:"#0BC30B",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-aright-background",defaultValue:"#F4FCF2",isAlpha:!0}))),c.default.createElement(m.default,{value:"wrong",label:(0,f.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-awrong-border",defaultValue:"#DA0000",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-awrong-background",defaultValue:"#FDF2F2",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-static",defaultValue:"#BFBFBF",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-active",defaultValue:"#17A8E3",isAlpha:!0}))),c.default.createElement(m.default,{value:"right",label:(0,f.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-correct",defaultValue:"#0BC30B",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-correct",defaultValue:"#0BC30B",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Icon color"),property:"knowledge-answer-icon-correct",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"wrong",label:(0,f.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-incorrect",defaultValue:"#DA0000",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-incorrect",defaultValue:"#DA0000",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Icon color"),property:"knowledge-answer-icon-incorrect",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-answer-color-static",defaultValue:"#888888"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer result message"),property:"knowledge-phrasing-color",defaultValue:"#4D4D4D"}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-answer-color-active",defaultValue:"#333333"}))),c.default.createElement(m.default,{value:"right",label:(0,f.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-aright-color",defaultValue:"#0BC30B"}))),c.default.createElement(m.default,{value:"wrong",label:(0,f.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-awrong-color",defaultValue:"#DA0000"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-submit-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"knowledge-submit-color-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-submit-background-hover",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"knowledge-submit-color-hover",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-submit-background-active",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"knowledge-submit-color-active",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"knowledge-sshare-color",defaultValue:"#4D4D4D"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),property:"knowledge-social-facebook",defaultValue:"#0084BF"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),property:"knowledge-social-twitter",defaultValue:"#1DA1F2"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Google+"),property:"knowledge-social-google",defaultValue:"#DB4437"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),property:"knowledge-social-linkedin",defaultValue:"#0084BF"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(469),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Fonts"),description:(0,f.translate)("By default this quiz will inherit the fonts your theme uses. You can override these fonts with custom ones from Google Fonts.")},c.default.createElement(m.default,s({},this.props,{property:"knowledge-toggle-typography",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,f.translate)("Use Theme Fonts")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(470),m=r(h),y=n(471),b=r(y),v=n(472),g=r(v),_=n(473),w=r(_),E=n(474),O=r(E),j=n(475),P=r(j),x=n(476),k=r(x),C=n(477),N=r(C),S=n(478),T=r(S),A=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Title")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Description")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer Result Message")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(P.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Result")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Title")}),c.default.createElement(N.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Icons")}),c.default.createElement(T.default,this.props)))}}]),t}(l.Component);t.default=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-title",defaultFont:"Roboto",defaultSize:"42",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-description",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-question",defaultFont:"Roboto",defaultSize:"24",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-answer",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-phrasing",defaultFont:"Roboto",defaultSize:"16",defaultWeight:"700"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-submit",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-summary",defaultFont:"Roboto",defaultSize:"40",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-sshare",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(20),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{property:"knowledge-social-size",defaultValue:"36",label:(0,f.translate)("Icon size"),description:(0,f.translate)("Choose one of the pre-defined sizes we have for social share icons.")}),c.default.createElement("div",{value:"24"},(0,f.translate)("Regular")),c.default.createElement("div",{value:"30"},(0,f.translate)("Medium")),c.default.createElement("div",{value:"36"},(0,f.translate)("Large")))}}]),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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(480),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(223),p=r(f),d=n(481),h=r(d),m=n(482),y=r(m),b=n(224),v=r(b),g=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Behaviour"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(l.default.Fragment,null,l.default.createElement(h.default,this.props),l.default.createElement(y.default,this.props),l.default.createElement(v.default,this.props),l.default.createElement(p.default,this.props))),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("notifications")}},(0,c.translate)("Notifications"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(20),d=r(p),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Results Display")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose whether to display the correct answer as the user answers each question or after the quiz is submitted."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{property:"results_behav",defaultValue:"true"}),c.default.createElement("div",{value:"after"},(0,f.translate)("Real Time")),c.default.createElement("div",{value:"end"},(0,f.translate)("On Submission")))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(39),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Messages")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.translate)("Correct Answer Message"),description:(0,f.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,f.translate)("Incorrect Answer Message"),description:(0,f.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,f.translate)("Final Count Message"),description:(0,f.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,f.translate)("Quiz Name"),quiz_answer:(0,f.translate)("Quiz Answer"),quiz_result:(0,f.translate)("Quiz Result")}}))))}}]),t}(l.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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(226),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(26),a=n(228),i=function(e){return e&&e.__esModule?e:{default:e}}(a),s=function(e){return{hideModal:function(){return e((0,o.hideModal)())},showModal:function(t,n){e((0,o.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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(229),m=o(h);t.default=(0,u.connect)(a,i)(m.default)}]);
|
22 |
* @author Feross Aboukhadijeh <https://feross.org>
|
23 |
* @license MIT
|
24 |
*/
|
25 |
+
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 o=n(38),a=n(8),i=n(158),s=n(159);r.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,{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},a.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))}}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(8);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(69);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(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,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,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 o=n(8);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(o.isURLSearchParams(t))a=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(8),o=["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,a,i={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.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(8);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),i="",s=0,u=a;o.charAt(0|s)||(u="=",s%1);i+=u.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return i}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(8);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!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 o=n(8);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){o.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 o=n(8),a=n(160),i=n(70),s=n(38),u=n(161),l=n(162);e.exports=function(e){return r(e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.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=a(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(8);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 o(e),t(n.reason))})}var o=n(71);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(73),o=n(74),a={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},u=function e(t,n,o,a,i,u,l,c,f,p,d,h){var m=t;if("function"==typeof l)m=l(n,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return u&&!h?u(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m)){if(u){return[d(h?n:u(n,s.encoder))+"="+d(u(m,s.encoder))]}return[d(n)+"="+d(String(m))]}var y=[];if(void 0===m)return y;var b;if(Array.isArray(l))b=l;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[_],o(n,_),o,a,i,u,l,c,f,p,d,h)):y.concat(e(m[_],n+(f?"."+_:"["+_+"]"),o,a,i,u,l,c,f,p,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 l=void 0===i.delimiter?s.delimiter:i.delimiter,c="boolean"==typeof i.strictNullHandling?i.strictNullHandling:s.strictNullHandling,f="boolean"==typeof i.skipNulls?i.skipNulls:s.skipNulls,p="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=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var v,g,_=o.formatters[i.format];"function"==typeof i.filter?(g=i.filter,n=g("",n)):Array.isArray(i.filter)&&(g=i.filter,v=g);var w=[];if("object"!=typeof n||null===n)return"";var E;E=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=a[E];v||(v=Object.keys(n)),h&&v.sort(h);for(var j=0;j<v.length;++j){var P=v[j];f&&null===n[P]||(w=w.concat(u(n[P],P,O,c,f,p?d:null,g,h,m,y,_,b)))}var x=w.join(l),k=!0===i.addQueryPrefix?"?":"";return x.length>0?k+x:""}},function(e,t,n){"use strict";var r=n(73),o=Object.prototype.hasOwnProperty,a={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),u=0;u<s.length;++u){var l,c,f=s[u],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=t.decoder(f,a.decoder),c=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,d),a.decoder),c=t.decoder(f.slice(d+1),a.decoder)),o.call(n,l)?n[l]=[].concat(n[l]).concat(c):n[l]=c}return n},s=function(e,t,n){for(var r=t,o=e.length-1;o>=0;--o){var a,i=e[o];if("[]"===i)a=[],a=a.concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,u=parseInt(s,10);!isNaN(u)&&i!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=r):a[s]=r}r=a}return r},u=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,u=a.exec(r),l=u?r.slice(0,u.index):r,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;null!==(u=i.exec(r))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+r.slice(u.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:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?i(e,n):e,s=n.plainObjects?Object.create(null):{},l=Object.keys(o),c=0;c<l.length;++c){var f=l[c],p=u(f,o[f],n);s=r.merge(s,p,n)}return r.compact(s)}},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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=u.default.Children.map(this.props.children,function(r){var o="";return r.props.image1x&&r.props.image2x&&(o=u.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&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},o,u.default.createElement("span",{className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,value:r.props.value,id:"forminator-field-"+r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))):r.props.hasImage?void 0:u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,id:"forminator-field-"+r.props.value,value:r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))});return this.props.noWrapper?r:u.default.createElement("div",{className:"sui-form-field"},r)}}]),t}(s.Component);t.default=l},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.insertSelector=n.insertSelector.bind(n),n}return a(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,r=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Form")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-title ")}},(0,l.translate)("Section Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-subtitle ")}},(0,l.translate)("Section Subtitle")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label ")}},(0,l.translate)("Field Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label--helper ")}},(0,l.translate)("Field Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-input ")}},(0,l.translate)("Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-textarea ")}},(0,l.translate)("Textarea")))),o=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Poll")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--question ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--design ")}},(0,l.translate)("Answer Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--label ")}},(0,l.translate)("Answer Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-button ")}},(0,l.translate)("Submit Button")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--actions a ")}},(0,l.translate)("View Results Link")))),a=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Quiz")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,l.translate)("Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description ")}},(0,l.translate)("Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question legend ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer ")}},(0,l.translate)("Answer Container")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,l.translate)("Answer Text"))));return u.default.createElement(u.default.Fragment,null,"form"===n&&r,"poll"===n&&o,"quiz"===n&&a,u.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";var r=n(170),o=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,n,r){function a(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(a.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},a=n.data("nonce"),i=n.data("slug"),s=n.data("title"),u=n.data("image"),l=n.data("imagex2"),c=n.data("action"),f=n.data("form-id"),p=n.data("multi-id"),d=n.data("poll-id"),h=n.data("quiz-id"),m=_.template('<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup"><div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div><div class="sui-dialog-content sui-bounce-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog"><div class="sui-box" role="document"><div class="sui-box-header sui-block-content-center"><div class="sui-dialog-image" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image_x2 %> 2x" alt="<%= title %>" class="sui-image sui-image-center" /></div><div class="integration-header"></div><button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button><button class="sui-dialog-close forminator-integration-close" aria-label="Close"></button></div><div class="sui-box-body"></div><div class="sui-box-footer sui-box-footer-center"></div></div></div></div>');jQuery("main.sui-wrap").append(m({image:u,image_x2:l,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:i,nonce:a,action:c,multi_id:p,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=d:"quiz"===t.options.type&&(y.quiz_id=h),new o.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),jQuery("body").css("overflow","hidden"),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){var t=jQuery("#forminator-integration-popup");t.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),t.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),jQuery("body").css("overflow","auto"),setTimeout(function(){t.attr("aria-hidden","true")},300),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new a(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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(44),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){var n;r(this,t);var a=o(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"}}));return a.slug=e.slug,a.nonce=e.nonce,a.action=e.action,a.multi_id=e.multi_id,a.type=e.type,a.step=0,a.next_step=!1,a.prev_step=!1,a.scrollbar_width=a.getScrollbarWidth(),"form"===a.type?a.form_id=e.form_id:"poll"===a.type?a.poll_id=e.poll_id:"quiz"===a.type&&(a.quiz_id=e.quiz_id),n=a.render(),o(a,n)}return a(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=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"request",value:function(e,t,n){var r=this,o={data:e,close:t,loader:n};n&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var n=e.data.data;if(r.onRender(n),r.$el.find(".sui-button").removeClass("sui-button-onload"),(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 u.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 a=jQuery("#forminator-integration-popup");"normal"===n.size&&a.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n.size&&(a.addClass("sui-dialog-sm"),a.removeClass("sui-dialog-lg sui-dialog-reduced")),"reduced"===n.size&&(a.addClass("sui-dialog-reduced"),a.removeClass("sui-dialog-lg sui-dialog-sm")),"large"===n.size&&(a.addClass("sui-dialog-lg"),a.removeClass("sui-dialog-sm sui-dialog-reduced"))}n.is_poll&&setTimeout(r.request(o.data,o.close,o.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .integration-header").remove();t.length>0&&this.$el.find(".integration-header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,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,l.suiDelegateEvents)(),(0,l.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:"submitNextStep",value:function(e){var t={},n=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!1),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},n={slug:this.slug,step:this.getPrevStep(),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(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!0),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,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(),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,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(jQuery.browser.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"form"===this.type&&this.form_id?e.form_id=this.form_id:"poll"===this.type&&this.poll_id?e.poll_id=this.poll_id:"quiz"===this.type&&this.quiz_id&&(e.quiz_id=this.quiz_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":"form"===this.type?e="forminator_addon_form_deactivate":"poll"===this.type?e="forminator_addon_poll_deactivate":"quiz"===this.type&&(e="forminator_addon_quiz_deactivate")}return e}}]),t}(Backbone.View);t.default=c},function(e,t,n){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function o(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 a(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 w.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 u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(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=l(t);return t.readAsArrayBuffer(e),n}function f(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}function p(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:w.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:w.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():w.arrayBuffer&&w.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):w.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):w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},w.blob&&(this.blob=function(){var e=u(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?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w.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," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),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 o=n.join(":").trim();t.append(r,o)}}),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 o(){i.abort()}var a=new y(e,t);if(a.signal&&a.signal.aborted)return r(new x("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 x("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&w.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",o),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",o)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=s,t.Request=y,t.Response=g,n.d(t,"DOMException",function(){return x}),t.fetch=_;var w={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(w.arrayBuffer)var E=["[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&&E.indexOf(Object.prototype.toString.call(e))>-1};s.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[o(e)]},s.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},s.prototype.set=function(e,t){this.map[o(e)]=a(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)},w.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 P=[301,302,303,307,308];g.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var x=self.DOMException;try{new x}catch(e){x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},x.prototype=Object.create(Error.prototype),x.prototype.constructor=x}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=s,self.Request=y,self.Response=g)},,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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$el.on("change.select2",this.handleChange),_.each(t,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(t).trigger("change.select2")}},{key:"handleChange",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)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.handleChange),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],n="";return this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),u.default.createElement("div",{className:"sui-form-field"},n,u.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select",defaultValue:t,multiple:"multiple"},this.props.children))}}]),t}(s.Component);t.default=l},,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c(l.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(5),i=n(127),s=r(i),u=n(184),l=r(u),c=(0,a.compose)((0,a.applyMiddleware)(s.default))(a.createStore)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),a=n(185),i=r(a),s=n(186),u=r(s),l=n(187),c=r(l),f=n(188),p=r(f),d=(0,o.combineReducers)({questions:i.default,results:u.default,settings:c.default,modal:p.default});t.default=d},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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(e,t){var n=t.settings;return s({},e,n)}function a(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 o(n,t);case"UPDATE_SETTING":return r(n,t);case"UPDATE_TITLE":return a(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){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement("div",{className:"sui-header sui-header-inline sui-with-floating-input"},i.default.createElement("h1",{className:"sui-header-title"},(0,l.translate)("Edit Quiz")),i.default.createElement("div",{className:"sui-actions-right"},i.default.createElement(u.default,e)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(190),u=r(s),l=n(1)},function(e,t,n){"use strict";function r(e){return forminatorData.showDocLink?a.default.createElement("a",{href:"https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#quizzes",target:"_blank",className:"sui-button sui-button-ghost"},a.default.createElement("i",{className:"sui-icon-academy"})," ",(0,i.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(41),f=r(c),p=n(192),d=r(p),h={preview:d.default.previewModal,publish:d.default.publishModal,delete:d.default.deleteModal,shortcode:d.default.shortcodeModal,question:d.default.questionModal,submit:d.default.submitModal,personality:d.default.personalityModal,deletePersonality:d.default.deletePersonalityModal},m=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var n=f.default.findDOMNode(this);this.props.modal.modalProps.open?n.removeAttribute("aria-hidden"):this.hideModalTimeout=setTimeout(function(){n.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){if(!this.props.modal.modalType)return null;var e="",t=["sui-dialog-overlay","sui-fade-in"],n=["sui-dialog-content","sui-bounce-in"];this.props.modal.modalProps.open||(t=["sui-dialog-overlay","sui-fade-out"],n=["sui-dialog-content","sui-bounce-out"]);var r=h[this.props.modal.modalType];return"publish"!==this.props.modal.modalType&&"shortcode"!==this.props.modal.modalType||(e=" sui-dialog-sm fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deletePersonality"!==this.props.modal.modalType||(e=" sui-dialog-sm"),l.default.createElement("div",{id:"forminator-modal",className:"sui-dialog"+e,tabIndex:"-1"},l.default.createElement("div",{className:""+t.join(" "),onClick:this.props.modal.modalProps.closeModal}),l.default.createElement("div",{className:""+n.join(" "),"aria-labelledby":"dialogTitle","aria-describedby":"dialogDescription",role:"dialog"},l.default.createElement("div",{className:"sui-box",role:"document"},l.default.createElement(r,this.props))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(193),a=r(o),i=n(194),s=r(i),u=n(195),l=r(u),c=n(196),f=r(c),p=n(197),d=r(p),h=n(198),m=r(h),y=n(201),b=r(y),v=n(202),g=r(v),_={previewModal:a.default,publishModal:s.default,deleteModal:l.default,shortcodeModal:d.default,questionModal:m.default,submitModal:b.default,personalityModal:g.default,deletePersonalityModal:f.default};t.default=_},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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.previewLoaded=n.previewLoaded.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$body=jQuery(this.body),this.mounted=!0,this.load(),jQuery(document).off("after.load.forminator"),jQuery(document).on("after.load.forminator",this.previewLoaded)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"previewLoaded",value:function(){this.$body.find(".sui-notice-loading").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",render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},"Preview"),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),u.default.createElement("div",{ref:function(t){return e.body=t},className:"sui-box-body"},u.default.createElement("div",{className:"sui-notice sui-notice-loading"},u.default.createElement("p",null,(0,l.translate)("Loading preview…"))),u.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),t}(s.Component);t.default=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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Publishing quiz…"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Great work! Please hold tight a few moments while we publish your quiz to the world."))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Question")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Deleting this question will remove its value from the existing submissions as well."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("DELETE")))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Personality")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Are you sure you wish to delete this Personality? Questions in your quiz may end up with the answers without any associated Personality."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("Delete")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(44),p=r(f),d=function(e){function t(e){o(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.copyToClipboard=n.copyToClipboard.bind(n),n}return i(t,e),s(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new p.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"render",value:function(){var e=this;return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-box-header sui-block-content-center"},l.default.createElement("i",{className:"sui-icon-check sui-lg","aria-hidden":"true"}),l.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Ready to go!")),l.default.createElement("button",{className:"sui-dialog-close forminator-cancel-create-form","aria-label":(0,c.translate)("Close this dialog window"),onClick:this.closeModal})),l.default.createElement("div",{className:"sui-box-body sui-block-content-center"},l.default.createElement("p",null,l.default.createElement("small",null,(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!"))),l.default.createElement("div",{id:"forminator-form-name-input",className:"sui-form-field"},l.default.createElement("label",{htmlFor:"forminator-form-name",className:"sui-label"},(0,c.translate)("Shortcode")),l.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},l.default.createElement("input",{type:"text",id:"forminator-form-shortcode",ref:function(t){return e.input=t},className:"sui-form-control",defaultValue:'[forminator_quiz id="'+this.props.id+'"]'}),l.default.createElement("button",{className:"sui-button-icon",onClick:this.copyToClipboard},l.default.createElement("i",{"aria-hidden":"true",className:"sui-icon-copy"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Copy shortcode")))))),forminatorData.showBranding&&l.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=(r(h),n(6)),y=(r(m),n(2)),b=r(y),v=n(76),g=r(v),w=n(199),E=r(w),O=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 u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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(){if(_.isUndefined(this.state.title)||_.isEmpty(this.state.title))return!1;if(_.isUndefined(this.state.answers)||_.isEmpty(this.state.answers))return!1;var e=_.filter(this.state.answers,function(e){return!(!_.isEmpty(e.title)||!_.isEmpty(e.image))});if(!_.isEmpty(e))return!1;if("knowledge"===this.state.type){if(!_.some(this.state.answers,function(e){return e.toggle}))return!1}if("nowrong"===this.state.type){if(_.some(this.state.answers,function(e){return _.isEmpty(e.result)}))return!1}return!0}},{key:"render",value:function(){var e=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Edit Question"),t=!0===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(b.default,l({},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})),p.default.createElement(g.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty,darkLabel:!0})),p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,d.translate)("Answers")," ",p.default.createElement("span",{className:"sui-error"},"*")),p.default.createElement("span",{className:"sui-description"},(0,d.translate)("You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected.")))),p.default.createElement(E.default,l({},this.props,{state:this.state,type:this.data.type,results:this.data.results,updateProperty:this.updateProperty})),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(200),h=r(d),m=function(e){function t(e){a(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(o(n.props.state.answers))},n}return s(t,e),l(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 o=n.item.index();e.moveOption(o,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 f.default.createElement("div",{className:"sui-box-body",style:{paddingBottom:"0"},ref:function(t){return e.el=t}},f.default.createElement("div",{className:"sui-box-builder sui-flushed"},f.default.createElement("div",{className:"sui-box-builder-body"},f.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,n){return f.default.createElement(h.default,u({key:n,counter:n,answer:t,removeAnswer:e.removeAnswer,updateTitle:e.updateTitle,updateImage:e.updateImage,updateCheckbox:e.updateCheckbox,updateResult:e.updateResult},e.props))})),f.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addAnswer},f.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(43),b=r(y),v=n(15),g=(r(v),function(e){function t(e){o(this,t);var n=a(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),u(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)&&("nowrong"!==this.props.answer.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",fieldClass:"sui-auto",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,f.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,f.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,f.translate)("Delete answer")))))}}]),t}(l.Component));t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default: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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(10),h=r(d),m=n(6),y=r(m),b=n(2),v=r(b),g=function(e){function t(e){a(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),l(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"applyChanges",value:function(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"sui-box-header"},f.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,p.translate)("Submit Button")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,p.translate)("Close this dialog window"),onClick:this.closeModal}))),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Text"),placeholder:(0,p.translate)("Enter text"),property:"button-text",updateProperty:this.updateProperty}))),f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Processing Text"),placeholder:(0,p.translate)("Sending..."),property:"button-processing-text",description:(0,p.translate)("This text will appear as button text while the quiz is being submitted."),updateProperty:this.updateProperty})))),f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"12"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Custom CSS Classes"),placeholder:(0,p.translate)("E.g. form-submit-btn"),property:"custom-class",description:(0,p.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}))))),f.default.createElement("div",{className:"sui-box-footer"},f.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},f.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,p.translate)("Discard Changes")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,p.translate)("Apply")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(76),E=r(w),O=n(39),j=r(O),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.result,n}return u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Personality"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(g.default,l({},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})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(E.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(j.default,l({},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")}}))))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=P},function(e,t,n){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:o,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var o=t.UPDATE_TITLE="UPDATE_TITLE"},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(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)?"sui-form-field-error":"";return u.default.createElement("div",{className:"sui-form-field sui-with-floating-input "+n},u.default.createElement("input",{type:"text",placeholder:(0,l.translate)("Give your quiz a name"),value:t,className:"sui-form-control",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)}}),_.isEmpty(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,l.translate)("Please, enter a valid name.")))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.openModal=n.openModal.bind(n),n}return a(t,e),i(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,l.translate)("Preview")},"preview"),jQuery("#forminator-quiz-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 u.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,l.translate)("Preview"))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return u.default.createElement("select",{className:"sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children)}}]),t}(s.Component);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=(n(1),n(66)),p=r(f),d=n(72),h=r(d),m=n(208),y=r(m),b=n(209),v=r(b),g=function(e){function t(e){o(this,t);var n=a(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),u(t,[{key:"publish",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({publishLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"publish",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({draftLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"draft",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"draft")},1500)}},{key:"save",value:function(e,t){var n=this,r=this,o=this.props,a=o.status,i=o.type;p.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(o){-1===e.form_id&&(n.props.actions.settingsActions.updateSetting("form_id",o.data.data),forminatorData.currentForm.settings.form_id=o.data.data,"knowledge"===i?window.history.pushState({},"Edit Knowledge Quiz",forminatorData.knowledgeEditUrl+"&id="+o.data.data):window.history.pushState({},"Edit No Wrong Quiz",forminatorData.noWrongEditUrl+"&id="+o.data.data)),n.props.actions.settingsActions.saveBuilder("form_status",t),n.setState({publishLoading:!1,draftLoading:!1}),("draft"===a&&"publish"===t||_.isUndefined(a)&&"publish"===t)&&setTimeout(function(){var e=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:e},"shortcode")},50)}).catch(function(e){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(y.default,s({},this.props,{state:this.state})),c.default.createElement(v.default,s({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(l.Component);t.default=g},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 a.default.createElement("div",{className:"sui-status"},a.default.createElement("div",{className:"sui-status-module"},"Status",a.default.createElement("span",{className:"sui-tag "+n},function(){switch(t){case"publish":return(0,i.translate)("Published");default:return(0,i.translate)("Draft")}}())),r&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,i.translate)("Saving...")),!r&&e.changed.settings&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,i.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&a.default.createElement("div",{className:"sui-status-changes"},a.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 o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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 a(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this,t=this.props,n=t.status,r=t.title;_.isEmpty(r)||(this.props.publish(),("draft"===n||_.isEmpty(n))&&(this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"),setTimeout(function(){e.closeModal()},1500)))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e)||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,n=t.draftLoading,r=t.publishLoading;return u.default.createElement("div",{className:"sui-actions"},u.default.createElement("button",{id:"forminator-module-save",disabled:!!n,className:"sui-button",onClick:this.draft},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-save","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Unpublish");default:return(0,l.translate)("Save Draft")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),u.default.createElement("button",{id:"forminator-module-publish",disabled:!!r,className:"sui-button sui-button-blue",onClick:this.publish},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Update");default:return(0,l.translate)("Publish")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(39),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.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,f.translate)("Title")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.translate)("Title"),type:"text",placeholder:(0,f.translate)("Which superhero are you?"),description:(0,f.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,f.translate)("Feature Image")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.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,f.translate)("Description")),c.default.createElement("span",{className:"sui-description"},(0,f.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:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",label:"",mainOptions:{quiz_name:(0,f.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,f.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,f.translate)("Personalities"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(212),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Questions"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},"knowledge"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),"personality"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("personalities")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Personalities")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,c.translate)("Appearance"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(213),d=r(p),h=n(214),m=r(h),y=function(e){function t(e){o(this,t);var n=a(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),u(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 o=n.item.index();e.moveOption(o,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,f.randNumber)()+"-"+(0,f.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,f.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,f.translate)("A quiz without questions is not going to be very useful… Add your questions above!")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))),c.default.createElement(m.default,this.props))}}]),t}(l.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 o(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 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}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(1),f=function(e){function t(e){o(this,t);var n=a(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=Object.assign({},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+")"),l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},l.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},l.default.createElement("span",{style:{backgroundImage:e}})),l.default.createElement("span",null,this.props.question.title))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open field settings"))),l.default.createElement("ul",null,l.default.createElement("li",null,l.default.createElement("button",{onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),l.default.createElement("li",null,l.default.createElement("button",{onClick:this.duplicateQuestion},l.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),l.default.createElement("li",null,l.default.createElement("button",{className:"sui-option-red",onClick:this.deleteQuestion},l.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(u.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.editSettings=n.editSettings.bind(n),n}return a(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,l.translate)("Submit"):this.props.settings.submitData["button-text"];return u.default.createElement("div",{className:"sui-box-builder-footer sui-fields-boxed"},u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},u.default.createElement("div",{onClick:this.editSettings,className:"sui-field-info"},u.default.createElement("div",{className:"sui-builder-field-label"},u.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),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",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(216),b=r(y),v=n(217),g=r(v),_=n(218),w=r(_),E=n(219),O=r(E),j=n(220),P=r(j),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Design Style"),description:(0,f.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,f.translate)("Default")),c.default.createElement(g.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Flat")),c.default.createElement(w.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Bold")),c.default.createElement(O.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Material")),c.default.createElement(P.default,{value:"none",boxClass:"sui-tab-content"},(0,f.translate)("None"))))}}]),t}(l.Component);t.default=x},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--default"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--flat"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--bold"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--material"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(167),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Options Layout"),description:(0,f.translate)("Choose how you want to display the quiz options to the viewers.")},c.default.createElement(m.default,s({},this.props,{radioClass:"sui-radio-sm",property:"visual_style"}),c.default.createElement("div",{value:"list",hasImage:!0,image1x:"quiz-list.png",image2x:"quiz-list@2x.png"},(0,f.translate)("List")),c.default.createElement("div",{value:"grid",hasImage:!0,image1x:"quiz-grid.png",image2x:"quiz-grid@2x.png"},(0,f.translate)("Grid"))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(24),m=r(h),y=n(168),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Custom CSS"),description:(0,f.translate)("For more advanced customization options use custom CSS.")},c.default.createElement(m.default,s({},this.props,{label:(0,f.translate)("Enable custom CSS"),property:"use-custom-css"})),e)}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Rendering")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want your poll 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,f.translate)("Load quiz using AJAX"),description:(0,f.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,f.translate)("Prevent page caching on quiz pages"),description:(0,f.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}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(225),b=r(y),v=n(18),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Social Sharing"),description:(0,f.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,f.translate)("Enable")})),c.default.createElement(g.default,{value:"off",label:(0,f.translate)("Disable")})))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(43),d=r(p),h=n(75),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Social Sharing Platforms")),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),fieldId:"share-facebook",property:"facebook",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),fieldId:"share-twitter",property:"twitter",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),fieldId:"share-linkedin",property:"linkedin",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(m.default,s({},this.props,{property:"social-share-message",defaultValue:"I got {quiz_result} on {quiz_name} quiz!",label:(0,f.translate)("Social Share Message"),type:"textarea",rows:"5"}),c.default.createElement("option",{value:"{quiz_result}","data-content":"quiz_result"},(0,f.translate)("Quiz Result")),c.default.createElement("option",{value:"{quiz_name}","data-content":"quiz_name"},(0,f.translate)("Quiz Name")),c.default.createElement("option",{value:"{embed_title}","data-content":"embed_title"},(0,f.translate)("Page/Post Title")),c.default.createElement("option",{value:"{embed_url}","data-content":"embed_url"},(0,f.translate)("Page/Post URL")),c.default.createElement("option",{value:"{site_url}","data-content":"{site_url}"},(0,f.translate)("Site URL")))),c.default.createElement("div",{className:"sui-notice sui-notice-info",style:{marginTop:"10px"}},c.default.createElement("p",null,(0,f.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://premium.wpmudev.org/project/smartcrawl-wordpress-seo/"})}}))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(227),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-notifications",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Email Notifications"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Behaviour")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("integrations")}},(0,c.translate)("Integrations"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(24),m=r(h),y=n(175),b=r(y),v=n(39),g=r(v),w=n(75),E=r(w),O=n(29),j=r(O),P=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getNameOptions",value:function(){var e=[];return _.map(forminatorData.variables,function(t,n){e.push({label:t,value:n})}),e}},{key:"getEmailOptions",value:function(){return[]}},{key:"getRecipientTagsOptions",value:function(){return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,f.translate)("Searching")},noResults:function(){return(0,f.translate)("No Result Found")}},placeholder:(0,f.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}},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=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcBccOptions",value:function(){return{tags:!0,placeholder:(0,f.translate)("None"),createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-cc-address"])||!_.isArray(this.props.settings["admin-email-cc-address"])?[]:this.props.settings["admin-email-cc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getBccAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-bcc-address"])||!_.isArray(this.props.settings["admin-email-bcc-address"])?[]:this.props.settings["admin-email-bcc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getAutoCreateEmailAddressOptions",value:function(){return{tags:!0,createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null},insertTag:function(e,t){e.push(t)}}}},{key:"getFromAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("Default")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-from-address"])?"":this.props.settings["admin-email-from-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"getReplyToAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("None")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-reply-to-address"])?"":this.props.settings["admin-email-reply-to-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"render",value:function(){return this.getEmailOptions().unshift({value:"",label:(0,f.translate)("Default")}),this.getEmailOptions().unshift({value:"",label:(0,f.translate)("None")}),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,f.translate)("Admin Email")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Optionally, you can send a notification email to nominated email accounts when quiz submissions come in."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(m.default,s({},this.props,{property:"use-admin-email",label:(0,f.translate)("Send an email to admin users")})),!_.isUndefined(this.props.settings["use-admin-email"])&&this.props.settings["use-admin-email"]&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(E.default,s({},this.props,{property:"admin-email-from-name",placeholder:(0,f.translate)("Default"),label:(0,f.translate)("From Name")}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-from-address",label:(0,f.translate)("From Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getFromAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(b.default,s({},this.props,{property:"admin-email-recipients",placeholder:(0,f.translate)("Recipient(s)"),options:this.getRecipientTagsOptions(),label:(0,f.translate)("Recipients"),note:(0,f.translate)("Add as many emails as you like")})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-reply-to-address",label:(0,f.translate)("Reply To Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getReplyToAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-cc-address",label:(0,f.translate)("CC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getCcAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-bcc-address",label:(0,f.translate)("BCC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getBccAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(d.default,s({},this.props,{property:"admin-email-title",placeholder:(0,f.translate)("Enter subject"),label:(0,f.translate)("Subject"),defaultValue:""})),c.default.createElement(g.default,s({},this.props,{property:"admin-email-editor",editorOptions:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",mainOptions:{quiz_name:(0,f.translate)("Quiz Name"),quiz_answer:(0,f.translate)("Quiz Answer"),quiz_result:(0,f.translate)("Quiz Result")},label:(0,f.translate)("Body")})))))}}]),t}(l.Component);t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(169);r(f);n(171);var p=function(e){function t(e){o(this,t);var n=a(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_quiz_addons&_ajax_nonce="+forminatorData.addonNonce+"&data[quiz_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,o=function(t){e.props.history.push("/"+t)},a="";return a=t?l.default.createElement("div",{className:"sui-notice sui-notice-loading"},l.default.createElement("p",null,(0,c.translate)("Fetching integration list…"))):_.isUndefined(r)||+r<=0?l.default.createElement("div",{className:"sui-notice sui-notice-warning"},l.default.createElement("p",null,(0,c.translate)("You need to save this quiz before using integrations.")),l.default.createElement("div",{className:"sui-notice-buttons"},l.default.createElement("a",{className:"sui-button",onClick:this.loadIntegrations},(0,c.translate)("TRY AGAIN")))):l.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:n}}),l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Integrations"))),l.default.createElement("div",{className:"sui-box-body"},a),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return o("notifications")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Email Notifications")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return o("settings")}},(0,c.translate)("Settings"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(230),p=r(f),d=n(231),h=r(d),m=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Settings"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props),l.default.createElement(h.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,c.translate)("Integrations"))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,f.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",label:(0,f.translate)("Disable store submissions in my database"),description:(0,f.translate)("If you don't want to store submissions in your database you can disable this feature. Alternately you can also schedule automatic deletion of submissions after a period of time below.")}))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(12),d=r(p),h=n(7),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(15),E=r(w),O=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){var e=_.isEmpty(forminatorData.submissions_quiz_retain_number)||"0"===forminatorData.submissions_quiz_retain_number,t=(0,f.translate)("forever");return e||(t=forminatorData.submissions_quiz_retain_number+" "+forminatorData.submissions_quiz_retain_unit),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,f.translate)("Privacy")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want to handle this quiz’s data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=data",target:"_blank"})}}))),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,f.translate)("Submissions")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.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,f.translate)("Use default")},c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,f.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,f.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(E.default,s({},this.props,{defaultValue:"days",property:"submissions-retention-unit"}),c.default.createElement("option",{value:"days"},(0,f.translate)("day(s)")),c.default.createElement("option",{value:"weeks"},(0,f.translate)("week(s)")),c.default.createElement("option",{value:"months"},(0,f.translate)("month(s)")),c.default.createElement("option",{value:"years"},(0,f.translate)("year(s)"))))),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Leave the field blank to retain submissions forever.")))))))}}]),t}(l.Component);t.default=O},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=r(o),i=n(41),s=n(4),u=n(19),l=n(183),c=r(l),f=n(58),p=r(f),d=n(449),h=r(d),m=(0,c.default)(forminatorData.currentForm);p.default.setLocale(forminatorl10n.locale),window.forminatorChanges={questions:[],results:[],settings:!1},(0,i.render)(a.default.createElement(s.Provider,{store:m},a.default.createElement(u.MemoryRouter,null,a.default.createElement(u.Route,{component:h.default}))),document.getElementById("forminator-knowledge-builder"))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=(n(4),n(1)),p=n(450),d=r(p),h=n(451),m=r(h),y=n(452),b=r(y),v=n(455),g=r(v),_=n(456),w=r(_),E=n(457),O=r(E),j=n(458),P=r(j),x=n(479),k=r(x),C=n(483),N=r(C),S=n(484),T=r(S),A=n(485),M=r(A),F=function(e){function t(e){return o(this,t),a(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(e.preventDefault(),window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.returnValue=(0,f.translate)("You have unsaved changes, are you sure want to leave this page"),(0,f.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){return l.default.createElement("div",null,l.default.createElement(d.default,null),l.default.createElement("div",{className:"sui-row-with-sidenav"},l.default.createElement("div",{className:"sui-sidenav"},l.default.createElement(b.default,this.props)),l.default.createElement("div",null,l.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},l.default.createElement(g.default,null)),l.default.createElement(c.Route,{exact:!0,path:"/",render:function(){return l.default.createElement(c.Redirect,{to:"/intro"})}}),l.default.createElement(c.Route,{path:"/intro",component:w.default}),l.default.createElement(c.Route,{path:"/questions",component:O.default}),l.default.createElement(c.Route,{path:"/appearance",component:P.default}),l.default.createElement(c.Route,{path:"/behaviour",component:k.default}),l.default.createElement(c.Route,{path:"/notifications",component:N.default}),l.default.createElement(c.Route,{path:"/integrations",component:T.default}),l.default.createElement(c.Route,{path:"/settings",component:M.default}))),l.default.createElement(m.default,this.props))}}]),t}(u.Component);t.default=F},function(e,t,n){"use strict";function r(e){return{id:e.settings.form_id}}function o(e){return(0,i.bindActionCreators)(u,e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=n(5),s=n(25),u=function(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}(s),l=n(189),c=function(e){return e&&e.__esModule?e:{default:e}}(l);t.default=(0,a.connect)(r,o)(c.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 o(e){return{modal:e.modal,questions:e.questions,settings:e.settings,type:"knowledge",id:e.settings.form_id||-1}}function a(e){return{actions:{builderActions:(0,s.bindActionCreators)(f,e),settingsActions:(0,s.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(191),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(173),f=r(c),p=n(25),d=r(p);t.default=(0,i.connect)(o,a)(l.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 o(e){return{id:e.settings.form_id,title:e.settings.formName||""}}function a(e){return{actions:{navigationActions:(0,s.bindActionCreators)(f,e),modalActions:(0,s.bindActionCreators)(l,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(26),l=r(u),c=n(203),f=r(c),p=n(453),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(454),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=n(1),p=n(204),d=r(p),h=n(205),m=r(h),y=n(206),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-sidenav-sticky sui-sidenav-hide-md"},l.default.createElement("ul",{className:"sui-vertical-tabs sui-alt-design"},l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/intro",activeClassName:"current"},(0,f.translate)("Intro"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/questions",activeClassName:"current"},(0,f.translate)("Questions"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,f.translate)("Appearance"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,f.translate)("Behaviour"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,f.translate)("Email Notifications"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,f.translate)("Integrations"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(m.default,this.props))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(d.default,this.props),l.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},l.default.createElement("label",{className:"sui-label"},(0,f.translate)("Navigate")),l.default.createElement(b.default,this.props,l.default.createElement("option",{value:""},(0,f.translate)("Intro")),l.default.createElement("option",{value:"questions"},(0,f.translate)("Questions")),l.default.createElement("option",{value:"appearance"},(0,f.translate)("Appearance")),l.default.createElement("option",{value:"behaviour"},(0,f.translate)("Behaviour")),l.default.createElement("option",{value:"notifications"},(0,f.translate)("Email Notifications")),l.default.createElement("option",{value:"integrations"},(0,f.translate)("Integrations")),l.default.createElement("option",{value:"settings"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-hide-lg"},l.default.createElement(m.default,this.props))))}}]),t}(u.Component);t.default=v},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 o(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges,type:"knowledge"}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(207),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(210),m=o(h);t.default=(0,u.connect)(a,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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,questions:e.questions,type:"knowledge"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(d,e),builderActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(173),f=r(c),p=n(25),d=r(p),h=n(26),m=r(h),y=n(211),b=o(y);t.default=(0,u.connect)(a,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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(459),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(66),p=r(f),d=n(72),h=r(d),m=n(215),y=r(m),b=n(460),v=r(b),g=n(468),w=r(g),E=n(221),O=r(E),j=n(222),P=r(j),x=function(e){function t(e){return o(this,t),a(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};p.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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Appearance"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(y.default,this.props),l.default.createElement(v.default,this.props),l.default.createElement(w.default,this.props),l.default.createElement(O.default,this.props),l.default.createElement(P.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("questions")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Questions")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behaviour"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(461),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Colors"),description:(0,f.translate)("Adjust the default colour 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,f.translate)("Default")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(462),m=r(h),y=n(463),b=r(y),v=n(464),g=r(v),_=n(465),w=r(_),E=n(466),O=r(E),j=n(467),P=r(j),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Basic")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Container")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Checkbox")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Text")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share")}),c.default.createElement(P.default,this.props)))}}]),t}(l.Component);t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"knowledge-title-color",defaultValue:"#333333"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Description color"),property:"knowledge-description-color",defaultValue:"#8C8C8C"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question color"),property:"knowledge-question-color",defaultValue:"#333333"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz result color"),property:"knowledge-summary-color",defaultValue:"#333333"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-border-static",defaultValue:"#EBEDEB",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-background-static",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-background-hover",defaultValue:"#F3FBFE",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-background-active",defaultValue:"#F3FBFE",isAlpha:!0}))),c.default.createElement(m.default,{value:"right",label:(0,f.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-aright-border",defaultValue:"#0BC30B",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-aright-background",defaultValue:"#F4FCF2",isAlpha:!0}))),c.default.createElement(m.default,{value:"wrong",label:(0,f.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-awrong-border",defaultValue:"#DA0000",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-awrong-background",defaultValue:"#FDF2F2",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-static",defaultValue:"#BFBFBF",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-active",defaultValue:"#17A8E3",isAlpha:!0}))),c.default.createElement(m.default,{value:"right",label:(0,f.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-correct",defaultValue:"#0BC30B",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-correct",defaultValue:"#0BC30B",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Icon color"),property:"knowledge-answer-icon-correct",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"wrong",label:(0,f.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"knowledge-answer-check-border-incorrect",defaultValue:"#DA0000",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-answer-check-background-incorrect",defaultValue:"#DA0000",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Icon color"),property:"knowledge-answer-icon-incorrect",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-answer-color-static",defaultValue:"#888888"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer result message"),property:"knowledge-phrasing-color",defaultValue:"#4D4D4D"}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-answer-color-active",defaultValue:"#333333"}))),c.default.createElement(m.default,{value:"right",label:(0,f.translate)("Right")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-aright-color",defaultValue:"#0BC30B"}))),c.default.createElement(m.default,{value:"wrong",label:(0,f.translate)("Wrong")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"knowledge-awrong-color",defaultValue:"#DA0000"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-submit-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"knowledge-submit-color-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-submit-background-hover",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"knowledge-submit-color-hover",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"knowledge-submit-background-active",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"knowledge-submit-color-active",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"knowledge-sshare-color",defaultValue:"#4D4D4D"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),property:"knowledge-social-facebook",defaultValue:"#0084BF"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),property:"knowledge-social-twitter",defaultValue:"#1DA1F2"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Google+"),property:"knowledge-social-google",defaultValue:"#DB4437"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),property:"knowledge-social-linkedin",defaultValue:"#0084BF"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(469),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Fonts"),description:(0,f.translate)("By default this quiz will inherit the fonts your theme uses. You can override these fonts with custom ones from Google Fonts.")},c.default.createElement(m.default,s({},this.props,{property:"knowledge-toggle-typography",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,f.translate)("Use Theme Fonts")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(470),m=r(h),y=n(471),b=r(y),v=n(472),g=r(v),_=n(473),w=r(_),E=n(474),O=r(E),j=n(475),P=r(j),x=n(476),k=r(x),C=n(477),N=r(C),S=n(478),T=r(S),A=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Title")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Description")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer Result Message")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(P.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Result")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Title")}),c.default.createElement(N.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Icons")}),c.default.createElement(T.default,this.props)))}}]),t}(l.Component);t.default=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-title",defaultFont:"Roboto",defaultSize:"42",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-description",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-question",defaultFont:"Roboto",defaultSize:"24",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-answer",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-phrasing",defaultFont:"Roboto",defaultSize:"16",defaultWeight:"700"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-submit",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-summary",defaultFont:"Roboto",defaultSize:"40",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"knowledge-sshare",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(20),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{property:"knowledge-social-size",defaultValue:"36",label:(0,f.translate)("Icon size"),description:(0,f.translate)("Choose one of the pre-defined sizes we have for social share icons.")}),c.default.createElement("div",{value:"24"},(0,f.translate)("Regular")),c.default.createElement("div",{value:"30"},(0,f.translate)("Medium")),c.default.createElement("div",{value:"36"},(0,f.translate)("Large")))}}]),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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(480),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(223),p=r(f),d=n(481),h=r(d),m=n(482),y=r(m),b=n(224),v=r(b),g=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Behaviour"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(l.default.Fragment,null,l.default.createElement(h.default,this.props),l.default.createElement(y.default,this.props),l.default.createElement(v.default,this.props),l.default.createElement(p.default,this.props))),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("notifications")}},(0,c.translate)("Notifications"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(20),d=r(p),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Results Display")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose whether to display the correct answer as the user answers each question or after the quiz is submitted."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,s({},this.props,{property:"results_behav",defaultValue:"true"}),c.default.createElement("div",{value:"after"},(0,f.translate)("Real Time")),c.default.createElement("div",{value:"end"},(0,f.translate)("On Submission")))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(39),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Messages")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.translate)("Correct Answer Message"),description:(0,f.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,f.translate)("Incorrect Answer Message"),description:(0,f.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,f.translate)("Final Count Message"),description:(0,f.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,f.translate)("Quiz Name"),quiz_answer:(0,f.translate)("Quiz Answer"),quiz_result:(0,f.translate)("Quiz Result")}}))))}}]),t}(l.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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(226),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(26),a=n(228),i=function(e){return e&&e.__esModule?e:{default:e}}(a),s=function(e){return{hideModal:function(){return e((0,o.hideModal)())},showModal:function(t,n){e((0,o.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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(229),m=o(h);t.default=(0,u.connect)(a,i)(m.default)}]);
|
assets/js/personality-scripts.js
CHANGED
@@ -22,4 +22,4 @@ var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.pr
|
|
22 |
* @author Feross Aboukhadijeh <https://feross.org>
|
23 |
* @license MIT
|
24 |
*/
|
25 |
-
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 o=n(38),a=n(8),i=n(158),s=n(159);r.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,{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},a.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))}}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(8);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(69);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(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,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,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 o=n(8);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(o.isURLSearchParams(t))a=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(8),o=["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,a,i={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.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(8);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),i="",s=0,u=a;o.charAt(0|s)||(u="=",s%1);i+=u.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return i}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(8);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!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 o=n(8);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){o.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 o=n(8),a=n(160),i=n(70),s=n(38),u=n(161),l=n(162);e.exports=function(e){return r(e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.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=a(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(8);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 o(e),t(n.reason))})}var o=n(71);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(73),o=n(74),a={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},u=function e(t,n,o,a,i,u,l,c,f,p,d,h){var m=t;if("function"==typeof l)m=l(n,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return u&&!h?u(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m)){if(u){return[d(h?n:u(n,s.encoder))+"="+d(u(m,s.encoder))]}return[d(n)+"="+d(String(m))]}var y=[];if(void 0===m)return y;var b;if(Array.isArray(l))b=l;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[_],o(n,_),o,a,i,u,l,c,f,p,d,h)):y.concat(e(m[_],n+(f?"."+_:"["+_+"]"),o,a,i,u,l,c,f,p,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 l=void 0===i.delimiter?s.delimiter:i.delimiter,c="boolean"==typeof i.strictNullHandling?i.strictNullHandling:s.strictNullHandling,f="boolean"==typeof i.skipNulls?i.skipNulls:s.skipNulls,p="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=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var v,g,_=o.formatters[i.format];"function"==typeof i.filter?(g=i.filter,n=g("",n)):Array.isArray(i.filter)&&(g=i.filter,v=g);var w=[];if("object"!=typeof n||null===n)return"";var E;E=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=a[E];v||(v=Object.keys(n)),h&&v.sort(h);for(var j=0;j<v.length;++j){var P=v[j];f&&null===n[P]||(w=w.concat(u(n[P],P,O,c,f,p?d:null,g,h,m,y,_,b)))}var x=w.join(l),k=!0===i.addQueryPrefix?"?":"";return x.length>0?k+x:""}},function(e,t,n){"use strict";var r=n(73),o=Object.prototype.hasOwnProperty,a={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),u=0;u<s.length;++u){var l,c,f=s[u],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=t.decoder(f,a.decoder),c=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,d),a.decoder),c=t.decoder(f.slice(d+1),a.decoder)),o.call(n,l)?n[l]=[].concat(n[l]).concat(c):n[l]=c}return n},s=function(e,t,n){for(var r=t,o=e.length-1;o>=0;--o){var a,i=e[o];if("[]"===i)a=[],a=a.concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,u=parseInt(s,10);!isNaN(u)&&i!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=r):a[s]=r}r=a}return r},u=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,u=a.exec(r),l=u?r.slice(0,u.index):r,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;null!==(u=i.exec(r))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+r.slice(u.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:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?i(e,n):e,s=n.plainObjects?Object.create(null):{},l=Object.keys(o),c=0;c<l.length;++c){var f=l[c],p=u(f,o[f],n);s=r.merge(s,p,n)}return r.compact(s)}},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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=u.default.Children.map(this.props.children,function(r){var o="";return r.props.image1x&&r.props.image2x&&(o=u.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&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},o,u.default.createElement("span",{className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,value:r.props.value,id:"forminator-field-"+r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))):r.props.hasImage?void 0:u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,id:"forminator-field-"+r.props.value,value:r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))});return this.props.noWrapper?r:u.default.createElement("div",{className:"sui-form-field"},r)}}]),t}(s.Component);t.default=l},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.insertSelector=n.insertSelector.bind(n),n}return a(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,r=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Form")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-title ")}},(0,l.translate)("Section Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-subtitle ")}},(0,l.translate)("Section Subtitle")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label ")}},(0,l.translate)("Field Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label--helper ")}},(0,l.translate)("Field Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-input ")}},(0,l.translate)("Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-textarea ")}},(0,l.translate)("Textarea")))),o=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Poll")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--question ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--design ")}},(0,l.translate)("Answer Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--label ")}},(0,l.translate)("Answer Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-button ")}},(0,l.translate)("Submit Button")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--actions a ")}},(0,l.translate)("View Results Link")))),a=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Quiz")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,l.translate)("Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description ")}},(0,l.translate)("Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question legend ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer ")}},(0,l.translate)("Answer Container")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,l.translate)("Answer Text"))));return u.default.createElement(u.default.Fragment,null,"form"===n&&r,"poll"===n&&o,"quiz"===n&&a,u.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";var r=n(170),o=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,n,r){function a(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(a.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},a=n.data("nonce"),i=n.data("slug"),s=n.data("title"),u=n.data("image"),l=n.data("imagex2"),c=n.data("action"),f=n.data("form-id"),p=n.data("multi-id"),d=n.data("poll-id"),h=n.data("quiz-id"),m=_.template('<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup"><div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div><div class="sui-dialog-content sui-bounce-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog"><div class="sui-box" role="document"><div class="sui-box-header sui-block-content-center"><div class="sui-dialog-image" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image_x2 %> 2x" alt="<%= title %>" class="sui-image sui-image-center" /></div><div class="integration-header"></div><button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button><button class="sui-dialog-close forminator-integration-close" aria-label="Close"></button></div><div class="sui-box-body"></div><div class="sui-box-footer sui-box-footer-center"></div></div></div></div>');jQuery("main.sui-wrap").append(m({image:u,image_x2:l,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:i,nonce:a,action:c,multi_id:p,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=d:"quiz"===t.options.type&&(y.quiz_id=h),new o.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),jQuery("body").css("overflow","hidden"),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){var t=jQuery("#forminator-integration-popup");t.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),t.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),jQuery("body").css("overflow","auto"),setTimeout(function(){t.attr("aria-hidden","true")},300),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new a(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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(44),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){var n;r(this,t);var a=o(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"}}));return a.slug=e.slug,a.nonce=e.nonce,a.action=e.action,a.multi_id=e.multi_id,a.type=e.type,a.step=0,a.next_step=!1,a.prev_step=!1,a.scrollbar_width=a.getScrollbarWidth(),"form"===a.type?a.form_id=e.form_id:"poll"===a.type?a.poll_id=e.poll_id:"quiz"===a.type&&(a.quiz_id=e.quiz_id),n=a.render(),o(a,n)}return a(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=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"request",value:function(e,t,n){var r=this,o={data:e,close:t,loader:n};n&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var n=e.data.data;if(r.onRender(n),r.$el.find(".sui-button").removeClass("sui-button-onload"),(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 u.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 a=jQuery("#forminator-integration-popup");"normal"===n.size&&a.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n.size&&(a.addClass("sui-dialog-sm"),a.removeClass("sui-dialog-lg sui-dialog-reduced")),"reduced"===n.size&&(a.addClass("sui-dialog-reduced"),a.removeClass("sui-dialog-lg sui-dialog-sm")),"large"===n.size&&(a.addClass("sui-dialog-lg"),a.removeClass("sui-dialog-sm sui-dialog-reduced"))}n.is_poll&&setTimeout(r.request(o.data,o.close,o.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .integration-header").remove();t.length>0&&this.$el.find(".integration-header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,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,l.suiDelegateEvents)(),(0,l.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:"submitNextStep",value:function(e){var t={},n=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!1),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},n={slug:this.slug,step:this.getPrevStep(),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(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!0),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,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(),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,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(jQuery.browser.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"form"===this.type&&this.form_id?e.form_id=this.form_id:"poll"===this.type&&this.poll_id?e.poll_id=this.poll_id:"quiz"===this.type&&this.quiz_id&&(e.quiz_id=this.quiz_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":"form"===this.type?e="forminator_addon_form_deactivate":"poll"===this.type?e="forminator_addon_poll_deactivate":"quiz"===this.type&&(e="forminator_addon_quiz_deactivate")}return e}}]),t}(Backbone.View);t.default=c},function(e,t,n){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function o(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 a(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 w.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 u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(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=l(t);return t.readAsArrayBuffer(e),n}function f(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}function p(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:w.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:w.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():w.arrayBuffer&&w.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):w.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):w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},w.blob&&(this.blob=function(){var e=u(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?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w.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," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),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 o=n.join(":").trim();t.append(r,o)}}),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 o(){i.abort()}var a=new y(e,t);if(a.signal&&a.signal.aborted)return r(new x("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 x("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&w.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",o),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",o)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=s,t.Request=y,t.Response=g,n.d(t,"DOMException",function(){return x}),t.fetch=_;var w={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(w.arrayBuffer)var E=["[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&&E.indexOf(Object.prototype.toString.call(e))>-1};s.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[o(e)]},s.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},s.prototype.set=function(e,t){this.map[o(e)]=a(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)},w.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 P=[301,302,303,307,308];g.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var x=self.DOMException;try{new x}catch(e){x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},x.prototype=Object.create(Error.prototype),x.prototype.constructor=x}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=s,self.Request=y,self.Response=g)},,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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$el.on("change.select2",this.handleChange),_.each(t,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(t).trigger("change.select2")}},{key:"handleChange",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)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.handleChange),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],n="";return this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),u.default.createElement("div",{className:"sui-form-field"},n,u.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select",defaultValue:t,multiple:"multiple"},this.props.children))}}]),t}(s.Component);t.default=l},,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c(l.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(5),i=n(127),s=r(i),u=n(184),l=r(u),c=(0,a.compose)((0,a.applyMiddleware)(s.default))(a.createStore)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),a=n(185),i=r(a),s=n(186),u=r(s),l=n(187),c=r(l),f=n(188),p=r(f),d=(0,o.combineReducers)({questions:i.default,results:u.default,settings:c.default,modal:p.default});t.default=d},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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(e,t){var n=t.settings;return s({},e,n)}function a(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 o(n,t);case"UPDATE_SETTING":return r(n,t);case"UPDATE_TITLE":return a(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){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement("div",{className:"sui-header sui-header-inline sui-with-floating-input"},i.default.createElement("h1",{className:"sui-header-title"},(0,l.translate)("Edit Quiz")),i.default.createElement("div",{className:"sui-actions-right"},i.default.createElement(u.default,e)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(190),u=r(s),l=n(1)},function(e,t,n){"use strict";function r(e){return forminatorData.showDocLink?a.default.createElement("a",{href:"https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#quizzes",target:"_blank",className:"sui-button sui-button-ghost"},a.default.createElement("i",{className:"sui-icon-academy"})," ",(0,i.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(41),f=r(c),p=n(192),d=r(p),h={preview:d.default.previewModal,publish:d.default.publishModal,delete:d.default.deleteModal,shortcode:d.default.shortcodeModal,question:d.default.questionModal,submit:d.default.submitModal,personality:d.default.personalityModal,deletePersonality:d.default.deletePersonalityModal},m=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var n=f.default.findDOMNode(this);this.props.modal.modalProps.open?n.removeAttribute("aria-hidden"):this.hideModalTimeout=setTimeout(function(){n.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){if(!this.props.modal.modalType)return null;var e="",t=["sui-dialog-overlay","sui-fade-in"],n=["sui-dialog-content","sui-bounce-in"];this.props.modal.modalProps.open||(t=["sui-dialog-overlay","sui-fade-out"],n=["sui-dialog-content","sui-bounce-out"]);var r=h[this.props.modal.modalType];return"publish"!==this.props.modal.modalType&&"shortcode"!==this.props.modal.modalType||(e=" sui-dialog-sm fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deletePersonality"!==this.props.modal.modalType||(e=" sui-dialog-sm"),l.default.createElement("div",{id:"forminator-modal",className:"sui-dialog"+e,tabIndex:"-1"},l.default.createElement("div",{className:""+t.join(" "),onClick:this.props.modal.modalProps.closeModal}),l.default.createElement("div",{className:""+n.join(" "),"aria-labelledby":"dialogTitle","aria-describedby":"dialogDescription",role:"dialog"},l.default.createElement("div",{className:"sui-box",role:"document"},l.default.createElement(r,this.props))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(193),a=r(o),i=n(194),s=r(i),u=n(195),l=r(u),c=n(196),f=r(c),p=n(197),d=r(p),h=n(198),m=r(h),y=n(201),b=r(y),v=n(202),g=r(v),_={previewModal:a.default,publishModal:s.default,deleteModal:l.default,shortcodeModal:d.default,questionModal:m.default,submitModal:b.default,personalityModal:g.default,deletePersonalityModal:f.default};t.default=_},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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.previewLoaded=n.previewLoaded.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$body=jQuery(this.body),this.mounted=!0,this.load(),jQuery(document).off("after.load.forminator"),jQuery(document).on("after.load.forminator",this.previewLoaded)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"previewLoaded",value:function(){this.$body.find(".sui-notice-loading").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",render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},"Preview"),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),u.default.createElement("div",{ref:function(t){return e.body=t},className:"sui-box-body"},u.default.createElement("div",{className:"sui-notice sui-notice-loading"},u.default.createElement("p",null,(0,l.translate)("Loading preview…"))),u.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),t}(s.Component);t.default=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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Publishing quiz…"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Great work! Please hold tight a few moments while we publish your quiz to the world."))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Question")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Deleting this question will remove its value from the existing submissions as well."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("DELETE")))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Personality")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Are you sure you wish to delete this Personality? Questions in your quiz may end up with the answers without any associated Personality."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("Delete")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(44),p=r(f),d=function(e){function t(e){o(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.copyToClipboard=n.copyToClipboard.bind(n),n}return i(t,e),s(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new p.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"render",value:function(){var e=this;return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-box-header sui-block-content-center"},l.default.createElement("i",{className:"sui-icon-check sui-lg","aria-hidden":"true"}),l.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Ready to go!")),l.default.createElement("button",{className:"sui-dialog-close forminator-cancel-create-form","aria-label":(0,c.translate)("Close this dialog window"),onClick:this.closeModal})),l.default.createElement("div",{className:"sui-box-body sui-block-content-center"},l.default.createElement("p",null,l.default.createElement("small",null,(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!"))),l.default.createElement("div",{id:"forminator-form-name-input",className:"sui-form-field"},l.default.createElement("label",{htmlFor:"forminator-form-name",className:"sui-label"},(0,c.translate)("Shortcode")),l.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},l.default.createElement("input",{type:"text",id:"forminator-form-shortcode",ref:function(t){return e.input=t},className:"sui-form-control",defaultValue:'[forminator_quiz id="'+this.props.id+'"]'}),l.default.createElement("button",{className:"sui-button-icon",onClick:this.copyToClipboard},l.default.createElement("i",{"aria-hidden":"true",className:"sui-icon-copy"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Copy shortcode")))))),forminatorData.showBranding&&l.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=(r(h),n(6)),y=(r(m),n(2)),b=r(y),v=n(76),g=r(v),w=n(199),E=r(w),O=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 u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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(){if(_.isUndefined(this.state.title)||_.isEmpty(this.state.title))return!1;if(_.isUndefined(this.state.answers)||_.isEmpty(this.state.answers))return!1;var e=_.filter(this.state.answers,function(e){return!(!_.isEmpty(e.title)||!_.isEmpty(e.image))});if(!_.isEmpty(e))return!1;if("knowledge"===this.state.type){if(!_.some(this.state.answers,function(e){return e.toggle}))return!1}if("nowrong"===this.state.type){if(_.some(this.state.answers,function(e){return _.isEmpty(e.result)}))return!1}return!0}},{key:"render",value:function(){var e=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Edit Question"),t=!0===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(b.default,l({},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})),p.default.createElement(g.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty,darkLabel:!0})),p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,d.translate)("Answers")," ",p.default.createElement("span",{className:"sui-error"},"*")),p.default.createElement("span",{className:"sui-description"},(0,d.translate)("You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected.")))),p.default.createElement(E.default,l({},this.props,{state:this.state,type:this.data.type,results:this.data.results,updateProperty:this.updateProperty})),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(200),h=r(d),m=function(e){function t(e){a(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(o(n.props.state.answers))},n}return s(t,e),l(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 o=n.item.index();e.moveOption(o,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 f.default.createElement("div",{className:"sui-box-body",style:{paddingBottom:"0"},ref:function(t){return e.el=t}},f.default.createElement("div",{className:"sui-box-builder sui-flushed"},f.default.createElement("div",{className:"sui-box-builder-body"},f.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,n){return f.default.createElement(h.default,u({key:n,counter:n,answer:t,removeAnswer:e.removeAnswer,updateTitle:e.updateTitle,updateImage:e.updateImage,updateCheckbox:e.updateCheckbox,updateResult:e.updateResult},e.props))})),f.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addAnswer},f.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(43),b=r(y),v=n(15),g=(r(v),function(e){function t(e){o(this,t);var n=a(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),u(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)&&("nowrong"!==this.props.answer.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",fieldClass:"sui-auto",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,f.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,f.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,f.translate)("Delete answer")))))}}]),t}(l.Component));t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default: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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(10),h=r(d),m=n(6),y=r(m),b=n(2),v=r(b),g=function(e){function t(e){a(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),l(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"applyChanges",value:function(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"sui-box-header"},f.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,p.translate)("Submit Button")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,p.translate)("Close this dialog window"),onClick:this.closeModal}))),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Text"),placeholder:(0,p.translate)("Enter text"),property:"button-text",updateProperty:this.updateProperty}))),f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Processing Text"),placeholder:(0,p.translate)("Sending..."),property:"button-processing-text",description:(0,p.translate)("This text will appear as button text while the quiz is being submitted."),updateProperty:this.updateProperty})))),f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"12"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Custom CSS Classes"),placeholder:(0,p.translate)("E.g. form-submit-btn"),property:"custom-class",description:(0,p.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}))))),f.default.createElement("div",{className:"sui-box-footer"},f.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},f.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,p.translate)("Discard Changes")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,p.translate)("Apply")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(76),E=r(w),O=n(39),j=r(O),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.result,n}return u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Personality"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(g.default,l({},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})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(E.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(j.default,l({},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")}}))))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=P},function(e,t,n){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:o,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var o=t.UPDATE_TITLE="UPDATE_TITLE"},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(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)?"sui-form-field-error":"";return u.default.createElement("div",{className:"sui-form-field sui-with-floating-input "+n},u.default.createElement("input",{type:"text",placeholder:(0,l.translate)("Give your quiz a name"),value:t,className:"sui-form-control",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)}}),_.isEmpty(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,l.translate)("Please, enter a valid name.")))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.openModal=n.openModal.bind(n),n}return a(t,e),i(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,l.translate)("Preview")},"preview"),$("#forminator-quiz-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 u.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,l.translate)("Preview"))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return u.default.createElement("select",{className:"sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children)}}]),t}(s.Component);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=(n(1),n(66)),p=r(f),d=n(72),h=r(d),m=n(208),y=r(m),b=n(209),v=r(b),g=function(e){function t(e){o(this,t);var n=a(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),u(t,[{key:"publish",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({publishLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"publish",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({draftLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"draft",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"draft")},1500)}},{key:"save",value:function(e,t){var n=this,r=this,o=this.props,a=o.status,i=o.type;p.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(o){-1===e.form_id&&(n.props.actions.settingsActions.updateSetting("form_id",o.data.data),forminatorData.currentForm.settings.form_id=o.data.data,"knowledge"===i?window.history.pushState({},"Edit Knowledge Quiz",forminatorData.knowledgeEditUrl+"&id="+o.data.data):window.history.pushState({},"Edit No Wrong Quiz",forminatorData.noWrongEditUrl+"&id="+o.data.data)),n.props.actions.settingsActions.saveBuilder("form_status",t),n.setState({publishLoading:!1,draftLoading:!1}),("draft"===a&&"publish"===t||_.isUndefined(a)&&"publish"===t)&&setTimeout(function(){var e=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:e},"shortcode")},50)}).catch(function(e){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(y.default,s({},this.props,{state:this.state})),c.default.createElement(v.default,s({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(l.Component);t.default=g},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 a.default.createElement("div",{className:"sui-status"},a.default.createElement("div",{className:"sui-status-module"},"Status",a.default.createElement("span",{className:"sui-tag "+n},function(){switch(t){case"publish":return(0,i.translate)("Published");default:return(0,i.translate)("Draft")}}())),r&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,i.translate)("Saving...")),!r&&e.changed.settings&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,i.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&a.default.createElement("div",{className:"sui-status-changes"},a.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 o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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 a(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this,t=this.props,n=t.status,r=t.title;_.isEmpty(r)||(this.props.publish(),("draft"===n||_.isEmpty(n))&&(this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"),setTimeout(function(){e.closeModal()},1500)))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e)||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,n=t.draftLoading,r=t.publishLoading;return u.default.createElement("div",{className:"sui-actions"},u.default.createElement("button",{id:"forminator-module-save",disabled:!!n,className:"sui-button",onClick:this.draft},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-save","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Unpublish");default:return(0,l.translate)("Save Draft")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),u.default.createElement("button",{id:"forminator-module-publish",disabled:!!r,className:"sui-button sui-button-blue",onClick:this.publish},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Update");default:return(0,l.translate)("Publish")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(39),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.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,f.translate)("Title")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.translate)("Title"),type:"text",placeholder:(0,f.translate)("Which superhero are you?"),description:(0,f.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,f.translate)("Feature Image")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.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,f.translate)("Description")),c.default.createElement("span",{className:"sui-description"},(0,f.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:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",label:"",mainOptions:{quiz_name:(0,f.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,f.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,f.translate)("Personalities"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(212),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Questions"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},"knowledge"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),"personality"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("personalities")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Personalities")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,c.translate)("Appearance"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(213),d=r(p),h=n(214),m=r(h),y=function(e){function t(e){o(this,t);var n=a(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),u(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 o=n.item.index();e.moveOption(o,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,f.randNumber)()+"-"+(0,f.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,f.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,f.translate)("A quiz without questions is not going to be very useful… Add your questions above!")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))),c.default.createElement(m.default,this.props))}}]),t}(l.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 o(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 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}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(1),f=function(e){function t(e){o(this,t);var n=a(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=Object.assign({},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+")"),l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},l.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},l.default.createElement("span",{style:{backgroundImage:e}})),l.default.createElement("span",null,this.props.question.title))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open field settings"))),l.default.createElement("ul",null,l.default.createElement("li",null,l.default.createElement("button",{onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),l.default.createElement("li",null,l.default.createElement("button",{onClick:this.duplicateQuestion},l.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),l.default.createElement("li",null,l.default.createElement("button",{className:"sui-option-red",onClick:this.deleteQuestion},l.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(u.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.editSettings=n.editSettings.bind(n),n}return a(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,l.translate)("Submit"):this.props.settings.submitData["button-text"];return u.default.createElement("div",{className:"sui-box-builder-footer sui-fields-boxed"},u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},u.default.createElement("div",{onClick:this.editSettings,className:"sui-field-info"},u.default.createElement("div",{className:"sui-builder-field-label"},u.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),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",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(216),b=r(y),v=n(217),g=r(v),_=n(218),w=r(_),E=n(219),O=r(E),j=n(220),P=r(j),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Design Style"),description:(0,f.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,f.translate)("Default")),c.default.createElement(g.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Flat")),c.default.createElement(w.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Bold")),c.default.createElement(O.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Material")),c.default.createElement(P.default,{value:"none",boxClass:"sui-tab-content"},(0,f.translate)("None"))))}}]),t}(l.Component);t.default=x},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--default"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--flat"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--bold"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--material"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(167),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Options Layout"),description:(0,f.translate)("Choose how you want to display the quiz options to the viewers.")},c.default.createElement(m.default,s({},this.props,{radioClass:"sui-radio-sm",property:"visual_style"}),c.default.createElement("div",{value:"list",hasImage:!0,image1x:"quiz-list.png",image2x:"quiz-list@2x.png"},(0,f.translate)("List")),c.default.createElement("div",{value:"grid",hasImage:!0,image1x:"quiz-grid.png",image2x:"quiz-grid@2x.png"},(0,f.translate)("Grid"))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(24),m=r(h),y=n(168),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Custom CSS"),description:(0,f.translate)("For more advanced customization options use custom CSS.")},c.default.createElement(m.default,s({},this.props,{label:(0,f.translate)("Enable custom CSS"),property:"use-custom-css"})),e)}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Rendering")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want your poll 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,f.translate)("Load quiz using AJAX"),description:(0,f.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,f.translate)("Prevent page caching on quiz pages"),description:(0,f.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}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(225),b=r(y),v=n(18),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Social Sharing"),description:(0,f.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,f.translate)("Enable")})),c.default.createElement(g.default,{value:"off",label:(0,f.translate)("Disable")})))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(43),d=r(p),h=n(75),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Social Sharing Platforms")),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),fieldId:"share-facebook",property:"facebook",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),fieldId:"share-twitter",property:"twitter",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),fieldId:"share-linkedin",property:"linkedin",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(m.default,s({},this.props,{property:"social-share-message",defaultValue:"I got {quiz_result} on {quiz_name} quiz!",label:(0,f.translate)("Social Share Message"),type:"textarea",rows:"5"}),c.default.createElement("option",{value:"{quiz_result}","data-content":"quiz_result"},(0,f.translate)("Quiz Result")),c.default.createElement("option",{value:"{quiz_name}","data-content":"quiz_name"},(0,f.translate)("Quiz Name")),c.default.createElement("option",{value:"{embed_title}","data-content":"embed_title"},(0,f.translate)("Page/Post Title")),c.default.createElement("option",{value:"{embed_url}","data-content":"embed_url"},(0,f.translate)("Page/Post URL")),c.default.createElement("option",{value:"{site_url}","data-content":"{site_url}"},(0,f.translate)("Site URL")))),c.default.createElement("div",{className:"sui-notice sui-notice-info",style:{marginTop:"10px"}},c.default.createElement("p",null,(0,f.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://premium.wpmudev.org/project/smartcrawl-wordpress-seo/"})}}))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(227),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-notifications",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Email Notifications"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Behaviour")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("integrations")}},(0,c.translate)("Integrations"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(24),m=r(h),y=n(175),b=r(y),v=n(39),g=r(v),w=n(75),E=r(w),O=n(29),j=r(O),P=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getNameOptions",value:function(){var e=[];return _.map(forminatorData.variables,function(t,n){e.push({label:t,value:n})}),e}},{key:"getEmailOptions",value:function(){return[]}},{key:"getRecipientTagsOptions",value:function(){return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,f.translate)("Searching")},noResults:function(){return(0,f.translate)("No Result Found")}},placeholder:(0,f.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}},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:$("<span><b>"+e.text+"</b> - <small>"+e.display_name+"</small></span>")},createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcBccOptions",value:function(){return{tags:!0,placeholder:(0,f.translate)("None"),createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-cc-address"])||!_.isArray(this.props.settings["admin-email-cc-address"])?[]:this.props.settings["admin-email-cc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getBccAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-bcc-address"])||!_.isArray(this.props.settings["admin-email-bcc-address"])?[]:this.props.settings["admin-email-bcc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getAutoCreateEmailAddressOptions",value:function(){return{tags:!0,createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null},insertTag:function(e,t){e.push(t)}}}},{key:"getFromAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("Default")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-from-address"])?"":this.props.settings["admin-email-from-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"getReplyToAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("None")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-reply-to-address"])?"":this.props.settings["admin-email-reply-to-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"render",value:function(){return this.getEmailOptions().unshift({value:"",label:(0,f.translate)("Default")}),this.getEmailOptions().unshift({value:"",label:(0,f.translate)("None")}),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,f.translate)("Admin Email")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Optionally, you can send a notification email to nominated email accounts when quiz submissions come in."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(m.default,s({},this.props,{property:"use-admin-email",label:(0,f.translate)("Send an email to admin users")})),!_.isUndefined(this.props.settings["use-admin-email"])&&this.props.settings["use-admin-email"]&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(E.default,s({},this.props,{property:"admin-email-from-name",placeholder:(0,f.translate)("Default"),label:(0,f.translate)("From Name")}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-from-address",label:(0,f.translate)("From Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getFromAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(b.default,s({},this.props,{property:"admin-email-recipients",placeholder:(0,f.translate)("Recipient(s)"),options:this.getRecipientTagsOptions(),label:(0,f.translate)("Recipients"),note:(0,f.translate)("Add as many emails as you like")})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-reply-to-address",label:(0,f.translate)("Reply To Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getReplyToAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-cc-address",label:(0,f.translate)("CC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getCcAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-bcc-address",label:(0,f.translate)("BCC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getBccAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(d.default,s({},this.props,{property:"admin-email-title",placeholder:(0,f.translate)("Enter subject"),label:(0,f.translate)("Subject"),defaultValue:""})),c.default.createElement(g.default,s({},this.props,{property:"admin-email-editor",editorOptions:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",mainOptions:{quiz_name:(0,f.translate)("Quiz Name"),quiz_answer:(0,f.translate)("Quiz Answer"),quiz_result:(0,f.translate)("Quiz Result")},label:(0,f.translate)("Body")})))))}}]),t}(l.Component);t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(169);r(f);n(171);var p=function(e){function t(e){o(this,t);var n=a(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_quiz_addons&_ajax_nonce="+forminatorData.addonNonce+"&data[quiz_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,o=function(t){e.props.history.push("/"+t)},a="";return a=t?l.default.createElement("div",{className:"sui-notice sui-notice-loading"},l.default.createElement("p",null,(0,c.translate)("Fetching integration list…"))):_.isUndefined(r)||+r<=0?l.default.createElement("div",{className:"sui-notice sui-notice-warning"},l.default.createElement("p",null,(0,c.translate)("You need to save this quiz before using integrations.")),l.default.createElement("div",{className:"sui-notice-buttons"},l.default.createElement("a",{className:"sui-button",onClick:this.loadIntegrations},(0,c.translate)("TRY AGAIN")))):l.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:n}}),l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Integrations"))),l.default.createElement("div",{className:"sui-box-body"},a),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return o("notifications")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Email Notifications")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return o("settings")}},(0,c.translate)("Settings"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(230),p=r(f),d=n(231),h=r(d),m=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Settings"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props),l.default.createElement(h.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,c.translate)("Integrations"))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,f.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",label:(0,f.translate)("Disable store submissions in my database"),description:(0,f.translate)("If you don't want to store submissions in your database you can disable this feature. Alternately you can also schedule automatic deletion of submissions after a period of time below.")}))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(12),d=r(p),h=n(7),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(15),E=r(w),O=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){var e=_.isEmpty(forminatorData.submissions_quiz_retain_number)||"0"===forminatorData.submissions_quiz_retain_number,t=(0,f.translate)("forever");return e||(t=forminatorData.submissions_quiz_retain_number+" "+forminatorData.submissions_quiz_retain_unit),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,f.translate)("Privacy")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want to handle this quiz’s data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=data",target:"_blank"})}}))),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,f.translate)("Submissions")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.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,f.translate)("Use default")},c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,f.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,f.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(E.default,s({},this.props,{defaultValue:"days",property:"submissions-retention-unit"}),c.default.createElement("option",{value:"days"},(0,f.translate)("day(s)")),c.default.createElement("option",{value:"weeks"},(0,f.translate)("week(s)")),c.default.createElement("option",{value:"months"},(0,f.translate)("month(s)")),c.default.createElement("option",{value:"years"},(0,f.translate)("year(s)"))))),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Leave the field blank to retain submissions forever.")))))))}}]),t}(l.Component);t.default=O},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=r(o),i=n(41),s=n(4),u=n(19),l=n(183),c=r(l),f=n(58),p=r(f),d=n(487),h=r(d),m=(0,c.default)(forminatorData.currentForm);p.default.setLocale(forminatorl10n.locale),window.forminatorChanges={questions:[],results:[],settings:!1},(0,i.render)(a.default.createElement(s.Provider,{store:m},a.default.createElement(u.MemoryRouter,null,a.default.createElement(u.Route,{component:h.default}))),document.getElementById("forminator-personality-builder"))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=(n(4),n(1)),p=n(488),d=r(p),h=n(489),m=r(h),y=n(490),b=r(y),v=n(493),g=r(v),_=n(494),w=r(_),E=n(495),O=r(E),j=n(499),P=r(j),x=n(500),k=r(x),C=n(522),N=r(C),S=n(524),T=r(S),A=n(525),M=r(A),F=n(526),R=r(F),D=function(e){function t(e){return o(this,t),a(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(e.preventDefault(),window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.returnValue=(0,f.translate)("You have unsaved changes, are you sure want to leave this page"),(0,f.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){return l.default.createElement("div",null,l.default.createElement(d.default,null),l.default.createElement("div",{className:"sui-row-with-sidenav"},l.default.createElement("div",{className:"sui-sidenav"},l.default.createElement(b.default,this.props)),l.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},l.default.createElement(g.default,null)),l.default.createElement(c.Route,{exact:!0,path:"/",render:function(){return l.default.createElement(c.Redirect,{to:"/intro"})}}),l.default.createElement(c.Route,{path:"/intro",component:w.default}),l.default.createElement(c.Route,{path:"/personalities",component:O.default}),l.default.createElement(c.Route,{path:"/questions",component:P.default}),l.default.createElement(c.Route,{path:"/appearance",component:k.default}),l.default.createElement(c.Route,{path:"/behaviour",component:N.default}),l.default.createElement(c.Route,{path:"/notifications",component:T.default}),l.default.createElement(c.Route,{path:"/integrations",component:M.default}),l.default.createElement(c.Route,{path:"/settings",component:R.default})),l.default.createElement(m.default,this.props))}}]),t}(u.Component);t.default=D},function(e,t,n){"use strict";function r(e){return{id:e.settings.form_id}}function o(e){return(0,i.bindActionCreators)(u,e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=n(5),s=n(25),u=function(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}(s),l=n(189),c=function(e){return e&&e.__esModule?e:{default:e}}(l);t.default=(0,a.connect)(r,o)(c.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 o(e){return{modal:e.modal,questions:e.questions,results:e.results,type:"nowrong",settings:e.settings,id:e.settings.form_id||-1}}function a(e){return{actions:{builderActions:(0,s.bindActionCreators)(f,e),settingsActions:(0,s.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(191),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(173),f=r(c),p=n(25),d=r(p);t.default=(0,i.connect)(o,a)(l.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 o(e){return{id:e.settings.form_id,title:e.settings.formName||""}}function a(e){return{actions:{navigationActions:(0,s.bindActionCreators)(f,e),modalActions:(0,s.bindActionCreators)(l,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(26),l=r(u),c=n(203),f=r(c),p=n(491),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(492),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=n(1),p=n(204),d=r(p),h=n(205),m=r(h),y=n(206),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-sidenav-sticky sui-sidenav-hide-md"},l.default.createElement("ul",{className:"sui-vertical-tabs sui-alt-design"},l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/intro",activeClassName:"current"},(0,f.translate)("Intro"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/personalities",activeClassName:"current"},(0,f.translate)("Personalities"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/questions",activeClassName:"current"},(0,f.translate)("Questions"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,f.translate)("Appearance"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,f.translate)("Behaviour"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,f.translate)("Email Notifications"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,f.translate)("Integrations"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(m.default,this.props))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(d.default,this.props),l.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},l.default.createElement("label",{className:"sui-label"},(0,f.translate)("Navigate")),l.default.createElement(b.default,this.props,l.default.createElement("option",{value:""},(0,f.translate)("Intro")),l.default.createElement("option",{value:"personalities"},(0,f.translate)("Personalities")),l.default.createElement("option",{value:"questions"},(0,f.translate)("Questions")),l.default.createElement("option",{value:"appearance"},(0,f.translate)("Appearance")),l.default.createElement("option",{value:"behaviour"},(0,f.translate)("Behaviour")),l.default.createElement("option",{value:"notifications"},(0,f.translate)("Email Notifications")),l.default.createElement("option",{value:"integrations"},(0,f.translate)("Integrations")),l.default.createElement("option",{value:"settings"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-hide-lg"},l.default.createElement(m.default,this.props))))}}]),t}(u.Component);t.default=v},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 o(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges,type:"nowrong"}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(207),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,type:"personality"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(210),m=o(h);t.default=(0,u.connect)(a,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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{questions:e.questions,results:e.results,settings:e.settings}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(d,e),builderActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(173),f=r(c),p=n(25),d=r(p),h=n(26),m=r(h),y=n(496),b=o(y);t.default=(0,u.connect)(a,i)(b.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(497),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Personalities"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement("p",{className:"sui-description"},(0,c.translate)("Let's add the different personalities. Each of the following personality is a possible outcome of your quiz. In case of a tie, the personality is chosen as per their order below."))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-body",style:{paddingTop:"10px"}},l.default.createElement("p",{className:"sui-description"},(0,c.translate)("Reorder the personalities to set the priority order."))),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("questions")}},(0,c.translate)("Questions"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(498),d=r(p),h=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addItem=n.addItem.bind(n),n.closeModal=n.closeModal.bind(n),n}return i(t,e),u(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.results)&&!_.isEmpty(this.props.results)&&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 o=n.item.index();e.moveOption(o,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"moveOption",value:function(e,t){var n=this.props.results;n.splice(t,0,n.splice(e,1)[0]),this.props.actions.builderActions.updateResults(n),this.forceUpdate()}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"personality")}},{key:"addItem",value:function(){var e={slug:"result-"+(0,f.randNumber)()+"-"+(0,f.randNumber)()};this.props.actions.modalActions.showModal({open:!0,new:!0,result:e,results:this.props.results,closeModal:this.closeModal},"personality")}},{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.results.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.results,function(t,n){return c.default.createElement(d.default,s({key:t.slug,result:t},e.props,{counter:n}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addItem},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Personality")),0===this.props.results.length&&c.default.createElement("div",{className:"sui-builder-empty-message sui-block-content-center"},c.default.createElement("p",{className:"sui-description"},(0,f.translate)("Define the different personalities possible as the outcome of your quiz here.")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))))}}]),t}(l.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 o(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 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}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(1),f=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.trashResult=n.trashResult.bind(n),n.deleteResult=n.deleteResult.bind(n),n.closeDeleteField=n.closeDeleteField.bind(n),n.editModal=n.editModal.bind(n),n.closeEditModal=n.closeEditModal.bind(n),n.duplicateResult=n.duplicateResult.bind(n),n}return i(t,e),s(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getResultsWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.result.slug})}},{key:"deleteResult",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,result:this.props.result,closeModal:this.closeDeleteField,trashField:this.trashResult},"deletePersonality")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,result:this.props.result,closeModal:this.closeDeleteField,trashField:this.trashResult},"deletePersonality")}},{key:"trashResult",value:function(){var e=[].concat(r(this.props.results)),t=this.getResultsWithoutCurrent(e);this.closeMenu(),this.props.actions.builderActions.updateResults(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"personality")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,result:this.props.result,closeModal:this.closeEditModal},"personality")}},{key:"duplicateResult",value:function(){var e=Object.assign({},this.props.result);e.slug="result-"+(0,c.randNumber)()+"-"+(0,c.randNumber)();var t=[].concat(r(this.props.results),[e]);this.props.actions.builderActions.updateResults(t)}},{key:"render",value:function(){var e="";return _.isUndefined(this.props.result.image)||_.isEmpty(this.props.result.image)||(e="url("+this.props.result.image+")"),l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},l.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},l.default.createElement("span",{style:{backgroundImage:e}})),l.default.createElement("span",null,this.props.result.title))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open field settings"))),l.default.createElement("ul",null,l.default.createElement("li",null,l.default.createElement("button",{onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),l.default.createElement("li",null,l.default.createElement("button",{onClick:this.duplicateResult},l.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),l.default.createElement("li",null,l.default.createElement("button",{className:"sui-option-red",onClick:this.deleteResult},l.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(u.Component);t.default=f},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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,questions:e.questions,results:e.results,type:"personality"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(d,e),builderActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(173),f=r(c),p=n(25),d=r(p),h=n(26),m=r(h),y=n(211),b=o(y);t.default=(0,u.connect)(a,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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(501),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(66),p=r(f),d=n(72),h=r(d),m=n(215),y=r(m),b=n(502),v=r(b),g=n(512),w=r(g),E=n(221),O=r(E),j=n(222),P=r(j),x=function(e){function t(e){return o(this,t),a(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};p.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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Appearance"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(y.default,this.props),l.default.createElement(v.default,this.props),l.default.createElement(w.default,this.props),l.default.createElement(O.default,this.props),l.default.createElement(P.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("questions")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Questions")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behaviour"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(503),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Colors"),description:(0,f.translate)("Adjust the default colour combinations to match your theme styling.")},c.default.createElement(m.default,s({},this.props,{property:"nowrong-toggle-palette",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,f.translate)("Default")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(504),m=r(h),y=n(505),b=r(y),v=n(506),g=r(v),_=n(507),w=r(_),E=n(508),O=r(E),j=n(509),P=r(j),x=n(510),k=r(x),C=n(511),N=r(C),S=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Basic")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Container")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Checkbox")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Text")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Result")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Retake Button")}),c.default.createElement(N.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share")}),c.default.createElement(P.default,this.props)))}}]),t}(l.Component);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"nowrong-title-color",defaultValue:"#333333"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Description color"),property:"nowrong-description-color",defaultValue:"#8C8C8C"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question color"),property:"nowrong-question-color",defaultValue:"#333333"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-border-static",defaultValue:"#EBEDEB",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-background-static",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-background-hover",defaultValue:"#F3FBFE",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-background-active",defaultValue:"#F3FBFE",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-chkbo-static",defaultValue:"#BFBFBF",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-chkbg-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-chkbo-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-chkbg-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Icon color"),property:"nowrong-answer-chck-icon",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"nowrong-answer-color-static",defaultValue:"#888888"}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"nowrong-answer-color-active",defaultValue:"#333333"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-submit-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-submit-color-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-submit-background-hover",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-submit-color-hover",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-submit-background-active",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-submit-color-active",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"knowledge-sshare-color",defaultValue:"#4D4D4D"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),property:"knowledge-social-facebook",defaultValue:"#0084BF"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),property:"knowledge-social-twitter",defaultValue:"#1DA1F2"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),property:"knowledge-social-linkedin",defaultValue:"#0084BF"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"main",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"main",label:(0,f.translate)("Main")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Container border"),property:"nowrong-result-border-color",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Container background"),property:"nowrong-result-background-main",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"header",label:(0,f.translate)("Header")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"nowrong-result-quiz-color",defaultValue:"#FFFFFF"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-background-head",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"body",label:(0,f.translate)("Body")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"nowrong-result-title-color",defaultValue:"#333333"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Description color"),property:"nowrong-result-description-color",defaultValue:"#4D4D4D"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Content background"),property:"nowrong-result-background-body",defaultValue:"#EBEDEB"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-retake-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-result-retake-color-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-retake-background-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-result-retake-color-hover",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-retake-background-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-result-retake-color-active",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(513),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Fonts"),description:(0,f.translate)("By default this quiz will inherit the fonts your theme uses. You can override these fonts with custom ones from Google Fonts.")},c.default.createElement(m.default,s({},this.props,{property:"nowrong-toggle-typography",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,f.translate)("Use Theme Fonts")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(514),m=r(h),y=n(515),b=r(y),v=n(516),g=r(v),_=n(517),w=r(_),E=n(518),O=r(E),j=n(519),P=r(j),x=n(520),k=r(x),C=n(521),N=r(C),S=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Title")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Description")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Result")}),c.default.createElement(P.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Title")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Icons")}),c.default.createElement(N.default,this.props)))}}]),t}(l.Component);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-title",defaultFont:"Roboto",defaultSize:"42",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-description",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-question",defaultFont:"Roboto",defaultSize:"24",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-answer",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-submit",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=n(13),h=r(d),m=n(7),y=r(m),b=n(1),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"quiz-name",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{value:"quiz-name",label:(0,b.translate)("Quiz Name")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-quiz",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"500"}))),c.default.createElement(y.default,{value:"retake",label:(0,b.translate)("Retake")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-retake",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"500"}))),c.default.createElement(y.default,{value:"title",label:(0,b.translate)("Title")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-title",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"500"}))),c.default.createElement(y.default,{value:"description",label:(0,b.translate)("Content")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-description",defaultFont:"Roboto",defaultSize:"13",defaultWeight:"400"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-sshare",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(20),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{property:"nowrong-social-size",defaultValue:"36",label:(0,f.translate)("Icon size"),description:(0,f.translate)("Choose one of the pre-defined sizes we have for social share icons.")}),c.default.createElement("div",{value:"24"},(0,f.translate)("Regular")),c.default.createElement("div",{value:"30"},(0,f.translate)("Medium")),c.default.createElement("div",{value:"36"},(0,f.translate)("Large")))}}]),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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(523),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(223),p=r(f),d=n(224),h=r(d),m=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Behaviour"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(l.default.Fragment,null,l.default.createElement(h.default,this.props),l.default.createElement(p.default,this.props))),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("notifications")}},(0,c.translate)("Notifications"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=m},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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(226),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(26),a=n(228),i=function(e){return e&&e.__esModule?e:{default:e}}(a),s=function(e){return{hideModal:function(){return e((0,o.hideModal)())},showModal:function(t,n){e((0,o.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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(229),m=o(h);t.default=(0,u.connect)(a,i)(m.default)}]);
|
22 |
* @author Feross Aboukhadijeh <https://feross.org>
|
23 |
* @license MIT
|
24 |
*/
|
25 |
+
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 o=n(38),a=n(8),i=n(158),s=n(159);r.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,{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},a.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))}}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(8);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(69);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(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,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,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 o=n(8);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(o.isURLSearchParams(t))a=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(8),o=["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,a,i={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.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(8);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),i="",s=0,u=a;o.charAt(0|s)||(u="=",s%1);i+=u.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return i}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(8);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!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 o=n(8);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){o.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 o=n(8),a=n(160),i=n(70),s=n(38),u=n(161),l=n(162);e.exports=function(e){return r(e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.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=a(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(8);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 o(e),t(n.reason))})}var o=n(71);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(73),o=n(74),a={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},u=function e(t,n,o,a,i,u,l,c,f,p,d,h){var m=t;if("function"==typeof l)m=l(n,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return u&&!h?u(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m)){if(u){return[d(h?n:u(n,s.encoder))+"="+d(u(m,s.encoder))]}return[d(n)+"="+d(String(m))]}var y=[];if(void 0===m)return y;var b;if(Array.isArray(l))b=l;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[_],o(n,_),o,a,i,u,l,c,f,p,d,h)):y.concat(e(m[_],n+(f?"."+_:"["+_+"]"),o,a,i,u,l,c,f,p,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 l=void 0===i.delimiter?s.delimiter:i.delimiter,c="boolean"==typeof i.strictNullHandling?i.strictNullHandling:s.strictNullHandling,f="boolean"==typeof i.skipNulls?i.skipNulls:s.skipNulls,p="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=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var v,g,_=o.formatters[i.format];"function"==typeof i.filter?(g=i.filter,n=g("",n)):Array.isArray(i.filter)&&(g=i.filter,v=g);var w=[];if("object"!=typeof n||null===n)return"";var E;E=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=a[E];v||(v=Object.keys(n)),h&&v.sort(h);for(var j=0;j<v.length;++j){var P=v[j];f&&null===n[P]||(w=w.concat(u(n[P],P,O,c,f,p?d:null,g,h,m,y,_,b)))}var x=w.join(l),k=!0===i.addQueryPrefix?"?":"";return x.length>0?k+x:""}},function(e,t,n){"use strict";var r=n(73),o=Object.prototype.hasOwnProperty,a={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),u=0;u<s.length;++u){var l,c,f=s[u],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(l=t.decoder(f,a.decoder),c=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,d),a.decoder),c=t.decoder(f.slice(d+1),a.decoder)),o.call(n,l)?n[l]=[].concat(n[l]).concat(c):n[l]=c}return n},s=function(e,t,n){for(var r=t,o=e.length-1;o>=0;--o){var a,i=e[o];if("[]"===i)a=[],a=a.concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,u=parseInt(s,10);!isNaN(u)&&i!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=r):a[s]=r}r=a}return r},u=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,u=a.exec(r),l=u?r.slice(0,u.index):r,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;null!==(u=i.exec(r))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+r.slice(u.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:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?i(e,n):e,s=n.plainObjects?Object.create(null):{},l=Object.keys(o),c=0;c<l.length;++c){var f=l[c],p=u(f,o[f],n);s=r.merge(s,p,n)}return r.compact(s)}},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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=u.default.Children.map(this.props.children,function(r){var o="";return r.props.image1x&&r.props.image2x&&(o=u.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&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(o=u.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},o,u.default.createElement("span",{className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,value:r.props.value,id:"forminator-field-"+r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))):r.props.hasImage?void 0:u.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},u.default.createElement("input",{type:"radio",name:"forminator-"+e.props.value,id:"forminator-field-"+r.props.value,value:r.props.value,checked:n===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,r.props.children))});return this.props.noWrapper?r:u.default.createElement("div",{className:"sui-form-field"},r)}}]),t}(s.Component);t.default=l},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.insertSelector=n.insertSelector.bind(n),n}return a(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,r=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Form")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-title ")}},(0,l.translate)("Section Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-break .forminator-subtitle ")}},(0,l.translate)("Section Subtitle")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label ")}},(0,l.translate)("Field Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-label--helper ")}},(0,l.translate)("Field Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-input ")}},(0,l.translate)("Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-textarea ")}},(0,l.translate)("Textarea")))),o=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Poll")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--question ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--design ")}},(0,l.translate)("Answer Input")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio--label ")}},(0,l.translate)("Answer Label")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-button ")}},(0,l.translate)("Submit Button")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-poll--actions a ")}},(0,l.translate)("View Results Link")))),a=u.default.createElement(u.default.Fragment,null,u.default.createElement("label",{className:"sui-label"},(0,l.translate)("Basic selectors")),u.default.createElement("div",{className:"sui-ace-selectors"},u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,l.translate)("Quiz")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,l.translate)("Title")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description ")}},(0,l.translate)("Description")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question legend ")}},(0,l.translate)("Question")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer ")}},(0,l.translate)("Answer Container")),u.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,l.translate)("Answer Text"))));return u.default.createElement(u.default.Fragment,null,"form"===n&&r,"poll"===n&&o,"quiz"===n&&a,u.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";var r=n(170),o=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,n,r){function a(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(a.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},a=n.data("nonce"),i=n.data("slug"),s=n.data("title"),u=n.data("image"),l=n.data("imagex2"),c=n.data("action"),f=n.data("form-id"),p=n.data("multi-id"),d=n.data("poll-id"),h=n.data("quiz-id"),m=_.template('<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup"><div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div><div class="sui-dialog-content sui-bounce-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog"><div class="sui-box" role="document"><div class="sui-box-header sui-block-content-center"><div class="sui-dialog-image" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image_x2 %> 2x" alt="<%= title %>" class="sui-image sui-image-center" /></div><div class="integration-header"></div><button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button><button class="sui-dialog-close forminator-integration-close" aria-label="Close"></button></div><div class="sui-box-body"></div><div class="sui-box-footer sui-box-footer-center"></div></div></div></div>');jQuery("main.sui-wrap").append(m({image:u,image_x2:l,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:i,nonce:a,action:c,multi_id:p,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=d:"quiz"===t.options.type&&(y.quiz_id=h),new o.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-bounce-out").addClass("sui-bounce-in"),this.$popup.removeAttr("aria-hidden"),jQuery("body").css("overflow","hidden"),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){var t=jQuery("#forminator-integration-popup");t.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),t.find(".sui-dialog-content").removeClass("sui-bounce-in").addClass("sui-bounce-out"),jQuery("body").css("overflow","auto"),setTimeout(function(){t.attr("aria-hidden","true")},300),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new a(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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(44),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){var n;r(this,t);var a=o(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"}}));return a.slug=e.slug,a.nonce=e.nonce,a.action=e.action,a.multi_id=e.multi_id,a.type=e.type,a.step=0,a.next_step=!1,a.prev_step=!1,a.scrollbar_width=a.getScrollbarWidth(),"form"===a.type?a.form_id=e.form_id:"poll"===a.type?a.poll_id=e.poll_id:"quiz"===a.type&&(a.quiz_id=e.quiz_id),n=a.render(),o(a,n)}return a(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=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"request",value:function(e,t,n){var r=this,o={data:e,close:t,loader:n};n&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var n=e.data.data;if(r.onRender(n),r.$el.find(".sui-button").removeClass("sui-button-onload"),(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 u.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 a=jQuery("#forminator-integration-popup");"normal"===n.size&&a.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===n.size&&(a.addClass("sui-dialog-sm"),a.removeClass("sui-dialog-lg sui-dialog-reduced")),"reduced"===n.size&&(a.addClass("sui-dialog-reduced"),a.removeClass("sui-dialog-lg sui-dialog-sm")),"large"===n.size&&(a.addClass("sui-dialog-lg"),a.removeClass("sui-dialog-sm sui-dialog-reduced"))}n.is_poll&&setTimeout(r.request(o.data,o.close,o.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .integration-header").remove();t.length>0&&this.$el.find(".integration-header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,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,l.suiDelegateEvents)(),(0,l.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:"submitNextStep",value:function(e){var t={},n=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!1),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},n={slug:this.slug,step:this.getPrevStep(),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(),current_step:this.step},o=n.serialize();r=this.getAjaxModuleData(r,!0),o=o+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=o,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(),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,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(jQuery.browser.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"form"===this.type&&this.form_id?e.form_id=this.form_id:"poll"===this.type&&this.poll_id?e.poll_id=this.poll_id:"quiz"===this.type&&this.quiz_id&&(e.quiz_id=this.quiz_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":"form"===this.type?e="forminator_addon_form_deactivate":"poll"===this.type?e="forminator_addon_poll_deactivate":"quiz"===this.type&&(e="forminator_addon_quiz_deactivate")}return e}}]),t}(Backbone.View);t.default=c},function(e,t,n){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function o(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 a(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 w.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 u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(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=l(t);return t.readAsArrayBuffer(e),n}function f(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}function p(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:w.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:w.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():w.arrayBuffer&&w.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):w.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):w.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},w.blob&&(this.blob=function(){var e=u(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?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w.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," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),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 o=n.join(":").trim();t.append(r,o)}}),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 o(){i.abort()}var a=new y(e,t);if(a.signal&&a.signal.aborted)return r(new x("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 x("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&w.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",o),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",o)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=s,t.Request=y,t.Response=g,n.d(t,"DOMException",function(){return x}),t.fetch=_;var w={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(w.arrayBuffer)var E=["[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&&E.indexOf(Object.prototype.toString.call(e))>-1};s.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[o(e)]},s.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},s.prototype.set=function(e,t){this.map[o(e)]=a(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)},w.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 P=[301,302,303,307,308];g.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var x=self.DOMException;try{new x}catch(e){x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},x.prototype=Object.create(Error.prototype),x.prototype.constructor=x}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=s,self.Request=y,self.Response=g)},,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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$el.on("change.select2",this.handleChange),_.each(t,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(t).trigger("change.select2")}},{key:"handleChange",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)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.handleChange),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],n="";return this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),u.default.createElement("div",{className:"sui-form-field"},n,u.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select",defaultValue:t,multiple:"multiple"},this.props.children))}}]),t}(s.Component);t.default=l},,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c(l.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(5),i=n(127),s=r(i),u=n(184),l=r(u),c=(0,a.compose)((0,a.applyMiddleware)(s.default))(a.createStore)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),a=n(185),i=r(a),s=n(186),u=r(s),l=n(187),c=r(l),f=n(188),p=r(f),d=(0,o.combineReducers)({questions:i.default,results:u.default,settings:c.default,modal:p.default});t.default=d},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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(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 a(){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 o([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;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 o(e,t){var n=t.settings;return s({},e,n)}function a(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 o(n,t);case"UPDATE_SETTING":return r(n,t);case"UPDATE_TITLE":return a(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){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement("div",{className:"sui-header sui-header-inline sui-with-floating-input"},i.default.createElement("h1",{className:"sui-header-title"},(0,l.translate)("Edit Quiz")),i.default.createElement("div",{className:"sui-actions-right"},i.default.createElement(u.default,e)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(190),u=r(s),l=n(1)},function(e,t,n){"use strict";function r(e){return forminatorData.showDocLink?a.default.createElement("a",{href:"https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#quizzes",target:"_blank",className:"sui-button sui-button-ghost"},a.default.createElement("i",{className:"sui-icon-academy"})," ",(0,i.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(41),f=r(c),p=n(192),d=r(p),h={preview:d.default.previewModal,publish:d.default.publishModal,delete:d.default.deleteModal,shortcode:d.default.shortcodeModal,question:d.default.questionModal,submit:d.default.submitModal,personality:d.default.personalityModal,deletePersonality:d.default.deletePersonalityModal},m=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var n=f.default.findDOMNode(this);this.props.modal.modalProps.open?n.removeAttribute("aria-hidden"):this.hideModalTimeout=setTimeout(function(){n.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){if(!this.props.modal.modalType)return null;var e="",t=["sui-dialog-overlay","sui-fade-in"],n=["sui-dialog-content","sui-bounce-in"];this.props.modal.modalProps.open||(t=["sui-dialog-overlay","sui-fade-out"],n=["sui-dialog-content","sui-bounce-out"]);var r=h[this.props.modal.modalType];return"publish"!==this.props.modal.modalType&&"shortcode"!==this.props.modal.modalType||(e=" sui-dialog-sm fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deletePersonality"!==this.props.modal.modalType||(e=" sui-dialog-sm"),l.default.createElement("div",{id:"forminator-modal",className:"sui-dialog"+e,tabIndex:"-1"},l.default.createElement("div",{className:""+t.join(" "),onClick:this.props.modal.modalProps.closeModal}),l.default.createElement("div",{className:""+n.join(" "),"aria-labelledby":"dialogTitle","aria-describedby":"dialogDescription",role:"dialog"},l.default.createElement("div",{className:"sui-box",role:"document"},l.default.createElement(r,this.props))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(193),a=r(o),i=n(194),s=r(i),u=n(195),l=r(u),c=n(196),f=r(c),p=n(197),d=r(p),h=n(198),m=r(h),y=n(201),b=r(y),v=n(202),g=r(v),_={previewModal:a.default,publishModal:s.default,deleteModal:l.default,shortcodeModal:d.default,questionModal:m.default,submitModal:b.default,personalityModal:g.default,deletePersonalityModal:f.default};t.default=_},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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.previewLoaded=n.previewLoaded.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$body=jQuery(this.body),this.mounted=!0,this.load(),jQuery(document).off("after.load.forminator"),jQuery(document).on("after.load.forminator",this.previewLoaded)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"previewLoaded",value:function(){this.$body.find(".sui-notice-loading").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",render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},"Preview"),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),u.default.createElement("div",{ref:function(t){return e.body=t},className:"sui-box-body"},u.default.createElement("div",{className:"sui-notice sui-notice-loading"},u.default.createElement("p",null,(0,l.translate)("Loading preview…"))),u.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),t}(s.Component);t.default=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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Publishing quiz…"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Great work! Please hold tight a few moments while we publish your quiz to the world."))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Question")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Deleting this question will remove its value from the existing submissions as well."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("DELETE")))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=(n(19),n(1)),c=function(e){function t(e){r(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.trashField=n.trashField.bind(n),n}return a(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,l.translate)("Delete Personality")),u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,l.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,l.translate)("Are you sure you wish to delete this Personality? Questions in your quiz may end up with the answers without any associated Personality."))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,l.translate)("Cancel")),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,l.translate)("Delete")))))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(44),p=r(f),d=function(e){function t(e){o(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.copyToClipboard=n.copyToClipboard.bind(n),n}return i(t,e),s(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new p.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"render",value:function(){var e=this;return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-box-header sui-block-content-center"},l.default.createElement("i",{className:"sui-icon-check sui-lg","aria-hidden":"true"}),l.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Ready to go!")),l.default.createElement("button",{className:"sui-dialog-close forminator-cancel-create-form","aria-label":(0,c.translate)("Close this dialog window"),onClick:this.closeModal})),l.default.createElement("div",{className:"sui-box-body sui-block-content-center"},l.default.createElement("p",null,l.default.createElement("small",null,(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!"))),l.default.createElement("div",{id:"forminator-form-name-input",className:"sui-form-field"},l.default.createElement("label",{htmlFor:"forminator-form-name",className:"sui-label"},(0,c.translate)("Shortcode")),l.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},l.default.createElement("input",{type:"text",id:"forminator-form-shortcode",ref:function(t){return e.input=t},className:"sui-form-control",defaultValue:'[forminator_quiz id="'+this.props.id+'"]'}),l.default.createElement("button",{className:"sui-button-icon",onClick:this.copyToClipboard},l.default.createElement("i",{"aria-hidden":"true",className:"sui-icon-copy"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Copy shortcode")))))),forminatorData.showBranding&&l.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=(r(h),n(6)),y=(r(m),n(2)),b=r(y),v=n(76),g=r(v),w=n(199),E=r(w),O=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 u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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(){if(_.isUndefined(this.state.title)||_.isEmpty(this.state.title))return!1;if(_.isUndefined(this.state.answers)||_.isEmpty(this.state.answers))return!1;var e=_.filter(this.state.answers,function(e){return!(!_.isEmpty(e.title)||!_.isEmpty(e.image))});if(!_.isEmpty(e))return!1;if("knowledge"===this.state.type){if(!_.some(this.state.answers,function(e){return e.toggle}))return!1}if("nowrong"===this.state.type){if(_.some(this.state.answers,function(e){return _.isEmpty(e.result)}))return!1}return!0}},{key:"render",value:function(){var e=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Edit Question"),t=!0===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Question"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(b.default,l({},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})),p.default.createElement(g.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty,darkLabel:!0})),p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,d.translate)("Answers")," ",p.default.createElement("span",{className:"sui-error"},"*")),p.default.createElement("span",{className:"sui-description"},(0,d.translate)("You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected.")))),p.default.createElement(E.default,l({},this.props,{state:this.state,type:this.data.type,results:this.data.results,updateProperty:this.updateProperty})),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(200),h=r(d),m=function(e){function t(e){a(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(o(n.props.state.answers))},n}return s(t,e),l(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 o=n.item.index();e.moveOption(o,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 f.default.createElement("div",{className:"sui-box-body",style:{paddingBottom:"0"},ref:function(t){return e.el=t}},f.default.createElement("div",{className:"sui-box-builder sui-flushed"},f.default.createElement("div",{className:"sui-box-builder-body"},f.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,n){return f.default.createElement(h.default,u({key:n,counter:n,answer:t,removeAnswer:e.removeAnswer,updateTitle:e.updateTitle,updateImage:e.updateImage,updateCheckbox:e.updateCheckbox,updateResult:e.updateResult},e.props))})),f.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addAnswer},f.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(43),b=r(y),v=n(15),g=(r(v),function(e){function t(e){o(this,t);var n=a(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),u(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)&&("nowrong"!==this.props.answer.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",fieldClass:"sui-auto",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,f.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,f.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,f.translate)("Delete answer")))))}}]),t}(l.Component));t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default: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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var 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}}(),c=n(0),f=r(c),p=n(1),d=n(10),h=r(d),m=n(6),y=r(m),b=n(2),v=r(b),g=function(e){function t(e){a(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),l(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"applyChanges",value:function(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"sui-box-header"},f.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,p.translate)("Submit Button")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,p.translate)("Close this dialog window"),onClick:this.closeModal}))),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Text"),placeholder:(0,p.translate)("Enter text"),property:"button-text",updateProperty:this.updateProperty}))),f.default.createElement(y.default,{cols:"6"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Button Processing Text"),placeholder:(0,p.translate)("Sending..."),property:"button-processing-text",description:(0,p.translate)("This text will appear as button text while the quiz is being submitted."),updateProperty:this.updateProperty})))),f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"12"},f.default.createElement(v.default,u({},this.props,{settings:this.state,label:(0,p.translate)("Custom CSS Classes"),placeholder:(0,p.translate)("E.g. form-submit-btn"),property:"custom-class",description:(0,p.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}))))),f.default.createElement("div",{className:"sui-box-footer"},f.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},f.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,p.translate)("Discard Changes")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,p.translate)("Apply")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,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 u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value: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},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}}(),f=n(0),p=r(f),d=n(1),h=n(10),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(76),E=r(w),O=n(39),j=r(O),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.result,n}return u(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(a({},e,t))}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(o(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===this.data.new?(0,d.translate)("Cancel"):(0,d.translate)("Discard Changes"),n=!0===this.data.new?(0,d.translate)("Add Personality"):(0,d.translate)("Apply");return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},e),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(g.default,l({},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})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(E.default,l({},this.props,{settings:this.state,type:"image",label:(0,d.translate)("Image"),fieldClass:"sui-auto",property:"image",updateProperty:this.updateProperty})))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"12"},p.default.createElement(j.default,l({},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")}}))))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),t),p.default.createElement("div",{className:"sui-actions-right"},this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!this.isValid()&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":(0,d.translate)("Please validate your fields!")},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),n),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(f.Component);t.default=P},function(e,t,n){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:o,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var o=t.UPDATE_TITLE="UPDATE_TITLE"},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(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)?"sui-form-field-error":"";return u.default.createElement("div",{className:"sui-form-field sui-with-floating-input "+n},u.default.createElement("input",{type:"text",placeholder:(0,l.translate)("Give your quiz a name"),value:t,className:"sui-form-control",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)}}),_.isEmpty(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,l.translate)("Please, enter a valid name.")))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.openModal=n.openModal.bind(n),n}return a(t,e),i(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,l.translate)("Preview")},"preview"),jQuery("#forminator-quiz-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 u.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,l.translate)("Preview"))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return u.default.createElement("select",{className:"sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children)}}]),t}(s.Component);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=(n(1),n(66)),p=r(f),d=n(72),h=r(d),m=n(208),y=r(m),b=n(209),v=r(b),g=function(e){function t(e){o(this,t);var n=a(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),u(t,[{key:"publish",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({publishLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"publish",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props,n=t.state,r=t.type,o=n.settings,a=o.form_id,i=o.formName,s=_.isUndefined(i)?"":i,u=_.isUndefined(a)?-1:a;this.setState({draftLoading:!0});var l={action:"forminator_save_quiz_"+r,_wpnonce:forminatorData.formNonce,formName:s,form_id:u,status:"draft",version:forminatorData.version,data:JSON.stringify(n)};setTimeout(function(){e.save(l,"draft")},1500)}},{key:"save",value:function(e,t){var n=this,r=this,o=this.props,a=o.status,i=o.type;p.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(o){-1===e.form_id&&(n.props.actions.settingsActions.updateSetting("form_id",o.data.data),forminatorData.currentForm.settings.form_id=o.data.data,"knowledge"===i?window.history.pushState({},"Edit Knowledge Quiz",forminatorData.knowledgeEditUrl+"&id="+o.data.data):window.history.pushState({},"Edit No Wrong Quiz",forminatorData.noWrongEditUrl+"&id="+o.data.data)),n.props.actions.settingsActions.saveBuilder("form_status",t),n.setState({publishLoading:!1,draftLoading:!1}),("draft"===a&&"publish"===t||_.isUndefined(a)&&"publish"===t)&&setTimeout(function(){var e=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:e},"shortcode")},50)}).catch(function(e){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(y.default,s({},this.props,{state:this.state})),c.default.createElement(v.default,s({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(l.Component);t.default=g},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 a.default.createElement("div",{className:"sui-status"},a.default.createElement("div",{className:"sui-status-module"},"Status",a.default.createElement("span",{className:"sui-tag "+n},function(){switch(t){case"publish":return(0,i.translate)("Published");default:return(0,i.translate)("Draft")}}())),r&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,i.translate)("Saving...")),!r&&e.changed.settings&&a.default.createElement("div",{className:"sui-status-changes"},a.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,i.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&a.default.createElement("div",{className:"sui-status-changes"},a.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 o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(1)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(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 a(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this,t=this.props,n=t.status,r=t.title;_.isEmpty(r)||(this.props.publish(),("draft"===n||_.isEmpty(n))&&(this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"),setTimeout(function(){e.closeModal()},1500)))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e)||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,n=t.draftLoading,r=t.publishLoading;return u.default.createElement("div",{className:"sui-actions"},u.default.createElement("button",{id:"forminator-module-save",disabled:!!n,className:"sui-button",onClick:this.draft},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-save","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Unpublish");default:return(0,l.translate)("Save Draft")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),u.default.createElement("button",{id:"forminator-module-publish",disabled:!!r,className:"sui-button sui-button-blue",onClick:this.publish},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),u.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,l.translate)("Update");default:return(0,l.translate)("Publish")}}())),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(s.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(76),m=r(h),y=n(39),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.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,f.translate)("Title")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.translate)("Title"),type:"text",placeholder:(0,f.translate)("Which superhero are you?"),description:(0,f.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,f.translate)("Feature Image")),c.default.createElement("span",{className:"sui-description"},(0,f.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,f.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,f.translate)("Description")),c.default.createElement("span",{className:"sui-description"},(0,f.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:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",label:"",mainOptions:{quiz_name:(0,f.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,f.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,f.translate)("Personalities"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(212),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Questions"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},"knowledge"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),"personality"===this.props.type&&l.default.createElement("button",{className:"sui-button",onClick:function(){return t("personalities")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Personalities")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,c.translate)("Appearance"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(213),d=r(p),h=n(214),m=r(h),y=function(e){function t(e){o(this,t);var n=a(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),u(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 o=n.item.index();e.moveOption(o,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,f.randNumber)()+"-"+(0,f.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,f.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,f.translate)("A quiz without questions is not going to be very useful… Add your questions above!")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))),c.default.createElement(m.default,this.props))}}]),t}(l.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 o(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 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}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(1),f=function(e){function t(e){o(this,t);var n=a(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=Object.assign({},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+")"),l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},l.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},l.default.createElement("span",{style:{backgroundImage:e}})),l.default.createElement("span",null,this.props.question.title))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open field settings"))),l.default.createElement("ul",null,l.default.createElement("li",null,l.default.createElement("button",{onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),l.default.createElement("li",null,l.default.createElement("button",{onClick:this.duplicateQuestion},l.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),l.default.createElement("li",null,l.default.createElement("button",{className:"sui-option-red",onClick:this.deleteQuestion},l.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(u.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=n.closeModal.bind(n),n.editSettings=n.editSettings.bind(n),n}return a(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,l.translate)("Submit"):this.props.settings.submitData["button-text"];return u.default.createElement("div",{className:"sui-box-builder-footer sui-fields-boxed"},u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},u.default.createElement("div",{onClick:this.editSettings,className:"sui-field-info"},u.default.createElement("div",{className:"sui-builder-field-label"},u.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),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",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(216),b=r(y),v=n(217),g=r(v),_=n(218),w=r(_),E=n(219),O=r(E),j=n(220),P=r(j),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Design Style"),description:(0,f.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,f.translate)("Default")),c.default.createElement(g.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Flat")),c.default.createElement(w.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Bold")),c.default.createElement(O.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,f.translate)("Material")),c.default.createElement(P.default,{value:"none",boxClass:"sui-tab-content"},(0,f.translate)("None"))))}}]),t}(l.Component);t.default=x},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--default"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--flat"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--bold"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"fui-demo fui-demo--quiz fui-demo--material"},u.default.createElement("span",null,(0,l.translate)("Question text?")),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.translate)("Option Unselected")))),u.default.createElement("label",null,u.default.createElement("input",{type:"radio",checked:"checked",readOnly:!0}),u.default.createElement("span",null,u.default.createElement("span",{"aria-hidden":"true"}),u.default.createElement("span",null,(0,l.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1),c=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,l.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 o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(167),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Options Layout"),description:(0,f.translate)("Choose how you want to display the quiz options to the viewers.")},c.default.createElement(m.default,s({},this.props,{radioClass:"sui-radio-sm",property:"visual_style"}),c.default.createElement("div",{value:"list",hasImage:!0,image1x:"quiz-list.png",image2x:"quiz-list@2x.png"},(0,f.translate)("List")),c.default.createElement("div",{value:"grid",hasImage:!0,image1x:"quiz-grid.png",image2x:"quiz-grid@2x.png"},(0,f.translate)("Grid"))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(24),m=r(h),y=n(168),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Custom CSS"),description:(0,f.translate)("For more advanced customization options use custom CSS.")},c.default.createElement(m.default,s({},this.props,{label:(0,f.translate)("Enable custom CSS"),property:"use-custom-css"})),e)}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Rendering")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want your poll 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,f.translate)("Load quiz using AJAX"),description:(0,f.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,f.translate)("Prevent page caching on quiz pages"),description:(0,f.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}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(225),b=r(y),v=n(18),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Social Sharing"),description:(0,f.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,f.translate)("Enable")})),c.default.createElement(g.default,{value:"off",label:(0,f.translate)("Disable")})))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(43),d=r(p),h=n(75),m=r(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Social Sharing Platforms")),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),fieldId:"share-facebook",property:"facebook",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),fieldId:"share-twitter",property:"twitter",itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),fieldId:"share-linkedin",property:"linkedin",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(m.default,s({},this.props,{property:"social-share-message",defaultValue:"I got {quiz_result} on {quiz_name} quiz!",label:(0,f.translate)("Social Share Message"),type:"textarea",rows:"5"}),c.default.createElement("option",{value:"{quiz_result}","data-content":"quiz_result"},(0,f.translate)("Quiz Result")),c.default.createElement("option",{value:"{quiz_name}","data-content":"quiz_name"},(0,f.translate)("Quiz Name")),c.default.createElement("option",{value:"{embed_title}","data-content":"embed_title"},(0,f.translate)("Page/Post Title")),c.default.createElement("option",{value:"{embed_url}","data-content":"embed_url"},(0,f.translate)("Page/Post URL")),c.default.createElement("option",{value:"{site_url}","data-content":"{site_url}"},(0,f.translate)("Site URL")))),c.default.createElement("div",{className:"sui-notice sui-notice-info",style:{marginTop:"10px"}},c.default.createElement("p",null,(0,f.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://premium.wpmudev.org/project/smartcrawl-wordpress-seo/"})}}))))}}]),t}(l.Component);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(227),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-notifications",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Email Notifications"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Behaviour")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("integrations")}},(0,c.translate)("Integrations"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(2),d=r(p),h=n(24),m=r(h),y=n(175),b=r(y),v=n(39),g=r(v),w=n(75),E=r(w),O=n(29),j=r(O),P=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getNameOptions",value:function(){var e=[];return _.map(forminatorData.variables,function(t,n){e.push({label:t,value:n})}),e}},{key:"getEmailOptions",value:function(){return[]}},{key:"getRecipientTagsOptions",value:function(){return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,f.translate)("Searching")},noResults:function(){return(0,f.translate)("No Result Found")}},placeholder:(0,f.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}},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=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcBccOptions",value:function(){return{tags:!0,placeholder:(0,f.translate)("None"),createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"getCcAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-cc-address"])||!_.isArray(this.props.settings["admin-email-cc-address"])?[]:this.props.settings["admin-email-cc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getBccAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push(e.value)}),(_.isUndefined(this.props.settings["admin-email-bcc-address"])||!_.isArray(this.props.settings["admin-email-bcc-address"])?[]:this.props.settings["admin-email-bcc-address"]).filter(function(e){return t.indexOf(e)<0}).map(function(t){e.push({value:t,label:t})}),e}},{key:"getAutoCreateEmailAddressOptions",value:function(){return{tags:!0,createTag:function(e){var t=$.trim(e.term);return(0,f.isEmailWp)(t)?{id:t,text:t}:null},insertTag:function(e,t){e.push(t)}}}},{key:"getFromAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("Default")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-from-address"])?"":this.props.settings["admin-email-from-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"getReplyToAddressOptions",value:function(){var e=this.getEmailOptions();e.unshift({value:"",label:(0,f.translate)("None")});var t=[];e.map(function(e){t.push(e.value)});var n=_.isUndefined(this.props.settings["admin-email-reply-to-address"])?"":this.props.settings["admin-email-reply-to-address"];return t.indexOf(n)<0&&e.push({value:n,label:n}),e}},{key:"render",value:function(){return this.getEmailOptions().unshift({value:"",label:(0,f.translate)("Default")}),this.getEmailOptions().unshift({value:"",label:(0,f.translate)("None")}),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,f.translate)("Admin Email")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Optionally, you can send a notification email to nominated email accounts when quiz submissions come in."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(m.default,s({},this.props,{property:"use-admin-email",label:(0,f.translate)("Send an email to admin users")})),!_.isUndefined(this.props.settings["use-admin-email"])&&this.props.settings["use-admin-email"]&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(E.default,s({},this.props,{property:"admin-email-from-name",placeholder:(0,f.translate)("Default"),label:(0,f.translate)("From Name")}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-from-address",label:(0,f.translate)("From Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getFromAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(b.default,s({},this.props,{property:"admin-email-recipients",placeholder:(0,f.translate)("Recipient(s)"),options:this.getRecipientTagsOptions(),label:(0,f.translate)("Recipients"),note:(0,f.translate)("Add as many emails as you like")})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-reply-to-address",label:(0,f.translate)("Reply To Address"),defaultValue:"",options:this.getAutoCreateEmailAddressOptions()}),this.getReplyToAddressOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-cc-address",label:(0,f.translate)("CC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getCcAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(j.default,s({},this.props,{property:"admin-email-bcc-address",label:(0,f.translate)("BCC Addresses"),options:this.getCcBccOptions(),defaultValue:[],multiple:"true"}),this.getBccAddressesOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value},e.label)})),c.default.createElement(d.default,s({},this.props,{property:"admin-email-title",placeholder:(0,f.translate)("Enter subject"),label:(0,f.translate)("Subject"),defaultValue:""})),c.default.createElement(g.default,s({},this.props,{property:"admin-email-editor",editorOptions:forminatorData.variables,enableFormData:!1,boxClass:"sui-tab-boxed",mainOptions:{quiz_name:(0,f.translate)("Quiz Name"),quiz_answer:(0,f.translate)("Quiz Answer"),quiz_result:(0,f.translate)("Quiz Result")},label:(0,f.translate)("Body")})))))}}]),t}(l.Component);t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(169);r(f);n(171);var p=function(e){function t(e){o(this,t);var n=a(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_quiz_addons&_ajax_nonce="+forminatorData.addonNonce+"&data[quiz_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,o=function(t){e.props.history.push("/"+t)},a="";return a=t?l.default.createElement("div",{className:"sui-notice sui-notice-loading"},l.default.createElement("p",null,(0,c.translate)("Fetching integration list…"))):_.isUndefined(r)||+r<=0?l.default.createElement("div",{className:"sui-notice sui-notice-warning"},l.default.createElement("p",null,(0,c.translate)("You need to save this quiz before using integrations.")),l.default.createElement("div",{className:"sui-notice-buttons"},l.default.createElement("a",{className:"sui-button",onClick:this.loadIntegrations},(0,c.translate)("TRY AGAIN")))):l.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:n}}),l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Integrations"))),l.default.createElement("div",{className:"sui-box-body"},a),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return o("notifications")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Email Notifications")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return o("settings")}},(0,c.translate)("Settings"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(230),p=r(f),d=n(231),h=r(d),m=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Settings"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props),l.default.createElement(h.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,c.translate)("Integrations"))))}}]),t}(u.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(24),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,f.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",label:(0,f.translate)("Disable store submissions in my database"),description:(0,f.translate)("If you don't want to store submissions in your database you can disable this feature. Alternately you can also schedule automatic deletion of submissions after a period of time below.")}))))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(12),d=r(p),h=n(7),m=r(h),y=n(6),b=r(y),v=n(2),g=r(v),w=n(15),E=r(w),O=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){var e=_.isEmpty(forminatorData.submissions_quiz_retain_number)||"0"===forminatorData.submissions_quiz_retain_number,t=(0,f.translate)("forever");return e||(t=forminatorData.submissions_quiz_retain_number+" "+forminatorData.submissions_quiz_retain_unit),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,f.translate)("Privacy")),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose how you want to handle this quiz’s data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"§ion=data",target:"_blank"})}}))),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,f.translate)("Submissions")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.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,f.translate)("Use default")},c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,f.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,f.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(E.default,s({},this.props,{defaultValue:"days",property:"submissions-retention-unit"}),c.default.createElement("option",{value:"days"},(0,f.translate)("day(s)")),c.default.createElement("option",{value:"weeks"},(0,f.translate)("week(s)")),c.default.createElement("option",{value:"months"},(0,f.translate)("month(s)")),c.default.createElement("option",{value:"years"},(0,f.translate)("year(s)"))))),c.default.createElement("span",{className:"sui-description"},(0,f.translate)("Leave the field blank to retain submissions forever.")))))))}}]),t}(l.Component);t.default=O},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=r(o),i=n(41),s=n(4),u=n(19),l=n(183),c=r(l),f=n(58),p=r(f),d=n(487),h=r(d),m=(0,c.default)(forminatorData.currentForm);p.default.setLocale(forminatorl10n.locale),window.forminatorChanges={questions:[],results:[],settings:!1},(0,i.render)(a.default.createElement(s.Provider,{store:m},a.default.createElement(u.MemoryRouter,null,a.default.createElement(u.Route,{component:h.default}))),document.getElementById("forminator-personality-builder"))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=(n(4),n(1)),p=n(488),d=r(p),h=n(489),m=r(h),y=n(490),b=r(y),v=n(493),g=r(v),_=n(494),w=r(_),E=n(495),O=r(E),j=n(499),P=r(j),x=n(500),k=r(x),C=n(522),N=r(C),S=n(524),T=r(S),A=n(525),M=r(A),F=n(526),R=r(F),D=function(e){function t(e){return o(this,t),a(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(e.preventDefault(),window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.returnValue=(0,f.translate)("You have unsaved changes, are you sure want to leave this page"),(0,f.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){return l.default.createElement("div",null,l.default.createElement(d.default,null),l.default.createElement("div",{className:"sui-row-with-sidenav"},l.default.createElement("div",{className:"sui-sidenav"},l.default.createElement(b.default,this.props)),l.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},l.default.createElement(g.default,null)),l.default.createElement(c.Route,{exact:!0,path:"/",render:function(){return l.default.createElement(c.Redirect,{to:"/intro"})}}),l.default.createElement(c.Route,{path:"/intro",component:w.default}),l.default.createElement(c.Route,{path:"/personalities",component:O.default}),l.default.createElement(c.Route,{path:"/questions",component:P.default}),l.default.createElement(c.Route,{path:"/appearance",component:k.default}),l.default.createElement(c.Route,{path:"/behaviour",component:N.default}),l.default.createElement(c.Route,{path:"/notifications",component:T.default}),l.default.createElement(c.Route,{path:"/integrations",component:M.default}),l.default.createElement(c.Route,{path:"/settings",component:R.default})),l.default.createElement(m.default,this.props))}}]),t}(u.Component);t.default=D},function(e,t,n){"use strict";function r(e){return{id:e.settings.form_id}}function o(e){return(0,i.bindActionCreators)(u,e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=n(5),s=n(25),u=function(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}(s),l=n(189),c=function(e){return e&&e.__esModule?e:{default:e}}(l);t.default=(0,a.connect)(r,o)(c.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 o(e){return{modal:e.modal,questions:e.questions,results:e.results,type:"nowrong",settings:e.settings,id:e.settings.form_id||-1}}function a(e){return{actions:{builderActions:(0,s.bindActionCreators)(f,e),settingsActions:(0,s.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(191),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(173),f=r(c),p=n(25),d=r(p);t.default=(0,i.connect)(o,a)(l.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 o(e){return{id:e.settings.form_id,title:e.settings.formName||""}}function a(e){return{actions:{navigationActions:(0,s.bindActionCreators)(f,e),modalActions:(0,s.bindActionCreators)(l,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(26),l=r(u),c=n(203),f=r(c),p=n(491),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return i.default.createElement(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(0),i=r(a),s=n(492),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(19),f=n(1),p=n(204),d=r(p),h=n(205),m=r(h),y=n(206),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),s(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"sui-sidenav-sticky sui-sidenav-hide-md"},l.default.createElement("ul",{className:"sui-vertical-tabs sui-alt-design"},l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/intro",activeClassName:"current"},(0,f.translate)("Intro"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/personalities",activeClassName:"current"},(0,f.translate)("Personalities"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/questions",activeClassName:"current"},(0,f.translate)("Questions"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,f.translate)("Appearance"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,f.translate)("Behaviour"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,f.translate)("Email Notifications"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,f.translate)("Integrations"))),l.default.createElement("li",{className:"sui-vertical-tab"},l.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(m.default,this.props))),l.default.createElement("div",{className:"sui-sidenav-settings"},l.default.createElement(d.default,this.props),l.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},l.default.createElement("label",{className:"sui-label"},(0,f.translate)("Navigate")),l.default.createElement(b.default,this.props,l.default.createElement("option",{value:""},(0,f.translate)("Intro")),l.default.createElement("option",{value:"personalities"},(0,f.translate)("Personalities")),l.default.createElement("option",{value:"questions"},(0,f.translate)("Questions")),l.default.createElement("option",{value:"appearance"},(0,f.translate)("Appearance")),l.default.createElement("option",{value:"behaviour"},(0,f.translate)("Behaviour")),l.default.createElement("option",{value:"notifications"},(0,f.translate)("Email Notifications")),l.default.createElement("option",{value:"integrations"},(0,f.translate)("Integrations")),l.default.createElement("option",{value:"settings"},(0,f.translate)("Settings")))),l.default.createElement("div",{className:"sui-sidenav-hide-lg"},l.default.createElement(m.default,this.props))))}}]),t}(u.Component);t.default=v},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 o(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges,type:"nowrong"}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(207),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,type:"personality"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(210),m=o(h);t.default=(0,u.connect)(a,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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{questions:e.questions,results:e.results,settings:e.settings}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(d,e),builderActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(173),f=r(c),p=n(25),d=r(p),h=n(26),m=r(h),y=n(496),b=o(y);t.default=(0,u.connect)(a,i)(b.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(497),p=r(f),d=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Personalities"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement("p",{className:"sui-description"},(0,c.translate)("Let's add the different personalities. Each of the following personality is a possible outcome of your quiz. In case of a tie, the personality is chosen as per their order below."))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(p.default,this.props)),l.default.createElement("div",{className:"sui-box-body",style:{paddingTop:"10px"}},l.default.createElement("p",{className:"sui-description"},(0,c.translate)("Reorder the personalities to set the priority order."))),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Intro")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("questions")}},(0,c.translate)("Questions"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(498),d=r(p),h=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addItem=n.addItem.bind(n),n.closeModal=n.closeModal.bind(n),n}return i(t,e),u(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.results)&&!_.isEmpty(this.props.results)&&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 o=n.item.index();e.moveOption(o,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"moveOption",value:function(e,t){var n=this.props.results;n.splice(t,0,n.splice(e,1)[0]),this.props.actions.builderActions.updateResults(n),this.forceUpdate()}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"personality")}},{key:"addItem",value:function(){var e={slug:"result-"+(0,f.randNumber)()+"-"+(0,f.randNumber)()};this.props.actions.modalActions.showModal({open:!0,new:!0,result:e,results:this.props.results,closeModal:this.closeModal},"personality")}},{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.results.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.results,function(t,n){return c.default.createElement(d.default,s({key:t.slug,result:t},e.props,{counter:n}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addItem},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Personality")),0===this.props.results.length&&c.default.createElement("div",{className:"sui-builder-empty-message sui-block-content-center"},c.default.createElement("p",{className:"sui-description"},(0,f.translate)("Define the different personalities possible as the outcome of your quiz here.")),forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))))}}]),t}(l.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 o(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 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}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(1),f=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.trashResult=n.trashResult.bind(n),n.deleteResult=n.deleteResult.bind(n),n.closeDeleteField=n.closeDeleteField.bind(n),n.editModal=n.editModal.bind(n),n.closeEditModal=n.closeEditModal.bind(n),n.duplicateResult=n.duplicateResult.bind(n),n}return i(t,e),s(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getResultsWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.result.slug})}},{key:"deleteResult",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,result:this.props.result,closeModal:this.closeDeleteField,trashField:this.trashResult},"deletePersonality")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,result:this.props.result,closeModal:this.closeDeleteField,trashField:this.trashResult},"deletePersonality")}},{key:"trashResult",value:function(){var e=[].concat(r(this.props.results)),t=this.getResultsWithoutCurrent(e);this.closeMenu(),this.props.actions.builderActions.updateResults(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"personality")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,result:this.props.result,closeModal:this.closeEditModal},"personality")}},{key:"duplicateResult",value:function(){var e=Object.assign({},this.props.result);e.slug="result-"+(0,c.randNumber)()+"-"+(0,c.randNumber)();var t=[].concat(r(this.props.results),[e]);this.props.actions.builderActions.updateResults(t)}},{key:"render",value:function(){var e="";return _.isUndefined(this.props.result.image)||_.isEmpty(this.props.result.image)||(e="url("+this.props.result.image+")"),l.default.createElement("div",{className:"sui-builder-field sui-react sui-can_move"},l.default.createElement("div",{className:"sui-field-info",onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"}),l.default.createElement("div",{className:"sui-builder-field-label"},l.default.createElement("div",{className:"sui-builder-field-image","aria-hidden":"true"},l.default.createElement("span",{style:{backgroundImage:e}})),l.default.createElement("span",null,this.props.result.title))),l.default.createElement("div",{className:"sui-field-actions"},l.default.createElement("div",{className:"sui-dropdown"},l.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},l.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),l.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Open field settings"))),l.default.createElement("ul",null,l.default.createElement("li",null,l.default.createElement("button",{onClick:this.editModal},l.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),l.default.createElement("li",null,l.default.createElement("button",{onClick:this.duplicateResult},l.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),l.default.createElement("li",null,l.default.createElement("button",{className:"sui-option-red",onClick:this.deleteResult},l.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(u.Component);t.default=f},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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings,questions:e.questions,results:e.results,type:"personality"}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(d,e),builderActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(m,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(173),f=r(c),p=n(25),d=r(p),h=n(26),m=r(h),y=n(211),b=o(y);t.default=(0,u.connect)(a,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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(501),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(66),p=r(f),d=n(72),h=r(d),m=n(215),y=r(m),b=n(502),v=r(b),g=n(512),w=r(g),E=n(221),O=r(E),j=n(222),P=r(j),x=function(e){function t(e){return o(this,t),a(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};p.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 l.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Appearance"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(y.default,this.props),l.default.createElement(v.default,this.props),l.default.createElement(w.default,this.props),l.default.createElement(O.default,this.props),l.default.createElement(P.default,this.props)),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("questions")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Questions")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behaviour"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(503),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Colors"),description:(0,f.translate)("Adjust the default colour combinations to match your theme styling.")},c.default.createElement(m.default,s({},this.props,{property:"nowrong-toggle-palette",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,f.translate)("Default")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(504),m=r(h),y=n(505),b=r(y),v=n(506),g=r(v),_=n(507),w=r(_),E=n(508),O=r(E),j=n(509),P=r(j),x=n(510),k=r(x),C=n(511),N=r(C),S=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Basic")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Container")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Checkbox")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer - Text")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Result")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Retake Button")}),c.default.createElement(N.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share")}),c.default.createElement(P.default,this.props)))}}]),t}(l.Component);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"nowrong-title-color",defaultValue:"#333333"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Description color"),property:"nowrong-description-color",defaultValue:"#8C8C8C"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question color"),property:"nowrong-question-color",defaultValue:"#333333"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-border-static",defaultValue:"#EBEDEB",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-background-static",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-background-hover",defaultValue:"#F3FBFE",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-background-active",defaultValue:"#F3FBFE",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-chkbo-static",defaultValue:"#BFBFBF",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-chkbg-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Border color"),property:"nowrong-answer-chkbo-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-answer-chkbg-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Icon color"),property:"nowrong-answer-chck-icon",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"nowrong-answer-color-static",defaultValue:"#888888"}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Answer text color"),property:"nowrong-answer-color-active",defaultValue:"#333333"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-submit-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-submit-color-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-submit-background-hover",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-submit-color-hover",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-submit-background-active",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-submit-color-active",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(9),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"knowledge-sshare-color",defaultValue:"#4D4D4D"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Facebook"),property:"knowledge-social-facebook",defaultValue:"#0084BF"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Twitter"),property:"knowledge-social-twitter",defaultValue:"#1DA1F2"})),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("LinkedIn"),property:"knowledge-social-linkedin",defaultValue:"#0084BF"})))}}]),t}(l.Component);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"main",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(m.default,{value:"main",label:(0,f.translate)("Main")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Container border"),property:"nowrong-result-border-color",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Container background"),property:"nowrong-result-background-main",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"header",label:(0,f.translate)("Header")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"nowrong-result-quiz-color",defaultValue:"#FFFFFF"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-background-head",defaultValue:"#FAFAFA",isAlpha:!0}))),c.default.createElement(m.default,{value:"body",label:(0,f.translate)("Body")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Title color"),property:"nowrong-result-title-color",defaultValue:"#333333"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Description color"),property:"nowrong-result-description-color",defaultValue:"#4D4D4D"})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Content background"),property:"nowrong-result-background-body",defaultValue:"#EBEDEB"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(13),d=r(p),h=n(7),m=r(h),y=n(9),b=r(y),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Default")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-retake-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-result-retake-color-static",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"hover",label:(0,f.translate)("Hover")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-retake-background-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-result-retake-color-hover",defaultValue:"#FFFFFF",isAlpha:!0}))),c.default.createElement(m.default,{value:"active",label:(0,f.translate)("Active")},c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Background color"),property:"nowrong-result-retake-background-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(b.default,s({},this.props,{label:(0,f.translate)("Label color"),property:"nowrong-result-retake-color-active",defaultValue:"#FFFFFF",isAlpha:!0}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(16),d=r(p),h=n(12),m=r(h),y=n(18),b=r(y),v=n(513),g=r(v),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,{label:(0,f.translate)("Fonts"),description:(0,f.translate)("By default this quiz will inherit the fonts your theme uses. You can override these fonts with custom ones from Google Fonts.")},c.default.createElement(m.default,s({},this.props,{property:"nowrong-toggle-typography",default:""}),c.default.createElement(b.default,{value:"",boxClass:""},(0,f.translate)("Use Theme Fonts")),c.default.createElement(g.default,s({},this.props,{value:"true",boxClass:""}),(0,f.translate)("Custom"))))}}]),t}(l.Component);t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(42),d=r(p),h=n(514),m=r(h),y=n(515),b=r(y),v=n(516),g=r(v),_=n(517),w=r(_),E=n(518),O=r(E),j=n(519),P=r(j),x=n(520),k=r(x),C=n(521),N=r(C),S=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(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,f.translate)("Element"))),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Title")}),c.default.createElement(m.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Description")}),c.default.createElement(b.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Question")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Answer")}),c.default.createElement(w.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Submit Button")}),c.default.createElement(O.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Quiz Result")}),c.default.createElement(P.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Title")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,s({},this.props,{label:(0,f.translate)("Social Share Icons")}),c.default.createElement(N.default,this.props)))}}]),t}(l.Component);t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-title",defaultFont:"Roboto",defaultSize:"42",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-description",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-question",defaultFont:"Roboto",defaultSize:"24",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-answer",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-submit",defaultFont:"Roboto",defaultSize:"14",defaultWeight:"500"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=n(13),h=r(d),m=n(7),y=r(m),b=n(1),v=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"quiz-name",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{value:"quiz-name",label:(0,b.translate)("Quiz Name")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-quiz",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"500"}))),c.default.createElement(y.default,{value:"retake",label:(0,b.translate)("Retake")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-retake",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"500"}))),c.default.createElement(y.default,{value:"title",label:(0,b.translate)("Title")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-title",defaultFont:"Roboto",defaultSize:"15",defaultWeight:"500"}))),c.default.createElement(y.default,{value:"description",label:(0,b.translate)("Content")},c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-result-description",defaultFont:"Roboto",defaultSize:"13",defaultWeight:"400"}))))}}]),t}(l.Component);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(31),p=r(f),d=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(p.default,s({},this.props,{prefix:"nowrong-sshare",defaultFont:"Roboto",defaultSize:"20",defaultWeight:"400"}))}}]),t}(l.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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},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}}(),l=n(0),c=r(l),f=n(1),p=n(20),d=r(p),h=function(e){function t(e){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement(d.default,s({},this.props,{property:"nowrong-social-size",defaultValue:"36",label:(0,f.translate)("Icon size"),description:(0,f.translate)("Choose one of the pre-defined sizes we have for social share icons.")}),c.default.createElement("div",{value:"24"},(0,f.translate)("Regular")),c.default.createElement("div",{value:"30"},(0,f.translate)("Medium")),c.default.createElement("div",{value:"36"},(0,f.translate)("Large")))}}]),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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(523),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 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}}(),u=n(0),l=r(u),c=n(1),f=n(223),p=r(f),d=n(224),h=r(d),m=function(e){function t(e){return o(this,t),a(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 l.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},l.default.createElement("div",{className:"sui-box-header"},l.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Behaviour"))),l.default.createElement("div",{className:"sui-box-body"},l.default.createElement(l.default.Fragment,null,l.default.createElement(h.default,this.props),l.default.createElement(p.default,this.props))),l.default.createElement("div",{className:"sui-box-footer"},l.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},l.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("notifications")}},(0,c.translate)("Notifications"),l.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=m},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 o(e){return{settings:e.settings}}function a(e){return{actions:{settingsActions:(0,s.bindActionCreators)(l,e),modalActions:(0,s.bindActionCreators)(f,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(5),u=n(25),l=r(u),c=n(26),f=r(c),p=n(226),d=function(e){return e&&e.__esModule?e:{default:e}}(p);t.default=(0,i.connect)(o,a)(d.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(26),a=n(228),i=function(e){return e&&e.__esModule?e:{default:e}}(a),s=function(e){return{hideModal:function(){return e((0,o.hideModal)())},showModal:function(t,n){e((0,o.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 o(e){return e&&e.__esModule?e:{default:e}}function a(e){return{settings:e.settings}}function i(e){return{actions:{settingsActions:(0,l.bindActionCreators)(f,e),modalActions:(0,l.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=(o(s),n(4)),l=n(5),c=n(25),f=r(c),p=n(26),d=r(p),h=n(229),m=o(h);t.default=(0,u.connect)(a,i)(m.default)}]);
|
assets/js/poll-scripts.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.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=376)}([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 o(){return Math.floor(9999*Math.random())}function a(){return"wrapper-"+o()+"-"+o()}function i(e,t){var n=void 0;return t.map(function(t){t.wrapper_id===e&&(n=t)}),n}function s(e,t){var n=1;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n}function l(e,t){var n=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,o=r.split("-");"page-break"===t.type?n.push(parseInt(o[2])):n.push(parseInt(o[1]))}})});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function u(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 c(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function p(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n>0}function f(e,t){var n=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&n.push(t)})}),n}function d(e,t){var n="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(n=t.field_label)})}),n}function h(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&n++})}),n>0}function m(e,t,n,r){var o=l(e.type,r);return _.extend(e,{element_id:e.type+"-"+o,formID:t,cols:n})}function y(e,t,n){var r=forminatorData.fields.find(function(t){return t.slug===e}),o=l(r.type,t);return _.extend({element_id:r.type+"-"+o,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:n},JSON.parse(JSON.stringify(r.defaults)))}function b(e){return e.type}function v(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function g(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t)))}function w(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t+1)))}function E(){return Q.default.translate.apply(null,arguments)}function O(e,t){var n=_.filter(t,function(t){return t.family===e});return _.isUndefined(n[0])||_.isUndefined(n[0].variants)?[E("None")]:n[0].variants}function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e,t){var n=[];return _.isUndefined(t)&&(t=["page-break","postdata","total","upload","product","captcha"]),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var r=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(r=e.type,r=j(r)):r=e.field_label,"name"===e.type?n=n.concat(C(e,r)):"address"===e.type?n=n.concat(M(e,r)):"time"===e.type?n=n.concat(R(e,r)):"date"===e.type&&"picker"!==e.field_type?n=n.concat(P(e,r)):n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:r,values:A(e),hasOptions:T(e),hasCalcs:N(e),formula:S(e),isNumber:k(e),fieldData:e})}})}),n}function P(e,t){var n=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+E("Day"):t+" - "+e.day_label;var o=void 0;o=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+E("Month"):t+" - "+e.month_label;var a=void 0;return a=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+E("Year"):t+" - "+e.year_label,"input"===e.field_type?n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:a,values:!1,hasOptions:!1,isNumber:!0}):n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:A(e),hasOptions:T(e),isNumber:k(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:A(e),hasOptions:T(e),isNumber:k(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:a,values:A(e),hasOptions:T(e),isNumber:k(e)}),n}function C(e,t){var n=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var o=void 0;o=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:o,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:A(e),hasOptions:T(e),isNumber:k(e)}),n}function k(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function N(e){return"true"===e.calculations||!0===e.calculations}function S(e){return!!e.formula&&e.formula}function T(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function A(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function M(e,t){var n=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var o=void 0;o=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:o,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),n}function R(e,t){var n=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+E("Hour"):t+" - "+e.hh_label;var o=void 0;return o=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+E("Minute"):t+" - "+e.mm_label,n.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:o,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&n.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),n}function F(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 D(e,t){switch(e){case"is":if("checkbox"===t)return E("is having");if("checkbox"!==t)return E("is");case"is_not":if("checkbox"===t)return E("is not having");if("checkbox"!==t)return E("is not");case"day_is":return E("day is");case"day_is_not":return E("day is not");case"month_is_not":return E("month is not");case"month_is":return E("month is");case"is_great":return E("is greater than");case"is_less":return E("is less than");case"contains":return E("contains");case"starts":return E("starts with");case"ends":return E("ends with");default:return"-"}}function U(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 o=r.length,a=0;a<o;a++)if(!r[a].match(/^[a-z0-9-]+$/i))return!1;return!0}function I(){"object"===H(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function L(e){var t="none";return H(e["results-behav"])&&H(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function V(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),x(e,t)}function B(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 q(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 $(e,t,n,r){var o=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[n]&&o++})}),o>0}function z(e){var t=0;return e.map(function(e){e.fields.map(function(e){var n=forminatorData.postCategories[e.post_type];void 0!==n&&n.map(function(n){var r=n.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0}Object.defineProperty(t,"__esModule",{value:!0});var 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};t.randNumber=o,t.generateWrapperId=a,t.getWrapper=i,t.countFieldsByType=s,t.getMaxIDByType=l,t.getMaxID=u,t.generateValue=c,t.hasFieldType=p,t.getFieldsByType=f,t.getFieldLabel=d,t.fieldExist=h,t.buildFieldObject=m,t.buildFieldObjectFromSlug=y,t.getFieldType=b,t.getForminatorField=v,t.insertInPosition=g,t.replaceInPosition=w,t.translate=E,t.getFontVariants=O,t.ucfirst=j,t.getFields=x,t.getDateFields=P,t.getNameFields=C,t.fieldHasNumber=k,t.fieldHasCalcs=N,t.fieldFormula=S,t.fieldHasOptions=T,t.getFieldValues=A,t.getAddressFields=M,t.getTimeFields=R,t.getFieldAutofillProviders=F,t.getRuleLabel=D,t.isEmailWp=U,t.suiDelegateEvents=I,t.getChartType=L,t.getCalculationFields=V,t.select2Tags=B,t.isFieldRequired=q,t.hasFieldWithAttribute=$,t.hasPostdataFieldWithMultiselect=z;var W=n(58),Q=function(e){return e&&e.__esModule?e:{default:e}}(W)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(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,o=this.isValid(t)?"":"sui-form-field-error",a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,s=_.isUndefined(this.props.inputClass)?"sui-form-control":"sui-form-control "+this.props.inputClass,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.maxLength&&{maxlength:this.props.maxLength},{disabled:!!this.props.disabled,onChange:function(t){e.updateValue(t.target.value)}})),d=u.default.createElement("div",{className:a+" "+o},p,this.props.canTrash?u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},f,u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-right","data-tooltip":(0,c.translate)("Delete")},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))):f,this.props.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){e.exports=n(82)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81),o=n(46),a=n(85);n.d(t,"Provider",function(){return r.b}),n.d(t,"createProvider",function(){return r.a}),n.d(t,"connectAdvanced",function(){return o.a}),n.d(t,"connect",function(){return a.a})},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 o(e,t,n){function a(){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 a(),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,a();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(o)(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 a(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 o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}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,o={},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=a(u,t);throw new Error(d)}o[u]=f,r=r||f!==p}return r?o: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={},o=0;o<n.length;o++){var a=n[o],i=e[a];"function"==typeof i&&(r[a]=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),o=0;o<n;o++)r[o]=arguments[o];var a=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:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(e){return e(s)});return i=c.apply(void 0,l)(a.dispatch),m({},a,{dispatch:i})}}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"createStore",function(){return o}),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(88),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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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){return"[object Array]"===j.call(e)}function o(e){return"[object ArrayBuffer]"===j.call(e)}function a(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,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,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 w(e,t,n){return g(t,function(t,r){e[r]=n&&"function"==typeof t?E(t,n):t}),e}var E=n(67),O=n(148),j=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:O,isFormData:a,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:w,trim: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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(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"),o=r.find("button"),a=e.closest(".wp-picker-container"),i=a.find(".wp-color-result"),s=i.find(".color-alpha"),l=a.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()}),o.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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){"use strict";var r=function(e,t,n,r,o,a,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,o,a,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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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 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,o=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)}),a="";this.props.label&&(a=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="";!this.props.label&&this.props.settingsLabel&&(i=l.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var s="";!this.props.label&&this.props.settingsDesc&&(s=l.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var u=l.default.createElement("div",{className:"sui-side-tabs"},l.default.createElement("div",{className:"sui-tabs-menu"},n),l.default.createElement("div",{className:r},o));return this.props.simple||(u=l.default.createElement("div",{className:"sui-form-field"},a,i,s,l.default.createElement("div",{className:"sui-side-tabs"},l.default.createElement("div",{className:"sui-tabs-menu"},n),l.default.createElement("div",{className:r},o)))),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={active:n.props.default?n.props.default:""},n}return a(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"},"*"))}),o=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"},o))}}]),t}(s.Component);t.default=u},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],n=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=_.isUndefined(this.props.elementClass)?"":this.props.elementClass,o=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,a="";this.props.label&&(a=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.note&&l.default.createElement("span",{className:"sui-label-note"},this.props.note)));var i=l.default.createElement("select",{defaultValue:t,id:"forminator-field-"+o,className:r,"aria-labelledby":"forminator-field-"+o+"-label",ref:function(t){return e.el=t}},this.props.children),s=i;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?s=l.default.createElement("div",{class:"sui-form-field sui-input-md"},i):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?s=l.default.createElement("div",{class:"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},a,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";var r=n(105);n.d(t,"a",function(){return r.a});var o=n(108);n.d(t,"b",function(){return o.a});var a=n(109);n.d(t,"d",function(){return a.a});var i=n(28);n.d(t,"c",function(){return i.a}),n.d(t,"f",function(){return i.b});var s=n(21);n.d(t,"e",function(){return s.b})},function(e,t,n){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0);!function(e){e&&e.__esModule}(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(104);n.d(t,"BrowserRouter",function(){return r.a});var o=n(110);n.d(t,"HashRouter",function(){return o.a});var a=n(53);n.d(t,"Link",function(){return a.a});var i=n(111);n.d(t,"MemoryRouter",function(){return i.a});var s=n(113);n.d(t,"NavLink",function(){return s.a});var l=n(115);n.d(t,"Prompt",function(){return l.a});var u=n(117);n.d(t,"Redirect",function(){return u.a});var c=n(54);n.d(t,"Route",function(){return c.a});var p=n(34);n.d(t,"Router",function(){return p.a});var f=n(119);n.d(t,"StaticRouter",function(){return f.a});var d=n(121);n.d(t,"Switch",function(){return d.a});var h=n(123);n.d(t,"generatePath",function(){return h.a});var m=n(124);n.d(t,"matchPath",function(){return m.a});var y=n(125);n.d(t,"withRouter",function(){return y.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),s(t,[{key:"updateValue",value:function(e){if("function"==typeof this.props.updateProperty){if(this.props.updateProperty(this.props.property,e),"true"===this.props.clearOptions&&"single"===e){var t=[];_.each(this.props.state.options,function(e){e.default=!1,t.push(e)}),this.props.updateProperty("options",t)}}else this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],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"},{onClick:e.updateValue.bind(e,n.props.value)}),n.props.children)}),r="";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 o="";this.props.description&&""!==this.props.description&&(o=u.default.createElement("span",{className:"sui-description"},this.props.description));var a="";!this.props.label&&this.props.settingsLabel&&(a=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",style:this.props.description&&{marginBottom:"5px"}},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,a,s,l,o)),c}}]),t}(l.Component);t.default=c},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return a}),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},o=function(e){return"/"===e.charAt(0)?e.substr(1):e},a=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},i=function(e,t){return a(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="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},,,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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(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=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,checked:t?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),l.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&l.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label)),o="";return this.props.label&&(o=l.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property},this.props.label)),this.props.unWrap?l.default.createElement(l.default.Fragment,null,r,o,this.props.description&&l.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)):this.props.unWrap?void 0:l.default.createElement("div",{className:"sui-form-field"},r,o,this.props.description&&l.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description))}}]),t}(s.Component);t.default=c},,,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(106),o=n(107),a=n(21),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,o){var s=void 0;"string"==typeof e?(s=Object(a.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),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.a)(s.pathname,o.pathname)):s.pathname=o.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(o.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=Object.assign({dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(e):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(e):console.log("select2 not intiated"),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{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)}},{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=void 0;this.props.label&&(r=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 o=this.props.multiple,a=l.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:o},this.props.children),i=l.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:o},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=l.default.createElement("div",{className:"sui-form-field sui-input-md"},a):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=l.default.createElement("div",{className:"sui-form-field sui-input-sm"},a):""===this.props.fieldSize&&(i=l.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},a)),this.props.noWrapper?a:l.default.createElement("div",{className:n},r,i,this.props.description&&l.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),t}(s.Component);t.default=u},,,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(27),o=n.n(r),a=function(){var e=null,t=function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,a):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!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=a},function(e,t,n){"use strict";var r=n(35);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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(14),s=n.n(i),l=n(11),u=n.n(l),c=n(0),p=n.n(c),f=n(3),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,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.state={match:a.computeMatch(a.props.history.location.pathname)},i=n,o(a,i)}return a(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(56),o=n.n(r),a={},i=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=a[n]||(a[n]={});if(r[e])return r[e];var s=[],l=o()(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,o=r.path,a=r.exact,i=void 0!==a&&a,l=r.strict,u=void 0!==l&&l,c=r.sensitive,p=void 0!==c&&c;if(null==o)return n;var f=s(o,{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:o,url:"/"===o&&""===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 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 o=e.charCodeAt(r),a=o>>8,i=255&o;a?n.push(a,i):n.push(i)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n}function o(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t}function a(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 o=e[r];"little"===t&&(o=a(o)),n+=l(o.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 o=n-t;k(o%4==0);for(var a=new Array(o/4),i=0,s=t;i<a.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],a[i]=l>>>0}return a}function c(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var a=e[r];"big"===t?(n[o]=a>>>24,n[o+1]=a>>>16&255,n[o+2]=a>>>8&255,n[o+3]=255&a):(n[o+3]=a>>>24,n[o+2]=a>>>16&255,n[o+1]=a>>>8&255,n[o]=255&a)}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,o){return e+t+n+r+o>>>0}function b(e,t,n,r){var o=e[t],a=e[t+1],i=r+a>>>0,s=(i<r?1:0)+n+o;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,o,a,i,s){var l=0,u=t;return u=u+r>>>0,l+=u<t?1:0,u=u+a>>>0,l+=u<a?1:0,u=u+s>>>0,l+=u<s?1:0,e+n+o+i+l>>>0}function w(e,t,n,r,o,a,i,s){return t+r+a+s>>>0}function E(e,t,n,r,o,a,i,s,l,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+a>>>0,c+=p<a?1:0,p=p+s>>>0,c+=p<s?1:0,p=p+u>>>0,c+=p<u?1:0,e+n+o+i+l+c>>>0}function O(e,t,n,r,o,a,i,s,l,u){return t+r+a+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 C(e,t,n){return(e<<32-n|t>>>n)>>>0}var k=n(60),N=n(61);t.inherits=N,t.toArray=r,t.toHex=o,t.htonl=a,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=w,t.sum64_5_hi=E,t.sum64_5_lo=O,t.rotr64_hi=j,t.rotr64_lo=x,t.shr64_hi=P,t.shr64_lo=C},function(e,t,n){"use strict";(function(t){function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(8),a=n(150),i={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(68):void 0!==t&&(e=n(68)),e}(),transformRequest:[function(e,t){return a(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.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, */*"}},o.forEach(["delete","get","head"],function(e){s.headers[e]={}}),o.forEach(["post","put","patch"],function(e){s.headers[e]=o.merge(i)}),e.exports=s}).call(t,n(59))},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n.updateEditor=n.updateEditor.bind(n),n.toggleOptions=n.toggleOptions.bind(n),n.state={editorOptionsOpen:!1},n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),setTimeout(function(){e.initEditor()},50)}},{key:"initEditor",value:function(){var e=this;if(_.isUndefined(wp.editor)||"undefined"==typeof tinyMCE)return void setTimeout(function(){e.initEditor()},50);wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:!0,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.editor.off("change",this.updateEditor),wp.editor.remove("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),this.$el.unbind().removeData()}},{key:"updateEditor",value:function(){var e=this.editor.getContent();this.updateValue(e)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"toggleOptions",value:function(){this.state.editorOptionsOpen?this.setState({editorOptionsOpen:!1}):this.setState({editorOptionsOpen:!0})}},{key:"insertContent",value:function(e){this.editor.insertContent("{"+e+"}"),this.toggleOptions()}},{key:"getDisabledFields",value:function(){var e=["captcha","product","hidden","page-break","postdata","total","upload","stripe","paypal"];return!_.isUndefined(this.props.enablePostData)&&this.props.enablePostData&&!_.isUndefined(this.props.enableUpload)&&this.props.enableUpload&&(e=["captcha","product","hidden","page-break","total","stripe","paypal"]),e}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),n=_.map(t,function(t,n){if(t.required)return l.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},l.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))}),r=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,o=_.map(t,function(t,n){if(!t.required&&r!==t.field_type)return l.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},l.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))});return l.default.createElement(l.default.Fragment,null,n&&l.default.createElement(l.default.Fragment,null,l.default.createElement("li",{className:"wpmudev-dropdown--option"},l.default.createElement("strong",null,(0,u.translate)("Required Fields"))),l.default.createElement(l.default.Fragment,null,n)),n&&l.default.createElement(l.default.Fragment,null,l.default.createElement("li",{className:"wpmudev-dropdown--option"},l.default.createElement("strong",null,(0,u.translate)("Optional Fields"))),l.default.createElement(l.default.Fragment,null,o)))}},{key:"getMiscData",value:function(){var e=this,t=_.isEmpty(this.props.editorOptions)?[]:this.props.editorOptions;return l.default.createElement(l.default.Fragment,null,l.default.createElement("li",{className:"wpmudev-dropdown--option"},l.default.createElement("strong",null,(0,u.translate)("Misc Data"))),_.map(t,function(t,n){return l.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},l.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,n)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=(0,u.getFieldsByType)("paypal",this.props.wrappers),n=(0,u.getFieldsByType)("stripe",this.props.wrappers),r=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(t)||!_.isEmpty(n))return l.default.createElement(l.default.Fragment,null,this.props.paymentOptions&&l.default.createElement("li",{className:"wpmudev-dropdown--option"},l.default.createElement("strong",null,(0,u.translate)("Payment Data"))),_.map(r,function(t,n){return l.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},l.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():"",o=this.props.mainOptions?this.props.mainOptions:{form_name:(0,u.translate)("Form Name")};return l.default.createElement("ul",{className:this.state.editorOptionsOpen?"current":""},this.props.enableAllFormFields&&l.default.createElement("li",{className:"wpmudev-dropdown--option"},l.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_fields")},(0,u.translate)("All Form Fields"))),this.props.enableAllNonFormFields&&l.default.createElement("li",{className:"wpmudev-dropdown--option"},l.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_non_empty_fields")},(0,u.translate)("All Non Empty Fields"))),_.map(o,function(t,n){return l.default.createElement("li",{className:"wpmudev-dropdown--option",key:n},l.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,n)},t))}),r,t,n)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],n=this.getEditorOptions(),r=void 0;_.isEmpty(n)||(r=l.default.createElement("div",{className:"fui-editor-options"},l.default.createElement("button",{className:this.state.editorOptionsOpen?"sui-tooltip current":"sui-tooltip","data-tooltip":(0,u.translate)("Add form data"),onClick:this.toggleOptions},l.default.createElement("i",{className:"sui-icon-layout","aria-hidden":"true"})),n));var o="";return this.props.label&&(o=l.default.createElement("label",{htmlFor:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),className:"sui-label"},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"},o,this.props.descriptionTop&&l.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),l.default.createElement("div",{className:"fui-editor"},r,l.default.createElement("textarea",{id:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),className:"sui-form-control",placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)}})),this.props.description&&l.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(s.Component);t.default=c},,function(e,t){e.exports=ReactDOM},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={open:!1},n.toggleState=n.toggleState.bind(n),n}return a(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 o=l.default.Children.map(this.props.children,function(e){return e});return l.default.createElement("div",{className:"sui-accordion-item "+r},l.default.createElement("div",{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",{class:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),l.default.createElement("div",{className:"sui-accordion-item-body"},l.default.createElement("div",{className:"sui-box"},l.default.createElement("div",{className:"sui-box-body"},n&&o))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"initialize",value:function(){jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.props.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.props.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e=this;jQuery(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),e.close(),!1}),_.isUndefined(this.props.time)||setTimeout(function(){e.close()},this.props.time)}},{key:"close",value:function(){jQuery("#forminator-notification").stop().slideUp("slow")}}]),t}(s.Component));t.default=l},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i});var r=n(3),o=n.n(r),a=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),i=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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 o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,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,w=void 0===_?"connectAdvanced":_,E=u.renderCountProp,O=void 0===E?void 0:E,j=u.shouldHandleStateChanges,x=void 0===j||j,P=u.storeKey,C=void 0===P?"store":P,k=u.withRef,N=void 0!==k&&k,S=i(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=C+"Subscription",A=v++,M=(t={},t[C]=y.a,t[T]=y.b,t),R=(n={},n[T]=y.b,n);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+w+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=f(n),u=b({},S,{getDisplayName:f,methodName:w,renderCountProp:O,shouldHandleStateChanges:x,storeKey:C,withRef:N,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){r(this,c);var a=o(this,n.call(this,e,t));return a.version=A,a.state={},a.renderCount=0,a.store=e[C]||t[C],a.propsMode=Boolean(e[C]),a.setWrappedInstance=a.setWrappedInstance.bind(a),d()(a.store,'Could not find "'+C+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+C+'" as a prop to "'+i+'".'),a.initSelector(),a.initSubscription(),a}return a(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()(N,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+w+"() 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(!(N||O||this.propsMode&&this.subscription))return e;var t=b({},e);return N&&(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=R,c.contextTypes=M,c.propTypes=M,p()(c,t)}}t.a=u;var c=n(47),p=n.n(c),f=n(11),d=n.n(f),h=n(0),m=(n.n(h),n(84)),y=n(45),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(!(o[m]||a[m]||n&&n[m])){var y=u(t,m);try{i(e,m,y)}catch(e){}}}return e}return e}var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={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){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){return function(t,n){function r(){return o}var o=e(t,n);return r.dependsOnOwnProps=!1,r}}function o(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function a(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=o(e);var a=r(t,n);return"function"==typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=o(a),a=r(t,n)),a},r}}t.a=r,t.b=a;n(50)},function(e,t,n){"use strict";n(91),n(32)},function(e,t,n){"use strict";var r=n(93),o=r.a.Symbol;t.a=o},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),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),o=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},a=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 o(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 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(3),c=n.n(u),p=n(11),f=n.n(p),d=n(17),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;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=a(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,o=n.replace,a=n.to;o?t.replace(a):t.push(a)}},i=n,a(r,i)}return i(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,o=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 a=this.context.router.history,i="string"==typeof t?Object(d.c)(t,null,null,a.location):t,s=a.createHref(i);return l.a.createElement("a",h({},o,{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(55);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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(14),s=n.n(i),l=n(11),u=n.n(l),c=n(0),p=n.n(c),f=n(3),d=n.n(f),h=n(36),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,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.state={match:a.computeMatch(a.props,a.context.router)},i=n,o(a,i)}return a(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,o=e.path,a=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:o,strict:a,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,o=t.render,a=this.context.router,i=a.history,s=a.route,l=a.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:o?e?o(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=[],o=0,a=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(a,f),a=f+c.length,p)i+=p[1];else{var d=e[a],h=n[2],m=n[3],y=n[4],b=n[5],g=n[6],_=n[7];i&&(r.push(i),i="");var w=null!=h&&null!=d&&d!==h,E="+"===g||"*"===g,O="?"===g||"*"===g,j=n[2]||s,x=y||b;r.push({name:m||o++,prefix:h||"",delimiter:j,optional:O,repeat:E,partial:w,asterisk:!!_,pattern:x?u(x):_?".*":"[^"+l(j)+"]+?"})}}return a<e.length&&(i+=e.substr(a)),i&&r.push(i),r}function o(e,t){return s(r(e,t))}function a(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 o="",s=n||{},l=r||{},u=l.pretty?a: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&&(o+=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)+"`");o+=(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+'"');o+=p.prefix+f}}else o+=p}return o}}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=[],o=0;o<e.length;o++)r.push(y(e[o],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,o=!1!==n.end,a="",i=0;i<e.length;i++){var s=e[i];if("string"==typeof s)a+=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+")",a+=f}}var d=l(n.delimiter||"/"),h=a.slice(-d.length)===d;return r||(a=(h?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":r&&h?"":"(?="+d+"|$)",c(new RegExp("^"+a,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(114);e.exports=y,e.exports.parse=r,e.exports.compile=o,e.exports.tokensToFunction=s,e.exports.tokensToRegExp=m;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,n){"use strict";var r=n(56),o=n.n(r),a={},i=0,s=function(e){var t=e,n=a[t]||(a[t]={});if(n[e])return n[e];var r=o.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){var r=n(128),o=new r;e.exports={numberFormat:o.numberFormat.bind(o),translate:o.translate.bind(o),configure:o.configure.bind(o),setLocale:o.setLocale.bind(o),getLocale:o.getLocale.bind(o),getLocaleSlug:o.getLocaleSlug.bind(o),addTranslations:o.addTranslations.bind(o),reRenderTranslations:o.reRenderTranslations.bind(o),registerComponentUpdateHook:o.registerComponentUpdateHook.bind(o),registerTranslateHook:o.registerTranslateHook.bind(o),state:o.state,stateObserver:o.stateObserver,on:o.stateObserver.on.bind(o.stateObserver),off:o.stateObserver.removeListener.bind(o.stateObserver),emit:o.stateObserver.emit.bind(o.stateObserver),localize:n(142)(o),$this:o,I18N:r}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(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 a(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=o(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,a(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||o(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){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 o(e){return"number"==typeof e}function a(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(!o(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,o,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(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(a(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),o=u.length,l=0;l<o;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var o;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]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(o=i(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(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),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,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,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,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 o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,a,i,s,l){if(o(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,a,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 o=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 o(e,t){var n=M(e)||d(e)?r(e.length,String):[],o=n.length,a=!!o;for(var i in e)!t&&!C.call(e,i)||a&&("length"==i||u(i,o))||n.push(i);return n}function a(e,t,n){var r=e[t];C.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))C.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,o=-1,a=T(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=i,n(e,this,s)}}function l(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;a(n,s,void 0===l?e[s]:l)}return n}function u(e,t){return!!(t=null==t?w: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)&&C.call(e,"callee")&&(!N.call(e,"callee")||k.call(e)==E)}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)?k.call(e):"";return t==O||t==j}function b(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=w}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)?o(e):i(e)}var w=9007199254740991,E="[object Arguments]",O="[object Function]",j="[object GeneratorFunction]",x=/^(?:0|[1-9]\d*)$/,P=Object.prototype,C=P.hasOwnProperty,k=P.toString,N=P.propertyIsEnumerable,S=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),T=Math.max,A=!N.call({valueOf:1},"valueOf"),M=Array.isArray,R=function(e){return s(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&c(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}(function(e,t){if(A||p(t)||h(t))return void l(t,_(t),e);for(var n in t)C.call(t,n)&&a(e,n,t[n])});e.exports=R},function(e,t,n){e.exports=n(147)},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(8),o=n(151),a=n(153),i=n(154),s=n(155),l=n(69),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(156);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(),a(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,a={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};o(t,c,a),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(157),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(152);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},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=n(165),o=n(166),a=n(74);e.exports={formats:a,parse:o,stringify:r}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){for(var t;e.length;){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],o=0;o<t.length;++o)void 0!==t[o]&&r.push(t[o]);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,o){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(o.plainObjects||o.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var a=t;return Array.isArray(t)&&!Array.isArray(n)&&(a=i(t,o)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(t,a)?t[a]&&"object"==typeof t[a]?t[a]=e(t[a],n,o):t.push(n):t[a]=n}),t):Object.keys(n).reduce(function(t,a){var i=n[a];return r.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t},a)},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 a=t.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=t.charAt(r):a<128?n+=o[a]:a<2048?n+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?n+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(r+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(r)),n+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return n},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.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 a(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,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.updateValue=n.updateValue.bind(n);var a=_.isUndefined(n.props.defaultValue)?"":n.props.defaultValue,i=_.isUndefined(n.props.settings[n.props.property])?a:n.props.settings[n.props.property];return n.state={value:i},n}return a(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.suiSelect(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(t){var n=e.state.value+" "+t.target.value;e.updateValue(n)})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t="",n="input";return"textarea"===this.props.type&&(n="textarea"),this.props.label&&(t=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))),l.default.createElement("div",{className:"sui-form-field"},t,l.default.createElement("div",{className:"sui-insert-variables"},"input"===n&&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"===n&&l.default.createElement("textarea",{type:"text",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:this.state.rows}),l.default.createElement("select",{ref:function(t){return e.el=t}},this.props.children)))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),i(t,[{key:"clearImage",value:function(){"function"==typeof this.props.updateProperty?(this.props.updateProperty(this.props.property,""),this.props.updateProperty(this.props.property+"_filename","")):(this.props.actions.settingsActions.updateSetting(this.props.property,""),this.props.actions.settingsActions.updateSetting(this.props.property+"_filename",""))}},{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.actions.settingsActions.updateSetting(e.props.property,n),e.props.actions.settingsActions.updateSetting(e.props.property+"_filename",r.filename))});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=_.isUndefined(this.props.settings[this.props.property+"_filename"])?e:this.props.settings[this.props.property+"_filename"],n=_.isEmpty(e)?"":"sui-has_file",r="";this.props.label&&(r=l.default.createElement("label",{className:"sui-label"},this.props.label));var o="";this.props.description&&(o=l.default.createElement("span",{className:"sui-description"},this.props.description));var a="";if("image"===this.props.type){var i="";e&&(i="url("+e+")"),a=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 "+n},l.default.createElement("input",{type:"file",value:"",readOnly:"readonly"}),a,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",null,t),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"))))),o)}}]),t}(s.Component);t.default=c},,,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={answers:[],settings:!1,saved:!0},n({type:"UPDATE_SETTING",setting:e,value:t})}}},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(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(a,i){r(this,n);var s=o(this,e.call(this,a,i));return s[t]=a.store,s}return a(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(3)),u=n.n(l),c=n(45);n(32);t.b=i()},function(e,t,n){"use strict";function r(){}var o=n(83);e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){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 o(){var e=[],t=[];return{clear:function(){t=a,e=a},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!==a&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return s});var a=null,i={notify:function(){}},s=function(){function e(t,n,o){r(this,e),this.store=t,this.parentSub=n,this.onStateChange=o,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=o())},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 o(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function a(e,t){return e===t}var i=n(46),s=n(86),l=n(87),u=n(100),c=n(101),p=n(102),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?a:p,m=l.areOwnPropsEqual,b=void 0===m?s.a:m,g=l.areStatePropsEqual,w=void 0===g?s.a:g,E=l.areMergedPropsEqual,O=void 0===E?s.a:E,j=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=o(e,h,"mapStateToProps"),P=o(t,y,"mapDispatchToProps"),C=o(i,v,"mergeProps");return n(_,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:P,initMergeProps:C,pure:c,areStatesEqual:d,areOwnPropsEqual:b,areStatePropsEqual:w,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 o(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),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!a.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}t.a=o;var a=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e){return"function"==typeof e?Object(s.b)(e,"mapDispatchToProps"):void 0}function o(e){return e?void 0:Object(s.a)(function(e){return{dispatch:e}})}function a(e){return e&&"object"==typeof e?Object(s.a)(function(t){return Object(i.bindActionCreators)(e,t)}):void 0}var i=n(5),s=n(49);t.a=[r,o,a]},function(e,t,n){"use strict";(function(e,r){var o,a=n(90);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.a=i}).call(t,n(48),n(89)(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(o.a)(e)!=s)return!1;var t=Object(a.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 o=n(92),a=n(97),i=n(99),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(a.a)(e):Object(i.a)(e)}var o=n(51),a=n(95),i=n(96),s="[object Null]",l="[object Undefined]",u=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(94),o="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")();t.a=a},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(48))},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 o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}var o=n(51),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,l=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return a.call(e)}var o=Object.prototype,a=o.toString;t.a=r},function(e,t,n){"use strict";var r=n(98),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},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(a.b)(e,"mapStateToProps"):void 0}function o(e){return e?void 0:Object(a.a)(function(){return{}})}var a=n(49);t.a=[r,o]},function(e,t,n){"use strict";function r(e,t,n){return s({},n,e,t)}function o(e){return function(t,n){var r=(n.displayName,n.pure),o=n.areMergedPropsEqual,a=!1,i=void 0;return function(t,n,s){var l=e(t,n,s);return a?r&&o(l,i)||(i=l):(a=!0,i=l),i}}}function a(e){return"function"==typeof e?o(e):void 0}function i(e){return e?void 0:function(){return r}}var s=(n(50),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=[a,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 o(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function a(e,t,n,r,o){function a(o,a){return h=o,m=a,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=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.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):a(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?a:o)(u,c,p,e,l)}t.a=i;n(103)},function(e,t,n){"use strict";n(32)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(14),s=n.n(i),l=n(0),u=n.n(l),c=n(3),p=n.n(c),f=n(17),d=n(34),h=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.history=Object(f.a)(a.props),i=n,o(a,i)}return a(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(27),o=n.n(r),a=n(11),i=n.n(a),s=n(28),l=n(21),u=n(33),c=n(52),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)(),a=e.forceRefresh,h=void 0!==a&&a,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,a=window.location,i=a.pathname,u=a.search,c=a.hash,p=i+u+c;return o()(!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)},w=function(){return Math.random().toString(36).substr(2,v)},E=Object(u.a)(),O=function(e){f(q,e),q.length=t.length,E.notifyListeners(q.location,q.action)},j=function(e){Object(c.d)(e)||C(_(e.state))},x=function(){C(_(d()))},P=!1,C=function(e){if(P)P=!1,O();else{E.confirmTransitionTo(e,"POP",y,function(t){t?O({action:"POP",location:e}):k(e)})}},k=function(e){var t=q.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(P=!0,R(o))},N=_(d()),S=[N.key],T=function(e){return g+Object(l.b)(e)},A=function(e,r){o()(!("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 a=Object(s.a)(e,r,w(),q.location);E.confirmTransitionTo(a,"PUSH",y,function(e){if(e){var r=T(a),i=a.key,s=a.state;if(n)if(t.pushState({key:i,state:s},null,r),h)window.location.href=r;else{var l=S.indexOf(q.location.key),u=S.slice(0,-1===l?0:l+1);u.push(a.key),S=u,O({action:"PUSH",location:a})}else o()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},M=function(e,r){o()(!("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 a=Object(s.a)(e,r,w(),q.location);E.confirmTransitionTo(a,"REPLACE",y,function(e){if(e){var r=T(a),i=a.key,s=a.state;if(n)if(t.replaceState({key:i,state:s},null,r),h)window.location.replace(r);else{var l=S.indexOf(q.location.key);-1!==l&&(S[l]=a.key),O({action:"REPLACE",location:a})}else o()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},R=function(e){t.go(e)},F=function(){return R(-1)},D=function(){return R(1)},U=0,I=function(e){U+=e,1===U?(Object(c.a)(window,"popstate",j),r&&Object(c.a)(window,"hashchange",x)):0===U&&(Object(c.e)(window,"popstate",j),r&&Object(c.e)(window,"hashchange",x))},L=!1,V=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=E.setPrompt(e);return L||(I(1),L=!0),function(){return L&&(L=!1,I(-1)),t()}},B=function(e){var t=E.appendListener(e);return I(1),function(){I(-1),t()}},q={length:t.length,action:"POP",location:N,createHref:T,push:A,replace:M,go:R,goBack:F,goForward:D,block:V,listen:B};return q};t.a=h},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&r(e),s=t&&r(t),l=i||s;if(e&&r(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";var u=void 0;if(a.length){var c=a[a.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=a.length;f>=0;f--){var d=a[f];"."===d?o(a,f):".."===d?(o(a,f),p++):p&&(o(a,f),p--)}if(!l)for(;p--;p)a.unshift("..");!l||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}t.a=a},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":o(e);if(n!==(void 0===t?"undefined":o(t)))return!1;if("object"===n){var a=e.valueOf(),i=t.valueOf();if(a!==e||i!==t)return r(a,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 o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,n){"use strict";var r=n(27),o=n.n(r),a=n(11),i=n.n(a),s=n(28),l=n(21),u=n(33),c=n(52),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,a=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,w=g.decodePath,E=function(){var e=w(d());return o()(!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(H,e),H.length=t.length,O.notifyListeners(H.location,H.action)},x=!1,P=null,C=function(){var e=d(),t=_(e);if(e!==t)m(t);else{var n=E(),r=H.location;if(!x&&Object(s.b)(r,n))return;if(P===Object(l.b)(n))return;P=null,k(n)}},k=function(e){if(x)x=!1,j();else{O.confirmTransitionTo(e,"POP",a,function(t){t?j({action:"POP",location:e}):N(e)})}},N=function(e){var t=H.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 o=n-r;o&&(x=!0,U(o))},S=d(),T=_(S);S!==T&&m(T);var A=E(),M=[Object(l.b)(A)],R=function(e){return"#"+_(v+Object(l.b)(e))},F=function(e,t){o()(void 0===t,"Hash history cannot push state; it is ignored");var n=Object(s.a)(e,void 0,void 0,H.location);O.confirmTransitionTo(n,"PUSH",a,function(e){if(e){var t=Object(l.b)(n),r=_(v+t);if(d()!==r){P=t,h(r);var a=M.lastIndexOf(Object(l.b)(H.location)),i=M.slice(0,-1===a?0:a+1);i.push(t),M=i,j({action:"PUSH",location:n})}else o()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),j()}})},D=function(e,t){o()(void 0===t,"Hash history cannot replace state; it is ignored");var n=Object(s.a)(e,void 0,void 0,H.location);O.confirmTransitionTo(n,"REPLACE",a,function(e){if(e){var t=Object(l.b)(n),r=_(v+t);d()!==r&&(P=t,m(r));var o=M.indexOf(Object(l.b)(H.location));-1!==o&&(M[o]=t),j({action:"REPLACE",location:n})}})},U=function(e){o()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},I=function(){return U(-1)},L=function(){return U(1)},V=0,B=function(e){V+=e,1===V?Object(c.a)(window,"hashchange",C):0===V&&Object(c.e)(window,"hashchange",C)},q=!1,$=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return q||(B(1),q=!0),function(){return q&&(q=!1,B(-1)),t()}},z=function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}},H={length:t.length,action:"POP",location:A,createHref:R,push:F,replace:D,go:U,goBack:I,goForward:L,block:$,listen:z};return H};t.a=y},function(e,t,n){"use strict";var r=n(27),o=n.n(r),a=n(21),i=n(28),s=n(33),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(N,e),N.length=N.entries.length,m.notifyListeners(N.location,N.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())}),_=a.b,w=function(e,n){o()(!("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(),N.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=N.index,n=t+1,o=N.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),y({action:"PUSH",location:r,index:n,entries:o})}})},E=function(e,n){o()(!("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(),N.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(N.entries[N.index]=r,y({action:"REPLACE",location:r}))})},O=function(e){var n=c(N.index+e,0,N.entries.length-1),r=N.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=N.index+e;return t>=0&&t<N.entries.length},C=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},k=function(e){return m.appendListener(e)},N={length:g.length,action:"POP",location:g[v],index:v,entries:g,createHref:_,push:w,replace:E,go:O,goBack:j,goForward:x,canGo:P,block:C,listen:k};return N};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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(14),s=n.n(i),l=n(0),u=n.n(l),c=n(3),p=n.n(c),f=n(17),d=n(34),h=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.history=Object(f.b)(a.props),i=n,o(a,i)}return a(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(112);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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(14),s=n.n(i),l=n(0),u=n.n(l),c=n(3),p=n.n(c),f=n(17),d=n(35),h=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=o(this,e.call.apply(e,[this].concat(l))),a.history=Object(f.d)(a.props),i=n,o(a,i)}return a(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 o=n(0),a=n.n(o),i=n(3),s=n.n(i),l=n(54),u=n(53),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,o=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 a.a.createElement(l.a,{path:g,exact:n,strict:o,location:i,children:function(e){var n=e.location,r=e.match,o=!!(m?m(r,n):r);return a.a.createElement(u.a,c({to:t,className:o?[f,s].filter(function(e){return e}).join(" "):f,style:o?c({},h,d):h,"aria-current":o&&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(116);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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(3),u=n.n(l),c=n(11),p=n.n(c),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(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(118);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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(3),u=n.n(l),c=n(14),p=n.n(c),f=n(11),d=n.n(f),h=n(17),m=n(57),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),o(this,e.apply(this,arguments))}return a(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(120);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 o(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 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(14),l=n.n(s),u=n(11),c=n.n(u),p=n(0),f=n.n(p),d=n(3),h=n.n(d),m=n(17),y=n(35),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)})},w=function(e){return"string"==typeof e?e:Object(m.e)(e)},E=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},O=function(){},j=function(e){function t(){var n,r,i;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=a(this,e.call.apply(e,[this].concat(l))),r.createHref=function(e){return v(r.props.basename+w(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=g(n,Object(m.c)(e)),o.url=w(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=g(n,Object(m.c)(e)),o.url=w(o.location)},r.handleListen=function(){return O},r.handleBlock=function(){return O},i=n,a(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),o=r(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:_(t,Object(m.c)(n)),push:this.handlePush,replace:this.handleReplace,go:E("go"),goBack:E("goBack"),goForward:E("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(y.a,b({},o,{history:a}))},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(122);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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=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(3),u=n.n(l),c=n(14),p=n.n(c),f=n(11),d=n.n(f),h=n(36),m=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(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,o=void 0;return s.a.Children.forEach(t,function(t){if(null==r&&s.a.isValidElement(t)){var a=t.props,i=a.path,l=a.exact,u=a.strict,c=a.sensitive,p=a.from,f=i||p;o=t,r=Object(h.a)(n.pathname,{path:f,exact:l,strict:u,sensitive:c},e.match)}}),r?s.a.cloneElement(o,{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(57);t.a=r.a},function(e,t,n){"use strict";var r=n(36);t.a=r.a},function(e,t,n){"use strict";var r=n(126);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 o=n(0),a=n.n(o),i=n(3),s=n.n(i),l=n(47),u=n.n(l),c=n(55),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,o=r(t,["wrappedComponentRef"]);return a.a.createElement(c.a,{children:function(t){return a.a.createElement(e,p({},o,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){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}Object.defineProperty(t,"__esModule",{value:!0});var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){function r(){u.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function o(e){return Array.prototype.slice.call(e)}function a(e){var t,n=e[0],a={};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:",o(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:",o(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(a=e[t]);if("string"==typeof n?a.original=n:"object"==typeof a.original&&(a.plural=a.original.plural,a.count=a.original.count,a.original=a.original.single),"string"==typeof e[1]&&(a.plural=e[1]),void 0===a.original)throw new Error("Translate called without a `string` value as first argument.");return a}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(129)("i18n-wp-plugin"),p=n(132),f=n(133),d=n(62).EventEmitter,h=n(136).default,m=n(140),y=n(65),b=n(141),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||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return b(e,n,r,o)},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,o=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"===o.substr(0,4))if(4===o.length)v.push(l(!1));else{var u=o.substr(5).indexOf("-");if(u<0)t=Number(o.substr(5)),v.push(l(t));else for(n=Number(o.substr(5,u)),r=Number(o.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,a(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=s(this.state.jed,a(["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,a(arguments))},u.prototype.translate=function(){var e,t,n,r,o,i;if(e=a(arguments),i=!e.components){try{o=JSON.stringify(e)}catch(e){i=!1}if(o&&(t=this.state.translations.get(o)))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(o,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 o(){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 a(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 o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))}),e.splice(a,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(130),t.log=i,t.formatArgs=a,t.save=s,t.load=l,t.useColors=o,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(59))},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 o(e){function n(){if(n.enabled){var e=n,r=+new Date,a=r-(o||r);e.diff=a,e.prev=o,e.curr=r,o=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 o=t.formatters[r];if("function"==typeof o){var a=i[l];n=o.call(e,a),i.splice(l,1),l--}return n}),t.formatArgs.call(e,i);(n.log||t.log||console.log.bind(console)).apply(e,i)}}var o;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=a,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function a(){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,]+/),o=r.length;for(n=0;n<o;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 a=t.instances[n];a.enabled=t.enabled(a.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=o.debug=o.default=o,t.coerce=u,t.disable=s,t.enable=i,t.enabled=l,t.humanize=n(131),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 o(e){return a(e,u,"day")||a(e,l,"hour")||a(e,s,"minute")||a(e,i,"second")||e+" ms"}function a(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 a=typeof e;if("string"===a&&e.length>0)return n(e);if("number"===a&&!1===isNaN(e))return t.long?o(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){/**
|
1 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.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=376)}([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 o(){return Math.floor(9999*Math.random())}function a(){return"wrapper-"+o()+"-"+o()}function i(e,t){var n=void 0;return t.map(function(t){t.wrapper_id===e&&(n=t)}),n}function s(e,t){var n=1;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n}function l(e,t){var n=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,o=r.split("-");"page-break"===t.type?n.push(parseInt(o[2])):n.push(parseInt(o[1]))}})});var r=0;return _.isEmpty(n)||(r=_.max(n)),parseInt(r)+1}function u(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 c(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function p(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&n++})}),n>0}function f(e,t){var n=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&n.push(t)})}),n}function d(e,t){var n="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(n=t.field_label)})}),n}function h(e,t){var n=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&n++})}),n>0}function m(e,t,n,r){var o=l(e.type,r);return _.extend(e,{element_id:e.type+"-"+o,formID:t,cols:n})}function y(e,t,n){var r=forminatorData.fields.find(function(t){return t.slug===e}),o=l(r.type,t);return _.extend({element_id:r.type+"-"+o,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:n},JSON.parse(JSON.stringify(r.defaults)))}function b(e){return e.type}function v(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function g(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t)))}function w(e,t,n){return[].concat(r(e.slice(0,t)),[n],r(e.slice(t+1)))}function E(){return W.default.translate.apply(null,arguments)}function O(e,t){var n=_.filter(t,function(t){return t.family===e});return _.isUndefined(n[0])||_.isUndefined(n[0].variants)?[E("None")]:n[0].variants}function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e,t){var n=[];return _.isUndefined(t)&&(t=["page-break","postdata","total","upload","product","captcha"]),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var r=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(r=e.type,r=j(r)):r=e.field_label,"name"===e.type?n=n.concat(C(e,r)):"address"===e.type?n=n.concat(M(e,r)):"time"===e.type?n=n.concat(R(e,r)):"date"===e.type&&"picker"!==e.field_type?n=n.concat(P(e,r)):n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:r,values:A(e),hasOptions:T(e),hasCalcs:N(e),formula:S(e),isNumber:k(e),fieldData:e})}})}),n}function P(e,t){var n=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+E("Day"):t+" - "+e.day_label;var o=void 0;o=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+E("Month"):t+" - "+e.month_label;var a=void 0;return a=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+E("Year"):t+" - "+e.year_label,"input"===e.field_type?n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:a,values:!1,hasOptions:!1,isNumber:!0}):n.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:A(e),hasOptions:T(e),isNumber:k(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:o,values:A(e),hasOptions:T(e),isNumber:k(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:a,values:A(e),hasOptions:T(e),isNumber:k(e)}),n}function C(e,t){var n=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var o=void 0;o=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:o,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:A(e),hasOptions:T(e),isNumber:k(e)}),n}function k(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function N(e){return"true"===e.calculations||!0===e.calculations}function S(e){return!!e.formula&&e.formula}function T(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function A(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function M(e,t){var n=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var o=void 0;o=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],n.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:o,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),n}function R(e,t){var n=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+E("Hour"):t+" - "+e.hh_label;var o=void 0;return o=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+E("Minute"):t+" - "+e.mm_label,n.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:o,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&n.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),n}function F(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 D(e,t){switch(e){case"is":if("checkbox"===t)return E("is having");if("checkbox"!==t)return E("is");case"is_not":if("checkbox"===t)return E("is not having");if("checkbox"!==t)return E("is not");case"day_is":return E("day is");case"day_is_not":return E("day is not");case"month_is_not":return E("month is not");case"month_is":return E("month is");case"is_great":return E("is greater than");case"is_less":return E("is less than");case"contains":return E("contains");case"starts":return E("starts with");case"ends":return E("ends with");default:return"-"}}function U(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 o=r.length,a=0;a<o;a++)if(!r[a].match(/^[a-z0-9-]+$/i))return!1;return!0}function I(){"object"===H(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function L(e){var t="none";return H(e["results-behav"])&&H(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function V(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),x(e,t)}function B(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 q(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 $(e,t,n,r){var o=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[n]&&o++})}),o>0}function z(e){var t=0;return e.map(function(e){e.fields.map(function(e){var n=forminatorData.postCategories[e.post_type];void 0!==n&&n.map(function(n){var r=n.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0}Object.defineProperty(t,"__esModule",{value:!0});var 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};t.randNumber=o,t.generateWrapperId=a,t.getWrapper=i,t.countFieldsByType=s,t.getMaxIDByType=l,t.getMaxID=u,t.generateValue=c,t.hasFieldType=p,t.getFieldsByType=f,t.getFieldLabel=d,t.fieldExist=h,t.buildFieldObject=m,t.buildFieldObjectFromSlug=y,t.getFieldType=b,t.getForminatorField=v,t.insertInPosition=g,t.replaceInPosition=w,t.translate=E,t.getFontVariants=O,t.ucfirst=j,t.getFields=x,t.getDateFields=P,t.getNameFields=C,t.fieldHasNumber=k,t.fieldHasCalcs=N,t.fieldFormula=S,t.fieldHasOptions=T,t.getFieldValues=A,t.getAddressFields=M,t.getTimeFields=R,t.getFieldAutofillProviders=F,t.getRuleLabel=D,t.isEmailWp=U,t.suiDelegateEvents=I,t.getChartType=L,t.getCalculationFields=V,t.select2Tags=B,t.isFieldRequired=q,t.hasFieldWithAttribute=$,t.hasPostdataFieldWithMultiselect=z;var Q=n(58),W=function(e){return e&&e.__esModule?e:{default:e}}(Q)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateValue=n.updateValue.bind(n),n}return a(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,o=this.isValid(t)?"":"sui-form-field-error",a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,s=_.isUndefined(this.props.inputClass)?"sui-form-control":"sui-form-control "+this.props.inputClass,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.maxLength&&{maxlength:this.props.maxLength},{disabled:!!this.props.disabled,onChange:function(t){e.updateValue(t.target.value)}})),d=u.default.createElement("div",{className:a+" "+o},p,this.props.canTrash?u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},f,u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-right","data-tooltip":(0,c.translate)("Delete")},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))):f,this.props.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){e.exports=n(82)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81),o=n(46),a=n(85);n.d(t,"Provider",function(){return r.b}),n.d(t,"createProvider",function(){return r.a}),n.d(t,"connectAdvanced",function(){return o.a}),n.d(t,"connect",function(){return a.a})},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 o(e,t,n){function a(){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 a(),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,a();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(o)(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 a(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 o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}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,o={},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=a(u,t);throw new Error(d)}o[u]=f,r=r||f!==p}return r?o: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={},o=0;o<n.length;o++){var a=n[o],i=e[a];"function"==typeof i&&(r[a]=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),o=0;o<n;o++)r[o]=arguments[o];var a=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:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(e){return e(s)});return i=c.apply(void 0,l)(a.dispatch),m({},a,{dispatch:i})}}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"createStore",function(){return o}),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(88),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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,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.enume
|