Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/public_html/wp-content/themes/dt-the7/inc/admin/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/public_html/wp-content/themes/dt-the7/inc/admin/assets/js/options.min.js
function dtRadioImagesSetCheckbox(t){jQuery("#"+t).trigger("click")}!function(t){window.The7Options||(window.The7Options={}),window.The7Options.slider||(window.The7Options.slider=function(e){var i=t(e),o=i.next("input.of-slider-value");o.length&&(i.slider({value:parseFloat(o.attr("data-value")),min:parseFloat(o.attr("data-min")),max:parseFloat(o.attr("data-max")),step:parseFloat(o.attr("data-step")),range:"min",slide:function(t,e){o.val(e.value).trigger("change.of-slider-slide")}}),o.val(o.attr("data-value")),o.on("change",(function(t){var e=o.val();if(""!==e){var n=parseFloat(e);isNaN(n)&&(n=i.slider("option","min")),i.slider("value",n),o.val(i.slider("value"))}else i.slider("value",e)})))})}(jQuery),function(t){function e(t){var e;return(t=t.replace(/ /g,"")).match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)?(e=100*parseFloat(t.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)[1]).toFixed(2),e=parseInt(e)):e=100,e}function i(t,e,i,n){var s,r,a;s=e.data("a8cIris"),r=e.data("wpWpColorPicker"),s._color._alpha=t,a=s._color.toString(),e.val(a),r.toggler.css({"background-color":a}),n&&o(t,i),e.wpColorPicker("color",a)}function o(t,e){e.slider("value",t),e.find(".ui-slider-handle").text(t.toString())}window.The7Options||(window.The7Options={}),window.The7Options.alphaColor||(window.The7Options.alphaColor=function(e){t(e).alphaColorPicker()},Color.prototype.toString=function(t){if("no-alpha"==t)return this.toCSS("rgba","1").replace(/\s+/g,"");if(1>this._alpha)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var i=6-e.length-1;i>=0;i--)e="0"+e;return"#"+e},t.fn.alphaColorPicker=function(){return this.each((function(){var n,s,r,a,c,l,d,h,p,f;(n=t(this)).wrap('<div class="alpha-color-picker-wrap"></div>'),r=n.attr("data-palette")||"true",a=n.attr("data-show-opacity")||"true",c=n.attr("data-default-color")||"",l=-1!==r.indexOf("|")?r.split("|"):"false"!=r,""==(s=n.val().replace(/\s+/g,""))&&(s=c),d={change:function(t,i){var o,s,r;o=n.attr("data-customize-setting-link"),s=n.wpColorPicker("color"),c==s&&(r=e(s),p.find(".ui-slider-handle").text(r)),void 0!==wp.customize&&wp.customize(o,(function(t){t.set(s)})),h.find(".transparency").css("background-color",i.color.toString("no-alpha"))},palettes:l},n.wpColorPicker(d),h=n.parents(".wp-picker-container:first"),t('<div class="alpha-color-picker-container"><div class="min-click-zone click-zone"></div><div class="max-click-zone click-zone"></div><div class="alpha-slider"></div><div class="transparency"></div></div>').appendTo(h.find(".wp-picker-holder")),p=h.find(".alpha-slider"),f={create:function(e,i){var o=t(this).slider("value");t(this).find(".ui-slider-handle").text(o),t(this).siblings(".transparency ").css("background-color",s)},value:e(s),range:"max",step:1,min:0,max:100,animate:300},p.slider(f),"true"==a&&p.find(".ui-slider-handle").addClass("show-opacity"),h.find(".min-click-zone").on("click",(function(){i(0,n,p,!0)})),h.find(".max-click-zone").on("click",(function(){i(100,n,p,!0)})),h.find(".iris-palette").on("click",(function(){var i,s;o(s=e(i=t(this).css("background-color")),p),100!=s&&(i=i.replace(/[^,]+(?=\))/,(s/100).toFixed(2))),n.wpColorPicker("color",i)})),h.find(".button.wp-picker-default").on("click",(function(){o(e(c),p)})),n.on("input",(function(){o(e(t(this).val()),p)})),p.slider().on("slide",(function(e,o){i(parseFloat(o.value)/100,n,p,!1),t(this).find(".ui-slider-handle").text(o.value)}))}))})}(jQuery),function(t){if(window.The7Options||(window.The7Options={}),!window.The7Options.gradientPicker){window.The7Options.gradientPicker=function(e){var i=t(e);i.gradientPicker({change:function(t,e){var i=parseInt(e.find(".of-gradient_picker-angle").val())+"deg",o=t.map((function(t){return t.color+" "+(100*t.position|0)+"%"})),n=[i].concat(o);e.find(".of-gradient_picker-value").val(n.join("|")),e.siblings(".of-gradient_picker-preview-box").first().css("background-image","linear-gradient("+n.join(",")+")")},controlPoints:i.find(".of-gradient_picker-value").val().split("|").slice(1),previewWidth:252,previewHeight:25}),i.find(".of-gradient_picker-angle").on("change.of-slider-slide",(function(){i.gradientPicker("update",{})}))},t.event.special.destroyed||(t.event.special.destroyed={remove:function(t){t.handler&&t.handler()}});var e="",i=window.navigator.userAgent;e=i.indexOf("WebKit")>=0?"-webkit-":i.indexOf("Mozilla")>=0?"-moz-":i.indexOf("Microsoft")>=0?"-ms-":"",r.prototype={docClicked:function(){this.ctrlPtConfig.hide()},createCtrlPt:function(t){return new a(this.$ctrlPtContainer,t,this.opts.orientation,this,this.ctrlPtConfig)},destroyed:function(){t(document).unbind("click",this.docClicked)},updateOptions:function(e){t.extend(this.opts,e),this.updatePreview()},updatePreview:function(){var t=[];this.controlPoints.sort(n);for(var e=this.g2d.createLinearGradient(0,0,this.g2d.canvas.width,0),i=0;i<this.controlPoints.length;++i){var o=this.controlPoints[i];e.addColorStop(o.position,o.color),t.push({position:o.position,color:o.color})}if(this.g2d.fillStyle=e,this.g2d.fillRect(0,0,this.g2d.canvas.width,this.g2d.canvas.height),this.opts.generateStyles)var s=this._generatePreviewStyles();this.opts.change(t,this.$el,s)},removeControlPoint:function(t){if(!this.ctrlPointsIsLocked){var e=this.controlPoints.indexOf(t);-1!=e&&(this.controlPoints.splice(e,1),t.$el.remove()),this._maybeLockCtrlPoints()}},previewClicked:function(e){var i=t(e.target).offset(),o=e.pageX-i.left,s=e.pageY-i.top,r=this.g2d.getImageData(o,s,1,1),a="rgb("+r.data[0]+","+r.data[1]+","+r.data[2]+")",c=this.createCtrlPt({position:o/this.g2d.canvas.width,color:a});this.controlPoints.push(c),this.controlPoints.sort(n),this._maybeLockCtrlPoints()},_generatePreviewStyles:function(){for(var t=this.opts.type+"-gradient("+("linear"==this.opts.type?this.opts.fillDirection+", ":""),i=!0,o=0;o<this.controlPoints.length;++o){var n=this.controlPoints[o];i?i=!1:t+=", ",t+=n.color+" "+(100*n.position|0)+"%"}return[t+=")",e+t]},_maybeLockCtrlPoints:function(){this.controlPoints.length<=this.opts.minCtrlPts?(this.ctrlPtConfig.lockCtrlPoints(),this.ctrlPointsIsLocked=!0):(this.ctrlPtConfig.unlockCtrlPoints(),this.ctrlPointsIsLocked=!1)}},a.prototype={changePosition:function(t){this.position=t,this.listener.updatePreview(),this.$el.css("left",this.position*(this.$parentEl.width()-this.outerWidth))},drag:function(t,e){var i=e.position.left;this.position=i/(this.$parentEl.width()-this.outerWidth),this.listener.updatePreview(),this.configView.setPosition(this.position)},stop:function(t,e){this.listener.updatePreview(),this.configView.show(this.$el.position(),this.color,this)},clicked:function(t){return this.configView.show(this.$el.position(),this.color,this),t.stopPropagation(),!1},colorChanged:function(t){this.color=t,this.$el.css("background-color",this.color),this.listener.updatePreview()},removeClicked:function(){this.listener.removeControlPoint(this),this.listener.updatePreview()}},c.prototype={show:function(t,e,i){this.listener=i,this.$el.css("visibility","visible"),this.$cpicker.wpColorPicker("color",e),this.$cpicker.trigger("input"),this.visible||this.$cpicker.wpColorPicker("open"),"horizontal"===this.opts.orientation?this.$el.css("left",0):this.$el.css("top",t.top),this.visible=!0,this.setPosition(i.position)},hide:function(){this.visible&&(this.$el.css("visibility","hidden"),this.visible=!1)},colorChanged:function(t,e){var i=e.color.toString();this.listener.colorChanged(i)},removeClicked:function(){this.listener.removeClicked(),this.hide()},lockCtrlPoints:function(){this.$el.addClass("gradientPicker-ctrlPointsLocked")},unlockCtrlPoints:function(){this.$el.removeClass("gradientPicker-ctrlPointsLocked")},setPosition:function(t){this.position.setPosition(t)},onChangePosition:function(t){t=parseInt(t),isNaN(t)||(t=window.Math.max(0,t),t=window.Math.min(100,t),this.listener.changePosition(t/100))}},l.prototype={getControls:function(){return this.$positionParent},setPosition:function(t){this.$input.val(window.Math.round(100*t))},getPosition:function(){return 0|this.$input.val()},onChangePosition:function(t){this.$input.on("change",{callback:t},this.changePosition)},changePosition:function(e){e.data.callback(t(this).val())}};var o={init:function(e){e=t.extend({controlPoints:["#FFF 0%","#000 100%"],minCtrlPts:2,orientation:"horizontal",type:"linear",fillDirection:"left",generateStyles:!0,previewWidth:200,previewHeight:20,change:function(){}},e),this.each((function(){var i=t(this),o=new r(i,e);i.data("gradientPicker-sel",o)}))},update:function(e){this.each((function(){var i=t(this).data("gradientPicker-sel");null!=i&&i.updateOptions(e)}))}};t.fn.gradientPicker=function(t,e){"string"==typeof t&&"init"!==t?o[t].call(this,e):(e=t,o.init.call(this,e))}}function n(t,e){return t.position-e.position}function s(t,e){return"function"==typeof t.bind?t.bind(e):function(){t.apply(e,arguments)}}function r(e,i){this.$el=e,this.$el.css("position","relative"),this.opts=i;var o=t("<canvas class='gradientPicker-preview'></canvas>");this.$el.append(o);var n=o[0];n.width=this.opts.previewWidth,n.height=this.opts.previewHeight,this.g2d=n.getContext("2d");var r=t("<div class='gradientPicker-ctrlPts'></div>");r.css("width",this.opts.previewWidth),this.$el.append(r),this.$ctrlPtContainer=r,this.updatePreview=s(this.updatePreview,this),this.controlPoints=[],this.ctrlPtConfig=new c(this.$el,i);for(var a=0;a<i.controlPoints.length;++a){var l=this.createCtrlPt(i.controlPoints[a]);this.controlPoints.push(l)}this._maybeLockCtrlPoints(),this.docClicked=s(this.docClicked,this),this.destroyed=s(this.destroyed,this),t(document).bind("click",this.docClicked),this.$el.bind("destroyed",this.destroyed),this.previewClicked=s(this.previewClicked,this),o.click(this.previewClicked),this.updatePreview()}function a(e,i,o,n,r){if(this.$el=t("<div class='gradientPicker-ctrlPt'></div>"),e.append(this.$el),this.$parentEl=e,this.configView=r,"string"==typeof i?(i=i.split(" "),this.position=parseFloat(i[1])/100,this.color=i[0]):(this.position=i.position,this.color=i.color),this.listener=n,this.outerWidth=this.$el.outerWidth(),this.$el.css("background-color",this.color),"horizontal"==o){var a=(e.width()-this.$el.outerWidth())*this.position;this.$el.css("left",a)}else{var c=(e.height()-this.$el.outerHeight())*this.position;this.$el.css("top",c)}this.drag=s(this.drag,this),this.stop=s(this.stop,this),this.clicked=s(this.clicked,this),this.colorChanged=s(this.colorChanged,this),this.$el.draggable({axis:"horizontal"==o?"x":"y",drag:this.drag,stop:this.stop,containment:e}),this.$el.css("position","absolute"),this.$el.click(this.clicked)}function c(e,i){this.$el=t('<div class="gradientPicker-ptConfig" style="visibility: hidden"></div>'),e.append(this.$el);var o=t('<input class="color-chooser"></input>');this.$el.append(o);var n=t("<div class='gradientPicker-close'></div>");this.$el.append(n),this.colorChanged=s(this.colorChanged,this),this.removeClicked=s(this.removeClicked,this),o.alphaColorPicker(),o.wpColorPicker("option","clear",!1);var r=o.wpColorPicker("instance").options.change,a=this;o.wpColorPicker("option","change",(function(t,e){r(t,e),a.colorChanged(t,e)})),this.$cpicker=o,this.opts=i,this.visible=!1,n.click(this.removeClicked),this.$cpicker.parents(".wp-picker-container:first").find(".wp-color-result").off("click"),this.onChangePosition=s(this.onChangePosition,this),this.position=new l,this.position.onChangePosition(this.onChangePosition),this.$cpicker.closest(".wp-picker-input-wrap").after(this.position.getControls())}function l(){this.$positionParent=t('<span class="wp-picker-input-wrap wp-picker-position"><label><span class="screen-reader-text">Control point position</span><input class="point-position" type="number" min="0" max="100" step="1" size="3">%</label></span>'),this.$input=this.$positionParent.find(".point-position")}}(jQuery),function(t){"use strict";window.The7Options||(window.The7Options={}),window.The7Options.iconsPicker||(window.The7Options.iconsPicker=function(e){var i=t(e),o=t(".of-icons_picker-search",i),n="of-icons_picker-list-sub-is-opened",s="of-icons_picker-list-sub-is-closed";function r(t){t.attr("class","selected").siblings("li").removeAttr("class")}function a(t){t.removeClass(n).addClass(s)}void 0===window.The7Options.iconsPicker.$iconsListCache&&(window.The7Options.iconsPicker.$iconsListCache=t(),t.post(ajaxurl,{action:"the7_get_icons_for_icons_picker"}).done((function(t){var e=t;if(e){var i="";for(var o in e)for(var n in i+='<p class="of-icons_picker-list-group">'+o+"</p>",e[o]){var s=e[o][n];i+='<li data-icon="'+s+'" title="'+s+'"><i class="moon-icon '+s+'"></i><label class="moon-icon">'+s+"</label></li>"}window.The7Options.iconsPicker.$iconsListCache=window.The7Options.iconsPicker.$iconsListCache.add(i)}}))),t(".selector-button",i).on("click",(function(){var e,c=t(this),l=c.siblings(".of-icons_picker-list-sub");if(i.hasClass(s)){if(e=i.removeClass(n+" "+s).attr("class").split(" ").join("."),a(t(e)),function(t){t.removeClass(s).addClass(n)}(i),!c.data("icons-loaded")){void 0!==window.The7Options.iconsPicker.$iconsListCache&&(c.data("icons-loaded",!0),l.append(window.The7Options.iconsPicker.$iconsListCache.clone()));var d=c.closest(".of-icons_picker-selector").attr("data-icon");r(l.find('li[data-icon="'+d+'"]').first())}o.focus().val("").trigger("change")}else a(i)})),t(".of-icons_picker-list-sub",i).on("click","li",(function(){var e=t(this),o=e.attr("data-icon"),n=e.parents(".of-icons_picker-selector");i.find("input.of-icons_picker-value").val(o),r(e),n.find("> i").removeAttr("class").attr("class",e.find("> i").attr("class")),a(i)})),o.on("change keyup",(function(){var e=t(this),i=e.val();i?e.siblings("p, li").hide().filter('li[data-icon*="'+i+'"]').show():e.siblings(":hidden").show()}))})}(jQuery),function(t){t(document).ready((function(){function e(e,i){t(".uploaded-file");var n,s=t(this);e.preventDefault(),n||(n=wp.media({title:s.data("choose"),button:{text:s.data("update"),close:!1}})).on("select",(function(){var t=n.state().get("selection").first();n.close(),i.find(".upload").val(t.attributes.url),i.find(".upload-id").val(t.attributes.id),"image"==t.attributes.type&&i.find(".screenshot").empty().hide().append('<img src="'+t.attributes.url+'"><a class="remove-image">Remove</a>').slideDown("fast"),i.find(".upload-button").unbind().addClass("remove-file").removeClass("upload-button").val(optionsframework_l10n.remove),i.find(".of-background-properties").slideDown(),o(i)})),n.open()}function i(e){e.find(".upload").val(""),e.find(".of-background-properties").hide(),e.find(".screenshot").slideUp(),e.find(".remove-image").unbind(),e.find(".remove-file").unbind().addClass("upload-button").removeClass("remove-file").val(optionsframework_l10n.upload),e.find(".upload-id").val(0),t(".section-upload .upload-notice").length>0&&t(".upload-button").remove(),o(e)}function o(){var o=arguments[0]||t("#optionsframework");t(".remove-image, .remove-file",o).on("click",(function(){i(t(this).parents(".controls"))})),t(".upload-button",o).click((function(i){e(i,t(this).parents(".controls"))}))}window.optionsframework_add_file=e,window.optionsframework_remove_file=i,window.optionsframework_file_bindings=o,o()}))}(jQuery),function(t){window.The7Options||(window.The7Options={}),window.The7Options.codeEditor||(window.The7Options.codeEditor=function(e){if(!wp.codeEditor||!wp.codeEditor.defaultSettings)return null;var i=t(e),o=t.extend({},wp.codeEditor.defaultSettings);return o.codemirror=t.extend({},o.codemirror,{indentUnit:2,tabSize:2,mode:i.attr("data-code-style")}),wp.codeEditor.initialize(i,o)})}(jQuery),function(t){window.The7Options||(window.The7Options={}),window.The7Options.pagesList||(window.The7Options.pagesList=function(e,i){t(e).on("change",(function(){var e=t(this),o=e.val();e.siblings(".page-edit-link").remove(),o&&"0"!==o&&i&&t('<p class="page-edit-link">'+i.replace("%#%",e.val())+"</p>").insertAfter(e)})).trigger("change")})}(jQuery),function(t){window.The7Options||(window.The7Options={}),window.The7Options.switch||(window.The7Options.switch=function(e){t(".the7-option-switch-checkbox",e).on("change",(function(){var e=t(this),i=JSON.parse(e.attr("data-values"));e.val(e.is(":checked")?i[0]:i[1])}))})}(jQuery),function(t){window.The7Options||(window.The7Options={}),window.The7Options.responsive||(window.The7Options.responsive=function(e){t(e).find(".responsive-switchers_holder > .responsive-switcher").on("click click.of-responsive",(function(e){e.preventDefault();var i=t(this).parents(".of-responsive");i.find(".responsive-switchers_holder .responsive-switcher").removeClass("of-selected"),t(this).addClass("of-selected");var o=t(this).data("device").toString();i.find(".responsive-option").removeClass("of-responsive-active"),i.find(".responsive-option.responsive-"+o).addClass("of-responsive-active")}))})}(jQuery),function(t){t.belowthefold=function(e,i){return t(window).height()+t(window).scrollTop()<=t(e).offset().top-i.threshold},t.abovethetop=function(e,i){return t(window).scrollTop()>=t(e).offset().top+t(e).height()-i.threshold},t.rightofscreen=function(e,i){return t(window).width()+t(window).scrollLeft()<=t(e).offset().left-i.threshold},t.leftofscreen=function(e,i){return t(window).scrollLeft()>=t(e).offset().left+t(e).width()-i.threshold},t.inviewport=function(e,i){return!(t.rightofscreen(e,i)||t.leftofscreen(e,i)||t.belowthefold(e,i)||t.abovethetop(e,i))},t.extend(t.expr.pseudos,{"below-the-fold":function(e,i,o){return t.belowthefold(e,{threshold:0})},"above-the-top":function(e,i,o){return t.abovethetop(e,{threshold:0})},"left-of-screen":function(e,i,o){return t.leftofscreen(e,{threshold:0})},"right-of-screen":function(e,i,o){return t.rightofscreen(e,{threshold:0})},"in-viewport":function(e,i,o){return t.inviewport(e,{threshold:0})}})}(jQuery),function(t){window.the7OptionsBootstrap=function(){var e=t("#optionsframework"),i=t("#optionsframework-metabox"),o=t("#submit-wrap"),n=(t("#wpfooter"),t("#optionsframework-wrap")),s={fields:[],dependencies:{},_depFields:[],init:function(t,e){e&&t&&(this.fields=t,this.dependencies=e,this._setDepFields(),this._triggerDependencies(),this._addEvents())},_addEvents:function(){var e=this;this.fields.find(":radio, select").on("change.of.dependency",(function(){var i=t(this),o=e._getFieldID(i);e._setFieldValue(o,i.val()),e._triggerDependencies(o)})),this.fields.find(":checkbox").on("change.of.dependency",(function(){var i=t(this),o=e._getFieldID(i),n=i.attr("data-values")?JSON.parse(i.attr("data-values")):["1","0"],s=i.is(":checked")?n[0]:n[1];e._setFieldValue(o,s),e._triggerDependencies(o)}))},_fieldIsVisible:function(t){var e=this;return t.reduce((function(t,i){return t||i.reduce((function(t,i){var o=e._getFieldValue(i.field);return"=="===i.operator?t&&o===i.value:"!="===i.operator?t&&o!==i.value:"IN"===i.operator?t&&-1!==i.value.indexOf(o):"NOT_IN"===i.operator?t&&-1===i.value.indexOf(o):void 0!==i.bool_value?t&&!!i.bool_value:t}),!0)}),!1)},_triggerDependencies:function(t){if(C(),void 0!==t){if(!this._depFields[t])return;for(var e=[],i=this._depFields[t].length,o=0;o<i;o++){var n=this._depFields[t][o];this.dependencies[n]&&(e[n]=this.dependencies[n])}}else e=this.dependencies;for(depField in e)this._fieldIsVisible(e[depField])?(this._showField(depField),this._showBox(depField)):(this._hideField(depField),this._hideBox(depField))},_setDepFields:function(){for(var t in this.dependencies)for(var e=this.dependencies[t],i=e.length,o=0;o<i;o++)for(var n=e[o],s=n.length,r=0;r<s;r++){var a=n[r].field;this._depFields[a]||(this._depFields[a]=new Array),this._depFields[a].push(t)}},_getFieldID:function(t){return(t.closest(".section").attr("id")||"").replace("section-","")},_showField:function(t){this._findField(t).show()},_hideField:function(t){this._findField(t).hide()},_findField:function(t){return this.fields.filter("#section-"+t)},_showBox:function(t){this._findBox(t).removeClass("block-disabled")},_hideBox:function(t){this._findBox(t).addClass("block-disabled")},_findBox:function(t){return this.fields.filter("#"+t+".postbox")},_getFieldValue:function(t){return this._findField(t).attr("data-value")},_setFieldValue:function(t,e){void 0!==e&&this._findField(t).attr("data-value",e)}};function r(e){var i=t("<a></a>").attr("href",e);t('#optionsframework input[name="_wp_http_referer"]').val(i[0].pathname+i[0].search)}function a(t){return t?t.replace("-tab","-group"):""}function c(e){var i=a(e);t(".group").hide().filter("#"+i).fadeIn(),t("#optionsframework-wrap .nav-tab-wrapper a").removeClass("nav-tab-active").filter("#"+e).addClass("nav-tab-active").blur(),t("body").trigger("the7.options.tabChange")}s.init(t("#optionsframework .section"),optionsframework.dependencies),t.extend(!0,{},s,{_showField:function(e){t("#optionsframework-wrap ."+e).removeClass("block-disabled")},_hideField:function(e){t("#optionsframework-wrap ."+e).addClass("block-disabled")}}).init(t("#optionsframework .section"),optionsframework.blockDependencies),t("#optionsframework .of-js-hider").each((function(){var e=t(this),i=e.closest(".section").nextAll(".of-js-hide").first(),o=t("."+e.closest(".section").attr("id").replace("section-",""));e.hasClass("the7-option-switch")?setTimeout((function(){e.find(".the7-option-switch-checkbox").first().on("change",(function(){const n=t(this).val(),s=JSON.parse(t(this).attr("data-values")),r=[{dataAttr:"data-show-on-yes",active:n===s[0]},{dataAttr:"data-show-on-no",active:n===s[1]}];o.hide(),r.forEach((function(t){if(t.active&&e.attr(t.dataAttr)){const o=e.attr(t.dataAttr).split(",").map((function(t){return"."+t})).join(" ");i.filter(o).show()}}))})).trigger("change")}),100):e.is('input[type="checkbox"]')?(e.on("click",(function(){i.fadeToggle(400)})),e.prop("checked")&&i.show()):e.hasClass("of-slider")?e.hasClass("js-hide-if-not-max")&&(e.on("slidechange",(function(e,o){var n=t(this);o.value!=n.slider("option","max")?i.show():i.hide(400)})),e.slider("option","value")!=e.slider("option","max")&&i.show()):e.is('input[type="radio"]')?(e.attr("data-js-target")&&("."!==(i=e.attr("data-js-target")).charAt(0)&&(i="."+i),i=t(i)),i.length>0&&(e.on("click",(function(){o.length>0&&o.hide(),t(this).hasClass("js-hider-show")?i.show():i.hide()})),e.prop("checked")&&e.click())):e.is("select")&&e.on("change",(function(){var e=t(this),n=e.find('option[value="'+e.val()+'"]');n.attr("data-js-target")&&("."!==(i=n.attr("data-js-target")).charAt(0)&&(i="."+i),i=t(i)),i&&i.length<=0||(o.length>0&&o.hide(),n.hasClass("js-hider-show")?i.show():i.hide())})).trigger("change")})),t('#optionsframework input[type="checkbox"].of-js-hider-global').click((function(){t(this).parents(".section-block_begin").next(".of-js-hide").fadeToggle(400)})),t('#optionsframework input[type="checkbox"]:checked.of-js-hider-global').each((function(){t(this).parents(".section-block_begin").next(".of-js-hide").show()})),t(".fade").delay(5e3).fadeOut(1e3),t(".of-hex-color").wpColorPicker(),t(".of-rgba-color").each((function(){window.The7Options.alphaColor(this)})),t("#optionsframework-wrap .nav-tab-wrapper").show(),t(".group").hide(),t(".group .collapsed").each((function(){t(this).find("input:checked").parent().parent().parent().nextAll().each((function(){if(t(this).hasClass("last"))return t(this).removeClass("hidden"),!1;t(this).filter(".hidden").removeClass("hidden")}))})),t("#optionsframework-wrap .nav-tab-wrapper a").click((function(e){e.preventDefault();var i=t(this);c(i.attr("id")),t(".wp-editor-wrap").each((function(){var e=t(this).find("iframe");e.height()<30&&e.css({height:"auto"})})),history.pushState({activeGroupId:"#"+a(i.attr("id"))},"",i.attr("href")),r(i.attr("href")),C()}));var l=a(t("#optionsframework-wrap a.nav-tab-active").attr("id"));if(t("#"+l).fadeIn(),t(window).on("popstate",(function(e){var i={};if(location.search.substr(1).split("&").forEach((function(t){i[t.split("=")[0]]=t.split("=")[1]})),i.tab)var o=i.tab;else o=t("#optionsframework-wrap .nav-tab-wrapper a").first().attr("id");c(o),r(t("#"+o).attr("href"))})),t("#optionsframework-search").length>0){var d=t("#optionsframework-search").autocomplete({minLength:3,delay:500,select:function(t,e){return"none"!==e.item.value&&(window.location.href=e.item.value),!1},change:function(t,e){return!1},focus:function(){return!1},source:function(e,i){var o=t("#optionsframework-search-spinner").addClass("is-active");t.ajax({url:ajaxurl,data:{action:"optionsframework_search",search:e.term,_ajax_nonce:this.element.attr("data-nonce")}}).done((function(t){i(t)})).fail((function(){i([])})).always((function(){o.removeClass("is-active")}))}}).autocomplete("instance");d._renderItem=function(e,i){var o="<span>"+i.label+"</span>";return"none"!==i.value&&(o='<a href="'+i.value+'">'+i.label+"</a>"),t("<li>").append(o).appendTo(e)},d._renderMenu=function(e,i){var o=this;t.each(i,(function(t,i){o._renderItemData(e,i)})),t(e).addClass("the7-options-search-ui-menu")}}t(".section.marked").each((function(){var e=t(this);setTimeout((function(){e.removeClass("marked")}),3e3)})),t(".group .collapsed input:checkbox").click((function(){t(this).attr("checked")?t(this).parent().parent().parent().nextAll().removeClass("hidden"):t(this).parent().parent().parent().nextAll().each((function(){if(t(this).filter(".last").length)return t(this).addClass("hidden"),!1;t(this).addClass("hidden")}))})),t(".the7-postbox.section").each((function(){var e=t(this);e.find(".section").length<=0&&e.hide()}));var h,p,f,u,v,g=function(t,e){this.valueField=t,this.singleUnit=this.valueField.hasClass("single-unit"),this.spacing=[],this.addHandlers(e)};if(g.prototype.addSpace=function(t,e,i){this.spacing[t]={units:i,val:e,getVal:function(){return this.val=this.val||0,parseInt(this.val)+this.units}}},g.prototype.addHandlers=function(e){var i=this;e.each((function(e){var o=t(this),n=o.find(".dt_spacing-value"),s=o.find(".dt_spacing-units");i.addSpace(e,n.val(),s.attr("data-units")),n.on("blur change",(function(){i.spacing[e].val=t(this).val(),i.updateParamValue()})),s.on("change",(function(){var o=t(this).val();i.singleUnit?i.spacing.forEach((function(t){t.units=o})):i.spacing[e].units=o,i.updateParamValue()}))}))},g.prototype.updateParamValue=function(){var t=[];this.spacing.forEach((function(e){t.push(e.getVal())})),this.valueField.val(t.join(" "))},t(".section-spacing").each((function(){var e=t(this),i=e.find(".the7-option-field-value"),o=e.find(".dt_spacing-space");new g(i,o)})),t(".section-gradient_picker .grad_ex").each((function(){window.The7Options.gradientPicker(this)})),t(".of-icons_picker-controls").each((function(){window.The7Options.iconsPicker(this)})),window.The7Options.pagesList(t(".section-pages_list select"),optionsframework.editPageLinkTemplate),t(".of-radio-img-img").click((function(){t(this).parents(".controls").find(".of-radio-img-img").removeClass("of-radio-img-selected"),t(this).addClass("of-radio-img-selected")})),t(".section-background_img").on("click","a.remove-image, input.button",(function(e){e.preventDefault(),t(this).parents(".controls").find(".of-radio-img-img").removeClass("of-radio-img-selected")})),t(".of-radio-img-label").on("click",(function(e){e.preventDefault(),t(this).siblings(".of-radio-img-img").trigger("click")})),t(".of-radio-img-img").show(),t(".of-radio-img-radio").hide(),t(".of-input.dt-web-fonts").length>0){var w="Arial",m=[];t(".of-input.dt-web-fonts").on("click",(function(){w=t(this).val()})),t(".section-web-fonts .of-input").on("change",(function(){var e=t(this),i="",o="",n=e.closest(".section-web-fonts"),s=n.find('.of-input[id $= "-font_family"]').val(),r=n.find('.of-input[id $= "-font_weight"]').val(),a=n.find('.of-input[id $= "-font_style"]').val();if(s){var c=s;r&&(o="font-weight:"+r+";",c=c+":"+r),a&&(i="font-style:"+a+";",c+=a);var l='font-family: "'+s+'", "'+w+'";'+i+o;if(w=s,r&&(h=h+":"+r),c=c.replace(/ /g,"+"),-1===t.inArray(c,m)){var d="http:";void 0!==document.location.protocol&&(d=document.location.protocol);var h=d+"//fonts.googleapis.com/css?family="+c;-1==["Andale Mono","Arial","Arial Black","Comic Sans MS","Courier New","Georgia","Impact Lucida Console","Lucida Sans Unicode","Marlett","Minion Web","Symbol","Times New Roman","Tahoma","Trebuchet MS","Verdana","Webdings"].indexOf(s)&&t("head").append('<link href="'+h+'" rel="stylesheet" type="text/css">'),m.push(c)}var p=e.closest(".basic-font-block");p.length&&(n=p),j(n.find(".font-family"),{fontFamily:l})}})),t(".of-input.dt-web-fonts").trigger("change")}function _(){jQuery(".of_fields_gen_del").click((function(){var t=jQuery(this).parents("li").find("div.of_fields_gen_title");return t.next("div.of_fields_gen_data").hide().detach(),t.hide("slow").detach(),!1}))}function b(){jQuery('.of_fields_gen_data input[type="checkbox"]').on("change",(function(){var t=jQuery(this),e=t.next(".dt-hidden-desc");if(!e.length)return!0;e=e.clone().removeClass("dt-hidden-desc");var i=jQuery(event.target).parents("div.of_fields_gen_data").prev("div.of_fields_gen_title").children(".dt-menu-item-title");t.attr("checked")?i.after(e):i.parent().find("."+e.attr("class")).remove()}))}jQuery("#optionsframework .of_fields_gen_list").length>0&&jQuery("#optionsframework .of_fields_gen_list").sortable(),jQuery("button.of_fields_gen_add").click((function(t){t.preventDefault();var e=jQuery(this).parent().prev(".of_fields_gen_list"),i=jQuery(this).parents("div.of_fields_gen_controls");if(!i.find(".of_fields_gen_title").val())return!1;var o=0;e.find("div.of_fields_gen_title").each((function(){var t=parseInt(jQuery(this).attr("data-index"));t>=o&&(o=t)})),o+=1;var n=i.clone();n.find("button.of_fields_gen_add").detach(),n.attr("class","").addClass("of_fields_gen_data menu-item-settings description").append('<div class="submitbox"><a href="#" class="of_fields_gen_del submitdelete">Delete</a></div>');var s=jQuery('<span class="dt-menu-item-title">').text(jQuery(".of_fields_gen_title",i).val()),r=jQuery('<div class="of_fields_gen_title menu-item-handle" data-index="'+o+'"><span class="item-controls"><a class="item-edit"></a></span></div>');n.find("input, textarea, select").each((function(){var t=jQuery(this).attr("name").toString();jQuery(this).val(i.find('input[name="'+t+'"], textarea[name="'+t+'"], select[name="'+t+'"]').val()),t=t.replace("][","]["+o+"]["),jQuery(this).attr("name",t);var e=jQuery(this).next(".dt-hidden-desc");"checkbox"==jQuery(this).attr("type")&&jQuery(this).attr("checked")&&e&&r.prepend(e.clone().removeClass("dt-hidden-desc"))})),e.append(n),r.prepend(s),n.wrap('<li class="nav-menus-php"></li>').before(r),n.hide(),_(),b(),jQuery(".item-edit",r).click((function(t){jQuery(t.target).parents(".of_fields_gen_title").is("div.of_fields_gen_title")&&jQuery(t.target).parents(".of_fields_gen_title").next("div.of_fields_gen_data").toggle()}))})),_(),jQuery(".item-edit").click((function(t){jQuery(t.target).parents(".of_fields_gen_title").is("div.of_fields_gen_title")&&jQuery(t.target).parents(".of_fields_gen_title").next("div.of_fields_gen_data").toggle()})),b(),jQuery(".section-fields_generator .nav-menus-php").each((function(){var t=jQuery(".dt-menu-item-title",jQuery(this));jQuery('input[type="checkbox"]:checked',jQuery(this)).each((function(){var e=jQuery(this).next(".dt-hidden-desc");if(e.length){var i=e.clone();t.after(i.removeClass("dt-hidden-desc"))}}))})),jQuery("div.controls").change((function(t){if(jQuery(t.target).not("div").is(".of_fields_gen_title")){var e=jQuery(t.target).parents("div.of_fields_gen_data").prev("div.of_fields_gen_title").children(".dt-menu-item-title");e&&e.text(jQuery(t.target).val())}})),jQuery(".of-responsive").each((function(){window.The7Options.responsive(this)})),jQuery(".of-slider").each((function(){window.The7Options.slider(this)})),jQuery("select.dt_spacing-units").each((function(){t(this).change((function(){var e=t(this),i=e.parents(".controls").find(".of-slider"),o=i.next("input.of-slider-value");o.length>0&&($selOption=t("option:selected",e),o.attr("data-step",$selOption.attr("data-step")),o.attr("data-min",$selOption.attr("data-min")),o.attr("data-max",$selOption.attr("data-max")),o.attr("data-value",$selOption.attr("data-value")),window.The7Options.slider(i))}))})),jQuery("#optionsframework .section-social_buttons").each((function(){var e=t(this),i=e.attr("id");e.find(".connectedSortable").sortable({connectWith:"#"+i+" .connectedSortable",placeholder:"of-socbuttons-highlight",cancel:"li.ui-dt-sb-hidden"}).disableSelection()})),jQuery("#optionsframework .section-social_buttons .content-holder.connectedSortable").on("sortupdate",(function(t,e){var i=e.item.find('input[type="hidden"]');jQuery(this);i.attr("name",i.attr("data-name"))})),jQuery("#optionsframework .section-social_buttons .tools-palette.connectedSortable").on("sortupdate",(function(t,e){e.item.find('input[type="hidden"]').removeAttr("name")})),jQuery("#optionsframework .section-sortable .connectedSortable").sortable({connectWith:".connectedSortable",placeholder:"of-socbuttons-highlight",cancel:"li.ui-dt-sb-hidden"}).disableSelection(),jQuery("#optionsframework .section-sortable .content-holder.connectedSortable").on("sortupdate",(function(t,e){var i=e.item.find('input[type="hidden"]'),o=jQuery(this);i.attr("name",o.attr("data-sortable-item-name"))})),jQuery("#optionsframework .section-sortable .tools-palette.connectedSortable").on("sortupdate",(function(t,e){e.item.find('input[type="hidden"]').removeAttr("name")})),window.The7Options.microwidgetSettingsPopup||(window.The7Options.microwidgetSettingsPopup={_vars:{tb_icon_bar_open:!1,tb_unload_binded:!1,origin_tb_position:null,microwidgetSettings:null,microwidgetSettingsContainer:null},_addEvents:function(){var e=this;t(".section-sortable .sortConfigIcon").on("click",(function(i){i.preventDefault();var o=t(this).siblings("input").first().attr("value"),n=e._vars.microwidgetSettings=t("#microwidgets-"+o+"-block");e._vars.microwidgetSettingsContainer=n.parent(),e._vars.tb_icon_bar_open=!0;var s="presscore-microwidgets-settings",r=t("#"+s);r.length<=0&&(t("body").append('<div id="'+s+'" style="display: none;"><div id="optionsframework" class="presscore-modal-content"><div id="microwidget-settings-fields"></div></div></div>'),r=t("#"+s)),n.length>0&&t("#microwidget-settings-fields",r).append(n),tb_show(n.find("> h3").hide().text(),"#TB_inline?width=1024&height=768&inlineId="+s)}))},_extendTBPosition:function(){var e=this;e._vars.origin_tb_position=tb_position,tb_position=function(){if(e._vars.tb_icon_bar_open){var i=t("#TB_window"),o=t(window).width(),n=840>o?o-10:840,s=function(e){return t(window).height()-2*e},r=s(20);i.hasClass("presscore-microwidget-modal")||i.addClass("presscore-microwidget-modal"),e._vars.tb_unload_binded||(e._vars.tb_unload_binded=!0,i.bind("tb_unload",(function(){e._vars.tb_icon_bar_open=!1,e._vars.tb_unload_binded=!1,e._vars.microwidgetSettingsContainer.length>0&&e._vars.microwidgetSettingsContainer.append(e._vars.microwidgetSettings),t(window).off("resize.presscoreMicrowidgetsTB"),t(".submit-wrap .button-primary",i).off("click.presscoreMicrowidgetsTB")})),t(window).on("resize.presscoreMicrowidgetsTB",(function(){var e=s(20);i.height(e),t(".presscore-modal-content",i).height(e-a-c)})),i.append('<div class="submit-wrap"><div class="optionsframework-submit"><a href="#closeTB" class="button-primary">Change and close</a><div class="clear"></div></div></div>'),t(".submit-wrap .button-primary",i).on("click.presscoreMicrowidgetsTB",(function(t){tb_remove(),t.preventDefault()})));var a=t("#TB_title",i).height(),c=t(".submit-wrap",i).height();i.size()&&(i.width(n).height(r),t("#TB_ajaxContent",i).removeAttr("style"),i.css({left:parseInt((o-n)/2,10)+"px"}),void 0!==document.body.style.maxWidth&&i.css({top:"20px","margin-top":"0"}),t(".presscore-modal-content",i).height(r-a-c))}else e._vars.origin_tb_position()}},init:function(){this._extendTBPosition(),this._addEvents()}},window.The7Options.microwidgetSettingsPopup.init()),jQuery("#optionsframework #section-header-layout .controls input.of-radio-img-radio").on("click",(function(t){var e=jQuery(this),i=e.parents(".section-block_begin");i.find(".of-js-hide.header-layout").hide(),e.prop("checked")&&i.find(".of-js-hide.header-layout-"+e.val()).show()})),jQuery("#optionsframework #section-header-layout .controls input:checked.of-radio-img-radio").trigger("click"),h=t(".header-overlay-elements-top_line-padding"),p=t(".header-overlay-elements-side_top_line"),f=p.parent().siblings(".sortable-field-title").first(),u=p.parents(".controls").first().find(".tools-palette"),(v=t("#section-header-overlay-layout input.of-radio-img-radio")).on("click",(function(){"top_line"==t(this).val()?(h.slideDown(600),p.slideDown(600),f.slideDown(600)):(h.slideUp(600),p.slideUp(600),f.slideUp(600),p.find("li").appendTo(u).find("input").attr("name",""))})),v.filter("input:checked").trigger("click");var k=t(".dt-web-fonts");function y(){o.css({width:e.width()})}function C(){if(0!==e.length){var i=e.offset().top+e.outerHeight();t(window).scrollTop()+t(window).height()<=i?o.addClass("flow"):o.removeClass("flow")}}function x(){n.length&&(n[0].scrollHeight>n.height()?o.addClass("flow"):o.removeClass("flow"))}k.select2(),t(".of-select2").select2(),{_XHR:null,_cache:{all:"",safe:"",web:""},_items:null,init:function(t){this._items=t,this._addEvents()},_addEvents:function(){var e=this;e._items.select2().on("select2:opening",(function(i){var o=t(this),n=o.val(),s=o.data("fontsGroup");e._XHR||o.data("fontsDone")||(e._cache[s]?o.html(e._cache[s]).data("fontsDone",!0).val(n):(e._showSpinner(o,!0),e._XHR=t.ajax({method:"POST",url:ajaxurl,data:{action:"of_get_fonts",fontsGroup:s,_wpnonce:optionsframework.ajaxFontsNonce}}).done((function(t){e._XHR=null,t.success&&(e._cache[s]=t.data?t.data:"",o.html(e._cache[s]).data("fontsDone",!0).val(n),o.select2("open"),e._showSpinner(o,!1))})),i.preventDefault()))}))},_showSpinner:function(t,e){t.data("select2Arrow")||t.data("select2Arrow",t.siblings(".select2").first().find(".select2-selection__arrow").first());var i=t.data("select2Arrow");e?i.addClass("spinner is-active"):i.removeClass("spinner is-active")}}.init(k.filter("[data-fonts-group]")),i.addClass("optionsframework-ready"),e.css({"padding-bottom":o.height()}),t("body").hasClass("the7-customizer")?(y(),x(),t("#optionsframework-wrap .nav-tab-wrapper > a").on("click",(function(){y()}))):(y(),C()),t(window).on("scroll",(function(){C()})),t(window).on("resize",(function(){y()})),t("#optionsframework-wrap").on("scroll",(function(){x()})),t(".code-editor").each((function(){var e=window.The7Options.codeEditor(this);e&&t("body").on("the7.options.tabChange",(function(){t(e.codemirror.getWrapperElement()).is(":hidden")||e.codemirror.refresh()})).on("the7.options.submit",(function(){e.codemirror.save()}))})),t('.sortable-element-title-val .controls input[type="text"]').on("change",(function(){var e=t(this),i=e.val(),o=e.parents(".section-block").first(),n=o.attr("id").replace(/^microwidgets-(.*)-block$/,"$1"),s=t(".sortable-field-"+n+" .sortable-element-title");if(i)s.text(i),o.find(">h3").text(i);else{var r=s.attr("data-title");s.text(r),o.find(">h3").text(r)}})).trigger("change"),function(){for(var e=t("#section-fonts-headers-font-family"),i=e.find(".of-input"),o=e.find(".dt-web-fonts-preview"),n=[],s=1;s<=6;s++)n.push("#section-fonts-h"+s+"-typography-font_family .of-input");var r=t(n.join(", "));function a(t,e,i,o){t.find('option[value="'+e+'"]').length||t.append('<option value="'+e+'">'+i+"</option>"),t.val(e).trigger("change",[o])}function c(t,e){var i=e.split("-"),o=i[i.length-1];return t.filter("[id $='"+o+"']")}i.on("change.of-header-mass-assignment",(function(e,i){var n=t(this),s=n.val(),l=n.find("option:selected").text();o.slideDown(),"singleHeader"!==i&&c(r,n.attr("id")).each((function(){a(t(this),s,l,"applyToAll")}))})),r.on("change.of-header-mass-assignment",(function(n,s){var l=t(this),d=l.val(),h=l.find("option:selected").text(),p=c(r,l.attr("id")),f=t.grep(p,(function(e){return t(e).val()===d}));if("applyToAll"!==s)return f.length!==p.length?(e.find("#select2-fonts-headers-font-family-font_family-container").attr("title","").text(""),i.val(""),void o.slideUp()):void a(c(i,l.attr("id")),d,h,"singleHeader")})),t("#section-fonts-h1-typography-font_family .of-input").trigger("change.of-header-mass-assignment")}();var P={transformSelector:null,fontSelectorSection:null,headersTransformSelectorID:["#fonts-h1-typography-text_transform","#fonts-h2-typography-text_transform","#fonts-h3-typography-text_transform","#fonts-h4-typography-text_transform","#fonts-h5-typography-text_transform","#fonts-h6-typography-text_transform"],setup:function(){this.fontSelectorSection=t("#section-fonts-headers-font-family"),this.transformSelector=t("#fonts-headers-text-transform")},addHooks:function(){var e=this;e.transformSelector.on("change",(function(i,o){var n=t(this).val();j(e.fontSelectorSection,{textTransform:n?"text-transform: "+n+";":""}),n&&"singleHeader"!==o&&e.headersTransformSelectorID.forEach((function(e){t(e).val(n).trigger("change",["applyToAll"])}))}));var i=t(e.headersTransformSelectorID.join(", "));i.on("change",(function(o,n){if("applyToAll"!==n){var s=t(this).val(),r="";t.grep(i,(function(e){return t(e).val()===s})).length===i.length&&(r=s),e.transformSelector.val(r).trigger("change",["singleHeader"])}}))}};function j(e,i){e.find(".dt-web-fonts-preview").each((function(){var e=t(this),o=e.data("previewStyle")||{};e.data("previewStyle",t.extend(o,i)),e.attr("style",Object.keys(o).reduce((function(t,e){return t+o[e]}),""))}))}P.setup(),P.addHooks(),t(P.headersTransformSelectorID[0]).trigger("change"),window.The7Options.switch(t(".the7-option-switch")),t(".section-typography .text-transform .of-input").on("change",(function(){var e=t(this),i=e.val();j(e.parents(".section-typography").first().find(".font-family"),{textTransform:i?"text-transform: "+i+";":""})})).trigger("change",["applyToAll"]),t(".section-typography select.dt_spacing-units").on("change",(function(){var e=t(this),i=e.closest(".of-responsive");if(i.length){var o=i.find(".responsive-switchers_holder .responsive-switcher.of-selected").first().data("device").toString();i.find(".responsive-option.responsive-"+o+" .of-slider-value").trigger("change.of-slider-slide")}else e.closest(".section ").find(".of-slider-value").trigger("change.of-slider-slide")}));var T="desktop";function O(t){for(;t.length&&!t.parents(".responsive-option").hasClass("responsive-desktop")&&0===t.val().length;)t=t.parents(".responsive-option").prev().find(".of-slider-value").first();return t}t(".section-typography .of-responsive .responsive-switchers_holder .responsive-switcher").on("click",(function(){var e=t(this),i=e.data("device").toString();if(T!==i){T=i;var o=e.closest(".section-typography");o.find(".responsive-option.responsive-"+i+" .of-slider-value").trigger("change"),o.find(".of-responsive .responsive-switchers_holder > .responsive-switcher-"+i+":not(.of-selected)").trigger("click.of-responsive")}})),t(".section-typography .font-size .of-slider-value").on("change change.of-slider-slide",(function(){var e=t(this),i=O(e),o="px",n=i.closest(".controls").find("select.dt_spacing-units");n.length>0&&(o=n.val()),j(e.closest(".section-typography").find(".font-family"),{fontSize:"font-size: "+i.val()+o+";"})})),t(".section-typography .letter-spacing .of-slider-value").on("change change.of-slider-slide",(function(){var e=t(this),i=O(e),o="px",n=i.closest(".controls").find("select.dt_spacing-units");n.length>0&&(o=n.val()),j(e.closest(".section-typography").find(".font-family"),{letterSpacing:"letter-spacing: "+i.val()+o+";"})})),t(".section-typography .line-height .of-slider-value").on("change change.of-slider-slide",(function(){var e=t(this),i=O(e),o="px",n=i.closest(".controls").find("select.dt_spacing-units");n.length>0&&(o=n.val()),j(e.closest(".section-typography").find(".font-family"),{lineHeight:"line-height: "+i.val()+o+";"})})),t(".section-typography .responsive-desktop .of-slider-value").trigger("change.of-slider-slide"),t(".section-typography .section:not(.of-responsive) .of-slider-value").trigger("change.of-slider-slide")}}(jQuery),jQuery((function(t){window.the7OptionsBootstrap()})),jQuery((function(t){t(".section-background_img .of-radio-img-img").on("click",(function(){var e=t(this).parents(".section-background_img"),i=t(this).attr("data-full-src"),o=(t(this).attr("src"),e.find(".upload-button")),n=e.find(".screenshot");e.find(".upload").val(i),e.find(".upload-id").val(0),n.find("img").length>0?(n.find("img").attr("src",i),n.show()):n.empty().append('<img src="'+i+'"><a class="remove-image">Remove</a>').slideDown("fast"),o.length>0&&(o.unbind().addClass("remove-file").removeClass("upload-button").val(optionsframework_l10n.remove),optionsframework_file_bindings(e)),e.find(".of-background-properties").slideDown()}))})),jQuery((function(t){var e=t("#wp-admin-bar-view-desktop > a"),i=t("#wp-admin-bar-view-tablet > a"),o=t("#wp-admin-bar-view-mobile > a"),n=t("#the7-customizer-preview"),s=t("#wp-admin-bar-view-controls"),r=(t("#wp-admin-bar-the7-options-preview-switcher > a"),t("#wp-admin-bar-view"));switch($body=t("body"),e.on("click",(function(){n.attr("class","desktop-view"),r.attr("class","menupop hover view-desktop"),wpCookies.set("the7-options-preview-device","desktop")})),i.on("click",(function(){n.attr("class","tablet-view"),r.attr("class","menupop hover view-tablet"),wpCookies.set("the7-options-preview-device","tablet")})),o.on("click",(function(){n.attr("class","mobile-view"),r.attr("class","menupop hover view-mobile"),wpCookies.set("the7-options-preview-device","mobile")})),s.on("click",(function(){$body.toggleClass("hide-controls"),$body.hasClass("hide-controls")?s.removeClass("panel-shown").addClass("panel-hidden"):s.removeClass("panel-hidden").addClass("panel-shown")})),wpCookies.get("the7-options-preview-device")){case"tablet":n.attr("class","tablet-view");break;case"mobile":n.attr("class","mobile-view");break;default:n.attr("class","desktop-view")}t("#the7-customizer-preview").on("load",(function(){wpCookies.set("the7-options-preview-url",document.getElementById("the7-customizer-preview").contentWindow.location.href)}))})),function(t){"use strict";var e=new(function(){function e(e,i){this.insertAfterObj=t(i),this.noticeID=e,this.noticeTplObj=t('<div id="'+e+'" class="settings-error notice"></div>')}return e.prototype.addError=function(e,i){return e?(t("html, body").animate({scrollTop:0},400),this.noticeTplObj.clone().html(e).addClass(i).insertAfter(this.insertAfterObj)):t()},e.prototype.removeErrors=function(){t("#"+this.noticeID).remove()},e.prototype.prepareMsg=function(t){return"<p><strong>"+t+"</strong></p>"},e}())("optionsframework-options-saved","#optionsframework-wrap > h1"),i=new(function(){function t(t){this.buttonsObj=t,this.activeButton=null}return t.prototype.setActiveButton=function(t){this.activeButton=t?this.buttonsObj.filter(t):this.buttonsObj;var e=this.activeButton.attr("data-busy-value");e&&(this.activeButton.data("originValue",this.activeButton.val()),this.activeButton.val(e)),this.activeButton.addClass("active").focus(),this.buttonsObj.addClass("busy")},t.prototype.resetActiveButton=function(){return!!this.activeButton&&(this.activeButton.data("originValue")&&this.activeButton.val(this.activeButton.data("originValue")),this.activeButton.removeClass("active"),this.activeButton=null,this.buttonsObj.removeClass("busy"),!0)},t}())(t("#optionsframework-submit input[type=submit]")),o=t("#optionsframework-submit input[type=submit][name=update]"),n=t("#optionsframework-submit input[type=submit][name=reset]"),s=!1;function r(){return t("input, textarea, select","#optionsframework-form").not('input[type="hidden"][name="_wp_http_referer"]').fieldSerialize()}o.on("click",(function(e){if(t(this).hasClass("busy"))return!1})),n.on("click",(function(o){var n=t(this);return!n.hasClass("busy")&&(confirm(optionsframework.resetMsg)?(s=!0,i.setActiveButton(n),void e.removeErrors()):(o.preventDefault(),!1))})),t("#optionsframework-form").ajaxForm({url:ajaxurl,type:"post",beforeSerialize:function(){t("body").trigger("the7.options.submit")},beforeSubmit:function(t){t.find((function(t){return"update"===t.name}))&&(i.setActiveButton(o),e.removeErrors())},success:function(t){try{if(t.data.msg&&(t.data.msg=e.prepareMsg(t.data.msg)),t.success){var o=e.addError(t.data.msg,"updated");setTimeout((function(){o.fadeOut()}),5e3),c=r(),s&&window.location.reload(!0),t.data.redirectTo&&window.location.assign(t.data.redirectTo)}else e.addError(t.data.msg,"error");var n=document.getElementById("the7-customizer-preview");n&&n.contentWindow.location.reload(!0)}catch(i){e.addError(e.prepareMsg(optionsframework.serverErrorMsg),"error"),console.log(t,i)}i.resetActiveButton()},error:function(o){t.post({url:ajaxurl,data:{action:"get_the7_options_last_error"}}).done((function(t){try{e.addError(e.prepareMsg(t.data.msg),"error")}catch(i){e.addError(e.prepareMsg(optionsframework.serverErrorMsg),"error"),console.log(t,i)}})),i.resetActiveButton()}});var a=t("#the7-preview-modal");a.find(".close").on("click",(function(){a.css("display","none"),a.find("iframe").remove()})),t(window).on("click",(function(t){t.target===a[0]&&(a.css("display","none"),a.find("iframe").remove())})),t(".button.preview").on("click",(function(e){e.preventDefault();var i=t(this);i.find(".spinner").addClass("is-active"),a.css("display","block"),t.post({url:ajaxurl,data:{action:"the7_options_make_preview",_wpnonce:optionsframework.previewNonce,options:r()}}).done((function(t){t&&a.find(".modal-body").html('<iframe src="'+t+'" frameborder="0"></iframe>')})).always((function(){i.find(".spinner").removeClass("is-active")}))})),t("#the7-preview-modal .view-tablet").on("click",(function(e){e.preventDefault(),t("#the7-preview-modal .modal-content").attr("class","modal-content tablet-view")})),t("#the7-preview-modal .view-desktop").on("click",(function(e){e.preventDefault(),t("#the7-preview-modal .modal-content").attr("class","modal-content desktop-view")})),t("#the7-preview-modal .view-mobile").on("click",(function(e){e.preventDefault(),t("#the7-preview-modal .modal-content").attr("class","modal-content mobile-view")}));var c=r();window.addEventListener("beforeunload",(function(t){if(c!==r())return t.returnValue="Are you sure you want to leave?",t.returnValue}))}(jQuery);

Spamworldpro Mini