/** 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,e){return e||""}function isFunction(t){return"[object Function]"===ostring.call(t)}function isArray(t){return"[object Array]"===ostring.call(t)}function each(t,e){if(t){var n;for(n=0;n<t.length&&(!t[n]||!e(t[n],n,t));n+=1);}}function eachReverse(t,e){if(t){var n;for(n=t.length-1;n>-1&&(!t[n]||!e(t[n],n,t));n-=1);}}function hasProp(t,e){return hasOwn.call(t,e)}function getOwn(t,e){return hasProp(t,e)&&t[e]}function eachProp(t,e){var n;for(n in t)if(hasProp(t,n)&&e(t[n],n))break}function mixin(t,e,n,i){return e&&eachProp(e,function(e,o){!n&&hasProp(t,o)||(!i||"object"!=typeof e||!e||isArray(e)||isFunction(e)||e instanceof RegExp?t[o]=e:(t[o]||(t[o]={}),mixin(t[o],e,n,i)))}),t}function bind(t,e){return function(){return e.apply(t,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(t){throw t}function getGlobal(t){if(!t)return t;var e=global;return each(t.split("."),function(t){e=e[t]}),e}function makeError(t,e,n,i){var o=new Error(e+"\nhttp://requirejs.org/docs/errors.html#"+t);return o.requireType=t,o.requireModules=i,n&&(o.originalError=n),o}function newContext(t){function e(t){var e,n;for(e=0;e<t.length;e++)if("."===(n=t[e]))t.splice(e,1),e-=1;else if(".."===n){if(0===e||1===e&&".."===t[2]||".."===t[e-1])continue;e>0&&(t.splice(e-1,2),e-=2)}}function n(t,n,i){var o,a,r,s,l,p,d,c,u,m,f,h=n&&n.split("/"),v=F.map,_=v&&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)),e(t),t=t.join("/")),i&&v&&(h||_)){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(v,h.slice(0,s).join("/")))&&(o=getOwn(o,l))){d=o,c=r;break t}!u&&_&&getOwn(_,l)&&(u=getOwn(_,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(e){if(e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===x.contextName)return e.parentNode.removeChild(e),!0})}function o(t){var e=getOwn(F.paths,t);if(e&&isArray(e)&&e.length>1)return e.shift(),x.require.undef(t),x.makeRequire(null,{skipMap:!0})([t]),!0}function a(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function r(t,e,i,o){var r,s,l,p,d=null,c=e?e.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=n(d,c,o),s=getOwn($,d)),t&&(d?f=i?t:s&&s.normalize?s.normalize(t,function(t){return n(t,c,o)}):-1===t.indexOf("!")?n(t,c,o):t:(f=n(t,c,o),p=a(f),d=p[0],f=p[1],i=!0,r=x.nameToUrl(f))),l=!d||s||i?"":"_unnormalized"+(D+=1),{prefix:d,name:f,parentMap:e,unnormalized:!!l,url:r,originalName:u,isDefine:m,id:(d?d+"!"+f:f)+l}}function s(t){var e=t.id,n=getOwn(k,e);return n||(n=k[e]=new x.Module(t)),n}function l(t,e,n){var i=t.id,o=getOwn(k,i);!hasProp($,i)||o&&!o.defineEmitComplete?(o=s(t),o.error&&"error"===e?n(o.error):o.on(e,n)):"defined"===e&&n($[i])}function p(t,e){var n=t.requireModules,i=!1;e?e(t):(each(n,function(e){var n=getOwn(k,e);n&&(n.error=t,n.events.error&&(i=!0,n.emit("error",t)))}),i||req.onError(t))}function d(){globalDefQueue.length&&(each(globalDefQueue,function(t){var e=t[0];"string"==typeof e&&(x.defQueueMap[e]=!0),z.push(t)}),globalDefQueue=[])}function c(t){delete k[t],delete C[t]}function u(t,e,n){var i=t.map.id;t.error?t.emit("error",t.error):(e[i]=!0,each(t.depMaps,function(i,o){var a=i.id,r=getOwn(k,a);!r||t.depMatched[o]||n[a]||(getOwn(e,a)?(t.defineDep(o,$[a]),t.check()):u(r,e,n))}),n[i]=!0)}function m(){var t,e,n=1e3*F.waitSeconds,a=n&&x.startTime+n<(new Date).getTime(),r=[],s=[],l=!1,d=!0;if(!b){if(b=!0,eachProp(C,function(t){var n=t.map,p=n.id;if(t.enabled&&(n.isDefine||s.push(t),!t.error))if(!t.inited&&a)o(p)?(e=!0,l=!0):(r.push(p),i(p));else if(!t.inited&&t.fetched&&n.isDefine&&(l=!0,!n.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&&!e||!l||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,m()},50)),b=!1}}function f(t){hasProp($,t[0])||s(r(t[0],null,!0)).init(t[1],t[2])}function h(t,e,n,i){t.detachEvent&&!isOpera?i&&t.detachEvent(i,e):t.removeEventListener(n,e,!1)}function v(t){var e=t.currentTarget||t.srcElement;return h(e,x.onScriptLoad,"load","onreadystatechange"),h(e,x.onScriptError,"error"),{node:e,id:e&&e.getAttribute("data-requiremodule")}}function _(){var t;for(d();z.length;){if(t=z.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={},C={},U={},z=[],$={},q={},j={},T=1,D=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?$[t.map.id]=t.exports:t.exports=$[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(U,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,e,n,i){i=i||{},this.inited||(this.factory=e,n?this.on("error",n):this.events.error&&(n=bind(this,function(t){this.emit("error",t)})),this.depMaps=t&&t.slice(0),this.errback=n,this.inited=!0,this.ignore=i.ignore,i.enabled||this.enabled?this.enable():this.check())},defineDep:function(t,e){this.depMatched[t]||(this.depMatched[t]=!0,this.depCount-=1,this.depExports[t]=e)},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;q[t]||(q[t]=!0,x.load(this.map.id,t))},check:function(){if(this.enabled&&!this.enabling){var t,e,n=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(n,a,i,o)}catch(e){t=e}else o=x.execCb(n,a,i,o);if(this.map.isDefine&&void 0===o&&(e=this.module,e?o=e.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&&($[n]=o,req.onResourceLoad)){var r=[];each(this.depMaps,function(t){r.push(t.normalizedMap||t)}),req.onResourceLoad(x,this.map,r)}c(n),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,n)||this.fetch()}},callPlugin:function(){var t=this.map,e=t.id,i=r(t.prefix);this.depMaps.push(i),l(i,"defined",bind(this,function(i){var o,a,d,u=getOwn(j,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 n(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=[e],eachProp(k,function(t){0===t.map.id.indexOf(e+"_unnormalized")&&c(t.map.id)}),p(t)}),o.fromText=bind(this,function(n,i){var a=t.name,l=r(a),d=useInteractive;i&&(n=i),d&&(useInteractive=!1),s(l),hasProp(F.config,e)&&(F.config[a]=F.config[e]);try{req.exec(n)}catch(t){return p(makeError("fromtexteval","fromText eval for "+e+" failed: "+t,t,[e]))}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(){C[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(t,e){var n,i,o;if("string"==typeof t){if(t=r(t,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[e]=t,o=getOwn(y,t.id))return void(this.depExports[e]=o(this));this.depCount+=1,l(t,"defined",bind(this,function(t){this.undefed||(this.defineDep(e,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)}))}n=t.id,i=k[n],hasProp(y,n)||!i||i.enabled||x.enable(t,this)})),eachProp(this.pluginMaps,bind(this,function(t){var e=getOwn(k,t.id);e&&!e.enabled&&x.enable(t,this)})),this.enabling=!1,this.check()},on:function(t,e){var n=this.events[t];n||(n=this.events[t]=[]),n.push(e)},emit:function(t,e){each(this.events[t],function(t){t(e)}),"error"===t&&delete this.events[t]}},x={config:F,contextName:t,registry:k,defined:$,urlFetched:q,defQueue:z,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 e=t.urlArgs;t.urlArgs=function(t,n){return(-1===n.indexOf("?")?"?":"&")+e}}var n=F.shim,i={paths:!0,bundles:!0,config:!0,map:!0};eachProp(t,function(t,e){i[e]?(F[e]||(F[e]={}),mixin(F[e],t,!0,!0)):F[e]=t}),t.bundles&&eachProp(t.bundles,function(t,e){each(t,function(t){t!==e&&(j[t]=e)})}),t.shim&&(eachProp(t.shim,function(t,e){isArray(t)&&(t={deps:t}),!t.exports&&!t.init||t.exportsFn||(t.exportsFn=x.makeShimExports(t)),n[e]=t}),F.shim=n),t.packages&&each(t.packages,function(t){var e,n;t="string"==typeof t?{name:t}:t,n=t.name,e=t.location,e&&(F.paths[n]=t.location),F.pkgs[n]=t.name+"/"+(t.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(k,function(t,e){t.inited||t.map.unnormalized||(t.map=r(e,null,!0))}),(t.deps||t.callback)&&x.require(t.deps||[],t.callback)},makeShimExports:function(t){function e(){var e;return t.init&&(e=t.init.apply(global,arguments)),e||t.exports&&getGlobal(t.exports)}return e},makeRequire:function(e,o){function a(n,i,l){var d,c,u;return o.enableBuildCallback&&i&&isFunction(i)&&(i.__requireJsBuild=!0),"string"==typeof n?isFunction(i)?p(makeError("requireargs","Invalid require call"),l):e&&hasProp(y,n)?y[n](k[e.id]):req.get?req.get(x,n,e,a):(c=r(n,e,!1,!0),d=c.id,hasProp($,d)?$[d]:p(makeError("notloaded",'Module name "'+d+'" has not been loaded yet for context: '+t+(e?"":". Use require([])")))):(_(),x.nextTick(function(){_(),u=s(r(null,e)),u.skipMap=o.skipMap,u.init(n,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(n(t,e&&e.id,!0),i,!0)},defined:function(t){return hasProp($,r(t,e,!1,!0).id)},specified:function(t){return t=r(t,e,!1,!0).id,hasProp($,t)||hasProp(k,t)}}),e||(a.undef=function(t){d();var n=r(t,e,!0),o=getOwn(k,t);o.undefed=!0,i(t),delete $[t],delete q[n.url],delete U[t],eachReverse(z,function(e,n){e[0]===t&&z.splice(n,1)}),delete x.defQueueMap[t],o&&(o.events.defined&&(U[t]=o.events),c(t))}),a},enable:function(t){getOwn(k,t.id)&&s(t).enable()},completeLoad:function(t){var e,n,i,a=getOwn(F.shim,t)||{},r=a.exports;for(d();z.length;){if(n=z.shift(),null===n[0]){if(n[0]=t,e)break;e=!0}else n[0]===t&&(e=!0);f(n)}if(x.defQueueMap={},i=getOwn(k,t),!e&&!hasProp($,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,e,n){var i,o,a,r,s,l,p,d=getOwn(F.pkgs,t);if(d&&(t=d),p=getOwn(j,t))return x.nameToUrl(p,e,n);if(req.jsExtRegExp.test(t))s=t+(e||"");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+=e||(/^data\:|^blob\:|\?/.test(s)||n?"":".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,e){req.load(x,t,e)},execCb:function(t,e,n,i){return e.apply(i,n)},onScriptLoad:function(t){if("load"===t.type||readyRegExp.test((t.currentTarget||t.srcElement).readyState)){interactiveScript=null;var e=v(t);x.completeLoad(e.id)}},onScriptError:function(t){var e=v(t);if(!o(e.id)){var n=[];return eachProp(k,function(t,i){0!==i.indexOf("_@r")&&each(t.depMaps,function(t){if(t.id===e.id)return n.push(i),!0})}),p(makeError("scripterror",'Script error for "'+e.id+(n.length?'", needed by: '+n.join(", "):'"'),t,[e.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,e,n,i){var o,a,r=defContextName;return isArray(t)||"string"==typeof t||(a=t,isArray(e)?(t=e,e=n,n=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,e,n)},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 e=contexts[defContextName];return e.require[t].apply(e,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,e,n){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,e,n){var i,o=t&&t.config||{};if(isBrowser)return i=req.createNode(o,e,n),i.setAttribute("data-requirecontext",t.contextName),i.setAttribute("data-requiremodule",e),!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=n,o.onNodeCreated&&o.onNodeCreated(i,o,e,n),currentlyAddingScript=i,baseElement?head.insertBefore(i,baseElement):head.appendChild(i),currentlyAddingScript=null,i;if(isWebWorker)try{setTimeout(function(){},0),importScripts(n),t.completeLoad(e)}catch(i){t.onError(makeError("importscripts","importScripts failed for "+e+" at "+n,i,[e]))}},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,e,n){var i,o;"string"!=typeof t&&(n=e,e=t,t=null),isArray(e)||(n=e,e=null),!e&&isFunction(n)&&(e=[],n.length&&(n.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(t,n){e.push(n)}),e=(1===n.length?["require"]:["require","exports","module"]).concat(e))),useInteractive&&(i=currentlyAddingScript||getInteractiveScript())&&(t||(t=i.getAttribute("data-requiremodule")),o=contexts[i.getAttribute("data-requirecontext")]),o?(o.defQueue.push([t,e,n]),o.defQueueMap[t]=!0):globalDefQueue.push([t,e,n])},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 e,n,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 e={version:"2.0.3",strip:function(t){if(t){t=t.replace(o,"");var e=t.match(a);e&&(t=e[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,e,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(e=0;e<3;e+=1){n=i[e];try{t=new ActiveXObject(n)}catch(t){}if(t){i=[n];break}}return t},parseName:function(t){var e=!1,n=t.indexOf("."),i=t.substring(0,n),o=t.substring(n+1,t.length);return n=o.indexOf("!"),-1!==n&&(e=o.substring(n+1,o.length),e="strip"===e,o=o.substring(0,n)),{moduleName:i,ext:o,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(t,n,i,o){var a,r,s,l=e.xdRegExp.exec(t);return!l||(a=l[2],r=l[3],r=r.split(":"),s=r[1],r=r[0],!(a&&a!==n||r&&r.toLowerCase()!==i.toLowerCase()||(s||r)&&s!==o))},finishLoad:function(t,n,i,o){i=n?e.strip(i):i,c.isBuild&&(d[t]=i),o(i)},load:function(t,n,i,o){if(o.isBuild&&!o.inlineText)return void i();c.isBuild=o.isBuild;var a=e.parseName(t),d=a.moduleName+"."+a.ext,u=n.toUrl(d),m=c.useXhr||e.useXhr;!r||m(u,s,l,p)?e.get(u,function(n){e.finishLoad(t,a.strip,n,i)},function(t){i.error&&i.error(t)}):n([d],function(t){e.finishLoad(a.moduleName+"."+a.ext,a.strip,t,i)})},write:function(t,n,i,o){if(d.hasOwnProperty(n)){var a=e.jsEscape(d[n]);i.asModule(t+"!"+n,"define(function () { return '"+a+"';});\n")}},writeFile:function(t,n,i,o,a){var r=e.parseName(n),s=r.moduleName+"."+r.ext,l=i.toUrl(r.moduleName+"."+r.ext)+".js";e.load(s,i,function(n){var i=function(t){return o(l,t)};i.asModule=function(t,e){return o.asModule(t,l,e)},e.write(t,s,i,a)},a)}},"node"===c.env||!c.env&&"undefined"!=typeof process&&process.versions&&process.versions.node?(n=require.nodeRequire("fs"),e.get=function(t,e){var i=n.readFileSync(t,"utf8");0===i.indexOf("\ufeff")&&(i=i.substring(1)),e(i)}):"xhr"===c.env||!c.env&&e.createXhr()?e.get=function(t,n,i){var o=e.createXhr();o.open("GET",t,!0),c.onXhr&&c.onXhr(o,t),o.onreadystatechange=function(e){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)):n(o.responseText))},o.send(null)}:("rhino"===c.env||!c.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java)&&(e.get=function(t,e){var n,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(n=new java.lang.StringBuffer,i=r.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),n.append(i);null!==(i=r.readLine());)n.append(a),n.append(i);s=String(n.toString())}finally{r.close()}e(s)}),e}),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">{{ Forminator.l10n.popup.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{[ if( toggleValidation ) { ]}\r\n\t\t\t\t\t<span style="margin: 0 20px;">\r\n\t\t\t\t\t\t<label for="forminator-field-disable_validations" class="sui-toggle">\r\n\t\t\t\t\t\t\t<input type="checkbox" id="forminator-field-disable_validations" class="sui-form-control" value="true">\r\n\t\t\t\t\t\t\t<span class="sui-toggle-slider"></span>\r\n\t\t\t\t\t\t\t<span class="sui-toggle-label" style="white-space: nowrap;">{{ Forminator.l10n.popup.disable_validations }}</span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t{[ } ]}\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">{{ Forminator.l10n.popup.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">{{ Forminator.l10n.popup.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,e){switch(e){case"\\":return"\\";case"0":return"\0";case"":return"";default:return e}})},window.forminator_array_value_exists=function(t,e){return!_.isUndefined(t[e])&&!_.isEmpty(t[e])},window.decodeHtmlEntity=function(t){return void 0===t?t:t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})},window.encodeHtmlEntity=function(t){if(void 0===t)return t;for(var e=[],n=t.length-1;n>=0;n--)e.unshift(["&#",t[n].charCodeAt(),";"].join(""));return e.join("")},window.singularPluralText=function(t,e,n){var i="";return i=t<2?e:n,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(e){var n={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 e=_.templateSettings,n=!1;return _.templateSettings={interpolate:/<\?php echo (.+?) \?>/g,evaluate:/<\?php (.+?) \?>/g},n=_.template(t),_.templateSettings=e,function(t){return _.each(t,function(e,n){t["$"+n]=e}),n(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 e=decodeURIComponent(t);return e=e.replace(/-/g," "),e=e.replace(/(<([^>]+)>)/gi,""),e.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 e=window.location.search.substring(1),n=e.split("&"),i=0;i<n.length;i++){var o=n[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 e=t.split("@",2);if(!e[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(e[1].match(/\.{2,}/))return!1;var n=e[1],i=n.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(e,n){e.find("select.sui-select.fui-multi-select").each(function(){var e=t(this),i=e.closest(".sui-modal-content"),o=i.attr("id"),a=t(i.length?"#"+o:"SUI_BODY_CLASS"),r="true"===e.attr("data-search")?0:-1,s=e.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";n=_.defaults(n,{dropdownParent:a,minimumResultsForSearch:r,dropdownCssClass:s}),e.attr("data-reorder")&&e.on("select2:select",function(n){var i=n.params.data.element,o=t(i),a=e;a.append(o),a.trigger("change.select2")}),e.SUIselect2(n)})},forminator_select2_custom:function(e,n){e.find("select.sui-select.custom-select2").each(function(){var e=t(this),i=e.closest(".sui-modal-content"),o=i.attr("id"),a=t(i.length?"#"+o:"body"),r="true"===e.attr("data-search")?0:-1,s=e.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";n=_.defaults(n,{dropdownParent:a,minimumResultsForSearch:r,dropdownCssClass:s}),e.attr("data-reorder")&&e.on("select2:select",function(e){var n=e.params.data.element,i=t(n),o=t(this);o.append(i),o.trigger("change.select2")}),e.SUIselect2(n)})},init_select2:function(){window.SUI},load_google_fonts:function(e){var n=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&&(n.google_font_families=t.data),e.apply(t,[n.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 n=Forminator.Utils.template(t(e).find("#popup-tpl").html());t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(n({})),this.$popup=t("#forminator-popup"),this.$popupId="forminator-popup",this.$focusAfterClosed="wpbody-content"},open:function(n,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(e).find("#popup-header-inline-tpl").html());break;case"center":r=Forminator.Utils.template(t(e).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({toggleValidation:this.data.toggleValidation,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)n.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),n.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,!1,!0),setTimeout(function(){const t=s.$popup.attr("aria-describedby");s.$popup.find("#"+t).length||s.$popup.removeAttr("aria-describedby")},300),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,e){var n=this;SUI.closeModal(),setTimeout(function(){n.$popup.closest(".sui-modal").removeClass("sui-modal-sm").removeClass("sui-modal-md").removeClass("sui-modal-lg").removeClass("sui-modal-xl"),e&&e.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(e,n,i){var o=this;return _.isUndefined(i)||5e3,this.uniq="forminator-floating-notification",this.text="<p>"+n+"</p>",this.type="",this.time=i||5e3,_.isUndefined(e)||""===e||(this.type=e),_.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:n,Popup:i,Integrations_Popup:{$popup:{},_deferred:{},initialize:function(){var n=Forminator.Utils.template(t(e).find("#popup-integration-tpl").html());t("#forminator-integration-popup").length?(t("#forminator-integration-popup").remove(),this.initialize()):t("main.sui-wrap").append(n({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-integration-popup"),this.$popupId="forminator-integration-popup",this.$focusAfterClosed="forminator-integrations-page"},open:function(n,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(e).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),n.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,e){Forminator.Events.trigger("forminator:addons:reload"),SUI.closeModal(),setTimeout(function(){e&&e.apply()},300),this._deferred.resolve(this.$popup,t)}},Stripe_Popup:{$popup:{},_deferred:{},initialize:function(){var n=Forminator.Utils.template(t(e).find("#popup-stripe-tpl").html());t("#forminator-stripe-popup").length?(t("#forminator-stripe-popup").remove(),this.initialize()):t("main.sui-wrap").append(n({provider_image:"",provider_image2:"",provider_title:""})),this.$popup=t("#forminator-stripe-popup"),this.$popupId="forminator-stripe-popup",this.$focusAfterClosed="wpbody-content"},open:function(n,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(e).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(n.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,!1,!0),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,e){SUI.closeModal();var n=this;setTimeout(function(){n.$popup.closest(".sui-modal").removeClass("sui-modal-sm").removeClass("sui-modal-md").removeClass("sui-modal-lg").removeClass("sui-modal-xl"),e&&e.apply()},300),this._deferred.resolve(this.$popup,t)}},Notification:o,Slide_Popup:{$popup:{},_deferred:{},initialize:function(){var n=Forminator.Utils.template(t(e).find("#popup-slide-tpl").html());t("#forminator-popup").length?(t("#forminator-popup").remove(),this.initialize()):t("main.sui-wrap").append(n({})),this.$popup=t("#forminator-popup"),this.$popupId="forminator-popup",this.$focusAfterClosed="wpbody-content"},open:function(n,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(e).find("#popup-header-inline-tpl").html());break;case"center":r=Forminator.Utils.template(t(e).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)n.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),n.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,!1,!0),Forminator.Utils.sui_delegate_events(),this._deferred=new t.Deferred,this._deferred.promise()},close:function(t,e){var n=this;SUI.closeModal(),setTimeout(function(){n.$popup.closest(".sui-modal").removeClass("sui-modal-sm").removeClass("sui-modal-md").removeClass("sui-modal-lg").removeClass("sui-modal-xl"),e&&e.apply()},300),this._deferred.resolve(this.$popup,t)}}}})}(jQuery),function(t){formintorjs.define("admin/dashboard",[],function(e){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var e=Forminator.Utils.get_url_param("notification"),n=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),e){var o=_.template("<strong>{{ formName }}</strong> {{ Forminator.l10n.options.been_published }}");Forminator.Notification.open("success",o({formName:Forminator.Utils.sanitize_uri_string(n)}),4e3)}return i&&setTimeout(function(){jQuery(".forminator-create-"+i).click()},200),this.render()},dismiss_welcome:function(e){e.preventDefault();var n=t(e.target).closest(".sui-box"),i=t(e.target).data("nonce");n.slideToggle(300,function(){t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_dismiss_welcome",_ajax_nonce:i},complete:function(t){n.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 e=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","keyup input.forminator-custom-directory-value":"show_custom_directory","click #forminator-disconnect-hub":"disconnectHub"},initialize:function(){var e=this;if(t(".wpmudev-forminator-forminator-settings").length||t(".wpmudev-forminator-forminator-addons").length){this.$el.find(".forminator-settings-save").submit(function(n){n.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");e.submitForm(t(this),a,o,r,s)});var n=window.location.hash;_.isUndefined(n)||_.isEmpty(n)||this.sidenav_go_to(n.substring(1),!0),this.renderHcaptcha(),this.renderCloudflareTurnstile(),this.render("v2"),this.render("v2-invisible"),this.render("v3"),this.captchaTab()}},disconnectHub:function(e){e.preventDefault();const n=t("#forminator-disconnect-site-message").val();var i={action:"forminator_disconnect_hub",_ajax_nonce:Forminator.Data.disconnect_hub_nonce,message:n};t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:i,beforeSend:function(){t("#forminator-disconnect-hub").addClass("sui-button-onload-text")},success:function(t){t&&t.success?(SUI.closeModal(),Forminator.Notification.open("success",t.data,4e3),window.location.reload()):Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3)}}).always(function(){t("#forminator-disconnect-hub").removeClass("sui-button-onload-text")})},captchaTab:function(){var e=this.$el.find('input[name="captcha_tab_saved"]');this.$el.find("button.captcha-main-tab").on("click",function(n){n.preventDefault(),e.val(t(this).data("tab-name"))})},render:function(e){var n=this.$el.find("#"+e+"-recaptcha-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_recaptcha_preview",_ajax_nonce:forminatorData.loadCaptcha,captcha:e}}).done(function(t){t.success&&n.html(t.data)})},renderHcaptcha:function(){var e=this.$el.find("#hcaptcha-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_hcaptcha_preview",_ajax_nonce:forminatorData.loadCaptcha}}).done(function(t){t.success&&e.html(t.data)})},renderCloudflareTurnstile:function(){var e=this.$el.find("#turnstile-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_turnstile_preview",_ajax_nonce:forminatorData.loadCaptcha}}).done(function(t){t.success&&e.html(t.data)})},submitForm:function(e,n,i,o,a){var r={},s=this;r.action="forminator_save_"+n+"_popup",r._ajax_nonce=i;var l=e.serialize()+"&"+t.param(r);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:l,beforeSend:function(){e.find(".sui-button").prop("disabled",!0),e.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"===n)$captcha_tab_saved=e.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():"turnstile"===$captcha_tab_saved&&s.renderCloudflareTurnstile();else if("geolocation_settings"===n){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(){e.find(".sui-button").prop("disabled",!1),e.find(".wpmudev-action-done").removeClass("sui-button-onload")})},sidetabs:function(t){var e=this.$(t.target),n=e.parent("label"),i=e.data("tab-menu"),o=e.closest(".sui-side-tabs"),a=o.find(".sui-tabs-menu .sui-tab-item"),r=a.find("input");e.is("input")&&(a.removeClass("active"),r.removeAttr("checked"),o.find(".sui-tabs-content > div").removeClass("active"),n.addClass("active"),e.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(e){var n=t(e.target).data("nav");n&&this.sidenav_go_to(n,!0),e.preventDefault()},sidenav_select:function(e){var n=t(e.target).val();n&&this.sidenav_go_to(n,!0),e.preventDefault()},sidenav_go_to:function(t,e){var n=this.$el.find('a[data-nav="'+t+'"]'),i=n.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+'"]');e&&history.pushState({selected_tab:t},"Global Settings","admin.php?page=forminator-settings&section="+t),o.removeClass("current"),a.hide(),n.parent().addClass("current"),r.show()},open_configure_connect_modal:function(e){var n=t(e.target),i=n.data("slug"),o=n.data("action");"stripe-connect-modal"===o?this.open_stripe_connect_modal(e):"paypal-connect-modal"===o?this.open_paypal_connect_modal(e):i&&this.open_connect_modal(e,i)},open_stripe_connect_modal:function(e){e.preventDefault();var n=this,i=t(e.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 e=t(this);n.render_stripe_connect_modal_content(e,s,{})},l),!1},render_stripe_connect_modal_content:function(e,n,i){var o=this;i.action="forminator_stripe_settings_modal",i._ajax_nonce=n,i.page_slug=Forminator.Utils.get_url_param("page");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:i}).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 i=t.data.buttons;e.find(".sui-box-footer").html(""),_.each(i,function(t){e.find(".sui-box-footer").append(t.markup)}),e.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(n))}})},update_stripe_page:function(e){var n={action:"forminator_stripe_update_page",_ajax_nonce:e};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-stripe").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},show_unsupported_settings:function(e){e.preventDefault(),t(".forminator-unsupported-settings").show()},hide_unsupported_settings:function(e){e.preventDefault(),t(".forminator-unsupported-settings").hide()},connect_stripe:function(e){e.preventDefault();var n=t(e.target);n.addClass("sui-button-onload");var i=n.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),a=o.find("form"),r=a.serializeArray(),s={};return t.map(r,function(t,e){s[t.name]=t.value}),s.connect=!0,this.render_stripe_connect_modal_content(o,i,s),!1},connect_addon:function(e){e.preventDefault();var n=t(e.target);n.addClass("sui-button-onload");var i=n.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,e){l[t.name]=t.value}),l.connect=!0,this.render_connect_modal_content(r,o,i,l),!1},buttonTabs:function(t){var e=this.$(t.target),n=e.closest(".sui-tabs"),i=n.find(".sui-tabs-menu .sui-tab-item"),o=n.find(".sui-tabs-content .sui-tab-content");e.is("button")&&(i.removeClass("active"),i.attr("tabindex","-1"),o.attr("hidden",!0),o.removeClass("active"),e.removeAttr("tabindex"),e.addClass("active"),n.find("#"+e.attr("aria-controls")).addClass("active"),n.find("#"+e.attr("aria-controls")).attr("hidden",!1),n.find("#"+e.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},open_connect_modal:function(e,n){e.preventDefault();var i=this,o=t(e.target),a=o.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var e=t(this);i.render_connect_modal_content(n,e,a,{})},{title:forminatorl10n[n].configure_title,image:forminatorData.imagesUrl+"/"+n+"-logo.png",image_x2:forminatorData.imagesUrl+"/"+n+"-logo@2x.png"}),!1},render_connect_modal_content:function(e,n,i,o){var a=this;o.action="forminator_"+e+"_settings_modal",o._ajax_nonce=i;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:o}).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 e=t.data.buttons;n.find(".sui-box-footer").html(""),_.each(e,function(t){n.find(".sui-box-footer").append(t.markup)}),n.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(e){e.preventDefault();var n=this,i=t(e.target),o=i.data("modalImage"),a=i.data("modalImageX2"),r=i.data("modalTitle"),s=i.data("modalNonce");return Forminator.Stripe_Popup.open(function(){var e=t(this);n.render_paypal_connect_modal_content(e,s,{})},{title:Forminator.Utils.sanitize_text_field(r),image:o,image_x2:a}),!1},render_paypal_connect_modal_content:function(e,n,i){var o=this;i.action="forminator_paypal_settings_modal",i._ajax_nonce=n,t.post({url:Forminator.Data.ajaxUrl,type:"post",data:i}).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 i=t.data.buttons;e.find(".sui-box-footer").html(""),_.each(i,function(t){e.find(".sui-box-footer").append(t.markup)}),e.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(n))}})},update_paypal_page:function(e){var n={action:"forminator_paypal_update_page",_ajax_nonce:e};t.post({url:Forminator.Data.ajaxUrl,type:"get",data:n}).done(function(t){jQuery("#sui-box-paypal").html(t.data),Forminator.Utils.sui_delegate_events(),Forminator.Stripe_Popup.close()})},connect_paypal:function(e){e.preventDefault();var n=t(e.target);n.addClass("sui-button-onload");var i=n.data("nonce"),o=this.$el.find("#forminator-stripe-popup"),a=o.find("form"),r=a.serializeArray(),s={};return t.map(r,function(t,e){s[t.name]=t.value}),s.connect=!0,this.render_paypal_connect_modal_content(o,i,s),!1},disconnect_stripe:function(e){var n=t(e.target),i={action:"forminator_disconnect_stripe",_ajax_nonce:n.data("nonce")};n.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(e){var n=t(e.target),i={action:"forminator_disconnect_paypal",_ajax_nonce:n.data("nonce")};n.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(){})})},show_custom_directory:function(e){var n=t(e.target),i=n.val();t(".forminator-custom-directory strong").html(i)}}),e=new e;return e})}(jQuery);var forminator_render_admin_captcha=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha"),e=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:n,size:i})},100)},forminator_render_admin_captcha_v2=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2"),e=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:n,size:i})},100)},forminator_render_admin_captcha_v2_invisible=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v2-invisible"),e=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:n,size:i,badge:"inline"})},100)},forminator_render_admin_captcha_v3=function(){setTimeout(function(){var t=jQuery(".forminator-g-recaptcha-v3"),e=t.data("sitekey"),n=t.data("theme"),i=t.data("size");window.grecaptcha.render(t[0],{sitekey:e,theme:n,size:i,badge:"inline"})},100)},forminator_render_admin_hcaptcha=function(){setTimeout(function(){var t=jQuery(".forminator-hcaptcha"),e=t.data("sitekey");hcaptcha.render(t[0],{sitekey:e})},1e3)},forminator_render_admin_turnstile=function(){setTimeout(function(){var t=jQuery(".forminator-turnstile"),e=t.data("sitekey");turnstile.render(t[0],{sitekey:e,"error-callback":function(t){Array.isArray(t)&&(t=t.join(", "));var e=Forminator.l10n.commons.turnstile_error.replace("%s",t);return document.querySelector(".forminator-turnstile").innerHTML='<div role="alert" id="inline-notice-general" class="sui-notice sui-notice-red sui-active" aria-live="assertive" style="display: block;"><div class="sui-notice-content"><div class="sui-notice-message"><span class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></span><p>'+e+"</p></div></div></div>",!0}})},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 sui-spacing-bottom--10">\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>\r\n\t\t\t\t<span class="sui-loading-text">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.cancel }}\r\n\t\t\t\t</span>\r\n\t\t\t\t\x3c!-- Spinning loading icon --\x3e\r\n\t\t\t\t<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>\r\n\t\t\t</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-loading-text">\r\n\t\t\t\t\t\t<span class="sui-icon-trash" aria-hidden="true"></span>\r\n\t\t\t\t\t\t{{ button }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t\x3c!-- Spinning loading icon --\x3e\r\n\t\t\t\t\t<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>\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: Rename Form (Content) --\x3e\r\n\t<script type="text/template" id="forminator-rename-popup-tpl">\r\n\r\n\t\t<div class="sui-box-body sui-content-center sui-spacing-top--10">\r\n\t\t\t<p id="forminator-popup__description" class="sui-description">{{ Forminator.l10n.templates.rename_descr }}</p>\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-screen-reader-text">{{ Forminator.l10n.templates.rename_descr }}</label>\r\n\t\t\t\t<input type="text"\r\n\t\t\t\t\tname="new_template_name"\r\n\t\t\t\t\tclass="sui-form-control fui-required"\r\n\t\t\t\t\tvalue="{{template_name}}"\r\n\t\t\t\t>\r\n\t\t\t\t<input type="hidden" name="template_id" value="{{template_id}}">\r\n\t\t\t\t<input type="hidden" name="template_rename_nonce" value="{{ Forminator.l10n.templates.rename_nonce }}">\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t<button id="forminator-rename-template" class="sui-button sui-button-blue" disabled>\r\n\t\t\t\t<span class="sui-loading-text">\r\n\t\t\t\t\t<i class="sui-icon-save" aria-hidden="true"></i>\r\n\t\t\t\t\t{{Forminator.l10n.popup.save}}\r\n\t\t\t\t</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\r\n\t\t</div>\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: Form Template Preview (Base Structure) --\x3e\r\n\t<script type="text/template" id="forminator-form-preview-tpl">\r\n\r\n\t\t<div class="sui-box-header">\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title">{{ template.name }}</h3>\r\n\r\n\t\t\t<button class="sui-button-icon sui-button-float--right forminator-popup-back sui-tooltip sui-tooltip-left" data-tooltip="{{ Forminator.l10n.popup.close_preview }}">\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_preview }}</span>\r\n\t\t\t</button>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="sui-box-body sui-content-center forminator-preview-image">\r\n\t\t\t<img src="{{ template.screenshot }}"\r\n\t\t\t\t alt="{{ Forminator.l10n.form.preview }}"\r\n\t\t\t\t class="sui-image"\r\n\t\t\t\t aria-hidden="true"\r\n\t\t\t/>\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-back">\r\n\t\t\t\t<span class="sui-loading-text">\r\n\t\t\t\t\t{{ Forminator.l10n.popup.close_preview }}\r\n\t\t\t\t</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\r\n\t\t\t<div class="sui-actions-right">\r\n\t\t\t\t{{ ctaButton }}\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 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">{{ Forminator.l10n.popup.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.month_day }}</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 for="forminator-field-schedule-email_to" class="sui-label">{{ Forminator.l10n.popup.email_to }}</label>\r\n\r\n\t\t\t\t\t\t\t\t\t<select id="forminator-field-schedule-email_to" 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">\r\n\r\n\t\t\t<h3 id="forminator-popup__title" class="sui-box-title">{{ Forminator.l10n.form.form_template_title }}</h3>\r\n\r\n\t\t\t<div class="sui-actions-right" aria-hidden="true">\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">{{ Forminator.l10n.popup.close }}</span>\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\t\t<div class="forminator-create-popup-sidebar">\r\n\r\n\t\t\t<div class="sui-row-with-sidenav">\r\n\r\n\t\t\t\t\x3c!-- Navigation --\x3e\r\n\t\t\t\t<div role="navigation" class="sui-sidenav">\r\n\r\n\t\t\t\t\t<div class="sui-form-field">\r\n\r\n\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\tplaceholder="{{ Forminator.l10n.templates.search }}"\r\n\t\t\t\t\t\t\tclass="sui-form-control search_template"\r\n\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\x3c!-- <div class="forminator-search-result">Show 3 results for “<strong>Registra</strong>”</div> --\x3e\r\n\r\n\t\t\t\t\t<ul class="sui-vertical-tabs">\r\n\r\n\t\t\t\t\t\t<li class="sui-vertical-tab {[ if ( true === presetTab ) { ]}current{[ } ]}">\r\n\t\t\t\t\t\t\t<a href="#" role="button" data-nav="preset-template">{{ Forminator.l10n.form.preset_templates }}</a>\r\n\t\t\t\t\t\t\t{[ if ( loading ) { ]}\r\n\t\t\t\t\t\t\t\t<span class="sui-icon-loader sui-loading"></span>\r\n\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t<span class="sui-tag forminator-tag-number">{{ count( templates ) }}</span>\r\n\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t\t{[ if( ! forminatorData.cloudDisabled ) { ]}\r\n\t\t\t\t\t\t\t<li class="sui-vertical-tab {[ if ( false === presetTab ) { ]}current{[ } ]}">\r\n\t\t\t\t\t\t\t\t<a href="#" role="button" data-nav="saved-template">{{ Forminator.l10n.form.saved_templates }}</a>\r\n\t\t\t\t\t\t\t\t{[ if( forminatorData.isHubConnected ) { ]}\r\n\t\t\t\t\t\t\t\t\t{[ if ( cloudLoading ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t<span class="sui-icon-loader sui-loading"></span>\r\n\t\t\t\t\t\t\t\t\t{[ } else if ( count( cloudTemplates ) > 0 ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t<span class="sui-tag forminator-tag-number">{{ count( cloudTemplates ) }}</span>\r\n\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t</ul>\r\n\r\n\t\t\t\t\t{[ if ( presetTab ) { ]}\r\n\r\n\t\t\t\t\t<div class="forminator-category forminator-template-category">\r\n\r\n\t\t\t\t\t\t<span class="forminator-category-name">{{ Forminator.l10n.form.categories }}</span>\r\n\r\n\t\t\t\t\t\t{[ if ( loading ) { ]}\r\n\t\t\t\t\t\t\t\x3c!-- Loading categories --\x3e\r\n\t\t\t\t\t\t\t<div class="forminator-loading-state">\r\n\t\t\t\t\t\t\t\t<span class="sui-icon-loader sui-loading"></span>\r\n\t\t\t\t\t\t\t\t<span aria-live="polite">\r\n\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.load_categories }}\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t{[ } else { ]}\r\n\r\n\t\t\t\t\t\t\t<ul class="sui-vertical-tabs sui-sidenav-hide-md">\r\n\t\t\t\t\t\t\t\t{[ _.each(templatesCategories, function(category){ ]}\r\n\t\t\t\t\t\t\t\t\t<li class="sui-vertical-tab">\r\n\t\t\t\t\t\t\t\t\t\t<a href="#" role="button" data-nav="{{ category.slug }}">{{ category.name }}</a>\r\n\t\t\t\t\t\t\t\t\t\t<span class="sui-tag forminator-tag-number">{{ category.templates_count }}</span>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t{[ }); ]}\r\n\t\t\t\t\t\t\t</ul>\r\n\r\n\t\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t\t</div>\r\n\r\n\r\n\t\t\t\t\t<div class="forminator-template-category">\r\n\t\t\t\t\t\t<div class="sui-sidenav-hide-lg">\r\n\r\n\t\t\t\t\t\t{[ if ( ! loading ) { ]}\r\n\t\t\t\t\t\t\t<select id="mobile_select_categories" class="sui-select">\r\n\t\t\t\t\t\t\t\t{[ _.each(templatesCategories, function(category){ ]}\r\n\t\t\t\t\t\t\t\t<option value="{{ category.slug }}" {[ if( selectValue === category.slug ) { ]}selected="selected"{[ } ]}>{{ category.name }}</option>\r\n\t\t\t\t\t\t\t\t{[ }); ]}\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t{[ } ]}\r\n\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="sui-sidenav-content">\r\n\t\t\t\t{[ if ( presetTab ) { ]}\r\n\t\t\t\t\t\x3c!--  --\x3e\r\n\r\n\t\t\t\t\t{[ if( loading ) { ]}\r\n\t\t\t\t\t\t\x3c!-- Loading text --\x3e\r\n\t\t\t\t\t\t<div class="forminator-loading-state">\r\n\t\t\t\t\t\t\t<span class="sui-icon-loader sui-loading"></span><span aria-live="polite">{{ Forminator.l10n.templates.loading_templates }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t{[ } else { ]}\r\n\r\n\t\t\t\t\t\x3c!-- SECTION: Preset templates (Current) --\x3e\r\n\t\t\t\t\t<div class="sui-box forminator-preset-template" data-nav="preset-template">\r\n\t\t\t\t\t\t<div class="sui-box-selectors sui-padding--hidden sui-box-selectors-col-3">\r\n\r\n\t\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t\t{[ _.each( templates, function( template, key ) { ]}\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t{[ if( \'blank\' === template.id ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-box-selector forminator-card forminator-blank-card select-form-template" data-id="{{template.id}}" data-name="{{template.name}}">\r\n\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t<div class="sui-box-selector forminator-card">\r\n\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-template-image">\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ if( ! template.thumbnail ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="forminator-template-icon">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="39" height="34" viewBox="0 0 39 34" fill="none" xmlns="http://www.w3.org/2000/svg">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M4.55572 30.8125H17.6512L17.3147 32.1539C17.163 32.7781 17.196 33.4156 17.4071 34H4.55572C2.2269 34 0.333496 32.0941 0.333496 29.75V4.25C0.333496 1.90586 2.2269 0 4.55572 0H15.4741C16.5957 0 17.671 0.444922 18.4627 1.2418L24.4332 7.25156C25.2248 8.04844 25.6668 9.13086 25.6668 10.2598V19.8953L22.5002 23.0828V10.625H17.2224C16.0547 10.625 15.1113 9.67539 15.1113 8.5V3.1875H4.55572C3.97516 3.1875 3.50016 3.66563 3.50016 4.25V29.75C3.50016 30.3344 3.97516 30.8125 4.55572 30.8125ZM36.605 15.652L37.555 16.6082C38.5842 17.6441 38.5842 19.3242 37.555 20.3668L35.6154 22.3191L30.9314 17.6043L32.871 15.652C33.9002 14.616 35.5693 14.616 36.605 15.652ZM20.9102 27.6914L29.4338 19.1117L34.1179 23.8266L25.5943 32.3996C25.3238 32.6719 24.9873 32.8645 24.6113 32.9574L20.6463 33.9535C20.2835 34.0465 19.9075 33.9402 19.6436 33.6746C19.3797 33.409 19.2741 33.0305 19.3665 32.6652L20.3561 28.6742C20.4484 28.3023 20.6397 27.957 20.9102 27.6848V27.6914Z" fill="#888888"/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-template-image-wrapper">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc="{{ template.thumbnail }}"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass="sui-image"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-preview-cta">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="sui-button sui-button-white sui-button-ghost preview-template" data-key="{{ key }}">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.form.preview }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t{[ if( ! forminatorData.isPro && template.pro && ! forminatorData.isHubConnected ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="sui-tag sui-tag-free-plan">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.free_plan }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t<span class="forminator-template-name">\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ template.name }}\r\n\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-card-cta">\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ if( template.pro && ! forminatorData.isHubConnected ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass="sui-button sui-button-bright-blue"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thref="{{ forminatorData.hubConnectPresetTemplateUrl }}"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ forminatorData.hubConnectButton }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="sui-button sui-button-blue select-form-template" data-id="{{template.id}}" data-name="{{template.name}}">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ if( \'blank\' === template.id ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.form.create_blank_form }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.create_form }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\r\n\t\t\t\t\t\t\t\t{[ }); ]}\r\n\r\n\t\t\t\t\t\t\t</ul>\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\t<div\r\n\t\t\t\t\t\tclass="sui-box sui-hidden sui-message sui-message-lg forminator-preset-template forminator-template-message-box"\r\n\t\t\t\t\t\tdata-nav="preset-template"\r\n\t\t\t\t\t\tid="forminator-no-search-result"\r\n\t\t\t\t\t>\r\n\r\n\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\tsrc="{{forminatorData.imagesUrl}}/forminator-no-result.png"\r\n\t\t\t\t\t\t\tsrcset="{{forminatorData.imagesUrl}}/forminator-no-result.png 1x, {{forminatorData.imagesUrl}}/forminator-no-result@2x.png 2x"\r\n\t\t\t\t\t\t\talt="{{ Forminator.l10n.templates.not_found }}"\r\n\t\t\t\t\t\t\tclass="sui-image"\r\n\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t<div class="sui-message-content">\r\n\t\t\t\t\t\t\t<h3 data-title="{{ Forminator.l10n.templates.no_results }}"></h3>\r\n\t\t\t\t\t\t\t<p>{{ Forminator.l10n.templates.empty_search }}</p>\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\t{[ } ]}\r\n\r\n\t\t\t\t\t{[ _.each( templatesCategories, function( category ){ ]}\r\n\r\n\t\t\t\t\t<div class="sui-box forminator-preset-template" data-nav="{{ category.slug }}" style="display: none; ">\r\n\t\t\t\t\t\t<div class="sui-box-selectors sui-padding--hidden sui-box-selectors-col-3">\r\n\r\n\t\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t\t{[ _.each( templates, function( template, key ){ ]}\r\n\t\t\t\t\t\t\t\t\t{[ if( template.category === category.slug || \'all\' === category.slug ){ ]}\r\n\t\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t\t<div class="sui-box-selector forminator-card">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-template-image">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ if( ! template.thumbnail ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="forminator-template-icon">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="39" height="34" viewBox="0 0 39 34" fill="none" xmlns="http://www.w3.org/2000/svg">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M4.55572 30.8125H17.6512L17.3147 32.1539C17.163 32.7781 17.196 33.4156 17.4071 34H4.55572C2.2269 34 0.333496 32.0941 0.333496 29.75V4.25C0.333496 1.90586 2.2269 0 4.55572 0H15.4741C16.5957 0 17.671 0.444922 18.4627 1.2418L24.4332 7.25156C25.2248 8.04844 25.6668 9.13086 25.6668 10.2598V19.8953L22.5002 23.0828V10.625H17.2224C16.0547 10.625 15.1113 9.67539 15.1113 8.5V3.1875H4.55572C3.97516 3.1875 3.50016 3.66563 3.50016 4.25V29.75C3.50016 30.3344 3.97516 30.8125 4.55572 30.8125ZM36.605 15.652L37.555 16.6082C38.5842 17.6441 38.5842 19.3242 37.555 20.3668L35.6154 22.3191L30.9314 17.6043L32.871 15.652C33.9002 14.616 35.5693 14.616 36.605 15.652ZM20.9102 27.6914L29.4338 19.1117L34.1179 23.8266L25.5943 32.3996C25.3238 32.6719 24.9873 32.8645 24.6113 32.9574L20.6463 33.9535C20.2835 34.0465 19.9075 33.9402 19.6436 33.6746C19.3797 33.409 19.2741 33.0305 19.3665 32.6652L20.3561 28.6742C20.4484 28.3023 20.6397 27.957 20.9102 27.6848V27.6914Z" fill="#888888"/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-template-image-wrapper">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc="{{ template.thumbnail }}"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass="sui-image"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-preview-cta">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="sui-button sui-button-white sui-button-ghost preview-template" data-key="{{ key }}">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.form.preview }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ if( ! forminatorData.isPro && template.pro && ! forminatorData.isHubConnected ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="sui-tag sui-tag-free-plan">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.free_plan }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="forminator-template-name">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ template.name }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="forminator-card-cta">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ if( template.pro && ! forminatorData.isHubConnected ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass="sui-button sui-button-bright-blue"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thref="{{ forminatorData.hubConnectPresetTemplateUrl }}"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ forminatorData.hubConnectButton }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="sui-button sui-button-blue select-form-template" data-id="{{template.id}}" data-name="{{template.name}}">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{[ if( \'blank\' === template.id ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.form.create_blank_form }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.create_form }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t</li>\r\n\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</ul>\r\n\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t{[ }); ]}\r\n\r\n\t\t\t\t{[ } else { ]}\r\n\r\n\t\t\t\t\t{[ if( ! forminatorData.isHubConnected ) { ]}\r\n\t\t\t\t\t\t\x3c!-- Connect site --\x3e\r\n\t\t\t\t\t\t<div class="sui-box sui-message sui-message-lg forminator-saved-template forminator-template-message-box" data-nav="saved-template">\r\n\r\n\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\tsrc="{{forminatorData.imagesUrl}}/{{forminatorData.hubConnectLogo}}.png"\r\n\t\t\t\t\t\t\t\tsrcset="{{forminatorData.imagesUrl}}/{{forminatorData.hubConnectLogo}}.png 1x, {{forminatorData.imagesUrl}}/{{forminatorData.hubConnectLogo}}@2x.png 2x"\r\n\t\t\t\t\t\t\t\talt="{{ Forminator.l10n.templates.alt_logo }}"\r\n\t\t\t\t\t\t\t\tclass="sui-image"\r\n\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t<div class="sui-message-content">\r\n\t\t\t\t\t\t\t\t<h3>{{ forminatorData.hubConnectTitle }}</h3>\r\n\t\t\t\t\t\t\t\t<p>{{ forminatorData.hubConnectDescription }}</p>\r\n\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\tclass="sui-button sui-button-icon-right sui-button-bright-blue"\r\n\t\t\t\t\t\t\t\t\t\thref="{{forminatorData.hubConnectUrl}}"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{{ forminatorData.hubConnectButton }}\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t{[ } else { ]}\r\n\r\n\t\t\t\t\t\t{[ if ( cloudLoading ) { ]}\r\n\t\t\t\t\t\t\t\x3c!-- Loading text --\x3e\r\n\t\t\t\t\t\t\t<div class="forminator-loading-state">\r\n\t\t\t\t\t\t\t\t<span class="sui-icon-loader sui-loading"></span><span aria-live="polite">{{ Forminator.l10n.templates.loading_templates }}</span>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t{[ } else if ( cloudTemplates.length > 0 ) { ]}\r\n\t\t\t\t\t\t\t\x3c!-- Saved templates --\x3e\r\n\t\t\t\t\t\t\t<div class="sui-box forminator-saved-template" data-nav="saved-template">\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-box-selectors sui-padding--hidden sui-box-selectors-col-1">\r\n\r\n\t\t\t\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t\t\t\t{[ _.each( cloudTemplates, function( template, key ){ ]}\r\n\t\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t\t<div class="sui-box-selector">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="forminator-icon sui-icon-cloud" aria-hidden="true"></span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="forminator-template-name">{{ template.name }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<button class="sui-button sui-button-blue select-form-template" data-id="{{template.id}}" data-name="{{template.name}}">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.create_form }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t\t\t{[ }); ]}\r\n\t\t\t\t\t\t\t\t\t</ul>\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\tclass="sui-box sui-hidden sui-message sui-message-lg forminator-saved-template forminator-template-message-box"\r\n\t\t\t\t\t\t\t\t\tdata-nav="saved-template"\r\n\t\t\t\t\t\t\t\t\tid="forminator-no-search-cloud-result"\r\n\t\t\t\t\t\t\t>\r\n\r\n\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\tsrc="{{forminatorData.imagesUrl}}/forminator-no-result.png"\r\n\t\t\t\t\t\t\t\t\t\tsrcset="{{forminatorData.imagesUrl}}/forminator-no-result.png 1x, {{forminatorData.imagesUrl}}/forminator-no-result@2x.png 2x"\r\n\t\t\t\t\t\t\t\t\t\talt="{{ Forminator.l10n.templates.not_found }}"\r\n\t\t\t\t\t\t\t\t\t\tclass="sui-image"\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-message-content">\r\n\t\t\t\t\t\t\t\t\t<h3 data-title="{{ Forminator.l10n.templates.no_results }}"></h3>\r\n\t\t\t\t\t\t\t\t\t<p>{{ Forminator.l10n.templates.empty_search }}</p>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t{[ } else { ]}\r\n\t\t\t\t\t\t\t\x3c!-- No templates --\x3e\r\n\t\t\t\t\t\t\t<div class="sui-box sui-message sui-message-lg forminator-saved-template forminator-template-message-box" data-nav="saved-template">\r\n\r\n\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\tsrc="{{forminatorData.imagesUrl}}/forminator-no-result.png"\r\n\t\t\t\t\t\t\t\t\t\tsrcset="{{forminatorData.imagesUrl}}/forminator-no-result.png 1x, {{forminatorData.imagesUrl}}/forminator-no-result@2x.png 2x"\r\n\t\t\t\t\t\t\t\t\t\talt=""\r\n\t\t\t\t\t\t\t\t\t\tclass="sui-image"\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t<div class="sui-message-content">\r\n\t\t\t\t\t\t\t\t\t<h3>{{ Forminator.l10n.templates.no_templates }}</h3>\r\n\t\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.no_templates_desc }}\r\n\t\t\t\t\t\t\t\t\t\t{[ if ( Forminator.Data.showDocLink ) { ]}\r\n\t\t\t\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.no_templates_link }}\r\n\t\t\t\t\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t{[ } ]}\r\n\t\t\t\t\t{[ } ]}\r\n\t\t\t\t{[ } ]}\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    <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(e){return Backbone.View.extend({className:"forminator-popup-create--cform",step:1,prevSection:null,prevSearch:"",isReturning:!1,template:"blank",events:{"click .select-form-template":"selectTemplate","click .preview-template":"previewTemplate","click .forminator-popup-back":"goBack","click .forminator-popup-close":"close","click .sui-sidenav .sui-vertical-tab a":"sidenav","change #mobile_select_categories":"sidenav","change .forminator-new-form-type":"clickTemplate","input .search_template":"search_presets"},search_presets:function(e){var n=t(e.target),i=this.$el.find(".sui-vertical-tab.current > a").data("nav"),o=n.val().toLowerCase();if("saved-template"!==i){var a=this.$el.find("#forminator-no-search-result");this.$el.find(".sui-box.forminator-preset-template").toggleClass("sui-hidden",!1),a.addClass("sui-hidden");var r=n.closest(".forminator-create-popup-sidebar").find(".forminator-preset-template:visible .sui-box-selectors ul");r.find("li").filter(function(){t(this).toggle(t(this).text().toLowerCase().indexOf(o)>-1)});const s=0===r.find("li:visible").length;this.$el.find(".sui-box.forminator-preset-template").toggleClass("sui-hidden",s),a.toggleClass("sui-hidden",!s).toggle(s);var l=a.find("h3").data("title");a.find("h3").text(l.replace("{search_text}",o))}else{var a=this.$el.find("#forminator-no-search-cloud-result");if(!a.length)return;this.$el.find(".forminator-saved-template").toggleClass("sui-hidden",!1),a.addClass("sui-hidden");var r=n.closest(".forminator-create-popup-sidebar").find(".forminator-saved-template .sui-box-selectors ul");r.find("li").filter(function(){t(this).toggle(t(this).text().toLowerCase().indexOf(o)>-1)});const s=0===r.find("li:visible").length;this.$el.find(".forminator-saved-template").toggleClass("sui-hidden",s),a.toggleClass("sui-hidden",!s).toggle(s);var l=a.find("h3").data("title");a.find("h3").text(l.replace("{search_text}",o))}},popupTpl:Forminator.Utils.template(t(e).find("#forminator-form-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-tpl").html()),newFormContent:Forminator.Utils.template(t(e).find("#forminator-new-form-content-tpl").html()),formPreviewTpl:Forminator.Utils.template(t(e).find("#forminator-form-preview-tpl").html()),render:function(e){var n=jQuery("#forminator-popup"),i=!0;if(1===this.step){var o=this,a={action:"forminator_preset_templates",_ajax_nonce:Forminator.Data.modules.custom_form.templates_nonce};if(Forminator.presetTemplates?i=!1:t.ajax({url:ajaxurl,type:"POST",data:a,success:function(t){t&&t.success?(Forminator.presetTemplates=t.data.templates,Forminator.presetCategories=t.data.categories,o.updateDOM({loading:!1})):Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3)}}),this.$el.find(".select-form-template").prop("disabled",!1),n.closest(".sui-modal").removeClass("sui-modal-sm"),this.updateDOM({loading:i}),this.isReturning){this.prevSection&&this.sidenav_go_to(this.prevSection);this.$el.find(".search_template").val(this.prevSearch).trigger("input"),this.isReturning=!1}}if(2===this.step){var r=t(e.target).data("key"),s=t(e.target).closest(".forminator-card").find(".forminator-card-cta").html();this.$el.html(this.formPreviewTpl({ctaButton:s,template:Forminator.presetTemplates[r]})),n.closest(".sui-modal").removeClass("sui-modal-sm")}},updateDOM:function(e){e=t.extend({cloudTemplates:Forminator.cloudTemplates||[],templates:Forminator.presetTemplates||[],templatesCategories:Forminator.presetCategories||[],presetTab:void 0===Forminator.presetTab||Forminator.presetTab,selectValue:this.$el.find("#mobile_select_categories").val(),loading:!1,cloudLoading:!1},e),this.$el.html(this.popupTpl(e)),SUI.select.init(this.$el.find("#mobile_select_categories"))},close:function(t){t.preventDefault(),Forminator.Popup.close()},clickTemplate:function(t){this.$el.find(".select-form-template").prop("disabled",!1)},selectTemplate:function(e){e.preventDefault(),this.template=t(e.currentTarget).data("id"),this.name=t(e.currentTarget).data("name"),"registration"===this.template&&(this.name=Forminator.l10n.popup.registration_name),"login"===this.template&&(this.name=Forminator.l10n.popup.login_name),this.isProcessing||this.createForm(e)},previewTemplate:function(t){t.preventDefault(),this.prevSection=this.$el.find(".sui-vertical-tab.current > a").data("nav")||null,this.prevSearch=this.$el.find(".search_template").val()||"",this.isReturning=!0,this.step=2,this.render(t)},goBack:function(t){t.preventDefault(),this.step--,this.render(t)},sidenav:function(e){var n=t(e.target).data("nav")||e.target.value;n&&(Forminator.presetTab="1"),"saved-template"!==n&&"preset-template"!==n||(Forminator.presetTab="saved-template"!==n),this.updateDOM({}),"saved-template"===n&&Forminator.Data.isHubConnected&&this.loadCloudTemplates(),"saved-template"!==n&&this.sidenav_go_to(n),this.$el.find(".search_template").val("").trigger("input"),e.preventDefault()},sidenav_go_to:function(t){var e=this.$el.find('a[data-nav="'+t+'"]'),n=e.closest(".sui-vertical-tabs"),i=n.find(".sui-vertical-tab"),o=this.$el.find(".sui-box[data-nav]"),a=this.$el.find('.sui-box[data-nav="'+t+'"]');i.removeClass("current"),o.hide(),e.parent().addClass("current"),a.show()},loadCloudTemplates:function(){var e=this,n={action:"forminator_get_cloud_templates",_ajax_nonce:forminatorData.load_cloud_templates};Forminator.cloudTemplates||(this.updateDOM({cloudLoading:!0}),t.ajax({url:ajaxurl,type:"POST",data:n,success:function(t){t&&t.success?(Forminator.cloudTemplates=t.data,e.updateDOM({cloudTemplates:Forminator.cloudTemplates})):Forminator.Notification.open("error",t.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3)}}))},createForm:function(e){this.isProcessing=!0;var n=Forminator.Data.modules.custom_form.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),n=n+"&name="+encodeURIComponent(this.name),n=n+"&template="+this.template,n=n+"&create_nonce="+forminatorData.createNonce,window.location.href=n}})})}(jQuery),function(t){formintorjs.define("admin/popup/login",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e){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(e).find("#forminator-quizzes-popup-tpl").html()),newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-quiz-tpl").html()),paginationTpl:Forminator.Utils.template(t(e).find("#forminator-new-quiz-pagination-tpl").html()),newFormContent:Forminator.Utils.template(t(e).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(e){e.preventDefault();var n=this.$el.find("input[name=forminator-new-quiz]:checked").val(),i=this.$el.find("#forminator-form-name").val();""===i.trim()?t(e.target).closest(".sui-box").find(".sui-error-message").show():(this.type=n,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 e=this.$el.find('input[name="forminator-quiz-pagination"]:checked').val();this.pagination=e,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(e){var n=t(e.target).is(":checked"),i=t(e.target).closest(".sui-box").find("#sui-quiz-leads-description");n?i.show():i.hide()},resetNameSetup:function(e){var n=t(e.target).next(".sui-error-message");n.is(":visible")&&(n.hide(),this.$el.find("#forminator-build-your-form").removeClass("sui-button-onload"))},createQuiz:function(e){var n=t(e.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,form_url=form_url+"&create_nonce="+forminatorData.createNonce,window.isTrue(this.pagination)&&(form_url+="&pagination=true"),n&&(form_url+="&leads=true"),window.location.href=form_url}})})}(jQuery),function(t){formintorjs.define("admin/popup/schedule",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({popupTpl:Forminator.Utils.template(t(e).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,e={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,permission:"forminator-entries"}},processResults:function(t){return{results:t.data}},cache:!0},createTag:function(t){const e=t.term.trim();return Forminator.Utils.is_email_wp(e)?{id:e,text:e}:null},insertTag:function(t,e){t.push(e)}};Forminator.Utils.forminator_select2_tags(this.$el,e)},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(e){var n=t(e.target);n.closest(".sui-tab-item").hasClass("tab-label-disable")?this.set_enabled(!1):n.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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e){return Backbone.View.extend({className:"wpmudev-popup-templates",newFormTpl:Forminator.Utils.template(t(e).find("#forminator-new-form-tpl").html()),newPollContent:Forminator.Utils.template(t(e).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(e){var n=t(e.target).next(".sui-error-message");n.is(":visible")&&(n.hide(),this.$el.find("#forminator-build-your-form").removeClass("sui-button-onload"))},create_poll:function(e){e.preventDefault();var n=t(e.target).addClass("sui-button-onload").closest(".sui-box").find("#forminator-form-name");if(""===n.val().trim())t(e.target).closest(".sui-box").find(".sui-error-message").show();else{var i=Forminator.Data.modules.polls.new_form_url;t(e.target).closest(".sui-box").find(".sui-error-message").hide(),i=i+"&name="+n.val(),i=i+"&create_nonce="+forminatorData.createNonce,window.location.href=i}}})})}(jQuery),function(t){formintorjs.define("admin/popup/ajax",["text!tpl/dashboard.html"],function(e){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 e=this,n={};if(n.action="forminator_load_"+this.action+"_popup",n._ajax_nonce=this.nonce,n.data=this.data,this.id&&(n.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>"),e.$el.html(i)}t.post({url:Forminator.Data.ajaxUrl,type:"post",data:n}).done(function(t){if(t&&t.success){e.$el.html(t.data),e.$el.find(".wpmudev-hidden-popup").show(400),Forminator.Utils.sui_delegate_events();e.$el.find(".forminator-custom-form");e.delegateEvents()}}).always(function(){e.$el.find(".fui-loading-dialog").remove()})},save:function(e){e.preventDefault();var n={},i=t(e.target).data("nonce");n.action="forminator_save_"+this.action+"_popup",n._ajax_nonce=i,t(".wpmudev-popup-form input, .wpmudev-popup-form select").each(function(){var e=t(this);n[e.attr("name")]=e.val()}),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:n,success:function(t){Forminator.Popup.close(!1,function(){window.location.reload()})}})},ajax_save:function(e){var n=this;e.preventDefault();var i={},o=t(e.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 e=t(this);("checkbox"!==e[0].type||"checkbox"===e[0].type&&e[0].checked)&&(i[e.attr("name")]=e.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 e=!1;_.isUndefined(t.data.url)||(e=t.data.url),Forminator.Popup.close(!1,function(){e&&(location.href=e)})}else{const n="<p>"+t.data+"</p>",i={type:"error",autoclose:{timeout:8e3}};_.isUndefined(t.data)||SUI.openNotice("wpmudev-ajax-error-placeholder",n,i)}}}).always(function(){n.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload")})},clear_exports:function(e){e.preventDefault();var n={},i=this,o=t(e.target).data("nonce"),a=t(e.target).data("form-id");n.action="forminator_clear_"+this.action+"_popup",n._ajax_nonce=o,n.id=a,t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:n,success:function(){i.render()}})},show_poll_custom_input:function(e){var n=this,i=this.$el.find(".forminator-input"),o=e.target.checked,a=t(e.target).attr("id");if(i.hide(),n.$el.find(".forminator-input#"+a+"-extra").length){var r=n.$el.find(".forminator-input#"+a+"-extra");o?r.show():r.hide()}},ajax_cf7_import:function(e){var n=this,i=n.$el.find("form").serializeArray();e.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 e=t.loaded/t.total;e=parseInt(100*e),n.$el.find(".forminator-cf7-importing .sui-progress-text").html(e+"%"),n.$el.find(".forminator-cf7-importing .sui-progress-bar span").css("width",e+"%")}},!1),t},success:function(t){!0===t.success?setTimeout(function(){n.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),n.$el.find(".forminator-cf7-imported").removeClass("sui-hidden")},1e3):_.isUndefined(t.data)||(setTimeout(function(){n.$el.find(".forminator-cf7-importing").addClass("sui-hidden"),n.$el.find(".forminator-cf7-imported-fail").removeClass("sui-hidden")},1e3),n.$el.find(".wpmudev-ajax-error-placeholder").removeClass("sui-hidden").find("p").text(t.data))}}).always(function(t){n.$el.find(".sui-button:not(.disable-loader)").removeClass("sui-button-onload"),n.$el.find(".forminator-cf7-import").addClass("sui-hidden"),n.$el.find(".forminator-cf7-importing").removeClass("sui-hidden")})},close_popup:function(){Forminator.Popup.close()},import_form_action:function(e){e.preventDefault();var n=t(e.target),i=n.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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).find("#forminator-delete-popup-tpl").html()),popupPollTpl:Forminator.Utils.template(t(e).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/rename",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"forminator-popup--rename",events:{"click #forminator-rename-template":"handleMouseClick",keyup:"handleKeyClick"},popupTpl:Forminator.Utils.template(t(e).find("#forminator-rename-popup-tpl").html()),initialize:function(t){this.id=t.id,this.title=t.title,this.title=Forminator.Utils.sanitize_uri_string(this.title),this.template_name=Forminator.Utils.sanitize_uri_string(t.template_name)},render:function(){this.$el.html(this.popupTpl({title:this.title,template_id:this.id,template_name:this.template_name}))},handleMouseClick:function(e){this.$el.find("#forminator-rename-template").addClass("sui-button-onload");var n=this,i={name:this.$el.find('[name="new_template_name"]').val(),id:this.$el.find('[name="template_id"]').val(),nonce:this.$el.find('[name="template_rename_nonce"]').val(),action:"forminator_rename_template"};t.ajax({url:ajaxurl,type:"POST",data:i,success:function(e){if(e&&e.success){SUI.closeModal(),Forminator.Notification.open("success",e.data.message,4e3);var n=t("#template-item-"+e.data.template.id);n.find(".cloud-template-name").text(e.data.template.name),n.find(".rename_template").data("template-name",e.data.template.name)}else Forminator.Notification.open("error",e.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3)},complete:function(){n.$el.find("#forminator-rename-template").removeClass("sui-button-onload")}})},handleKeyClick:function(t){if(t.preventDefault(),13===t.which)return this.handleMouseClick(t),!0;const e=this.$el.find('[name="new_template_name"]').val();e.length>0&&e!==this.template_name?this.$el.find("#forminator-rename-template").removeAttr("disabled"):this.$el.find("#forminator-rename-template").attr("disabled","disabled")}})})}(jQuery),function(t){formintorjs.define("admin/popup/preview",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"sui-box-body",initialize:function(e){var n=this,i={action:"",type:"",id:"",preview_data:{},enable_loader:!0};return"forminator_quizzes"===e.type&&(i.has_lead=e.has_lead,i.leads_id=e.leads_id),e=_.extend(i,e),this.action=e.action,this.type=e.type,this.nonce=e.nonce,this.id=e.id,this.render_id=0,this.preview_data=e.preview_data,this.enable_loader=e.enable_loader,"forminator_quizzes"===e.type&&(this.has_lead=e.has_lead,this.leads_id=e.leads_id),t(document).off("after.load.forminator"),t(document).on("after.load.forminator",function(t){n.after_load()}),this.render()},render:function(){var e=this,n={};if(n.action=this.action,n.type=this.type,n.id=this.id,n.render_id=this.render_id,n.nonce=this.nonce,n.is_preview=1,n.preview_data=this.preview_data,n.last_submit_data={},"forminator_quizzes"===this.type&&(n.has_lead=this.has_lead,n.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>"),e.$el.html(i)}var o=t('<form id="forminator-module-'+this.id+'" data-forminator-render="'+this.render_id+'" style="display:none"></form>');e.$el.append(o),t(e.$el.find("#forminator-module-"+this.id+'[data-forminator-render="'+this.render_id+'"]').get(0)).forminatorLoader(n)},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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e){t(e.currentTarget).addClass("sui-button-onload")}})})}(jQuery),function(t){formintorjs.define("admin/popup/disconnect-stripe",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup delete-stripe--popup",popupTpl:Forminator.Utils.template(t(e).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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e,n,i){var o={};o.action="forminator_approve_user_popup",o._ajax_nonce=n,o.activation_key=i;var a=e.serialize()+"&"+t.param(o);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:a,beforeSend:function(){e.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(){e.find(".sui-button").removeClass("sui-button-onload")})},approveUser:function(e){e.preventDefault(),t(e.target).addClass("sui-button-onload");var n=this.$el.find(".form-approve-user"),i=n.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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e,n,i,o,a){var r={action:"forminator_delete_unconfirmed_user_popup",_ajax_nonce:n,activation_key:i,form_id:o,entry_id:a},s=e.serialize()+"&"+t.param(r);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:s,beforeSend:function(){e.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(){e.find(".sui-button").removeClass("sui-button-onload")})},deleteUnconfirmedUser:function(e){e.preventDefault(),t(e.target).addClass("sui-button-onload");var n=this.$el.find(".form-delete-unconfirmed-user"),i=n.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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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"),e=this.$target.data("modal-preset-loading-text"),n=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(e),nameLabel:Forminator.Utils.sanitize_text_field(n),namePlaceholder:Forminator.Utils.sanitize_text_field(i)}))},toggleButton:function(e){setTimeout(function(){var n=t(e.currentTarget).val().trim();t("#forminator-create-preset").prop("disabled",!n)},300)},createPreset:function(e){e.preventDefault(),e.stopImmediatePropagation();var n=t(e.target);n.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,"new-preset-created"),n.removeClass("sui-button-onload-text")):(Forminator.Notification.open("error",t.data,4e3),n.removeClass("sui-button-onload-text"))},error:function(t){Forminator.Notification.open("error",t.data,4e3),
n.removeClass("sui-button-onload-text")}}),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/apply-appearance-preset",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e){e.preventDefault(),e.stopImmediatePropagation();var n=t(e.target);n.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),n.removeClass("sui-button-onload-text"))},error:function(t){Forminator.Notification.open("error",t.data,4e3),n.removeClass("sui-button-onload-text")}}),!1}})})}(jQuery),function(t){formintorjs.define("admin/popup/confirm",["text!tpl/dashboard.html"],function(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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(e){return Backbone.View.extend({className:"wpmudev-section--popup",popupTpl:Forminator.Utils.template(t(e).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">{{ Forminator.l10n.popup.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-save-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                                                               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                                                aria-label="{{ 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                                                aria-label="{{ 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                                                aria-label="{{ 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                                                aria-label  ="{{ 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">{{ Forminator.l10n.popup.close_label }}</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(e){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(e).find("#forminator-add-reports-content").html()),reportEditPopup:Forminator.Utils.template(t(e).find("#forminator-edit-reports-content").html()),settingsPopup:Forminator.Utils.template(t(e).find("#forminator-reports-settings-content").html()),schedulePopup:Forminator.Utils.template(t(e).find("#forminator-reports-schedule-content").html()),recipientsPopup:Forminator.Utils.template(t(e).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 e=t(this);"search"===e.data("theme")?SUI.select.initSearch(e):SUI.select.init(e)}),SUI.tabs()},mapActions:function(){this.initUserSelects(),this.toggleAddButton()},slide_modal:function(e){e.preventDefault();const n=t(e.currentTarget).data("modal-slide"),i=t(e.currentTarget).data("modal-slide-focus"),o=t(e.currentTarget).data("modal-slide-intro");SUI.slideModal(n,i,o)},close:function(t){t.preventDefault(),Forminator.Popup.close()},toggleAddButton:function(){const e=t('#notifications-invite-users-content input[id^="recipient-"]');e.on("keyup",function(){var n=!1;e.each(function(){""===t(this).val()&&(n=!0)}),n?t("#add-recipient-button").attr("disabled","disabled"):t("#add-recipient-button").attr("disabled",!1)})},inputTabs:function(t){var e=this.$(t.target),n=e.find("input"),i=n.data("tab-menu"),o=e.closest(".sui-side-tabs"),a=e.closest(".sui-tabs-menu").find(".sui-tab-item");e.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")),e.addClass("active"),o.find("#"+n.attr("aria-controls")).addClass("active"),o.find("#"+n.attr("aria-controls")).attr("hidden",!1),o.find("#"+n.attr("aria-controls")).removeAttr("hidden")),t.preventDefault()},load_users:function(){var e=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(n){if(void 0!==n.data){var i=0;n.data.forEach(function(t){e.addToUsersList(t,0==i++)}),e.fixRecipientCSS(t("#forminator-user-list"))}}})},addToUsersList:function(e,n){const i=t("#forminator-user-list"),o=n?"sui-tooltip-bottom-right":"sui-tooltip-top-right";var a='<div class="sui-recipient sui-recipient-rounded" data-id="'+e.id+'" data-email="'+e.email+'"><span class="sui-recipient-name"><span class="subscriber"><img alt="" src="'+e.avatar+'" alt="'+e.email+'"></span><span class="forminator-recipient-name">'+e.name+'</span></span><span class="sui-recipient-email">'+e.role+'</span><button type="button" class="sui-button-icon forminator-add-recipient sui-tooltip '+o+'" aria-label="'+forminatorl10n.popup.add_user+'" data-tooltip="'+forminatorl10n.popup.add_user+'"';a+="data-user='"+JSON.stringify(e)+"'>",a+='<span class="sui-icon-plus" aria-hidden="true"></span></button></div>',i.append(a),this.toggleRecipientList(i,!0)},toggleRecipientList:function(t,e){if(void 0!==t.html()){const n=0===t.html().trim().length;t.parent("div").toggleClass("sui-hidden",n).toggleClass("sui-margin-top",!n),e&&this.toggleUserNotice(!1)}},toggleUserNotice:function(e){const n=t(".notifications-recipients-notice"),i=t("#forminator-popup .sui-button.sui-button-blue"),o=t(".forminator-report-save");var a=forminatorl10n.popup.no_recipients;e?a=forminatorl10n.popup.recipient_exists:0!==this.notification.report_id&&(a=forminatorl10n.popup.no_recipient_disable),n.find("p").html(a),e?(n.removeClass("sui-hidden"),setTimeout(function(){n.addClass("sui-hidden")},3e3)):0===this.notification.recipients.length?(i.attr("disabled","disabled"),o.attr("disabled","disabled"),n.removeClass("sui-hidden")):(i.attr("disabled",!1),o.attr("disabled",!1),n.addClass("sui-hidden"))},fixRecipientCSS:function(t){const e=t.children().length>1?"hidden":"unset";t.css("overflow-x",e),t.find(".sui-recipient:first-of-type .sui-tooltip").removeClass("sui-tooltip-top-right").addClass("sui-tooltip-bottom-right")},add_recipient:function(e,n){if(e.preventDefault(),""!==n&&void 0!==n||(n=t(e.currentTarget).data("user")),"object"===jQuery.type(n)){this.addUser(n,"user");const i=t("#forminator-user-list"),o='.sui-recipient[data-email="'+n.email+'"]';i.find(o).remove(),this.fixRecipientCSS(i),this.toggleRecipientList(i,!1)}},addUser:function(e,n){if(this.notification.recipients.findIndex(function(t){return e.email===t.email})>-1)return void this.toggleUserNotice(!0);const i=t("#modal-"+n+"-recipients-list"),o=""===e.role?e.email:e.role;var a="";void 0!==e.is_pending&&(a=e.is_pending||void 0===e.is_subscribed||e.is_subscribed?e.is_pending?"pending":"confirmed":"unsubscribed");var r='<img src="'+e.avatar+'" alt="'+e.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="'+e.id+'" data-email="'+e.email+'"><span class="sui-recipient-name"><span class="subscriber '+a+'">'+r+'</span><span class="forminator-recipient-name">'+e.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+'" aria-label="'+forminatorl10n.popup.remove_user+'" data-id="'+e.id+'" data-email="'+e.email+'"data-type="'+n+'"><span class="sui-icon-trash" aria-hidden="true"></span></button></div>';i.append(l),this.notification.recipients.push(e),"user"===n&&this.notification.exclude.push(e.id),this.toggleRecipientList(i,!0)},remove_recipient:function(e){e.preventDefault();const n=t(e.currentTarget).data("id"),i=t(e.currentTarget).data("email"),o=t(e.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(n.toString()),l>-1&&this.notification.exclude.splice(l,1),this.returnToList(s)),l=this.notification.recipients.findIndex(function(t){return n===parseInt(t.id)&&i===t.email}),l>-1&&this.notification.recipients.splice(l,1),this.toggleRecipientList(a,!0)},returnToList:function(e){const n=t("#forminator-user-list"),i={id:e.data("id"),name:e.find(".forminator-recipient-name").text(),email:e.data("email"),role:e.find(".sui-recipient-email").text(),avatar:e.find("img").attr("src")};e.find(".resend-invite").remove(),e.find(".sui-icon-trash").removeClass("sui-icon-trash").addClass("sui-icon-plus"),e.find("button").removeClass("forminator-remove-recipient").attr("data-user",JSON.stringify(i)).attr("data-tooltip",forminatorl10n.popup.add_recipient).attr("aria-label",forminatorl10n.popup.add_recipient).addClass("forminator-add-recipient sui-tooltip-top-right"),n.append(e),this.fixRecipientCSS(n),this.toggleRecipientList(n,!1)},initUserSelects:function(){const e=t("#forminator-search-users"),n=this;e.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:n.notification.exclude}},processResults:function(t){return{results:jQuery.map(t.data,function(t,e){return{text:t.name,id:e,user:{name:t.name,email:t.email,role:t.role,avatar:t.avatar,id:t.id}}})}}}}),e.on("select2:select",function(t){n.add_recipient(t,t.params.data.user),e.val(null).trigger("change")})},invite_add_recipient:function(){const e=event.target;var n=this;e.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 e.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};n.addUser(r,"email"),i.val("").trigger("keyup"),o.val("").trigger("keyup"),e.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(e){e.preventDefault();const n=t(e.currentTarget).data("id");this.process_settings(),this.process_schedule(),0!==this.notification.recipients.length&&this.save(this.notification,n)},save:function(e,n){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:n,reports:e,status:i?"active":"inactive"},success:function(t){t.success&&location.reload()}})},fetch_report_data:function(e){const n=this;t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_fetch_report",nonce:forminatorl10n.popup.fetch_nonce,report_id:e},success:function(t){t.success&&void 0!==t.data&&(n.notification=t.data,n.load_users(),n.$el.html(n.reportEditPopup({notification:n.notification})),n.render_html())}}).always(function(){n.$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/rename","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(e,n,i,o,a,r,s,l,p,d,c,u,m,f,h,v,b,g,x,y){var w=Backbone.View.extend({el:"main.sui-wrap",events:{"click .wpmudev-open-modal":"open_modal","click .wpmudev-button-open-modal":"open_modal","click .forminator-close-hub-connected-modal":"on_close_hub_connected_model"},initialize:function(){var t=Forminator.Utils.get_url_param("new"),e=Forminator.Utils.get_url_param("title");if(t){var n=new a({title:e});n.render(),this.open_popup(n,Forminator.l10n.popup.congratulations)}return this.open_hub_connected(),this.open_export(),this.open_delete(),this.maybeShowNotice(),this.render()},render:function(){return this},maybeShowNotice:function(){var e=Forminator.l10n.notices;e&&t.each(e,function(t,e){var n=4e3;"custom_notice"===t&&(n=void 0),"error_notice"===t?Forminator.Notification.open("error",e,n):Forminator.Notification.open("success",e,n)})},open_hub_connected:function(){var t="forminator-hub-connected-successfully-modal";jQuery("#"+t).length&&setTimeout(function(){SUI.openModal(t,this),jQuery("#"+t).removeAttr("id")},100)},on_close_hub_connected_model:function(e){const n=t(e.currentTarget),i=new URL(window.location.href),o=i.searchParams.get("page"),a=n.data("feature");"forminator-templates"===o?"preset-template"===a?t("#forminator-templates").find("button#all-templates").trigger("click"):t("#forminator-templates").find("button#cloud-templates").trigger("click"):"forminator-cform"!==o&&"forminator"!==o||("forminator-cform"===o?t(".wpmudev-forminator-forminator-cform").find("button.wpmudev-button-open-modal").trigger("click"):t(".forminator-create-form").trigger("click"),"preset-template"===a?t(".forminator-create-popup-sidebar").find('a[data-nav="preset-template"]').trigger("click"):t(".forminator-create-popup-sidebar").find('a[data-nav="saved-template"]').trigger("click"))},open_delete:function(){var t=Forminator.Utils.get_url_param("delete"),e=Forminator.Utils.get_url_param("module_id"),n=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("",e,n,o,a)},100)},open_export:function(){var t=Forminator.Utils.get_url_param("export"),e=Forminator.Utils.get_url_param("module_id"),n=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,n,e,Forminator.l10n.popup.export_form,!1,!0,"wpmudev-ajax-popup")},100)},open_modal:function(e){e.preventDefault();var n=t(e.target);t(e.target).closest(".wpmudev-split--item");n.hasClass("wpmudev-open-modal")||n.hasClass("wpmudev-button-open-modal")||(n=n.closest(".wpmudev-open-modal,.wpmudev-button-open-modal"));var i=n.data("modal"),o=n.data("nonce"),a=n.data("form-id"),r=n.data("action"),s=n.data("has-leads"),l=n.data("leads-id"),p=n.data("modal-title"),d=n.data("modal-content"),c=n.data("button-text"),u=n.data("nonce-preview"),m=n.data("template-name");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"rename-module":this.open_rename_popup("",a,o,p,m);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,n);break;case"apply_preset":this.apply_appearance_preset_modal(n);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 f=n.data("activation-key");this.open_approve_user_popup(o,p,d,f);break;case"delete-unconfirmed-user-module":this.open_unconfirmed_user_popup(n.data("form-id"),o,p,d,n.data("activation-key"),n.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-deactivate":this.open_addons_actions_popup(i,n.data("addon"),o,p,d,n.data("addon-slug"),n.data("is_network"));break;case"configure-report":this.open_reports_notifications_popup(n.data("id"));break;case"delete-report":this.open_delete_popup("",a,o,p,d,r,c)}},open_popup:function(e,n,i,o,a,r,s,l,p){_.isUndefined(n)&&(n=Forminator.l10n.custom_form.popup_label);var d={title:n};_.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(e.el)?t(this).append(e):t(this).append(e.el),"function"==typeof s&&s.apply(this)},d,l,p)},open_ajax_popup:function(e,n,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:e,nonce:n,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(e,n,i,o,a,r,s){r=r||"delete";var p=new l({module:e,id:n,action:r,nonce:i,referrer:window.location.pathname+window.location.search,button:Forminator.Utils.sanitize_text_field(s),content: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_rename_popup:function(e,n,i,o,a){var r=new p({module:e,id:n,nonce:i,template_name:a});r.render();var s=r,l={title:o,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(s.el)?t(this).append(s):t(this).append(s.el)},l,"sm","center")},open_cform_popup:function(){var n=new e({type:"form"});n.render();var i=n,o={title:"",has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(i.el)?t(this).append(i):t(this).append(i.el)},o,"xxl")},open_polls_popup:function(){var e=new r;e.render();var n=e,i={title:"",has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(n.el)?t(this).append(n):t(this).append(n.el)},i,"sm")},open_quizzes_popup:function(){var e=new i;e.render();var n=e,o={title:Forminator.l10n.quiz.choose_quiz_title,has_custom_box:!0};Forminator.Popup.open(function(){_.isUndefined(n.el)?t(this).append(n):t(this).append(n.el)},o,"lg")},open_import_module_modal:function(t,e,n,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,e,n,i,o,a,r,"sm","center")},open_exports_schedule_popup:function(){var t=new o;this.open_popup(t,Forminator.l10n.popup.edit_scheduled_export,!0,void 0,void 0,void 0,void 0,"md","inline"),t.render()},open_reset_plugin_settings_popup:function(e,n,i){var o=new c({nonce:e,referrer:window.location.pathname+window.location.search,content:i});o.render();var a=o,r={title:n,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(e,n,i,o,a,r,s){s=s||!1;var l=new x({module:e,id:n,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 n;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,e,n,i,o,a,r){this.open_ajax_popup(t,e,n,i,o,a,r,"md","inline")},open_addons_page_modal:function(t,e,n,i,o,a,r){this.open_ajax_popup(t,e,n,i,o,a,r,"md","inline")},open_export_module_modal:function(t,e,n,i,o,a,r){var s="";switch(t){case"form":case"poll":case"quiz":s="export_"+t}this.open_ajax_popup(s,e,n,i,o,a,r,"md","inline")},open_preview_popup:function(e,n,i,o,a){_.isUndefined(n)&&(n=Forminator.l10n.custom_form.popup_label);var r=new d({action:i,type:o,nonce:a,id:e,enable_loader:!0,className:"sui-box-body"}),s={title:n,toggleValidation:"forminator_forms"===o,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(r.el)},s,"lg","inline")},open_quiz_preview_popup:function(e,n,i,o,a,r,s){_.isUndefined(n)&&(n=Forminator.l10n.custom_form.popup_label);var l=new d({action:i,type:o,id:e,enable_loader:!0,className:"sui-box-body",has_lead:a,leads_id:r,nonce:s}),p={title:n,has_custom_box:!0};Forminator.Popup.open(function(){t(this).append(l.el)},p,"lg","inline")},apply_appearance_preset_modal:function(e){var n=new b({$target:e});n.render();var i=n;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(e,n){var i=new g({confirmation_message:n,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:e,has_custom_box:!0},"sm","center")},create_appearance_preset_modal:function(e,n,i,o){var a=new v({nonce:e,$target:o,title:n,content:i});a.render();var r=a;Forminator.Popup.open(function(){t(this).append(r.el)},{title:n,has_custom_box:!0},"sm","center")},open_disconnect_stripe_popup:function(e,n,i){var o=new u({nonce:e,referrer:window.location.pathname+window.location.search,content:i});o.render();var a=o,r={title:n,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(e,n,i){var o=new m({nonce:e,referrer:window.location.pathname+window.location.search,content:i});o.render();var a=o,r={title:n,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(e,n,i,o){var a=new f({nonce:e,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:n,has_custom_box:!0},"md","inline")},open_unconfirmed_user_popup:function(e,n,i,o,a,r){var s=new h({formId:e,nonce:n,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(e){var n=new y({type:"reports",report_id:e});n.render();var i=n,o={title:"",has_custom_box:!0};0!==e?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 w})})}(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">{{ Forminator.l10n.popup.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{[ if( toggleValidation ) { ]}\r\n\t\t\t\t\t<span style="margin: 0 20px;">\r\n\t\t\t\t\t\t<label for="forminator-field-disable_validations" class="sui-toggle">\r\n\t\t\t\t\t\t\t<input type="checkbox" id="forminator-field-disable_validations" class="sui-form-control" value="true">\r\n\t\t\t\t\t\t\t<span class="sui-toggle-slider"></span>\r\n\t\t\t\t\t\t\t<span class="sui-toggle-label" style="white-space: nowrap;">{{ Forminator.l10n.popup.disable_validations }}</span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t{[ } ]}\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">{{ Forminator.l10n.popup.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">{{ Forminator.l10n.popup.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(e){return Backbone.View.extend({className:"wpmudev-section--integrations",loaderTpl:Forminator.Utils.template(t(e).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 e=this;return this.$el.find(".forminator-integration-close, .forminator-addon-close").on("click",function(){e.close(e)}),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(e,n,i){var o=this,a={data:e,close:n,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:e}).done(function(e){if(e&&e.success){o.render_reset(),o.render_body(e),o.render_footer(e),o.hide_elements();var i=e.data.data;o.on_render(i),o.$el.find(".sui-button").removeClass("sui-button-onload"),(n||!_.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 e=t(".forminator-integration-popup__body"),n=t(".forminator-integration-popup__footer");e.is(":hidden")&&e.css("display",""),n.is(":hidden")&&n.css("display","")},render_body:function(t){this.$el.find(".forminator-integration-popup__body").html(t.data.data.html);var e=this.$el.find(".forminator-integration-popup__body .forminator-integration-popup__header").remove();e.length>0&&this.$el.find(".forminator-integration-popup__header").html(e.html())},render_footer:function(t){var e=this,n=t.data.data.buttons;e.$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(n,function(t){e.$el.find(".sui-box-footer").append(t.markup)}),e.$el.find(".sui-box-footer").removeClass("sui-content-center").addClass("sui-content-separated"),(e.$el.find(".sui-box-footer").children(".forminator-integration-popup__close").length>0||n&&1===Object.keys(n).length)&&e.$el.find(".sui-box-footer").removeClass("sui-content-separated").addClass("sui-content-center")},hide_elements:function(){var e=t(".forminator-integration-popup__body"),n=t(".forminator-integration-popup__footer"),i=e.html(),o=n.html();i.trim().length||e.hide(),o.trim().length||n.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(e){var n={},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),n.action=this.action,n._ajax_nonce=this.nonce,n.data=a,this.request(n,!1,!1)},submit_next_step:function(e){var n={},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),n.action=this.action,n._ajax_nonce=this.nonce,n.data=a,this.request(n,!1,!1)},go_prev_step:function(t){var e={},n={slug:this.slug,step:this.get_prev_step(),global_id:this.global_id,current_step:this.step};this.form_id&&(n.form_id=this.form_id),this.multi_id&&(n.multi_id=this.multi_id),e.action=this.action,e._ajax_nonce=this.nonce,e.data=n,this.request(e,!1,!1)},finish_steps:function(e){var n={},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),n.action=this.action,n._ajax_nonce=this.nonce,n.data=a,this.request(n,!1,!1)},disconnect_addon:function(t){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.global_id=this.global_id,this.request(e,!0,!1)},form_disconnect_addon:function(t){var e={};e.action="forminator_addon_deactivate_for_module",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.form_id=this.form_id,e.data.form_type="form",this.multi_id&&(e.data.multi_id=this.multi_id),this.request(e,!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 e=0;if(navigator.userAgent.match("MSIE")){var n=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");e=n.width()-i.width(),n.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});e=100-o.width(),o.parent().remove()}return e}})})}(jQuery),function(t){formintorjs.define("admin/addons/addons",["admin/addons/view"],function(e){var n=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(e){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 e=this,n={};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>'),n.action="forminator_addon_get_addons",n._ajax_nonce=Forminator.Data.addonNonce,n.data={},t.post({url:Forminator.Data.ajaxUrl,type:"post",data:n}).done(function(t){t&&t.success&&e.$el.find("#forminator-integrations-page").html(t.data.data)}).always(function(){e.$el.find("#forminator-addons-preloader").remove()})},connect_integration:function(n){n.preventDefault();var i=t(n.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 e({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(e){e.preventDefault();var n=t(e.target),i=n.attr("href"),o="";if(_.isUndefined(i)){o=n.val()}else o=i.replace("#","",i);_.isEmpty(o)||(this.currentTab=o),this.update_tab(),e.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(e){var n=t(e.target),i=n.parent(),o=i.find(".sui-error-message"),a=n.closest("div[data-nav]"),r=a.find(".sui-box-footer"),s=r.find(".wpmudev-action-done");this.$el.hasClass("wpmudev-forminator-forminator-settings")&&(n.hasClass("forminator-required")&&!n.val()&&i.hasClass("sui-form-field")&&(i.addClass("sui-form-field-error"),o.show()),n.hasClass("forminator-required")&&n.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))),e.stopPropagation()}});jQuery(function(){new n})})}(jQuery),function(t){formintorjs.define("admin/addons-page",[],function(){var e=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(){if(t(".wpmudev-forminator-forminator-addons").length){const e=Forminator.Data.open_addon,n=Forminator.Data.install_addon;n&&this.$el.find('.addons-actions[data-action="addons-install"][data-addon="'+n+'"]').trigger("click"),e&&this.$el.find('.addons-page-details[data-form-id="'+e+'"]').trigger("click")}},addons_actions:function(e){var n=this,i=t(e.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?(n.$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"),n.$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 n.show_notification(t.data.error.message,"error"),!1;const e=n.$el.find("#forminator-modal-addons-details-"+p),o=e.find(".forminator-details-header button.addons-actions");if("addons-install"===r)setTimeout(function(){n.active_popup(p,"show","forminator-activate-popup"),n.$el.find(".sui-tab-content .addons-"+p).not(this).replaceWith(t.data.html),o.replaceWith(t.data.button),n.loader_remove()},1e3);else{if(n.show_notification(t.data.message,"success"),n.$el.find(".sui-tab-content .addons-"+p).not(this).replaceWith(t.data.html),"addons-update"===r){n.$el.find("#updates-addons-content .addons-"+p).remove();var a=n.$el.find("#updates-addons-content .sui-col-md-6").length;a<1&&n.$el.find("#updates-addons span.sui-tag").removeClass("sui-tag-yellow"),n.$el.find("#updates-addons span.sui-tag").html(a),e.find(".forminator-details-header--tags span.addons-update-tag").remove();var l=i.data("version");e.find(".forminator-details-header--tags span.addons-version").html(l),i.remove()}o.replaceWith(t.data.button),s&&location.reload()}}).fail(function(){n.show_notification(Forminator.l10n.commons.error_message,"error")}),!1)},close:function(e){e.preventDefault();var n=t(e.target),i=n.data("addon"),o=n.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,e){var n=void 0!==t?t:Forminator.l10n.commons.error_message;Forminator.Notification.open(e,n,4e3),this.loader_remove()},active_popup:function(t,e,n){var i=n+"-"+t,o="forminator-addon-"+t+"__card";"show"===e?SUI.openModal(i,o):SUI.closeModal()},open_addons_detail:function(e){var n=this,i=t(e.target),o=i.data("form-id");n.active_popup(o,"show","forminator-modal-addons-details")}}),e=new e;return e})}(jQuery),function(t){formintorjs.define("admin/reports-page",[],function(){var e=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 e=this;t(".wpmudev-forminator-forminator-reports").length&&(e.render_daterange(),e.chartJs=e.forminator_reports_chart(window.monthDays,window.submissions,window.canvas_spacing))},render_daterange:function(){var e=moment().startOf("month"),n=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:e,endDate:n,showCustomRangeLabel:!1}).val(e.format("MMMM DD, YYYY")+" - "+n.format("MMMM DD, YYYY"))},filter_report_date:function(e,n){var i=this,o=t(e.target),a=n.startDate,r=n.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:n.chosenLabel}}).done(function(e){if(e.data){var n=e.data,o=n.reports,a=n.chart_data,r=i.$el.find(".fui-table--apps"),s=i.$el.find("#forminator-reports");t.each(o,function(e,n){var o=i.$el.find(".increment-"+e);if(o.html(""),n.selected>0||0!==n.selected){var a="high"===n.difference?"fui-trend-green":"fui-trend-red",l="high"===n.difference?"sui-icon-arrow-up":"sui-icon-arrow-down",p='<i class="'+l+' sui-sm" aria-hidden="true"></i>';o.html(p+n.increment),o.removeClass("fui-trend-green").removeClass("fui-trend-red").addClass(a)}s.find(".selected-"+e).html(n.selected),s.find(".previous-"+e).html(n.previous),void 0!==n.average&&s.find(".average-"+e).html(n.average),void 0!==n.stripe&&s.find(".stripe-report").html(n.stripe),void 0!==n.paypal&&s.find(".paypal-report").html(n.paypal),i.$el.find(".forminator-reports-chart li.chart-"+e+" span").html(n.selected),"integration"===e&&t.each(n,function(t,e){var n=r.find(".increment-"+t);if(n.html(""),e.selected>0){var i="high"===e.difference?"fui-trend-green":"fui-trend-red",o="high"===e.difference?"sui-icon-arrow-up":"sui-icon-arrow-down",a='<i class="'+o+' sui-sm" aria-hidden="true"></i>';n.html(a+e.increment),n.removeClass("fui-trend-green").removeClass("fui-trend-red").addClass(i)}r.find(".selected-"+t).html(e.selected),r.find(".previous-"+t).html(e.previous)})});var l=a.monthDays,p=a.submissions,d=a.canvas_spacing;n.geolocation&&(i.$el.find("#forminator_report_geolocation_widget .forminator-report-widget-content").html(n.geolocation),SUI.suiAccordion(t(".sui-accordion"))),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,e,n,i){void 0!==t&&(t.data.labels=e,t.data.datasets[0].data=n,t.options.scales.yAxes[0].ticks.max=i,t.update())},forminator_reports_chart:function(t,e,n){var i=document.getElementById("forminator-module-"+window.chart_form_id+"-stats"),o={labels:t,datasets:[{label:window.chart_label,data:e,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:n,stepSize:1}}]},elements:{line:{tension:0},point:{radius:0}},tooltips:{custom:function(t){t&&(t.displayColors=!1)},callbacks:{title:function(t,e){return t[0].yLabel+" "+window.chart_label},label:function(t,e){return t.xLabel},labelTextColor:function(t,e){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 e=this.$(t.target),n=e.parent("label"),i=e.data("tab-menu"),o=e.closest(".sui-side-tabs"),a=o.find(".sui-tabs-menu .sui-tab-item"),r=a.find("input");e.is("input")&&(a.removeClass("active"),r.removeAttr("checked"),o.find(".sui-tabs-content > div").removeClass("active"),n.addClass("active"),e.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(e){var n=t(e.target).data("nav");n&&this.sidenav_go_to(n,!0),e.preventDefault()},sidenav_select:function(e){var n=t(e.target).val();n&&this.sidenav_go_to(n,!0),e.preventDefault()},sidenav_go_to:function(t,e){var n=this.$el.find('a[data-nav="'+t+'"]'),i=n.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(e){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(),n.parent().addClass("current"),r.show()},check_all:function(e){var n=this.$(e.target),i=n.is(":checked");if(n.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(e){var n=e.target.checked?"active":"inactive",i=t(e.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:n},success:function(n){var i=e.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 e=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(e)}"forminator-checked-all-reports"!==t(this).attr("id")&&t("#forminator-checked-all-reports").prop("checked",!1)}}),e=new e;return e})}(jQuery),formintorjs.define("text!admin/templates/templates.html",[],function(){return'\n<div>\n\t<script type="text/template" id="template-item-tpl">\n\t\t{[ _.each(templates, function(template) { ]}\n\t\t<div class="sui-builder-field" id="template-item-{{ template.template_id }}">\n\t\t\t<div class="sui-builder-field-label" tabindex="0">\n\t\t\t\t<span class="sui-icon-cloud" aria-hidden="true"></span>\n\t\t\t\t<span class="cloud-template-name">{{ template.name }}</span>\n\t\t\t</div>\n\t\t\t<div class="sui-field-actions">\n\t\t\t\t<button\n\t\t\t\t\t\tclass="sui-button sui-button-blue create-form"\n\t\t\t\t\t\tdata-id="{{ template.template_id }}"\n\n\t\t\t\t>\n\t\t\t\t\t<span class="sui-loading-text">\n\t\t\t\t\t\t{{ Forminator.l10n.templates.create_form }}\n\t\t\t\t\t</span>\n\t\t\t\t\t\x3c!-- Spinning loading icon --\x3e\n\t\t\t\t\t<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>\n\t\t\t\t</button>\n\t\t\t\t<div class="sui-dropdown">\n\t\t\t\t\t<button class="sui-button-icon sui-dropdown-anchor">\n\t\t\t\t\t\t<i class="sui-icon-widget-settings-config" aria-hidden="true"></i>\n\t\t\t\t\t\t<span class="sui-screen-reader-text">{{ Forminator.l10n.templates.open_actions }}</span>\n\t\t\t\t\t</button>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclass="duplicate_template"\n\t\t\t\t\t\t\t\tdata-id="{{ template.template_id }}"\n\t\t\t\t\t\t\t\tdata-nonce="{{ Forminator.l10n.templates.duplicate_nonce }}"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<i class="sui-icon-copy" aria-hidden="true"></i>\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.duplicate }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclass="wpmudev-open-modal rename_template"\n\t\t\t\t\t\t\t\t\tdata-modal="rename-module"\n\t\t\t\t\t\t\t\t\tdata-modal-title="{{ Forminator.l10n.templates.rename_template }}"\n\t\t\t\t\t\t\t\t\tdata-template-name="{{ template.name }}"\n\t\t\t\t\t\t\t\t\tdata-form-id="{{ template.template_id }}"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<i class="sui-icon-pencil" aria-hidden="true"></i>\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.templates.rename }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclass="sui-option-red wpmudev-open-modal"\n\t\t\t\t\t\t\t\tdata-modal="delete-module"\n\t\t\t\t\t\t\t\tdata-nonce="{{ Forminator.l10n.templates.delete_nonce }}"\n\t\t\t\t\t\t\t\tdata-modal-title="{{ Forminator.l10n.templates.delete_template }}"\n\t\t\t\t\t\t\t\tdata-modal-content="{{ Forminator.l10n.templates.delete_confirm }}"\n\t\t\t\t\t\t\t\tdata-form-id="{{ template.template_id }}"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<i class="sui-icon-trash" aria-hidden="true"></i>\n\t\t\t\t\t\t\t\t{{ Forminator.l10n.popup.delete }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t{[ }); ]}\n\t<\/script>\n</div>\n'}),function(t){formintorjs.define("admin/templates-page",["text!admin/templates/templates.html"],function(e){function n(e){e.preventDefault(),t(e.currentTarget).find("button.create-form").trigger("click")}function i(e){e.preventDefault(),e.stopPropagation();var n=t(e.target);if(n.hasClass("sui-button-onload"))return!1;var i=n.data();i.action="forminator_create_module_from_template",i._ajax_nonce=Forminator.Data.create_form_nonce;var o=t.param(i);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:o,beforeSend:function(){t(".create-form").addClass("sui-button-onload")},success:function(e){e&&e.success?_.isUndefined(e.data.url)?t(".create-form").removeClass("sui-button-onload"):location.href=e.data.url:(Forminator.Notification.open("error",e.data,4e3),t(".create-form").removeClass("sui-button-onload"))},error:function(e){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3),t(".create-form").removeClass("sui-button-onload")}})}function o(e){e.preventDefault()
;var n=t(e.currentTarget),i=t("#"+n.data("modal-open")),o=n.data("screenshot"),a=n.data("title"),r=i.find("#forminator-popup__title"),s=i.find(".sui-actions-right"),l=i.find(".forminator-preview-image .sui-image");r.length>0&&r.text(a),l.length>0&&l.attr("src",o),s.html(n.closest(".forminator-card-cta").find(">div:last").html())}t(document).on("click",".forminator-template-preview",o),t(document).on("click","button.create-form",i),t(document).on("click","div.create-blank-form",n);var a=Backbone.View.extend({el:".wpmudev-forminator-forminator-templates",events:{"click .popup-confirmation-confirm":"deleteTemplate","click button.duplicate_template":"duplicateTemplate","input .search_template":"search_presets","click .sui-sidenav .sui-vertical-tab a":"sidenav","change .sui-sidenav select.sui-mobile-nav":"sidenav_select"},search_presets:function(e){var n=t(e.target),i=n.hasClass("search_cloud_template"),o=i?this.$el.find("#forminator-no-cloud-result"):this.$el.find("#forminator-no-search-result"),a=n.val().toLowerCase();if(this.$el.find(".forminator-template-cards").toggleClass("sui-hidden",!1),o.toggle(!0),i)var r=n.closest(".sui-box-body").find("#cloud-templates-list .sui-builder-fields"),s=r.find(".sui-builder-field");else var r=n.closest(".sui-box-body").find(".forminator-template-cards:visible .sui-box-selectors ul"),s=r.find("li");s.filter(function(){t(this).toggle(t(this).text().toLowerCase().indexOf(a)>-1)});var l=0===s.filter(":visible").length;i||this.$el.find(".forminator-template-cards").toggleClass("sui-hidden",l),o.toggle(l);var p=o.find("h3").data("title");o.find("h3").text(p.replace("{search_text}",a))},sidenav:function(e){var n=t(e.target).data("nav");n&&this.sidenav_go_to(n,!0),e.preventDefault()},sidenav_select:function(e){var n=t(e.target).val();n&&this.sidenav_go_to(n,!0),e.preventDefault()},sidenav_go_to:function(t,e){var n=this.$el.find('a[data-nav="'+t+'"]'),i=n.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+'"]');e&&history.pushState({selected_tab:t},"Templates","admin.php?page=forminator-templates&section="+t),o.removeClass("current"),a.hide(),n.parent().addClass("current"),r.show(),r.find(".search_template").val("").trigger("input")},deleteTemplate:function(e){e.preventDefault();var n=t(e.target),i=n.closest("form");return this.submitDelete(i),!1},submitDelete:function(e){var n={},i=e.closest(".sui-modal");n.action="forminator_delete_template";var o=e.serialize()+"&"+t.param(n);t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:o,beforeSend:function(){i.find(".delete-action .sui-button").addClass("sui-button-onload"),i.find(".forminator-popup-cancel").attr("disabled","disabled")},success:function(n){if(n&&n.success){Forminator.Notification.open("success",n.data,4e3),SUI.closeModal();var i=e.find('input[name="id"]').val();t("#template-item-"+i).remove()}else Forminator.Notification.open("error",n.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3)}}).always(function(){i.find(".delete-action .sui-button").removeClass("sui-button-onload"),i.find(".forminator-popup-cancel").removeAttr("disabled")})},duplicateTemplate:function(e){e.preventDefault();var n=t(e.target),i=n.data();return this.duplicate(i,n),!1},duplicate:function(n,i){n.action="forminator_duplicate_template";var o=(i.closest("form"),t.param(n));t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:o,success:function(n){if(n&&n.success){Forminator.Notification.open("success",n.data.message,4e3);var o=Forminator.Utils.template(t(e).find("#template-item-tpl").html()),a=o({templates:[n.data.template]}),r=t(a);r.hide(),r.insertAfter(i.closest(".sui-builder-field")),r.fadeIn(1500)}else Forminator.Notification.open("error",n.data,4e3)},error:function(t){Forminator.Notification.open("error",Forminator.l10n.commons.error_message,4e3)}})}});a=new a,SUI.tabs({callback:function(n,i){var o=n.attr("id");if("cloud-templates"===o?history.pushState({selected_tab:o},"Templates","admin.php?page=forminator-templates&tab=cloud"):"all-templates"===o&&history.pushState({selected_tab:o},"Templates","admin.php?page=forminator-templates"),forminatorData.isHubConnected&&"cloud-templates"===o){var a={},r=t("#cloud-templates-loading");if(!r.is(":visible"))return;a.action="forminator_get_cloud_templates",a._ajax_nonce=Forminator.Data.load_cloud_templates;t.post({url:Forminator.Data.ajaxUrl,type:"post",data:a}).done(function(n){if(n&&n.success)if(n.data.length){t("#no-templates").hide(),t("#cloud-templates-content>div>div:not(#no-templates)").show();var i=Forminator.Utils.template(t(e).find("#template-item-tpl").html());t("#cloud-templates-list").show().find(".sui-builder-fields").html(i({templates:n.data})),t("#forminator-no-cloud-result").hide()}else t("#no-templates").show(),t("#cloud-templates-content>div>div:not(#no-templates)").hide()}).always(function(){r.addClass("sui-hidden")})}}});var r=t("#cloud-templates");return r.hasClass("active")&&r[0].dispatchEvent(new Event("click")),a})}(jQuery),function(t){formintorjs.define("admin/deactivation",[],function(){return new(Backbone.View.extend({el:"#wpwrap",events:{"click #deactivate-forminator-pro":"open_survey_model","click #deactivate-forminator":"open_survey_model","click .forminator-dismiss-deactivation-survey":"close","change .forminator-deactivation-survey-option input[type='radio']":"handle_deactivation_option_change","click .forminator-deactivate-button":"submit_and_deactivate","click .forminator-skip-and-deactivation":"skip_and_deactivate","click .forminator-deactivation-help":"requested_assistance_link"},initialize:function(){this.$model=t("#forminator-deactivation-survey-modal"),this.reason="not_set",this.requestedAssistance="na",this.modalAction="",this.message="",this.deactivationLink=this.get_deactivation_link(),this.$model.find("a.forminator-deactivation-help").length&&(this.requestedAssistance="no")},requested_assistance_link:function(){this.requestedAssistance="yes"},get_deactivation_link:function(){return t("#deactivate-forminator-pro").attr("href")||t("#deactivate-forminator").attr("href")},redirectToDeactivateLink:function(){window.location.href=this.deactivationLink},open_survey_model:function(t){t.preventDefault(),this.initialize(),SUI.openModal("forminator-deactivation-survey-modal","wpbody-content",void 0,!0,!1)},handle_deactivation_option_change:function(e){t(".forminator-deactivation-survey-option").find(".forminator-deactivation-survey-message").addClass("sui-hidden"),t(e.currentTarget).closest(".forminator-deactivation-survey-option").find(".forminator-deactivation-survey-message").removeClass("sui-hidden"),t(".forminator-deactivate-button").removeAttr("disabled")},close:function(t){t.preventDefault(),SUI.closeModal()},skip_and_deactivate:function(e){e.preventDefault();const n=t(e.currentTarget);this.modalAction="Skip",Forminator.Data.isTrackingActive?this.submit_survey(n):this.redirectToDeactivateLink()},submit_and_deactivate:function(e){e.preventDefault();const n=t(e.currentTarget);this.modalAction="Submit",this.submit_survey(n)},submit_survey:function(e){const n=this,i=n.$model.find(".forminator-deactivation-survey-modal").data("nonce"),o=n.$model.find('.forminator-deactivation-survey-option input[type="radio"]:checked').val(),a=n.$model.find('input[name="'+o+'_message"]');"Submit"===n.modalAction&&void 0!==o?n.reason=o:n.reason="not_set","Submit"===n.modalAction&&a.length>0?n.message=a.val():n.message="";const r={action:"forminator_deactivation_survey",reason:n.reason,message:n.message,_ajax_nonce:i,model_action:n.modalAction,requested_assistance:n.requestedAssistance};e&&(e.prop("disabled",!0),e.addClass("sui-button-onload-text")),t.post({url:Forminator.Data.ajaxUrl,type:"post",data:r}).done(function(){n.redirectToDeactivateLink()}).fail(function(){n.redirectToDeactivateLink()})}}))})}(jQuery),function(t){formintorjs.define("admin/views",["admin/dashboard","admin/settings-page","admin/popups","admin/addons/addons","admin/addons-page","admin/reports-page","admin/templates-page","admin/deactivation"],function(t,e,n,i,o,a,r,s){return{Views:{Dashboard:t,SettingsPage:e,Popups:n,AddonsPage:o,ReportsPage:a,TemplatesPage:r,Deactivation:s}}})}(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,e){var n=/([?&]preset)=([^&]*)/g,i=window.location.href.replace(n,"$1="+t);i===window.location.href&&(i+="&preset="+t),e&&(i+="new-preset-created"===e?"&create-status=success":"&forminator_notice="+e),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(){});