Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/elementor-pro/assets/js/admin.min.js
Назад
/*! elementor-pro - v3.25.0 - 13-11-2024 */ (()=>{var e={5310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Module extends elementorModules.Module{#e=[{href:"elementor_pro_renew_license_menu_link",external_url:"https://go.elementor.com/wp-menu-renew/"},{href:"elementor_pro_upgrade_license_menu_link",external_url:"https://go.elementor.com/go-pro-advanced-elementor-menu/"}];onInit(){this.assignMenuItemActions()}assignMenuItemActions(){window.addEventListener("DOMContentLoaded",(()=>{this.#e.forEach((e=>{const t=document.querySelector(`a[href="${e.href}"]`);t&&t.addEventListener("click",(t=>{t.preventDefault(),window.open(e.external_url,"_blank")}))}))}))}}t.default=Module},9376:(e,t,s)=>{"use strict";var n=s(6784),o=n(s(5640)),i=n(s(7959));e.exports=function(){const e=s(6036),t=i.default,n=s(2106).A;this.fontManager=new o.default,this.typekit=new e,this.fontAwesomePro=new n,this.customIcons=new t}},7796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class CustomAssetsBase extends elementorModules.ViewModule{showAlertDialog(e,t,s=!1,n=!1){const o={id:e,message:t};s&&(o.onConfirm=s),n&&(o.onHide=n),this.alertWidget||(this.alertWidget=elementorCommon.dialogsManager.createWidget("alert",o)),this.alertWidget.show()}onDialogDismiss(){this.elements.$publishButton.removeClass("disabled"),this.elements.$publishButtonSpinner.removeClass("is-active")}handleSubmit(e){if(this.fileWasUploaded)return;return this.checkInputsForValues()?(this.fileWasUploaded=!0,void this.elements.$postForm.trigger("submit")):(e.preventDefault(),this.showAlertDialog("noData",this.getSettings("notice"),(()=>this.onDialogDismiss()),(()=>this.onDialogDismiss())),!1)}bindEvents(){this.elements.$postForm.on("submit",this.handleSubmit.bind(this))}}t.default=CustomAssetsBase},7959:(e,t,s)=>{"use strict";var n=s(2470).__,o=s(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(s(7796)),a=o(s(4484));class CustomIcons extends i.default{getDefaultSettings(){return{fields:{dropzone:a.default},classes:{editPageClass:"post-type-elementor_icons",editPhp:"edit-php",hasIcons:"elementor--has-icons"},selectors:{editPageClass:"post-type-elementor_icons",title:"#title",metaboxContainer:"#elementor-custom-icons-metabox",metabox:".elementor-custom-icons-metabox",closeHandle:"button.handlediv",iconsTemplate:"#elementor-icons-template",dataInput:"#elementor_custom_icon_set_config",dropzone:".zip_upload",submitDelete:".submitdelete",dayInput:"#hidden_jj",mmInput:"#hidden_mm",yearInput:"#hidden_aa",hourInput:"#hidden_hh",minuteInput:"#hidden_mn",publishButton:"#publish",publishButtonSpinner:"#publishing-action > .spinner",submitMetabox:"#postbox-container-1",postForm:"#post",fileInput:"#zip_upload",iconSetConfigInput:"#elementor_custom_icon_set_config"},templates:{icon:'<li><div class="icon"><i class="{{icon}}"></i><div class="icon-name">{{label}}</div></div></li>',header:jQuery("#elementor-custom-icons-template-header").html(),footer:jQuery("#elementor-custom-icons-template-footer").html(),duplicatePrefix:jQuery("#elementor-custom-icons-template-duplicate-prefix").html()},notice:n("Upload an icon set to publish.","elementor-pro")}}getDefaultElements(){const e={},t=this.getSettings("selectors");return jQuery.each(t,((t,s)=>{e["$"+t]=jQuery(s)})),e}bindEvents(){super.bindEvents(),""!==this.getData()&&this.bindOnTitleChange()}bindOnTitleChange(){const{$title:e}=this.elements;e.on("input change",(e=>this.onTitleInput(e)))}removeCloseHandle(){const{$metaboxContainer:e}=this.elements;e.find("h2").remove(),e.find("button").remove(),e.removeClass("closed").removeClass("postbox")}prepareIconName(e){const t=e.replace("_"," ").replace("-"," ");return elementorCommon.helpers.upperCaseWords(t)}getCreatedOn(){const{$dayInput:e,$mmInput:t,$yearInput:s,$hourInput:n,$minuteInput:o}=this.elements;return{day:e.val(),mm:t.val(),year:s.val(),hour:n.val(),minute:o.val()}}enqueueCSS(e){elementorCommon.elements.$document.find('link[href="'+e+'"]').length||elementorCommon.elements.$document.find("link").last().after('<link href="'+e+'" rel="stylesheet" type="text/css">')}setData(e){this.elements.$dataInput.val(JSON.stringify(e))}getData(){const e=this.elements.$dataInput.val();return""===e?"":JSON.parse(e)}renderIconList(e){const t=this.getSettings("templates.icon");return e.icons.map((s=>{const n={icon:e.displayPrefix+" "+e.prefix+s,label:this.prepareIconName(s)};return elementorCommon.compileTemplate(t,n)})).join("\n")}renderIcons(e){const{$metaboxContainer:t,$metabox:s,$submitMetabox:n}=this.elements,{header:o,footer:i}=this.getSettings("templates");t.addClass(this.getSettings("classes.hasIcons")),n.show(),this.setData(e),this.enqueueCSS(e.url),s.html(""),t.prepend(elementorCommon.compileTemplate(o,e)),s.append("<ul>"+this.renderIconList(e)+"</ul>"),t.append(elementorCommon.compileTemplate(i,this.getCreatedOn()))}onTitleInput(e){const t=this.getData();t.label=e.target.value,this.setData(t)}checkInputsForValues(){return""!==this.elements.$fileInput.val()||""!==this.elements.$iconSetConfigInput.val()}onSuccess(e){if(e.data.errors){let t,s;return jQuery.each(e.data.errors,((e,n)=>(t=e,s=n,!1))),this.showAlertDialog(t,s)}if(e.data.config.duplicate_prefix)return delete e.data.config.duplicatePrefix,this.showAlertDialog("duplicate-prefix",this.getSettings("templates.duplicatePrefix"),(()=>this.saveInitialUpload(e.data.config)));this.saveInitialUpload(e.data.config)}saveInitialUpload(e){this.setData(e);const{$publishButton:t,$title:s,$submitMetabox:n}=this.elements;n.show(),""===s.val()&&s.val(e.name),this.fileWasUploaded=!0,t.trigger("click")}onInit(){const{$body:e}=elementorCommon.elements,{editPageClass:t,editPhp:s}=this.getSettings("classes");if(!e.hasClass(t)||e.hasClass(s))return;super.onInit(),this.removeCloseHandle();const n=new(this.getSettings("fields.dropzone")),o=this.getData(),{$dropzone:i,$metaboxContainer:a}=this.elements;""===o?(i.show("fast"),n.setSettings("onSuccess",((...e)=>this.onSuccess(...e)))):this.renderIcons(o),a.show("fast")}}t.default=CustomIcons},5640:(e,t,s)=>{"use strict";var n=s(2470).__,o=s(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(s(7796)),a=o(s(1149)),r=o(s(3643));class CustomFontsManager extends i.default{getDefaultSettings(){return{fields:{upload:a.default,repeater:r.default},selectors:{editPageClass:"post-type-elementor_font",title:"#title",repeaterBlock:".repeater-block",repeaterTitle:".repeater-title",removeRowBtn:".remove-repeater-row",editRowBtn:".toggle-repeater-row",closeRowBtn:".close-repeater-row",styleInput:".font_style",weightInput:".font_weight",customFontsMetaBox:"#elementor-font-custommetabox",closeHandle:"button.handlediv",toolbar:".elementor-field-toolbar",inlinePreview:".inline-preview",fileUrlInput:'.elementor-field-file input[type="text"]',postForm:"#post",publishButton:"#publish",publishButtonSpinner:"#publishing-action > .spinner"},notice:n("Choose a font to publish.","elementor-pro"),fontLabelTemplate:'<ul class="row-font-label"><li class="row-font-weight">{{weight}}</li><li class="row-font-style">{{style}}</li><li class="row-font-preview">{{preview}}</li>{{toolbar}}</ul>'}}getDefaultElements(){const e=this.getSettings("selectors");return{$postForm:jQuery(e.postForm),$publishButton:jQuery(e.publishButton),$publishButtonSpinner:jQuery(e.publishButtonSpinner),$closeHandle:jQuery(e.closeHandle),$customFontsMetaBox:jQuery(e.customFontsMetaBox),$title:jQuery(e.title)}}renderTemplate(e,t){const s=/{{([^}}]+)?}}/g;let n;for(;n=s.exec(e);)e=e.replace(n[0],t[n[1]]);return e}ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}getPreviewStyle(e){const t=this.getSettings("selectors"),s=this.elements.$title.val(),n=e.find("select"+t.styleInput).first().val(),o=e.find("select"+t.weightInput).first().val();return{style:this.ucFirst(n),weight:this.ucFirst(o),styleAttribute:"font-family: "+s+" ;font-style: "+n+"; font-weight: "+o+";"}}updateRowLabel(e,t){const s=this.getSettings("selectors"),n=this.getSettings("fontLabelTemplate"),o=t.closest(s.repeaterBlock),i=o.find(s.removeRowBtn).first(),a=o.find(s.editRowBtn).first(),r=o.find(s.closeRowBtn).first(),l=t.find(s.toolbar).last().clone(),c=this.getPreviewStyle(t);a.length>0&&a.not(s.toolbar+" "+s.editRowBtn).remove(),r.length>0&&r.not(s.toolbar+" "+s.closeRowBtn).remove(),i.length>0&&i.not(s.toolbar+" "+s.removeRowBtn).remove();const u=jQuery('<li class="row-font-actions">').append(l)[0].outerHTML;return this.renderTemplate(n,{weight:'<span class="label">Weight:</span>'+c.weight,style:'<span class="label">Style:</span>'+c.style,preview:'<span style="'+c.styleAttribute+'">Elementor is making the web beautiful</span>',toolbar:u})}onRepeaterToggleVisible(e,t,s){const n=this.getSettings("selectors"),o=s.find(n.inlinePreview),i=this.getPreviewStyle(s);o.attr("style",i.styleAttribute)}onRepeaterNewRow(e,t,s){const n=this.getSettings("selectors");s.find(n.removeRowBtn).first().remove(),s.find(n.editRowBtn).first().remove(),s.find(n.closeRowBtn).first().remove()}maybeToggle(e){e.preventDefault();const t=this.getSettings("selectors");jQuery(this).is(":visible")&&!jQuery(e.target).hasClass(t.editRowBtn)&&jQuery(this).find(t.editRowBtn).trigger("click")}onInputChange(e){const t=jQuery(e.target).next(),s=this.getSettings("fields");s.upload.setFields(t),s.upload.setLabels(t),s.upload.replaceButtonClass(t)}bindEvents(){const e=this.getSettings("selectors");jQuery(document).on("repeaterComputedLabel",this.updateRowLabel.bind(this)).on("onRepeaterToggleVisible",this.onRepeaterToggleVisible.bind(this)).on("onRepeaterNewRow",this.onRepeaterNewRow.bind(this)).on("click",e.repeaterTitle,this.maybeToggle.bind(this)).on("input",e.fileUrlInput,this.onInputChange.bind(this)),super.bindEvents()}checkInputsForValues(){const e=this.getSettings("selectors");let t=!1;return jQuery(e.fileUrlInput).each(((e,s)=>{if(""!==jQuery(s).val())return t=!0,!1})),t}removeCloseHandle(){this.elements.$closeHandle.remove(),this.elements.$customFontsMetaBox.removeClass("closed").removeClass("postbox")}titleRequired(){this.elements.$title.prop("required",!0)}onInit(...e){const t=this.getSettings();if(!jQuery("body").hasClass(t.selectors.editPageClass))return;super.onInit(...e),this.removeCloseHandle(),this.titleRequired(),t.fields.upload.init(),t.fields.repeater.init();const s=jQuery(document),n=this.markMetaboxIfVariableFont.bind(this);jQuery("#add-variable-font").on("click",(()=>{jQuery(document).one("onRepeaterNewRow",((e,t,s)=>{s.find('input[name$="font_type]"]').val("variable"),n()})),jQuery("#elementor-font-custommetabox").find(".add-repeater-row").trigger("click")})),s.on("onRepeaterNewRow",n),s.on("onRepeaterRemoveRow",n),s.on("change",'input[name$="variable_width]"], input[name$="variable_weight]"]',this.onFontVariableTypeChange),n()}markMetaboxIfVariableFont(){const e=jQuery('input[name$="font_type]"]'),t=jQuery(".elementor-metabox-content");if(t.removeClass("has-font-variable has-font-static"),!e.length)return;const s="variable"===e.val();s?t.addClass("has-font-variable",s):t.addClass("has-font-static"),jQuery('input[name$="variable_width]"], input[name$="variable_weight]"]').each(this.onFontVariableTypeChange)}onFontVariableTypeChange(){const e=jQuery(this);e.parents().eq(1).toggleClass("e-font-variable-hidden",!e.is(":checked"))}}t.default=CustomFontsManager},4484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class DropZoneField extends elementorModules.ViewModule{getDefaultSettings(){const e=".elementor-dropzone-field";return{droppedFiles:!1,selectors:{dropZone:e,input:e+' [type="file"]',label:e+"label",errorMsg:e+".box__error span",restart:e+".box__restart",browseButton:e+" .elementor--dropzone--upload__browse",postId:"#post_ID"},classes:{drag:"is-dragover",error:"is-error",success:"is-success",upload:"is-uploading"},onSuccess:null,onError:null}}getDefaultElements(){const e={},t=this.getSettings("selectors");return jQuery.each(t,((t,s)=>{e["$"+t]=jQuery(s)})),e}bindEvents(){const{$dropZone:e,$browseButton:t,$input:s}=this.elements,{drag:n}=this.getSettings("classes");t.on("click",(()=>s.trigger("click"))),e.on("drag dragstart dragend dragover dragenter dragleave drop",(e=>{e.preventDefault(),e.stopPropagation()})).on("dragover dragenter",(()=>{e.addClass(n)})).on("dragleave dragend drop",(()=>{e.removeClass(n)})).on("drop change",(e=>{"change"===e.type?this.setSettings("droppedFiles",e.originalEvent.target.files):this.setSettings("droppedFiles",e.originalEvent.dataTransfer.files),this.handleUpload()}))}handleUpload(){const e=this.getSettings("droppedFiles");if(!e)return;const{$input:t,$dropZone:s,$postId:n,$errorMsg:o}=this.elements,{error:i,success:a,upload:r}=this.getSettings("classes"),{onSuccess:l,onError:c}=this.getSettings(),u=new FormData,d=t.attr("name"),p="pro_assets_manager_custom_icon_upload",h=this;Object.entries(e).forEach((e=>{u.append(d,e[1])})),u.append("actions",JSON.stringify({pro_assets_manager_custom_icon_upload:{action:p,data:{post_id:n.val()}}})),s.removeClass(a).removeClass(i),elementorCommon.ajax.send("ajax",{data:u,cache:!1,enctype:"multipart/form-data",contentType:!1,processData:!1,complete:()=>{s.removeClass(r)},success:e=>{const t=e.responses[p];s.addClass(t.success?a:i),t.success?l&&l(t,h):(o.text(t.error),c&&c(h,arguments))},error:()=>{"function"==typeof c&&c(h,arguments)}})}onInit(){super.onInit(),elementorCommon.elements.$document.trigger("onDropzoneLoaded",[this])}}t.default=DropZoneField},3643:e=>{"use strict";e.exports={selectors:{add:".add-repeater-row",remove:".remove-repeater-row",toggle:".toggle-repeater-row",close:".close-repeater-row",sort:".sort-repeater-row",table:".form-table",block:".repeater-block",repeaterLabel:".repeater-title",repeaterField:".elementor-field-repeater"},counters:[],trigger(e,t){jQuery(document).trigger(e,t)},triggerHandler:(e,t)=>jQuery(document).triggerHandler(e,t),countBlocks(e){return e.closest(this.selectors.repeaterField).find(this.selectors.block).length||0},add(e){var t,s=this,n=jQuery(e),o=n.data("template-id");Object.prototype.hasOwnProperty.call(s.counters,o)||(s.counters[o]=s.countBlocks(n)),s.counters[o]+=1,t=jQuery("#"+o).html(),t=s.replaceAll("__counter__",s.counters[o],t),n.before(t),s.trigger("onRepeaterNewRow",[n,n.prev()])},remove(e){jQuery(e).closest(this.selectors.block).remove(),this.trigger("onRepeaterRemoveRow",[e])},toggle(e){var t=this,s=jQuery(e),n=s.closest(t.selectors.block).find(t.selectors.table),o=s.closest(t.selectors.block).find(t.selectors.repeaterLabel);n.toggle(0,(function(){n.is(":visible")?(n.closest(t.selectors.block).addClass("block-visible"),t.trigger("onRepeaterToggleVisible",[s,n,o])):(n.closest(t.selectors.block).removeClass("block-visible"),t.trigger("onRepeaterToggleHidden",[s,n,o]))})),o.toggle(),t.updateRowLabel(e)},close(e){var t=this,s=jQuery(e),n=s.closest(t.selectors.block).find(t.selectors.table),o=s.closest(t.selectors.block).find(t.selectors.repeaterLabel);n.closest(t.selectors.block).removeClass("block-visible"),n.hide(),t.trigger("onRepeaterToggleHidden",[s,n,o]),o.show(),t.updateRowLabel(e)},updateRowLabel(e){var t=this,s=jQuery(e),n=s.closest(t.selectors.block).find(t.selectors.table),o=s.closest(t.selectors.block).find(t.selectors.repeaterLabel),i=o.data("selector");if(void 0!==i&&!1!==i){var a=!1,r=o.data("default");n.find(i).length&&(a=n.find(i).val());var l=t.triggerHandler("repeaterComputedLabel",[n,o,a]);void 0!==l&&!1!==l&&(a=l),void 0!==a&&!1!==a||(a=r),o.html(a)}},replaceAll:(e,t,s)=>s.replace(new RegExp(e,"g"),t),init(){var e=this;jQuery(document).on("click",this.selectors.add,(function(t){t.preventDefault(),e.add(jQuery(this),t)})).on("click",this.selectors.remove,(function(t){t.preventDefault(),confirm(jQuery(this).data("confirm").toString())&&e.remove(jQuery(this),t)})).on("click",this.selectors.toggle,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle(jQuery(this),t)})).on("click",this.selectors.close,(function(t){t.preventDefault(),t.stopPropagation(),e.close(jQuery(this),t)})),jQuery(this.selectors.toggle).each((function(){e.updateRowLabel(jQuery(this))})),this.trigger("onRepeaterLoaded",[this])}}},1149:e=>{"use strict";e.exports={$btn:null,fileId:null,fileUrl:null,fileFrame:[],selectors:{uploadBtnClass:"elementor-upload-btn",clearBtnClass:"elementor-upload-clear-btn",uploadBtn:".elementor-upload-btn",clearBtn:".elementor-upload-clear-btn",inputURLField:'.elementor-field-file input[type="text"]'},hasValue(){return""!==jQuery(this.fileUrl).val()},setLabels(e){this.hasValue()?e.val(e.data("remove_text")):e.val(e.data("upload_text"))},setFields(e){const t=this;t.fileUrl=jQuery(e).prev(),t.fileId=jQuery(t.fileUrl).prev()},setUploadParams(e,t){const s=this.fileFrame[t].uploader.uploader;s.param("uploadType",e),s.param("uploadTypeCaller","elementor-admin-font-upload"),s.param("post_id",this.getPostId())},setUploadMimeType(e,t){const s=_wpPluploadSettings.defaults.filters.mime_types[0].extensions,n=this;e.on("ready",(()=>{_wpPluploadSettings.defaults.filters.mime_types[0].extensions=t})),e.on("close",(()=>{_wpPluploadSettings.defaults.filters.mime_types[0].extensions=s,n.replaceButtonClass(n.$btn)}))},replaceButtonClass(e){this.hasValue()?jQuery(e).removeClass(this.selectors.uploadBtnClass).addClass(this.selectors.clearBtnClass):jQuery(e).removeClass(this.selectors.clearBtnClass).addClass(this.selectors.uploadBtnClass),this.setLabels(e)},uploadFile(e){const t=this,s=jQuery(e),n=s.attr("data-mime_type")||"",o=s.attr("data-ext")||!1,i=s.attr("id");if(void 0!==t.fileFrame[i])return o&&t.setUploadParams(o,i),void t.fileFrame[i].open();t.fileFrame[i]=wp.media({library:{type:[...n.split(","),n.split(",").join("")]},title:s.data("box_title"),button:{text:s.data("box_action")},multiple:!1}),t.fileFrame[i].on("select",(function(){const s=t.fileFrame[i].state().get("selection").first().toJSON();jQuery(t.fileId).val(s.id),jQuery(t.fileUrl).val(s.url),t.replaceButtonClass(e),t.updatePreview(e)})),t.fileFrame[i].on("open",(()=>{const e=this.fileId.val();if(!e)return;t.fileFrame[i].state().get("selection").add(wp.media.attachment(e))})),t.setUploadMimeType(t.fileFrame[i],o),t.fileFrame[i].open(),o&&t.setUploadParams(o,i)},updatePreview(e){const t=this,s=jQuery(e).parent().find("ul"),n=jQuery("<li>"),o=jQuery(e).data("preview_anchor")||"full";if(s.html(""),t.hasValue()&&"none"!==o){let e=jQuery(t.fileUrl).val();"full"!==o&&(e=e.substring(e.lastIndexOf("/")+1)),n.html('<a href="'+jQuery(t.fileUrl).val()+'" download>'+e+"</a>"),s.append(n)}},setup(){const e=this;jQuery(e.selectors.uploadBtn+", "+e.selectors.clearBtn).each((function(){e.setFields(jQuery(this)),e.updatePreview(jQuery(this)),e.setLabels(jQuery(this)),e.replaceButtonClass(jQuery(this))}))},getPostId:()=>jQuery("#post_ID").val(),handleUploadClick(e){e.preventDefault();const t=jQuery(e.target);if("text"===t.attr("type"))return t.next().removeClass(this.selectors.clearBtnClass).addClass(this.selectors.uploadBtnClass).trigger("click");this.$btn=t,this.setFields(t),this.uploadFile(t)},init(){const e=this,{uploadBtn:t,inputURLField:s,clearBtn:n}=this.selectors,handleUpload=e=>this.handleUploadClick(e);jQuery(document).on("click",t,handleUpload),jQuery(document).on("click",s,(e=>{""!==e.target.value&&handleUpload(e)})),jQuery(document).on("click",n,(function(t){t.preventDefault();const s=jQuery(this);e.setFields(s),jQuery(e.fileUrl).val(""),jQuery(e.fileId).val(""),e.updatePreview(s),e.replaceButtonClass(s)})),this.setup(),jQuery(document).on("onRepeaterNewRow",(function(){e.setup()}))}}},2106:(e,t)=>{"use strict";t.A=void 0;class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{button:"#elementor_pro_fa_pro_validate_button",kitIdField:"#elementor_font_awesome_pro_kit_id"}}}getDefaultElements(){const e={},t=this.getSettings("selectors");return jQuery.each(t,((t,s)=>{e["$"+t]=jQuery(s)})),e}bindEvents(){const{$button:e,$kitIdField:t}=this.elements;e.on("click",(e=>{e.preventDefault(),this.testKitUrl()})),t.on("change",(()=>{this.setState("clear")}))}setState(e){const t=["loading","success","error"],{$button:s}=this.elements;let n,o;for(o in t)n=t[o],e===n?s.addClass(n):s.removeClass(n)}testKitUrl(){this.setState("loading");const e=this,t=this.elements.$kitIdField.val();""!==t?jQuery.ajax({url:"https://kit.fontawesome.com/"+t+".js",method:"GET",complete:t=>{200!==t.status?e.setState("error"):e.setState("success")}}):this.setState("clear")}}t.A=_default},6036:e=>{"use strict";e.exports=function(){var e=this;e.cacheElements=function(){this.cache={$button:jQuery("#elementor_pro_typekit_validate_button"),$kitIdField:jQuery("#elementor_typekit-kit-id"),$dataLabelSpan:jQuery(".elementor-pro-typekit-data")}},e.bindEvents=function(){this.cache.$button.on("click",(function(t){t.preventDefault(),e.fetchFonts()})),this.cache.$kitIdField.on("change",(function(){e.setState("clear")}))},e.fetchFonts=function(){this.setState("loading"),this.cache.$dataLabelSpan.addClass("hidden");var t=this.cache.$kitIdField.val();""!==t?jQuery.post(ajaxurl,{action:"elementor_pro_admin_fetch_fonts",kit_id:t,_nonce:e.cache.$button.data("nonce")}).done((function(t){if(t.success){var s=e.cache.$button.data("found");s=s.replace("{{count}}",t.data.count),e.cache.$dataLabelSpan.html(s).removeClass("hidden"),e.setState("success")}else e.setState("error")})).fail((function(){e.setState()})):this.setState("clear")},e.setState=function(e){var t,s,n=["loading","success","error"];for(s in n)e===(t=n[s])?this.cache.$button.addClass(t):this.cache.$button.removeClass(t)},e.init=function(){this.cacheElements(),this.bindEvents()},e.init()}},1128:(e,t,s)=>{"use strict";e.exports=function(){var e=s(2390);this.dripButton=new e("drip_api_token"),this.getResponse=new e("getresponse_api_key"),this.convertKit=new e("convertkit_api_key"),this.mailChimp=new e("mailchimp_api_key"),this.mailerLite=new e("mailerlite_api_key"),this.activeCcampaign=new e("activecampaign_api_key","activecampaign_api_url"),jQuery('.e-notice--cta.e-notice--dismissible[data-notice_id="site_mailer_forms_submissions_notice"] a.e-button--cta').on("click",(function(){elementorCommon.ajax.addRequest("elementor_site_mailer_campaign",{data:{source:"sm-submission-install"}})}))}},2390:e=>{"use strict";e.exports=function(e,t){var s=this;s.cacheElements=function(){this.cache={$button:jQuery("#elementor_pro_"+e+"_button"),$apiKeyField:jQuery("#elementor_pro_"+e),$apiUrlField:jQuery("#elementor_pro_"+t)}},s.bindEvents=function(){this.cache.$button.on("click",(function(e){e.preventDefault(),s.validateApi()})),this.cache.$apiKeyField.on("change",(function(){s.setState("clear")}))},s.validateApi=function(){this.setState("loading");var e=this.cache.$apiKeyField.val();""!==e?this.cache.$apiUrlField.length&&""===this.cache.$apiUrlField.val()?this.setState("clear"):jQuery.post(ajaxurl,{action:s.cache.$button.data("action"),api_key:e,api_url:this.cache.$apiUrlField.val(),_nonce:s.cache.$button.data("nonce")}).done((function(e){e.success?s.setState("success"):s.setState("error")})).fail((function(){s.setState()})):this.setState("clear")},s.setState=function(e){var t,s,n=["loading","success","error"];for(s in n)e===(t=n[s])?this.cache.$button.addClass(t):this.cache.$button.removeClass(t)},s.init=function(){this.cacheElements(),this.bindEvents()},s.init()}},408:(e,t,s)=>{"use strict";e.exports=function(){var e=s(4196);this.editButton=new e}},4196:e=>{"use strict";e.exports=function(){this.init=function(){jQuery(document).on("change",".elementor-widget-template-select",(function(){var e=jQuery(this),t=e.val(),s=e.parents("p").find(".elementor-edit-template");if("page"===e.find('[value="'+t+'"]').data("type")){var n=elementorAdmin.config.home_url+"?p="+t+"&elementor";s.prop("href",n).show()}else s.hide()}))},this.init()}},1564:(e,t,s)=>{"use strict";e.exports=function(){const e=s(2602);this.stripeTestSecretKey=new e("stripe_test_secret_key"),this.stripeLiveSecretKey=new e("stripe_live_secret_key")}},2602:e=>{"use strict";e.exports=function(e){var t=this;t.cacheElements=function(){this.cache={$button:jQuery("#elementor_pro_"+e+"_button"),$apiKeyField:jQuery("#elementor_pro_"+e)}},t.bindEvents=function(){this.cache.$button.on("click",(function(e){e.preventDefault(),t.validateApi()})),this.cache.$apiKeyField.on("change",(function(){t.setState("clear")}))},t.validateApi=function(){this.setState("loading");var e=this.cache.$apiKeyField.val();""!==e?jQuery.post(ajaxurl,{action:t.cache.$button.data("action"),secret_key:e,_nonce:t.cache.$button.data("nonce")}).done((function(e){e.success?t.setState("success"):t.setState("error")})).fail((function(){t.setState()})):this.setState("clear")},t.setState=function(e){var t,s,n=["loading","success","error"];for(s in n)e===(t=n[s])?this.cache.$button.addClass(t):this.cache.$button.removeClass(t)},t.init=function(){this.cacheElements(),this.bindEvents()},t.init()}},6553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorModules.admin?.MenuHandler&&new elementorModules.admin.MenuHandler({path:"edit.php?post_type=elementor_library&tabs_group=popup&elementor_library_type=popup"})}}t.default=_default},7093:(e,t,s)=>{"use strict";e.exports=function(){var e=s(774);this.advancedRoleManager=new e}},774:e=>{"use strict";e.exports=function(){var e=this;e.cacheElements=function(){this.cache={$checkBox:jQuery('input[name="elementor_exclude_user_roles[]"]'),$advanced:jQuery("#elementor_advanced_role_manager")}},e.bindEvents=function(){this.cache.$checkBox.on("change",(function(t){t.preventDefault(),e.checkBoxUpdate(jQuery(this))}))},e.checkBoxUpdate=function(t){var s=t.val();t.is(":checked")?e.cache.$advanced.find("div."+s).addClass("hidden"):e.cache.$advanced.find("div."+s).removeClass("hidden")},e.init=function(){jQuery("body").hasClass("elementor_page_elementor-role-manager")&&(this.cacheElements(),this.bindEvents())},e.init()}},7488:(e,t,s)=>{"use strict";e.exports=function(){var e=s(5231);this.createTemplateDialog=new e}},5231:e=>{"use strict";e.exports=function(){var e={templateTypeInput:"#elementor-new-template__form__template-type",locationWrapper:"#elementor-new-template__form__location__wrapper",postTypeWrapper:"#elementor-new-template__form__post-type__wrapper"},t={$templateTypeInput:null,$locationWrapper:null,$postTypeWrapper:null},setLocationFieldVisibility=function(){t.$locationWrapper.toggle("section"===t.$templateTypeInput.val()),t.$postTypeWrapper.toggle("single"===t.$templateTypeInput.val())};var run=function(){jQuery.each(e,(function(e,s){t[e="$"+e]=elementorNewTemplate.layout.getModal().getElements("content").find(s)})),setLocationFieldVisibility(),t.$templateTypeInput.on("change",(()=>{setLocationFieldVisibility(),(()=>{const e={"error-404":"not_found404"}[t.$templateTypeInput.val()]||"";t.$postTypeWrapper.find("select").val(e)})()}))};this.init=function(){window.elementorNewTemplate&&(elementorNewTemplate.layout.getModal(),run())},jQuery(setTimeout.bind(window,this.init))}},2470:e=>{"use strict";e.exports=wp.i18n},6784:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function __webpack_require__(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,__webpack_require__),o.exports}(()=>{"use strict";var e=__webpack_require__(6784),t=e(__webpack_require__(6553)),s=e(__webpack_require__(5310));const n={widget_template_edit_button:__webpack_require__(408),forms_integrations:__webpack_require__(1128),AssetsManager:__webpack_require__(9376),RoleManager:__webpack_require__(7093),ThemeBuilder:__webpack_require__(7488),StripeIntegration:__webpack_require__(1564),License:s.default};window.elementorProAdmin={widget_template_edit_button:new n.widget_template_edit_button,forms_integrations:new n.forms_integrations,assetsManager:new n.AssetsManager,roleManager:new n.RoleManager,themeBuilder:new n.ThemeBuilder,StripeIntegration:new n.StripeIntegration,popup:new t.default,license:new n.License},jQuery((function(){elementorProAdmin.roleManager.advancedRoleManager.init()}))})()})();
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка