!function(e){var t="Close",i="BeforeClose",n="AfterClose",s="BeforeAppend",o="MarkupParse",a="Open",r="Change",c="mfp",l="."+c,p="mfp-ready",d="mfp-removing",u="mfp-prevent-close",h,f=function(){},g=!!window.jQuery,m,v=e(window),y,k,C,b,w,P=function(e,t){h.ev.on(c+e+l,t)},I=function(t,i,n,s){var o=document.createElement("div");return o.className="mfp-"+t,n&&(o.innerHTML=n),s?i&&i.appendChild(o):(o=e(o),i&&o.appendTo(i)),o},x=function(t,i){h.ev.triggerHandler(c+t,i),h.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),h.st.callbacks[t]&&h.st.callbacks[t].apply(h,e.isArray(i)?i:[i]))},_=function(t){return t===w&&h.currTemplate.closeBtn||(h.currTemplate.closeBtn=e(h.st.closeMarkup.replace("%title%",h.st.tClose)),w=t),h.currTemplate.closeBtn},S=function(){e.magnificPopup.instance||(h=new f,h.init(),e.magnificPopup.instance=h)},T=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};f.prototype={constructor:f,init:function(){var t=navigator.appVersion;h.isIE7=t.indexOf("MSIE 7.")!==-1,h.isIE8=t.indexOf("MSIE 8.")!==-1,h.isLowIE=h.isIE7||h.isIE8,h.isAndroid=/android/gi.test(t),h.isIOS=/iphone|ipad|ipod/gi.test(t),h.supportsTransition=T(),h.probablyMobile=h.isAndroid||h.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),k=e(document),h.popupsCache={}},open:function(t){y||(y=e(document.body));var i;if(t.isObj===!1){h.items=t.items.toArray(),h.index=0;var n=t.items,s;for(i=0;i(e||v.height())},_setFocus:function(){(h.st.focus?h.content.find(h.st.focus).eq(0):h.wrap).focus()},_onFocusIn:function(t){if(t.target!==h.wrap[0]&&!e.contains(h.wrap[0],t.target))return h._setFocus(),!1},_parseMarkup:function(t,i,n){var s;n.data&&(i=e.extend(n.data,i)),x(o,[t,i,n]),e.each(i,function(e,i){if(void 0===i||i===!1)return!0;if(s=e.split("_"),s.length>1){var n=t.find(l+"-"+s[0]);if(n.length>0){var o=s[1];"replaceWith"===o?n[0]!==i[0]&&n.replaceWith(i):"img"===o?n.is("img")?n.attr("src",i):n.replaceWith(''):n.attr(s[1],i)}}else t.find(l+"-"+e).html(i)})},_getScrollbarSize:function(){if(void 0===h.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),h.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return h.scrollbarSize}},e.magnificPopup={instance:null,proto:f.prototype,modules:[],open:function(t,i){return S(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(t){S();var i=e(this);if("string"==typeof t)if("open"===t){var n,s=g?i.data("magnificPopup"):i[0].magnificPopup,o=parseInt(arguments[1],10)||0;s.items?n=s.items[o]:(n=i,s.delegate&&(n=n.find(s.delegate)),n=n.eq(o)),h._openClick({mfpEl:n},i,s)}else h.isOpen&&h[t].apply(h,Array.prototype.slice.call(arguments,1));else t=e.extend(!0,{},t),g?i.data("magnificPopup",t):i[0].magnificPopup=t,h.addGroup(i,t);return i};var O="inline",z,E,j,A=function(){j&&(E.after(j.addClass(z)).detach(),j=null)};e.magnificPopup.registerModule(O,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){h.types.push(O),P(t+"."+O,function(){A()})},getInline:function(t,i){if(A(),t.src){var n=h.st.inline,s=e(t.src);if(s.length){var o=s[0].parentNode;o&&o.tagName&&(E||(z=n.hiddenClass,E=I(z),z="mfp-"+z),j=s.after(E).detach().removeClass(z)),h.updateStatus("ready")}else h.updateStatus("error",n.tNotFound),s=e("
");return t.inlineElement=s,s}return h.updateStatus("ready"),h._parseMarkup(i,{},t),i}}});var B,M=function(){return void 0===B&&(B=void 0!==document.createElement("p").style.MozTransform),B};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e=h.st.zoom,n=".zoom",s;if(e.enabled&&h.supportsTransition){var o=e.duration,a=function(t){var i=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+e.duration/1e3+"s "+e.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return s["-webkit-"+o]=s["-moz-"+o]=s["-o-"+o]=s[o]=n,i.css(s),i},r=function(){h.content.css("visibility","visible")},c,l;P("BuildControls"+n,function(){if(h._allowZoom()){if(clearTimeout(c),h.content.css("visibility","hidden"),s=h._getItemToZoom(),!s)return void r();l=a(s),l.css(h._getOffset()),h.wrap.append(l),c=setTimeout(function(){l.css(h._getOffset(!0)),c=setTimeout(function(){r(),setTimeout(function(){l.remove(),s=l=null,x("ZoomAnimationEnded")},16)},o)},16)}}),P(i+n,function(){if(h._allowZoom()){if(clearTimeout(c),h.st.removalDelay=o,!s){if(s=h._getItemToZoom(),!s)return;l=a(s)}l.css(h._getOffset(!0)),h.wrap.append(l),h.content.css("visibility","hidden"),setTimeout(function(){l.css(h._getOffset())},16)}}),P(t+n,function(){h._allowZoom()&&(r(),l&&l.remove(),s=null)})}},_allowZoom:function(){return"image"===h.currItem.type},_getItemToZoom:function(){return!!h.currItem.hasSize&&h.currItem.img},_getOffset:function(t){var i;i=t?h.currItem.img:h.st.zoom.opener(h.currItem.el||h.currItem);var n=i.offset(),s=parseInt(i.css("padding-top"),10),o=parseInt(i.css("padding-bottom"),10);n.top-=e(window).scrollTop()-s;var a={width:i.width(),height:(g?i.innerHeight():i[0].offsetHeight)-o-s};return M()?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}}),S()}(window.jQuery||window.Zepto),jQuery(document).ready(function($){jQuery("input.kad-widget-colorpicker").wpColorPicker()}),jQuery(document).on("panelsopen",function(){jQuery("input.kad-widget-colorpicker").wpColorPicker()}),jQuery(document).on("widget-added",function(){jQuery("input.kad-widget-colorpicker").each(function(){jQuery(this).wpColorPicker()})}),jQuery(document).on("widget-updated",function(){jQuery("input.kad-widget-colorpicker").each(function(){jQuery(this).wpColorPicker()})}),jQuery(document).ready(function($){function e(){$(".kadenceshortcode-content").find("input:text, input:file, textarea").val(""),$(".kadenceshortcode-content").find("select").removeAttr("selected"," "),$(".kadenceshortcode-content").find("input:radio, input:checkbox").removeAttr("checked").removeAttr("selected"),$(".kadenceshortcode-content").find(".wp-color-result").attr("style","")}$("body").on("click",".kadence-generator-button",function(){$.magnificPopup.open({mainClass:"mfp-zoom-in kt-mfp-shortcode",items:{src:"#kadence-shortcode-innercontainer"},type:"inline"})}),$("input.kad-popup-colorpicker").wpColorPicker(),$("#kad-shortcode-insert").click(function(){var e=$("#kadence-shortcodes").val(),t="";if("columns"==e){var n="";$("#options-"+e+' input[type="radio"]').each(function(){"checked"==$(this).attr("checked")&&(n=$(this).attr("value"))}),t="[columns] ","span6"==n?(t+="[span6] ",t+="

add content here

",t+="[/span6]",t+="[span6] ",t+="

add content here

",t+="[/span6]"):"span4left"==n?(t+="[span4] ",t+="

add content here

",t+="[/span4]",t+="[span8] ",t+="

add content here

",t+="[/span8]"):"span4right"==n?(t+="[span8] ",t+="

add content here

",t+="[/span8]",t+="[span4] ",t+="

add content here

",t+="[/span4]"):"span4"==n?(t+="[span4] ",t+="

add content here

",t+="[/span4]",t+="[span4] ",t+="

add content here

",t+="[/span4]",t+="[span4] ",t+="

add content here

",t+="[/span4]"):"span3"==n&&(t+="[span3] ",t+="

add content here

",t+="[/span3]",t+="[span3] ",t+="

add content here

",t+="[/span3]",t+="[span3] ",t+="

add content here

",t+="[/span3]",t+="[span3] ",t+="

add content here

",t+="[/span3]"),t+="[/columns]"}else if("table"==e){var s=""!=$("#options-"+e+" .kad-sc-columns").attr("value")?parseInt($("#options-"+e+" .kad-sc-columns").val()):2,o=""!=$("#options-"+e+" .kad-sc-rows").attr("value")?parseInt($("#options-"+e+" .kad-sc-rows").val()):2,a="checked"==$("#options-"+e+" #head").attr("checked");if(t="",a){t+="",t+="";var r=1;for(c=0;cColumn "+r+"",r++;t+="",t+=""}t+="";var l=1;for(i=0;i";var r=1;for(c=0;cRow "+l+", Column "+r+"",r++;l++}t+="",t+="",t+="
"}else if("kt_fullwidth_container"==e){var p="",d="";$("#options-"+e+" select").each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("id")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].wp-color-picker').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),t="["+e,t+=p,t+="]",t+="

"+d+"

",t+="[/"+e+"]"}else if("tabs"==e)t="[tabs]",t+='[tab title="title1" start=open]

Put content here

[/tab]',t+='[tab title="title2"]

Put content here

[/tab]',t+='[tab title="title3"]

Copy and paste to create more

[/tab]',t+="[/tabs]";else if("accordion"==e)t="[accordion]",t+='[pane title="title1" start=open]

Put content here

[/pane]',t+='[pane title="title2"]

Put content here

[/pane]',t+='[pane title="title3"]

Copy and paste to create more

[/pane]',t+="[/accordion]";else if("pullquote"==e||"blockquote"==e){var p="",d="";$("#options-"+e+" select").each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("id")+'="'+$(this).attr("value")+'"')}),d=$("#options-"+e+" textarea.kad-sc-content").val(),t="["+e,t+=p,t+="]",t+="

"+d+"

",t+="[/"+e+"]"}else if("kad_modal"==e){var p="",d="";$("#options-"+e+" select").each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("id")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"]').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].wp-color-picker').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),d=$("#options-"+e+" textarea.kad-sc-content").val(),t="["+e,t+=p,t+="]",t+="

"+d+"

",t+="[/"+e+"]"}else if("iconbox"==e){var p="",d="",u="";$("#options-"+e+" select").each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("id")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].kad-sc-link').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].wp-color-picker').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),d=$("#options-"+e+" textarea.kad-sc-description").val(),u=$("#options-"+e+' [type="text"].kad-sc-title').attr("value"),t="["+e,t+=p,t+="]",u&&(t+="

"+u+"

"),d&&(t+="

"+d+"

"),t+="[/"+e+"]"}else if("kt_box"==e){var p="",d="";$("#options-"+e+" select").each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("id")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].attr').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].wp-color-picker').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+" input[type=checkbox]").each(function(){"checked"==$(this).attr("checked")&&(p+=" "+$(this).attr("data-attrname")+'="middle"')}),d=$("#options-"+e+" textarea.kad-sc-content").val(),t="["+e,t+=p,t+="]",t+="

"+d+"

",t+="[/"+e+"]"}else{var p="",h="",f=" ";$("#options-"+e+' input[type="text"].kad-sc-textinput').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="text"].kad-popup-colorpicker').each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+" select").each(function(){""!=$(this).attr("value")&&(p+=" "+$(this).attr("id")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+' input[type="radio"]').each(function(){"checked"==$(this).attr("checked")&&(p+=" "+$(this).attr("data-attrname")+'="'+$(this).attr("value")+'"')}),$("#options-"+e+" input[type=checkbox]").each(function(){"checked"==$(this).attr("checked")&&(p+=" "+$(this).attr("data-attrname")+'="true"')}),f+=p,t="["+e,t+=f,t+="]"}window.wp.media.editor.insert(t),$.magnificPopup.close()}),$("#kadence-shortcodes").change(function(){$(".shortcode-options").hide(),$("#options-"+$(this).val()).show()}),$("#options-columns input:radio").addClass("input_hidden"),$("#options-columns label").click(function(){$(this).addClass("selected").siblings().removeClass("selected")})}),!function(e){"use strict";function t(t,n){this.element=e(t),this.settings=e.extend({},i,n),this.settings.emptyIcon&&this.settings.iconsPerPage--,this.iconPicker=e("
",{class:"icons-selector",style:"position: relative",html:'
'}),this.iconContainer=this.iconPicker.find(".fip-icons-container"),this.searchIcon=this.iconPicker.find(".selector-search i"),this.iconsSearched=[],this.isSearch=!1,this.totalPage=1,this.currentPage=1,this.currentIcon=!1,this.iconsCount=0,this.open=!1,this.searchValues=[],this.availableCategoriesSearch=[],this.triggerEvent=null,this.backupSource=[],this.backupSearch=[],this.isCategorized=!1,this.selectCategory=this.iconPicker.find(".icon-category-select"),this.selectedCategory=!1,this.availableCategories=[],this.unCategorizedKey=null,this.init()}var i={theme:"fip-grey",source:!1,emptyIcon:!0,emptyIconValue:"",iconsPerPage:20,hasSearch:!0,searchSource:!1,useAttribute:!1,attributeName:"data-icon",convertToHex:!0,allCategoryText:"From all categories",unCategorizedText:"Uncategorized"};t.prototype={init:function(){this.iconPicker.addClass(this.settings.theme),this.iconPicker.css({left:-9999}).appendTo("body");var t=this.iconPicker.outerHeight(),i=this.iconPicker.outerWidth();if(this.iconPicker.css({left:""}),this.element.before(this.iconPicker),this.element.css({visibility:"hidden",top:0,position:"relative",zIndex:"-1",left:"-"+i+"px",display:"inline-block",height:t+"px",width:i+"px",padding:"0",margin:"0 -"+i+"px 0 0",border:"0 none",verticalAlign:"top"}),!this.element.is("select")){var n=function(){for(var e=3,t=document.createElement("div"),i=t.all||[];t.innerHTML="",i[0];);return e>4?e:!e}(),s=document.createElement("div");this.triggerEvent=9!==n&&"oninput"in s?["input","keyup"]:["keyup"]}!this.settings.source&&this.element.is("select")?(this.settings.source=[],this.settings.searchSource=[],this.element.find("optgroup").length?(this.isCategorized=!0,this.element.find("optgroup").each(e.proxy(function(t,i){var n=this.availableCategories.length,s=e("