diff --git a/README.md b/README.md index 5d4bb42d..05ca1a61 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,16 @@ Read [Documentation](https://rtmedia.io/docs/transcoder/?utm_source=readme&utm_m ## Changelog ## +#### 1.4.0 [May 30, 2025] #### + +* REMOVED + * Update to users - Discontinuing the Transcoder service and replacing with GoDAM. + +* ENHANCEMENTS + * Update admin notice for the GoDAM. + * Add notice for transcoding disabled on uploads page. + * Update messages for license activation. + #### 1.3.9 [May 13, 2025] #### * ENHANCEMENTS diff --git a/admin/js/build/rt-transcoder-block-editor-support.build.js b/admin/js/build/rt-transcoder-block-editor-support.build.js index b01dae7b..c55ed034 100644 --- a/admin/js/build/rt-transcoder-block-editor-support.build.js +++ b/admin/js/build/rt-transcoder-block-editor-support.build.js @@ -1 +1 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e,r){var n;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(t){return function(t,e){var r,n,a,u,c,s,l,f,p,h=1,d=t.length,y="";for(n=0;n=0),u.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,u.width?parseInt(u.width):0);break;case"e":r=u.precision?parseFloat(r).toExponential(u.precision):parseFloat(r).toExponential();break;case"f":r=u.precision?parseFloat(r).toFixed(u.precision):parseFloat(r);break;case"g":r=u.precision?String(Number(r.toPrecision(u.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=u.precision?r.substring(0,u.precision):r;break;case"t":r=String(!!r),r=u.precision?r.substring(0,u.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=u.precision?r.substring(0,u.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=u.precision?r.substring(0,u.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(u.type)?y+=r:(!o.number.test(u.type)||f&&!u.sign?p="":(p=f?"+":"-",r=r.toString().replace(o.sign,"")),s=u.pad_char?"0"===u.pad_char?"0":u.pad_char.charAt(1):" ",l=u.width-(p+r).length,c=u.width&&l>0?s.repeat(l):"",y+=u.align?p+r+c:"0"===s?p+c+r:c+p+r)}return y}(function(t){if(u[t])return u[t];for(var e,r=t,n=[],i=0;r;){if(null!==(e=o.text.exec(r)))n.push(e[0]);else if(null!==(e=o.modulo.exec(r)))n.push("%");else{if(null===(e=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){i|=1;var a=[],c=e[2],s=[];if(null===(s=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(s[1]);""!==(c=c.substring(s[0].length));)if(null!==(s=o.key_access.exec(c)))a.push(s[1]);else{if(null===(s=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(s[1])}e[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return u[t]=n}(t),arguments)}function a(t,e){return i.apply(null,[t].concat(e||[]))}var u=Object.create(null);e.sprintf=i,e.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(n=function(){return{sprintf:i,vsprintf:a}}.call(e,r,e,t))||(t.exports=n))}()},function(t,e,r){var n=r(5)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){t.exports=function(t,e){var r,n,o=0;function i(){var i,a,u=r,c=arguments.length;t:for(;u;){if(u.args.length===arguments.length){for(a=0;a=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e){return t.exports=r="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},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";function n(t){return(n="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})(t)}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e);if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===n(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}r.r(e);var u,c,s,l,f=r(2),p=r.n(f);r(0),p()(console.error),u={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},c=["(","?"],s={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var h={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};var d={contextDelimiter:"",onMissingKey:null};function y(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},d)this.options[r]=void 0!==e&&r in e?e[r]:d[r]}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e=0||u[o]3&&void 0!==arguments[3]?arguments[3]:10,a=t[e];if(w(r)&&x(n))if("function"==typeof o)if("number"==typeof i){var u={callback:o,priority:i,namespace:n};if(a[r]){var c,s=a[r].handlers;for(c=s.length;c>0&&!(i>=s[c-1].priority);c--);c===s.length?s[c]=u:s.splice(c,0,u),a.__current.forEach((function(t){t.name===r&&t.currentIndex>=c&&t.currentIndex++}))}else a[r]={handlers:[u],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,n,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},O=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,o){var i=t[e];if(w(n)&&(r||x(o))){if(!i[n])return 0;var a=0;if(r)a=i[n].handlers.length,i[n]={runs:i[n].runs,handlers:[]};else for(var u=i[n].handlers,c=function(t){u[t].namespace===o&&(u.splice(t,1),a++,i.__current.forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},s=u.length-1;s>=0;s--)c(s);return"hookRemoved"!==n&&t.doAction("hookRemoved",n,o),a}}},j=function(t,e){return function(r,n){var o=t[e];return void 0!==n?r in o&&o[r].handlers.some((function(t){return t.namespace===n})):r in o}};function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]&&arguments[2];return function(n){var o=t[e];o[n]||(o[n]={handlers:[],runs:0}),o[n].runs++;for(var i=o[n].handlers,a=arguments.length,u=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";n.data[e]=g(g(g({},m),n.data[e]),t),n.data[e][""]=g(g({},m[""]),n.data[e][""])},u=function(t,e){a(t,e),i()},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return n.data[t]||a(void 0,t),n.dcnpgettext(t,e,r,o,i)},s=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},l=function(t,e,n){var o=c(n,e,t);return r?(o=r.applyFilters("i18n.gettext_with_context",o,t,e,n),r.applyFilters("i18n.gettext_with_context_"+s(n),o,t,e,n)):o};if(r){var f=function(t){b.test(t)&&i()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[t]},setLocaleData:u,resetLocaleData:function(t,e){n.data={},n.pluralForms={},u(t,e)},subscribe:function(t){return o.add(t),function(){return o.delete(t)}},__:function(t,e){var n=c(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+s(e),n,t,e)):n},_x:l,_n:function(t,e,n,o){var i=c(o,void 0,t,e,n);return r?(i=r.applyFilters("i18n.ngettext",i,t,e,n,o),r.applyFilters("i18n.ngettext_"+s(o),i,t,e,n,o)):i},_nx:function(t,e,n,o,i){var a=c(i,o,t,e,n);return r?(a=r.applyFilters("i18n.ngettext_with_context",a,t,e,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+s(i),a,t,e,n,o,i)):a},isRTL:function(){return"rtl"===l("ltr","text direction")},hasTranslation:function(t,e,o){var i,a,u=e?e+""+t:t,c=!(null===(i=n.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[u]);return r&&(c=r.applyFilters("i18n.has_translation",c,t,e,o),c=r.applyFilters("i18n.has_translation_"+s(o),c,t,e,o)),c}}}(0,0,F)),L=(T.getLocaleData.bind(T),T.setLocaleData.bind(T),T.resetLocaleData.bind(T),T.subscribe.bind(T),T.__.bind(T));T._x.bind(T),T._n.bind(T),T._nx.bind(T),T.isRTL.bind(T),T.hasTranslation.bind(T);var I=function(t,e){var r,n,o=t.path;return"string"==typeof t.namespace&&"string"==typeof t.endpoint&&(r=t.namespace.replace(/^\/|\/$/g,""),o=(n=t.endpoint.replace(/^\//,""))?r+"/"+n:r),delete t.namespace,delete t.endpoint,e(i({},t,{path:o}))},M=r(1),N=r.n(M);function D(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function G(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(!e||!Object.keys(e).length)return t;var r=t,n=t.indexOf("?");return-1!==n&&(e=Object.assign(U(t),e),r=r.substr(0,n)),r+"?"+function(t){for(var e,r="",n=Object.entries(t);e=n.shift();){var o=C(e,2),i=o[0],a=o[1];if(Array.isArray(a)||a&&a.constructor===Object){var u,c=z(Object.entries(a).reverse());try{for(c.s();!(u=c.n()).done;){var s=C(u.value,2),l=s[0],f=s[1];n.unshift(["".concat(i,"[").concat(l,"]"),f])}}catch(t){c.e(t)}finally{c.f()}}else void 0!==a&&(null===a&&(a=""),r+="&"+[i,a].map(encodeURIComponent).join("="))}return r.substr(1)}(e)}var W=function(t){return t.json?t.json():Promise.reject(t)},Z=function(t){return function(t){if(!t)return{};var e=t.match(/<([^>]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},B=function(t){var e=t.path&&-1!==t.path.indexOf("per_page=-1"),r=t.url&&-1!==t.url.indexOf("per_page=-1");return e||r},H=function(){var t,e=(t=N.a.mark((function t(e,r){var n,o,u,c,s,l;return N.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",r(e));case 2:if(B(e)){t.next=4;break}return t.abrupt("return",r(e));case 4:return t.next=6,r(i({},(p={per_page:100},h=(f=e).path,d=f.url,i({},a(f,["path","url"]),{url:d&&X(d,p),path:h&&X(h,p)})),{parse:!1}));case 6:return n=t.sent,t.next=9,W(n);case 9:if(o=t.sent,Array.isArray(o)){t.next=12;break}return t.abrupt("return",o);case 12:if(u=Z(n)){t.next=15;break}return t.abrupt("return",o);case 15:c=[].concat(o);case 16:if(!u){t.next=27;break}return t.next=19,r(i({},e,{path:void 0,url:u,parse:!1}));case 19:return s=t.sent,t.next=22,W(s);case 22:l=t.sent,c=c.concat(l),u=Z(s),t.next=16;break;case 27:return t.abrupt("return",c);case 28:case"end":return t.stop()}var f,p,h,d}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,u,"next",t)}function u(t){D(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),J=new Set(["PATCH","PUT","DELETE"]);function K(t,e){return void 0!==function(t,e){return U(t)[e]}(t,e)}var Y={Accept:"application/json, */*;q=0.1"},q={credentials:"include"},Q=[function(t,e){return"string"!=typeof t.url||K(t.url,"_locale")||(t.url=X(t.url,{_locale:"user"})),"string"!=typeof t.path||K(t.path,"_locale")||(t.path=X(t.path,{_locale:"user"})),e(t,e)},I,function(t,e){var r=t.method,n=void 0===r?"GET":r;return J.has(n.toUpperCase())&&(t=i({},t,{headers:i({},t.headers,{"X-HTTP-Method-Override":n,"Content-Type":"application/json"}),method:"POST"})),e(t,e)},H],V=function(t){if(t.status>=200&&t.status<300)return t;throw t},tt=function(t){var e=t.url,r=t.path,n=t.data,o=t.parse,u=void 0===o||o,c=a(t,["url","path","data","parse"]),s=t.body,l=t.headers;return l=i({},Y,l),n&&(s=JSON.stringify(n),l["Content-Type"]="application/json"),window.fetch(e||r,i({},q,c,{body:s,headers:l})).then(V).then((function(t){return u?204===t.status?null:t.json?t.json():Promise.reject(t):t})).catch((function(t){if(!u)throw t;var e={code:"invalid_json",message:L("The response is not a valid JSON response.")};if(!t||!t.json)throw e;return t.json().catch((function(){throw e})).then((function(t){var e={code:"unknown_error",message:L("An unknown error occurred.")};throw t||e}))}))};function et(t){var e=[].concat(Q,[tt]);return new Promise((function(r,n){(function t(r){return function(n){var o=e[r];return r===e.length-1?o(n):o(n,t(r+1))}})(0)(t).then(r).catch((function(e){if("rest_cookie_invalid_nonce"!==e.code)return n(e);window.fetch(et.nonceEndpoint).then(V).then((function(t){return t.text()})).then((function(e){et.nonceMiddleware.nonce=e,et(t).then(r).catch(n)})).catch(n)}))}))}et.use=function(t){Q.unshift(t)},et.setFetchHandler=function(t){tt=t},et.createNonceMiddleware=function(t){function e(t,r){var n=t.headers,o=void 0===n?{}:n;for(var a in o)if("x-wp-nonce"===a.toLowerCase())return r(t);return r(i({},t,{headers:i({},o,{"X-WP-Nonce":e.nonce})}))}return e.nonce=t,e},et.createPreloadingMiddleware=function(t){return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var i=e.method||"GET",a=function(t){var e=t.split("?"),r=e[1],n=e[0];return r?n+"?"+r.split("&").map((function(t){return t.split("=")})).sort((function(t,e){return t[0].localeCompare(e[0])})).map((function(t){return t.join("=")})).join("&"):n}(e.path);if(o&&"GET"===i&&t[a])return Promise.resolve(t[a].body);if("OPTIONS"===i&&t[i]&&t[i][a])return Promise.resolve(t[i][a])}return r(e)}},et.createRootURLMiddleware=function(t){return function(e,r){return I(e,(function(e){var n,o=e.url,a=e.path;return"string"==typeof a&&(n=t,-1!==t.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),r(i({},e,{url:o}))}))}},et.fetchAllMiddleware=H;var rt=et,nt=window.rtTranscoderBlockEditorSupport;wp.hooks.addFilter("editor.BlockEdit","rt-transcoder-amp/set-media-attributes",(function(t){return function(e){var r=e.attributes,n="amp/amp-story-page"===e.name,o="core/video"===e.name,i=n?r.mediaId:r.id;return void 0!==i&&(void 0===r.poster?n&&void 0!==r.mediaType&&"video"===r.mediaType&&!r.mediaUrl.endsWith("mp4")?e.setAttributes({poster:nt.amp_story_fallback_poster}):o&&void 0!==r.src&&0!==r.src.indexOf("blob:")&&!r.src.endsWith("mp4")&&e.setAttributes({poster:nt.amp_video_fallback_poster}):r.poster.endsWith("-fallback-poster.png")&&rt({path:"/wp-json/transcoder/v1/amp-media / "+i}).then((function(t){!1!==t&&null!==t&&t.poster.length&&t.transcodedMedia.length&&(n&&void 0!==r.mediaType&&"video"===r.mediaType?e.setAttributes({poster:t.poster,mediaUrl:t.transcodedMedia}):o&&e.setAttributes({poster:t.poster,src:t.transcodedMedia}))}))),wp.element.createElement(t,e)}}))}]); \ No newline at end of file +(()=>{var e={604:(e,t,r)=>{var n;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var r,n,s,a,c,l,u,p,d,f=1,h=e.length,m="";for(n=0;n=0),a.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,a.width?parseInt(a.width):0);break;case"e":r=a.precision?parseFloat(r).toExponential(a.precision):parseFloat(r).toExponential();break;case"f":r=a.precision?parseFloat(r).toFixed(a.precision):parseFloat(r);break;case"g":r=a.precision?String(Number(r.toPrecision(a.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=a.precision?r.substring(0,a.precision):r;break;case"t":r=String(!!r),r=a.precision?r.substring(0,a.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=a.precision?r.substring(0,a.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=a.precision?r.substring(0,a.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(a.type)?m+=r:(!o.number.test(a.type)||p&&!a.sign?d="":(d=p?"+":"-",r=r.toString().replace(o.sign,"")),l=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(d+r).length,c=a.width&&u>0?l.repeat(u):"",m+=a.align?d+r+c:"0"===l?d+c+r:c+d+r)}return m}(function(e){if(a[e])return a[e];var t,r=e,n=[],i=0;for(;r;){if(null!==(t=o.text.exec(r)))n.push(t[0]);else if(null!==(t=o.modulo.exec(r)))n.push("%");else{if(null===(t=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],c=t[2],l=[];if(null===(l=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(c=c.substring(l[0].length));)if(null!==(l=o.key_access.exec(c)))s.push(l[1]);else{if(null===(l=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return a[e]=n}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var a=Object.create(null);"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(n=function(){return{sprintf:i,vsprintf:s}}.call(t,r,t,e))||(e.exports=n))}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(()=>{"use strict";r(604);!function(e,t){var r,n,o=0;function i(){var i,s,a=r,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],n={")":["("],":":["?","?:"]},o=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var i={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function s(r){var s=function(r){for(var i,s,a,c,l=[],u=[];i=r.match(o);){for(s=i[0],(a=r.substr(0,i.index).trim())&&l.push(a);c=u.pop();){if(n[s]){if(n[s][0]===c){s=n[s][1]||s;break}}else if(t.indexOf(c)>=0||e[c]1===e?0:1},u=/^i18n\.(n?gettext|has_translation)(_|$)/;const p=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const d=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const f=function(e,t){return function(r,n,o,i=10){const s=e[t];if(!d(r))return;if(!p(n))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const a={callback:o,priority:i,namespace:n};if(s[r]){const e=s[r].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=a:e.splice(t,0,a),s.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex++}))}else s[r]={handlers:[a],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,o,i)}};const h=function(e,t,r=!1){return function(n,o){const i=e[t];if(!d(n))return;if(!r&&!p(o))return;if(!i[n])return 0;let s=0;if(r)s=i[n].handlers.length,i[n]={runs:i[n].runs,handlers:[]};else{const e=i[n].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),s++,i.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==n&&e.doAction("hookRemoved",n,o),s}};const m=function(e,t){return function(r,n){const o=e[t];return void 0!==n?r in o&&o[r].handlers.some((e=>e.namespace===n)):r in o}};const y=function(e,t,r,n){return function(o,...i){const s=e[t];s[o]||(s[o]={handlers:[],runs:0}),s[o].runs++;const a=s[o].handlers;if(!a||!a.length)return r?i[0]:void 0;const c={name:o,currentIndex:0};return(n?async function(){try{s.__current.add(c);let e=r?i[0]:void 0;for(;c.currentIndex0:Array.from(n.__current).some((e=>e.name===r))}};const v=function(e,t){return function(r){const n=e[t];if(d(r))return n[r]&&n[r].runs?n[r].runs:0}};class b{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=f(this,"actions"),this.addFilter=f(this,"filters"),this.removeAction=h(this,"actions"),this.removeFilter=h(this,"filters"),this.hasAction=m(this,"actions"),this.hasFilter=m(this,"filters"),this.removeAllActions=h(this,"actions",!0),this.removeAllFilters=h(this,"filters",!0),this.doAction=y(this,"actions",!1,!1),this.doActionAsync=y(this,"actions",!1,!0),this.applyFilters=y(this,"filters",!0,!1),this.applyFiltersAsync=y(this,"filters",!0,!0),this.currentAction=g(this,"actions"),this.currentFilter=g(this,"filters"),this.doingAction=_(this,"actions"),this.doingFilter=_(this,"filters"),this.didAction=v(this,"actions"),this.didFilter=v(this,"filters")}}const w=function(){return new b}(),{addAction:x,addFilter:A,removeAction:k,removeFilter:F,hasAction:j,hasFilter:O,removeAllActions:T,removeAllFilters:S,doAction:E,doActionAsync:I,applyFilters:P,applyFiltersAsync:C,currentAction:L,currentFilter:R,doingAction:M,doingFilter:N,didAction:U,didFilter:z,actions:D,filters:$}=w,J=((e,t,r)=>{const n=new c({}),o=new Set,i=()=>{o.forEach((e=>e()))},s=(e,t="default")=>{n.data[t]={...n.data[t],...e},n.data[t][""]={...l,...n.data[t]?.[""]},delete n.pluralForms[t]},a=(e,t)=>{s(e,t),i()},p=(e="default",t,r,o,i)=>(n.data[e]||s(void 0,e),n.dcnpgettext(e,t,r,o,i)),d=(e="default")=>e,f=(e,t,n)=>{let o=p(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+d(n),o,e,t,n)):o};if(e&&a(e,t),r){const e=e=>{u.test(e)&&i()};r.addAction("hookAdded","core/i18n",e),r.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>n.data[e],setLocaleData:a,addLocaleData:(e,t="default")=>{n.data[t]={...n.data[t],...e,"":{...l,...n.data[t]?.[""],...e?.[""]}},delete n.pluralForms[t],i()},resetLocaleData:(e,t)=>{n.data={},n.pluralForms={},a(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let n=p(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+d(t),n,e,t)):n},_x:f,_n:(e,t,n,o)=>{let i=p(o,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,o),r.applyFilters("i18n.ngettext_"+d(o),i,e,t,n,o)):i},_nx:(e,t,n,o,i)=>{let s=p(i,o,e,t,n);return r?(s=r.applyFilters("i18n.ngettext_with_context",s,e,t,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+d(i),s,e,t,n,o,i)):s},isRTL:()=>"rtl"===f("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let s=!!n.data?.[null!=o?o:"default"]?.[i];return r&&(s=r.applyFilters("i18n.has_translation",s,e,t,o),s=r.applyFilters("i18n.has_translation_"+d(o),s,e,t,o)),s}}})(void 0,void 0,w),K=(J.getLocaleData.bind(J),J.setLocaleData.bind(J),J.resetLocaleData.bind(J),J.subscribe.bind(J),J.__.bind(J));J._x.bind(J),J._n.bind(J),J._nx.bind(J),J.isRTL.bind(J),J.hasTranslation.bind(J);const X=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},W=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})},Z=e=>(t,r)=>W(t,(t=>{let n,o=t.url,i=t.path;return"string"==typeof i&&(n=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(i=i.replace("?","&")),o=n+i),r({...t,url:o})}));function B(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function G(e){try{return decodeURIComponent(e)}catch(t){return e}}function H(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(G);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i{"link"===t.toLowerCase()&&(e.headers[t]=r.replace(/<([^>]+)>/,((e,t)=>`<${encodeURI(t)}>`)))})),Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}}const V=function(e){const t=Object.fromEntries(Object.entries(e).map((([e,t])=>[B(e),t])));return(e,r)=>{const{parse:n=!0}=e;let o=e.path;if(!o&&e.url){const{rest_route:t,...r}=H(e.url);"string"==typeof t&&(o=Y(t,r))}if("string"!=typeof o)return r(e);const i=e.method||"GET",s=B(o);if("GET"===i&&t[s]){const e=t[s];return delete t[s],Q(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][s]){const e=t[i][s];return delete t[i][s],Q(e,!!n)}return r(e)}},ee=({path:e,url:t,...r},n)=>({...r,url:t&&Y(t,n),path:e&&Y(e,n)}),te=e=>e.json?e.json():Promise.reject(e),re=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},ne=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await ve({...ee(e,{per_page:100}),parse:!1}),n=await te(r);if(!Array.isArray(n))return n;let o=re(r);if(!o)return n;let i=[].concat(n);for(;o;){const t=await ve({...e,path:void 0,url:o,parse:!1}),r=await te(t);i=i.concat(r),o=re(t)}return i},oe=new Set(["PATCH","PUT","DELETE"]),ie="GET";function se(e,t){return H(e)[t]}function ae(e,t){return void 0!==se(e,t)}const ce=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch((e=>le(e,t)));function le(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:K("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:K("An unknown error occurred.")};throw e||t}))}const ue=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const n=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>r<5?n(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{if(!t.headers)return Promise.reject(t);const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:K("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):le(t,e.parse)})).then((t=>ce(t,e.parse)))};function pe(e,...t){const r=e.indexOf("?");if(-1===r)return e;const n=H(e),o=e.substr(0,r);t.forEach((e=>delete n[e]));const i=q(n);return i?o+"?"+i:o}const de=e=>(t,r)=>{if("string"==typeof t.url){const r=se(t.url,"wp_theme_preview");void 0===r?t.url=Y(t.url,{wp_theme_preview:e}):""===r&&(t.url=pe(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const r=se(t.path,"wp_theme_preview");void 0===r?t.path=Y(t.path,{wp_theme_preview:e}):""===r&&(t.path=pe(t.path,"wp_theme_preview"))}return r(t)},fe={Accept:"application/json, */*;q=0.1"},he={credentials:"include"},me=[(e,t)=>("string"!=typeof e.url||ae(e.url,"_locale")||(e.url=Y(e.url,{_locale:"user"})),"string"!=typeof e.path||ae(e.path,"_locale")||(e.path=Y(e.path,{_locale:"user"})),t(e)),W,(e,t)=>{const{method:r=ie}=e;return oe.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},ne];const ye=e=>{if(e.status>=200&&e.status<300)return e;throw e};let ge=e=>{const{url:t,path:r,data:n,parse:o=!0,...i}=e;let{body:s,headers:a}=e;a={...fe,...a},n&&(s=JSON.stringify(n),a["Content-Type"]="application/json");return window.fetch(t||r||window.location.href,{...he,...i,body:s,headers:a}).then((e=>Promise.resolve(e).then(ye).catch((e=>le(e,o))).then((e=>ce(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:K("You are probably offline.")}}))};function _e(e){return me.reduceRight(((e,t)=>r=>t(r,e)),ge)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(_e.nonceEndpoint).then(ye).then((e=>e.text())).then((t=>(_e.nonceMiddleware.nonce=t,_e(e))))))}_e.use=function(e){me.unshift(e)},_e.setFetchHandler=function(e){ge=e},_e.createNonceMiddleware=X,_e.createPreloadingMiddleware=V,_e.createRootURLMiddleware=Z,_e.fetchAllMiddleware=ne,_e.mediaUploadMiddleware=ue,_e.createThemePreviewMiddleware=de;const ve=_e;var be=window.rtTranscoderBlockEditorSupport;wp.hooks.addFilter("editor.BlockEdit","rt-transcoder-amp/set-media-attributes",(function(e){return function(t){var r=t.attributes,n="amp/amp-story-page"===t.name,o="core/video"===t.name,i=n?r.mediaId:r.id;if(void 0!==i)if(void 0===r.poster)n&&void 0!==r.mediaType&&"video"===r.mediaType&&!r.mediaUrl.endsWith("mp4")?t.setAttributes({poster:be.amp_story_fallback_poster}):o&&void 0!==r.src&&0!==r.src.indexOf("blob:")&&!r.src.endsWith("mp4")&&t.setAttributes({poster:be.amp_video_fallback_poster});else if(r.poster.endsWith("-fallback-poster.png")){ve({path:"".concat("/wp-json/transcoder/v1/amp-media"," / ").concat(i)}).then((function(e){!1!==e&&null!==e&&e.poster.length&&e.transcodedMedia.length&&(n&&void 0!==r.mediaType&&"video"===r.mediaType?t.setAttributes({poster:e.poster,mediaUrl:e.transcodedMedia}):o&&t.setAttributes({poster:e.poster,src:e.transcodedMedia}))}))}return wp.element.createElement(e,t)}}))})()})(); \ No newline at end of file diff --git a/languages/transcoder.pot b/languages/transcoder.pot index 8b6433de..8d92031b 100644 --- a/languages/transcoder.pot +++ b/languages/transcoder.pot @@ -1,14 +1,14 @@ -# Copyright (C) 2024 +# Copyright (C) 2025 # This file is distributed under the same license as the package. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://community.rtcamp.com/\n" -"POT-Creation-Date: 2024-02-27 06:14:22+00:00\n" +"POT-Creation-Date: 2025-05-30 17:03:33+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n" "Last-Translator: Transcoder \n" "Language-Team: Transcoder \n" "Language: en\n" @@ -396,47 +396,47 @@ msgstr "" msgid "Video Thumbnail:" msgstr "" -#: admin/rt-transcoder-admin.php:201 +#: admin/rt-transcoder-admin.php:208 msgid "Are you sure you want to disable the transcoding service?" msgstr "" -#: admin/rt-transcoder-admin.php:202 +#: admin/rt-transcoder-admin.php:209 msgid "Are you sure you want to enable the transcoding service?" msgstr "" -#: admin/rt-transcoder-admin.php:203 +#: admin/rt-transcoder-admin.php:210 msgid "Something went wrong. Please " msgstr "" -#: admin/rt-transcoder-admin.php:203 +#: admin/rt-transcoder-admin.php:210 msgid "refresh" msgstr "" -#: admin/rt-transcoder-admin.php:203 +#: admin/rt-transcoder-admin.php:210 msgid " page." msgstr "" -#: admin/rt-transcoder-admin.php:204 +#: admin/rt-transcoder-admin.php:211 msgid "Please enter the license key." msgstr "" -#: admin/rt-transcoder-admin.php:232 admin/rt-transcoder-handler.php:656 +#: admin/rt-transcoder-admin.php:239 admin/rt-transcoder-handler.php:682 msgid "Current Plan" msgstr "" -#: admin/rt-transcoder-admin.php:425 +#: admin/rt-transcoder-admin.php:432 msgid "" "rtMedia encoding service has been disabled because you are using Transcoder " "plugin." msgstr "" -#: admin/rt-transcoder-admin.php:461 -#. translators: Markup to show the info about plugin subscription if no API key -#. is there. +#: admin/rt-transcoder-admin.php:595 +#. translators: %s: GoDAM pricing link msgid "" -"

IMPORTANT! The Transcoder plugin " -"works with active transcoding services subscription plan. Click here to subscribe or enable.

" +"Transcoding is no longer available through " +"Transcoder. For continued media processing, please subscribe to " +"our GoDAM services." msgstr "" #: admin/rt-transcoder-functions.php:87 @@ -471,197 +471,206 @@ msgid "" "current status or refresh the page after some time. " msgstr "" -#: admin/rt-transcoder-handler.php:411 +#: admin/rt-transcoder-handler.php:414 msgid "Transcoding: Nearing quota limit." msgstr "" -#: admin/rt-transcoder-handler.php:412 +#: admin/rt-transcoder-handler.php:415 msgid "You are nearing the quota limit for your transcoding service." msgstr "" -#: admin/rt-transcoder-handler.php:412 admin/rt-transcoder-handler.php:443 +#: admin/rt-transcoder-handler.php:415 admin/rt-transcoder-handler.php:446 msgid "Following are the details:" msgstr "" -#: admin/rt-transcoder-handler.php:412 admin/rt-transcoder-handler.php:443 -#: admin/rt-transcoder-handler.php:669 +#: admin/rt-transcoder-handler.php:415 admin/rt-transcoder-handler.php:446 +#: admin/rt-transcoder-handler.php:695 msgid "Remaining" msgstr "" -#: admin/rt-transcoder-handler.php:412 admin/rt-transcoder-handler.php:443 +#: admin/rt-transcoder-handler.php:415 admin/rt-transcoder-handler.php:446 msgid "Total:" msgstr "" -#: admin/rt-transcoder-handler.php:442 +#: admin/rt-transcoder-handler.php:445 msgid "Transcoding: Usage quota over." msgstr "" -#: admin/rt-transcoder-handler.php:443 +#: admin/rt-transcoder-handler.php:446 msgid "Your usage quota is over. Upgrade your plan" msgstr "" -#: admin/rt-transcoder-handler.php:443 +#: admin/rt-transcoder-handler.php:446 msgid "Used:" msgstr "" -#: admin/rt-transcoder-handler.php:592 -msgid "You have successfully subscribed." +#: admin/rt-transcoder-handler.php:599 +#. translators: %s is the GoDAM plugin link +msgid "" +"You have successfully subscribed. However, transcoding via transcoder has " +"been discontinued. Please use %s for continued transcoding services." msgstr "" -#: admin/rt-transcoder-handler.php:614 -msgid "This license key is invalid." +#: admin/rt-transcoder-handler.php:630 +msgid "" +"This license key is invalid. Transcoding is now supported via our %s " +"services." msgstr "" -#: admin/rt-transcoder-handler.php:629 +#: admin/rt-transcoder-handler.php:655 msgid "Transcoding service can not be activated on the localhost" msgstr "" -#: admin/rt-transcoder-handler.php:656 +#: admin/rt-transcoder-handler.php:682 msgid "Unsubscribed" msgstr "" -#: admin/rt-transcoder-handler.php:662 +#: admin/rt-transcoder-handler.php:688 msgid "Expires On" msgstr "" -#: admin/rt-transcoder-handler.php:666 +#: admin/rt-transcoder-handler.php:692 msgid "Used" msgstr "" -#: admin/rt-transcoder-handler.php:677 +#: admin/rt-transcoder-handler.php:703 msgid "Total" msgstr "" -#: admin/rt-transcoder-handler.php:702 +#: admin/rt-transcoder-handler.php:728 msgid "Usage will automatically reset at the end of every month." msgstr "" -#: admin/rt-transcoder-handler.php:705 +#: admin/rt-transcoder-handler.php:731 msgid "Upgrade for more bandwidth." msgstr "" -#: admin/rt-transcoder-handler.php:709 +#: admin/rt-transcoder-handler.php:735 msgid "Your usage limit has been reached. Upgrade your plan." msgstr "" -#: admin/rt-transcoder-handler.php:713 +#: admin/rt-transcoder-handler.php:739 msgid "Your plan has expired. Please consider upgrading if you need more bandwidth." msgstr "" -#: admin/rt-transcoder-handler.php:716 +#: admin/rt-transcoder-handler.php:742 msgid "Your API key is not valid or is expired." msgstr "" -#: admin/rt-transcoder-handler.php:719 +#: admin/rt-transcoder-handler.php:745 msgid "Currently, You are not subscribed to transcoding service. Please subscribe." msgstr "" -#: admin/rt-transcoder-handler.php:725 +#: admin/rt-transcoder-handler.php:751 msgid "Transcoding usage this month" msgstr "" -#: admin/rt-transcoder-handler.php:792 +#: admin/rt-transcoder-handler.php:818 msgid "" "Use transcoded_thumb_filename filter to modify video thumbnail name and " "transcoded_video_filename filter to modify video file name." msgstr "" -#: admin/rt-transcoder-handler.php:996 +#: admin/rt-transcoder-handler.php:1022 msgid "Could not read file." msgstr "" -#: admin/rt-transcoder-handler.php:1009 admin/rt-transcoder-handler.php:1163 -#: admin/rt-transcoder-handler.php:1232 +#: admin/rt-transcoder-handler.php:1035 admin/rt-transcoder-handler.php:1189 +#: admin/rt-transcoder-handler.php:1258 msgid "Transcoding: Download Failed" msgstr "" -#: admin/rt-transcoder-handler.php:1010 admin/rt-transcoder-handler.php:1164 -#: admin/rt-transcoder-handler.php:1233 admin/rt-transcoder-handler.php:1407 -#: admin/rt-transcoder-handler.php:1410 +#: admin/rt-transcoder-handler.php:1036 admin/rt-transcoder-handler.php:1190 +#: admin/rt-transcoder-handler.php:1259 admin/rt-transcoder-handler.php:1433 +#: admin/rt-transcoder-handler.php:1436 msgid "Media" msgstr "" -#: admin/rt-transcoder-handler.php:1010 admin/rt-transcoder-handler.php:1164 +#: admin/rt-transcoder-handler.php:1036 admin/rt-transcoder-handler.php:1190 msgid " was successfully encoded but there was an error while downloading:" msgstr "" -#: admin/rt-transcoder-handler.php:1010 +#: admin/rt-transcoder-handler.php:1036 msgid "You can " msgstr "" -#: admin/rt-transcoder-handler.php:1010 +#: admin/rt-transcoder-handler.php:1036 msgid "retry the download" msgstr "" -#: admin/rt-transcoder-handler.php:1023 admin/rt-transcoder-handler.php:1177 -#: admin/rt-transcoder-handler.php:1246 +#: admin/rt-transcoder-handler.php:1049 admin/rt-transcoder-handler.php:1203 +#: admin/rt-transcoder-handler.php:1272 msgid "Done" msgstr "" -#: admin/rt-transcoder-handler.php:1125 +#: admin/rt-transcoder-handler.php:1151 msgid "Something went wrong. Invalid post request." msgstr "" -#: admin/rt-transcoder-handler.php:1157 admin/rt-transcoder-handler.php:1226 +#: admin/rt-transcoder-handler.php:1183 admin/rt-transcoder-handler.php:1252 msgid "" "Something went wrong. The required attachment id does not exists. It must " "have been deleted." msgstr "" -#: admin/rt-transcoder-handler.php:1233 +#: admin/rt-transcoder-handler.php:1259 msgid " was successfully transcoded but there was an error while downloading:" msgstr "" -#: admin/rt-transcoder-handler.php:1272 +#: admin/rt-transcoder-handler.php:1298 msgid "Transcoding disabled successfully." msgstr "" -#: admin/rt-transcoder-handler.php:1284 +#: admin/rt-transcoder-handler.php:1310 msgid "Transcoding enabled successfully." msgstr "" -#: admin/rt-transcoder-handler.php:1403 +#: admin/rt-transcoder-handler.php:1429 msgid "Transcoding: Something went wrong." msgstr "" -#: admin/rt-transcoder-handler.php:1406 +#: admin/rt-transcoder-handler.php:1432 msgid " There was unexpected error occurred while transcoding this following media." msgstr "" -#: admin/rt-transcoder-handler.php:1411 +#: admin/rt-transcoder-handler.php:1437 msgid " there was unexpected error occurred while transcoding this media." msgstr "" -#: admin/rt-transcoder-handler.php:1446 +#: admin/rt-transcoder-handler.php:1472 msgid "Something went wrong. Please try again!" msgstr "" -#: admin/rt-transcoder-handler.php:1464 admin/rt-transcoder-handler.php:1500 +#: admin/rt-transcoder-handler.php:1490 admin/rt-transcoder-handler.php:1526 msgid "Your file is transcoded successfully. Please refresh the page." msgstr "" -#: admin/rt-transcoder-handler.php:1495 +#: admin/rt-transcoder-handler.php:1521 msgid "" "Looks like the server is taking too long to respond, Please try again in " "sometime." msgstr "" -#: admin/rt-transcoder-handler.php:1496 +#: admin/rt-transcoder-handler.php:1522 msgid "Unfortunately, Transcoder failed to transcode this file." msgstr "" -#: admin/rt-transcoder-handler.php:1497 +#: admin/rt-transcoder-handler.php:1523 msgid "Your file is getting transcoded. Please refresh after some time." msgstr "" -#: admin/rt-transcoder-handler.php:1498 +#: admin/rt-transcoder-handler.php:1524 msgid "This file is still in the queue. Please refresh after some time." msgstr "" -#: admin/rt-transcoder-handler.php:1499 +#: admin/rt-transcoder-handler.php:1525 msgid "Your server should be ready to receive the transcoded file." msgstr "" +#: admin/rt-transcoder-handler.php:1546 +msgid "Transcoding through Transcoder is disabled. Please install GoDAM" +msgstr "" + #: rt-transcoder.php:83 msgid "Settings" msgstr "" diff --git a/public-assets/js/build/transcoder.min.js b/public-assets/js/build/transcoder.min.js index 929ac14d..84ba8623 100644 --- a/public-assets/js/build/transcoder.min.js +++ b/public-assets/js/build/transcoder.min.js @@ -1 +1 @@ -!function(e){var t={};function r(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t){const r={};let i=!1,o=!1;!function(e){e(document).ready(()=>{e(document).ajaxComplete((r,i,o)=>{"undefined"!=typeof bp_template_pack&&"legacy"!==bp_template_pack&&bp_template_pack&&"function"==typeof get_parameter&&"activity_filter"===get_parameter("action",o.data)&&setTimeout(()=>{e("#activity-stream > .activity-list > li .media-type-video > .rtmedia-item-thumbnail video").each((r,i)=>{if(void 0!==(i=e(i)).attr("poster")&&i.attr("poster").length>0||void 0===i.attr("id")||!i.attr("id").length)return;const o=parseInt(i.attr("id").replace(/^\D+/g,""));t(o)}),d()},1e3)}),e(".rtmedia-container ul.rtmedia-list.rtmedia-list-media.rtm-gallery-list > li.rtmedia-list-item").each((r,i)=>{const o=(i=e(i)).find("a.rtmedia-list-item-a > .rtmedia-item-thumbnail > img");o.length&&void 0!==o.attr("src")&&-1!==o.attr("src").search("video_thumb.png")&&t(parseInt(i.attr("id")))}),d(),"undefined"!=typeof rtMediaHook&&(rtMediaHook.register("rtmedia_js_file_added",e=>void 0===e||void 0===e[2]||-1===e[2].search("#rtmedia_uploader_filelist-activity-")||(i=!0,!0)),rtMediaHook.register("rtmedia_js_after_file_upload",e=>{if(void 0===e||void 0===e[1]||void 0===e[2])return!0;if("video"!==e[1].type.split("/")[0])return!0;const r=JSON.parse(e[2]);return!0===Array.isArray(r)&&void 0!==r[0]?(t(r[0]),!0===i&&(n(),i=!1),!0):void 0===r.media_id||(t(r.media_id),!0)}),rtMediaHook.register("rtmedia_js_after_files_uploaded",()=>(d(),!0)),rtMediaHook.register("rtmedia_js_after_activity_added",()=>(d(),!0)))});const t=e=>{void 0===r[e]&&(r[e]={})},n=()=>{if(!Object.entries(r).length)return;let t=[];for(const[e,i]of Object.entries(r))void 0!==e&&void 0!==i&&!1===l(i)&&t.push(e);t.length&&(t=t.join(),e.get(rtTranscoder.restURLPrefix+"/transcoder/v1/amp-rtmedia?media_ids="+t,e=>{a(e)}))},a=(e=!1)=>{if("object"==typeof e)for(const[t,i]of Object.entries(e)){if(void 0===t||void 0===i)continue;const e=parseInt(t);"invalid"!==i?!1!==l(i)&&(r[e]=i,s(e)):void 0!==r[e]&&delete r[e]}d()},d=()=>{!0!==o&&(o=!0,setTimeout(()=>{n(),o=!1},5e3))},s=t=>{if(void 0===r[t]||!l(r[t]))return;const i=e("li#"+t);if(i.length>0){const e=i.find("div.rtmedia-item-thumbnail > img");if(!e.length)return;return void e.attr("src",r[t].poster)}const o=e("video#rt_media_video_"+t);if(o.length>0)return void o.attr("poster",r[t].poster);const n=e("video#rt_media_video_"+t+"_from_mejs");n.length>0&&n.attr("poster",r[t].poster)},l=e=>void 0!==e.poster}(jQuery)}]); \ No newline at end of file +(()=>{const t={};let e=!1,i=!1;!function(r){r(document).ready((()=>{r(document).ajaxComplete(((t,e,i)=>{if("undefined"!=typeof bp_template_pack&&"legacy"!==bp_template_pack&&bp_template_pack&&"function"==typeof get_parameter){"activity_filter"===get_parameter("action",i.data)&&setTimeout((()=>{r("#activity-stream > .activity-list > li .media-type-video > .rtmedia-item-thumbnail video").each(((t,e)=>{if(void 0!==(e=r(e)).attr("poster")&&e.attr("poster").length>0||void 0===e.attr("id")||!e.attr("id").length)return;const i=parseInt(e.attr("id").replace(/^\D+/g,""));a(i)})),n()}),1e3)}})),r(".rtmedia-container ul.rtmedia-list.rtmedia-list-media.rtm-gallery-list > li.rtmedia-list-item").each(((t,e)=>{const i=(e=r(e)).find("a.rtmedia-list-item-a > .rtmedia-item-thumbnail > img");i.length&&void 0!==i.attr("src")&&-1!==i.attr("src").search("video_thumb.png")&&a(parseInt(e.attr("id")))})),n(),"undefined"!=typeof rtMediaHook&&(rtMediaHook.register("rtmedia_js_file_added",(t=>(void 0===t||void 0===t[2]||-1===t[2].search("#rtmedia_uploader_filelist-activity-")||(e=!0),!0))),rtMediaHook.register("rtmedia_js_after_file_upload",(t=>{if(void 0===t||void 0===t[1]||void 0===t[2])return!0;if("video"!==t[1].type.split("/")[0])return!0;const i=JSON.parse(t[2]);return!0===Array.isArray(i)&&void 0!==i[0]?(a(i[0]),!0===e&&(d(),e=!1),!0):void 0===i.media_id||(a(i.media_id),!0)})),rtMediaHook.register("rtmedia_js_after_files_uploaded",(()=>(n(),!0))),rtMediaHook.register("rtmedia_js_after_activity_added",(()=>(n(),!0))))}));const a=e=>{void 0===t[e]&&(t[e]={})},d=()=>{if(!Object.entries(t).length)return;let e=[];for(const[i,r]of Object.entries(t))void 0!==i&&void 0!==r&&!1===m(r)&&e.push(i);e.length&&(e=e.join(),r.get(rtTranscoder.restURLPrefix+"/transcoder/v1/amp-rtmedia?media_ids="+e,(t=>{o(t)})))},o=(e=!1)=>{if("object"==typeof e)for(const[i,r]of Object.entries(e)){if(void 0===i||void 0===r)continue;const e=parseInt(i);"invalid"!==r?!1!==m(r)&&(t[e]=r,s(e)):void 0!==t[e]&&delete t[e]}n()},n=()=>{!0!==i&&(i=!0,setTimeout((()=>{d(),i=!1}),5e3))},s=e=>{if(void 0===t[e]||!m(t[e]))return;const i=r("li#"+e);if(i.length>0){const r=i.find("div.rtmedia-item-thumbnail > img");if(!r.length)return;return void r.attr("src",t[e].poster)}const a=r("video#rt_media_video_"+e);if(a.length>0)return void a.attr("poster",t[e].poster);const d=r("video#rt_media_video_"+e+"_from_mejs");d.length>0&&d.attr("poster",t[e].poster)},m=t=>void 0!==t.poster}(jQuery)})(); \ No newline at end of file diff --git a/readme.txt b/readme.txt index 2c8d5c60..42beaae9 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: rtcamp, mangeshp, chandrapatel, manishsongirkar36, bhargavbhandari Tags: media, multimedia, audio, songs, music, video, ffmpeg, media-node, rtMedia, WordPress, kaltura, transcode, transcoder, encoding, encode Donate link: https://rtcamp.com/donate/ Requires at least: 4.1 -Tested up to: 6.8 -Stable tag: 1.3.9 +Tested up to: 6.8.1 +Stable tag: 1.4.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -63,6 +63,16 @@ Read [Documentation](https://rtmedia.io/docs/transcoder/?utm_source=readme&utm_m == Changelog == += 1.4.0 [May 30, 2025] + +* REMOVED + * Update to users - Discontinuing the Transcoder service and replacing with GoDAM. + +* ENHANCEMENTS + * Update admin notice for the GoDAM. + * Add notice for transcoding disabled on uploads page. + * Update messages for license activation. + = 1.3.9 [May 13, 2025] = * ENHANCEMENTS @@ -244,6 +254,9 @@ Initial release == Upgrade Notice == += 1.4.0 = +Update to users - Discontinuing the Transcoder service and replacing with GoDAM. + = 1.3.9 = Transcoder 1.3.9, with update admin notice to install new GoDAM plugin - with a powerful Digital Asset Management features along with video transcoding services. diff --git a/rt-transcoder.php b/rt-transcoder.php index 19b53105..45a22772 100644 --- a/rt-transcoder.php +++ b/rt-transcoder.php @@ -3,7 +3,7 @@ * Plugin Name: Transcoder * Plugin URI: https://rtmedia.io/transcoder/?utm_source=dashboard&utm_medium=plugin&utm_campaign=transcoder * Description: Audio & video transcoding services for ANY WordPress website. Allows you to convert audio/video files of any format to a web-friendly format (mp3/mp4). - * Version: 1.3.9 + * Version: 1.4.0 * Text Domain: transcoder * Author: rtCamp * Author URI: https://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=transcoder @@ -39,7 +39,7 @@ /** * The version of the plugin */ - define( 'RT_TRANSCODER_VERSION', '1.3.9' ); + define( 'RT_TRANSCODER_VERSION', '1.4.0' ); } if ( ! defined( 'RT_TRANSCODER_NO_MAIL' ) && defined( 'VIP_GO_APP_ENVIRONMENT' ) ) {