(()=>{var e,t,s={2(e,t,s){var r=s(2199),a=s(4664),i=s(5950);e.exports=function(e){return r(e,i,a)}},14(e,t,s){var r=s(5389),a=s(5765);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},76(e){"use strict";e.exports=Function.prototype.call},79(e,t,s){var r=s(3702),a=s(80),i=s(4739),n=s(8655),o=s(1175);function l(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t "+this.props.text+"-1&&e%1==0&&e<=9007199254740991}},317(e){e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach(function(e,r){s[++t]=[r,e]}),s}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=function(e){var t=B(e,0,1),s=B(e,-1);if("%"===t&&"%"!==s)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===s&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,W,function(e,t,s,a){r[r.length]=s?L(a,H,"$1"):t||e}),r}(e),r=s.length>0?s[0]:"",a=q("%"+r+"%",t),i=a.name,n=a.value,o=!1,l=a.alias;l&&(r=l[0],I(s,R([0,1],l)));for(var u=1,d=!0;ue||125{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(s,r){if(1&r&&(s=this(s)),8&r)return s;if("object"==typeof s&&s){if(4&r&&s.__esModule)return s;if(16&r&&"function"==typeof s.then)return s}var i=Object.create(null);a.r(i);var n={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&s;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>n[e]=()=>s[e]);return n.default=()=>s,a.d(i,n),i},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};a.r(e),a.d(e,{resetSettings:()=>ua,saveBuilder:()=>da,updateSetting:()=>pa,updateSettings:()=>ca});var t={};a.r(t),a.d(t,{hideModal:()=>fa,showModal:()=>ha});var s={};a.r(s),a.d(s,{UPDATE_TITLE:()=>ba,updateTitle:()=>ga});var r={};a.r(r),a.d(r,{updateField:()=>za,updateFieldSettings:()=>Wa,updateFields:()=>Ba});var i={};a.r(i),a.d(i,{updateNotification:()=>qa,updateNotifications:()=>Ha});var n={};a.r(n),a.d(n,{updateBehavior:()=>Ya,updateBehaviorArray:()=>Qa});var o={};a.r(o),a.d(o,{updateIntegrationConditions:()=>Ga});var l={};a.r(l),a.d(l,{revertAllChanges:()=>Ja});var p={};a.r(p),a.d(p,{hasBrowserEnv:()=>on,hasStandardBrowserEnv:()=>pn,hasStandardBrowserWebWorkerEnv:()=>cn,navigator:()=>ln,origin:()=>un});var c={};a.r(c),a.d(c,{updatePdfs:()=>Gd});var u=a(1594),d=a.n(u),m=a(5338);a(8418);var h=u.version.startsWith("19"),f=Symbol.for(h?"react.transitional.element":"react.element"),b=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),P=x,O=k;function D(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case f:switch(e=e.type){case g:case v:case y:case N:case C:return e;default:switch(e=e&&e.$$typeof){case w:case x:case S:case k:case E:return e;default:return t}}case b:return t}}}function F(e,t,s,r,{areStatesEqual:a,areOwnPropsEqual:i,areStatePropsEqual:n}){let o,l,p,c,u,d=!1;function m(d,m){const h=!i(m,l),f=!a(d,o,m,l);return o=d,l=m,h&&f?(p=e(o,l),t.dependsOnOwnProps&&(c=t(r,l)),u=s(p,c,l),u):h?(e.dependsOnOwnProps&&(p=e(o,l)),t.dependsOnOwnProps&&(c=t(r,l)),u=s(p,c,l),u):f?function(){const t=e(o,l),r=!n(t,p);return p=t,r&&(u=s(p,c,l)),u}():u}return function(a,i){return d?m(a,i):(o=a,l=i,p=e(o,l),c=t(r,l),u=s(p,c,l),d=!0,u)}}function A(e){return function(t){const s=e(t);function r(){return s}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function j(e,t){return function(t,{displayName:s}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,s){r.mapToProps=e,r.dependsOnOwnProps=T(e);let a=r(t,s);return"function"==typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=T(a),a=r(t,s)),a},r}}function M(e,t){return(s,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function U(e,t,s){return{...s,...e,...t}}function V(e){e()}var $={notify(){},get:()=>[]};function R(e,t){let s,r=$,a=0,i=!1;function n(){p.onStateChange&&p.onStateChange()}function o(){a++,s||(s=t?t.addNestedSub(n):e.subscribe(n),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){V(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let s=e;for(;s;)t.push(s),s=s.next;return t},subscribe(s){let r=!0;const a=t={callback:s,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){r&&null!==e&&(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}())}function l(){a--,s&&0===a&&(s(),s=void 0,r.clear(),r=$)}const p={addNestedSub:function(e){o();const t=r.subscribe(e);let s=!1;return()=>{s||(s=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:n,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,o())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return p}var I=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),L=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),B=(()=>I||L?u.useLayoutEffect:u.useEffect)();function z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function W(e,t){if(z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const s=Object.keys(e),r=Object.keys(t);if(s.length!==r.length)return!1;for(let r=0;r1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:cs;Kt&&Kt(e,null);let r=t.length;for(;r--;){let a=t[r];if("string"==typeof a){const e=s(a);e!==a&&(Zt(t)||(t[r]=e),a=e)}e[a]=!0}return e}function ws(e){for(let t=0;t`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=s?e.length>1?"since :\n"+e.map(Jn).join("\n"):" "+Jn(e[0]):"as no adapter specified";throw new Hi("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a},adapters:Zn};function to(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cn(null,e)}function so(e){to(e),e.headers=wn.from(e.headers),e.data=xn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return eo.getAdapter(e.adapter||fn.adapter,e)(e).then(function(t){return to(e),t.data=xn.call(e,e.transformResponse,t),t.headers=wn.from(t.headers),t},function(t){return Nn(t)||(to(e),t&&t.response&&(t.response.data=xn.call(e,e.transformResponse,t.response),t.response.headers=wn.from(t.response.headers))),Promise.reject(t)})}const ro="1.13.5",ao={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ao[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const io={};ao.transitional=function(e,t,s){function r(e,t){return"[Axios v"+ro+"] Transitional option '"+e+"'"+t+(s?". "+s:"")}return(s,a,i)=>{if(!1===e)throw new Hi(r(a," has been removed"+(t?" in "+t:"")),Hi.ERR_DEPRECATED);return t&&!io[a]&&(io[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(s,a,i)}},ao.spelling=function(e){return(t,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};const no={assertOptions:function(e,t,s){if("object"!=typeof e)throw new Hi("options must be an object",Hi.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],n=t[i];if(n){const t=e[i],s=void 0===t||n(t,i,e);if(!0!==s)throw new Hi("option "+i+" must be "+s,Hi.ERR_BAD_OPTION_VALUE);continue}if(!0!==s)throw new Hi("Unknown option "+i,Hi.ERR_BAD_OPTION)}},validators:ao},oo=no.validators;class lo{constructor(e){this.defaults=e||{},this.interceptors={request:new rn,response:new rn}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const s=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?s&&!String(e.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+s):e.stack=s}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Un(this.defaults,t);const{transitional:s,paramsSerializer:r,headers:a}=t;void 0!==s&&no.assertOptions(s,{silentJSONParsing:oo.transitional(oo.boolean),forcedJSONParsing:oo.transitional(oo.boolean),clarifyTimeoutError:oo.transitional(oo.boolean),legacyInterceptorReqResOrdering:oo.transitional(oo.boolean)},!1),null!=r&&(zi.isFunction(r)?t.paramsSerializer={serialize:r}:no.assertOptions(r,{encode:oo.function,serialize:oo.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),no.assertOptions(t,{baseUrl:oo.spelling("baseURL"),withXsrfToken:oo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&zi.merge(a.common,a[t.method]);a&&zi.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=wn.concat(i,a);const n=[];let o=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;o=o&&e.synchronous;const s=t.transitional||an;s&&s.legacyInterceptorReqResOrdering?n.unshift(e.fulfilled,e.rejected):n.push(e.fulfilled,e.rejected)});const l=[];let p;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,u=0;if(!o){const e=[so.bind(this),void 0];for(e.unshift(...n),e.push(...l),c=e.length,p=Promise.resolve(t);u
${Nr("You have added both Stripe and PayPal fields to your form. We recommend that you use the visibility conditions, so only one of them is visible at a time. For example:")}
\n\t1. ${Nr("Add an option to your form using a Radio (or Select) field that allows visitors to choose the payment method.")}
\n\t2. ${Nr("Apply visibility conditions to both Stripe and PayPal fields so only one is visible based on the visitor's selection in the Radio (or Select) field.")}`,dismiss:!0}).open()}render(){let e=forminatorData.fields.filter(e=>e.category),t={},s={};const r=forminatorData.fieldsPro||[],a=br("password",this.props.wrappers),i=this.props.modal.modalProps.groupId;e=_.filter(e,function(e){return"gdprcheckbox"!==e.slug&&"stripe"!==e.slug}),("registration"!==this.props.formType&&"login"!==this.props.formType||a&&"registration"===this.props.formType)&&(e=_.filter(e,function(e){return"password"!==e.slug})),i&&(e=_.filter(e,function(e){return!_.includes(["page-break","paypal","stripe","stripe-ocs","signature","captcha","postdata","group"],e.slug)}));const n=_.sortBy(e,"position");(this.hasStripe||this.hasStripeOCS||this.hasCaptcha||this.hasPayPal)&&(t={display:"block"}),forminatorData.isPro||this.props.skipProNotice||(s={display:"block"});const o=this.props.formType;let l,p;return"pdf-form"===o?(l=Nr("PDF file"),p="blue"):(l=Nr("form"),p="red"),d().createElement(er.Fragment,null,d().createElement(sl,{closeType:"icon",closeModal:this.closeModal},d().createElement(il,{id:this.props.modal.modalProps.id,label:Nr("Insert Fields")})),d().createElement("div",{className:"sui-box-body"},d().createElement("p",null,Nr("Select one or more fields below to include in your %s.",{args:[l]})),(this.hasStripe||this.hasCaptcha||this.hasStripeOCS||this.hasPayPal||"pdf-form"===o)&&d().createElement("div",{role:"alert",className:`sui-notice sui-notice-${p} sui-active`,"aria-live":"assertive",style:{display:"block"}},d().createElement("div",{className:"sui-notice-content"},d().createElement("div",{className:"sui-notice-message"},d().createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),(this.hasStripe||this.hasStripeOCS)&&d().createElement("p",null,Nr("You can have only one Stripe field in your form for Stripe to work accurately. Please delete the existing Stripe field to add a new one.")),this.hasPayPal&&d().createElement("p",null,Nr("You can have only one PayPal field in your form for PayPal to work accurately. Please delete the existing PayPal field to add a new one.")),this.hasCaptcha&&d().createElement("p",null,Nr("You can have only one captcha field in your form for captcha to work accurately. Please delete the existing captcha field to add a new one.")),"pdf-form"===o&&d().createElement("p",null,Nr("{{b}}Note{{/b}}: You can use the {{b}}Rich Text{{/b}} field to add form fields and custom text to your PDF.",{components:{b:d().createElement("b",null)}})))))),d().createElement("div",{className:"sui-box-selectors sui-box-selectors-col-5",style:{margin:0}},d().createElement("ul",{id:"forminator-form-fields-to-insert",className:`sui-spacing-slim ${o}-field-selectors`},n.map(e=>d().createElement("li",{key:e.slug},d().createElement("label",{htmlFor:`forminator-form-field-${e.slug}`,className:"sui-box-selector sui-box-selector-vertical"},d().createElement("input",{type:"checkbox",id:`forminator-form-field-${e.slug}`,"data-field":e.slug,onChange:t=>this.toggleField(e.slug,t)}),d().createElement("span",null,d().createElement("i",{className:e.icon,"aria-hidden":"true"}),e.name)))),!forminatorData.isPro&&r.map(e=>{if("signature"!==e.field_type||"signature"===e.field_type&&_.isEmpty(i))return d().createElement("li",{key:e.slug},d().createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},d().createElement("input",{type:"radio",disabled:!0}),d().createElement("span",null,d().createElement("span",{className:e.icon,"aria-hidden":"true"}),e.name,d().createElement("span",{className:"sui-tag sui-tag-pro"},"Pro"))))}),_.isEmpty(i)&&!forminatorData.isPro&&_.isEmpty(r)&&"pdf-form"!==o&&d().createElement("li",null,d().createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},d().createElement("input",{type:"radio",disabled:!0}),d().createElement("span",null,d().createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),Nr("E-Signature"),d().createElement("span",{className:"sui-tag sui-tag-pro"},"Pro")))),"pdf-form"===o&&d().createElement(er.Fragment,null,d().createElement("li",{className:"pdf-field-coming-soon sui-tooltip","data-tooltip":Nr("Coming soon")},d().createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},d().createElement("input",{type:"radio",disabled:!0}),d().createElement("span",null,d().createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),Nr("Quotation")))))),"pdf-form"!==o&&d().createElement("div",{role:"alert",id:"fui-notice-pro-fields",className:`sui-notice sui-notice-purple ${!forminatorData.isPro&&!this.props.skipProNotice&&" sui-active"}`,style:s,"aria-live":"assertive"},_.isEmpty(i)&&!forminatorData.isPro&&!this.props.skipProNotice&&d().createElement("div",{className:"sui-notice-content"},d().createElement("div",{className:"sui-notice-message"},d().createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),d().createElement("p",null,Nr("Need access to pro form fields? {{link}}Upgrade to Pro{{/link}}",{components:{link:d().createElement("a",{href:"https://wpmudev.com/project/forminator-pro/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_forms_insertfields_upsell_notice",target:"_blank",style:{color:"#8d00b1"}})}}))),d().createElement("div",{className:"sui-notice-actions"},d().createElement(cl,{icon:"check",iconSize:"sm",label:Nr("Dismiss"),onClick:this.skipProNotice})))),"pdf-form"===o&&this.missingPaymentField&&d().createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block",marginTop:"15px"},"aria-live":"assertive"},d().createElement("div",{className:"sui-notice-content"},d().createElement("div",{className:"sui-notice-message"},d().createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),d().createElement("p",null,Nr("This PDF is linked to a form without a payment field. To include payment information in your PDF, please add either a PayPal or Stripe field to your form.")))))),d().createElement(rl,{alignment:"separated"},d().createElement(Xo,{label:Nr("Cancel"),customClass:"sui-button-ghost forminator-builder-fields-close",closeModal:this.closeModal}),d().createElement("button",{id:"forminator-builder-insert-fields",className:"sui-button sui-button-blue",disabled:!this.state.fields.length||this.hasStripe||this.hasStripeOCS||this.hasCaptcha||this.hasPayPal||this.missingPaymentField,onClick:this.insertFields},d().createElement("span",{className:"sui-loading-text"},Nr("Insert Fields")),d().createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}class dl extends er.Component{constructor(e){super(e)}render(){const e=d().Children.map(this.props.children,e=>e);return d().createElement("div",{className:"sui-row"+(_.isUndefined(this.props.class)?"":" "+this.props.class)},e)}}class ml extends er.Component{constructor(e){super(e)}render(){const e=d().Children.map(this.props.children,e=>e),t=this.props.customClass?this.props.customClass:"";return d().createElement("div",{className:`sui-col-md-${this.props.cols} ${t}`},e)}}function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t
"+Nr("Add a rule to control when it should be hidden or shown."):this.props.isPayment?Nr("Add conditions for how this plan will be processed based on your form field data."):Nr("By default, this field is always visible.")+"
"+Nr("Add rules to control when it should appear based on user input.");const n=d().createElement("div",{className:"fui-visibility-group"},this.props.wrappers.length<2&&this.fields.length<2&&_.isEmpty(this.fields)&&d().createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active fui-visibility-notice",style:{display:"block"},"aria-live":"assertive"},d().createElement("div",{className:"sui-notice-content"},d().createElement("div",{className:"sui-notice-message"},d().createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),d().createElement("p",null,Nr("You need more than one field to configure visibility conditions. Add more fields!"))))),(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&d().createElement("div",{className:"fui-visibility-header"},!this.props.isPayment&&d().createElement("div",Dl({className:"fui-visibility-header-message"},s&&{style:{marginBottom:0}}),a,e),t,r),d().createElement("div",{className:"fui-visibility"},d().createElement("div",{className:"fui-visibility-empty-message forminator-visibility-field-empty-message"},d().createElement("p",{dangerouslySetInnerHTML:{__html:i}}),(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&!s&&d().createElement("button",{accessKey:"a",onClick:this.addRule},d().createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.props.isPayment?Nr("Add conditions"):Nr("Add Rule")))));return(_.isUndefined(this.props.state.conditions)||0===this.props.state.conditions.length)&&er.Fragment,!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?d().createElement("div",{className:"fui-visibility-group"},(this.props.wrappers.length>1||this.fields.length>0)&&d().createElement("div",{className:"fui-visibility-header"},!this.props.isPayment&&d().createElement("div",Dl({className:"fui-visibility-header-message has-conditions"},s&&{style:{marginBottom:0}}),a,e),t,r),d().createElement("div",{className:"fui-visibility"},d().createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.conditions,(e,t)=>d().createElement(Sl,Dl({},this.props,{rule:e,key:t,counter:t,removeRule:this.removeRule,updateField:this.updateField,updateRule:this.updateRule,updateValue:this.updateValue,updateInputValue:this.updateInputValue,fields:this.fields}))))),!this.isPageBreak&&d().createElement("button",{className:"sui-button sui-button-blue",accessKey:"a",onClick:this.addRule},d().createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.props.isPayment?Nr("Add conditions"):Nr("Add Rule"))):d().createElement(er.Fragment,null,n)}}const Al=["formType","updateProperty","noWrapper","fieldClass","staticContext","formDesign","fieldSize","onChange"];function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t
You've successfully saved {form_name} form on {site_title}.\nTo continue where you left off, click the link below or copy the link to your web browser.
The above link will expire in {retention_period} days. Also note that anyone visiting the link will be able to view your partially completed form data.
"),"email-recipients":"default","email-attachment":"false",type:"save_draft"};-1===e&&this.props.notifications.push(t)}render(){const e=e=>{this.props.router.navigate("/"+e)},t=this.props.settings,s=!_.isUndefined(t.use_save_and_continue)&&t.use_save_and_continue;return _.isUndefined(t.sc_email_link)&&(t.sc_email_link=!0),_.isUndefined(t.sc_message)&&(t.sc_message=Nr("Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.
These fields weren't saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.
")),"login"===t["form-type"]?"":d().createElement("div",{id:"forminator-section-behavior-save",className:"sui-box-settings-row"},d().createElement("div",{className:"sui-box-settings-col-1"},d().createElement("span",{className:"sui-settings-label"},Nr("Save and Continue")),d().createElement("span",{className:"sui-description"},Nr("Enable this option if you want to allow users save their progress and return to complete the form at a later time."))),d().createElement("div",{className:"sui-box-settings-col-2"},d().createElement(Ip,Af({},this.props,{property:"use_save_and_continue",label:Nr("Enable save and continue"),unWrap:!0})),s&&d().createElement(er.Fragment,null,d().createElement(ap,Af({},this.props,{property:"sc_tab",default:"configuration",wrapperClass:"save-continue-wrap mtop10",simple:!0,basicTabs:!0}),d().createElement(op,{value:"configuration",boxClass:"sui-tab-boxed",label:Nr("Configuration")},d().createElement(fl,Af({},this.props,{property:"sc_draft_retention",label:Nr("Draft retention period"),defaultValue:"30",description:Nr("Enter the number of days a form's draft will be stored on your server before they are automatically deleted."),suffix:"days"})),d().createElement(fl,Af({},this.props,{property:"sc_link_text",label:Nr("Save form link text"),defaultValue:Nr("Save as Draft"),description:Nr("Edit text for the save draft link.")})),d().createElement(up,Af({},this.props,{property:"sc_message",extraId:"-draft",updateProperty:this.updateProperty,label:Nr("Resume message"),description:Nr("This message will be shown when a form is successfully saved as draft."),editorOptions:forminatorData.variables,cutomTinymce:"bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link",enableFormData:"true"})),d().createElement("div",{role:"alert",className:"sui-notice sui-active","aria-live":"assertive",style:{display:"block"}},d().createElement("div",{className:"sui-notice-content"},d().createElement("div",{className:"sui-notice-message"},d().createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),d().createElement("p",null,Nr("These fields will not be saved in the submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload."))))),d().createElement(Ip,Af({},this.props,{property:"sc_email_link",label:Nr("Allow send draft link to email"),description:Nr("Enable to allow users send the draft form's link to their email."),unWrap:!0})),t.sc_email_link&&d().createElement("div",{className:"sui-border-frame"},d().createElement("p",null,d().createElement("small",null,Nr("Configure the send link email form below. You can edit the email contents in the {{link}}Email Notifications{{/link}} tab.",{components:{link:d().createElement("a",{onClick:()=>e("notifications"),href:"#"})}}))),d().createElement(fl,Af({},this.props,{property:"sc_email_input_label",label:Nr("Email input label"),defaultValue:Nr("Send draft link to")})),d().createElement(fl,Af({},this.props,{property:"sc_email_placeholder",label:Nr("Placeholder (Optional)"),defaultValue:Nr("E.g., johndoe@gmail.com")})),d().createElement(fl,Af({},this.props,{property:"sc_email_button_label",label:Nr("Send link button label"),defaultValue:Nr("Send draft link")})))),d().createElement(op,{value:"permission",boxClass:"sui-tab-boxed",label:Nr("Permission")},d().createElement("p",{style:{marginBottom:"20px"}},d().createElement("small",null,Nr("Select which users can save their forms as draft."))),d().createElement(ap,Af({},this.props,{property:"sc_permission",default:"public",simple:!0}),d().createElement(op,{value:"public",boxClass:"sui-tab-boxed",label:Nr("Public")},d().createElement("p",null,d().createElement("small",null,Nr("Every user can save their forms as draft.")))),d().createElement(op,{value:"registered",boxClass:"sui-tab-boxed",label:Nr("Registered Users")},d().createElement("p",null,d().createElement("small",null,Nr("Only registered users can save their forms as draft."))))))))))}}const jf=Ua(Tf);function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".forminator-integration-popup__header").html("")),r.applyLoader(r.$el),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);const s=e.data.data;if(r.onRender(s),r.resetLoader(r.$el),(t||!_.isUndefined(s.is_close)&&s.is_close)&&r.close(r),r.$el.find(".forminator-addon-close").on("click",function(){r.close(r)}),!_.isUndefined(s.notification)&&!_.isUndefined(s.notification.type)&&!_.isUndefined(s.notification.text)){new tr({type:s.notification.type,text:s.notification.text,time:4e3}).open()}if(_.isUndefined(s.has_back)?r.$el.find(".forminator-addon-back").hide():s.has_back?r.$el.find(".forminator-addon-back").show():r.$el.find(".forminator-addon-back").hide(),!_.isUndefined(s.size)){const e=jQuery("#forminator-integration-popup");"normal"===s.size&&e.removeClass("sui-modal-sm sui-modal-lg"),"small"===s.size&&(e.addClass("sui-modal-sm"),e.removeClass("sui-modal-lg sui-modal-reduced")),"reduced"===s.size&&(e.addClass("sui-modal-sm"),e.removeClass("sui-modal-lg sui-modal-md")),"large"===s.size&&(e.addClass("sui-modal-lg"),e.removeClass("sui-modal-sm sui-modal-md"))}s.is_poll&&setTimeout(r.request(a.data,a.close,a.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",0)}if("mailchimp"===r.slug){const e=r.$el.find("#group");e.length&&e.trigger("change")}r.$el.find("form").on("submit",function(e){e.preventDefault(),r.submitNextStep()})}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}renderBody(e){this.$el.find(".sui-box-body").html(e.data.data.html);const t=this.$el.find(".sui-box-body .forminator-integration-popup__header").remove();t.length>0&&this.$el.find(".forminator-integration-popup__header").html(t.html())}renderFooter(e){const t=this,s=e.data.data.buttons;t.$el.find(".sui-box-footer").html(""),_.each(s,function(e){t.$el.find(".sui-box-footer").append(e.markup)})}onRender(e){var t,s;"object"==typeof window.SUI&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50),t=this.$el,s={},s=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown"},s),t.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){const t=e.params.data.element,s=jQuery(t),r=jQuery(this);r.append(s),r.trigger("change.select2")}),jQuery(this).SUIselect2(s)}),_.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)}close(e){e.ajax.abort(),e.remove(),this.trigger("modal:closed")}refreshLists(e){e.preventDefault(),e.stopPropagation();const t=jQuery(e.currentTarget),s=this.slug,r=this.global_id,a=this.nonce,i={slug:s,global_id:r};t.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:i,_ajax_nonce:a}}).done(function(e){if(e.success&&void 0!==e.data.options){const s=t.siblings(".sui-select"),r=s.closest(".sui-modal-content"),a=r.attr("id"),i=r.length?jQuery("#"+a):jQuery("body"),n="true"===s.attr("data-search")?0:-1,o=s.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";s.html(e.data.options),s.SUIselect2({dropdownParent:i,minimumResultsForSearch:n,dropdownCssClass:o})}}).fail(function(){}).always(function(){t.removeClass("sui-button-onload")})}showInterests(e){const t=this,s=jQuery(e.currentTarget).data("nonce"),r={},a=t.$el.find("form"),i={slug:t.slug,global_id:this.global_id,module_id:this.module_id,module_type:this.type};let n=a.serialize();n=n+"&"+jQuery.param(i),r.action="forminator_mailchimp_get_group_interests",r._ajax_nonce=s,r.data=n,t.applyLoader(t.$el),jQuery.ajax({url:ajaxurl,type:"POST",data:r}).done(function(e){e.success&&(a.find(".sui-form-field").slice(1).remove(),a.find(".sui-form-field:first-child").after(e.data),a.find(".sui-form-field").slice(1).find("select").each(function(){SUI.select.init(jQuery(this))}))}).fail(function(){}).always(function(){t.resetLoader(t.$el)})}submitNextStep(e){const t={},s=this.$el.find("form");let r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},a=s.serialize();r=this.getAjaxModuleData(r,!1),a=a+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}changeFormType(){const e={},t=this.$el.find("form");let s={slug:this.slug,step:this.step,global_id:this.global_id,current_step:this.step,change_form_type:1},r=t.serialize();s=this.getAjaxModuleData(s,!1),r=r+"&"+jQuery.param(s),e.action=this.action,e._ajax_nonce=this.nonce,e.data=r,this.request(e,!1,!1)}goPrevStep(e){const t={};let s={slug:this.slug,step:this.getPrevStep(),global_id:this.global_id,current_step:this.step};s=this.getAjaxModuleData(s,!0),t.action=this.action,t._ajax_nonce=this.nonce,t.data=s,this.request(t,!1,!1)}finishSteps(e){const t={},s=this.$el.find("form");let r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},a=s.serialize();r=this.getAjaxModuleData(r,!0),a=a+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}getStep(){return this.next_step?this.step+1:this.step}getPrevStep(){return this.prev_step?this.step-1:this.step}connectAddon(){const e={},t=this.$el.find("form");let s={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},r=t.serialize();s=this.getAjaxModuleData(s,!0),r=r+"&"+jQuery.param(s),e.action=this.action,e._ajax_nonce=this.nonce,e.data=r,this.request(e,!1,!1)}disconnectAddon(){const e={action:"forminator_addon_deactivate"};e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.global_id=this.global_id,this.request(e,!0,!1)}formDisconnectAddon(){const 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)}getScrollbarWidth(){let e=0;if(navigator.userAgent.match("MSIE")){let t=jQuery('').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),s=jQuery('').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=t.width()-s.width(),t.add(s).remove()}else{const t=jQuery("").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo("body").append("").find("div").css({width:"100%",height:200});e=100-t.width(),t.parent().remove()}return e}getAjaxModuleData(e,t){return this.module_id&&(e.module_id=this.module_id,e.module_type=this.type,e.global_id=this.global_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}getAjaxModuleAction(e){if("deactivate"===e)e="forminator_addon_deactivate_for_module";return e}}!function(){const e={type:"form"};function t(t,s){this.$popup={},this._deferred={},this.el=t,this.$el=jQuery(this.el),this.options=_.extend(e,s),this.init()}jQuery.extend(t.prototype,{init:function(){const e=this;this.$el.find(".connect-integration").on("click",function(t){e.open(t)})},open:function(e){const t=this;jQuery("#forminator-integration-popup").remove();let s=jQuery(e.target);s.hasClass("connect-integration")||(s=s.closest(".connect-integration"));const r=function(){return t.close(),!1},a=s.data("nonce"),i=s.data("slug"),n=s.data("multi-global-id"),o=s.data("title"),l=s.data("image"),p=s.data("imagex2"),c=s.data("action"),u=s.data("form-id"),d=s.data("multi-id"),m=s.data("poll-id"),h=s.data("quiz-id"),f=_.template('