/** vim: et:ts=4:sw=4:sts=4
 * @license RequireJS 2.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
 */

/**
 * @license RequireJS text 2.0.3 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/requirejs/text for details
 */

var formintorjs;!function(){if(!formintorjs||!formintorjs.requirejs){formintorjs?require=formintorjs:formintorjs={};var requirejs,require,define;!function(global,setTimeout){function commentReplace(t,n){return n||""}function isFunction(t){return"[object Function]"===ostring.call(t)}function isArray(t){return"[object Array]"===ostring.call(t)}function each(t,n){if(t){var e;for(e=0;e<t.length&&(!t[e]||!n(t[e],e,t));e+=1);}}function eachReverse(t,n){if(t){var e;for(e=t.length-1;e>-1&&(!t[e]||!n(t[e],e,t));e-=1);}}function hasProp(t,n){return hasOwn.call(t,n)}function getOwn(t,n){return hasProp(t,n)&&t[n]}function eachProp(t,n){var e;for(e in t)if(hasProp(t,e)&&n(t[e],e))break}function mixin(t,n,e,i){return n&&eachProp(n,function(n,o){!e&&hasProp(t,o)||(!i||"object"!=typeof n||!n||isArray(n)||isFunction(n)||n instanceof RegExp?t[o]=n:(t[o]||(t[o]={}),mixin(t[o],n,e,i)))}),t}function bind(t,n){return function(){return n.apply(t,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(t){throw t}function getGlobal(t){if(!t)return t;var n=global;return each(t.split("."),function(t){n=n[t]}),n}function makeError(t,n,e,i){var o=new Error(n+"\nhttp://requirejs.org/docs/errors.html#"+t);return o.requireType=t,o.requireModules=i,e&&(o.originalError=e),o}function newContext(t){function n(t){var n,e;for(n=0;n<t.length;n++)if("."===(e=t[n]))t.splice(n,1),n-=1;else if(".."===e){if(0===n||1===n&&".."===t[2]||".."===t[n-1])continue;n>0&&(t.splice(n-1,2),n-=2)}}function e(t,e,i){var o,a,r,s,l,p,d,c,u,m,f,h=e&&e.split("/"),_=F.map,v=_&&_["*"];if(t&&(t=t.split("/"),p=t.length-1,F.nodeIdCompat&&jsSuffixRegExp.test(t[p])&&(t[p]=t[p].replace(jsSuffixRegExp,"")),"."===t[0].charAt(0)&&h&&(f=h.slice(0,h.length-1),t=f.concat(t)),n(t),t=t.join("/")),i&&_&&(h||v)){a=t.split("/");t:for(r=a.length;r>0;r-=1){if(l=a.slice(0,r).join("/"),h)for(s=h.length;s>0;s-=1)if((o=getOwn(_,h.slice(0,s).join("/")))&&(o=getOwn(o,l))){d=o,c=r;break t}!u&&v&&getOwn(v,l)&&(u=getOwn(v,l),m=r)}!d&&u&&(d=u,c=m),d&&(a.splice(0,c,d),t=a.join("/"))}return getOwn(F.pkgs,t)||t}function i(t){isBrowser&&each(scripts(),function(n){if(n.getAttribute("data-requiremodule")===t&&n.getAttribute("data-requirecontext")===x.contextName)return n.parentNode.removeChild(n),!0})}function o(t){var n=getOwn(F.paths,t);if(n&&isArray(n)&&n.length>1)return n.shift(),x.require.undef(t),x.makeRequire(null,{skipMap:!0})([t]),!0}function a(t){var n,e=t?t.indexOf("!"):-1;return e>-1&&(n=t.substring(0,e),t=t.substring(e+1,t.length)),[n,t]}function r(t,n,i,o){var r,s,l,p,d=null,c=n?n.name:null,u=t,m=!0,f="";return t||(m=!1,t="_@r"+(T+=1)),p=a(t),d=p[0],t=p[1],d&&(d=e(d,c,o),s=getOwn(j,d)),t&&(d?f=i?t:s&&s.normalize?s.normalize(t,function(t){return e(t,c,o)}):-1===t.indexOf("!")?e(t,c,o):t:(f=e(t,c,o),p=a(f),d=p[0],f=p[1],i=!0,r=x.nameToUrl(f))),l=!d||s||i?"":"_unnormalized"+(S+=1),{prefix:d,name:f,parentMap:n,unnormalized:!!l,url:r,originalName:u,isDefine:m,id:(d?d+"!"+f:f)+l}}function s(t){var n=t.id,e=getOwn(k,n);return e||(e=k[n]=new x.Module(t)),e}function l(t,n,e){var i=t.id,o=getOwn(k,i);!hasProp(j,i)||o&&!o.defineEmitComplete?(o=s(t),o.error&&"error"===n?e(o.error):o.on(n,e)):"defined"===n&&e(j[i])}function p(t,n){var e=t.requireModules,i=!1;n?n(t):(each(e,function(n){var e=getOwn(k,n);e&&(e.error=t,e.events.error&&(i=!0,e.emit("error",t)))}),i||req.onError(t))}function d(){globalDefQueue.length&&(each(globalDefQueue,function(t){var n=t[0];"string"==typeof n&&(x.defQueueMap[n]=!0),$.push(t)}),globalDefQueue=[])}function c(t){delete k[t],delete z[t]}function u(t,n,e){var i=t.map.id;t.error?t.emit("error",t.error):(n[i]=!0,each(t.depMaps,function(i,o){var a=i.id,r=getOwn(k,a);!r||t.depMatched[o]||e[a]||(getOwn(n,a)?(t.defineDep(o,j[a]),t.check()):u(r,n,e))}),e[i]=!0)}function m(){var t,n,e=1e3*F.waitSeconds,a=e&&x.startTime+e<(new Date).getTime(),r=[],s=[],l=!1,d=!0;if(!b){if(b=!0,eachProp(z,function(t){var e=t.map,p=e.id;if(t.enabled&&(e.isDefine||s.push(t),!t.error))if(!t.inited&&a)o(p)?(n=!0,l=!0):(r.push(p),i(p));else if(!t.inited&&t.fetched&&e.isDefine&&(l=!0,!e.prefix))return d=!1}),a&&r.length)return t=makeError("timeout","Load timeout for modules: "+r,null,r),t.contextName=x.contextName,p(t);d&&each(s,function(t){u(t,{},{})}),a&&!n||!l||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,m()},50)),b=!1}}function f(t){hasProp(j,t[0])||s(r(t[0],null,!0)).init(t[1],t[2])}function h(t,n,e,i){t.detachEvent&&!isOpera?i&&t.detachEvent(i,n):t.removeEventListener(e,n,!1)}function _(t){var n=t.currentTarget||t.srcElement;return h(n,x.onScriptLoad,"load","onreadystatechange"),h(n,x.onScriptError,"error"),{node:n,id:n&&n.getAttribute("data-requiremodule")}}function v(){var t;for(d();$.length;){if(t=$.shift(),null===t[0])return p(makeError("mismatch","Mismatched anonymous define() module: "+t[t.length-1]));f(t)}x.defQueueMap={}}var b,g,x,y,w,F={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},k={},z={},q={},$=[],j={},U={},C={},T=1,S=1;return y={require:function(t){return t.require?t.require:t.require=x.makeRequire(t.map)},exports:function(t){if(t.usingExports=!0,t.map.isDefine)return t.exports?j[t.map.id]=t.exports:t.exports=j[t.map.id]={}},module:function(t){return t.module?t.module:t.module={id:t.map.id,uri:t.map.url,config:function(){return getOwn(F.config,t.map.id)||{}},exports:t.exports||(t.exports={})}}},g=function(t){this.events=getOwn(q,t.id)||{},this.map=t,this.shim=getOwn(F.shim,t.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},g.prototype={init:function(t,n,e,i){i=i||{},this.inited||(this.factory=n,e?this.on("error",e):this.events.error&&(e=bind(this,function(t){this.emit("error",t)})),this.depMaps=t&&t.slice(0),this.errback=e,this.inited=!0,this.ignore=i.ignore,i.enabled||this.enabled?this.enable():this.check())},defineDep:function(t,n){this.depMatched[t]||(this.depMatched[t]=!0,this.depCount-=1,this.depExports[t]=n)},fetch:function(){if(!this.fetched){this.fetched=!0,x.startTime=(new Date).getTime();var t=this.map;if(!this.shim)return t.prefix?this.callPlugin():this.load();x.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return t.prefix?this.callPlugin():this.load()}))}},load:function(){var t=this.map.url;U[t]||(U[t]=!0,x.load(this.map.id,t))},check:function(){if(this.enabled&&!this.enabling){var t,n,e=this.map.id,i=this.depExports,o=this.exports,a=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(a)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{o=x.execCb(e,a,i,o)}catch(n){t=n}else o=x.execCb(e,a,i,o);if(this.map.isDefine&&void 0===o&&(n=this.module,n?o=n.exports:this.usingExports&&(o=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",p(this.error=t)}else o=a;if(this.exports=o,this.map.isDefine&&!this.ignore&&(j[e]=o,req.onResourceLoad)){var r=[];each(this.depMaps,function(t){r.push(t.normalizedMap||t)}),req.onResourceLoad(x,this.map,r)}c(e),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(x.defQueueMap,e)||this.fetch()}},callPlugin:function(){var t=this.map,n=t.id,i=r(t.prefix);this.depMaps.push(i),l(i,"defined",bind(this,function(i){var o,a,d,u=getOwn(C,this.map.id),m=this.map.name,f=this.map.parentMap?this.map.parentMap.name:null,h=x.makeRequire(t.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(i.normalize&&(m=i.normalize(m,function(t){return e(t,f,!0)})||""),a=r(t.prefix+"!"+m,this.map.parentMap,!0),l(a,"defined",bind(this,function(t){this.map.normalizedMap=a,this.init([],function(){return t},null,{enabled:!0,ignore:!0})})),void((d=getOwn(k,a.id))&&(this.depMaps.push(a),this.events.error&&d.on("error",bind(this,function(t){this.emit("error",t)})),d.enable()))):u?(this.map.url=x.nameToUrl(u),void this.load()):(o=bind(this,function(t){this.init([],function(){return t},null,{enabled:!0})}),o.error=bind(this,function(t){this.inited=!0,this.error=t,t.requireModules=[n],eachProp(k,function(t){0===t.map.id.indexOf(n+"_unnormalized")&&c(t.map.id)}),p(t)}),o.fromText=bind(this,function(e,i){var a=t.name,l=r(a),d=useInteractive;i&&(e=i),d&&(useInteractive=!1),s(l),hasProp(F.config,n)&&(F.config[a]=F.config[n]);try{req.exec(e)}catch(t){return p(makeError("fromtexteval","fromText eval for "+n+" failed: "+t,t,[n]))}d&&(useInteractive=!0),this.depMaps.push(l),x.completeLoad(a),h([a],o)}),void i.load(t.name,h,o,F))})),x.enable(i,this),this.pluginMaps[i.id]=i},enable:function(){z[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(t,n){var e,i,o;if("string"==typeof t){if(t=r(t,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[n]=t,o=getOwn(y,t.id))return void(this.depExports[n]=o(this));this.depCount+=1,l(t,"defined",bind(this,function(t){this.undefed||(this.defineDep(n,t),this.check())})),this.errback?l(t,"error",bind(this,this.errback)):this.events.error&&l(t,"error",bind(this,function(t){this.emit("error",t)}))}e=t.id,i=k[e],hasProp(y,e)||!i||i.enabled||x.enable(t,this)})),eachProp(this.pluginMaps,bind(this,function(t){var n=getOwn(k,t.id);n&&!n.enabled&&x.enable(t,this)})),this.enabling=!1,this.check()},on:function(t,n){var e=this.events[t];e||(e=this.events[t]=[]),e.push(n)},emit:function(t,n){each(this.events[t],function(t){t(n)}),"error"===t&&delete this.events[t]}},x={config:F,contextName:t,registry:k,defined:j,urlFetched:U,defQueue:$,defQueueMap:{},Module:g,makeModuleMap:r,nextTick:req.nextTick,onError:p,configure:function(t){if(t.baseUrl&&"/"!==t.baseUrl.charAt(t.baseUrl.length-1)&&(t.baseUrl+="/"),"string"==typeof t.urlArgs){var n=t.urlArgs;t.urlArgs=function(t,e){return(-1===e.indexOf("?")?"?":"&")+n}}var e=F.shim,i={paths:!0,bundles:!0,config:!0,map:!0};eachProp(t,function(t,n){i[n]?(F[n]||(F[n]={}),mixin(F[n],t,!0,!0)):F[n]=t}),t.bundles&&eachProp(t.bundles,function(t,n){each(t,function(t){t!==n&&(C[t]=n)})}),t.shim&&(eachProp(t.shim,function(t,n){isArray(t)&&(t={deps:t}),!t.exports&&!t.init||t.exportsFn||(t.exportsFn=x.makeShimExports(t)),e[n]=t}),F.shim=e),t.packages&&each(t.packages,function(t){var n,e;t="string"==typeof t?{name:t}:t,e=t.name,n=t.location,n&&(F.paths[e]=t.location),F.pkgs[e]=t.name+"/"+(t.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(k,function(t,n){t.inited||t.map.unnormalized||(t.map=r(n,null,!0))}),(t.deps||t.callback)&&x.require(t.deps||[],t.callback)},makeShimExports:function(t){function n(){var n;return t.init&&(n=t.init.apply(global,arguments)),n||t.exports&&getGlobal(t.exports)}return n},makeRequire:function(n,o){function a(e,i,l){var d,c,u;return o.enableBuildCallback&&i&&isFunction(i)&&(i.__requireJsBuild=!0),"string"==typeof e?isFunction(i)?p(makeError("requireargs","Invalid require call"),l):n&&hasProp(y,e)?y[e](k[n.id]):req.get?req.get(x,e,n,a):(c=r(e,n,!1,!0),d=c.id,hasProp(j,d)?j[d]:p(makeError("notloaded",'Module name "'+d+'" has not been loaded yet for context: '+t+(n?"":". Use require([])")))):(v(),x.nextTick(function(){v(),u=s(r(null,n)),u.skipMap=o.skipMap,u.init(e,i,l,{enabled:!0}),m()}),a)}return o=o||{},mixin(a,{isBrowser:isBrowser,toUrl:function(t){var i,o=t.lastIndexOf("."),a=t.split("/")[0],r="."===a||".."===a;return-1!==o&&(!r||o>1)&&(i=t.substring(o,t.length),t=t.substring(0,o)),x.nameToUrl(e(t,n&&n.id,!0),i,!0)},defined:function(t){return hasProp(j,r(t,n,!1,!0).id)},specified:function(t){return t=r(t,n,!1,!0).id,hasProp(j,t)||hasProp(k,t)}}),n||(a.undef=function(t){d();var e=r(t,n,!0),o=getOwn(k,t);o.undefed=!0,i(t),delete j[t],delete U[e.url],delete q[t],eachReverse($,function(n,e){n[0]===t&&$.splice(e,1)}),delete x.defQueueMap[t],o&&(o.events.defined&&(q[t]=o.events),c(t))}),a},enable:function(t){getOwn(k,t.id)&&s(t).enable()},completeLoad:function(t){var n,e,i,a=getOwn(F.shim,t)||{},r=a.exports;for(d();$.length;){if(e=$.shift(),null===e[0]){if(e[0]=t,n)break;n=!0}else e[0]===t&&(n=!0);f(e)}if(x.defQueueMap={},i=getOwn(k,t),!n&&!hasProp(j,t)&&i&&!i.inited){if(!(!F.enforceDefine||r&&getGlobal(r)))return o(t)?void 0:p(makeError("nodefine","No define call for "+t,null,[t]));f([t,a.deps||[],a.exportsFn])}m()},nameToUrl:function(t,n,e){var i,o,a,r,s,l,p,d=getOwn(F.pkgs,t);if(d&&(t=d),p=getOwn(C,t))return x.nameToUrl(p,n,e);if(req.jsExtRegExp.test(t))s=t+(n||"");else{for(i=F.paths,o=t.split("/"),a=o.length;a>0;a-=1)if(r=o.slice(0,a).join("/"),l=getOwn(i,r)){isArray(l)&&(l=l[0]),o.splice(0,a,l);break}s=o.join("/"),s+=n||(/^data\:|^blob\:|\?/.test(s)||e?"":".js"),s=("/"===s.charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":F.baseUrl)+s}return F.urlArgs&&!/^blob\:/.test(s)?s+F.urlArgs(t,s):s},load:function(t,n){req.load(x,t,n)},execCb:function(t,n,e,i){return n.apply(i,e)},onScriptLoad:function(t){if("load"===t.type||readyRegExp.test((t.currentTarget||t.srcElement).readyState)){interactiveScript=null;var n=_(t);x.completeLoad(n.id)}},onScriptError:function(t){var n=_(t);if(!o(n.id)){var e=[];return eachProp(k,function(t,i){0!==i.indexOf("_@r")&&each(t.depMaps,function(t){if(t.id===n.id)return e.push(i),!0})}),p(makeError("scripterror",'Script error for "'+n.id+(e.length?'", needed by: '+e.join(", "):'"'),t,[n.id]))}}},x.require=x.makeRequire(),x}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(t){if("interactive"===t.readyState)return interactiveScript=t}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.3",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(t,n,e,i){var o,a,r=defContextName;return isArray(t)||"string"==typeof t||(a=t,isArray(n)?(t=n,n=e,e=i):t=[]),a&&a.context&&(r=a.context),o=getOwn(contexts,r),o||(o=contexts[r]=req.s.newContext(r)),a&&o.configure(a),o.require(t,n,e)},req.config=function(t){return req(t)},req.nextTick=void 0!==setTimeout?function(t){setTimeout(t,4)}:function(t){t()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(t){req[t]=function(){var n=contexts[defContextName];return n.require[t].apply(n,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],(baseElement=document.getElementsByTagName("base")[0])&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(t,n,e){var i=t.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return i.type=t.scriptType||"text/javascript",i.charset="utf-8",i.async=!0,i},req.load=function(t,n,e){var i,o=t&&t.config||{};if(isBrowser)return i=req.createNode(o,n,e),i.setAttribute("data-requirecontext",t.contextName),i.setAttribute("data-requiremodule",n),!i.attachEvent||i.attachEvent.toString&&i.attachEvent.toString().indexOf("[native code")<0||isOpera?(i.addEventListener("load",t.onScriptLoad,!1),i.addEventListener("error",t.onScriptError,!1)):(useInteractive=!0,i.attachEvent("onreadystatechange",t.onScriptLoad)),i.src=e,o.onNodeCreated&&o.onNodeCreated(i,o,n,e),currentlyAddingScript=i,baseElement?head.insertBefore(i,baseElement):head.appendChild(i),currentlyAddingScript=null,i;if(isWebWorker)try{setTimeout(function(){},0),importScripts(e),t.completeLoad(n)}catch(i){t.onError(makeError("importscripts","importScripts failed for "+n+" at "+e,i,[n]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(t){if(head||(head=t.parentNode),dataMain=t.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(t,n,e){var i,o;"string"!=typeof t&&(e=n,n=t,t=null),isArray(n)||(e=n,n=null),!n&&isFunction(e)&&(n=[],e.length&&(e.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(t,e){n.push(e)}),n=(1===e.length?["require"]:["require","exports","module"]).concat(n))),useInteractive&&(i=currentlyAddingScript||getInteractiveScript())&&(t||(t=i.getAttribute("data-requiremodule")),o=contexts[i.getAttribute("data-requirecontext")]),o?(o.defQueue.push([t,n,e]),o.defQueueMap[t]=!0):globalDefQueue.push([t,n,e])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),formintorjs.requirejs=requirejs,formintorjs.require=require,formintorjs.define=define}}(),formintorjs.define("requireLib",function(){}),formintorjs.define("text",["module"],function(t){"use strict";var n,e,i=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],o=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,r="undefined"!=typeof location&&location.href,s=r&&location.protocol&&location.protocol.replace(/\:/,""),l=r&&location.hostname,p=r&&(location.port||void 0),d=[],c=t.config&&t.config()||{};return n={version:"2.0.3",strip:function(t){if(t){t=t.replace(o,"");var n=t.match(a);n&&(t=n[1])}else t="";return t},jsEscape:function(t){return t.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:c.createXhr||function(){var t,n,e;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(n=0;n<3;n+=1){e=i[n];try{t=new ActiveXObject(e)}catch(t){}if(t){i=[e];break}}return t},parseName:function(t){var n=!1,e=t.indexOf("."),i=t.substring(0,e),o=t.substring(e+1,t.length);return e=o.indexOf("!"),-1!==e&&(n=o.substring(e+1,o.length),n="strip"===n,o=o.substring(0,e)),{moduleName:i,ext:o,strip:n}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(t,e,i,o){var a,r,s,l=n.xdRegExp.exec(t);return!l||(a=l[2],r=l[3],r=r.split(":"),s=r[1],r=r[0],!(a&&a!==e||r&&r.toLowerCase()!==i.toLowerCase()||(s||r)&&s!==o))},finishLoad:function(t,e,i,o){i=e?n.strip(i):i,c.isBuild&&(d[t]=i),o(i)},load:function(t,e,i,o){if(o.isBuild&&!o.inlineText)return void i();c.isBuild=o.isBuild;var a=n.parseName(t),d=a.moduleName+"."+a.ext,u=e.toUrl(d),m=c.useXhr||n.useXhr;!r||m(u,s,l,p)?n.get(u,function(e){n.finishLoad(t,a.strip,e,i)},function(t){i.error&&i.error(t)}):e([d],function(t){n.finishLoad(a.moduleName+"."+a.ext,a.strip,t,i)})},write:function(t,e,i,o){if(d.hasOwnProperty(e)){var a=n.jsEscape(d[e]);i.asModule(t+"!"+e,"define(function () { return '"+a+"';});\n")}},writeFile:function(t,e,i,o,a){var r=n.parseName(e),s=r.moduleName+"."+r.ext,l=i.toUrl(r.moduleName+"."+r.ext)+".js";n.load(s,i,function(e){var i=function(t){return o(l,t)};i.asModule=function(t,n){return o.asModule(t,l,n)},n.write(t,s,i,a)},a)}},"node"===c.env||!c.env&&"undefined"!=typeof process&&process.versions&&process.versions.node?(e=require.nodeRequire("fs"),n.get=function(t,n){var i=e.readFileSync(t,"utf8");0===i.indexOf("\ufeff")&&(i=i.substring(1)),n(i)}):"xhr"===c.env||!c.env&&n.createXhr()?n.get=function(t,e,i){var o=n.createXhr();o.open("GET",t,!0),c.onXhr&&c.onXhr(o,t),o.onreadystatechange=function(n){var a,r;4===o.readyState&&(a=o.status,a>399&&a<600?(r=new Error(t+" HTTP status: "+a),r.xhr=o,i(r)):e(o.responseText))},o.send(null)}:("rhino"===c.env||!c.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java)&&(n.get=function(t,n){var e,i,o=new java.io.File(t),a=java.lang.System.getProperty("line.separator"),r=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),"utf-8")),s="";try{for(e=new java.lang.StringBuffer,i=r.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),e.append(i);null!==(i=r.readLine());)e.append(a),e.append(i);s=String(e.toString())}finally{r.close()}n(s)}),n}),formintorjs.define("text!admin/templates/popups.html",[],function(){return'<div>\r\n\r\n\t\x3c!-- Base Structure --\x3e\r\n\t<script type="text/template" id="popup-tpl">\r\n\r\n\t\t<div class="sui-modal">\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="dialog"\r\n\t\t\t\tid="forminator-popup"\r\n\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\taria-modal="true"\r\n\t\t\t\taria-labelledby="forminator-popup__title"\r\n\t\t\t\taria-describedby="forminator-popup__description"\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-box"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- Modal Header: Center-aligned title with floating close button --\x3e\r\n\t<script type="text/template" id="popup-header-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close" data-modal-close>\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg">{{ title }}</h3>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- Modal Header: Inline title and close button --\x3e\r\n\t<script type="text/template" id="popup-header-inline-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title">{{ title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button-icon forminator-popup-close" data-modal-close>\r\n\t\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-tpl">\r\n\r\n\t\t<div class="sui-modal sui-modal-sm">\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="dialog"\r\n\t\t\t\tid="forminator-integration-popup"\r\n\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\taria-modal="true"\r\n\t\t\t\taria-labelledby="forminator-integration-popup__title"\r\n\t\t\t\taria-describedby="forminator-integration-popup__description"\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-box"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<figure class="sui-box-logo" aria-hidden="true">\r\n\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc="{{ image }}"\r\n\t\t\t\t\tsrcset="{{ image }} 1x, {{ image_x2 }} 2x"\r\n\t\t\t\t\talt="{{ title }}"\r\n\t\t\t\t/>\r\n\r\n\t\t\t</figure>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--left forminator-addon-back" style="display: none;">\r\n\t\t\t\t<span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Back</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-integration-close" data-modal-close>\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<div class="forminator-integration-popup__header"></div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="forminator-integration-popup__body sui-box-body"></div>\r\n\r\n\t\t<div class="forminator-integration-popup__footer sui-box-footer sui-flatten sui-content-separated"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-loader-tpl">\r\n\r\n\t\t<p style="margin: 0; text-align: center;" aria-hidden="true"><span class="sui-icon-loader sui-md sui-loading"></span></p>\r\n\t\t<p class="sui-screen-reader-text">Loading content...</p>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-tpl">\r\n\r\n\t\t<div class="sui-modal sui-modal-md">\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="dialog"\r\n\t\t\t\tid="forminator-stripe-popup"\r\n\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\taria-modal="true"\r\n\t\t\t\taria-labelledby="forminator-stripe-popup__title"\r\n\t\t\t\taria-describedby=""\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-box"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<figure class="sui-box-logo" aria-hidden="true">\r\n\t\t\t\t<img src="{{ image }}" srcset="{{ image }} 1x, {{ image_x2 }} 2x" alt="{{ title }}" />\r\n\t\t\t</figure>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close">\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-stripe-popup__title" class="sui-box-title sui-lg" style="overflow: initial; display: none; white-space: normal; text-overflow: initial;">{{ title }}</h3>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--10"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-slide-tpl">\r\n\t\t<div class="sui-modal sui-modal-lg">\r\n\t\t\t<div\r\n\t\t\t\t\trole="dialog"\r\n\t\t\t\t\tid="forminator-popup"\r\n\t\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\t\taria-modal="true"\r\n\t\t\t\t\taria-labelledby="forminator-slide-popup__title"\r\n\t\t\t\t\taria-describedby="forminator-slide-popup__description"\r\n\t\t\t>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n</div>\r\n'}),function(t){window.empty=function(t){return void 0===t||!t},window.count=function(t){return void 0===t?0:t&&t.length?t.length:0},window.stripslashes=function(t){return(t+"").replace(/\\(.?)/g,function(t,n){switch(n){case"\\":return"\\";case"0":return"\0";case"":return"";default:return n}})},window.forminator_array_value_exists=function(t,n){return!_.isUndefined(t[n])&&!_.isEmpty(t[n])},window.decodeHtmlEntity=function(t){return void 0===t?t:t.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(n)})},window.encodeHtmlEntity=function(t){if(void 0===t)return t;for(var n=[],e=t.length-1;e>=0;e--)n.unshift(["&#",t[e].charCodeAt(),";"].join(""));return n.join("")},window.singularPluralText=function(t,n,e){var i="";return i=t<2?n:e,t+" "+i},window.isTrue=function(t){if(void 0===t)return!1;switch("string"==typeof t&&(t=t.trim().toLowerCase()),t){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;default:return!1}},formintorjs.define("admin/utils",["text!admin/templates/popups.html"],function(n){var e={fields_ids:[],google_font_families:[],is_touch:function(){return Forminator.Data.is_touch},is_mobile_size:function(){return window.screen.width<=782},is_mobile:function(){return!(!Forminator.Utils.is_touch()&&!Forminator.Utils.is_mobile_size())},template:function(t){return _.templateSettings={evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g},_.template(t)},template_php:function(t){var n=_.templateSettings,e=!1;return _.templateSettings={interpolate:/<\?php echo (.+?) \?>/g,evaluate:/<\?php (.+?) \?>/g},e=_.template(t),_.templateSettings=n,function(t){return _.each(t,function(n,e){t["$"+e]=n}),e(t)}},ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},get_slug:function(t){return t=t.replace(" ","-"),t=t.replace(/[^-a-zA-Z0-9]/,"")},sanitize_uri_string:function(t){var n=decodeURIComponent(t);return n=n.replace(/-/g," ")},sanitize_text_field:function(t){if(!_.isUndefined(t)){return String(t).replace(/[&\/\\#^+()$~%.'":*?<>{}!@]/g,"").trim()}return t},get_url_param:function(t){for(var n=window.location.search.substring(1),e=n.split("&"),i=0;i<e.length;i++){var o=e[i].split("=");if(o[0]===t)return o[1]}return!1},is_email_wp:function(t){if(t.length<6)return!1;if(t.indexOf("@",1)<0)return!1;var n=t.split("@",2);if(!n[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(n[1].match(/\.{2,}/))return!1;var e=n[1],i=e.split(".");if(i.length<2)return!1;for(var o=i.length,a=0;a<o;a++)if(!i[a].match(/^[a-z0-9-]+$/i))return!1;return!0},forminator_select2_tags:function(n,e){n.find("select.sui-select.fui-multi-select").each(function(){var n=t(this),i=n.closest(".sui-modal-content"),o=i.attr("id"),a=t(i.length?"#"+o:"SUI_BODY_CLASS"),r="true"===n.attr("data-search")?0:-1,s=n.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";e=_.defaults(e,{dropdownParent:a,minimumResultsForSearch:r,dropdownCssClass:s}),n.attr("data-reorder")&&n.on("select2:select",function(e){var i=e.params.data.element,o=t(i),a=n;a.append(o),a.trigger("change.select2")}),n.SUIselect2(e)})},forminator_select2_custom:function(n,e){n.find("select.sui-select.custom-select2").each(function(){var n=t(this),i=n.closest(".sui-modal-content"),o=i.attr("id"),a=t(i.length?"#"+o:"body"),r="true"===n.attr("data-search")?0:-1,s=n.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";e=_.defaults(e,{dropdownParent:a,minimumResultsForSearch:r,dropdownCssClass:s}),n.attr("data-reorder")&&n.on("select2:select",function(n){var e=n.params.data.element,i=t(e),o=t(this);o.append(i),o.trigger("change.select2")}),n.SUIselect2(e)})},init_select2:function(){window.SUI},load_google_fonts:function(n){var e=this;t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_google_fonts",_wpnonce:Forminator.Data.gFontNonce}}).done(function(t){!0===t.success&&(e.google_font_families=t.data),n.apply(t,[e.google_font_families])})},sui_delegate_events:function(){"object"==typeof window.SUI&&setTimeout(function(){SUI.suiAccordion(t(".sui-accordion")),SUI.suiTabs(t(".sui-tabs")),t('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(t(this))}),t('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(t(this))}),t('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(t(this))}),t("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(t(this))}),t("select.sui-variables").each(function(){SUI.select.initVars(t(this))}),SUI.loadCircleScore(t(".sui-circle-score")),SUI.showHidePassword()},50)}},i={$popup:{},_deferred:{},initialize:function(){var e=Forminator.Utils.template(t(n).find("#popup-tpl").html());t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(e({})),this.$popup=t("#forminator-popup"),this.$popupId="forminator-popup",this.$focusAfterClosed="wpbody-content"},open:function(e,i,o,a){this.data=i,this.title="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0;var r="";switch(a){case"inline":r=Forminator.Utils.template(t(n).find("#popup-header-inline-tpl").html())
;break;case"center":r=Forminator.Utils.template(t(n).find("#popup-header-tpl").html())}_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=Forminator.Utils.sanitize_text_field(this.data.title)),_.isUndefined(this.data.has_footer)||(this.has_footer=this.data.has_footer),_.isUndefined(this.data.action_callback)||_.isUndefined(this.data.action_text)||(this.action_callback=this.data.action_callback,this.action_text=this.data.action_text,_.isUndefined(this.data.action_css_class)||(this.action_css_class=this.data.action_css_class)),_.isUndefined(this.data.has_custom_box)||(this.has_custom_box=this.data.has_custom_box)),this.initialize(),""!==r&&this.$popup.find(".sui-box").html(r({title:this.title}));var s=this,l=function(){return s.close(),!1};if(o&&this.$popup.closest(".sui-modal").addClass("sui-modal-"+o),this.has_custom_box)e.apply(this.$popup.find(".sui-box").get(),i);else{var p='<div class="sui-box-body"></div>';this.has_footer&&(p+='<div class="sui-box-footer"><button class="sui-button forminator-popup-cancel">'+Forminator.l10n.popup.cancel+"</button></div>"),this.$popup.find(".sui-box").append(p),e.apply(this.$popup.find(".sui-box-body").get(),i)}if(this.action_text&&this.action_callback){var d=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){d&&d.apply(),s.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".forminator-popup-close").on("click",l),this.$popup.find(".forminator-popup-cancel").on("click",l),this.$popup.on("click",".forminator-popup-cancel",l),SUI.openModal(this.$popupId,this.$focusAfterClosed,void 0,!0,!0),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,n){var e=this;SUI.closeModal(),setTimeout(function(){e.$popup.closest(".sui-modal").removeClass("sui-modal-sm").removeClass("sui-modal-md").removeClass("sui-modal-lg").removeClass("sui-modal-xl"),n&&n.apply()},300),this._deferred.resolve(this.$popup,t)}},o={$notification:{},_deferred:{},initialize:function(){t(".sui-floating-notices").length?(t(".sui-floating-notices").remove(),this.initialize()):t("main.sui-wrap").prepend('<div class="sui-floating-notices"><div role="alert" id="forminator-floating-notification" class="sui-notice" aria-live="assertive"></div></div>'),this.$notification=t("#forminator-floating-notification")},open:function(n,e,i){var o=this;return _.isUndefined(i)||5e3,this.uniq="forminator-floating-notification",this.text="<p>"+e+"</p>",this.type="",this.time=i||5e3,_.isUndefined(n)||""===n||(this.type=n),_.isUndefined(i)||(this.time=i),this.opts={type:this.type,autoclose:{show:!0,timeout:this.time}},this.initialize(),SUI.openNotice(this.uniq,this.text,this.opts),setTimeout(function(){o.close()},3e3),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t){this._deferred.resolve(this.$popup,t)}};return{Utils:e,Popup:i,Integrations_Popup:{$popup:{},_deferred:{},initialize:function(){var e=Forminator.Utils.template(t(n).find("#popup-integration-tpl").html());t("#forminator-integration-popup").length?(t("#forminator-integration-popup").remove(),this.initialize()):t("main.sui-wrap").append(e({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-integration-popup"),this.$popupId="forminator-integration-popup",this.$focusAfterClosed="forminator-integrations-page"},open:function(e,i,o){this.data=i,this.title="",this.image="",this.image_x2="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.image)||(this.image=this.data.image),_.isUndefined(this.data.image_x2)||(this.image_x2=this.data.image_x2)),this.initialize();var a=Forminator.Utils.template(t(n).find("#popup-integration-content-tpl").html());this.$popup.find(".sui-box").html(a({image:this.image,image_x2:this.image_x2,title:this.title}));var r=this,s=function(){return r.close(),!1};if(o&&this.$popup.addClass(o),e.apply(this.$popup.get(),i),this.action_text&&this.action_callback){var l=this.action_callback;this.$popup.find(".sui-box-footer").append('<button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button>"),this.$popup.find(".forminator-popup-action").on("click",function(){l&&l.apply(),r.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".sui-dialog-close").on("click",s),this.$popup.on("click",".forminator-popup-cancel",s),SUI.openModal(this.$popupId,this.$focusAfterClosed),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,n){Forminator.Events.trigger("forminator:addons:reload"),SUI.closeModal(),setTimeout(function(){n&&n.apply()},300),this._deferred.resolve(this.$popup,t)}},Stripe_Popup:{$popup:{},_deferred:{},initialize:function(){var e=Forminator.Utils.template(t(n).find("#popup-stripe-tpl").html());t("#forminator-stripe-popup").length?(t("#forminator-stripe-popup").remove(),this.initialize()):t("main.sui-wrap").append(e({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-stripe-popup"),this.$popupId="forminator-stripe-popup",this.$focusAfterClosed="wpbody-content"},open:function(e,i){this.data=i,this.title="",this.image="",this.image_x2="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0,_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.image)||(this.image=this.data.image),_.isUndefined(this.data.image_x2)||(this.image_x2=this.data.image_x2)),this.initialize();var o=Forminator.Utils.template(t(n).find("#popup-stripe-content-tpl").html());this.$popup.find(".sui-box").html(o({image:this.image,image_x2:this.image_x2,title:this.title})),this.$popup.find(".sui-box-footer").css({"padding-top":"0"});var a=this,r=function(){return a.close(),!1};if(e.apply(this.$popup.get(),i),this.action_text&&this.action_callback){var s=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){s&&s.apply(),a.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".forminator-popup-close").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),SUI.openModal(this.$popupId,this.$focusAfterClosed,void 0,!0,!0),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,n){SUI.closeModal();var e=this;setTimeout(function(){e.$popup.closest(".sui-modal").removeClass("sui-modal-sm").removeClass("sui-modal-md").removeClass("sui-modal-lg").removeClass("sui-modal-xl"),n&&n.apply()},300),this._deferred.resolve(this.$popup,t)}},Notification:o,Slide_Popup:{$popup:{},_deferred:{},initialize:function(){var e=Forminator.Utils.template(t(n).find("#popup-slide-tpl").html());t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(e({})),this.$popup=t("#forminator-popup"),this.$popupId="forminator-popup",this.$focusAfterClosed="wpbody-content"},open:function(e,i,o,a){this.data=i,this.title="",this.action_text="",this.action_callback=!1,this.action_css_class="",this.has_custom_box=!1,this.has_footer=!0;var r="";switch(a){case"inline":r=Forminator.Utils.template(t(n).find("#popup-header-inline-tpl").html());break;case"center":r=Forminator.Utils.template(t(n).find("#popup-header-tpl").html())}_.isUndefined(this.data)||(_.isUndefined(this.data.title)||(this.title=this.data.title),_.isUndefined(this.data.has_footer)||(this.has_footer=this.data.has_footer),_.isUndefined(this.data.action_callback)||_.isUndefined(this.data.action_text)||(this.action_callback=this.data.action_callback,this.action_text=this.data.action_text,_.isUndefined(this.data.action_css_class)||(this.action_css_class=this.data.action_css_class)),_.isUndefined(this.data.has_custom_box)||(this.has_custom_box=this.data.has_custom_box)),this.initialize(),""!==r&&this.$popup.html(r({title:this.title}));var s=this,l=function(){return s.close(),!1};if(o&&this.$popup.closest(".sui-modal").addClass("sui-modal-"+o),this.has_custom_box)e.apply(this.$popup.get(),i);else{var p='<div class="sui-box-body"></div>';this.has_footer&&(p+='<div class="sui-box-footer"><button class="sui-button forminator-popup-cancel">'+Forminator.l10n.popup.cancel+"</button></div>"),this.$popup.append(p),e.apply(this.$popup.find(".sui-box-body").get(),i)}if(this.action_text&&this.action_callback){var d=this.action_callback;this.$popup.find(".sui-box-footer").append('<div class="sui-actions-right"><button class="forminator-popup-action sui-button '+this.action_css_class+'">'+this.action_text+"</button></div>"),this.$popup.find(".forminator-popup-action").on("click",function(){d&&d.apply(),s.close()})}else this.$popup.find(".forminator-popup-action").remove();return this.$popup.find(".forminator-popup-close").on("click",l),this.$popup.find(".forminator-popup-cancel").on("click",l),this.$popup.on("click",".forminator-popup-cancel",l),SUI.openModal(this.$popupId,this.$focusAfterClosed,void 0,!0,!0),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,n){var e=this;SUI.closeModal(),setTimeout(function(){e.$popup.closest(".sui-modal").removeClass("sui-modal-sm").removeClass("sui-modal-md").removeClass("sui-modal-lg").removeClass("sui-modal-xl"),n&&n.apply()},300),this._deferred.resolve(this.$popup,t)}}}})}(jQuery),function(t){formintorjs.define("admin/dashboard",[],function(n){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var n=Forminator.Utils.get_url_param("notification"),e=Forminator.Utils.get_url_param("title"),i=Forminator.Utils.get_url_param("createnew");if(setTimeout(function(){t(".forminator-scroll-to").length&&t("html, body").animate({scrollTop:t(".forminator-scroll-to").offset().top-50},"slow")},100),n){var o=_.template("<strong>{{ formName }}</strong> {{ Forminator.l10n.options.been_published }}");Forminator.Notification.open("success",o({formName:Forminator.Utils.sanitize_uri_string(e)}),4e3)}return i&&setTimeout(function(){jQuery(".forminator-create-"+i).click()},200),this.render()},dismiss_welcome:function(n){n.preventDefault();var e=t(n.target).closest(".sui-box"),i=t(n.target).data("nonce");e.slideToggle(300,function(){t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_dismiss_welcome",_ajax_nonce:i},complete:function(t){e.remove()}})})},render:function(){t("#forminator-new-feature").length>0&&setTimeout(function(){SUI.openModal("forminator-new-feature","wpbody-content")},300)}}))})}(jQuery),function(t){formintorjs.define("admin/settings-page",[],function(){var n=Backbone.View.extend({el:".wpmudev-forminator-forminator-settings, .wpmudev-forminator-forminator-addons",events:{"click .sui-side-tabs label.sui-tab-item input":"sidetabs","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select","click .stripe-connect-modal":"open_stripe_connect_modal","click .paypal-connect-modal":"open_paypal_connect_modal","click .forminator-stripe-connect":"connect_stripe","click .disconnect_stripe":"disconnect_stripe","click .forminator-connect-addon":"connect_addon","click .forminator-paypal-connect":"connect_paypal","click .disconnect_paypal":"disconnect_paypal","click button.sui-tab-item":"buttonTabs","click .forminator-toggle-unsupported-settings":"show_unsupported_settings","click .forminator-dismiss-unsupported":"hide_unsupported_settings","click button.addons-configure":"open_configure_connect_modal"},initialize:function(){var n=this;if(t(".wpmudev-forminator-forminator-settings").length||t(".wpmudev-forminator-forminator-addons").length){this.$el.find(".forminator-settings-save").submit(function(e){e.preventDefault();var i=t(this),o=i.find(".wpmudev-action-done").data("nonce"),a=i.find(".wpmudev-action-done").data("action"),r=i.find(".wpmudev-action-done").data("title"),s=i.find(".wpmudev-action-done").data("isReload");n.submitForm(t(this),a,o,r,s)});var e=window.location.hash;_.isUndefined(e)||_.isEmpty(e)||this.sidenav_go_to(e.substring(1),!0),this.renderHcaptcha(),this.render("v2"),this.render("v2-invisible"),this.render("v3"),this.captchaTab()}},captchaTab:function(){var n=this.$el.find('input[name="captcha_tab_saved"]');this.$el.find("button.captcha-main-tab").on("click",function(e){e.preventDefault(),n.val(t(this).data("tab-name"))})},render:function(n){var e=this.$el.find("#"+n+"-recaptcha-preview");e.html('<p class="fui-loading-dialog"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_recaptcha_preview",_ajax_nonce:forminatorData.loadCaptcha,captcha:n}}).done(function(t){t.success&&e.html(t.data)})},renderHcaptcha:function(){var n=this.$el.find("#hcaptcha-preview");n.html('<p class="fui-loading-dialog"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_load_hcaptcha_preview",_ajax_nonce:forminatorData.loadCaptcha}}).done(function(t){t.success&&n.html(t.data)})},submitForm:function(n,e,i,o,a){var r={},s=this;r.action="forminator_save_"+e+"_popup",r._ajax_nonce=i;var l=n.serialize()+"&"+t.param(r);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:l,beforeSend:function(){n.find(".sui-button").prop("disabled",!0),n.find(".wpmudev-action-done").addClass("sui-button-onload")},success:function(i){var r=_.template("<strong>{{ tab }}</strong> {{ Forminator.l10n.commons.update_successfully }}"),l="success",p=r({tab:Forminator.Utils.sanitize_text_field(o)});if(i.success||(l="error",p=i.data),_.isUndefined(p)||Forminator.Notification.open(l,p,4e3),"captcha"===e)$captcha_tab_saved=n.find('input[name="captcha_tab_saved"]').val(),$captcha_tab_saved=""===$captcha_tab_saved?"recaptcha":$captcha_tab_saved,"recaptcha"===$captcha_tab_saved?(s.render("v2"),s.render("v2-invisible"),s.render("v3")):"hcaptcha"===$captcha_tab_saved&&s.renderHcaptcha();else if("geolocation_settings"===e){var d=!i.success,c=t("#forminator-settings--place-ip").parent();d?c.addClass("sui-form-field-error").find(".sui-error-message").removeClass("sui-hidden"):c.removeClass("sui-form-field-error").find(".sui-error-message").addClass("sui-hidden")}a&&window.location.reload()},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.update_unsuccessfull,4e3)}}).always(function(){n.find(".sui-button").prop("disabled",!1),n.find(".wpmudev-action-done").removeClass("sui-button-onload")})},sidetabs:function(t){var n=this.$(t.target),e=n.parent("label"),i=n.data("tab-menu"),o=n.closest(".sui-side-tabs"),a=o.find(".sui-tabs-menu .sui-tab-item"),r=a.find("input");n.is("input")&&(a.removeClass("active"),r.removeAttr("checked"),o.find(".sui-tabs-content > div").removeClass("active"),e.addClass("active"),n.prop("checked","checked"),o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').length&&o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').addClass("active"))},sidenav:function(n){var e=t(n.target).data("nav");e&&this.sidenav_go_to(e,!0),n.preventDefault()},sidenav_select:function(n){var e=t(n.target).val();e&&this.sidenav_go_to(e,!0),n.preventDefault()},sidenav_go_to:function(t,n){var e=this.$el.find('a[data-nav="'+t+'"]'),i=e.closest(".sui-vertical-tabs"),o=i.find(".sui-vertical-tab"),a=this.$el.find(".sui-box[data-nav]"),r=this.$el.find('.sui-box[data-nav="'+t+'"]');n&&history.pushState({selected_tab:t},"Global Settings","admin.php?page=forminator-settings&section="+t),o.removeClass("current"),a.hide(),e.parent().addClass("current"),r.show()},open_configure_connect_modal:function(n){var e=t(n.target),i=e.data("slug"),o=e.data("action");"stripe-connect-modal"===o?this.open_stripe_connect_modal(n):"paypal-connect-modal"===o?this.open_paypal_connect_modal(n):i&&this.open_connect_modal(n,i)},open_stripe_connect_modal:function(n){n.preventDefault();var e=this,i=t(n.target),o=i.data("modalImage"),a=i.data("modalImageX2"),r=i.data("modalTitle"),s=i.data("modalNonce"),l={title:Forminator.Utils.sanitize_text_field(r),image:o,image_x2:a};return Forminator.Stripe_Popup.open(function(){var n=t(this);e.render_stripe_connect_modal_content(n,s,{})},l),!1},render_stripe_connect_modal_content:function(n,e,i){var o=this;i.action="forminator_stripe_settings_modal",i._ajax_nonce=e;n.find(".sui-box-body").html('<p class="fui-loading-modal"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).done(function(t){if(t&&t.success){n.find(".sui-box-header h3.sui-box-title").show(),n.find(".sui-box-body").html(t.data.html);var i=t.data.buttons;n.find(".sui-box-footer").html(""),_.each(i,function(t){n.find(".sui-box-footer").append(t.markup)}),n.find(".sui-button").removeClass("sui-button-onload"),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||(Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){}),o.update_stripe_page(e))}})},update_stripe_page:function(n){var e={action:"forminator_stripe_update_page",_ajax_nonce:n};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:e}).done(function(t){jQuery("#sui-box-stripe").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},show_unsupported_settings:function(n){n.preventDefault(),t(".forminator-unsupported-settings").show()},hide_unsupported_settings:function(n){n.preventDefault(),t(".forminator-unsupported-settings").hide()},connect_stripe:function(n){n.preventDefault();var e=t(n.target);e.addClass("sui-button-onload");var i=e.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),a=o.find("form"),r=a.serializeArray(),s={};return t.map(r,function(t,n){s[t.name]=t.value}),s.connect=!0,this.render_stripe_connect_modal_content(o,i,s),!1},connect_addon:function(n){n.preventDefault();var e=t(n.target);e.addClass("sui-button-onload");var i=e.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),a=o.find("form"),r=a.data("slug"),s=a.serializeArray(),l={};return t.map(s,function(t,n){l[t.name]=t.value}),l.connect=!0,this.render_connect_modal_content(r,o,i,l),!1},buttonTabs:function(t){var n=this.$(t.target),e=n.closest(".sui-tabs"),i=e.find(".sui-tabs-menu .sui-tab-item"),o=e.find(".sui-tabs-content .sui-tab-content");n.is("button")&&(i.removeClass("active"),i.attr("tabindex","-1"),o.attr("hidden",!0),o.removeClass("active"),n.removeAttr("tabindex"),n.addClass("active"),e.find("#"+n.attr("aria-controls")).addClass("active"),e.find("#"+n.attr("aria-controls")).attr("hidden",!1),e.find("#"+n.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},open_connect_modal:function(n,e){n.preventDefault();var i=this,o=t(n.target),a=o.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var n=t(this);i.render_connect_modal_content(e,n,a,{})},{title:forminatorl10n[e].configure_title,image:forminatorData.imagesUrl+"/"+e+"-logo.png",image_x2:forminatorData.imagesUrl+"/"+e+"-logo@2x.png"}),!1},render_connect_modal_content:function(n,e,i,o){var a=this;o.action="forminator_"+n+"_settings_modal",o._ajax_nonce=i;e.find(".sui-box-body").html('<p class="fui-loading-modal"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),t.post({url:Forminator.Data.ajaxUrl,type:"post",data:o}).done(function(t){if(t&&t.success){e.find(".sui-box-header h3.sui-box-title").show(),e.find(".sui-box-body").html(t.data.html);var n=t.data.buttons;e.find(".sui-box-footer").html(""),_.each(n,function(t){e.find(".sui-box-footer").append(t.markup)}),e.find(".sui-button").removeClass("sui-button-onload"),t.data.notification&&(a.openNotificaion(t.data.notification),a.closePopup())}else Forminator.Notification.open("error",t.data),a.closePopup()})},closePopup:function(){Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()},openNotificaion:function(t){_.isUndefined(t)||_.isUndefined(t.type)||_.isUndefined(t.text)||_.isUndefined(t.duration)||Forminator.Notification.open(t.type,t.text,t.duration).done(function(){})},open_paypal_connect_modal:function(n){n.preventDefault();var e=this,i=t(n.target),o=i.data("modalImage"),a=i.data("modalImageX2"),r=i.data("modalTitle"),s=i.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var n=t(this);e.render_paypal_connect_modal_content(n,s,{})},{title:Forminator.Utils.sanitize_text_field(r),image:o,image_x2:a}),!1},render_paypal_connect_modal_content:function(n,e,i){var o=this;i.action="forminator_paypal_settings_modal",i._ajax_nonce=e,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).done(function(t){if(t&&t.success){n.find(".sui-box-header h3.sui-box-title").show(),n.find(".sui-box-body").html(t.data.html);var i=t.data.buttons;n.find(".sui-box-footer").html(""),_.each(i,function(t){n.find(".sui-box-footer").append(t.markup)}),n.find(".sui-button").removeClass("sui-button-onload"),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||(Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){}),o.update_paypal_page(e))}})},update_paypal_page:function(n){var e={action:"forminator_paypal_update_page",_ajax_nonce:n};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:e}).done(function(t){jQuery("#sui-box-paypal").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},connect_paypal:function(n){n.preventDefault();var e=t(n.target);e.addClass("sui-button-onload");var i=e.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),a=o.find("form"),r=a.serializeArray(),s={};return t.map(r,function(t,n){s[t.name]=t.value}),s.connect=!0,this.render_paypal_connect_modal_content(o,i,s),!1},disconnect_stripe:function(n){var e=t(n.target),i={action:"forminator_disconnect_stripe",_ajax_nonce:e.data("nonce")};e.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-stripe").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})},disconnect_paypal:function(n){var e=t(n.target),i={action:"forminator_disconnect_paypal",_ajax_nonce:e.data("nonce")};e.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"get",data:i}).done(function(t){jQuery("#sui-box-paypal").html(t.data.html),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})}}),n=new n;return n})}(jQuery);var forminator_render_admin_captcha=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha"),n=t.data("sitekey"),e=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:n,theme:e,size:i})},100)},forminator_render_admin_captcha_v2=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2"),n=t.data("sitekey"),e=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:n,theme:e,size:i})},100)},forminator_render_admin_captcha_v2_invisible=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2-invisible"),n=t.data("sitekey"),e=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:n,theme:e,size:i,badge:"inline"})},100)},forminator_render_admin_captcha_v3=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v3"),n=t.data("sitekey"),e=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:n,theme:e,size:i,badge:"inline"})},100)},forminator_render_admin_hcaptcha=function(){setTimeout(function(){var t=jQuery(".forminator-hcaptcha"),n=t.data("sitekey");hcaptcha.render(t[0],{sitekey:n})},1e3)};formintorjs.define("text!tpl/dashboard.html",[],function(){
return'<div>\r\n\r\n\t\x3c!-- TEMPLATE: Delete --\x3e\r\n\t<script type="text/template" id="forminator-delete-popup-tpl">\r\n\r\n\t    <div class="sui-box-body sui-spacing-top--0">\r\n\t\t    <p id="forminator-popup__description" class="sui-description" style="margin: 5px 0 0; text-align: center;">{{ content }}</p>\r\n\t    </div>\r\n\r\n\t    <div class="sui-box-footer sui-flatten sui-content-center sui-spacing-top--10">\r\n\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<form method="post" class="delete-action">\r\n\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="{{ action }}">\r\n\t\t\t\t<input type="hidden" name="id" value="{{ id }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" id="forminatorEntryNonce" name="forminatorEntryNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" style="margin: 0;">\r\n\t\t\t\t\t<span class="sui-icon-trash" aria-hidden="true"></span>\r\n\t\t\t\t\t{{ button }}\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</form>\r\n\r\n\t    </div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create New Form (Base Structure) --\x3e\r\n\t<script type="text/template" id="forminator-new-form-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close" data-modal-close>\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg">{{ Forminator.l10n.popup.enter_name }}</h3>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-content-center sui-spacing-top--10"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button id="forminator-build-your-form" class="sui-button sui-button-blue">\r\n\t\t\t\t\t<span class="sui-loading-text">\r\n\t\t\t\t\t\t<i class="sui-icon-plus" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{Forminator.l10n.popup.create}}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create New Form (Content) --\x3e\r\n\t<script type="text/template" id="forminator-new-form-content-tpl">\r\n\r\n\t\t<p id="forminator-popup__description" class="sui-description">{{ Forminator.l10n.popup.new_form_desc2 }}</p>\r\n\r\n\t\t<div\r\n\t\t\trole="alert"\r\n\t\t\tid="forminator-template-register-notice"\r\n\t\t\tclass="sui-notice sui-notice-blue"\r\n\t\t\taria-live="assertive"\r\n\t\t>\r\n\r\n\t\t\t<div class="sui-notice-content">\r\n\r\n\t\t\t\t<div class="sui-notice-message">\r\n\r\n\t\t\t\t\t<span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>\r\n\r\n\t\t\t\t\t<p style="text-align: left;">{{ Forminator.l10n.popup.registration_notice }}</p>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div\r\n\t\t\trole="alert"\r\n\t\t\tid="forminator-template-login-notice"\r\n\t\t\tclass="sui-notice sui-notice-blue"\r\n\t\t\taria-live="assertive"\r\n\t\t>\r\n\r\n\t\t\t<div class="sui-notice-content">\r\n\r\n\t\t\t\t<div class="sui-notice-message">\r\n\r\n\t\t\t\t\t<span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>\r\n\r\n\t\t\t\t\t<p style="text-align: left;">{{ Forminator.l10n.popup.login_notice }}</p>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-form-name" class="sui-screen-reader-text">{{ Forminator.l10n.popup.input_label }}</label>\r\n\t\t\t<input type="text"\r\n\t\t\t       id="forminator-form-name"\r\n\t\t\t       class="sui-form-control fui-required"\r\n\t\t\t       placeholder="{{Forminator.l10n.popup.new_form_placeholder}}" autofocus>\r\n\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.form_name_validation}}</span>\r\n\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create Poll --\x3e\r\n\t<script type="text/template" id="forminator-new-poll-content-tpl">\r\n\t\t<p class="sui-description" style="text-align: center;">{{ Forminator.l10n.popup.new_poll_desc2 }}</p>\r\n\r\n\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-form-name" class="sui-screen-reader-text">{{ Forminator.l10n.popup.input_label }}</label>\r\n\t\t\t<input type="text"\r\n\t\t\t       id="forminator-form-name"\r\n\t\t\t       class="sui-form-control fui-required"\r\n\t\t\t       placeholder="{{Forminator.l10n.popup.new_poll_placeholder}}" autofocus>\r\n\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.poll_name_validation}}</span>\r\n\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create Quiz, Step 1 --\x3e\r\n\t<script type="text/template" id="forminator-quizzes-popup-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close" data-modal-close>\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg" style="overflow: initial; white-space: initial; text-overflow: none;">{{ Forminator.l10n.quiz.choose_quiz_title }}</h3>\r\n\r\n\t\t\t<p id="forminator-popup__description" class="sui-description">{{ Forminator.l10n.quiz.choose_quiz_description }}</p>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-content-center sui-spacing-bottom--10">\r\n\r\n\t\t\t<div id="forminator-form-name-input" class="sui-form-field">\r\n\r\n\t\t\t\t<label for="forminator-form-name" class="sui-label">{{ Forminator.l10n.quiz.quiz_name }}</label>\r\n\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="text"\r\n\t\t\t\t\tid="forminator-form-name"\r\n\t\t\t\t\tclass="sui-form-control fui-required"\r\n\t\t\t\t\tplaceholder="{{Forminator.l10n.popup.new_quiz_placeholder}}"\r\n\t\t\t\t\tautofocus\r\n\t\t\t\t/>\r\n\t\t\t\t<span class="sui-error-message" style="display: none;">{{Forminator.l10n.popup.quiz_name_validation}}</span>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<label class="sui-label">{{ Forminator.l10n.quiz.quiz_type }}</label>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors" style="margin: 0;">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t<li><label for="forminator-new-quiz--knowledge" class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-new-quiz"\r\n\t\t\t\t\t\tid="forminator-new-quiz--knowledge"\r\n\t\t\t\t\t\tclass="forminator-new-quiz-type"\r\n\t\t\t\t\t\tvalue="knowledge"\r\n\t\t\t\t\t\tchecked="checked"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<i class="sui-icon-academy" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.knowledge_label }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span>{{ Forminator.l10n.quiz.knowledge_description }}</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t\t<li><label for="forminator-new-quiz--nowrong" class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-new-quiz"\r\n\t\t\t\t\t\tid="forminator-new-quiz--nowrong"\r\n\t\t\t\t\t\tclass="forminator-new-quiz-type"\r\n\t\t\t\t\t\tvalue="nowrong"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<i class="sui-icon-community-people" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.nowrong_label }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span>{{ Forminator.l10n.quiz.nowrong_description }}</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-spacing-top--30">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-template">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create Quiz, Step 2 (Pagination) --\x3e\r\n\t<script type="text/template" id="forminator-new-quiz-pagination-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--left forminator-popup-back">\r\n\t\t\t\t<span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.go_back }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close">\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: initial;">{{ Forminator.l10n.quiz.quiz_pagination }}</h3>\r\n\r\n\t\t\t<p id="forminator-popup__description" class="sui-description">\r\n\t\t\t\t{{ Forminator.l10n.quiz.quiz_pagination_descr }}<br>\r\n\t\t\t\t{{ Forminator.l10n.quiz.quiz_pagination_descr2 }}\r\n\t\t\t</p>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-spacing-bottom--10">\r\n\r\n\t\t\t<label class="sui-label">{{ Forminator.l10n.quiz.presentation }}</label>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors" style="margin: 0;">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t<li><label class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-quiz-pagination"\r\n\t\t\t\t\t\tvalue="0"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.no_pagination }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t\t<li><label class="sui-box-selector">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\tname="forminator-quiz-pagination"\r\n\t\t\t\t\t\tvalue="1"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t{{ Forminator.l10n.quiz.paginate_quiz }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</label></li>\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-spacing-top--30">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-pagination">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create Quiz, Step 3A (Leads Base Structure) --\x3e\r\n\t<script type="text/template" id="forminator-new-quiz-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--left forminator-popup-back">\r\n\t\t\t\t<span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.go_back }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close forminator-cancel-create-form">\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg">{{ Forminator.l10n.quiz.collect_leads }}</h3>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--10"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-separated">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button id="forminator-build-your-form" class="sui-button sui-button-blue">\r\n\t\t\t\t\t<span class="sui-loading-text">\r\n\t\t\t\t\t\t<i class="sui-icon-plus" aria-hidden="true"></i> {{ Forminator.l10n.quiz.create_quiz }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Create Quiz, Step 3B (Leads Content) --\x3e\r\n\t<script type="text/template" id="forminator-new-quiz-content-tpl">\r\n\r\n\t\t<p class="sui-description" style="text-align: center;">{{ Forminator.l10n.popup.new_quiz_desc2 }}\r\n\t\t\t{[ if( Forminator.Data.showDocLink ) { ]}\r\n\t\t\t\t<a href="https://wpmudev.com/docs/wpmu-dev-plugins/forminator/?utm_source=forminator&utm_medium=plugin&utm_campaign=capture_leads_learnmore_link#leads" target="_blank">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.learn_more }}\r\n\t\t\t\t</a>\r\n\t\t\t{[ } ]}\r\n\t\t</p>\r\n\r\n\t\t<div class="sui-form-field">\r\n\r\n\t\t\t<label for="forminator-new-quiz-leads" class="sui-toggle fui-highlighted-toggle">\r\n\r\n\t\t\t\t<input\r\n\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\tid="forminator-new-quiz-leads"\r\n\t\t\t\t\taria-labelledby="forminator-new-quiz-leads-label"\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t<span class="sui-toggle-slider" aria-hidden="true"></span>\r\n\r\n\t\t\t\t<span id="forminator-new-quiz-leads-label" class="sui-toggle-label">{{ Forminator.l10n.quiz.quiz_leads_toggle }}</span>\r\n\r\n\t\t\t</label>\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="alert"\r\n\t\t\t\tid="sui-quiz-leads-description"\r\n\t\t\t\tclass="sui-notice sui-notice-blue"\r\n\t\t\t\taria-live="assertive"\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-notice-content">\r\n\r\n\t\t\t\t\t<div class="sui-notice-message">\r\n\r\n\t\t\t\t\t\t<span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>\r\n\r\n\t\t\t\t\t\t<p>{{ Forminator.l10n.quiz.quiz_leads_desc }}</p>\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Export Schedule (on Submissions page) --\x3e\r\n\t<script type="text/template" id="forminator-exports-schedule-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\r\n\t\t\t<div class="sui-box-settings-row">\r\n\r\n\t\t\t\t<div class="sui-box-settings-col-2">\r\n\r\n\t\t\t\t\t<span class="sui-settings-label sui-dark">{{ Forminator.l10n.popup.manual_exports }}</span>\r\n\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.manual_description }}</span>\r\n\r\n\t\t\t\t\t<form method="post" style="margin-top: 10px;">\r\n\r\n\t\t\t\t\t\t<input type="hidden" name="forminator_export" value="1" />\r\n\t\t\t\t\t\t<input type="hidden" name="form_id" value="{{ Forminator.l10n.exporter.form_id }}" />\r\n\t\t\t\t\t\t<input type="hidden" name="form_type" value="{{ Forminator.l10n.exporter.form_type }}" />\r\n\t\t\t\t\t\t<input type="hidden" name="_forminator_nonce" value="{{ Forminator.l10n.exporter.export_nonce }}" />\r\n\r\n\t\t\t\t\t\t<button class="sui-button sui-button-ghost">{{ Forminator.l10n.popup.download_csv }}</button>\r\n\r\n\t\t\t\t\t\t{[ if( \'cform\' === Forminator.l10n.exporter.form_type || \'quiz\' === Forminator.l10n.exporter.form_type ) { ]}\r\n\t\t\t\t\t\t\t<label for="apply-submission-filter" class="sui-checkbox sui-checkbox-sm sui-checkbox-stacked" style="margin-top: 20px;">\r\n\t\t\t\t\t\t\t\t<input type="checkbox" name="submission-filter" id="apply-submission-filter" value="yes" />\r\n\t\t\t\t\t\t\t\t<span aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t<span>{{ Forminator.l10n.popup.apply_submission_filter }}</span>\r\n\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t\t</form>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<form method="post" class="sui-box-settings-row schedule-action">\r\n\r\n\t\t\t\t<div class="sui-box-settings-col-2">\r\n\r\n\t\t\t\t\t<span class="sui-settings-label sui-dark">{{ Forminator.l10n.popup.scheduled_exports }}</span>\r\n\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.scheduled_description }}</span>\r\n\r\n\t\t\t\t\t<div class="sui-side-tabs" style="margin-top: 10px;">\r\n\r\n\t\t\t\t\t\t<div class="sui-tabs-menu tab-labels">\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-disable-scheduled-exports" class="sui-tab-item tab-label-disable">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\tname="enabled"\r\n\t\t\t\t\t\t\t\t\tvalue="false"\r\n\t\t\t\t\t\t\t\t\tid="forminator-disable-scheduled-exports"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.disable }}\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-enable-scheduled-exports" class="sui-tab-item tab-label-enable">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\tname="enabled"\r\n\t\t\t\t\t\t\t\t\tvalue="true"\r\n\t\t\t\t\t\t\t\t\tid="forminator-enable-scheduled-exports"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.enable }}\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<div class="sui-tabs-content schedule-enabled">\r\n\r\n\t\t\t\t\t\t\t<div id="forminator-export-schedule-timeframe" class="sui-tab-content sui-tab-boxed active">\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-row">\r\n\r\n\t\t\t\t\t\t\t\t\t<div class="sui-col-md-6">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.frequency }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<select name="interval" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="daily">{{ Forminator.l10n.popup.daily }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="weekly">{{ Forminator.l10n.popup.weekly }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="monthly">{{ Forminator.l10n.popup.monthly }}</option>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class="sui-col-md-6">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.day_time }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<select name="hour" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="00:00">12:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="01:00">01:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="02:00">02:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="03:00">03:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="04:00">04:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="05:00">05:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="06:00">06:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="07:00">07:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="08:00">08:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="09:00">09:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="10:00">10:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="11:00">11:00 AM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="12:00">12:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="13:00">01:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="14:00">02:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="15:00">03:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="16:00">04:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="17:00">05:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="18:00">06:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="19:00">07:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="20:00">08:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="21:00">09:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="22:00">10:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="23:00">11:00 PM</option>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.week_day }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="day" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t<option value="mon">{{ Forminator.l10n.popup.monday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="tue">{{ Forminator.l10n.popup.tuesday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="wed">{{ Forminator.l10n.popup.wednesday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="thu">{{ Forminator.l10n.popup.thursday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="fri">{{ Forminator.l10n.popup.friday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="sat">{{ Forminator.l10n.popup.saturday }}</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="sun">{{ Forminator.l10n.popup.sunday }}</option>\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.day_month }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="month_day" class="sui-select">\r\n\t\t\t\t\t\t\t\t\t\t<option value="1">1</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="2">2</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="3">3</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="4">4</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="5">5</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="6">6</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="7">7</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="8">8</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="9">9</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="10">10</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="11">11</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="12">12</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="13">13</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="14">14</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="15">15</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="16">16</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="17">17</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="18">18</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="19">19</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="20">20</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="21">21</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="22">22</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="23">23</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="24">24</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="25">25</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="26">26</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="27">27</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="28">28</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="29">29</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="30">30</option>\r\n\t\t\t\t\t\t\t\t\t\t<option value="31">31</option>\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div id="forminator-export-schedule-email" class="sui-form-field" style="margin-bottom: 20px;">\r\n\r\n\t\t\t\t\t\t\t\t\t<label class="sui-label">{{ Forminator.l10n.popup.email_to }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select name="email[]" class="sui-select fui-multi-select wpmudev-select" multiple="multiple">\r\n\t\t\t\t\t\t\t\t\t\t{[ _.each( Forminator.l10n.exporter.email, function ( email ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t<option value="{{ email }}" selected="selected">{{ email }}</option>\r\n\t\t\t\t\t\t\t\t\t\t{[ }) ]}\r\n\t\t\t\t\t\t\t\t\t</select>\r\n\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="form_id" value="{{ Forminator.l10n.exporter.form_id }}"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="form_type" value="{{ Forminator.l10n.exporter.form_type }}"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="action" value="forminator_export_entries"/>\r\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="_forminator_nonce" value="{{ Forminator.l10n.exporter.export_nonce }}"/>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<label for="forminator-send-if-new-exports" class="sui-checkbox sui-checkbox-sm sui-checkbox-stacked">\r\n\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\r\n\t\t\t\t\t\t\t\t\t\tname="if_new"\r\n\t\t\t\t\t\t\t\t\t\tvalue="true"\r\n\t\t\t\t\t\t\t\t\t\tid="forminator-send-if-new-exports"\r\n\t\t\t\t\t\t\t\t\t\tclass="forminator-field-singular"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t<span aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t\t<span class="sui-description">{{ Forminator.l10n.popup.scheduled_export_if_new }}</span>\r\n\t\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</form>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\r\n\t\t\t<button class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide="forminator-popup">{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button type="submit" class="sui-button wpmudev-action-done">{{ Forminator.l10n.popup.save }}</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Reset Plugin (on Settings page) --\x3e\r\n\t<script type="text/template" id="forminator-reset-plugin-settings-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--10">\r\n\t\t\t<p class="sui-description" style="text-align: center;">{{ content }}</p>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center">\r\n\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<form method="post" class="delete-action">\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="reset_plugin_settings">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}&forminator_notice=settings_reset">\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm">\r\n\t\t\t\t\t<span class="sui-loading-text" aria-hidden="true">\r\n\t\t\t\t\t\t<i class="sui-icon-refresh" aria-hidden="true"></i>\r\n\t\t\t\t\t\t{{ Forminator.l10n.popup.reset }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Disconnect PayPal (on Settings page) --\x3e\r\n\t<script type="text/template" id="forminator-disconnect-paypal-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--10">\r\n\t\t\t<p class="sui-description" style="text-align: center;">{{ content }}</p>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center">\r\n\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<button type="submit" class="disconnect_paypal sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-action="disconnect_paypal">\r\n\t\t\t\t{{ Forminator.l10n.popup.disconnect }}\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- TEMPLATE: Disconnect Stripe (on Settings page) --\x3e\r\n\t<script type="text/template" id="forminator-disconnect-stripe-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--10">\r\n\t\t\t<p class="sui-description" style="text-align: center;">{{ content }}</p>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center">\r\n\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\r\n\t\t\t<button type="submit" class="disconnect_stripe sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-action="disconnect_stripe">\r\n\t\t\t\t<i class="sui-icon-refresh" aria-hidden="true"></i>\r\n\t\t\t\t{{ Forminator.l10n.popup.disconnect }}\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n    <script type="text/template" id="forminator-login-popup-tpl">\r\n\r\n        <div class="wpmudev-row">\r\n\r\n            <div class="wpmudev-col col-12 col-sm-6">\r\n\r\n                <a class="wpmudev-popup--logreg" href="{{ loginUrl }}">\r\n\r\n                    <div class="wpmudev-logreg--header">\r\n\r\n                        <span class="wpdui-icon wpdui-icon-key"></span>\r\n\r\n                        <h3 class="wpmudev-logreg--title">{{ Forminator.l10n.login.login_label }}</h3>\r\n\r\n                    </div>\r\n\r\n                    <div class="wpmudev-logreg--section">\r\n\r\n                        <p class="wpmudev-logreg--description">{{ Forminator.l10n.login.login_description }}</p>\r\n\r\n                        <div class="wpmudev-logreg--image">\r\n                            <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\r\n                                 width="110" height="140" viewBox="0 0 110 140" preserveAspectRatio="none"\r\n                                 class="wpmudev-svg-login">\r\n                                <defs>\r\n                                    <path id="b" d="M0 40h100v94H0z"/>\r\n                                    <filter id="a" width="116%" height="117%" x="-8%" y="-7.4%"\r\n                                            filterUnits="objectBoundingBox">\r\n                                        <feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"/>\r\n                                        <feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1"\r\n                                                        stdDeviation="2.5"/>\r\n                                        <feColorMatrix in="shadowBlurOuter1"\r\n                                                       values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>\r\n                                    </filter>\r\n                                    <path id="c" d="M10 112h6v6h-6z"/>\r\n                                    <path id="d" d="M10 90h80v15H10z"/>\r\n                                    <path id="e" d="M10 60h80v15H10z"/>\r\n                                </defs>\r\n                                <g fill="none" fill-rule="evenodd" transform="translate(5)">\r\n                                    <use fill="#000" filter="url(#a)" xlink:href="#b"/>\r\n                                    <use fill="#FFF" xlink:href="#b"/>\r\n                                    <rect width="22" height="12" x="68" y="112" fill="#0472AC" rx="3"/>\r\n                                    <path fill="#808285" d="M19 114h26v2H19z"/>\r\n                                    <use fill="#FBFBFB" xlink:href="#c"/>\r\n                                    <path stroke="#E1E1E1" d="M10.5 112.5h5v5h-5z"/>\r\n                                    <use fill="#FBFBFB" xlink:href="#d"/>\r\n                                    <path stroke="#E1E1E1" d="M10.5 90.5h79v14h-79z"/>\r\n                                    <path fill="#808285" d="M10 85h26v2H10z"/>\r\n                                    <use fill="#FBFBFB" xlink:href="#e"/>\r\n                                    <path stroke="#E1E1E1" d="M10.5 60.5h79v14h-79z"/>\r\n                                    <path fill="#808285" d="M10 55h50v2H10z"/>\r\n                                    <circle cx="50" cy="15" r="15" fill="#0272AC"/>\r\n                                </g>\r\n                            </svg>\r\n                        </div>\r\n\r\n                    </div>\r\n\r\n                </a>\r\n\r\n            </div>\r\n\r\n            <div class="wpmudev-col col-12 col-sm-6">\r\n\r\n                <a class="wpmudev-popup--logreg" href="{{ registerUrl }}">\r\n\r\n                    <div class="wpmudev-logreg--header">\r\n\r\n                        <span class="wpdui-icon wpdui-icon-profile-female"></span>\r\n\r\n                        <h3 class="wpmudev-logreg--title">{{ Forminator.l10n.login.registration_label }}</h3>\r\n\r\n                    </div>\r\n\r\n                    <div class="wpmudev-logreg--section">\r\n\r\n                        <p class="wpmudev-logreg--description">{{ Forminator.l10n.login.registration_description }}</p>\r\n\r\n                        <div class="wpmudev-logreg--image">\r\n                            <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\r\n                                 width="183" height="97" viewBox="0 0 183 97" preserveAspectRatio="none"\r\n                                 class="wpmudev-svg-registration">\r\n                                <defs>\r\n                                    <path id="a" d="M0 58h183v15H0z"/>\r\n                                    <path id="b" d="M0 23h183v15H0z"/>\r\n                                </defs>\r\n                                <g fill="none" fill-rule="evenodd">\r\n                                    <rect width="50" height="14" y="83" fill="#353535" rx="3"/>\r\n                                    <path fill="#FBFBFB" stroke="#E1E1E1" d="M.5 58.5h182v14H.5z"/>\r\n                                    <path fill="#808285" d="M0 51h40v2H0z"/>\r\n                                    <path fill="#FBFBFB" stroke="#E1E1E1" d="M.5 23.5h182v14H.5z"/>\r\n                                    <path fill="#808285" d="M0 16h40v2H0z"/>\r\n                                    <path fill="#353535" d="M0 0h120v6H0z"/>\r\n                                </g>\r\n                            </svg>\r\n                        </div>\r\n\r\n                    </div>\r\n\r\n                </a>\r\n\r\n            </div>\r\n\r\n        </div>\r\n    <\/script>\r\n\r\n\t<script type="text/template" id="forminator-form-popup-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close">\r\n\t\t\t\t<span class="sui-icon-close" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg">{{ Forminator.l10n.form.form_template_title }}</h3>\r\n\r\n\t\t\t<p id="forminator-popup__description" class="sui-description">{{ Forminator.l10n.form.form_template_description }}</p>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-selectors sui-box-selectors-col-2">\r\n\r\n\t\t\t<ul>\r\n\r\n\t\t\t\t{[ _.each(templates, function(template){ ]}\r\n\r\n\t\t\t\t\t{[ if( template.options.id !== \'leads\' ) { ]}\r\n\r\n\t\t\t\t\t\t<li>\r\n\r\n\t\t\t\t\t\t\t<label for="forminator-new-quiz--{{ template.options.id }}" class="sui-box-selector">\r\n\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\ttype="radio"\r\n\t\t\t\t\t\t\t\t\t\tname="forminator-form-template"\r\n\t\t\t\t\t\t\t\t\t\tid="forminator-new-quiz--{{ template.options.id }}"\r\n\t\t\t\t\t\t\t\t\t\tclass="forminator-new-form-type"\r\n\t\t\t\t\t\t\t\t\t\tvalue="{{ template.options.id }}"\r\n\t\t\t\t\t\t\t\t\t\t{[ if( template.options.id === \'blank\' ) { ]}\r\n\t\t\t\t\t\t\t\t\t\tchecked="checked"\r\n\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t<i class="sui-icon-{{template.options.icon}}" aria-hidden="true"></i>\r\n\t\t\t\t\t\t\t\t\t{{ template.options.name }}\r\n\t\t\t\t\t\t\t\t</span>\r\n\r\n\t\t\t\t\t\t\t</label>\r\n\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t{[ }); ]}\r\n\r\n\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten">\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button select-quiz-template">\r\n\t\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\r\n\t\t\t\t\t<i class="sui-icon-load sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n    <script type="text/template" id="forminator-new-form-popup-tpl">\r\n\r\n        <div class="wpmudev-box--congrats">\r\n\r\n            <div class="wpmudev-congrats--image"></div>\r\n\r\n            <div class="wpmudev-congrats--message">\r\n\r\n                <p><strong>{{ title }}</strong> {{ Forminator.l10n.popup.is_ready }}<br/>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.new_form_desc }}</p>\r\n\r\n            </div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n    <script type="text/template" id="forminator-confirmation-popup-tpl">\r\n\r\n\t    <div class="sui-box-body sui-content-center">\r\n\t\t    <p>{{ confirmation_message }}</p>\r\n\t    </div>\r\n\r\n        <div class="sui-box-footer sui-flatten sui-content-center">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost popup-confirmation-cancel">{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost sui-button-red popup-confirmation-confirm">\r\n\t\t\t\t<span class="sui-loading-text">{{ Forminator.l10n.popup.delete }}</span>\r\n\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t</button>\r\n        </div>\r\n\r\n    <\/script>\r\n\r\n\t<script type="text/template" id="forminator-delete-poll-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<button type="submit" class="delete-poll-submission sui-button sui-button-ghost sui-button-red popup-confirmation-confirm" data-nonce="{{ nonce }}" data-id="{{ id }}" data-action="delete_poll_submissions">\r\n\t\t\t\t{{ Forminator.l10n.popup.delete }}\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-approve-user-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="form-approve-user">\r\n\t\t\t\t<input type="hidden" name="forminator_action" value="approve_user">\r\n\t\t\t\t<input type="hidden" name="id" value="{{ id }}">\r\n\t\t\t\t<input type="hidden" name="activationKey" value="{{ activationKey }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonce" name="forminatorNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" id="forminatorEntryNonce" name="forminatorEntryNonce" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button approve-user popup-confirmation-confirm">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.approve_user }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-delete-unconfirmed-user-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description">{{ content }}</span>\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer">\r\n\t\t\t<button type="button" class="sui-button sui-button-ghost forminator-popup-cancel" data-a11y-dialog-hide>{{ Forminator.l10n.popup.cancel }}</button>\r\n\t\t\t<form method="post" class="form-delete-unconfirmed-user">\r\n\t\t\t\t<input type="hidden" name="forminatorAction" value="delete-unconfirmed-user">\r\n\t\t\t\t<input type="hidden" name="formId" value="{{ formId }}">\r\n\t\t\t\t<input type="hidden" name="entryId" value="{{ entryId }}">\r\n\t\t\t\t<input type="hidden" name="activationKey" value="{{ activationKey }}">\r\n\t\t\t\t<input type="hidden" id="forminatorNonceDeleteUnconfirmedUser" name="forminatorNonceDeleteUnconfirmedUser" value="{{ nonce }}">\r\n\t\t\t\t<input type="hidden" name="_wp_http_referer" value="{{ referrer }}">\r\n\t\t\t\t<button type="submit" class="sui-button sui-button-ghost sui-button-red delete-unconfirmed-user popup-confirmation-confirm">\r\n\t\t\t\t\t<i class="sui-icon-trash" aria-hidden="true"></i>\r\n\t\t\t\t\t{{ Forminator.l10n.popup.delete }}\r\n\t\t\t\t</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-addons-action-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--0">\r\n\r\n\t\t\t{[ if( forms.length <= 0 ) { ]}\r\n\r\n\t\t\t\t<p id="forminator-popup__description" class="sui-description" style="text-align: center;">{{ Forminator.l10n.popup.deactivateContent }}</p>\r\n\r\n\t\t\t{[ } else { ]}\r\n\r\n\t\t\t\t<p id="forminator-popup__description" class="sui-description" style="text-align: center;">{{ content }}</p>\r\n\r\n\t\t\t\t<div class="form-list">\r\n\r\n\t\t\t\t\t<h4 class="sui-table-title" style="margin: 0 0 5px;">{{ Forminator.l10n.popup.forms }}</h4>\r\n\r\n\t\t\t\t\t<table class="sui-table" style="margin: 0;">\r\n\t\t\t\t\t\t<tbody>\r\n\t\t\t\t\t\t{[ _.each( forms, function( value, key ){ ]}\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td class="sui-table-item-title">\r\n\t\t\t\t\t\t\t\t\t<span class="sui-icon-clipboard-notes" aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t\t{{ value }}\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t<td width="73" style="text-align: right;">\r\n\t\t\t\t\t\t\t\t\t<a href="{{ forminatorData.formEditUrl + \'&id=\' + key }}" title="{{ value }}" class="sui-button-icon">\r\n\t\t\t\t\t\t\t\t\t\t<span class="sui-icon-pencil" aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t{[ }) ]}\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t{[ } ]}\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-separated">\r\n\r\n\t\t\t<button type="button" class="sui-button forminator-popup-close" data-a11y-dialog-hide>\r\n\t\t\t\t{{ Forminator.l10n.popup.cancel }}\r\n\t\t\t</button>\r\n\r\n\t\t\t{[ if( forms.length <= 0 ) { ]}\r\n\t\t\t\t<button class="sui-button addons-actions" data-addon="{{ id }}" data-nonce="{{ nonce }}" data-popup="true" data-is_network="{{ is_network }}" data-action="addons-deactivate">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.deactivate }}\r\n\t\t\t\t</button>\r\n\t\t\t{[ } else { ]}\r\n\t\t\t\t<button class="sui-button sui-button-ghost sui-button-red addons-actions" data-addon="{{ id }}" data-nonce="{{ nonce }}" data-popup="true" data-is_network="{{ is_network }}" data-action="addons-deactivate">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.deactivateAnyway }}\r\n\t\t\t\t</button>\r\n\t\t\t{[ } ]}\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-apply-appearance-preset-tpl">\r\n\r\n\t\t<div class="sui-box-body">\r\n\t\t\t<span class="sui-description" style="text-align: center; margin: -15px 0 30px;">{{ description }}</span>\r\n\r\n\t\t\t<div class="sui-form-field" style="margin-bottom: 10px;">\r\n\t\t\t\t{{ selectbox }}\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="sui-notice" style="margin-top: 10px;">\r\n\t\t\t\t<div class="sui-notice-content">\r\n\t\t\t\t\t<div class="sui-notice-message">\r\n\t\t\t\t\t\t<span class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></span>\r\n\t\t\t\t\t\t<p>{{ notice }}</p>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center">\r\n\t\t\t<button id="forminator-apply-preset" class="sui-button sui-button-blue">\r\n\t\t\t\t<span class="sui-button-text-default">\r\n\t\t\t\t\t<i class="sui-icon-check" aria-hidden="true"></i> {{ button }}\r\n\t\t\t\t</span>\r\n\t\t\t\t<span class="sui-button-text-onload">\r\n\t\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t</span>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="forminator-create-appearance-preset-tpl">\r\n\r\n\t\t<div class="sui-box-body sui-content-center">\r\n\t\t\t<span class="sui-description" style="margin: -15px 0 30px">{{ content }}</span>\r\n\r\n\t\t\t<div class="sui-form-field">\r\n\t\t\t\t<label for="forminator-preset-name" class="sui-label">{{ nameLabel }}</label>\r\n\t\t\t\t<input type="text"\r\n\t\t\t\t\t   id="forminator-preset-name"\r\n\t\t\t\t\t   class="sui-form-control fui-required"\r\n\t\t\t\t\t   placeholder="{{ namePlaceholder }}">\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class="sui-form-field">\r\n\t\t\t\t<label class="sui-label">{{ formLabel }}</label>\r\n\t\t\t\t{{ forminatorData.forms_select }}\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center">\r\n\t\t\t<button id="forminator-create-preset" class="sui-button sui-button-blue" disabled="disabled">\r\n\t\t\t\t<span class="sui-button-text-default">\r\n\t\t\t\t\t<i class="sui-icon-plus" aria-hidden="true"></i> {{ title }}\r\n\t\t\t\t</span>\r\n\t\t\t\t<span class="sui-button-text-onload">\r\n\t\t\t\t\t<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>\r\n\t\t\t\t\t{{ loadingText }}\r\n\t\t\t\t</span>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n</div>\r\n'
}),function(t){formintorjs.define("admin/popup/templates",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"forminator-popup-create--cform",step:"1",template:"blank",events:{"click .select-quiz-template":"selectTemplate","click .forminator-popup-close":"close","change .forminator-new-form-type":"clickTemplate","click #forminator-build-your-form":"handleMouseClick","focus #forminator-form-name":"resetNameSetup",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(n).find("#forminator-form-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(n).find("#forminator-new-form-tpl").html()),newFormContent:Forminator.Utils.template(t(n).find("#forminator-new-form-content-tpl").html()),render:function(){var t=jQuery("#forminator-popup");"1"===this.step&&(this.$el.html(this.popupTpl({templates:Forminator.Data.modules.custom_form.templates})),this.$el.find(".select-quiz-template").prop("disabled",!1),t.closest(".sui-modal").removeClass("sui-modal-sm")),"2"===this.step&&(this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newFormContent()),"registration"===this.template&&(this.$el.find("#forminator-template-register-notice").show(),this.$el.find("#forminator-form-name").val(Forminator.l10n.popup.registration_name)),"login"===this.template&&(this.$el.find("#forminator-template-login-notice").show(),this.$el.find("#forminator-form-name").val(Forminator.l10n.popup.login_name)),t.closest(".sui-modal").addClass("sui-modal-sm"))},close:function(t){t.preventDefault(),Forminator.Popup.close()},clickTemplate:function(t){this.$el.find(".select-quiz-template").prop("disabled",!1)},selectTemplate:function(t){t.preventDefault();var n=this.$el.find("input[name=forminator-form-template]:checked").val();this.template=n,this.step="2",this.render()},handleMouseClick:function(t){this.createQuiz(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&this.createQuiz(t)},resetNameSetup:function(n){var e=t(n.target).next(".sui-error-message");e.is(":visible")&&(e.hide(),this.$el.find("#forminator-build-your-form").removeClass("sui-button-onload"))},createQuiz:function(n){var e=t(n.target).addClass("sui-button-onload").closest(".sui-box").find("#forminator-form-name");if(""===e.val().trim())t(n.target).closest(".sui-box").find(".sui-error-message").show();else{var i=Forminator.Data.modules.custom_form.new_form_url;t(n.target).closest(".sui-box").find(".sui-error-message").hide(),form_url=i+"&name="+e.val(),form_url=form_url+"&template="+this.template,window.location.href=form_url}}})})}(jQuery),function(t){formintorjs.define("admin/popup/login",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-login-popup-tpl").html()),render:function(){this.$el.html(this.popupTpl({loginUrl:Forminator.Data.modules.login.login_url,registerUrl:Forminator.Data.modules.login.register_url}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/quizzes",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"forminator-popup-create--quiz",step:1,pagination:0,type:"knowledge",events:{"click .select-quiz-template":"selectTemplate","click .select-quiz-pagination":"selectPagination","click .forminator-popup-back":"goBack","click .forminator-popup-close":"close","change .forminator-new-quiz-type":"clickTemplate","click #forminator-build-your-form":"handleMouseClick","click #forminator-new-quiz-leads":"handleToggle","focus #forminator-form-name":"resetNameSetup",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(n).find("#forminator-quizzes-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(n).find("#forminator-new-quiz-tpl").html()),paginationTpl:Forminator.Utils.template(t(n).find("#forminator-new-quiz-pagination-tpl").html()),newFormContent:Forminator.Utils.template(t(n).find("#forminator-new-quiz-content-tpl").html()),render:function(){var t=jQuery("#forminator-popup");t.removeClass("sui-dialog-sm forminator-create-quiz-second-step forminator-create-quiz-pagination-step"),1===this.step&&(this.$el.html(this.popupTpl()),this.name&&(this.$el.find("#forminator-form-name").val(this.name),this.$el.find("#forminator-new-quiz--"+this.type).prop("checked",!0)),this.$el.find(".select-quiz-template").prop("disabled",!1)),2===this.step&&(this.$el.html(this.paginationTpl()),window.isTrue(this.pagination)?this.$el.find('[name="forminator-quiz-pagination"]').eq(1).prop("checked",!0):this.$el.find('[name="forminator-quiz-pagination"]').eq(0).prop("checked",!0),t.addClass("forminator-create-quiz-pagination-step")),3===this.step&&(this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newFormContent()),t.addClass("sui-dialog-sm forminator-create-quiz-second-step"))},close:function(t){t.preventDefault(),Forminator.Popup.close()},clickTemplate:function(t){this.$el.find(".select-quiz-template").prop("disabled",!1)},selectTemplate:function(n){n.preventDefault();var e=this.$el.find("input[name=forminator-new-quiz]:checked").val(),i=this.$el.find("#forminator-form-name").val();""===i.trim()?t(n.target).closest(".sui-box").find(".sui-error-message").show():(this.type=e,this.name=i,this.step=2,this.render())},goBack:function(t){t.preventDefault(),2==this.step&&(this.pagination=this.$el.find('input[name="forminator-quiz-pagination"]:checked').val()),this.step--,this.render()},selectPagination:function(t){t.preventDefault();var n=this.$el.find('input[name="forminator-quiz-pagination"]:checked').val();this.pagination=n,this.step=3,this.render()},handleMouseClick:function(t){this.createQuiz(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&(1===this.step?this.selectTemplate(t):this.createQuiz(t))},handleToggle:function(n){var e=t(n.target).is(":checked"),i=t(n.target).closest(".sui-box").find("#sui-quiz-leads-description");e?i.show():i.hide()},resetNameSetup:function(n){var e=t(n.target).next(".sui-error-message");e.is(":visible")&&(e.hide(),this.$el.find("#forminator-build-your-form").removeClass("sui-button-onload"))},createQuiz:function(n){var e=t(n.target).addClass("sui-button-onload").closest(".sui-box").find("#forminator-new-quiz-leads").is(":checked"),i=Forminator.Data.modules.quizzes.knowledge_url;"nowrong"===this.type&&(i=Forminator.Data.modules.quizzes.nowrong_url),form_url=i+"&name="+this.name,window.isTrue(this.pagination)&&(form_url+="&pagination=true"),e&&(form_url+="&leads=true"),window.location.href=form_url}})})}(jQuery),function(t){formintorjs.define("admin/popup/schedule",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({popupTpl:Forminator.Utils.template(t(n).find("#forminator-exports-schedule-popup-tpl").html()),events:{'change select[name="interval"]':"on_change_interval","click .sui-toggle-label":"click_label","click .tab-labels .sui-tab-item":"click_tab_label","click .wpmudev-action-done":"submit_schedule"},render:function(){this.$el.html(this.popupTpl({})),Forminator.Utils.sui_delegate_events();var t=forminatorl10n.exporter;this.$el.find('input[name="if_new"]').prop("checked",t.if_new),this.set_enabled(t.enabled),this.$el.find('select[name="interval"]').change(),null!==t.email&&(this.$el.find('select[name="interval"]').val(t.interval),this.$el.find('select[name="day"]').val(t.day),this.$el.find('select[name="month_day"]').val(t.month_day?t.month_day:1),this.$el.find('select[name="hour"]').val(t.hour),"weekly"===t.interval?this.$el.find('select[name="day"]').closest(".sui-form-field").show():"monthly"===t.interval&&this.$el.find('select[name="month_day"]').closest(".sui-form-field").show(),this.load_select())},set_enabled:function(t){t?(this.$el.find('input[name="enabled"][value="true"]').prop("checked",!0),this.$el.find('input[name="enabled"][value="false"]').prop("checked",!1),this.$el.find(".tab-label-disable").removeClass("active"),this.$el.find(".tab-label-enable").addClass("active"),this.$el.find(".schedule-enabled").show(),this.$el.find('input[name="email"]').prop("required",!0)):(this.$el.find('input[name="enabled"][value="false"]').prop("checked",!0),this.$el.find('input[name="enabled"][value="true"]').prop("checked",!1),this.$el.find(".tab-label-disable").addClass("active"),this.$el.find(".tab-label-enable").removeClass("active"),this.$el.find(".schedule-enabled").hide())},load_select:function(){var t=forminatorl10n.exporter,n={tags:!0,tokenSeparators:[","," "],language:{searching:function(){return t.searching},noResults:function(){return t.noResults}},ajax:{url:forminatorData.ajaxUrl,type:"POST",delay:350,data:function(t){return{action:"forminator_builder_search_emails",_wpnonce:forminatorData.searchNonce,q:t.term}},processResults:function(t){return{results:t.data}},cache:!0},createTag:function(t){const n=t.term.trim();return Forminator.Utils.is_email_wp(n)?{id:n,text:n}:null},insertTag:function(t,n){t.push(n)}};Forminator.Utils.forminator_select2_tags(this.$el,n)},on_change_interval:function(t){this.$el.find('select[name="day"]').closest(".sui-form-field").hide(),this.$el.find('select[name="month_day"]').closest(".sui-form-field").hide(),"weekly"===t.target.value?(this.$el.find('select[name="month-day"]').closest(".sui-form-field").hide(),this.$el.find('select[name="day"]').closest(".sui-form-field").show()):"monthly"===t.target.value&&(this.$el.find('select[name="month_day"]').closest(".sui-form-field").show(),this.$el.find('select[name="day"]').closest(".sui-form-field").hide())},click_label:function(t){t.preventDefault(),this.$el.closest(".sui-form-field").find(".sui-toggle input").click()},click_tab_label:function(n){var e=t(n.target);e.closest(".sui-tab-item").hasClass("tab-label-disable")?this.set_enabled(!1):e.closest(".sui-tab-item").hasClass("tab-label-enable")&&(this.load_select(),this.set_enabled(!0))},submit_schedule:function(t){this.$el.find("form.schedule-action").trigger("submit")}})})}(jQuery),function(t){formintorjs.define("admin/popup/new-form",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-new-form-popup-tpl").html()),initialize:function(t){this.title=t.title,this.title=Forminator.Utils.sanitize_uri_string(this.title)},render:function(){this.$el.html(this.popupTpl({title:this.title}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/polls",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-popup-templates",newFormTpl:Forminator.Utils.template(t(n).find("#forminator-new-form-tpl").html()),newPollContent:Forminator.Utils.template(t(n).find("#forminator-new-poll-content-tpl").html()),events:{"click #forminator-build-your-form":"handleMouseClick","focus #forminator-form-name":"resetNameSetup",keyup:"handleKeyClick"},initialize:function(t){this.options=t},render:function(){this.$el.html(this.newFormTpl()),this.$el.find(".sui-box-body").html(this.newPollContent())},handleMouseClick:function(t){this.create_poll(t)},handleKeyClick:function(t){t.preventDefault(),13===t.which&&this.create_poll(t)},resetNameSetup:function(n){var e=t(n.target).next(".sui-error-message");e.is(":visible")&&(e.hide(),this.$el.find("#forminator-build-your-form").removeClass("sui-button-onload"))},create_poll:function(n){n.preventDefault();var e=t(n.target).addClass("sui-button-onload").closest(".sui-box").find("#forminator-form-name");if(""===e.val().trim())t(n.target).closest(".sui-box").find(".sui-error-message").show();else{var i=Forminator.Data.modules.polls.new_form_url;t(n.target).closest(".sui-box").find(".sui-error-message").hide(),i=i+"&name="+e.val(),window.location.href=i}}})})}(jQuery),function(t){formintorjs.define("admin/popup/ajax",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"sui-box-body",events:{"click .wpmudev-action-done":"save","click .wpmudev-action-ajax-done":"ajax_save","click .wpmudev-action-ajax-cf7-import":"ajax_cf7_import","click .wpmudev-button-clear-exports":"clear_exports","click .forminator-radio--field":"show_poll_custom_input","click .forminator-popup-close":"close_popup","click .forminator-retry-import":"ajax_cf7_import","change #forminator-choose-import-form":"import_form_action","change .forminator-import-forms":"import_form_action"},initialize:function(t){return t=_.extend({action:"",nonce:"",data:"",id:"",enable_loader:!0},t),this.action=t.action,this.nonce=t.nonce,this.data=t.data,this.id=t.id,this.enable_loader=t.enable_loader,this.render()},render:function(){var n=this,e={};if(e.action="forminator_load_"+this.action+"_popup",e._ajax_nonce=this.nonce,e.data=this.data,this.id&&(e.id=this.id),this.enable_loader){var i="";"sui-box-body"!==this.className&&(i+='<div class="sui-box-body">'),i+='<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>',"sui-box-body"!==this.className&&(i+="</div>"),n.$el.html(i)}t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(t){if(t&&t.success){n.$el.html(t.data),n.$el.find(".wpmudev-hidden-popup").show(400),Forminator.Utils.sui_delegate_events();n.$el.find(".forminator-custom-form");n.delegateEvents()}}).always(function(){n.$el.find(".fui-loading-dialog").remove()})},save:function(n){n.preventDefault();var e={},i=t(n.target).data("nonce");e.action="forminator_save_"+this.action+"_popup",e._ajax_nonce=i,t(".wpmudev-popup-form input, .wpmudev-popup-form select").each(function(){var n=t(this);e[n.attr("name")]=n.val()}),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:e,success:function(t){Forminator.Popup.close(!1,function(){window.location.reload()})}})},ajax_save:function(n){var e=this;n.preventDefault();var i={},o=t(n.target).data("nonce");i.action="forminator_save_"+this.action+"_popup",i._ajax_nonce=o,t(".wpmudev-popup-form input, .wpmudev-popup-form select, .wpmudev-popup-form textarea").each(function(){var n=t(this);("checkbox"!==n[0].type||"checkbox"===n[0].type&&n[0].checked)&&(i[n.attr("name")]=n.val())}),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,success:function(t){if(!0===t.success){var n=!1;_.isUndefined(t.data.url)||(n=t.data.url),Forminator.Popup.close(!1,function(){n&&(location.href=n)})}else{const e="<p>"+t.data+"</p>",i={type:"error",autoclose:{timeout:8e3}};_.isUndefined(t.data)||SUI.openNotice("wpmudev-ajax-error-placeholder",e,i)}}}).always(function(){e.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload")})},clear_exports:function(n){n.preventDefault();var e={},i=this,o=t(n.target).data("nonce"),a=t(n.target).data("form-id");e.action="forminator_clear_"+this.action+"_popup",e._ajax_nonce=o,e.id=a,t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:e,success:function(){i.render()}})},show_poll_custom_input:function(n){var e=this,i=this.$el.find(".forminator-input"),o=n.target.checked,a=t(n.target).attr("id");if(i.hide(),e.$el.find(".forminator-input#"+a+"-extra").length){var r=e.$el.find(".forminator-input#"+a+"-extra");o?r.show():r.hide()}},ajax_cf7_import:function(n){var e=this,i=e.$el.find("form").serializeArray();n.preventDefault(),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.$el.find(".wpmudev-ajax-error-placeholder").addClass("sui-hidden"),this.$el.find(".forminator-cf7-imported-fail").addClass("sui-hidden"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,xhr:function(){var t=new window.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var n=t.loaded/t.total;n=parseInt(100*n),e.$el.find(".forminator-cf7-importing .sui-progress-text").html(n+"%"),e.$el.find(".forminator-cf7-importing .sui-progress-bar span").css("width",n+"%")}},!1),t},success:function(t){!0===t.success?setTimeout(function(){e.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),e.$el.find(".forminator-cf7-imported").removeClass("sui-hidden")},1e3):_.isUndefined(t.data)||(setTimeout(function(){e.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),e.$el.find(".forminator-cf7-imported-fail").removeClass("sui-hidden")},1e3),e.$el.find(".wpmudev-ajax-error-placeholder").removeClass("sui-hidden").find("p").text(t.data))}}).always(function(t){e.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload"),e.$el.find(".forminator-cf7-import").addClass("sui-hidden"),e.$el.find(".forminator-cf7-importing").removeClass("sui-hidden")})},close_popup:function(){Forminator.Popup.close()},import_form_action:function(n){n.preventDefault();var e=t(n.target),i=e.val(),o=!1;"specific"===i&&(o=!0),(null==i||Array.isArray(i)&&i.length<1)&&(o=!0),this.$el.find(".wpmudev-action-ajax-cf7-import").prop("disabled",o)}})})}(jQuery),function(t){formintorjs.define("admin/popup/delete",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-delete-popup-tpl").html()),popupPollTpl:Forminator.Utils.template(t(n).find("#forminator-delete-poll-popup-tpl").html()),initialize:function(t){this.module=t.module,this.nonce=t.nonce,this.id=t.id,this.action=t.action,this.referrer=t.referrer,this.button=t.button||Forminator.l10n.popup.delete,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){"poll"===this.module?this.$el.html(this.popupPollTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content})):this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,action:this.action,referrer:this.referrer,button:this.button,content:this.content}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/preview",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"sui-box-body",initialize:function(n){var e=this,i={action:"",type:"",id:"",preview_data:{},enable_loader:!0};return"forminator_quizzes"===n.type&&(i.has_lead=n.has_lead,i.leads_id=n.leads_id),n=_.extend(i,n),this.action=n.action,this.type=n.type,this.nonce=n.nonce,this.id=n.id,this.render_id=0,this.preview_data=n.preview_data,this.enable_loader=n.enable_loader,"forminator_quizzes"===n.type&&(this.has_lead=n.has_lead,this.leads_id=n.leads_id),t(document).off("after.load.forminator"),t(document).on("after.load.forminator",function(t){e.after_load()}),this.render()},render:function(){var n=this,e={};if(e.action=this.action,e.type=this.type,e.id=this.id,e.render_id=this.render_id,e.nonce=this.nonce,e.is_preview=1,e.preview_data=this.preview_data,e.last_submit_data={},"forminator_quizzes"===this.type&&(e.has_lead=this.has_lead,e.leads_id=this.leads_id),this.enable_loader){var i="";"sui-box-body"!==this.className&&(i+='<div class="sui-box-body">'),i+='<div class="fui-loading-dialog"><p style="margin: 0; text-align: center;" aria-hidden="true"><span class="sui-icon-loader sui-md sui-loading"></span></p><p class="sui-screen-reader-text">Loading content...</p></div>',"sui-box-body"!==this.className&&(i+="</div>"),n.$el.html(i)}var o=t('<form id="forminator-module-'+this.id+'" data-forminator-render="'+this.render_id+'" style="display:none"></form>');n.$el.append(o),t(n.$el.find("#forminator-module-"+this.id+'[data-forminator-render="'+this.render_id+'"]').get(0)).forminatorLoader(e)},after_load:function(){var t=this;t.$el.find('div[data-form="forminator-module-'+this.id+'"]').remove(),t.$el.find(".fui-loading-dialog").remove()}})})}(jQuery),function(t){formintorjs.define("admin/popup/reset-plugin-settings",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-reset-plugin-settings-popup-tpl").html()),events:{"click .popup-confirmation-confirm":"confirm_action"},initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content}))},confirm_action:function(n){t(n.currentTarget).addClass("sui-button-onload")}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-stripe",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup delete-stripe--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-disconnect-stripe-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:Forminator.Utils.sanitize_text_field(this.content)}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-paypal",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-disconnect-paypal-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:Forminator.Utils.sanitize_text_field(this.content)}))}})})}(jQuery),function(t){formintorjs.define("admin/popup/approve-user",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-approve-user-popup-tpl").html()),events:{"click .approve-user.popup-confirmation-confirm":"approveUser"},initialize:function(t){this.nonce=t.nonce,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.activationKey=t.activationKey},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,id:this.id,referrer:this.referrer,content:this.content,activationKey:this.activationKey}))},submitForm:function(n,e,i){var o={};o.action="forminator_approve_user_popup",o._ajax_nonce=e,o.activation_key=i;var a=n.serialize()+"&"+t.param(o);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:a,beforeSend:function(){n.find(".sui-button").addClass("sui-button-onload")},success:function(t){t&&t.success?(Forminator.Notification.open("success",Forminator.l10n.commons.approve_user_successfull,4e3),window.location.reload()):Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.approve_user_unsuccessfull,4e3)}}).always(function(){n.find(".sui-button").removeClass("sui-button-onload")})},approveUser:function(n){n.preventDefault(),t(n.target).addClass("sui-button-onload");var e=this.$el.find(".form-approve-user"),i=e.find("form");return this.submitForm(i,this.nonce,this.activationKey),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/delete-unconfirmed-user",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-delete-unconfirmed-user-popup-tpl").html()),events:{"click .delete-unconfirmed-user.popup-confirmation-confirm":"deleteUnconfirmedUser"},initialize:function(t){this.nonce=t.nonce,this.formId=t.formId,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.activationKey=t.activationKey,this.entryId=t.entryId},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,formId:this.formId,referrer:this.referrer,content:this.content,activationKey:this.activationKey,entryId:this.entryId}))},submitForm:function(n,e,i,o,a){var r={action:"forminator_delete_unconfirmed_user_popup",_ajax_nonce:e,activation_key:i,form_id:o,entry_id:a},s=n.serialize()+"&"+t.param(r);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:s,beforeSend:function(){n.find(".sui-button").addClass("sui-button-onload")},success:function(t){t&&t.success?window.location.reload():Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",t.data,4e3)}}).always(function(){n.find(".sui-button").removeClass("sui-button-onload")})},deleteUnconfirmedUser:function(n){n.preventDefault(),t(n.target).addClass("sui-button-onload");var e=this.$el.find(".form-delete-unconfirmed-user"),i=e.find("form");return this.submitForm(i,this.nonce,this.activationKey,this.formId,this.entryId),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/create-appearance-preset",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-create-appearance-preset-tpl").html()),events:{"click #forminator-create-preset":"createPreset","keydown #forminator-preset-name":"toggleButton"},initialize:function(t){this.nonce=t.nonce,this.title=t.title,this.content=t.content,this.$target=t.$target},render:function(){var t=this.$target.data("modal-preset-form-label"),n=this.$target.data("modal-preset-loading-text"),e=this.$target.data("modal-preset-name-label"),i=this.$target.data("modal-preset-name-placeholder");this.$el.html(this.popupTpl({title:Forminator.Utils.sanitize_text_field(this.title),content:Forminator.Utils.sanitize_text_field(this.content),formLabel:Forminator.Utils.sanitize_text_field(t),loadingText:Forminator.Utils.sanitize_text_field(n),nameLabel:Forminator.Utils.sanitize_text_field(e),namePlaceholder:Forminator.Utils.sanitize_text_field(i)}))},toggleButton:function(n){setTimeout(function(){var e=t(n.currentTarget).val().trim();t("#forminator-create-preset").prop("disabled",!e)},300)},createPreset:function(n){n.preventDefault(),n.stopImmediatePropagation();var e=t(n.target);e.addClass("sui-button-onload-text");var i=this.$el.find('select[name="form_id"]').val(),o=this.$el.find("#forminator-preset-name").val(),a={action:"forminator_create_appearance_preset",_ajax_nonce:this.nonce,form_id:i,name:o};return t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:a,success:function(t){t&&t.success?Forminator.openPreset(t.data):(Forminator.Notification.open("error",t.data,4e3),e.removeClass("sui-button-onload-text"))},error:function(t){Forminator.Notification.open("error",t.data,4e3),e.removeClass("sui-button-onload-text")}}),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/apply-appearance-preset",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-apply-appearance-preset-tpl").html()),events:{"click #forminator-apply-preset":"applyPreset"},initialize:function(t){this.$target=t.$target},render:function(){this.$el.html(this.popupTpl({description:Forminator.Data.modules.ApplyPreset.description,notice:Forminator.Data.modules.ApplyPreset.notice,button:Forminator.Data.modules.ApplyPreset.button,selectbox:Forminator.Data.modules.ApplyPreset.selectbox}))},applyPreset:function(n){n.preventDefault(),n.stopImmediatePropagation();var e=t(n.target);e.addClass("sui-button-onload-text");var i=this.$target.data("form-id"),o=[],a=this.$el.find('select[name="appearance_preset"]').val();o=i?[i]:t("#forminator_bulk_ids").val().split(",");var r={action:"forminator_apply_appearance_preset",_ajax_nonce:Forminator.Data.modules.ApplyPreset.nonce,preset_id:a,ids:o};return t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:r,success:function(t){t&&t.success?(Forminator.Notification.open("success",t.data,4e3),Forminator.Popup.close()):(Forminator.Notification.open("error",t.data,4e3),e.removeClass("sui-button-onload-text"))},error:function(t){Forminator.Notification.open("error",t.data,4e3),e.removeClass("sui-button-onload-text")}}),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/confirm",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-confirmation-popup-tpl").html()),default_options:{confirmation_message:Forminator.l10n.popup.confirm_action,confirmation_title:Forminator.l10n.popup.confirm_title,confirm_callback:function(){this.close()},cancel_callback:function(){this.close()}},confirm_options:{},events:{"click .popup-confirmation-confirm":"confirm_action","click .popup-confirmation-cancel":"cancel_action"},initialize:function(t){this.confirm_options=_.defaults(t,this.default_options)},render:function(){return this.$el.html(this.popupTpl(this.confirm_options)),this},confirm_action:function(){this.confirm_options.confirm_callback.apply(this,[])},cancel_action:function(){this.confirm_options.cancel_callback.apply(this,[])},close:function(){Forminator.Popup.close()}})})}(jQuery),function(t){formintorjs.define("admin/popup/addons-actions",["text!tpl/dashboard.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(n).find("#forminator-addons-action-popup-tpl").html()),initialize:function(t){this.nonce=t.nonce,this.is_network=t.is_network,this.id=t.id,this.referrer=t.referrer,this.content=t.content||Forminator.l10n.popup.cannot_be_reverted,this.forms=t.forms||[]},render:function(){this.$el.html(this.popupTpl({nonce:this.nonce,is_network:this.is_network,id:this.id,referrer:this.referrer,content:this.content,forms:this.forms}))}})})}(jQuery),formintorjs.define("text!tpl/reports.html",[],function(){
return'<div>\n    <script type="text/template" id="forminator-add-reports-content">\n        <div\n            id="forminator-notifications-slide-settings"\n            class="sui-modal-slide sui-active sui-loaded"\n            data-modal-size="lg"\n        >\n            <div class="sui-box">\n                <div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\n                    <button class="sui-button-icon sui-button-float--right forminator-popup-close">\n                        <span class="sui-icon-close" aria-hidden="true"></span>\n                        <span class="sui-screen-reader-text">Close</span>\n                    </button>\n                    <h3 id="forminator-settings__title" class="sui-box-title sui-lg">\n                        {{ Forminator.l10n.popup.settings_label }}\n                    </h3>\n                    <p id="forminator-settings__description" class="sui-description">\n                        {{ Forminator.l10n.popup.settings_description }}\n                    </p>\n                </div>\n                <div class="sui-box-body reports-settings-content"></div>\n\n                <div class="sui-box-footer sui-content-separated">\n                    <button class="sui-button sui-button-ghost forminator-cancel-report">\n                        <span class="sui-loading-text">{{ Forminator.l10n.popup.cancel }}</span>\n                        <i class="sui-icon-load sui-loading" aria-hidden="true"></i>\n                    </button>\n                    <button\n                            id="forminator-notifications-slide-settings-next"\n                            class="sui-button forminator-popup-slide"\n                            data-modal-slide="forminator-notifications-slide-schedule"\n                            data-modal-slide-focus=""\n                            data-modal-slide-intro="next"\n                    >\n                        <span class="sui-loading-text">{{ Forminator.l10n.form.continue_button }}</span>\n                    </button>\n                </div>\n            </div>\n        </div>\n        <div\n            id="forminator-notifications-slide-schedule"\n            class="sui-modal-slide"\n            data-modal-size="lg"\n            aria-hidden="true"\n            tabindex="-1"\n        >\n            <div class="sui-box">\n                <div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\n                    <button class="sui-button-icon sui-button-float--right forminator-popup-close" data-modal-close>\n                        <span class="sui-icon-close sui-md" aria-hidden="true"></span>\n                        <span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\n                    </button>\n\n                    <h3 id="forminator-schedule__title" class="sui-box-title sui-lg">\n                        {{ Forminator.l10n.popup.schedule_label }}\n                    </h3>\n\n                    <p id="forminator-schedule__description" class="sui-description">\n                        {{ Forminator.l10n.popup.schedule_description }}\n                    </p>\n\n                </div>\n\n                <div class="sui-box-body reports-schedule-content"></div>\n                <div class="sui-box-footer sui-content-separated">\n\n                    <button id="forminator-notifications-slide-schedule-back"\n                            class="forminator-popup-slide sui-button sui-button-ghost"\n                            data-modal-slide="forminator-notifications-slide-settings"\n                            data-modal-slide-focus=""\n                            data-modal-slide-intro="back">\n                        <span class="sui-loading-text">{{ Forminator.l10n.popup.back }}</span>\n                        <i class="sui-icon-load sui-loading" aria-hidden="true"></i>\n                    </button>\n                    <button id="forminator-notifications-slide-schedule-next"\n                            class="sui-button forminator-popup-slide"\n                            data-modal-slide="forminator-notifications-slide-recipients"\n                            data-modal-slide-focus=""\n                            data-modal-slide-intro="next">\n                        <span class="sui-loading-text">{{ Forminator.l10n.quiz.continue_button }}</span>\n                        <i class="sui-icon-load sui-loading" aria-hidden="true"></i>\n                    </button>\n                </div>\n            </div>\n        </div>\n\n        <div\n                id="forminator-notifications-slide-recipients"\n                class="sui-modal-slide"\n                data-modal-size="lg"\n                aria-hidden="true"\n                tabindex="-1"\n        >\n            <div class="sui-box">\n                <div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\n                    <button class="sui-button-icon sui-button-float--right forminator-popup-close" data-modal-close>\n                        <span class="sui-icon-close sui-md" aria-hidden="true"></span>\n                        <span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\n                    </button>\n                    <h3 id="forminator-popup__title" class="sui-box-title sui-lg">\n                        {{ Forminator.l10n.popup.recipients_label }}\n                    </h3>\n                    <p id="forminator-popup__description" class="sui-description">\n                        {{ Forminator.l10n.popup.recipients_description }}\n                    </p>\n                </div>\n                <div class="sui-box-body reports-recipients-content"></div>\n                <div class="sui-box-footer sui-content-separated">\n                    <button id="forminator-notifications-slide-recipients-back"\n                            class="forminator-popup-slide sui-button sui-button-ghost"\n                            data-modal-slide="forminator-notifications-slide-schedule"\n                            data-modal-slide-focus=""\n                            data-modal-slide-intro="back">\n                        <span class="sui-loading-text">{{ Forminator.l10n.popup.back }}</span>\n                        <i class="sui-icon-load sui-loading" aria-hidden="true"></i>\n                    </button>\n                    <div class="report-button-with-toggle">\n                        <label for="notification-status-slide" class="sui-toggle">\n                            <input type="checkbox" id="notification-status-slide" class="notification-status"\n                                   aria-labelledby="notification-status-slide-label"\n                                   {{ \'active\' === notification.report_status ? \'checked="checked"\' : \'\' }}>\n                            <span class="sui-toggle-slider" aria-hidden="true"></span>\n                            <span id="notification-status-slide-label" class="sui-toggle-label">\n                                {{ Forminator.l10n.popup.status_label }}\n                            </span>\n                        </label>\n                        <button class="sui-button forminator-report-save sui-button-blue" data-id="0">\n                            <span class="sui-loading-text">{{ Forminator.l10n.popup.save_changes }}</span>\n                            <i class="sui-icon-load sui-loading" aria-hidden="true"></i>\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </div>\n    <\/script>\n    <script type="text/template" id="forminator-reports-settings-content">\n        <div>\n            <div class="sui-box-settings-row">\n                <div class="sui-box-settings-col-2">\n                    <div class="sui-form-field">\n                        <label for="report-title"\n                               id="label-report-title" class="sui-label">\n                            {{ Forminator.l10n.commons.label }}\n                        </label>\n                        <input\n                                placeholder="Placeholder"\n                                id="report-title"\n                                name="label"\n                                value="{{ settings.label }}"\n                                class="sui-form-control"\n                                aria-labelledby="label-report-title"\n                                aria-describedby="error-report-title description-report-title"\n                        />\n                        <span id="description-report-title" class="sui-description">\n                            {{ Forminator.l10n.popup.label_description }}\n                        </span>\n                    </div>\n                </div>\n            </div>\n            <div class="sui-box-settings-row">\n                <div class="sui-box-settings-col-2">\n                    <label class="sui-settings-label">\n                        {{ Forminator.l10n.commons.module }}\n                    </label>\n                    <span class="sui-description">\n                       {{ Forminator.l10n.popup.module_description }}\n                    </span>\n                    <div class="sui-form-field">\n                        <div class="sui-side-tabs">\n                            <div class="sui-tabs-menu">\n                                <label for="module_forms" class="sui-tab-item {{ \'forms\' === settings.module ? \'active\' : \'\' }}">\n                                    <input type="radio"\n                                           name="module"\n                                           id="module_forms"\n                                           value="forms"\n                                           aria-controls="module_forms__content"\n                                           data-tab-menu="report-module">\n                                    {{ Forminator.l10n.popup.forms }}\n                                </label>\n                                <label for="module_quizzes" class="sui-tab-item {{ \'quizzes\' === settings.module ? \'active\' : \'\' }}">\n                                    <input type="radio"\n                                           name="module"\n                                           id="module_quizzes"\n                                           value="quizzes"\n                                           aria-controls="module_quizzes__content"\n                                           data-tab-menu="report-module">\n                                    {{ Forminator.l10n.popup.quizzes }}\n                                </label>\n                                <label for="module_polls" class="sui-tab-item {{ \'polls\' === settings.module ? \'active\' : \'\' }}">\n                                    <input type="radio"\n                                           name="module"\n                                           id="module_polls"\n                                           value="polls"\n                                           aria-controls="module_polls__content"\n                                           data-tab-menu="report-module">\n                                    {{ Forminator.l10n.popup.polls }}\n                                </label>\n                            </div>\n    \n                            <div class="sui-tabs-content">\n    \n                                <div role="tabpanel" id="module_forms__content"\n                                     class="sui-tab-content {{ \'forms\' === settings.module ? \'active\' : \'\' }}"\n                                     aria-labelledby="module_forms__tab" tabindex="0"\n                                     data-tab-content="report-module">\n                                    <div class="sui-border-frame">\n                                        <label class="sui-settings-label sui-sm">\n                                            {{ Forminator.l10n.popup.select_forms }}\n                                        </label>\n    \n                                        <span class="sui-description">\n                                            {{ Forminator.l10n.popup.select_forms_description }}\n                                        </span>\n    \n                                        <div class="sui-form-field">\n    \n                                            <div class="sui-side-tabs">\n                                                <div class="sui-tabs-menu">\n                                                    <label for="all_forms" class="sui-tab-item {{ undefined === settings.forms_type || \'all\' === settings.forms_type ? \'active\' : \'\' }}">\n                                                        <input type="radio"\n                                                               name="forms_type"\n                                                               id="all_forms"\n                                                               value="all"\n                                                               aria-controls="all_forms__content"\n                                                               data-tab-menu="select-form">\n                                                        {{ Forminator.l10n.popup.all_forms }}\n                                                    </label>\n                                                    <label for="selected_forms" class="sui-tab-item {{ \'selected\' === settings.forms_type ? \'active\' : \'\' }}">\n                                                        <input type="radio"\n                                                               name="forms_type"\n                                                               id="selected_forms"\n                                                               value="selected"\n                                                               aria-controls="selected_forms__content"\n                                                               data-tab-menu="select-form">\n                                                        {{ Forminator.l10n.popup.selected_forms }}\n                                                    </label>\n                                                </div>\n    \n                                                <div class="sui-tabs-content">\n    \n                                                    <div role="tabpanel" id="selected_forms__content"\n                                                         class="sui-tab-content {{ \'selected\' === settings.forms_type ? \'active\' : \'\' }}"\n                                                         aria-labelledby="selected_forms" tabindex="0" hidden\n                                                         data-tab-content="select-form">\n                                                        <div class="sui-border-frame">\n                                                            <div class="sui-form-field">\n                                                                <label class="sui-label">\n                                                                    {{ Forminator.l10n.popup.select_forms }}\n                                                                </label>\n    \n                                                                <select name="select_forms" class="sui-select" multiple>\n                                                                    {[ let selected_form = settings.selected_forms;\n                                                                    _.each(Forminator.Data.form_modules, function(forms){ ]}\n                                                                        <option value="{{ forms.id }}"\n                                                                            {[ if( undefined !== selected_form && selected_form.indexOf(forms.id.toString()) !== -1 ) { ]}\n                                                                                selected="selected"\n                                                                            {[ } ]}>\n                                                                            {{ forms.name }}\n                                                                        </option>\n                                                                    {[ }); ]}\n                                                                </select>\n    \n                                                                <p id="selected-forms-description" class="sui-description">\n                                                                    {{ Forminator.l10n.popup.selected_forms_description }}\n                                                                </p>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n    \n                                <div role="tabpanel" id="module_quizzes__content"\n                                     class="sui-tab-content {{ \'quizzes\' === settings.module ? \'active\' : \'\' }}"\n                                     aria-labelledby="module_quizzes__tab" tabindex="0" hidden\n                                     data-tab-content="report-module">\n                                    <div class="sui-border-frame">\n                                        <label class="sui-settings-label sui-sm">\n                                            {{ Forminator.l10n.popup.select_quizzes }}\n                                        </label>\n    \n                                        <span class="sui-description">\n                                            {{ Forminator.l10n.popup.select_quizzes_description }}\n                                        </span>\n    \n                                        <div class="sui-form-field">\n    \n                                            <div class="sui-side-tabs">\n                                                <div class="sui-tabs-menu">\n                                                    <label for="all_quizzes" class="sui-tab-item {{ undefined === settings.quizzes_type || \'all\' === settings.quizzes_type ? \'active\' : \'\' }}">\n                                                        <input type="radio"\n                                                               name="quizzes_type"\n                                                               id="all_quizzes"\n                                                               value="all"\n                                                               aria-controls="all_quizzes__content"\n                                                               data-tab-menu="select-quiz">\n                                                        {{ Forminator.l10n.popup.all_quizzes }}\n                                                    </label>\n                                                    <label for="selected_quizzes" class="sui-tab-item {{ \'selected\' === settings.quizzes_type ? \'active\' : \'\' }}">\n                                                        <input type="radio"\n                                                               name="quizzes_type"\n                                                               id="selected_quizzes"\n                                                               value="selected"\n                                                               aria-controls="selected_quizzes__content"\n                                                               data-tab-menu="select-quiz">\n                                                        {{ Forminator.l10n.popup.selected_quizzes }}\n                                                    </label>\n                                                </div>\n    \n                                                <div class="sui-tabs-content">\n    \n                                                    <div role="tabpanel" id="selected_quizzes__content"\n                                                         class="sui-tab-content {{ \'selected\' === settings.quizzes_type ? \'active\' : \'\' }}"\n                                                         aria-labelledby="selected_quizzes__tab" tabindex="0" hidden\n                                                         data-tab-content="select-quiz">\n                                                        <div class="sui-border-frame">\n                                                            <div class="sui-form-field">\n                                                                <label class="sui-label">\n                                                                    {{ Forminator.l10n.popup.select_quizzes }}\n                                                                </label>\n    \n                                                                <select name="select_quizzes" class="sui-select" multiple>\n                                                                    {[ let selected_quiz = settings.selected_quizzes;\n                                                                    _.each(Forminator.Data.quiz_modules, function(quizzes){ ]}\n                                                                        <option value="{{ quizzes.id }}"\n                                                                        {[ if( undefined !== selected_quiz && selected_quiz.indexOf(quizzes.id.toString()) !== -1 ) { ]}selected="selected"{[ } ]}>\n                                                                            {{ quizzes.name }}\n                                                                        </option>\n                                                                    {[ }); ]}\n                                                                </select>\n    \n                                                                <p id="selected-quizzes-description" class="sui-description">\n                                                                    {{ Forminator.l10n.popup.selected_quizzes_description }}\n                                                                </p>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n    \n                                <div role="tabpanel" id="module_polls__content"\n                                     class="sui-tab-content {{ \'polls\' === settings.module ? \'active\' : \'\' }}"\n                                     aria-labelledby="module_polls__tab" tabindex="0" hidden\n                                     data-tab-content="report-module">\n                                    <div class="sui-border-frame">\n                                        <label class="sui-settings-label sui-sm">\n                                            {{ Forminator.l10n.popup.select_polls }}\n                                        </label>\n    \n                                        <span class="sui-description">\n                                            {{ Forminator.l10n.popup.select_polls_description }}\n                                        </span>\n    \n                                        <div class="sui-form-field">\n    \n                                            <div class="sui-side-tabs">\n                                                <div class="sui-tabs-menu">\n                                                    <label for="all_polls" class="sui-tab-item {{ undefined === settings.polls_type || \'all\' === settings.polls_type ? \'active\' : \'\' }}">\n                                                        <input type="radio"\n                                                               name="polls_type"\n                                                               id="all_polls"\n                                                               value="all"\n                                                               aria-controls="all_polls__content"\n                                                               data-tab-menu="select-poll">\n                                                        {{ Forminator.l10n.popup.all_polls }}\n                                                    </label>\n                                                    <label for="all_polls" class="sui-tab-item {{ \'selected\' === settings.polls_type ? \'active\' : \'\' }}">\n                                                        <input type="radio"\n                                                               name="polls_type"\n                                                               id="selected_polls"\n                                                               value="selected"\n                                                               aria-controls="selected_polls__content"\n                                                               data-tab-menu="select-quiz">\n                                                        {{ Forminator.l10n.popup.selected_polls }}\n                                                    </label>\n                                                </div>\n    \n                                                <div class="sui-tabs-content">\n    \n                                                    <div role="tabpanel" id="selected_polls__content"\n                                                         class="sui-tab-content {{ \'selected\' === settings.polls_type ? \'active\' : \'\' }}"\n                                                         aria-labelledby="selected_polls__tab" tabindex="0" hidden\n                                                         data-tab-content="select-quiz">\n                                                        <div class="sui-border-frame">\n                                                            <div class="sui-form-field">\n                                                                <label class="sui-label">\n                                                                    {{ Forminator.l10n.popup.select_polls }}\n                                                                </label>\n    \n                                                                <select name="select_polls" class="sui-select" multiple>\n                                                                    {[ let selected_polls = settings.selected_polls;\n                                                                    _.each(Forminator.Data.poll_modules, function(polls){ ]}\n                                                                        <option value="{{ polls.id }}"\n                                                                         {[ if( undefined !== selected_polls && selected_polls.indexOf(polls.id.toString()) !== -1 ) { ]}selected="selected"{[ } ]}>\n                                                                            {{ polls.name }}\n                                                                        </option>\n                                                                    {[ }); ]}\n                                                                </select>\n    \n                                                                <p id="selected-poll-description" class="sui-description">\n                                                                    {{ Forminator.l10n.popup.selected_polls_description }}\n                                                                </p>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    <\/script>\n    <script type="text/template" id="forminator-reports-schedule-content">\n        <div class="sui-box-settings-row">\n\n            <div class="sui-box-settings-col-2">\n                <div class="sui-side-tabs">\n                    <div class="sui-tabs-menu">\n                        <label for="frequency_daily" class="sui-tab-item {{ \'daily\' === schedule.frequency ? \'active\' : \'\' }}">\n                            <input type="radio"\n                                   id="frequency_daily"\n                                   name="frequency"\n                                   aria-controls="frequency_daily__content"\n                                   value="daily"\n                                   data-tab-menu="report-frequency">\n                            {{ Forminator.l10n.popup.daily }}\n                        </label>\n                        <label for="frequency_weekly" class="sui-tab-item {{ \'weekly\' === schedule.frequency ? \'active\' : \'\' }}">\n                            <input type="radio"\n                                   name="frequency"\n                                   id="frequency_weekly"\n                                   aria-controls="frequency_weekly__content"\n                                   value="weekly"\n                                   data-tab-menu="report-frequency">\n                            {{ Forminator.l10n.popup.weekly }}\n                        </label>\n                        <label for="frequency_monthly" class="sui-tab-item {{ \'monthly\' === schedule.frequency ? \'active\' : \'\' }}">\n                            <input type="radio"\n                                   name="frequency"\n                                   id="frequency_monthly"\n                                   aria-controls="frequency_monthly__content"\n                                   value="monthly"\n                                   data-tab-menu="report-frequency">\n                            {{ Forminator.l10n.popup.monthly }}\n                        </label>\n                    </div>\n\n                    <div class="sui-tabs-content">\n\n                        <div role="tabpanel" id="frequency_daily__content" class="sui-tab-content\n                            {{ \'daily\' === schedule.frequency ? \'active\' : \'\' }}"\n                             aria-labelledby="frequency_daily__tab" tabindex="0"\n                             data-tab-content="report-frequency">\n                            <div class="sui-border-frame">\n                                <div class="sui-form-field sui-no-margin-bottom">\n                                    <label class="sui-label" for="report-time">\n                                        {{ Forminator.l10n.popup.day_time }}\n                                    </label>\n                                    <select name="report-time" id="report-time" class="sui-select">\n                                        {[ _.each(Forminator.l10n.popup.time_interval, function(interval){ ]}\n                                        <option value="{{ interval }}"\n                                            {[ if( undefined !== schedule.time && schedule.time === interval ) { ]}\n                                                selected="selected"\n                                            {[ } ]}\n                                        >{{ interval }}</option>\n                                        {[ }); ]}\n                                    </select>\n                                    <p id="select-single-frequency_time" class="sui-description">\n                                        {{ Forminator.l10n.popup.frequency_time }}\n                                    </p>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div role="tabpanel" id="frequency_weekly__content" class="sui-tab-content\n                            {{ \'weekly\' === schedule.frequency ? \'active\' : \'\' }}"\n                             aria-labelledby="frequency_weekly__tab" tabindex="0" hidden\n                             data-tab-content="report-frequency">\n                            <div class="sui-border-frame">\n                                <div class="sui-row sui-no-margin-bottom schedule-box">\n                                    <div class="sui-col sui-form-field sui-no-margin-bottom">\n                                        <label class="sui-label" for="week-days">\n                                            {{ Forminator.l10n.popup.week_day }}\n                                        </label>\n                                        <select name="week-days" class="sui-select" id="week-days">\n                                            {[ _.each(Forminator.l10n.popup.week_days, function(week, days){ ]}\n                                            <option value="{{ days }}"\n                                                {[ if( undefined !== schedule.weekDay && schedule.weekDay === days ) { ]}\n                                                    selected="selected"\n                                                {[ } ]}\n                                            >{{ week }}</option>\n                                            {[ }); ]}\n                                        </select>\n                                    </div>\n                                    <div class="sui-col sui-form-field sui-no-margin-bottom">\n                                        <label class="sui-label" for="week-time">\n                                            {{ Forminator.l10n.popup.day_time }}\n                                        </label>\n                                        <select name="week-time" class="sui-select" id="week-time">\n                                            {[ _.each(Forminator.l10n.popup.time_interval, function(interval){ ]}\n                                            <option value="{{ interval }}"\n                                                {[ if( undefined !== schedule.weekTime && schedule.weekTime === interval ) { ]}\n                                                    selected="selected"\n                                                {[ } ]}\n                                            >{{ interval }}</option>\n                                            {[ }); ]}\n                                        </select>\n                                    </div>\n                                    <p id="select-single-default-helper" class="sui-col-12 sui-description">\n                                        {{ Forminator.l10n.popup.frequency_time }}\n                                    </p>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div role="tabpanel" id="frequency_monthly__content" class="sui-tab-content\n                            {{ \'monthly\' === schedule.frequency ? \'active\' : \'\' }}"\n                             aria-labelledby="frequency_monthly__tab" tabindex="0" hidden\n                             data-tab-content="report-frequency">\n                            <div class="sui-border-frame">\n                                <div class="sui-row sui-no-margin-bottom schedule-box">\n                                    <div class="sui-col sui-form-field sui-no-margin-bottom">\n                                        <label class="sui-label" for="week-days">\n                                            {{ Forminator.l10n.popup.month_day }}\n                                        </label>\n                                        <select name="month-days" class="sui-select" id="month-days">\n                                            {[ _.each(Forminator.l10n.popup.month_days, function(month){ ]}\n                                            <option value="{{ month }}"\n                                                {[ if( undefined !== schedule.monthDay && schedule.monthDay === month.toString() ) { ]}\n                                                    selected="selected"\n                                                {[ } ]}\n                                            >{{ month }}</option>\n                                            {[ }); ]}\n                                        </select>\n                                    </div>\n                                    <div class="sui-col sui-form-field sui-no-margin-bottom">\n                                        <label class="sui-label" for="week-time">\n                                            {{ Forminator.l10n.popup.day_time }}\n                                        </label>\n                                        <select name="month-time" class="sui-select" id="month-time">\n                                            {[ _.each(Forminator.l10n.popup.time_interval, function(interval){ ]}\n                                            <option value="{{ interval }}"\n                                                {[ if( undefined !== schedule.monthTime && schedule.monthTime === interval ) { ]}\n                                                    selected="selected"\n                                                {[ } ]}\n                                            >{{ interval }}</option>\n                                            {[ }); ]}\n                                        </select>\n                                    </div>\n                                    <p id="select-month-default-helper" class="sui-col-12 sui-description">\n                                        {{ Forminator.l10n.popup.frequency_time }}\n                                    </p>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    <\/script>\n    <script type="text/template" id="forminator-reports-recipients-content">\n        <div class="sui-box-settings-row">\n            <div class="sui-box-settings-col-2">\n                <div class="sui-tabs sui-tabs-overflow">\n                    <div role="tablist" class="sui-tabs-menu">\n                        <button type="button" role="tab" id="notifications-add-users" class="sui-tab-item active"\n                                aria-controls="notifications-add-users-content" aria-selected="true">\n                            {{ Forminator.l10n.popup.add_users }}\n                        </button>\n                        <button type="button" role="tab" id="notifications-invite-users" class="sui-tab-item"\n                                aria-controls="notifications-invite-users-content" aria-selected="false" tabindex="-1">\n                            {{ Forminator.l10n.popup.add_by_email }}\n                        </button>\n                    </div>\n                    <div class="sui-tabs-content">\n                        <div role="tabpanel" tabindex="0" id="notifications-add-users-content"\n                             class="sui-tab-content active" aria-labelledby="notifications-add-users">\n                            <div class="sui-form-field sui-no-margin-bottom">\n                                <label for="forminator-search-users" class="sui-label">\n                                    {{ Forminator.l10n.popup.search_user }}\n                                </label>\n                                <select id="forminator-search-users" class="sui-select" data-theme="search"\n                                        data-placeholder="{{ Forminator.l10n.popup.search_placeholder }}"\n                                        multiple>\n                                </select>\n                            </div>\n                            {[ const hasUserRecipients = recipients.find( r => undefined !== r.role && \'\' !== r.role ); ]}\n                            <div class="{{ undefined === hasUserRecipients ? \'sui-hidden\' : \'sui-margin-top\' }}">\n                                <strong>{{ Forminator.l10n.popup.added_users }}</strong>\n                                <div class="sui-recipients" id="modal-user-recipients-list">\n                                    {[ for ( const recipient of recipients ) {\n                                    if ( \'\' !== recipient.role ) { ]}\n                                    <div class="sui-recipient sui-recipient-rounded" data-id="{{ recipient.id }}" data-email="{{ recipient.email }}">\n                                        {[ let subClass = \'\';\n                                        if ( \'undefined\' !== typeof recipient.is_pending ) {\n                                        if ( ! recipient.is_pending && \'undefined\' !== typeof recipient.is_subscribed && ! recipient.is_subscribed ) {\n                                        subClass = \'unsubscribed\';\n                                        } else {\n                                        subClass = recipient.is_pending ? \'pending\' : \'confirmed\';\n                                        }\n                                        } ]}\n                                        <span class="sui-recipient-name">\n                                            <span class="subscriber {{ subClass }}">\n                                                {[ if ( \'pending\' === subClass ) { ]}\n                                                <span class="sui-tooltip" data-tooltip="{{ Forminator.l10n.popup.awaiting_confirmation }}">\n                                                {[ } ]}\n                                                    <img src="{{ recipient.avatar }}" alt="{{ recipient.email }}">\n                                                {[ if ( \'pending\' === subClass ) { ]}\n                                                </span>\n                                                 {[ } ]}\n                                            </span>\n                                            <span class="forminator-recipient-name">{{ recipient.name }}</span>\n                                        </span>\n                                        <span class="sui-recipient-email">{{ recipient.role }}</span>\n                                        {[ if ( \'pending\' === subClass || \'unsubscribed\' === subClass ) { ]}\n                                        <button\n                                                type="button"\n                                                class="resend-invite sui-button-icon sui-tooltip"\n                                                data-tooltip="{{ Forminator.l10n.popup.resend_invite }}"\n                                        >\n                                            <span class="sui-icon-send" aria-hidden="true"></span>\n                                        </button>\n                                        {[ } ]}\n                                        <button\n                                                type="button"\n                                                class="sui-button-icon sui-tooltip forminator-remove-recipient"\n                                                data-tooltip="{{ Forminator.l10n.popup.remove_user }}"\n                                                data-id="{{ recipient.id }}"\n                                                data-email="{{ recipient.email }}"\n                                                data-type="user">\n                                            <span class="sui-icon-trash" aria-hidden="true"></span>\n                                        </button>\n                                    </div>\n                                    {[ } ]}\n                                    {[ } ]}\n                                </div>\n                            </div>\n                            <div class="sui-margin-top sui-hidden">\n                                <strong>{{ Forminator.l10n.popup.users }}</strong>\n                                <div class="sui-recipients" id="forminator-user-list"></div>\n                            </div>\n                            <div class="sui-notice sui-notice-warning sui-margin-top notifications-recipients-notice sui-hidden">\n                                <div class="sui-notice-content">\n                                    <div class="sui-notice-message">\n                                        <span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>\n                                        <p></p>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div role="tabpanel" tabindex="0" id="notifications-invite-users-content" class="sui-tab-content" aria-labelledby="notifications-invite-users" hidden>\n                            <p class="sui-description">\n                                {{ Forminator.l10n.popup.invite_description }}\n                            </p>\n                            <div class="sui-form-field">\n                                <label for="recipient-name" id="label-recipient-name" class="sui-label">\n                                    {{ Forminator.l10n.popup.first_name }}\n                                </label>\n\n                                <input\n                                        placeholder="{{ Forminator.l10n.popup.name_placeholder }}"\n                                        id="recipient-name"\n                                        class="sui-form-control"\n                                        aria-labelledby="label-recipient-name"\n                                />\n                            </div>\n\n                            <div class="sui-form-field">\n                                <label for="recipient-email" id="label-recipient-email" class="sui-label">\n                                    {{ Forminator.l10n.popup.email_address }}\n                                </label>\n\n                                <input\n                                        placeholder="{{ Forminator.l10n.popup.email_placeholder }}"\n                                        id="recipient-email"\n                                        class="sui-form-control"\n                                        aria-labelledby="label-recipient-email"\n                                />\n                                <span id="error-recipient-email" class="sui-error-message" role="alert"></span>\n                            </div>\n\n                            <div class="sui-form-field sui-no-margin-bottom">\n                                <button type="button" id="add-recipient-button" class="sui-button" aria-live="polite" disabled="disabled">\n                                    <span class="sui-button-text-default">{{ Forminator.l10n.popup.add_recipient }}</span>\n                                    <span class="sui-button-text-onload">\n                                        <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>\n                                        {{ Forminator.l10n.popup.adding_recipient }}\n                                    </span>\n                                </button>\n                            </div>\n\n                            {[ const hasInvitedRecipients = recipients.find( r => undefined === r.role || \'\' === r.role ); ]}\n                            <div class="{{ undefined === hasInvitedRecipients ? \'sui-hidden\' : \'sui-margin-top\' }}">\n                                <strong>{{ Forminator.l10n.popup.added_users }}</strong>\n                                <div class="sui-recipients" id="modal-email-recipients-list">\n                                    {[ for ( const recipient of recipients ) {\n                                    if ( undefined === recipient.role || \'\' === recipient.role ) { ]}\n                                    <div class="sui-recipient sui-recipient-rounded" data-id="{{ recipient.id }}" data-email="{{ recipient.email }}">\n                                        {[ let subClass = \'\';\n                                        if ( \'undefined\' !== typeof recipient.is_pending ) {\n                                        if ( ! recipient.is_pending && \'undefined\' !== typeof recipient.is_subscribed && ! recipient.is_subscribed ) {\n                                        subClass = \'unsubscribed\';\n                                        } else {\n                                        subClass = recipient.is_pending ? \'pending\' : \'confirmed\';\n                                        }\n                                        } ]}\n                                        <span class="sui-recipient-name">\n                                            <span class="subscriber {{ subClass }}">\n                                                {[ if ( \'pending\' === subClass ) { ]}\n                                                    <span class="sui-tooltip" data-tooltip="{{ Forminator.l10n.popup.awaiting_confirmation }}">\n                                                {[ } ]}\n                                                    <img src="{{ recipient.avatar }}" alt="{{ recipient.email }}">\n                                                {[ if ( \'pending\' === subClass ) { ]}\n                                                    </span>\n                                                {[ } ]}\n                                            </span>\n                                            <span>{{ recipient.name }}</span>\n                                        </span>\n                                        <span class="sui-recipient-email">{{ recipient.email }}</span>\n                                        {[ if ( \'pending\' === subClass || \'unsubscribed\' === subClass ) { ]}\n                                        <button\n                                                type="button"\n                                                class="resend-invite sui-button-icon sui-tooltip"\n                                                data-tooltip="{{ Forminator.l10n.popup.resend_invite }}"\n                                                data-name="{{ recipient.name }}"\n                                                data-email="{{ recipient.email }}">\n                                            <span class="sui-icon-send" aria-hidden="true"></span>\n                                        </button>\n                                        {[ } ]}\n                                        <button\n                                                type="button"\n                                                class="sui-button-icon sui-tooltip forminator-remove-recipient"\n                                                data-tooltip="{{ Forminator.l10n.popup.remove_user }}"\n                                                data-id="{{ recipient.id }}"\n                                                data-email="{{ recipient.email }}"\n                                                data-type="email">\n                                            <span class="sui-icon-trash" aria-hidden="true"></span>\n                                        </button>\n                                    </div>\n                                    {[ } ]}\n                                    {[ } ]}\n                                </div>\n                            </div>\n\n                            <div class="sui-notice sui-notice-warning sui-margin-top notifications-recipients-notice sui-hidden">\n                                <div class="sui-notice-content">\n                                    <div class="sui-notice-message">\n                                        <span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>\n                                        <p></p>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    <\/script>\n    <script type="text/template" id="forminator-edit-reports-content">\n        <div class="sui-box">\n            <div class="sui-box-header">\n                <h3 id="notification-modal-title" class="sui-box-title">{{ Forminator.l10n.popup.configure }}</h3>\n\n                <div class="sui-actions-right">\n                    <button class="sui-button-icon forminator-popup-close">\n                        <span class="sui-icon-close" aria-hidden="true"></span>\n                        <span class="sui-screen-reader-text">Close this modal</span>\n                    </button>\n                </div>\n\n            </div>\n\n            <div class="sui-box-body">\n                <div class="sui-tabs sui-tabs-flushed">\n                    <div role="tablist" class="sui-tabs-menu">\n                        <button type="button" role="tab" id="report-tab-settings"\n                                class="sui-tab-item active" aria-controls="report-tab-settings-content"\n                                aria-selected="true">\n                            {{ Forminator.l10n.popup.settings_label }}\n                        </button>\n\n                        <button type="button" role="tab" id="report-tab-schedule"\n                                class="sui-tab-item" aria-controls="report-tab-schedule-content"\n                                aria-selected="false" tabindex="-1">\n                            {{ Forminator.l10n.popup.schedule_label }}\n                        </button>\n\n                        <button type="button" role="tab" id="report-tab-recipients"\n                                class="sui-tab-item" aria-controls="report-tab-recipients-content"\n                                aria-selected="false" tabindex="-1">\n                            {{ Forminator.l10n.popup.recipients_label }}\n                        </button>\n                    </div>\n\n                    <div class="sui-tabs-content">\n                        <div role="tabpanel" tabindex="0" id="report-tab-settings-content"\n                             class="sui-tab-content reports-settings-content active" aria-labelledby="report-tab-settings">\n                        </div>\n                        <div role="tabpanel" tabindex="0" id="report-tab-schedule-content"\n                             class="sui-tab-content reports-schedule-content" aria-labelledby="report-tab-schedule">\n                        </div>\n                        <div role="tabpanel" tabindex="0" id="report-tab-recipients-content"\n                             class="sui-tab-content reports-recipients-content" aria-labelledby="report-tab-recipients">\n                        </div>\n                    </div>\n                </div>\n            </div>\n\n            <div class="sui-box-footer sui-content-separated">\n                <button class="sui-button sui-button-ghost forminator-cancel-report">\n                    <span class="sui-loading-text">{{ Forminator.l10n.popup.cancel }}</span>\n                    <i class="sui-icon-load sui-loading" aria-hidden="true"></i>\n                </button>\n                <div class="report-button-with-toggle">\n                    <label for="notification-tab-status" class="sui-toggle">\n                        <input type="checkbox" id="notification-tab-status" class="notification-save-status"\n                               aria-labelledby="notification-tab-status-label"\n                               {{ \'active\' === notification.report_status ? \'checked="checked"\' : \'\' }}>\n                        <span class="sui-toggle-slider" aria-hidden="true"></span>\n                        <span id="notification-tab-status-label" class="sui-toggle-label">\n                            {{ Forminator.l10n.popup.status_label }}\n                        </span>\n                    </label>\n                    <button type="button" class="sui-button sui-button-blue forminator-report-save" aria-live="polite"\n                            data-id="{{ notification.report_id }}">\n                        <span class="sui-button-text-default">\n                            <span class="sui-icon-save" aria-hidden="true"></span>\n                            {{ Forminator.l10n.popup.save_changes }}\n                        </span>\n                        <span class="sui-button-text-onload">\n                            <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>\n                            {{ Forminator.l10n.popup.saving_changes }}\n                        </span>\n                    </button>\n                </div>\n            </div>\n        </div>\n    <\/script>\n</div>'
}),function(t){formintorjs.define("admin/popup/reports-notification",["text!tpl/reports.html"],function(n){return Backbone.View.extend({className:"forminator-popup-create--report-notification",events:{"click label.sui-tab-item":"inputTabs","click .forminator-popup-close":"close","click .forminator-cancel-report":"close","click button.forminator-popup-slide":"slide_modal","click button.forminator-add-recipient":"add_recipient","click button.forminator-remove-recipient":"remove_recipient","click button#add-recipient-button":"invite_add_recipient","click button.forminator-report-save":"report_save"},initialize:function(t){this.report_id=t.report_id},reportAddPopup:Forminator.Utils.template(t(n).find("#forminator-add-reports-content").html()),reportEditPopup:Forminator.Utils.template(t(n).find("#forminator-edit-reports-content").html()),settingsPopup:Forminator.Utils.template(t(n).find("#forminator-reports-settings-content").html()),schedulePopup:Forminator.Utils.template(t(n).find("#forminator-reports-schedule-content").html()),recipientsPopup:Forminator.Utils.template(t(n).find("#forminator-reports-recipients-content").html()),notification:{report_id:0,exclude:[],settings:{label:forminatorl10n.popup.form_reports,module:"forms",forms_type:"all"},schedule:{frequency:"daily"},report_status:"active",recipients:[]},render:function(){if(0!==this.report_id){var t="";"sui-box-body"!==this.className&&(t+='<div class="sui-box-body">'),t+='<p class="fui-loading-dialog" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>',"sui-box-body"!==this.className&&(t+="</div>"),this.$el.html(t),this.fetch_report_data(this.report_id)}else this.load_users(),this.$el.html(this.reportAddPopup({notification:this.notification})),this.render_html()},render_html:function(){var t=this;this.render_content(),setTimeout(function(){t.initSUI(),t.mapActions()},500)},render_content:function(){this.$el.find(".reports-settings-content").html(this.settingsPopup({settings:this.notification.settings})),this.$el.find(".reports-schedule-content").html(this.schedulePopup({schedule:this.notification.schedule})),this.$el.find(".reports-recipients-content").html(this.recipientsPopup({recipients:this.notification.recipients}))},initSUI:function(){t(".sui-select").each(function(){const n=t(this);"search"===n.data("theme")?SUI.select.initSearch(n):SUI.select.init(n)}),SUI.tabs()},mapActions:function(){this.initUserSelects(),this.toggleAddButton()},slide_modal:function(n){n.preventDefault();const e=t(n.currentTarget).data("modal-slide"),i=t(n.currentTarget).data("modal-slide-focus"),o=t(n.currentTarget).data("modal-slide-intro");SUI.slideModal(e,i,o)},close:function(t){t.preventDefault(),Forminator.Popup.close()},toggleAddButton:function(){const n=t('#notifications-invite-users-content input[id^="recipient-"]');n.on("keyup",function(){var e=!1;n.each(function(){""===t(this).val()&&(e=!0)}),e?t("#add-recipient-button").attr("disabled","disabled"):t("#add-recipient-button").attr("disabled",!1)})},inputTabs:function(t){var n=this.$(t.target),e=n.find("input"),i=e.data("tab-menu"),o=n.closest(".sui-side-tabs"),a=n.closest(".sui-tabs-menu").find(".sui-tab-item");n.is("label")&&(a.removeClass("active"),o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').length&&(o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').attr("hidden",!0),o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').removeClass("active")),n.addClass("active"),o.find("#"+e.attr("aria-controls")).addClass("active"),o.find("#"+e.attr("aria-controls")).attr("hidden",!1),o.find("#"+e.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},load_users:function(){var n=this;t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_search_users",nonce:forminatorl10n.popup.fetch_nonce,exclude:this.notification.exclude},success:function(e){if(void 0!==e.data){var i=0;e.data.forEach(function(t){n.addToUsersList(t,0==i++)}),n.fixRecipientCSS(t("#forminator-user-list"))}}})},addToUsersList:function(n,e){const i=t("#forminator-user-list"),o=e?"sui-tooltip-bottom-right":"sui-tooltip-top-right";var a='<div class="sui-recipient sui-recipient-rounded" data-id="'+n.id+'" data-email="'+n.email+'"><span class="sui-recipient-name"><span class="subscriber"><img alt="" src="'+n.avatar+'" alt="'+n.email+'"></span><span class="forminator-recipient-name">'+n.name+'</span></span><span class="sui-recipient-email">'+n.role+'</span><button type="button" class="sui-button-icon forminator-add-recipient sui-tooltip '+o+'" data-tooltip="'+forminatorl10n.popup.add_user+'"';a+="data-user='"+JSON.stringify(n)+"'>",a+='<span class="sui-icon-plus" aria-hidden="true"></span></button></div>',i.append(a),this.toggleRecipientList(i,!0)},toggleRecipientList:function(t,n){if(void 0!==t.html()){const e=0===t.html().trim().length;t.parent("div").toggleClass("sui-hidden",e).toggleClass("sui-margin-top",!e),n&&this.toggleUserNotice(!1)}},toggleUserNotice:function(n){const e=t(".notifications-recipients-notice"),i=t("#forminator-popup .sui-button.sui-button-blue"),o=t(".forminator-report-save");var a=forminatorl10n.popup.no_recipients;n?a=forminatorl10n.popup.recipient_exists:0!==this.notification.report_id&&(a=forminatorl10n.popup.no_recipient_disable),e.find("p").html(a),n?(e.removeClass("sui-hidden"),setTimeout(function(){e.addClass("sui-hidden")},3e3)):0===this.notification.recipients.length?(i.attr("disabled","disabled"),o.attr("disabled","disabled"),e.removeClass("sui-hidden")):(i.attr("disabled",!1),o.attr("disabled",!1),e.addClass("sui-hidden"))},fixRecipientCSS:function(t){const n=t.children().length>1?"hidden":"unset";t.css("overflow-x",n),t.find(".sui-recipient:first-of-type .sui-tooltip").removeClass("sui-tooltip-top-right").addClass("sui-tooltip-bottom-right")},add_recipient:function(n,e){if(n.preventDefault(),""!==e&&void 0!==e||(e=t(n.currentTarget).data("user")),"object"===jQuery.type(e)){this.addUser(e,"user");const i=t("#forminator-user-list"),o='.sui-recipient[data-email="'+e.email+'"]';i.find(o).remove(),this.fixRecipientCSS(i),this.toggleRecipientList(i,!1)}},addUser:function(n,e){if(this.notification.recipients.findIndex(function(t){return n.email===t.email})>-1)return void this.toggleUserNotice(!0);const i=t("#modal-"+e+"-recipients-list"),o=""===n.role?n.email:n.role;var a="";void 0!==n.is_pending&&(a=n.is_pending||void 0===n.is_subscribed||n.is_subscribed?n.is_pending?"pending":"confirmed":"unsubscribed");var r='<img src="'+n.avatar+'" alt="'+n.email+'">',s="";"pending"!==a&&"unsubscribed"!==a||(r='<span class="sui-tooltip" data-tooltip="'+forminatorl10n.popup.awaiting_confirmation+'">'+r+"</span>",s='<button type="button" class="resend-invite sui-button-icon sui-tooltip" data-tooltip="'+forminatorl10n.popup.resend_invite+'"><span class="sui-icon-send" aria-hidden="true"></span></button>');const l='<div class="sui-recipient sui-recipient-rounded" data-id="'+n.id+'" data-email="'+n.email+'"><span class="sui-recipient-name"><span class="subscriber '+a+'">'+r+'</span><span class="forminator-recipient-name">'+n.name+'</span></span><span class="sui-recipient-email">'+o+"</span>"+s+'<button type="button" class="sui-button-icon forminator-remove-recipient sui-tooltip" data-tooltip="'+forminatorl10n.popup.remove_user+'" data-id="'+n.id+'" data-email="'+n.email+'"data-type="'+e+'"><span class="sui-icon-trash" aria-hidden="true"></span></button></div>';i.append(l),this.notification.recipients.push(n),"user"===e&&this.notification.exclude.push(n.id),this.toggleRecipientList(i,!0)},remove_recipient:function(n){n.preventDefault();const e=t(n.currentTarget).data("id"),i=t(n.currentTarget).data("email"),o=t(n.currentTarget).data("type"),a=t("#modal-"+o+"-recipients-list"),r='.sui-recipient[data-email="'+i+'"]',s=a.find(r);s.remove();var l;"user"===o&&(l=this.notification.exclude.indexOf(e.toString()),l>-1&&this.notification.exclude.splice(l,1),this.returnToList(s)),l=this.notification.recipients.findIndex(function(t){return e===parseInt(t.id)&&i===t.email}),l>-1&&this.notification.recipients.splice(l,1),this.toggleRecipientList(a,!0)},returnToList:function(n){const e=t("#forminator-user-list"),i={id:n.data("id"),name:n.find(".forminator-recipient-name").text(),email:n.data("email"),role:n.find(".sui-recipient-email").text(),avatar:n.find("img").attr("src")};n.find(".resend-invite").remove(),n.find(".sui-icon-trash").removeClass("sui-icon-trash").addClass("sui-icon-plus"),n.find("button").removeClass("forminator-remove-recipient").attr("data-user",JSON.stringify(i)).attr("data-tooltip",forminatorl10n.popup.add_recipient).addClass("forminator-add-recipient sui-tooltip-top-right"),e.append(n),this.fixRecipientCSS(e),this.toggleRecipientList(e,!1)},initUserSelects:function(){const n=t("#forminator-search-users"),e=this;n.SUIselect2({minimumInputLength:3,maximumSelectionLength:1,ajax:{url:ajaxurl,type:"POST",dataType:"json",delay:250,data:function(t){return{action:"forminator_search_users",nonce:forminatorl10n.popup.fetch_nonce,query:t.term,exclude:e.notification.exclude}},processResults:function(t){return{results:jQuery.map(t.data,function(t,n){return{text:t.name,id:n,user:{name:t.name,email:t.email,role:t.role,avatar:t.avatar,id:t.id}}})}}}}),n.on("select2:select",function(t){e.add_recipient(t,t.params.data.user),n.val(null).trigger("change")})},invite_add_recipient:function(){const n=event.target;var e=this;n.classList.add("sui-button-onload-text");const i=t("input#recipient-name"),o=t("input#recipient-email"),a=t("#error-recipient-email");t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_get_avatar",nonce:forminatorl10n.popup.fetch_nonce,email:o.val()},success:function(t){if(void 0!==t.data){if(a.parents().removeClass("sui-form-field-error"),a.html(""),!t.success)return a.html(t.data.message),a.parents().addClass("sui-form-field-error"),void n.classList.remove("sui-button-onload-text");const r={name:Forminator.Utils.sanitize_text_field(i.val()),email:o.val(),role:"",avatar:t.data,id:0};e.addUser(r,"email"),i.val("").trigger("keyup"),o.val("").trigger("keyup"),n.classList.remove("sui-button-onload-text")}}})},process_settings:function(){this.notification.settings={label:t("input#report-title").val(),module:t('label.active input[name="module"]').val(),forms_type:t('label.active input[name="forms_type"]').val(),selected_forms:t('select[name="select_forms"]').val(),quizzes_type:t('label.active input[name="quizzes_type"]').val(),selected_quizzes:t('select[name="select_quizzes"]').val(),polls_type:t('label.active input[name="polls_type"]').val(),selected_polls:t('select[name="select_polls"]').val()}},process_schedule:function(){this.notification.schedule={frequency:t('label.active input[name="frequency"]').val(),time:t('select[name="report-time"]').val(),weekDay:t('select[name="week-days"]').val(),weekTime:t('select[name="week-time"]').val(),monthDay:t('select[name="month-days"]').val(),monthTime:t('select[name="month-time"]').val(),yearMonth:t('select[name="year-month"]').val(),yearDays:t('select[name="year-days"]').val(),yearTime:t('select[name="year-time"]').val()}},report_save:function(n){n.preventDefault();const e=t(n.currentTarget).data("id");this.process_settings(),this.process_schedule(),0!==this.notification.recipients.length&&this.save(this.notification,e)},save:function(n,e){var i=t("input.notification-save-status").is(":checked");t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_save_report",nonce:forminatorl10n.popup.save_nonce,report_id:e,reports:n,status:i?"active":"inactive"},success:function(t){t.success&&location.reload()}})},fetch_report_data:function(n){const e=this;t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_fetch_report",nonce:forminatorl10n.popup.fetch_nonce,report_id:n},success:function(t){t.success&&void 0!==t.data&&(e.notification=t.data,e.load_users(),e.$el.html(e.reportEditPopup({notification:e.notification})),e.render_html())}}).always(function(){e.$el.find(".fui-loading-dialog").remove()})}})})}(jQuery),function(t){formintorjs.define("admin/popups",["admin/popup/templates","admin/popup/login","admin/popup/quizzes","admin/popup/schedule","admin/popup/new-form","admin/popup/polls","admin/popup/ajax","admin/popup/delete","admin/popup/preview","admin/popup/reset-plugin-settings","admin/popup/disconnect-stripe","admin/popup/disconnect-paypal","admin/popup/approve-user","admin/popup/delete-unconfirmed-user","admin/popup/create-appearance-preset","admin/popup/apply-appearance-preset","admin/popup/confirm","admin/popup/addons-actions","admin/popup/reports-notification"],function(n,e,i,o,a,r,s,l,p,d,c,u,m,f,h,v,b,g,x){var y=Backbone.View.extend({el:"main.sui-wrap",events:{"click .wpmudev-open-modal":"open_modal","click .wpmudev-button-open-modal":"open_modal"},initialize:function(){var t=Forminator.Utils.get_url_param("new"),n=Forminator.Utils.get_url_param("title");if(t){var e=new a({title:n});e.render(),this.open_popup(e,Forminator.l10n.popup.congratulations)}return this.open_export(),this.open_delete(),this.maybeShowNotice(),this.render()},render:function(){return this},maybeShowNotice:function(){var n=Forminator.l10n.notices;n&&t.each(n,function(t,n){var e=4e3;"custom_notice"===t&&(e=void 0),Forminator.Notification.open("success",n,e)})},open_delete:function(){var t=Forminator.Utils.get_url_param("delete"),n=Forminator.Utils.get_url_param("module_id"),e=Forminator.Utils.get_url_param("nonce"),i=Forminator.Utils.get_url_param("module_type"),o=Forminator.l10n.popup.delete_form,a=Forminator.l10n.popup.are_you_sure_form,r=this;"poll"===i&&(o=Forminator.l10n.popup.delete_poll,a=Forminator.l10n.popup.are_you_sure_poll),"quiz"===i&&(o=Forminator.l10n.popup.delete_quiz,a=Forminator.l10n.popup.are_you_sure_quiz),t&&setTimeout(function(){r.open_delete_popup("",n,e,o,a)},100)},open_export:function(){var t=Forminator.Utils.get_url_param("export"),n=Forminator.Utils.get_url_param("module_id"),e=Forminator.Utils.get_url_param("exportnonce"),i=Forminator.Utils.get_url_param("module_type"),o=this;t&&setTimeout(function(){o.open_export_module_modal(i,e,n,Forminator.l10n.popup.export_form,!1,!0,"wpmudev-ajax-popup")},100)},open_modal:function(n){n.preventDefault();var e=t(n.target);t(n.target).closest(".wpmudev-split--item");e.hasClass("wpmudev-open-modal")||e.hasClass("wpmudev-button-open-modal")||(e=e.closest(".wpmudev-open-modal,.wpmudev-button-open-modal"));var i=e.data("modal"),o=e.data("nonce"),a=e.data("form-id"),r=e.data("action"),s=e.data("has-leads"),l=e.data("leads-id"),p=e.data("modal-title"),d=e.data("modal-content"),c=e.data("button-text"),u=e.data("nonce-preview");switch(i){case"custom_forms":this.open_cform_popup();break;case"login_registration_forms":this.open_login_popup();break;case"polls":this.open_polls_popup();break;case"quizzes":this.open_quizzes_popup();break;case"exports":this.open_settings_modal(i,o,a,Forminator.l10n.popup.your_exports);break;case"exports-schedule":this.open_exports_schedule_popup();break;case"delete-module":this.open_delete_popup("",a,o,p,d,r,c);break;case"delete-poll-submission":this.open_delete_popup("poll",a,o,p,d);break;case"paypal":this.open_settings_modal(i,o,a,Forminator.l10n.popup.paypal_settings);break;case"preview_cforms":_.isUndefined(p)&&(p=Forminator.l10n.popup.preview_cforms),this.open_preview_popup(a,p,"forminator_load_form","forminator_forms",u);break;case"preview_polls":_.isUndefined(p)&&(p=Forminator.l10n.popup.preview_polls),this.open_preview_popup(a,p,"forminator_load_poll","forminator_polls",u);break;case"preview_quizzes":_.isUndefined(p)&&(p=Forminator.l10n.popup.preview_quizzes),this.open_quiz_preview_popup(a,p,"forminator_load_quiz","forminator_quizzes",s,l,u);break;case"captcha":this.open_settings_modal(i,o,a,Forminator.l10n.popup.captcha_settings,!1,!0,"wpmudev-ajax-popup");break;case"currency":this.open_settings_modal(i,o,a,Forminator.l10n.popup.currency_settings,!1,!0,"wpmudev-ajax-popup");break;case"pagination_entries":this.open_settings_modal(i,o,a,Forminator.l10n.popup.pagination_entries,!1,!0,"wpmudev-ajax-popup");break;case"pagination_listings":this.open_settings_modal(i,o,a,Forminator.l10n.popup.pagination_listings,!1,!0,"wpmudev-ajax-popup");break;case"email_settings":this.open_settings_modal(i,o,a,Forminator.l10n.popup.email_settings,!1,!0,"wpmudev-ajax-popup");break;case"uninstall_settings":this.open_settings_modal(i,o,a,Forminator.l10n.popup.uninstall_settings,!1,!0,"wpmudev-ajax-popup");break;case"privacy_settings":this.open_settings_modal(i,o,a,Forminator.l10n.popup.privacy_settings,!1,!0,"wpmudev-ajax-popup");break;case"create_preset":this.create_appearance_preset_modal(o,p,d,e);break;case"apply_preset":this.apply_appearance_preset_modal(e);break;case"delete_preset":this.delete_preset_modal(p,d);break;case"export_form":this.open_export_module_modal("form",o,a,Forminator.l10n.popup.export_form,!1,!0,"wpmudev-ajax-popup");break;case"export_poll":this.open_export_module_modal("poll",o,a,Forminator.l10n.popup.export_poll,!1,!0,"wpmudev-ajax-popup");break;case"export_quiz":this.open_export_module_modal("quiz",o,a,Forminator.l10n.popup.export_quiz,!1,!0,"wpmudev-ajax-popup");break;case"import_form":this.open_import_module_modal("form",o,a,Forminator.l10n.popup.import_form,!1,!0,"wpmudev-ajax-popup");break;case"import_form_cf7":this.open_import_module_modal("form_cf7",o,a,Forminator.l10n.popup.import_form_cf7,!1,!0,"wpmudev-ajax-popup");break;case"import_form_ninja":this.open_import_module_modal("form_ninja",o,a,Forminator.l10n.popup.import_form_ninja,!1,!0,"wpmudev-ajax-popup");break;case"import_form_gravity":this.open_import_module_modal("form_gravity",o,a,Forminator.l10n.popup.import_form_gravity,!1,!0,"wpmudev-ajax-popup");break;case"import_poll":this.open_import_module_modal("poll",o,a,Forminator.l10n.popup.import_poll,!1,!0,"wpmudev-ajax-popup");break;case"import_quiz":this.open_import_module_modal("quiz",o,a,Forminator.l10n.popup.import_quiz,!1,!0,"wpmudev-ajax-popup");break;case"reset-plugin-settings":this.open_reset_plugin_settings_popup(o,p,d);break;case"disconnect-stripe":this.open_disconnect_stripe_popup(o,p,d);break;case"disconnect-paypal":this.open_disconnect_paypal_popup(o,p,d);break;case"approve-user-module":var m=e.data("activation-key");this.open_approve_user_popup(o,p,d,m);break;case"delete-unconfirmed-user-module":this.open_unconfirmed_user_popup(e.data("form-id"),o,p,d,e.data("activation-key"),e.data("entry-id"));break;case"addons_page_details":this.open_addons_page_modal(i,o,a,p,!1,!0,"wpmudev-ajax-popup");break;case"addons_page_install":this.open_addons_page_install(i,o,a,p,!1,!0,"wpmudev-ajax-popup");break;case"addons-deactivate":this.open_addons_actions_popup(i,e.data("addon"),o,p,d,e.data("addon-slug"),e.data("is_network"));break;case"configure-report":this.open_reports_notifications_popup(e.data("id"));break;case"delete-report":this.open_delete_popup("",a,o,p,d,r,c)}},open_popup:function(n,e,i,o,a,r,s,l,p){_.isUndefined(e)&&(e=Forminator.l10n.custom_form.popup_label);var d={title:e};_.isUndefined(i)||(d.has_custom_box=i),_.isUndefined(o)||(d.action_text=o),_.isUndefined(a)||(d.action_css_class=a),_.isUndefined(r)||(d.action_callback=r),Forminator.Popup.open(function(){_.isUndefined(n.el)?t(this).append(n):t(this).append(n.el),"function"==typeof s&&s.apply(this)},d,l,p)},open_ajax_popup:function(n,e,i,o,a,r,l,p,d){_.isUndefined(o)&&(o=Forminator.l10n.custom_form.popup_label),_.isUndefined(a)&&(a=!0),_.isUndefined(r)&&(r=!1),_.isUndefined(l)&&(l="sui-box-body");var c=new s({action:n,nonce:e,id:i,enable_loader:!0,className:l}),u={title:o,has_custom_box:r};Forminator.Popup.open(function(){t(this).append(c.el)},u,p,d)},open_delete_popup:function(n,e,i,o,a,r,s){r=r||"delete";var p=new l({module:n,id:e,action:r,nonce:i,referrer:window.location.pathname+window.location.search,button:Forminator.Utils.sanitize_text_field(s),content:Forminator.Utils.sanitize_text_field(a)});p.render();var d=p,c={title:o,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(d.el)?t(this).append(d):t(this).append(d.el)},c,"sm","center")},open_cform_popup:function(){var e=new n({type:"form"});e.render();var i=e,o={title:"",has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el)},o,"lg")},open_polls_popup:function(){var n=new r;n.render();var e=n,i={title:"",has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(e.el)?t(this).append(e):t(this).append(e.el)},i,"sm")},open_quizzes_popup:function(){var n=new i;n.render();var e=n,o={title:Forminator.l10n.quiz.choose_quiz_title,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(e.el)?t(this).append(e):t(this).append(e.el)},o,"lg")},open_import_module_modal:function(t,n,e,i,o,a,r){var s="";switch(t){case"form":case"form_cf7":case"form_ninja":case"form_gravity":case"poll":case"quiz":s="import_"+t}this.open_ajax_popup(s,n,e,i,o,a,r,"sm","center")},open_exports_schedule_popup:function(){var t=new o;t.render(),this.open_popup(t,Forminator.l10n.popup.edit_scheduled_export,!0,void 0,void 0,void 0,void 0,"md","inline")},open_reset_plugin_settings_popup:function(n,e,i){var o=new d({nonce:n,referrer:window.location.pathname+window.location.search,content:i});o.render();var a=o,r={title:e,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(a.el)?t(this).append(a):t(this).append(a.el)},r,"sm","center")},open_addons_actions_popup:function(n,e,i,o,a,r,s){s=s||!1;var l=new g({module:n,id:e,nonce:i,is_network:s,referrer:window.location.pathname+window.location.search,content:a,forms:"stripe"===r?forminatorData.stripeForms:[]});l.render();var p=l,d={title:o,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(p.el)?t(this).append(p):t(this).append(p.el)},d,"sm","center")},open_login_popup:function(){var t=new e;t.render(),this.open_popup(t,Forminator.l10n.popup.edit_login_form,void 0,void 0,void 0,void 0,void 0,"md","inline")},open_settings_modal:function(t,n,e,i,o,a,r){this.open_ajax_popup(t,n,e,i,o,a,r,"md","inline")},open_addons_page_modal:function(t,n,e,i,o,a,r){this.open_ajax_popup(t,n,e,i,o,a,r,"md","inline")},open_addons_page_install:function(t,n,e,i,o,a,r){this.open_ajax_popup(t,n,e,i,o,a,r,"lg","inline")},open_export_module_modal:function(t,n,e,i,o,a,r){var s="";switch(t){case"form":case"poll":case"quiz":s="export_"+t}this.open_ajax_popup(s,n,e,i,o,a,r,"md","inline")},open_preview_popup:function(n,e,i,o,a){_.isUndefined(e)&&(e=Forminator.l10n.custom_form.popup_label);var r=new p({action:i,type:o,nonce:a,id:n,enable_loader:!0,className:"sui-box-body"}),s={title:e,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(r.el)},s,"lg","inline")},open_quiz_preview_popup:function(n,e,i,o,a,r,s){_.isUndefined(e)&&(e=Forminator.l10n.custom_form.popup_label);var l=new p({action:i,type:o,id:n,enable_loader:!0,className:"sui-box-body",has_lead:a,leads_id:r,nonce:s}),d={title:e,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(l.el)},d,"lg","inline")},apply_appearance_preset_modal:function(n){var e=new v({$target:n});e.render();var i=e;Forminator.Popup.open(function(){t(this).append(i.el)},{title:Forminator.Data.modules.ApplyPreset.title,has_custom_box:!0},"sm","center")},delete_preset_modal:function(n,e){var i=new b({confirmation_message:e,confirm_callback:function(){var t=new Event("deletePreset");window.dispatchEvent(t)}});i.render();var o=i;Forminator.Popup.open(function(){t(this).append(o.el)},{title:n,has_custom_box:!0},"sm","center")},create_appearance_preset_modal:function(n,e,i,o){var a=new h({nonce:n,$target:o,title:e,content:i});a.render();var r=a;Forminator.Popup.open(function(){t(this).append(r.el)},{title:e,has_custom_box:!0},"sm","center")},open_disconnect_stripe_popup:function(n,e,i){var o=new c({nonce:n,referrer:window.location.pathname+window.location.search,content:i});o.render();var a=o,r={title:e,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(a.el)?t(this).append(a):t(this).append(a.el)},r,"sm","center")},open_disconnect_paypal_popup:function(n,e,i){var o=new u({nonce:n,referrer:window.location.pathname+window.location.search,content:i});o.render();var a=o,r={title:e,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(a.el)?t(this).append(a):t(this).append(a.el)},r,"sm","center")},open_approve_user_popup:function(n,e,i,o){var a=new m({nonce:n,referrer:window.location.pathname+window.location.search,content:i,activationKey:o});a.render();var r=a;Forminator.Popup.open(function(){_.isUndefined(r.el)?t(this).append(r):t(this).append(r.el)},{title:e,has_custom_box:!0},"md","inline")},open_unconfirmed_user_popup:function(n,e,i,o,a,r){var s=new f({formId:n,nonce:e,referrer:window.location.pathname+window.location.search,content:o,activationKey:a,entryId:r});s.render();var l=s;Forminator.Popup.open(function(){_.isUndefined(l.el)?t(this).append(l):t(this).append(l.el)},{title:i,has_custom_box:!0},"md","inline")},open_reports_notifications_popup:function(n){var e=new x({type:"reports",report_id:n});e.render();var i=e,o={title:"",has_custom_box:!0};0!==n?Forminator.Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el)},o,"md"):Forminator.Slide_Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el)},o,"md")}});jQuery(function(){new y})})}(jQuery),formintorjs.define("text!tpl/popups.html",[],function(){return'<div>\r\n\r\n\t\x3c!-- Base Structure --\x3e\r\n\t<script type="text/template" id="popup-tpl">\r\n\r\n\t\t<div class="sui-modal">\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="dialog"\r\n\t\t\t\tid="forminator-popup"\r\n\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\taria-modal="true"\r\n\t\t\t\taria-labelledby="forminator-popup__title"\r\n\t\t\t\taria-describedby="forminator-popup__description"\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-box"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- Modal Header: Center-aligned title with floating close button --\x3e\r\n\t<script type="text/template" id="popup-header-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close" data-modal-close>\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title sui-lg">{{ title }}</h3>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t\x3c!-- Modal Header: Inline title and close button --\x3e\r\n\t<script type="text/template" id="popup-header-inline-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title">{{ title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right">\r\n\r\n\t\t\t\t<button class="sui-button-icon forminator-popup-close" data-modal-close>\r\n\t\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-tpl">\r\n\r\n\t\t<div class="sui-modal sui-modal-sm">\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="dialog"\r\n\t\t\t\tid="forminator-integration-popup"\r\n\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\taria-modal="true"\r\n\t\t\t\taria-labelledby="forminator-integration-popup__title"\r\n\t\t\t\taria-describedby="forminator-integration-popup__description"\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-box"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-integration-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<figure class="sui-box-logo" aria-hidden="true">\r\n\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc="{{ image }}"\r\n\t\t\t\t\tsrcset="{{ image }} 1x, {{ image_x2 }} 2x"\r\n\t\t\t\t\talt="{{ title }}"\r\n\t\t\t\t/>\r\n\r\n\t\t\t</figure>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--left forminator-addon-back" style="display: none;">\r\n\t\t\t\t<span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Back</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-integration-close" data-modal-close>\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">Close</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<div class="forminator-integration-popup__header"></div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="forminator-integration-popup__body sui-box-body"></div>\r\n\r\n\t\t<div class="forminator-integration-popup__footer sui-box-footer sui-flatten sui-content-separated"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-loader-tpl">\r\n\r\n\t\t<p style="margin: 0; text-align: center;" aria-hidden="true"><span class="sui-icon-loader sui-md sui-loading"></span></p>\r\n\t\t<p class="sui-screen-reader-text">Loading content...</p>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-tpl">\r\n\r\n\t\t<div class="sui-modal sui-modal-md">\r\n\r\n\t\t\t<div\r\n\t\t\t\trole="dialog"\r\n\t\t\t\tid="forminator-stripe-popup"\r\n\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\taria-modal="true"\r\n\t\t\t\taria-labelledby="forminator-stripe-popup__title"\r\n\t\t\t\taria-describedby=""\r\n\t\t\t>\r\n\r\n\t\t\t\t<div class="sui-box"></div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-stripe-content-tpl">\r\n\r\n\t\t<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60">\r\n\r\n\t\t\t<figure class="sui-box-logo" aria-hidden="true">\r\n\t\t\t\t<img src="{{ image }}" srcset="{{ image }} 1x, {{ image_x2 }} 2x" alt="{{ title }}" />\r\n\t\t\t</figure>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-close">\r\n\t\t\t\t<span class="sui-icon-close sui-md" aria-hidden="true"></span>\r\n\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.popup.close_label }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t\t<h3 id="forminator-stripe-popup__title" class="sui-box-title sui-lg" style="overflow: initial; display: none; white-space: normal; text-overflow: initial;">{{ title }}</h3>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-spacing-top--10"></div>\r\n\r\n\t\t<div class="sui-box-footer sui-flatten sui-content-center"></div>\r\n\r\n\t<\/script>\r\n\r\n\t<script type="text/template" id="popup-slide-tpl">\r\n\t\t<div class="sui-modal sui-modal-lg">\r\n\t\t\t<div\r\n\t\t\t\t\trole="dialog"\r\n\t\t\t\t\tid="forminator-popup"\r\n\t\t\t\t\tclass="sui-modal-content"\r\n\t\t\t\t\taria-modal="true"\r\n\t\t\t\t\taria-labelledby="forminator-slide-popup__title"\r\n\t\t\t\t\taria-describedby="forminator-slide-popup__description"\r\n\t\t\t>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t<\/script>\r\n\r\n</div>\r\n'}),function(t){formintorjs.define("admin/addons/view",["text!tpl/popups.html"],function(n){return Backbone.View.extend({className:"wpmudev-section--integrations",loaderTpl:Forminator.Utils.template(t(n).find("#popup-loader-tpl").html()),model:{},events:{"click .forminator-addon-connect":"connect_addon","click .forminator-addon-disconnect":"disconnect_addon","click .forminator-addon-form-disconnect":"form_disconnect_addon","click .forminator-addon-next":"submit_next_step","click .forminator-addon-back":"go_prev_step","click .forminator-addon-finish":"finish_steps"},initialize:function(t){this.slug=t.slug,this.nonce=t.nonce,this.action=t.action,this.form_id=t.form_id,this.multi_id=t.multi_id,this.global_id=t.global_id,this.step=0,this.next_step=!1,this.prev_step=!1,this.scrollbar_width=this.get_scrollbar_width();var n=this
;return this.$el.find(".forminator-integration-close, .forminator-addon-close").on("click",function(){n.close(n)}),this.render()},render:function(){var t={};t.action=this.action,t._ajax_nonce=this.nonce,t.data={},t.data.slug=this.slug,t.data.step=this.step,t.data.current_step=this.step,t.data.global_id=this.global_id,this.form_id&&(t.data.form_id=this.form_id),this.multi_id&&(t.data.multi_id=this.multi_id),this.request(t,!1,!0)},request:function(n,e,i){var o=this,a={data:n,close:e,loader:i};i&&(this.$el.find(".forminator-integration-popup__header").html(""),this.$el.find(".forminator-integration-popup__body").html(this.loaderTpl()),this.$el.find(".forminator-integration-popup__footer").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),this.ajax=t.post({url:Forminator.Data.ajaxUrl,type:"post",data:n}).done(function(n){if(n&&n.success){o.render_reset(),o.render_body(n),o.render_footer(n),o.hide_elements();var i=n.data.data;o.on_render(i),o.$el.find(".sui-button").removeClass("sui-button-onload"),(e||!_.isUndefined(i.is_close)&&i.is_close)&&o.close(o),o.$el.find(".forminator-addon-close").on("click",function(){o.close(o)}),_.isUndefined(i.notification)||_.isUndefined(i.notification.type)||_.isUndefined(i.notification.text)||Forminator.Notification.open(i.notification.type,i.notification.text,4e3),_.isUndefined(i.has_back)?o.$el.find(".forminator-addon-back").hide():i.has_back?o.$el.find(".forminator-addon-back").show():o.$el.find(".forminator-addon-back").hide(),i.is_poll&&setTimeout(o.request(a.data,a.close,a.loader),5e3);t("#forminator-integration-popup .sui-box").height()>t(window).height()?t("#forminator-integration-popup .sui-dialog-overlay").css("right",o.scrollbar_width+"px"):t("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),this.ajax.always(function(){o.$el.find(".fui-loading-dialog").remove()})},render_reset:function(){var n=t(".forminator-integration-popup__body"),e=t(".forminator-integration-popup__footer");n.is(":hidden")&&n.css("display",""),e.is(":hidden")&&e.css("display","")},render_body:function(t){this.$el.find(".forminator-integration-popup__body").html(t.data.data.html);var n=this.$el.find(".forminator-integration-popup__body .forminator-integration-popup__header").remove();n.length>0&&this.$el.find(".forminator-integration-popup__header").html(n.html())},render_footer:function(t){var n=this,e=t.data.data.buttons;n.$el.find(".sui-box-footer").html("");var i=this.$el.find(".forminator-integration-popup__body .forminator-integration-popup__footer-temp").remove();i.length>0&&this.$el.find(".forminator-integration-popup__footer").html(i.html()),_.each(e,function(t){n.$el.find(".sui-box-footer").append(t.markup)}),n.$el.find(".sui-box-footer").removeClass("sui-content-center").addClass("sui-content-separated"),n.$el.find(".sui-box-footer").children(".forminator-integration-popup__close").length>0&&n.$el.find(".sui-box-footer").removeClass("sui-content-separated").addClass("sui-content-center")},hide_elements:function(){var n=t(".forminator-integration-popup__body"),e=t(".forminator-integration-popup__footer"),i=n.html(),o=e.html();i.trim().length||n.hide(),o.trim().length||e.hide()},on_render:function(t){this.delegateEvents(),Forminator.Utils.sui_delegate_events(),Forminator.Utils.forminator_select2_tags(this.$el,{}),_.isUndefined(t.forminator_addon_current_step)||(this.step=+t.forminator_addon_current_step),_.isUndefined(t.forminator_addon_has_next_step)||(this.next_step=t.forminator_addon_has_next_step),_.isUndefined(t.forminator_addon_has_prev_step)||(this.prev_step=t.forminator_addon_has_prev_step)},get_step:function(){return this.next_step?this.step+1:this.step},get_prev_step:function(){return this.prev_step?this.step-1:this.step},connect_addon:function(n){var e={},i=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),global_id:this.global_id,current_step:this.step},a=i.serialize();this.form_id&&(o.form_id=this.form_id),this.multi_id&&(o.multi_id=this.multi_id),a=a+"&"+t.param(o),e.action=this.action,e._ajax_nonce=this.nonce,e.data=a,this.request(e,!1,!1)},submit_next_step:function(n){var e={},i=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),global_id:this.global_id,current_step:this.step},a=i.serialize();this.form_id&&(o.form_id=this.form_id),a=a+"&"+t.param(o),e.action=this.action,e._ajax_nonce=this.nonce,e.data=a,this.request(e,!1,!1)},go_prev_step:function(t){var n={},e={slug:this.slug,step:this.get_prev_step(),global_id:this.global_id,current_step:this.step};this.form_id&&(e.form_id=this.form_id),this.multi_id&&(e.multi_id=this.multi_id),n.action=this.action,n._ajax_nonce=this.nonce,n.data=e,this.request(n,!1,!1)},finish_steps:function(n){var e={},i=this.$el.find("form"),o={slug:this.slug,step:this.get_step(),global_id:this.global_id,current_step:this.step},a=i.serialize();this.form_id&&(o.form_id=this.form_id),this.multi_id&&(o.multi_id=this.multi_id),a=a+"&"+t.param(o),e.action=this.action,e._ajax_nonce=this.nonce,e.data=a,this.request(e,!1,!1)},disconnect_addon:function(t){var n={};n.action="forminator_addon_deactivate",n._ajax_nonce=this.nonce,n.data={},n.data.slug=this.slug,n.data.global_id=this.global_id,this.request(n,!0,!1)},form_disconnect_addon:function(t){var n={};n.action="forminator_addon_deactivate_for_module",n._ajax_nonce=this.nonce,n.data={},n.data.slug=this.slug,n.data.form_id=this.form_id,n.data.form_type="form",this.multi_id&&(n.data.multi_id=this.multi_id),this.request(n,!0,!1)},close:function(t){t.ajax.abort(),t.remove(),Forminator.Integrations_Popup.close(),Forminator.Events.trigger("forminator:addons:reload")},get_scrollbar_width:function(){var n=0;if(navigator.userAgent.match("MSIE")){var e=t('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),i=t('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");n=e.width()-i.width(),e.add(i).remove()}else{var o=t("<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});n=100-o.width(),o.parent().remove()}return n}})})}(jQuery),function(t){formintorjs.define("admin/addons/addons",["admin/addons/view"],function(n){var e=Backbone.View.extend({el:".sui-wrap.wpmudev-forminator-forminator-integrations",currentTab:"forminator-integrations",events:{"change .forminator-addon-toggle-enabled":"toggle_state","click .connect-integration":"connect_integration","click .forminator-integrations-wrapper .sui-vertical-tab a":"go_to_tab","change .forminator-integrations-wrapper .sui-sidenav-hide-lg select":"go_to_tab","change .forminator-integrations-wrapper .sui-sidenav-hide-lg.integration-nav":"go_to_tab","keyup input.sui-form-control":"required_settings"},initialize:function(n){if(t(this.el).length>0)return this.listenTo(Forminator.Events,"forminator:addons:reload",this.render_addons_page),this.render()},render:function(){this.render_addons_page(),this.update_tab()},render_addons_page:function(){var n=this,e={};this.$el.find("#forminator-integrations-display").html('<div role="alert" id="forminator-addons-preloader" class="sui-notice sui-active" style="display: block;" aria-live="assertive"><div class="sui-notice-content"><div class="sui-notice-message"><span class="sui-notice-icon sui-icon-loader sui-loading" aria-hidden="true"></span><p>Fetching integration list…</p></div></div></div>'),e.action="forminator_addon_get_addons",e._ajax_nonce=Forminator.Data.addonNonce,e.data={},t.post({url:Forminator.Data.ajaxUrl,type:"post",data:e}).done(function(t){t&&t.success&&n.$el.find("#forminator-integrations-page").html(t.data.data)}).always(function(){n.$el.find("#forminator-addons-preloader").remove()})},connect_integration:function(e){e.preventDefault();var i=t(e.target);i.hasClass("connect-integration")||(i=i.closest(".connect-integration"));var o=i.data("nonce"),a=i.data("slug"),r=i.data("multi-global-id"),s=i.data("title"),l=i.data("image"),p=i.data("imagex2"),d=i.data("action"),c=i.data("form-id"),u=i.data("multi-id");Forminator.Integrations_Popup.open(function(){new n({slug:a,nonce:o,action:d,form_id:c,multi_id:u,global_id:r,el:t(this)})},{title:s,image:l,image_x2:p})},go_to_tab:function(n){n.preventDefault();var e=t(n.target),i=e.attr("href"),o="";if(_.isUndefined(i)){o=e.val()}else o=i.replace("#","",i);_.isEmpty(o)||(this.currentTab=o),this.update_tab(),n.stopPropagation()},update_tab_select:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.$el.find(".sui-sidenav-hide-lg select").val(this.currentTab),this.$el.find(".sui-sidenav-hide-lg select").trigger("sui:change"))},update_tab:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.clear_tabs(),this.$el.find("[data-tab-id="+this.currentTab+"]").addClass("current"),this.$el.find(".wpmudev-settings--box#"+this.currentTab).show())},clear_tabs:function(){this.$el.hasClass("wpmudev-forminator-forminator-integrations")&&(this.$el.find(".sui-vertical-tab ").removeClass("current"),this.$el.find(".wpmudev-settings--box").hide())},required_settings:function(n){var e=t(n.target),i=e.parent(),o=i.find(".sui-error-message"),a=e.closest("div[data-nav]"),r=a.find(".sui-box-footer"),s=r.find(".wpmudev-action-done");this.$el.hasClass("wpmudev-forminator-forminator-settings")&&(e.hasClass("forminator-required")&&!e.val()&&i.hasClass("sui-form-field")&&(i.addClass("sui-form-field-error"),o.show()),e.hasClass("forminator-required")&&e.val()&&i.hasClass("sui-form-field")&&(i.removeClass("sui-form-field-error"),o.hide()),a.find("input.sui-form-control").hasClass("forminator-required")&&(0===a.find("div.sui-form-field-error").length?s.prop("disabled",!1):s.prop("disabled",!0))),n.stopPropagation()}});jQuery(function(){new e})})}(jQuery),function(t){formintorjs.define("admin/addons-page",[],function(){var n=Backbone.View.extend({el:".wpmudev-forminator-forminator-addons",events:{"click button.addons-actions":"addons_actions","click a.addons-actions":"addons_actions","click .sui-dialog-close":"close","click .addons-modal-close":"close","click .addons-page-details":"open_addons_detail"},initialize:function(){t(".wpmudev-forminator-forminator-addons").length},addons_actions:function(n){var e=this,i=t(n.target),o={},a=i.data("nonce"),r=i.data("action"),s=i.data("popup"),l=i.data("is_network"),p=i.data("addon");return"addons-connect"===r?(e.$el.find(".ssm-session__button").trigger("click"),!1):(o.action="forminator_"+r,o.pid=p,o.is_network=l,o._ajax_nonce=a,i.addClass("sui-button-onload"),e.$el.find(".sui-button.addons-actions:not(.disable-loader)").attr("disabled",!0),t.post({url:Forminator.Data.ajaxUrl,type:"post",data:o}).done(function(t){if(void 0!==t.data.error)return e.show_notification(t.data.error.message,"error"),!1;if("addons-install"===r)setTimeout(function(){e.active_popup(p,"show","forminator-activate-popup"),e.$el.find(".sui-tab-content .addons-"+p).not(this).replaceWith(t.data.html),e.loader_remove()},1e3);else{if(e.show_notification(t.data.message,"success"),e.$el.find(".sui-tab-content .addons-"+p).not(this).replaceWith(t.data.html),"addons-update"===r){var n=e.$el.find("#forminator-modal-addons-details-"+p);e.$el.find("#updates-addons-content .addons-"+p).remove();var o=e.$el.find("#updates-addons-content .sui-col-md-6").length;o<1&&e.$el.find("#updates-addons span.sui-tag").removeClass("sui-tag-yellow"),e.$el.find("#updates-addons span.sui-tag").html(o),n.find(".forminator-details-header--tags span.addons-update-tag").remove();var a=i.data("version");n.find(".forminator-details-header--tags span.addons-version").html(a),n.find(".forminator-details-header button.addons-actions").remove(),i.remove()}s&&location.reload()}}).fail(function(){e.show_notification(Forminator.l10n.commons.error_message,"error")}),!1)},close:function(n){n.preventDefault();var e=t(n.target),i=e.data("addon"),o=e.data("element");this.active_popup(i,"hide",o)},loader_remove:function(){this.$el.find(".sui-button.addons-actions:not(.disable-loader)").removeClass("sui-button-onload").attr("disabled",!1)},show_notification:function(t,n){var e=void 0!==t?t:Forminator.l10n.commons.error_message;Forminator.Notification.open(n,e,4e3),this.loader_remove()},active_popup:function(t,n,e){var i=e+"-"+t,o="forminator-addon-"+t+"__card";"show"===n?SUI.openModal(i,o):SUI.closeModal()},open_addons_detail:function(n){var e=this,i=t(n.target),o=i.data("form-id");e.active_popup(o,"show","forminator-modal-addons-details")}}),n=new n;return n})}(jQuery),function(t){formintorjs.define("admin/reports-page",[],function(){var n=Backbone.View.extend({el:".wpmudev-forminator-forminator-reports",events:{"click .sui-side-tabs label.sui-tab-item input":"sidetabs","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select","apply.daterangepicker input.forminator-reports-filter-date":"filter_report_date","click #forminator-checked-all-reports":"check_all","change label input.notification-status":"change_report_status","change label input.report-checkbox":"change_report_check"},initialize:function(){var n=this;t(".wpmudev-forminator-forminator-reports").length&&(n.render_daterange(),n.chartJs=n.forminator_reports_chart(window.monthDays,window.submissions,window.canvas_spacing))},render_daterange:function(){var n=moment().startOf("month"),e=moment().endOf("month");t("input.forminator-reports-filter-date").daterangepicker({autoUpdateInput:!1,autoApply:!0,alwaysShowCalendars:!0,ranges:window.forminator_reports_datepicker_ranges,locale:forminatorl10n.daterangepicker,startDate:n,endDate:e,showCustomRangeLabel:!1}).val(n.format("MMMM DD, YYYY")+" - "+e.format("MMMM DD, YYYY"))},filter_report_date:function(n,e){var i=this,o=t(n.target),a=e.startDate,r=e.endDate,s=i.$el.find("#forminator-reports select[name=form_id]").val(),l=i.$el.find("#forminator-reports select[name=form_type]").val(),p=a.format("MMMM DD, YYYY")+" - "+r.format("MMMM DD, YYYY");i.add_report_loader(),o.val(p),i.$el.find(".forminator-chart-date").html(forminatorl10n.popup.showing_report_from+" "+p),t.post({url:Forminator.Data.ajaxUrl,type:"post",data:{action:"forminator_filter_report_data",form_id:s,form_type:l,_ajax_nonce:o.data("nonce"),start_date:a.format("YYYY-MM-DD"),end_date:r.format("YYYY-MM-DD"),range_time:e.chosenLabel}}).done(function(n){if(n.data){var e=n.data,o=e.reports,a=e.chart_data,r=i.$el.find(".fui-table--apps"),s=i.$el.find("#forminator-reports");t.each(o,function(n,e){var o=i.$el.find(".increment-"+n);if(o.html(""),e.selected>0||0!==e.selected){var a="high"===e.difference?"fui-trend-green":"fui-trend-red",l="high"===e.difference?"sui-icon-arrow-up":"sui-icon-arrow-down",p='<i class="'+l+' sui-sm" aria-hidden="true"></i>';o.html(p+e.increment),o.removeClass("fui-trend-green").removeClass("fui-trend-red").addClass(a)}s.find(".selected-"+n).html(e.selected),s.find(".previous-"+n).html(e.previous),void 0!==e.average&&s.find(".average-"+n).html(e.average),void 0!==e.stripe&&s.find(".stripe-report").html(e.stripe),void 0!==e.paypal&&s.find(".paypal-report").html(e.paypal),i.$el.find(".forminator-reports-chart li.chart-"+n+" span").html(e.selected),"integration"===n&&t.each(e,function(t,n){var e=r.find(".increment-"+t);if(e.html(""),n.selected>0){var i="high"===n.difference?"fui-trend-green":"fui-trend-red",o="high"===n.difference?"sui-icon-arrow-up":"sui-icon-arrow-down",a='<i class="'+o+' sui-sm" aria-hidden="true"></i>';e.html(a+n.increment),e.removeClass("fui-trend-green").removeClass("fui-trend-red").addClass(i)}r.find(".selected-"+t).html(n.selected),r.find(".previous-"+t).html(n.previous)})});var l=a.monthDays,p=a.submissions,d=a.canvas_spacing;setTimeout(function(){i.remove_report_loader(o.entries.selected),i.add_chart_data(i.chartJs,l,p,d)},1e3)}}).fail(function(){i.remove_report_loader()})},add_report_loader:function(){this.$el.find(".forminator-reports-box .sui-box").addClass("sui-box__onload"),this.$el.find(".forminator-reports-chart ul.sui-accordion-item-data").addClass("sui-onload"),this.$el.find(".forminator-reports-chart .sui-chartjs").removeClass("sui-chartjs-loaded"),this.$el.find(".sui-chartjs-message--empty").show()},remove_report_loader:function(t){this.$el.find(".forminator-reports-box .sui-box").removeClass("sui-box__onload"),this.$el.find(".forminator-reports-chart ul.sui-accordion-item-data").removeClass("sui-onload"),this.$el.find(".forminator-reports-chart .sui-chartjs").addClass("sui-chartjs-loaded"),0<t&&this.$el.find(".sui-chartjs-message--empty").hide()},add_chart_data:function(t,n,e,i){void 0!==t&&(t.data.labels=n,t.data.datasets[0].data=e,t.options.scales.yAxes[0].ticks.max=i,t.update())},forminator_reports_chart:function(t,n,e){var i=document.getElementById("forminator-module-"+window.chart_form_id+"-stats"),o={labels:t,datasets:[{label:window.chart_label,data:n,backgroundColor:["#E1F6FF"],borderColor:["#17A8E3"],borderWidth:2,pointRadius:0,pointHitRadius:20,pointHoverRadius:5,pointHoverBorderColor:"#17A8E3",pointHoverBackgroundColor:"#17A8E3"}]},a={maintainAspectRatio:!1,legend:{display:!1},scales:{xAxes:[{display:!1,gridLines:{color:"rgba(0, 0, 0, 0)"}}],yAxes:[{display:!1,gridLines:{color:"rgba(0, 0, 0, 0)"},ticks:{beginAtZero:!1,min:0,max:e,stepSize:1}}]},elements:{line:{tension:0},point:{radius:0}},tooltips:{custom:function(t){t&&(t.displayColors=!1)},callbacks:{title:function(t,n){return t[0].yLabel+" "+window.chart_label},label:function(t,n){return t.xLabel},labelTextColor:function(t,n){return"#AAAAAA"}}},plugins:{datalabels:{display:!1}}};if(i)var r=new Chart(i,{type:"line",fill:"start",data:o,plugins:[ChartDataLabels],options:a});return r},sidetabs:function(t){var n=this.$(t.target),e=n.parent("label"),i=n.data("tab-menu"),o=n.closest(".sui-side-tabs"),a=o.find(".sui-tabs-menu .sui-tab-item"),r=a.find("input");n.is("input")&&(a.removeClass("active"),r.removeAttr("checked"),o.find(".sui-tabs-content > div").removeClass("active"),e.addClass("active"),n.prop("checked","checked"),o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').length&&o.find('.sui-tabs-content div[data-tab-content="'+i+'"]').addClass("active"))},sidenav:function(n){var e=t(n.target).data("nav");e&&this.sidenav_go_to(e,!0),n.preventDefault()},sidenav_select:function(n){var e=t(n.target).val();e&&this.sidenav_go_to(e,!0),n.preventDefault()},sidenav_go_to:function(t,n){var e=this.$el.find('a[data-nav="'+t+'"]'),i=e.closest(".sui-vertical-tabs"),o=i.find(".sui-vertical-tab"),a=this.$el.find(".sui-box-reports[data-nav]"),r=this.$el.find('.sui-box-reports[data-nav="'+t+'"]');if(n){var s="admin.php?page=forminator-reports&section="+t;if("dashboard"===t){var l=this.$el.find("#forminator-reports select[name=form_id]").val(),p=this.$el.find("#forminator-reports select[name=form_type]").val();""!==l&&""!==p&&(s="admin.php?page=forminator-reports&form_type="+p+"&form_id="+l)}history.pushState({selected_tab:t},"Reports",s)}o.removeClass("current"),a.hide(),e.parent().addClass("current"),r.show()},check_all:function(n){var e=this.$(n.target),i=e.is(":checked");if(e.closest("table").find(".sui-checkbox input").each(function(){this.checked=i}),t('form[name="report-bulk-action"] input[name="ids"]').length){var o=t("#forminator-reports-list").find('.sui-checkbox input[id|="report"]:checked').map(function(){if(parseFloat(this.value))return this.value}).get().join(",");t('form[name="report-bulk-action"] input[name="ids"]').val(o)}},change_report_status:function(n){var e=n.target.checked?"active":"inactive",i=t(n.target).val();t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_report_update_status",nonce:forminatorl10n.popup.save_nonce,report_id:i,status:e},success:function(e){var i=n.target.checked?forminatorl10n.popup.deactivate_report:forminatorl10n.popup.activate_report;t(".report-status-tooltip").attr("data-tooltip",i)}})},change_report_check:function(){if(t('form[name="report-bulk-action"] input[name="ids"]').length){var n=t(".sui-checkbox input.report-checkbox:checked").map(function(){if(parseFloat(this.value))return this.value}).get().join(",");t('form[name="report-bulk-action"] input[name="ids"]').val(n)}"forminator-checked-all-reports"!==t(this).attr("id")&&t("#forminator-checked-all-reports").prop("checked",!1)}}),n=new n;return n})}(jQuery),function(t){formintorjs.define("admin/views",["admin/dashboard","admin/settings-page","admin/popups","admin/addons/addons","admin/addons-page","admin/reports-page"],function(t,n,e,i,o,a){return{Views:{Dashboard:t,SettingsPage:n,Popups:e,AddonsPage:o,ReportsPage:a}}})}(jQuery),function(t){formintorjs.define("admin/application",["admin/views"],function(t){return _.extend(Forminator,t),new(Backbone.Router.extend({app:!1,data:!1,layout:!1,module_id:null,routes:{"":"run","*path":"run"},events:{},init:function(){if(!this.data)return this.app=Forminator.Data.application||!1,this.data={},!1},run:function(t){this.init(),this.module_id=t}}))})}(jQuery),formintorjs.define("jquery",[],function(){return jQuery}),formintorjs.define("forminator_global_data",function(){return forminatorData}),formintorjs.define("forminator_language",function(){return forminatorl10n});var Forminator=window.Forminator||{};Forminator.Events={},Forminator.Data={},Forminator.l10n={},Forminator.openPreset=function(t,n){var e=/([?&]preset)=([^&]*)/g,i=window.location.href.replace(e,"$1="+t);i===window.location.href&&(i+="&preset="+t),n&&(i+="&forminator_notice="+n),window.location.href=i},formintorjs.require.config({baseUrl:".",paths:{js:".",admin:"admin"},shim:{backbone:{deps:["underscore","jquery","forminator_global_data","forminator_language"],exports:"Backbone"},underscore:{exports:"_"}},waitSeconds:60}),formintorjs.require(["admin/utils"],function(t){_.templateSettings={evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g},_.extend(Forminator.Data,forminatorData),_.extend(Forminator.l10n,forminatorl10n),_.extend(Forminator,t),_.extend(Forminator.Events,Backbone.Events),formintorjs.require(["admin/application"],function(t){jQuery(function(){_.extend(Forminator,t),Forminator.Events.trigger("application:booted"),Backbone.history.start()})})}),formintorjs.define("admin/setup",function(){}),formintorjs.define("main",function(){});