/*! For license information please see fluentform-global-settings.js.LICENSE.txt */ (()=>{var e,t={119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},373:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(){if(a.default.prototype.$isServer)return 0;if(void 0!==s)return s;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),s=t-i};var i,r=n(62893),a=(i=r)&&i.__esModule?i:{default:i};var s=void 0},659:(e,t,n)=>{var i=n(51873),r=Object.prototype,a=r.hasOwnProperty,s=r.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[o]=n:delete e[o]),r}},881:(e,t,n)=>{e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=95)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,s,o){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},4:function(e,t){e.exports=n(57153)},95:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])};i._withStripped=!0;var r=n(4),a={mixins:[n.n(r).a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some(function(e){return!0===e.visible})}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},s=n(0),o=Object(s.a)(a,i,[],!1,null,null,null);o.options.__file="packages/select/src/option-group.vue";var l=o.exports;l.install=function(e){e.component(l.name,l)};t.default=l}})},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},1356:(e,t,n)=>{var i=n(78423).f,r=n(75509),a=n(30254)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1743:(e,t,n)=>{var i=n(85081),r=n(77956).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},1882:(e,t,n)=>{var i=n(72552),r=n(23805);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2523:e=>{e.exports=function(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a{var i=n(78423),r=n(86260);e.exports=n(58219)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3086:(e,t,n)=>{e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=82)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,s,o){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",function(){return i})},11:function(e,t){e.exports=n(16265)},13:function(e,t){e.exports=n(36563)},4:function(e,t){e.exports=n(57153)},82:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])};i._withStripped=!0;var r=n(13),a=n.n(r),s=n(11),o=n.n(s),l=n(4),u=n.n(l),c={name:"ElDialog",mixins:[a.a,u.a,o.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(function(){t.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick(function(){t.key++}))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},d=n(0),f=Object(d.a)(c,i,[],!1,null,null,null);f.options.__file="packages/dialog/src/component.vue";var h=f.exports;h.install=function(e){e.component(h.name,h)};t.default=h}})},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,s=t.words[i];return 1===i.length?"y"===i&&n?"једна година":r||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===i&&n&&"годину"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3650:(e,t,n)=>{var i=n(74335)(Object.keys,Object);e.exports=i},3656:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=n(89935),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?i.Buffer:void 0,l=(o?o.isBuffer:void 0)||r;e.exports=l},3802:(e,t,n)=>{var i=n(24401),r=n(66670).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},4124:(e,t,n)=>{var i=n(45539)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=i},4347:(e,t,n)=>{"use strict";var i=n(54527),r=n.n(i),a=n(94765),s=n.n(a),o=n(91115),l=n.n(o),u=n(56820),c=n.n(u),d=n(16013),f=n.n(d),h=n(56690),p=n.n(h),m=n(13770),_=n.n(m),v=n(60721),g=n.n(v),y=n(67093),b=n.n(y),w=n(25438),M=n.n(w),k=n(77017),x=n.n(k),S=n(38116),L=n.n(S),D=n(5167),C=n.n(D),T=n(53016),Y=n.n(T),O=n(3086),j=n.n(O),$=n(8343),P=n.n($),E=n(32305),H=n.n(E),F=n(78514),A=n.n(F),N=n(10824),I=n.n(N),W=n(82928),R=n.n(W),z=n(33850),V=n.n(z),B=n(62107),q=n.n(B),U=n(54246),G=n.n(U),J=n(881),K=n.n(J),X=n(84535),Z=n.n(X),Q=n(75658),ee=n.n(Q),te=n(46493),ne=n.n(te),ie=n(23555),re=n.n(ie),ae=n(44140),se=n.n(ae),oe=n(75174),le=n.n(oe),ue=n(42060),ce=n.n(ue),de=n(56800),fe=n.n(de),he=n(71654),pe=n.n(he),me=n(62893),_e=n(43527),ve=n(74093);function ge(e,t,n,i,r,a,s,o){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}const ye=ge({name:"Card",props:{border:{type:Boolean},img:{type:String},imgClass:{type:String}}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"ff_card",class:e.border?"ff_card_border":null,on:{click:function(t){return e.$emit("click")}}},[e.img?t("div",{staticClass:"ff_card_img",class:e.imgClass},[t("img",{attrs:{src:e.img,alt:""}})]):e._e(),e._v(" "),e._t("default")],2)},[],!1,null,null,null).exports;const be=ge({name:"CardBody"},function(){return(0,this._self._c)("div",{staticClass:"ff_card_body"},[this._t("default")],2)},[],!1,null,null,null).exports;const we=ge({name:"CardHead"},function(){return(0,this._self._c)("div",{staticClass:"ff_card_head"},[this._t("default")],2)},[],!1,null,null,null).exports;const Me=ge({name:"Notice",props:["type","size"],computed:{isType:function(){return this.type?this.type:null},isSize:function(){return this.size?"ff_alert_"+this.size:null}}},function(){var e=this;return(0,e._self._c)("div",{staticClass:"ff_alert",class:[e.isType,e.isSize]},[e._t("default")],2)},[],!1,null,null,null).exports;const ke=ge({name:"CardHeadGroup"},function(){return(0,this._self._c)("div",{staticClass:"ff_card_head_group"},[this._t("default")],2)},[],!1,null,null,null).exports;n(95093);var xe=n(79859),Se=n.n(xe),Le=n(90128),De=n.n(Le),Ce=n(55378),Te=n.n(Ce),Ye=n(76135),Oe=n.n(Ye),je=n(21013),$e=n.n(je),Pe=n(61448),Ee=n.n(Pe),He=n(4124),Fe=n.n(He),Ae=n(88055),Ne=n.n(Ae),Ie=n(87612),We=n.n(Ie),Re=n(62193),ze=n.n(Re);void 0===Array.prototype.pushAfter&&(Array.prototype.pushAfter=function(e,t){var n=JSON.parse(JSON.stringify(t));this.splice(e+1,0,n)}),void 0===String.prototype.ucFirst&&(String.prototype.ucFirst=function(){return this.charAt(0).toUpperCase()+this.slice(1)}),void 0===String.prototype.ucWords&&(String.prototype.ucWords=function(){return this.split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}),window._ff={includes:Se(),startCase:De(),map:Te(),each:Oe(),chunk:$e(),has:Ee(),snakeCase:Fe(),cloneDeep:Ne(),filter:We(),isEmpty:ze(),unique:function(e,t,n){return n.indexOf(e)===t}};var Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.addClass("active").siblings().removeClass("active"),e.hasClass("has_sub_menu")&&(n?e.find(".ff_list_submenu").show():(e.toggleClass("is-submenu"),e.find(".ff_list_submenu").slideToggle()));var i=e.find("ul.ff_list_submenu li:first");if(i.length&&i.addClass("active").siblings().removeClass("active"),t){var r=e.closest("li.ff_list_button_item.has_sub_menu");r.length&&(n?(r.addClass("active"),r.find(".ff_list_submenu").show()):(r.find(".ff_list_submenu").slideToggle(),r.addClass("is-submenu active")))}e.siblings().hasClass("has_sub_menu")&&(e.siblings().removeClass("is-submenu"),e.siblings().find(".ff_list_submenu").slideUp())};function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"Success";this.$notify.success({title:t,message:e,position:"bottom-right"})},$fail:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";this.$notify.error({title:t,message:e,position:"bottom-right"})},$warning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Warning";this.$notify.warning({title:t,message:e,position:"bottom-right"})},$copy:function(){this.$success(this.$t("Copied to Clipboard."))}};const Je={name:"FormLayout",components:{Card:ye,CardHead:we,CardBody:be,Notice:Me,CardHeadGroup:ke,UpdateToProContent:qe,DefaultStyleTemplateSection:ge({name:"DefaultStyleTemplateSection",mixins:[Ge],components:{Card:ye,CardHead:we,CardBody:be,CardHeadGroup:ke,AceEditorCss:Ue.exports},props:{default_style_template:{required:!0}},data:function(){var e,t,n,i;return{aceLoaded:!1,ace_path:null===(e=window.FluentFormApp)||void 0===e?void 0:e.ace_path_url,forms:(null===(t=window.fluent_forms_global_var)||void 0===t?void 0:t.forms)||[],selectedFormId:null,loadingFormStyles:!1,styler_styles_json:"",hasPro:!!(null!==(n=window.FluentFormApp)&&void 0!==n&&n.has_pro||null!==(i=window.fluent_forms_global_var)&&void 0!==i&&i.hasPro),stylePresets:{ffs_default:{label:"Default"},ffs_inherit_theme:{label:"Inherit Theme Style"}}}},watch:{"default_style_template.styler_styles":{handler:function(e){try{this.styler_styles_json=JSON.stringify(e,null,2)}catch(e){this.styler_styles_json=""}},deep:!0,immediate:!0},styler_styles_json:{handler:function(e){try{this.$set(this.default_style_template,"styler_styles",JSON.parse(e))}catch(e){}}},selectedFormId:function(e){this.$set(this.default_style_template,"source_form_id",e)}},methods:{copyFormStyles:function(){var e=this;if(this.selectedFormId){this.loadingFormStyles=!0;var t=FluentFormsGlobal.$rest.route("getFormSettingsCustomizer",this.selectedFormId);FluentFormsGlobal.$rest.get(t).then(function(t){e.$set(e.default_style_template,"custom_css",t.css||""),e.$set(e.default_style_template,"styler_theme",t.styler_theme),e.hasPro&&(t.styler_theme&&e.$set(e.default_style_template,"styler_enabled","yes"),t.styler_styles&&e.$set(e.default_style_template,"styler_styles",t.styler_styles)),e.$success(e.$t('Styles copied successfully! Click "Save Settings" to apply.'))}).catch(function(t){console.log(t),e.$fail(t.message||e.$t("Failed to copy form styles"))}).finally(function(){e.loadingFormStyles=!1})}},clearSettings:function(){var e=this;this.$confirm(this.$t("This will clear all default style template settings. Are you sure?"),this.$t("Warning"),{confirmButtonText:this.$t("Yes, Clear"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){Object.assign(e.default_style_template,{enabled:"no",custom_css:"",styler_enabled:"no",styler_theme:"",styler_styles:{}}),e.selectedFormId=null,e.styler_styles_json="",e.$success(e.$t('Default style template cleared. Click "Save Settings" to apply changes.'))}).catch(function(){})},initAce:function(){var e=this;if("undefined"==typeof ace){if(this.ace_path){var t=this.ace_path+"/ace.min.js";jQuery.get(t,function(){e.aceLoaded=!0})}}else this.aceLoaded=!0},fetchStylePresets:function(){var e=this;if(this.forms.length>0){var t=this.forms[0].id,n=FluentFormsGlobal.$rest.route("getPresetSettings",t);FluentFormsGlobal.$rest.get(n).then(function(t){t.presets&&(e.stylePresets=t.presets)}).catch(function(){})}}},mounted:function(){this.initAce(),this.fetchStylePresets(),this.selectedFormId=this.default_style_template.source_form_id||null}},function(){var e=this,t=e._self._c;return t("card",{attrs:{id:"default-style-template"}},[t("card-head",[t("card-head-group",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Default Style Template")))]),e._v(" "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Set default styles (CSS, JavaScript, and Form Styler settings) that will be automatically applied to all newly created forms."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)],1),e._v(" "),t("card-body",[t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item mb-3 ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Enable Default Style Template"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("When enabled, all newly created forms will automatically inherit the styles configured below."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.default_style_template.enabled,callback:function(t){e.$set(e.default_style_template,"enabled",t)},expression:"default_style_template.enabled"}})],2)],1),e._v(" "),"yes"===e.default_style_template.enabled?[t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Copy Styles from Existing Form"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Select a form to copy its custom CSS, JavaScript, and Form Styler settings as the default template."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:18}},[t("el-select",{staticClass:"w-100",attrs:{placeholder:e.$t("Select a form"),filterable:"",clearable:""},model:{value:e.selectedFormId,callback:function(t){e.selectedFormId=t},expression:"selectedFormId"}},e._l(e.forms,function(n){return t("el-option",{key:n.id,attrs:{label:n.title,value:parseInt(n.id)}},[t("span",[e._v(e._s(n.title))]),e._v(" "),t("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("ID: "+e._s(n.id))])])}),1)],1),e._v(" "),t("el-col",{attrs:{span:6}},[t("el-button",{attrs:{type:"primary",disabled:!e.selectedFormId,loading:e.loadingFormStyles},on:{click:e.copyFormStyles}},[e._v("\n "+e._s(e.$t("Copy Styles"))+"\n ")])],1)],1)],2)],1),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Custom CSS"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Custom CSS that will be applied to all new forms. Use .fluent_form_FF_ID as selector where FF_ID will be replaced with form ID."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("ace-editor-css",{attrs:{editor_id:"default_template_custom_css",mode:"css",aceLoaded:e.aceLoaded},model:{value:e.default_style_template.custom_css,callback:function(t){e.$set(e.default_style_template,"custom_css",t)},expression:"default_style_template.custom_css"}})],2)],1),e._v(" "),[t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Form Styler Theme"))+"\n ")]),e._v(" "),t("el-select",{staticClass:"w-100",attrs:{placeholder:e.$t("Select a theme")},model:{value:e.default_style_template.styler_theme,callback:function(t){e.$set(e.default_style_template,"styler_theme",t)},expression:"default_style_template.styler_theme"}},e._l(e.stylePresets,function(e,n){return t("el-option",{key:n,attrs:{value:n,label:e.label}})}),1)],2)],1)],e._v(" "),e.hasPro?[t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item mb-3 ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Include Form Styler Settings"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this to include Form Styler theme and styles in the default template."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.default_style_template.styler_enabled,callback:function(t){e.$set(e.default_style_template,"styler_enabled",t)},expression:"default_style_template.styler_enabled"}})],2)],1),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},["yes"===e.default_style_template.styler_enabled?t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Form Styler Styles (JSON)"))+"\n ")]),e._v(" "),t("el-input",{attrs:{type:"textarea",rows:6,placeholder:e.$t("Enter Form Styler styles as JSON")},model:{value:e.styler_styles_json,callback:function(t){e.styler_styles_json=t},expression:"styler_styles_json"}})],2):e._e()],1)]:e._e(),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},[t("el-button",{attrs:{type:"danger",plain:"",size:"small"},on:{click:e.clearSettings}},[e._v("\n "+e._s(e.$t("Clear Default Style Template"))+"\n ")])],1)]:e._e()],2)],1)},[],!1,null,null,null).exports},props:{data:{required:!0},email_report:{required:!0},integration_failure_notification:{required:!0},file_upload_optoins:{required:!0},captcha_status:{required:!0},default_message_setting_fields:{required:!0},default_style_template:{required:!0}},data:function(){return{labelPlacementOptions:{top:"Top aligned",left:"Left aligned",right:"Right aligned"},helpMessagePlacementOptions:{with_label:"Beside Label as Tooltip",under_input:"Below Input Box"},errorMessagesPlacement:{inline:"Show error messages after each input",stackToBottom:"Show all error messages after submit button as stack"},akismet_available:window.FluentFormApp.akismet_activated,cleantalk_available:window.FluentFormApp.cleantalk_activated,layout:{},misc:{},default_messages:{},sending_days:{Mon:"Monday",Tue:"Tuesday",Wed:"Wednesday",Thu:"Thursday",Fri:"Friday",Sat:"Saturday",Sun:"Sunday"},geo_providers:{"ipinfo.io":{label:"ipinfo.io",has_token:!0,token_instruction:"For high volume of users, you can add an API token."}},hasPro:!!window.FluentFormApp.has_pro}},computed:{hasCaptcha:function(){return!!this.captcha_status.hcaptcha||!!this.captcha_status.recaptcha||!!this.captcha_status.turnstile},siteUrl:function(){return window.location.origin}},methods:{scrollTo:function(){var e=jQuery(".ff-page-scroll");window.location.hash.indexOf("fluent_forms_settings")&&e.each(function(){jQuery(this).on("click",function(e){var t=this,n=jQuery(this).attr("data-section-id");e.preventDefault(),jQuery(n).addClass("highlight-border");var i=jQuery(".ff_global_settings_option");if(i.length){var r,a=(null===(r=jQuery(".ff_header").first())||void 0===r?void 0:r.outerHeight())||0,s=jQuery("#wpadminbar").outerHeight()||0;(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return jQuery(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"html, body").animate({scrollTop:e},t).promise()})(jQuery(n).offset().top+i.scrollTop()-(s+a+i.position().top),"fast",".ff_global_settings_option").then(function(e){n.length&&setTimeout(function(){jQuery(n).not(t).removeClass("highlight-border")},500)})}})})}},mounted:function(){for(var e in this.scrollTo(),this.layout=this.data.layout,this.default_message_setting_fields)e in this.data.default_messages||this.$set(this.data.default_messages,e,this.default_message_setting_fields[e].value);this.default_messages=this.data.default_messages,this.data.misc.akismet_validation||this.$set(this.data.misc,"akismet_validation","mark_as_spam"),this.data.misc.cleantalk_validation||this.$set(this.data.misc,"cleantalk_validation","mark_as_spam"),this.data.misc.geo_provider||this.$set(this.data.misc,"geo_provider","ipinfo.io"),this.data.misc.file_upload_locations||this.$set(this.data.misc,"file_upload_locations","default"),this.data.misc.admin_top_nav_status||this.$set(this.data.misc,"admin_top_nav_status","yes"),this.data.misc.default_admin_date_time||this.$set(this.data.misc,"default_admin_date_time","time_diff"),this.data.misc.autosave_enabled||this.$set(this.data.misc,"autosave_enabled","no"),this.data.misc.tokenBasedProtectionStatus||this.$set(this.data.misc,"tokenBasedProtectionStatus","no"),this.data.misc.pretty_url_base_slug||this.$set(this.data.misc,"pretty_url_base_slug","form"),"isAnalyticsDisabled"in this.data.misc||this.$set(this.data.misc,"isAnalyticsDisabled",!0),this.misc=this.data.misc}};var Ke=ge(Je,function(){var e=this,t=e._self._c;return t("el-form",{ref:"form-layout",attrs:{"label-position":"top"}},[t("card",{attrs:{id:"settings"}},[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Global Layout Settings")))])]),e._v(" "),t("card-body",[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,lg:8}},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Label Placement"))+"\n\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Select the default label placement."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-select",{staticClass:"w-100 ff-input-s1",model:{value:e.layout.labelPlacement,callback:function(t){e.$set(e.layout,"labelPlacement",t)},expression:"layout.labelPlacement"}},e._l(e.labelPlacementOptions,function(n,i){return t("el-option",{key:i,attrs:{label:e.$t(n),value:i}})}),1)],2)],1),e._v(" "),t("el-col",{attrs:{md:12,lg:8}},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Help Message Placement"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Select the placement of help message."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-select",{staticClass:"w-100 ff-input-s1",model:{value:e.layout.helpMessagePlacement,callback:function(t){e.$set(e.layout,"helpMessagePlacement",t)},expression:"layout.helpMessagePlacement"}},e._l({with_label:"Next to Label",under_input:"Below Input Element"},function(n,i){return t("el-option",{key:i,attrs:{label:e.$t(n),value:i}})}),1)],2)],1),e._v(" "),t("el-col",{attrs:{lg:8}},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Error Message Placement"))+"\n\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Select the placement of error message."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-select",{staticClass:"w-100 ff-input-s1",model:{value:e.layout.errorMessagePlacement,callback:function(t){e.$set(e.layout,"errorMessagePlacement",t)},expression:"layout.errorMessagePlacement"}},e._l({stackToBottom:"Stack to Bottom",inline:"Below Input Element"},function(n,i){return t("el-option",{key:i,attrs:{label:e.$t(n),value:i}})}),1)],2)],1)],1)],1)],1),e._v(" "),t("card",{attrs:{id:"email-summaries"}},[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Email Summaries")))]),e._v(" "),t("p",{staticClass:"text"},[e._v("\n "+e._s(e.$t("Would you like to receive a weekly report showing how your forms are performing? Enable Email Summaries option and you will get a report every week to the provided email address"))+"\n ")])]),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Status"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this feature to get weekly reports on how your forms are performing."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:e.email_report.status,callback:function(t){e.$set(e.email_report,"status",t)},expression:"email_report.status"}},[e._v(" "+e._s(e.$t("Enable Email Summaries"))+"\n ")])],2),e._v(" "),"yes"==e.email_report.status?[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Send To"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Specify the recipient of the weekly report."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{model:{value:e.email_report.send_to_type,callback:function(t){e.$set(e.email_report,"send_to_type",t)},expression:"email_report.send_to_type"}},[t("el-radio",{attrs:{label:"admin_email"}},[e._v(e._s(e.$t("Site Admin")))]),e._v(" "),t("el-radio",{attrs:{label:"custom_email"}},[e._v(e._s(e.$t("Custom Email")))])],1)],2),e._v(" "),t("el-row",{attrs:{gutter:24}},["custom_email"==e.email_report.send_to_type?t("el-col",{attrs:{span:24}},[t("el-form-item",{staticClass:"ff-form-item"},[t("label",{staticClass:"mb-3",staticStyle:{display:"block"}},[e._v(e._s(e.$t("Enter Recipient Email Address")))]),e._v(" "),t("el-input",{staticClass:"w-100",attrs:{placeholder:e.$t("Recipient Email Address")},model:{value:e.email_report.custom_recipients,callback:function(t){e.$set(e.email_report,"custom_recipients",t)},expression:"email_report.custom_recipients"}}),e._v(" "),t("p",{staticClass:"fs-14 mt-1"},[e._v(e._s(e.$t("For multiple email addresses, use comma to separate them.")))])],1)],1):e._e(),e._v(" "),t("el-col",{attrs:{sm:24,md:12}},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Get Reports On"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Select the day to receive weekly report."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-select",{staticClass:"w-100 ff-input-s1",attrs:{placeholder:e.$t("Select Day")},model:{value:e.email_report.sending_day,callback:function(t){e.$set(e.email_report,"sending_day",t)},expression:"email_report.sending_day"}},e._l(e.sending_days,function(n,i){return t("el-option",{key:i,attrs:{value:i,label:e.$t(n)}})}),1)],2)],1),e._v(" "),t("el-col",{attrs:{sm:24,md:12}},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Subject Line"))+"\n\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter the subject line of the email summaries"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{staticClass:"w-100",attrs:{placeholder:e.$t("Email Subject")},model:{value:e.email_report.subject,callback:function(t){e.$set(e.email_report,"subject",t)},expression:"email_report.subject"}})],2)],1)],1)]:e._e()],2)],1),e._v(" "),t("card",{attrs:{id:"integration-failure-notification"}},[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Integration Failure Email Notification")))]),e._v(" "),t("p",{staticClass:"text"},[e._v("\n "+e._s(e.$t("Enable Integration Failure Notification and you will get an email when any of your integration fails to run."))+"\n ")])]),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item"},[e.hasPro?t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Status"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable Integration Failure Email Notification to receive email notification whenever an integration fails to run."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1):e._e(),e._v(" "),e.hasPro?t("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:e.integration_failure_notification.status,callback:function(t){e.$set(e.integration_failure_notification,"status",t)},expression:"integration_failure_notification.status"}},[e._v("\n "+e._s(e.$t("Enable Integration Failure Notification"))+"\n ")]):t("update-to-pro-content",{attrs:{"update-message":e.$t("Integration Failure Email Notification is available in the pro version")}})],2),e._v(" "),"yes"==e.integration_failure_notification.status&&e.hasPro?[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Send To"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Please specify who will get the email notification"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{model:{value:e.integration_failure_notification.send_to_type,callback:function(t){e.$set(e.integration_failure_notification,"send_to_type",t)},expression:"integration_failure_notification.send_to_type"}},[t("el-radio",{attrs:{label:"admin_email"}},[e._v(e._s(e.$t("Site Admin")))]),e._v(" "),t("el-radio",{attrs:{label:"custom_email"}},[e._v(e._s(e.$t("Custom Email")))])],1),e._v(" "),"custom_email"==e.integration_failure_notification.send_to_type?t("div",{staticClass:"mt-3"},[t("label",{staticClass:"mb-3",staticStyle:{display:"block"}},[e._v(e._s(e.$t("Enter Recipient Email Address")))]),e._v(" "),t("el-input",{staticClass:"ff_input_width",attrs:{placeholder:e.$t("Recipient Email Address")},model:{value:e.integration_failure_notification.custom_recipients,callback:function(t){e.$set(e.integration_failure_notification,"custom_recipients",t)},expression:"integration_failure_notification.custom_recipients"}}),e._v(" "),t("p",{staticClass:"fs-14 mt-1"},[e._v(e._s(e.$t("For multiple email addresses, use comma to separate them")))])],1):e._e()],2)]:e._e()],2)],1),e._v(" "),t("card",{attrs:{id:"default-messages"}},[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Validation Messages")))]),e._v(" "),t("p",{staticClass:"text",domProps:{innerHTML:e._s(e.$t("These messages will be used as default messages of all form. These messages will be ignored when field error message set as custom. Use %s shortcode for automatically resolve the field label.","{labels.current_field}"))}})]),e._v(" "),t("card-body",[e._l(e.default_message_setting_fields,function(n,i){return[t("el-form-item",[t("template",{slot:"label"},[e._v("\n "+e._s(n.label)+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(n.help_text)+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),"textarea"===n.type?t("el-input",{attrs:{type:"textarea",row:n.row?n.row:3,placeholder:n.placeholder||e.$t("Global Message For %s",n.label)},model:{value:e.default_messages[i],callback:function(t){e.$set(e.default_messages,i,t)},expression:"default_messages[fieldKey]"}}):t("el-input",{attrs:{placeholder:n.placeholder||e.$t("Global Message For %s",n.label)},model:{value:e.default_messages[i],callback:function(t){e.$set(e.default_messages,i,t)},expression:"default_messages[fieldKey]"}})],2)]})],2)],1),e._v(" "),t("default-style-template-section",{attrs:{default_style_template:e.default_style_template},on:{"update:default_style_template":function(t){e.default_style_template=t}}}),e._v(" "),t("card",{attrs:{id:"miscellaneous"}},[t("card-head",[t("card-head-group",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Miscellaneous")))]),e._v(" "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v(e._s(e.$t("These settings will be applied to all new forms.")))])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary ml-2"})])],1)],1),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Disable IP Logging"))+"\n\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("If this option is turned on, the user's IP address will not be saved with the form data."))),t("br")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",model:{value:e.misc.isIpLogingDisabled,callback:function(t){e.$set(e.misc,"isIpLogingDisabled",t)},expression:"misc.isIpLogingDisabled"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Disable Form Analytics"))+"\n\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this to prevent tracking unique views and submission counts."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",model:{value:e.misc.isAnalyticsDisabled,callback:function(t){e.$set(e.misc,"isAnalyticsDisabled",t)},expression:"misc.isAnalyticsDisabled"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[t("span",[e._v("\n "+e._s(e.$t("Enable Honeypot Security"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable Honeypot Security for better spam protection"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("p",{staticClass:"text-note mt-1"},[e._v(e._s(e.$t("Recommended Settings: Enabled")))])])]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.honeypotStatus,callback:function(t){e.$set(e.misc,"honeypotStatus",t)},expression:"misc.honeypotStatus"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("div",[t("span",[e._v("\n "+e._s(e.$t("Token Based Spam Protection"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Token based spam protection is generated only after interacting with the form, ensuring human engagement. Please interact with the form before submitting to validate the token."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("p",{staticClass:"text-note mt-1"},[e._v(e._s(e.$t("Recommended Settings: Enabled")))])])]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.tokenBasedProtectionStatus,callback:function(t){e.$set(e.misc,"tokenBasedProtectionStatus",t)},expression:"misc.tokenBasedProtectionStatus"}})],2),e._v(" "),e.akismet_available?[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[t("span",[e._v("\n "+e._s(e.$t("Enable Akismet Integration"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("If you enable this then Fluent Forms will verify the form submission with Akismet. It will save you from spam form submission."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("p",{staticClass:"text-note mt-1"},[e._v(e._s(e.$t("Recommended Settings: Enabled")))])])]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.akismet_status,callback:function(t){e.$set(e.misc,"akismet_status",t)},expression:"misc.akismet_status"}})],2),e._v(" "),"yes"==e.misc.akismet_status?t("el-form-item",[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Spam Validation"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("h3",[e._v(e._s(e.$t("Spam Validation")))]),e._v(" "),t("p",[e._v("\n "+e._s(e.$t("Please select what will be happened once a submission marked as spam"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{model:{value:e.misc.akismet_validation,callback:function(t){e.$set(e.misc,"akismet_validation",t)},expression:"misc.akismet_validation"}},[t("el-radio",{attrs:{label:"mark_as_spam"}},[e._v(e._s(e.$t("Mark as Spam")))]),e._v(" "),t("el-radio",{attrs:{label:"validation_failed"}},[e._v(e._s(e.$t("Make the Form Submission as Failed")))]),e._v(" "),t("el-radio",{attrs:{label:"mark_as_spam_and_skip_processing"}},[e._v(e._s(e.$t("Mark as Spam and Skip Processing")))])],1)],2):e._e()]:e._e(),e._v(" "),[e.cleantalk_available?t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[t("span",[e._v("\n "+e._s(e.$t("Enable CleanTalk Integration"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Please use the CleanTalk option found in the Security submenu, which utilizes CleanTalk API and does not require the CleanTalk Anti-Spam Plugin which is recommended."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),e.cleantalk_available?e._e():t("p",{staticClass:"text-note mt-1"},[e._v(e._s(e.$t("Requires Anti-Spam by CleanTalk Plugin")))])])]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{disabled:!e.cleantalk_available,"active-value":"yes","inactive-value":"no"},model:{value:e.misc.cleantalk_status,callback:function(t){e.$set(e.misc,"cleantalk_status",t)},expression:"misc.cleantalk_status"}})],2):e._e(),e._v(" "),"yes"==e.misc.cleantalk_status?t("el-form-item",[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Spam Validation"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("h3",[e._v(e._s(e.$t("Spam Validation")))]),e._v(" "),t("p",[e._v("\n "+e._s(e.$t("Please select what will be happened once a submission marked as spam"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{model:{value:e.misc.cleantalk_validation,callback:function(t){e.$set(e.misc,"cleantalk_validation",t)},expression:"misc.cleantalk_validation"}},[t("el-radio",{attrs:{label:"mark_as_spam"}},[e._v(e._s(e.$t("Mark as Spam")))]),e._v(" "),t("el-radio",{attrs:{label:"validation_failed"}},[e._v(e._s(e.$t("Make the Form Submission as Failed")))]),e._v(" "),t("el-radio",{attrs:{label:"mark_as_spam_and_skip_processing"}},[e._v(e._s(e.$t("Mark as Spam and Skip Processing")))])],1)],2):e._e()],e._v(" "),t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Classic Editor Button"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enabling this option will have form inserter button inside classic editor."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.classicEditorButton,callback:function(t){e.$set(e.misc,"classicEditorButton",t)},expression:"misc.classicEditorButton"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[t("span",[e._v("\n "+e._s(e.$t("Enable No-Conflict Mode"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this to prevent conflicts cause by other plugins scripts."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("p",{staticClass:"text-note mt-1"},[e._v(e._s(e.$t("Recommended Settings: Enabled")))])])]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.noConflictStatus,callback:function(t){e.$set(e.misc,"noConflictStatus",t)},expression:"misc.noConflictStatus"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Enable Auto Tab - Index"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this to switch between form fields using Tab."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.tabIndex,callback:function(t){e.$set(e.misc,"tabIndex",t)},expression:"misc.tabIndex"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Geo-Location Provider"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("If you use advanced phone field and enable auto country ditect then may configure this."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),e.hasPro?t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{sm:24,md:12}},[t("el-select",{staticClass:"w-100 ff-input-s1",model:{value:e.misc.geo_provider,callback:function(t){e.$set(e.misc,"geo_provider",t)},expression:"misc.geo_provider"}},e._l(e.geo_providers,function(e,n){return t("el-option",{key:n,attrs:{value:n,label:e.label}})}),1)],1),e._v(" "),t("el-col",{attrs:{sm:24,md:12}},[e.misc.geo_provider&&e.geo_providers[e.misc.geo_provider].has_token?[t("el-input",{attrs:{type:"password",placeholder:e.$t("GEO API Token")},model:{value:e.misc.geo_provider_token,callback:function(t){e.$set(e.misc,"geo_provider_token",t)},expression:"misc.geo_provider_token"}})]:e._e()],2),e._v(" "),t("el-col",{attrs:{span:24}},[e.misc.geo_provider&&e.geo_providers[e.misc.geo_provider].token_instruction?t("p",{staticClass:"text-note",staticStyle:{"margin-top":"-14px"}},[e._v("("+e._s(this.$t(e.geo_providers[e.misc.geo_provider].token_instruction)))]):e._e()])],1):t("update-to-pro-content",{attrs:{"update-message":e.$t("Geo-Location provider is available in the pro version")}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("File Upload Location"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Select where to store uploaded files."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),e.hasPro?t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{sm:24,md:12}},[t("el-select",{staticClass:"w-100 ff-input-s1",model:{value:e.misc.file_upload_locations,callback:function(t){e.$set(e.misc,"file_upload_locations",t)},expression:"misc.file_upload_locations"}},e._l(e.file_upload_optoins,function(e){return t("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}),1)],1)],1):t("update-to-pro-content",{attrs:{"update-message":e.$t("File Upload Field & Location is available in the pro version")}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Pretty URL Base Slug"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t('Set the base slug for pretty URLs used in Landing Pages and Conversational Forms. For example, if set to "form", pretty URLs will look like: yoursite.com/form/my-form/'))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("p",{staticClass:"text-note mb-2"},[e._v(e._s(e.$t("This slug is used as the base path for Landing Page and Conversational Form pretty URLs.")))]),e._v(" "),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{sm:24,md:12}},[t("el-input",{attrs:{placeholder:e.$t("form"),disabled:!e.hasPro},model:{value:e.misc.pretty_url_base_slug,callback:function(t){e.$set(e.misc,"pretty_url_base_slug",t)},expression:"misc.pretty_url_base_slug"}}),e._v(" "),e.misc.pretty_url_base_slug?t("p",{staticClass:"text-note mt-1"},[e._v("\n "+e._s(e.$t("Preview:"))+" "+e._s(e.siteUrl)+"/"+e._s(e.misc.pretty_url_base_slug)+"/my-form/\n ")]):e._e()],1)],1),e._v(" "),e.hasPro?e._e():t("update-to-pro-content",{attrs:{"update-message":e.$t("Pretty URL Base Slug is available in the pro version")}})],2),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item mb-3 ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[t("span",[e._v("\n "+e._s(e.$t("Auto Load Captcha"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this to automatically load Captcha in all forms."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("p",{staticClass:"text-note mt-1"},[e._v(e._s(e.$t("For using Captcha, enable Captcha first.")))])])]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{disabled:!e.hasCaptcha},model:{value:e.misc.autoload_captcha,callback:function(t){e.$set(e.misc,"autoload_captcha",t)},expression:"misc.autoload_captcha"}})],2),e._v(" "),e.misc.autoload_captcha?t("el-radio-group",{model:{value:e.misc.captcha_type,callback:function(t){e.$set(e.misc,"captcha_type",t)},expression:"misc.captcha_type"}},[t("el-radio",{attrs:{disabled:!e.captcha_status.recaptcha,label:"recaptcha"}},[e._v(e._s(e.$t("Google ReCaptcha")))]),e._v(" "),t("el-radio",{attrs:{disabled:!e.captcha_status.hcaptcha,label:"hcaptcha"}},[e._v(e._s(e.$t("hCaptcha")))]),e._v(" "),t("el-radio",{attrs:{disabled:!e.captcha_status.turnstile,label:"turnstile"}},[e._v(e._s(e.$t("Turnstile")))])],1):e._e()],1),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item mb-3 ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Admin Top Navigation"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Toggle Admin Top Navigation on or off and Save the Settings. Please reload the page after changing this option."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.admin_top_nav_status,callback:function(t){e.$set(e.misc,"admin_top_nav_status",t)},expression:"misc.admin_top_nav_status"}})],2)],1),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Email Footer Text"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Set custom email footer text here. (HTML is supported)"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{attrs:{type:"textarea",rows:3,placeholder:e.$t("Email Footer Text")},model:{value:e.misc.email_footer_text,callback:function(t){e.$set(e.misc,"email_footer_text",t)},expression:"misc.email_footer_text"}})],2),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Date & Time Format"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Selected Time & Date format will be shown in different admin pages"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{model:{value:e.misc.default_admin_date_time,callback:function(t){e.$set(e.misc,"default_admin_date_time",t)},expression:"misc.default_admin_date_time"}},[t("el-radio",{attrs:{label:"time_diff"}},[e._v(e._s(e.$t("Date Time difference (EG: 2 hours ago)")))]),e._v(" "),t("el-radio",{attrs:{label:"wp_default"}},[e._v(e._s(e.$t("WordPress Default")))])],1)],2)],1),e._v(" "),t("div",{staticClass:"el-form-item-wrap"},[t("el-form-item",{staticClass:"ff-form-item-flex ff-form-item mb-3 ff-form-setting-label-width"},[t("template",{slot:"label"},[t("span",[e._v("\n "+e._s(e.$t("Form Editor Autosave"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enable this to automatically save form changes after 30 seconds of inactivity for all forms."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1)]),e._v(" "),t("el-switch",{staticClass:"el-switch-lg",attrs:{"active-value":"yes","inactive-value":"no"},model:{value:e.misc.autosave_enabled,callback:function(t){e.$set(e.misc,"autosave_enabled",t)},expression:"misc.autosave_enabled"}})],2)],1)],2)],1)],1)},[],!1,null,null,null);const Xe=ge({name:"GlobalSettings",components:{Layout:Ke.exports},data:function(){return{loading:!0,saving:!1,app_ready:!1,formSettings:{layout:{labelPlacement:"top",helpMessagePlacement:"with_label",errorMessagePlacement:"inline"},misc:{isIpLogingDisabled:!1,file_upload_locations:"",isAnalyticsDisabled:!0},default_messages:{}},default_message_setting_fields:{},email_report:{},integration_failure_notification:{},file_upload_optoins:[],captcha_status:{hcaptcha:!1,recaptcha:!1,turnstile:!1},default_style_template:{styler_styles:{}}}},methods:{fetch:function(){var e=this;this.loading=!0;var t=FluentFormsGlobal.$rest.route("getGlobalSettings");FluentFormsGlobal.$rest.get(t,{key:["_fluentform_global_form_settings","_fluentform_email_report_summary","_fluentform_failed_integration_notification","_fluentform_reCaptcha_keys_status","_fluentform_hCaptcha_keys_status","_fluentform_global_default_message_setting_fields","_fluentform_turnstile_keys_status","_fluentform_default_style_template"]}).then(function(t){e.loading=!1;var n=t._fluentform_global_form_settings||{};n.layout||(n.layout={labelPlacement:"top",helpMessagePlacement:"with_label",errorMessagePlacement:"inline"}),e.default_message_setting_fields=t._fluentform_global_default_message_setting_fields||{},e.formSettings=Object.assign(e.formSettings,n);var i=t._fluentform_email_report_summary;i||(i={status:"yes",send_to_type:"admin_email",custom_recipients:"",sending_day:"Mon"}),e.email_report=i;var r=t._fluentform_failed_integration_notification;r||(r={status:"no",send_to_type:"admin_email",custom_recipients:""}),e.integration_failure_notification=r,e.file_upload_optoins=t.file_upload_optoins,e.captcha_status={hcaptcha:t._fluentform_hCaptcha_keys_status,recaptcha:t._fluentform_reCaptcha_keys_status,turnstile:t._fluentform_turnstile_keys_status};var a=t._fluentform_default_style_template;a||(a={enabled:"no",custom_css:"",styler_enabled:"no",styler_theme:"",styler_styles:{},source_form_id:null}),e.default_style_template=a}).catch(function(t){e.$fail(t.message)}).finally(function(){e.loading=!1,e.app_ready=!0})},save:function(){var e,t=this;this.saving=!0;var n=FluentFormsGlobal.$rest.route("storeGlobalSettings"),i={key:["SaveGlobalLayoutSettings","EmailSummarySettings","AutosaveSettings"],form_settings:JSON.stringify(this.formSettings),email_report:JSON.stringify(this.email_report),integration_failure_notification:JSON.stringify(this.integration_failure_notification),autosave_enabled:(null===(e=this.formSettings.misc)||void 0===e?void 0:e.autosave_enabled)||"no"};FluentFormsGlobal.$rest.post(n,i).then(function(e){e&&(t.loading=!1,e.map(function(e){null!=e&&e.message&&t.$success(e.message)}))}).catch(function(e){t.$fail(t.$t("Something Went Wrong Please Try Again!"))}).finally(function(){t.saving=!1}),this.saveFailedIntegrationNotification(),this.saveDefaultStyleTemplate()},saveFailedIntegrationNotification:function(){var e=FluentFormsGlobal.$rest.route("storeGlobalSettings"),t={key:"failedIntegrationNotification",value:JSON.stringify(this.integration_failure_notification)};FluentFormsGlobal.$rest.post(e,t).then(function(e){}).catch(function(e){})},saveDefaultStyleTemplate:function(){var e=FluentFormsGlobal.$rest.route("storeGlobalSettings"),t={key:"defaultStyleTemplate",settings:JSON.stringify(this.default_style_template||{})};FluentFormsGlobal.$rest.post(e,t).then(function(e){}).catch(function(e){})}},mounted:function(){this.fetch()}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"ff_global_setting_options_wrap"},[t("el-skeleton",{class:e.loading?"ff_card":"",attrs:{loading:e.loading,animated:"",rows:10}},[e.app_ready?[t("layout",{attrs:{email_report:e.email_report,integration_failure_notification:e.integration_failure_notification,data:e.formSettings,default_message_setting_fields:e.default_message_setting_fields,file_upload_optoins:e.file_upload_optoins,captcha_status:e.captcha_status,default_style_template:e.default_style_template},on:{"update:default_style_template":function(t){e.default_style_template=t}}})]:e._e(),e._v(" "),t("div",{staticClass:"mt-4"},[t("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.saving,expression:"saving"}],attrs:{type:"primary",icon:"el-icon-success"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("Save Settings"))+"\n ")])],1)],2)],1)},[],!1,null,null,null).exports;const Ze=ge({components:{Card:ye,CardHead:we,CardBody:be,Notice:Me},name:"reCaptcha",props:["app"],data:function(){return{reCaptcha:{siteKey:"",secretKey:""},reCaptcha_status:!1,siteKeyChanged:!1,disabled:!1,saving:!1,clearing:!1}},computed:{v2:function(){return"v2_visible"===this.reCaptcha.api_version},size:function(){return this.v2?"normal":"invisible"},hidden:function(){return this.v2?"":"mb-0"}},methods:{load:function(){var e=this;if(!this.validate())return this.disabled=!1,void(this.siteKeyChanged=!1);this.disabled=!0,this.siteKeyChanged=!0,this.reCaptcha_status=!1,this.$nextTick(function(){var t="reCaptcha",n=e.reCaptcha.siteKey;jQuery("#"+t).html(""),window.___grecaptcha_cfg.clients={};var i=grecaptcha.render(t,{sitekey:n,callback:function(t){e.reCaptcha.token=t,e.disabled=!1}});"v2_visible"!=e.reCaptcha.api_version&&grecaptcha.execute(i,{action:"submit"}).then(function(t){e.reCaptcha.token=t,e.disabled=!1})})},save:function(){var e=this;if(!this.validate())return this.$fail(this.$t("Missing required fields."));this.saving=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings"),n={key:"reCaptcha",reCaptcha:this.reCaptcha};FluentFormsGlobal.$rest.post(t,n).then(function(t){e.reCaptcha_status=t.status,1==e.reCaptcha_status?e.$success(t.message):e.$fail(t.message)}).catch(function(t){e.reCaptcha_status=parseInt(t.status,10),e.$fail(t.message)}).finally(function(t){e.saving=!1})},clearSettings:function(){var e=this;this.clearing=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings");FluentFormsGlobal.$rest.post(t,{key:"reCaptcha",reCaptcha:"clear-settings"}).then(function(t){e.reCaptcha_status=t.status,e.reCaptcha={siteKey:"",secretKey:""},1==e.reCaptcha_status?e.$success(t.message):e.$fail(t.message)}).catch(function(t){e.reCaptcha_status=t.status,e.$fail(e.$t("Something went wrong."))}).finally(function(t){e.clearing=!1})},validate:function(){return!(!this.reCaptcha.siteKey||!this.reCaptcha.secretKey)},getReCaptchaSettings:function(){var e=this,t=FluentFormsGlobal.$rest.route("getGlobalSettings");FluentFormsGlobal.$rest.get(t,{key:["_fluentform_reCaptcha_details","_fluentform_reCaptcha_keys_status"]}).then(function(t){var n=t._fluentform_reCaptcha_details||{siteKey:"",secretKey:""};n.api_version||(n.api_version="v2_visible"),e.reCaptcha=n,e.reCaptcha_status=t._fluentform_reCaptcha_keys_status})}},mounted:function(){this.getReCaptchaSettings()},created:function(){var e=document.createElement("script");e.setAttribute("src","https://www.google.com/recaptcha/api.js"),document.body.appendChild(e)}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"ff_recaptcha_wrap"},[t("el-form",{attrs:{"label-position":"top"}},[t("card",[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Google reCAPTCHA Settings")))]),e._v(" "),t("p",{staticClass:"text"},[e._v("\n "+e._s(e.$t("Fluent Forms integrates with reCAPTCHA, a free service that protects your website from spam and abuse. Please note, these settings are required only if you decide to use the reCAPTCHA field."))+" \n "),t("a",{attrs:{href:"http://www.google.com/recaptcha/",target:"_blank"}},[e._v("\n "+e._s(e.$t("Read more about reCAPTCHA."))+"\n ")])]),e._v(" "),t("p",{staticClass:"text"},[t("b",[e._v(e._s(e.$t("Please generate API key and API secret using reCAPTCHA")))])])]),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("reCAPTCHA Version"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Please select which reCAPTCHA version you would like to use"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{on:{change:e.load},model:{value:e.reCaptcha.api_version,callback:function(t){e.$set(e.reCaptcha,"api_version",t)},expression:"reCaptcha.api_version"}},[t("el-radio",{attrs:{label:"v2_visible"}},[e._v(e._s(e.$t("Version 2 (Visible reCAPTCHA)")))]),e._v(" "),t("el-radio",{attrs:{label:"v3_invisible"}},[e._v(e._s(e.$t("Version 3 (Invisible reCAPTCHA)")))])],1)],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Site Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter your reCAPTCHA Site Key, if you do not have a key you can register for one at the provided link. reCAPTCHA is a free service."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{on:{change:e.load},model:{value:e.reCaptcha.siteKey,callback:function(t){e.$set(e.reCaptcha,"siteKey",t)},expression:"reCaptcha.siteKey"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Secret Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter your reCAPTCHA Secret Key, if you do not have a key you can register for one at the provided link, reCAPTCHA is a free service."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{attrs:{type:"password"},on:{change:e.load},model:{value:e.reCaptcha.secretKey,callback:function(t){e.$set(e.reCaptcha,"secretKey",t)},expression:"reCaptcha.secretKey"}})],2),e._v(" "),t("el-form-item",{class:e.hidden},[e.v2?t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Validate Keys"))+"\n ")]):e._e(),e._v(" "),t("div",{attrs:{id:"reCaptcha","data-sitekey":e.reCaptcha.siteKey,"data-size":e.size}})],2),e._v(" "),e.reCaptcha_status&&!e.disabled?t("notice",{attrs:{size:"sm",type:"success-soft"}},[t("p",[e._v(e._s(e.$t("Your reCAPTCHA is valid")))])]):e._e()],1)],1),e._v(" "),t("div",{staticClass:"mt-4"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-success",disabled:e.disabled,loading:e.saving},on:{click:e.save}},[e._v(e._s(e.$t("Save Settings"))+"\n ")]),e._v(" "),t("el-button",{attrs:{type:"danger",icon:"ff-icon ff-icon-trash",loading:e.clearing},on:{click:e.clearSettings}},[e._v(e._s(e.$t("Clear Settings"))+"\n ")])],1)],1)],1)},[],!1,null,null,null).exports;const Qe=ge({components:{Card:ye,CardHead:we,CardBody:be,Notice:Me},name:"hCaptcha",props:["app"],data:function(){return{hCaptcha:{siteKey:"",secretKey:"",token:""},hCaptcha_status:!1,siteKeyChanged:!1,disabled:!1,saving:!1,clearing:!1}},methods:{load:function(){var e=this;if(!this.validate())return this.disabled=!1,void(this.siteKeyChanged=!1);this.disabled=!0,this.siteKeyChanged=!0,this.$nextTick(function(){var t="hCaptcha",n=jQuery("#"+t),i=e.hCaptcha.siteKey,r=e;if(n.html(""),"undefined"!=typeof hcaptcha)hcaptcha.render(t,{sitekey:i,callback:function(e){r.hCaptcha.token=e,r.disabled=!1},"error-callback":function(){r.disabled=!0,r.$fail(r.$t("hCaptcha verification failed."))}});else r.disabled=!0,r.$fail(r.$t("hCaptcha script failed to load."))})},save:function(){var e=this;if(!this.validate())return this.$fail(this.$t("Missing required fields."));this.saving=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings"),n={key:"hCaptcha",hCaptcha:this.hCaptcha};FluentFormsGlobal.$rest.post(t,n).then(function(t){e.hCaptcha_status=t.status,1==e.hCaptcha_status?e.$success(t.message):e.$fail(t.message)}).catch(function(t){e.hCaptcha_status=parseInt(t.status,10),e.$fail(t.message)}).finally(function(t){e.saving=!1})},clearSettings:function(){var e=this;this.clearing=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings");FluentFormsGlobal.$rest.post(t,{key:"hCaptcha",hCaptcha:"clear-settings"}).then(function(t){e.hCaptcha_status=t.status,e.hCaptcha={siteKey:"",secretKey:"",token:""},1==e.hCaptcha_status?e.$success(t.message):e.$fail(t.message)}).catch(function(t){e.hCaptcha_status=t.status,e.$fail(e.$t("Something went wrong."))}).finally(function(t){e.clearing=!1})},validate:function(){return!(!this.hCaptcha.siteKey||!this.hCaptcha.secretKey)},getHCaptchaSettings:function(){var e=this,t=FluentFormsGlobal.$rest.route("getGlobalSettings");FluentFormsGlobal.$rest.get(t,{key:["_fluentform_hCaptcha_details","_fluentform_hCaptcha_keys_status"],hCaptcha:"clear-settings"}).then(function(t){var n=t._fluentform_hCaptcha_details||{siteKey:"",secretKey:"",token:""};e.hCaptcha=n,e.hCaptcha_status=t._fluentform_hCaptcha_keys_status})}},mounted:function(){this.getHCaptchaSettings()},created:function(){var e=document.createElement("script");e.setAttribute("src","https://js.hcaptcha.com/1/api.js"),document.body.appendChild(e)}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"ff_hcaptcha_wrap"},[t("el-form",{attrs:{"label-position":"top"}},[t("card",[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("hCaptcha Settings")))]),e._v(" "),t("p",{staticClass:"text"},[e._v("\n "+e._s(e.$t("Fluent Forms integrates with hCaptcha, a free service that protects your website from spam and abuse. Please note, these settings are required only if you decide to use the hCaptcha field."))+"\n "),t("a",{attrs:{href:"https://www.hcaptcha.com/",target:"_blank"}},[e._v("\n "+e._s(e.$t("Read more about hCaptcha."))+"\n ")])]),e._v(" "),t("p",{staticClass:"text"},[t("b",[e._v(e._s(e.$t("Please generate API key and API secret using hCaptcha")))])])]),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Site Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter your hCaptcha Site Key, if you do not have a key you can register for one at the provided link, hCaptcha is a free service."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{on:{change:e.load},model:{value:e.hCaptcha.siteKey,callback:function(t){e.$set(e.hCaptcha,"siteKey",t)},expression:"hCaptcha.siteKey"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Secret Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter your hCaptcha Secret Key, if you do not have a key you can register for one at the provided link. hCaptcha is a free service."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{attrs:{type:"password"},on:{change:e.load},model:{value:e.hCaptcha.secretKey,callback:function(t){e.$set(e.hCaptcha,"secretKey",t)},expression:"hCaptcha.secretKey"}})],2),e._v(" "),e.siteKeyChanged?t("el-form-item",{attrs:{label:e.$t("Validate Keys")}},[t("div",{staticClass:"h-captcha",attrs:{id:"hCaptcha","data-sitekey":e.hCaptcha.siteKey}})]):e._e(),e._v(" "),e.hCaptcha_status?t("notice",{attrs:{size:"sm",type:"success-soft"}},[t("p",[e._v(e._s(e.$t("Your hCaptcha is valid")))])]):e._e()],1)],1),e._v(" "),t("div",{staticClass:"mt-4"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-success",disabled:e.disabled,loading:e.saving},on:{click:e.save}},[e._v(e._s(e.$t("Save Settings"))+"\n ")]),e._v(" "),t("el-button",{attrs:{type:"danger",icon:"ff-icon ff-icon-trash",loading:e.clearing},on:{click:e.clearSettings}},[e._v(e._s(e.$t("Clear Settings"))+"\n ")])],1)],1)],1)},[],!1,null,null,null).exports;const et=ge({components:{Card:ye,CardHead:we,CardBody:be,Notice:Me},name:"turnstile",props:["app"],data:function(){return{turnstile:{siteKey:"",secretKey:"",invisible:"no",appearance:"always",theme:"auto"},turnstile_status:!1,siteKeyChanged:!1,disabled:!1,saving:!1,clearing:!1}},methods:{load:function(){var e=this;if(!this.validate())return this.disabled=!1,void(this.siteKeyChanged=!1);this.disabled=!0,this.siteKeyChanged=!0,this.turnstile_status=!1,this.$nextTick(function(){var t="#turnstile",n=jQuery(t),i=e.turnstile.siteKey;n.html("");turnstile.render(t,{sitekey:i,theme:e.turnstile.theme,callback:function(t){e.turnstile.token=t}});e.disabled=!1})},save:function(){var e=this;if(!this.validate())return this.$fail(this.$t("Missing required fields."));this.saving=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings"),n={key:"turnstile",turnstile:this.turnstile};FluentFormsGlobal.$rest.post(t,n).then(function(t){e.turnstile_status=t.status,1==e.turnstile_status?e.$success(t.message):e.$fail(t.message),e.siteKeyChanged=!1,e.turnstile.token=null}).catch(function(t){e.turnstile_status=parseInt(t.status,10),e.$fail(t.message)}).finally(function(t){e.saving=!1})},clearSettings:function(){var e=this;this.clearing=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings");FluentFormsGlobal.$rest.post(t,{key:"turnstile",turnstile:"clear-settings"}).then(function(t){e.turnstile_status=t.status,e.turnstile={siteKey:"",secretKey:""},1==e.turnstile_status?e.$success(t.message):e.$fail(t.message)}).catch(function(t){e.turnstile_status=t.status,e.$fail(e.$t("Something went wrong."))}).finally(function(t){e.clearing=!1})},validate:function(){return!(!this.turnstile.siteKey||!this.turnstile.secretKey)},getTurnstileSettings:function(){var e=this,t=FluentFormsGlobal.$rest.route("getGlobalSettings");FluentFormsGlobal.$rest.get(t,{key:["_fluentform_turnstile_details","_fluentform_turnstile_keys_status"]}).then(function(t){var n,i=t._fluentform_turnstile_details;e.turnstile=i,"yes"==(null===(n=e.turnstile)||void 0===n?void 0:n.invisible)&&(e.turnstile.appearance="interaction-only"),e.turnstile_status=t._fluentform_turnstile_keys_status})}},mounted:function(){this.getTurnstileSettings()},created:function(){var e=document.createElement("script");e.setAttribute("src","https://challenges.cloudflare.com/turnstile/v0/api.js"),document.body.appendChild(e)}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"ff_turnstile_wrap"},[t("el-form",{attrs:{"label-position":"top"}},[t("card",[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("Cloudflare Turnstile Settings")))]),e._v(" "),t("p",{staticClass:"text"},[e._v("\n "+e._s(e.$t("Fluent Forms integrates with Cloudflare Turnstile, a free service that protects your website from spam and abuse. Please note, these settings are required only if you decide to use the Turnstile field."))+"\n "),t("a",{attrs:{href:"https://www.cloudflare.com/en-gb/products/turnstile/",target:"_blank"}},[e._v("\n "+e._s(e.$t("Read more about Cloudflare Turnstile."))+"\n ")])]),e._v(" "),t("p",{staticClass:"text"},[t("b",[e._v(e._s(e.$t("Please generate API key and API secret using Cloudflare Turnstile")))])])]),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Site Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter your Turnstile Site Key, if you do not have a key you can register for one at the provided link Turnstile is a free service."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{on:{change:e.load},model:{value:e.turnstile.siteKey,callback:function(t){e.$set(e.turnstile,"siteKey",t)},expression:"turnstile.siteKey"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Secret Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Enter your Turnstile Secret Key, if you do not have a key you can register for one at the provided link, Turnstile is a free service."))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{attrs:{type:"password"},on:{change:e.load},model:{value:e.turnstile.secretKey,callback:function(t){e.$set(e.turnstile,"secretKey",t)},expression:"turnstile.secretKey"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Appearance Mode"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("You can select how the turnstile will appear"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio",{staticClass:"mr-3",attrs:{label:"always"},model:{value:e.turnstile.appearance,callback:function(t){e.$set(e.turnstile,"appearance",t)},expression:"turnstile.appearance"}},[e._v(e._s(e.$t("Managed")))]),e._v(" "),t("el-radio",{staticClass:"mr-3",attrs:{label:"execute"},model:{value:e.turnstile.appearance,callback:function(t){e.$set(e.turnstile,"appearance",t)},expression:"turnstile.appearance"}},[e._v(e._s(e.$t("Non-interactive")))]),e._v(" "),t("el-radio",{staticClass:"mr-3",attrs:{label:"interaction-only"},model:{value:e.turnstile.appearance,callback:function(t){e.$set(e.turnstile,"appearance",t)},expression:"turnstile.appearance"}},[e._v(e._s(e.$t("Invisible")))])],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Theme"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Choose a theme for the field"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio",{attrs:{label:"auto"},model:{value:e.turnstile.theme,callback:function(t){e.$set(e.turnstile,"theme",t)},expression:"turnstile.theme"}},[e._v(e._s(e.$t("Auto")))]),e._v(" "),t("el-radio",{attrs:{label:"light"},model:{value:e.turnstile.theme,callback:function(t){e.$set(e.turnstile,"theme",t)},expression:"turnstile.theme"}},[e._v(e._s(e.$t("Light")))]),e._v(" "),t("el-radio",{attrs:{label:"dark"},model:{value:e.turnstile.theme,callback:function(t){e.$set(e.turnstile,"theme",t)},expression:"turnstile.theme"}},[e._v(e._s(e.$t("Dark")))])],2),e._v(" "),e.siteKeyChanged?t("el-form-item",{attrs:{label:e.$t("Validate Keys")}},[t("div",{staticClass:"cf-turnstile",attrs:{id:"turnstile","data-sitekey":e.turnstile.siteKey}})]):e._e(),e._v(" "),e.turnstile_status&&!e.disabled?t("notice",{attrs:{size:"sm",type:"success-soft"}},[t("p",[e._v(e._s(e.$t("Your Cloudflare Turnstile is valid")))])]):e._e()],1)],1),e._v(" "),t("div",{staticClass:"mt-4"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-success",disabled:e.disabled,loading:e.saving},on:{click:e.save}},[e._v(e._s(e.$t("Save Settings"))+"\n ")]),e._v(" "),t("el-button",{attrs:{type:"danger",icon:"ff-icon ff-icon-trash",loading:e.clearing},on:{click:e.clearSettings}},[e._v(e._s(e.$t("Clear Settings"))+"\n ")])],1)],1)],1)},[],!1,null,null,null).exports;const tt=ge({components:{Card:ye,CardHead:we,CardBody:be,Notice:Me},name:"cleantalk",props:["app"],data:function(){return{cleantalk:{status:!1,accessKey:"",validation:""},siteKeyChanged:!1,disabled:!1,saving:!1,clearing:!1}},methods:{save:function(){var e=this;if(!this.validate())return this.$fail(this.$t("Missing required fields."));this.saving=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings"),n={key:"cleantalk",cleantalk:this.cleantalk};FluentFormsGlobal.$rest.post(t,n).then(function(t){e.cleantalk.status=t.status,t.status?e.$success(e.$t("Settings saved successfully.")):e.$fail(e.$t(t.message))}).catch(function(t){e.cleantalk.status=!1;var n=1===e.cleantalk.status?"$warning":"$fail";e[n](t.message)}).finally(function(t){e.saving=!1})},clearSettings:function(){var e=this;this.clearing=!0;var t=FluentFormsGlobal.$rest.route("storeGlobalSettings");FluentFormsGlobal.$rest.post(t,{key:"cleantalk",cleantalk:"clear-settings"}).then(function(t){e.cleantalk={accessKey:"",status:!1,validation:""},e.$success(t.message)}).catch(function(t){e.cleantalk.status=t.status,e.$fail(e.$t("Something went wrong."))}).finally(function(t){e.clearing=!1})},validate:function(){return!!this.cleantalk.accessKey&&!!this.cleantalk.validation},getCleantalkSettings:function(){var e=this,t=FluentFormsGlobal.$rest.route("getGlobalSettings");FluentFormsGlobal.$rest.get(t,{key:"_fluentform_cleantalk_details"}).then(function(t){e.cleantalk=t._fluentform_cleantalk_details||{accessKey:"",status:!1,validation:""}})}},mounted:function(){this.getCleantalkSettings()}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"ff_cleantalk_wrap"},[t("el-form",{attrs:{"label-position":"top"}},[t("card",[t("card-head",[t("h5",{staticClass:"title"},[e._v(e._s(e.$t("CleanTalk Settings")))]),e._v(" "),t("p",{staticClass:"text"},[e._v("\n "+e._s(e.$t("Fluent Forms offers seamless integration with CleanTalk, a powerful anti-spam service designed to protect your website from spam submissions and bot attacks. To enable this feature, you'll need to configure the CleanTalk settings within Fluent Forms then it will work for all forms."))+"\n "),t("a",{attrs:{href:"https://cleantalk.org/help/introduction",target:"_blank"}},[e._v("\n "+e._s(e.$t("Read more about CleanTalk."))+"\n ")])]),e._v(" "),t("p",{staticClass:"text"},[t("b",[e._v(e._s(e.$t("Please generate access key using CleanTalk")))])])]),e._v(" "),t("card-body",[t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Access Key"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",{domProps:{innerHTML:e._s(e.$t("Enter your access key from CleanTalk, if you do not have a key you can register for one at the provided %s.","link"))}})]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-input",{attrs:{type:"password"},model:{value:e.cleantalk.accessKey,callback:function(t){e.$set(e.cleantalk,"accessKey",t)},expression:"cleantalk.accessKey"}})],2),e._v(" "),t("el-form-item",{staticClass:"ff-form-item"},[t("template",{slot:"label"},[e._v("\n "+e._s(e.$t("Spam Validation"))+"\n "),t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","popper-class":"ff_tooltip_wrap"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("\n "+e._s(e.$t("Please select what will be happened once a submission marked as spam"))+"\n ")])]),e._v(" "),t("i",{staticClass:"ff-icon ff-icon-info-filled text-primary"})])],1),e._v(" "),t("el-radio-group",{model:{value:e.cleantalk.validation,callback:function(t){e.$set(e.cleantalk,"validation",t)},expression:"cleantalk.validation"}},[t("el-radio",{staticClass:"mb-2",attrs:{label:"mark_as_spam"}},[e._v(e._s(e.$t("Mark as Spam")))]),e._v(" "),t("el-radio",{staticClass:"mb-2",attrs:{label:"validation_failed"}},[e._v(e._s(e.$t("Make the Form Submission as Failed")))]),e._v(" "),t("el-radio",{attrs:{label:"mark_as_spam_and_skip_processing"}},[e._v(e._s(e.$t("Mark as Spam and Skip Processing")))])],1)],2),e._v(" "),e.cleantalk.status?t("notice",{attrs:{size:"sm",type:"success-soft"}},[t("p",[e._v(e._s(e.$t("Your CleanTalk is valid")))])]):e._e()],1)],1),e._v(" "),t("div",{staticClass:"mt-4"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-success",disabled:e.disabled,loading:e.saving},on:{click:e.save}},[e._v(e._s(e.$t("Save Settings"))+"\n ")]),e._v(" "),t("el-button",{attrs:{type:"danger",icon:"ff-icon ff-icon-trash",loading:e.clearing},on:{click:e.clearSettings}},[e._v(e._s(e.$t("Clear Settings"))+"\n ")])],1)],1)],1)},[],!1,null,null,null).exports;const nt=ge({name:"errorView",props:["field","errors"]},function(){var e=this,t=e._self._c;return e.errors.has(e.field)?t("div",{staticClass:"el-form-item__error"},[t("p",[e._v(e._s(e.errors.first(e.field)))])]):e._e()},[],!1,null,null,null).exports;const it={name:"wp_editor",components:{popover:ge({name:"inputPopoverDropdownExtended",props:{data:Array,close_on_insert:{type:Boolean,default:function(){return!0}},buttonText:{type:String,default:function(){return'Add Shortcodes '}},btnType:{type:String,default:function(){return"success"}},plain:{type:Boolean,default:function(){return!1}},size:{type:String,default:"small"}},data:function(){return{activeIndex:0,visible:!1}},methods:{insertShortcode:function(e){this.$emit("command",e),this.close_on_insert&&(this.visible=!1)}},mounted:function(){}},function(){var e=this,t=e._self._c;return t("div",[t("el-popover",{ref:"input-popover1",attrs:{placement:"right-end",offset:"50","popper-class":"el-dropdown-list-wrapper",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"el_pop_data_group"},[t("div",{staticClass:"el_pop_data_headings"},[t("ul",{staticClass:"ff_list_button ff_list_button_small"},e._l(e.data,function(n,i){return t("li",{key:i,staticClass:"ff_list_button_item",class:e.activeIndex==i?"active":"",attrs:{"data-item_index":i},on:{click:function(t){e.activeIndex=i}}},[t("a",{staticClass:"ff_list_button_link",attrs:{href:"#"},on:{click:function(e){e.preventDefault()}}},[e._v(e._s(n.title))])])}),0)]),e._v(" "),t("div",{staticClass:"el_pop_data_body"},e._l(e.data,function(n,i){return t("ul",{directives:[{name:"show",rawName:"v-show",value:e.activeIndex==i,expression:"activeIndex == current_index"}],key:i,staticClass:"ff_list_border_bottom",class:"el_pop_body_item_"+i},e._l(n.shortcodes,function(n,i,r){return t("li",{key:r,staticStyle:{cursor:"pointer"},on:{click:function(t){return e.insertShortcode(i)}}},[t("span",{staticClass:"lead-title"},[e._v(e._s(n))]),e._v(" "),t("span",{staticClass:"lead-text"},[e._v(e._s(i))])])}),0)}),0)])]),e._v(" "),t("el-button",{directives:[{name:"popover",rawName:"v-popover:input-popover1",arg:"input-popover1"}],staticClass:"editor-add-shortcode el-button--soft",attrs:{size:e.size,type:e.btnType,plain:e.plain},domProps:{innerHTML:e._s(e.buttonText)}})],1)},[],!1,null,null,null).exports,ButtonDesigner:ge({name:"tinyButtonDesigner",props:["visibility"],data:function(){return{controls:{button_text:{type:"text",label:"Button Text",value:"Click Here"},button_url:{label:"Button URL",type:"url",value:""},backgroundColor:{label:"Background Color",type:"color_picker",value:"#0072ff"},textColor:{label:"Text Color",type:"color_picker",value:"#ffffff"},borderRadius:{label:"Border Radius",type:"slider",value:5,max:50,min:0},fontSize:{label:"Font Size",type:"slider",value:16,min:8,max:40},fontStyle:{label:"Font Style",type:"checkboxes",value:[],options:{bold:"Bold",italic:"Italic",underline:"Underline"}}},style:""}},watch:{controls:{handler:function(){this.generateStyle()},deep:!0}},methods:{close:function(){this.$emit("close")},insert:function(){if(this.controls.button_url.value&&this.controls.button_text.value){var e='').concat(this.controls.button_text.value,"");this.$emit("insert",e),this.close()}else this.$notify.error("Button Text and URL is required")},generateStyle:function(){var e=this.controls.fontStyle.value,t=-1===e.indexOf("underline")?"none":"underline",n=-1===e.indexOf("bold")?"normal":"bold",i=-1===e.indexOf("italic")?"normal":"italic";this.style="color:".concat(this.controls.textColor.value,";")+"background-color:".concat(this.controls.backgroundColor.value,";")+"font-size:".concat(this.controls.fontSize.value,"px;")+"border-radius:".concat(this.controls.borderRadius.value,"px;")+"text-decoration:".concat(t,";")+"font-weight:".concat(n,";")+"font-style:".concat(i,";")+"padding:0.8rem 1rem;border-color:#0072ff;"}},mounted:function(){this.generateStyle()}},function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.visibility,"show-close":!1,width:"60%"},on:{"update:visible":function(t){e.visibility=t}}},[t("template",{slot:"title"},[t("h4",[e._v(e._s(e.$t("Design Your Button")))])]),e._v(" "),t("div",{staticClass:"wpns_preview_mce mt-4"},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:14}},[t("el-form",{attrs:{"label-position":"top"}},e._l(e.controls,function(n,i){return t("el-col",{key:i,attrs:{span:12}},[t("el-form-item",{attrs:{label:n.label}},["text"==n.type||"url"==n.type?[t("el-input",{attrs:{type:n.type},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"control.value"}})]:"color_picker"==n.type?[t("el-color-picker",{on:{"active-change":function(e){n.value=e}},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"control.value"}})]:"slider"==n.type?t("div",[t("el-slider",{attrs:{min:n.min,max:n.max},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"control.value"}})],1):"checkboxes"==n.type?[t("el-checkbox-group",{staticClass:"ff_checkbox_group_col_2",model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"control.value"}},e._l(n.options,function(n,i){return t("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(n)+"\n ")])}),1)]:e._e()],2)],1)}),1)],1),e._v(" "),t("el-col",{attrs:{span:10}},[t("div",{staticClass:"wpns_button_preview"},[t("div",{staticClass:"preview_header"},[e._v("\n "+e._s(e.$t("Button Preview:"))+"\n ")]),e._v(" "),t("div",{staticClass:"preview_body"},[t("a",{style:e.style,attrs:{href:"#"},on:{click:function(t){return e.insert()}}},[e._v(e._s(e.controls.button_text.value))])])])])],1)],1),e._v(" "),t("div",{staticClass:"dialog-footer mt-4",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"el-button--soft",attrs:{type:"info"},on:{click:function(t){return e.close()}}},[e._v(e._s(e.$t("Cancel")))]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.insert()}}},[e._v(e._s(e.$t("Insert")))])],1)],2)},[],!1,null,null,null).exports},props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()+parseInt(1e3*Math.random())}},value:{type:String,default:function(){return""}},editorShortcodes:{type:Array,default:function(){return[]}},height:{type:Number,default:function(){return 250}}},data:function(){return{showButtonDesigner:!1,buttonInitiated:!1,hasWpEditor:!!window.wp.editor,hasMedia:!!FluentFormApp.hasPro,plain_content:this.value,cursorPos:this.value.length}},watch:{plain_content:function(){this.$emit("input",this.customSanitize(this.plain_content))}},methods:{initEditor:function(){wp.editor.remove(this.editor_id);var e=this;wp.editor.initialize(this.editor_id,{mediaButtons:e.hasMedia,tinymce:{height:e.height,toolbar1:"formatselect,customInsertButton,table,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,underline,strikethrough,forecolor,removeformat,codeformat,outdent,indent,undo,redo",setup:function(t){t.on("change",function(t,n){e.changeContentEvent()}),e.buttonInitiated||(e.buttonInitiated=!0,t.addButton("customInsertButton",{text:"Button",classes:"wpns_editor_btn",onclick:function(){e.showInsertButtonModal(t)}}))}},quicktags:!0}),jQuery("#"+this.editor_id).on("change",function(t){e.changeContentEvent()})},changeContentEvent:function(){var e=wp.editor.getContent(this.editor_id);e&&e.includes("http://{pdf.download_link.")&&(e=e.replace(/http:\/\/{pdf.download_link./g,"{pdf.download_link.")),this.$emit("input",this.customSanitize(e))},handleCommand:function(e){var t=this.customSanitize(e);if(this.hasWpEditor)tinymce.activeEditor.insertContent(t);else{var n=this.plain_content.slice(0,this.cursorPos),i=this.plain_content.slice(this.cursorPos,this.plain_content.length);this.plain_content=n+t+i,this.cursorPos+=t.length}},showInsertButtonModal:function(e){this.currentEditor=e,this.showButtonDesigner=!0},insertHtml:function(e){this.currentEditor.insertContent(this.customSanitize(e))},updateCursorPos:function(){var e=jQuery(".wp_vue_editor_plain").prop("selectionStart");this.$set(this,"cursorPos",e)},customSanitize:function(e){var t=e.replace(/\s+(on\w+)\s*=\s*("[^"]*"|'[^']*'|[^"'\s>]+)/gi,"");return t=t.replace(/\s+http-equiv\s*=\s*("[^"]*"|'[^']*'|[^"'\s>]+)/gi,"")}},computed:{sanitizedValue:{get:function(){return this.value},set:function(e){var t=this.customSanitize(e);this.$emit("input",t)}}},mounted:function(){this.hasWpEditor&&this.initEditor()}};const rt=ge(it,function(){var e=this,t=e._self._c;return t("div",{staticClass:"wp_vue_editor_wrapper"},[e.editorShortcodes.length?t("popover",{staticClass:"popover-wrapper",class:{"popover-wrapper-plaintext":!e.hasWpEditor},attrs:{data:e.editorShortcodes,btnType:"info",plain:!0},on:{command:e.handleCommand}}):e._e(),e._v(" "),e.hasWpEditor?t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sanitizedValue,expression:"sanitizedValue"}],staticClass:"wp_vue_editor",attrs:{id:e.editor_id},domProps:{value:e.sanitizedValue},on:{input:function(t){t.target.composing||(e.sanitizedValue=t.target.value)}}}):t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:e.plain_content},on:{click:e.updateCursorPos,input:function(t){t.target.composing||(e.plain_content=t.target.value)}}}),e._v(" "),e.showButtonDesigner?t("button-designer",{attrs:{visibility:e.showButtonDesigner},on:{close:function(){e.showButtonDesigner=!1},insert:e.insertHtml}}):e._e()],1)},[],!1,null,null,null).exports;var at=ge({name:"inputPopover",props:{value:{type:String,default:""},placeholder:{type:String,default:""},placement:{type:String,default:"bottom"},icon:{type:String,default:"el-icon-more"},fieldType:{type:String,default:"text"},data:Array,attrName:{type:String,default:"attribute_name"},rows:{type:Number,default:2}},methods:{insertShortcode:function(e){this.model+=e.replace(/param_name/,this.attrName)}},computed:{model:{get:function(){return void 0===this.value||null===this.value?"":this.value},set:function(e){this.$emit("input",e)}}}},function(){var e=this,t=e._self._c;return t("div",[t("el-popover",{ref:"input-popover",attrs:{placement:e.placement,width:"200","popper-class":"el-dropdown-list-wrapper",trigger:"click"}},[t("ul",{staticClass:"el-dropdown-menu el-dropdown-list"},e._l(e.data,function(n,i){return t("li",{key:i},[e.data.length>1?t("span",{staticClass:"group-title"},[e._v(e._s(n.title))]):e._e(),e._v(" "),t("ul",e._l(n.shortcodes,function(n,i,r){return t("li",{key:r,staticClass:"el-dropdown-menu__item",on:{click:function(t){return e.insertShortcode(i)}}},[e._v("\n "+e._s(n)+"\n ")])}),0)])}),0)]),e._v(" "),"textarea"==e.fieldType?t("div",{staticClass:"input-textarea-value"},[t("i",{directives:[{name:"popover",rawName:"v-popover:input-popover",arg:"input-popover"}],staticClass:"icon el-icon-tickets"}),e._v(" "),t("el-input",{attrs:{rows:e.rows,placeholder:e.placeholder,type:"textarea"},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})],1):t("el-input",{attrs:{placeholder:e.placeholder,type:e.fieldType},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},[t("el-button",{directives:[{name:"popover",rawName:"v-popover:input-popover",arg:"input-popover"}],attrs:{slot:"append",icon:e.icon},slot:"append"})],1)],1)},[],!1,null,null,null);const st=ge({name:"fieldGeneral",components:{inputPopover:at.exports},props:{value:[String,Number,Boolean],editorShortcodes:Array,field_type:{type:String,default:"text"},placeholder:{type:String,default:"Select a Field or Type Custom value"}},computed:{fieldValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}},function(){var e=this,t=e._self._c;return t("div",{staticClass:"field_general"},[t("input-popover",{attrs:{fieldType:e.field_type,placeholder:e.placeholder,icon:"el-icon-arrow-down",data:e.editorShortcodes},model:{value:e.fieldValue,callback:function(t){e.fieldValue=t},expression:"fieldValue"}})],1)},[],!1,null,null,null).exports;var ot=ge({name:"photo_widget",props:["value","design_mode","enable_clear","for_advanced_option"],data:function(){return{app_ready:!1,design_mode_name:this.design_mode||"small",enable_clear_name:this.enable_clear,image_size:"",for_editor_advance_option:this.for_advanced_option||!1}},methods:{initUploader:function(e){var t=this,n=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(e,i){t.image_url=i.url,t.image_size=i.filesizeHumanReadable,wp.media.editor.send.attachment=n},wp.media.editor.open(),!1}},computed:{image_url:{get:function(){return this.value||""},set:function(e){this.$emit("input",e)}},image_name:function(){var e,t,n=this.image_url,i=n.substring(n.lastIndexOf("/")+1,null==n?void 0:n.length);(null===(e=i)||void 0===e?void 0:e.length)>15&&(i=i.slice(0,15)+"..."+i.substring(i.lastIndexOf(".")-2,null===(t=i)||void 0===t?void 0:t.length));return i}},mounted:function(){window.wpActiveEditor||(window.wpActiveEditor=null),this.app_ready=!0}},function(){var e,t=this,n=t._self._c;return t.app_ready?n("div",{staticClass:"ff_file_upload_wrap",class:"ff_photo_"+t.design_mode_name},[t.for_editor_advance_option?n("div",{staticClass:"ff_photo_card",class:"ff_photo_"+t.design_mode_name},[t.app_ready?n("div",{staticClass:"wpf_photo_holder"},[t.image_url?n("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.image_url}}):t._e(),t._v(" "),n("div",{staticClass:"photo_widget_btn",on:{click:t.initUploader}},[n("span",{staticClass:"dashicons dashicons-cloud-upload"})]),t._v(" "),"yes"==t.enable_clear_name&&t.image_url?n("div",{staticClass:"photo_widget_btn_clear",on:{click:function(e){t.image_url=""}}},[n("span",{staticClass:"dashicons dashicons-trash"})]):t._e()]):t._e()]):[n("div",{staticClass:"el-button el-button--upload el-button--default is-plain",on:{click:t.initUploader}},[n("i",{staticClass:"el-icon el-icon-upload"}),t._v(" "),n("span",[t._v(t._s("Upload Media"))])]),t._v(" "),(null===(e=t.image_url)||void 0===e?void 0:e.length)>0?n("div",{staticClass:"mt-2"},[n("div",{staticClass:"ff_file_upload_result"},[n("div",{staticClass:"ff_file_upload_preview"},[n("img",{attrs:{src:t.image_url}})]),t._v(" "),n("div",{staticClass:"ff_file_upload_data"},[n("el-button",{staticClass:"el-button--icon",attrs:{type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:function(e){t.image_url=""}}}),t._v(" "),t.image_name?n("div",{staticClass:"ff_file_upload_description"},[t._v("\n "+t._s(t.image_name)+"\n ")]):t._e(),t._v(" "),t.image_size?n("div",{staticClass:"ff_file_upload_size"},[t._v("\n "+t._s(t.image_size)+"\n ")]):t._e()],1)])]):t._e()]],2):t._e()},[],!1,null,null,null);function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ct(e){for(var t=1;t