Plugin Directory

Changeset 3338450


Ignore:
Timestamp:
08/03/2025 12:30:26 PM (5 months ago)
Author:
nico23
Message:

Update plugin to version 10.6.13 with NextgenThemes WordPress Plugin Deploy

Location:
advanced-responsive-video-embedder
Files:
6 added
6 deleted
80 edited
1 copied

Legend:

Unmodified
Added
Removed
  • advanced-responsive-video-embedder/tags/10.6.13/advanced-responsive-video-embedder.php

    r3260040 r3338450  
    44 * Plugin URI:        https://nextgenthemes.com/plugins/arve-pro/
    55 * Description:       Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
    6  * Version:           10.6.12
     6 * Version:           10.6.13
    77 * Requires PHP:      7.4
    88 * Requires at least: 6.6
     
    2323namespace Nextgenthemes\ARVE;
    2424
    25 const VERSION                       = '10.6.12';
     25const VERSION                       = '10.6.13';
    2626const PRO_VERSION_REQUIRED          = '7.0.6';
    2727const PRIVACY_VERSION_REQUIRED      = '1.1.5';
  • advanced-responsive-video-embedder/tags/10.6.13/build/admin.asset.php

    r3252510 r3338450  
    1 <?php return array('dependencies' => array(), 'version' => 'a3e0a1e845b99db84cc6');
     1<?php return array('dependencies' => array(), 'version' => '54bbf33813e7cce5dc55');
  • advanced-responsive-video-embedder/tags/10.6.13/build/admin.js

    r3252510 r3338450  
    1 (()=>{"use strict";var e={625:(e,t,r)=>{r.d(t,{J:()=>a});const o=document,n=o.querySelectorAll.bind(o),i=window.jQuery;function d(){n(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach((e=>{c(e)})),n(".ast-oembed-container").forEach((e=>{e.querySelector(".arve")&&c(e)})),n(".arve-iframe, .arve-video").forEach((e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")}))}function a(){"html"!==o.documentElement.id&&(o.documentElement.id?o.body.id||(o.body.id="html"):o.documentElement.id="html")}function c(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var s;a(),s=()=>{d()},void 0!==o&&("complete"!==o.readyState&&"interactive"!==o.readyState?o.addEventListener("DOMContentLoaded",s):s()),i&&void 0!==i.fn.fitVids&&i(document).ready((()=>{setTimeout((()=>{d()}),1)}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r(625);const n=document,i=n.querySelector.bind(n);(0,o.J)(),function(){let e=0;const t=setInterval((()=>{e++;const r=i('iframe[name="editor-canvas"]'),o=r?.contentDocument?.body;o&&(clearInterval(t),o.setAttribute("id","html")),e>100&&clearInterval(t)}),300)}(),n.addEventListener("click",(e=>{const t=e?.target;if(t instanceof HTMLElement&&t.matches(".notice-dismiss")){e.preventDefault();const r=t.parentNode,o=r?.getAttribute("id");if(!r?.matches(".notice.is-dismissible")||!o)return;fetch(window.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=dnh_dismiss_notice&id="+o})}}))})();
     1(()=>{"use strict";var e={625:(e,t,r)=>{r.d(t,{J:()=>a});const o=document,n=o.querySelectorAll.bind(o),i=window.jQuery;function d(){n(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach(e=>{c(e)}),n(".ast-oembed-container").forEach(e=>{e.querySelector(".arve")&&c(e)}),n(".arve-iframe, .arve-video").forEach(e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")})}function a(){"html"!==o.documentElement.id&&(o.documentElement.id?o.body.id||(o.body.id="html"):o.documentElement.id="html")}function c(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var s;a(),s=()=>{d()},void 0!==o&&("complete"!==o.readyState&&"interactive"!==o.readyState?o.addEventListener("DOMContentLoaded",s):s()),i&&void 0!==i.fn.fitVids&&i(document).ready(()=>{setTimeout(()=>{d()},1)})}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r(625);const n=document,i=n.querySelector.bind(n);(0,o.J)(),function(){let e=0;const t=setInterval(()=>{e++;const r=i('iframe[name="editor-canvas"]'),o=r?.contentDocument?.body;o&&(clearInterval(t),o.setAttribute("id","html")),e>100&&clearInterval(t)},300)}(),n.addEventListener("click",e=>{const t=e?.target;if(t instanceof HTMLElement&&t.matches(".notice-dismiss")){e.preventDefault();const r=t.parentNode,o=r?.getAttribute("id");if(!r?.matches(".notice.is-dismissible")||!o)return;fetch(window.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=dnh_dismiss_notice&id="+o})}})})();
  • advanced-responsive-video-embedder/tags/10.6.13/build/block.asset.php

    r3252510 r3338450  
    1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'ea94d4a27312ab835dd1');
     1<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'c512e2a9642618eb4a45');
  • advanced-responsive-video-embedder/tags/10.6.13/build/block.js

    r3252510 r3338450  
    1 (()=>{var e={584:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"UU":"nextgenthemes/arve-block"}'),t=window.wp.i18n,n=window.wp.serverSideRender;var i=r.n(n);const o=window.wp.blockEditor,s=window.wp.components,a=window.wp.blocks;var l=r(584),c=r.n(l);const d=window.wp.element,u=window.ReactJSXRuntime,p=window.React,{UU:h}=e,{settings:m,options:b}=window.ArveBlockJsBefore;delete m?.align?.options?.center;const f=new DOMParser;function g(e){if(!e)throw new Error("no options");return Object.entries(e).map((([e,t])=>({label:t,value:e})))}function x(e,t,r){if("url"===e){const n=f.parseFromString(t,"text/html").querySelector("iframe");if(n&&n.getAttribute("src")){if(r.setAttributes({[e]:n.getAttribute("src")}),n.width&&n.height){const e=function(e,t){if(_(e)&&_(t)){const r=parseInt(e),n=parseInt(t),i=j(r,n);return r/i+":"+n/i}return e+":"+t}(n.width,n.height);"16:9"!==e&&r.setAttributes({aspect_ratio:e})}return}}r.setAttributes({[e]:t})}function v(e){const r=[],n={},i=(0,u.jsx)("p",{children:(0,t.__)("To edit the featured image, you need permission to upload media.")});let a;return Object.values(m).forEach((e=>{n[e.tab]=[]})),Object.entries(m).forEach((([r,l])=>{const c=e.attributes[r];n[l.tab].push((0,u.jsxs)(d.Fragment,{children:["select"===l.ui_element&&(0,u.jsx)(s.SelectControl,{value:c,label:l.label,help:w(l?.description),options:g(l.options),onChange:t=>e.setAttributes({[r]:""===t?void 0:t})}),"checkbox"===l.ui_element_type&&(0,u.jsx)(s.ToggleControl,{label:l.label,help:w(l?.description),checked:!!c,onChange:t=>e.setAttributes({[r]:t})},r),["text","number"].includes(l.ui_element_type)&&(0,u.jsx)(s.TextControl,{label:l.label,placeholder:l.placeholder,help:w(l?.description),value:c,onChange:t=>{x(r,t,e)}}),"image_upload"===l.ui&&(0,u.jsxs)(s.BaseControl,{className:"editor-post-featured-image",help:w(l?.description),children:[(0,u.jsx)(o.MediaUploadCheck,{fallback:i,children:(0,u.jsx)(o.MediaUpload,{title:(0,t.__)("Thumbnail"),onSelect:t=>(a=t,e.setAttributes({[r]:t.id.toString(),[r+"_url"]:t.url})),allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>((e,r)=>(0,u.jsxs)("div",{className:"editor-post-featured-image__container",children:[(0,u.jsxs)(s.Button,{className:r?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":r?(0,t.__)("Edit or update the image"):null,"aria-describedby":r?`editor-post-featured-image-${r}-describedby`:"",children:[!!r&&!1,!r&&(0,t.__)("Set Thumbnail")]}),(0,u.jsx)(s.DropZone,{})]}))(e,c),value:c})}),!!c&&!1,!!c&&(0,u.jsx)(o.MediaUploadCheck,{children:(0,u.jsx)(s.Button,{onClick:()=>e.setAttributes({[r]:"",[r+"_url"]:""}),isDestructive:!0,children:(0,t.__)("Remove Thumbnail")})},r+"-MediaUploadCheck-3")]})]},r+"-fragment"))})),n.main.push((0,u.jsx)(s.BaseControl,{help:(0,t.__)("You can disable the extensive help texts on the ARVE settings page to clean up this UI","advanced-responsive-video-embedder"),children:(0,u.jsx)(s.BaseControl.VisualLabel,{children:(0,t.__)("Info","advanced-responsive-video-embedder")})},"info")),Object.keys(n).forEach((e=>{var t;r.push((0,u.jsx)(s.PanelBody,{title:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),initialOpen:!0,children:n[e]},e))})),r}function w(e){if(!e)return"";const t=f.parseFromString(e,"text/html"),r=t.querySelector("a");if(r){const n=r.getAttribute("href")||"",i=r.textContent||"",o=(e=t.body.textContent||"").split(i);if(2!==o.length)throw new Error("textSplit.length must be 2");return(0,u.jsxs)(u.Fragment,{children:[o[0],(0,u.jsx)("a",{href:n,children:i}),o[1]]})}return e}function _(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function j(e,t){return t?j(t,e%t):e}(0,a.registerBlockType)(h,{edit:function(e){const{attributes:{mode:t,align:r,maxwidth:n}}=e;let s=!0;const a={},l=JSON.parse(JSON.stringify(e.attributes));delete l.align,delete l.maxwidth,!n||"left"!==r&&"right"!==r?"left"!==r&&"right"!==r||(a.width="100%",a.maxWidth=b.align_maxwidth):(a.width="100%",a.maxWidth=n);const d=(0,o.useBlockProps)({style:a});return("normal"===t||!t&&"normal"===b.mode)&&(s=!1),(0,u.jsxs)(u.Fragment,{children:[(0,p.createElement)("div",{...d,key:"block"},(0,u.jsx)(i(),{className:c()({"arve-ssr":!0,"arve-ssr--pointer-events-none":!s}),block:"nextgenthemes/arve-block",attributes:l,skipBlockSupportAttributes:!0})),(0,u.jsx)(o.InspectorControls,{children:v(e)},"insp")]})}})})()})();
     1(()=>{var e={584:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"UU":"nextgenthemes/arve-block"}'),t=window.wp.i18n,n=window.wp.serverSideRender;var i=r.n(n);const o=window.wp.blockEditor,s=window.wp.components,a=window.wp.blocks;var l=r(584),c=r.n(l);const d=window.wp.element,u=window.ReactJSXRuntime,p=window.React,{UU:h}=e,{settings:m,options:b}=window.ArveBlockJsBefore;delete m?.align?.options?.center;const f=new DOMParser;function g(e){if(!e)throw new Error("no options");return Object.entries(e).map(([e,t])=>({label:t,value:e}))}function x(e,t,r){if("url"===e){const n=f.parseFromString(t,"text/html").querySelector("iframe");if(n&&n.getAttribute("src")){if(r.setAttributes({[e]:n.getAttribute("src")}),n.width&&n.height){const e=function(e,t){if(_(e)&&_(t)){const r=parseInt(e),n=parseInt(t),i=j(r,n);return r/i+":"+n/i}return e+":"+t}(n.width,n.height);"16:9"!==e&&r.setAttributes({aspect_ratio:e})}return}}r.setAttributes({[e]:t})}function v(e){const r=[],n={},i=(0,u.jsx)("p",{children:(0,t.__)("To edit the featured image, you need permission to upload media.")});let a;return Object.values(m).forEach(e=>{n[e.tab]=[]}),Object.entries(m).forEach(([r,l])=>{const c=e.attributes[r];n[l.tab].push((0,u.jsxs)(d.Fragment,{children:["select"===l.ui_element&&(0,u.jsx)(s.SelectControl,{value:c,label:l.label,help:w(l?.description),options:g(l.options),onChange:t=>e.setAttributes({[r]:""===t?void 0:t})}),"checkbox"===l.ui_element_type&&(0,u.jsx)(s.ToggleControl,{label:l.label,help:w(l?.description),checked:!!c,onChange:t=>e.setAttributes({[r]:t})},r),["text","number"].includes(l.ui_element_type)&&(0,u.jsx)(s.TextControl,{label:l.label,placeholder:l.placeholder,help:w(l?.description),value:c,onChange:t=>{x(r,t,e)}}),"image_upload"===l.ui&&(0,u.jsxs)(s.BaseControl,{className:"editor-post-featured-image",help:w(l?.description),children:[(0,u.jsx)(o.MediaUploadCheck,{fallback:i,children:(0,u.jsx)(o.MediaUpload,{title:(0,t.__)("Thumbnail"),onSelect:t=>(a=t,e.setAttributes({[r]:t.id.toString(),[r+"_url"]:t.url})),allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>((e,r)=>(0,u.jsxs)("div",{className:"editor-post-featured-image__container",children:[(0,u.jsxs)(s.Button,{className:r?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":r?(0,t.__)("Edit or update the image"):null,"aria-describedby":r?`editor-post-featured-image-${r}-describedby`:"",children:[!!r&&!1,!r&&(0,t.__)("Set Thumbnail")]}),(0,u.jsx)(s.DropZone,{})]}))(e,c),value:c})}),!!c&&!1,!!c&&(0,u.jsx)(o.MediaUploadCheck,{children:(0,u.jsx)(s.Button,{onClick:()=>e.setAttributes({[r]:"",[r+"_url"]:""}),isDestructive:!0,children:(0,t.__)("Remove Thumbnail")})},r+"-MediaUploadCheck-3")]})]},r+"-fragment"))}),n.main.push((0,u.jsx)(s.BaseControl,{help:(0,t.__)("You can disable the extensive help texts on the ARVE settings page to clean up this UI","advanced-responsive-video-embedder"),children:(0,u.jsx)(s.BaseControl.VisualLabel,{children:(0,t.__)("Info","advanced-responsive-video-embedder")})},"info")),Object.keys(n).forEach(e=>{var t;r.push((0,u.jsx)(s.PanelBody,{title:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),initialOpen:!0,children:n[e]},e))}),r}function w(e){if(!e)return"";const t=f.parseFromString(e,"text/html"),r=t.querySelector("a");if(r){const n=r.getAttribute("href")||"",i=r.textContent||"",o=(e=t.body.textContent||"").split(i);if(2!==o.length)throw new Error("textSplit.length must be 2");return(0,u.jsxs)(u.Fragment,{children:[o[0],(0,u.jsx)("a",{href:n,children:i}),o[1]]})}return e}function _(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function j(e,t){return t?j(t,e%t):e}(0,a.registerBlockType)(h,{edit:function(e){const{attributes:{mode:t,align:r,maxwidth:n}}=e;let s=!0;const a={},l=JSON.parse(JSON.stringify(e.attributes));delete l.align,delete l.maxwidth,!n||"left"!==r&&"right"!==r?"left"!==r&&"right"!==r||(a.width="100%",a.maxWidth=b.align_maxwidth):(a.width="100%",a.maxWidth=n);const d=(0,o.useBlockProps)({style:a});return("normal"===t||!t&&"normal"===b.mode)&&(s=!1),(0,u.jsxs)(u.Fragment,{children:[(0,p.createElement)("div",{...d,key:"block"},(0,u.jsx)(i(),{className:c()({"arve-ssr":!0,"arve-ssr--pointer-events-none":!s}),block:"nextgenthemes/arve-block",attributes:l,skipBlockSupportAttributes:!0})),(0,u.jsx)(o.InspectorControls,{children:v(e)},"insp")]})}})})()})();
  • advanced-responsive-video-embedder/tags/10.6.13/build/block.json

    r3260040 r3338450  
    1414    "odysee"
    1515  ],
    16   "version": "10.6.12",
     16  "version": "10.6.13",
    1717  "textdomain": "advanced-responsive-video-embedder",
    1818  "supports": {
  • advanced-responsive-video-embedder/tags/10.6.13/build/main.asset.php

    r3252510 r3338450  
    1 <?php return array('dependencies' => array(), 'version' => '462483de06c61395403b');
     1<?php return array('dependencies' => array(), 'version' => '99cbf1962db5106f860d');
  • advanced-responsive-video-embedder/tags/10.6.13/build/main.js

    r3252510 r3338450  
    1 (()=>{"use strict";const e=document,t=e.querySelectorAll.bind(e),r=window.jQuery;function o(){t(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach((e=>{i(e)})),t(".ast-oembed-container").forEach((e=>{e.querySelector(".arve")&&i(e)})),t(".arve-iframe, .arve-video").forEach((e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")}))}function i(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var d;"html"!==e.documentElement.id&&(e.documentElement.id?e.body.id||(e.body.id="html"):e.documentElement.id="html"),d=()=>{o()},void 0!==e&&("complete"!==e.readyState&&"interactive"!==e.readyState?e.addEventListener("DOMContentLoaded",d):d()),r&&void 0!==r.fn.fitVids&&r(document).ready((()=>{setTimeout((()=>{o()}),1)}))})();
     1(()=>{"use strict";const e=document,t=e.querySelectorAll.bind(e),r=window.jQuery;function o(){t(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach(e=>{i(e)}),t(".ast-oembed-container").forEach(e=>{e.querySelector(".arve")&&i(e)}),t(".arve-iframe, .arve-video").forEach(e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")})}function i(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var d;"html"!==e.documentElement.id&&(e.documentElement.id?e.body.id||(e.body.id="html"):e.documentElement.id="html"),d=()=>{o()},void 0!==e&&("complete"!==e.readyState&&"interactive"!==e.readyState?e.addEventListener("DOMContentLoaded",d):d()),r&&void 0!==r.fn.fitVids&&r(document).ready(()=>{setTimeout(()=>{o()},1)})})();
  • advanced-responsive-video-embedder/tags/10.6.13/build/shortcode-ui.asset.php

    r3220773 r3338450  
    1 <?php return array('dependencies' => array(), 'version' => '05296a7015ea33cc85bc');
     1<?php return array('dependencies' => array(), 'version' => 'eb2083646fcc18986be0');
  • advanced-responsive-video-embedder/tags/10.6.13/build/shortcode-ui.js

    r3220773 r3338450  
    1 (()=>{"use strict";const t=window._,r=new DOMParser;window.wp.shortcake.hooks.addAction("arve.url",(function(e,i,n){function o(r){return t.find(i,(function(t){return r===t.model.get("attr")}))}if(void 0===e.value)return;const u=o("url").$el.find("input"),a=o("aspect_ratio").$el.find("input"),c=r.parseFromString(e.value,"text/html").querySelector("iframe");if(c&&c.hasAttribute("src")){u.val(c.src).trigger("input");const t=c.width,r=c.height;t&&r&&a.val(t+":"+r).trigger("input")}}))})();
     1(()=>{"use strict";const t=window._,r=new DOMParser;window.wp.shortcake.hooks.addAction("arve.url",function(e,i,n){function o(r){return t.find(i,function(t){return r===t.model.get("attr")})}if(void 0===e.value)return;const u=o("url").$el.find("input"),a=o("aspect_ratio").$el.find("input"),c=r.parseFromString(e.value,"text/html").querySelector("iframe");if(c&&c.hasAttribute("src")){u.val(c.src).trigger("input");const t=c.width,r=c.height;t&&r&&a.val(t+":"+r).trigger("input")}})})();
  • advanced-responsive-video-embedder/tags/10.6.13/changelog.md

    r3260040 r3338450  
    44* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    55
     6### 2025-07-30 10.6.13 ###
     7
     8* Fix: _load_textdomain_just_in_time was called incorrectly.
     9* Fix: Minor visible error on debug tab with WP_DEBUG enabled.
     10
    611### 2025-03-22 10.6.12 ###
     12
    713* Fix: HTML mistake on the setting page.
    814* Improved: Hide some old errors.
  • advanced-responsive-video-embedder/tags/10.6.13/php/Admin/fn-settings-page.php

    r3260040 r3338450  
    247247    $youtube_api_error = get_option( 'arve_youtube_api_error' );
    248248
    249     if ( ! $youtube_api_error ) {
     249    if ( ! is_wp_error( $youtube_api_error ) ) {
    250250        return;
    251251    }
    252252
    253     if ( ! is_wp_error( $youtube_api_error ) ) {
    254         wp_trigger_error( __FUNCTION__, 'Not WP_Error' );
    255         return;
    256     }
    257 
    258     $code    = $youtube_api_error->get_error_code();
     253    #$code    = $youtube_api_error->get_error_code();
    259254    $message = $youtube_api_error->get_error_message();
    260255    $data    = $youtube_api_error->get_error_data();
  • advanced-responsive-video-embedder/tags/10.6.13/php/fn-misc.php

    r3252510 r3338450  
    121121    return is_feed() && ! options()['feed'] ? true : false;
    122122}
    123 
    124 
    125123
    126124/**
  • advanced-responsive-video-embedder/tags/10.6.13/php/init.php

    r3259912 r3338450  
    55namespace Nextgenthemes\ARVE;
    66
    7 add_action( 'plugins_loaded', __NAMESPACE__ . '\init', 9 );
     7// Stop outdated addons from executing
     8remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
     9remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\RandomVideo\init', 15 );
     10remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Privacy\init', 16 );
     11
     12add_action( 'init', __NAMESPACE__ . '\init', 9 );
    813add_action( 'admin_init', __NAMESPACE__ . '\init_admin', 9 );
    914
    1015function init(): void {
    1116
    12     add_option( 'arve_install_date', time() );
    13 
    14     if ( version_compare( get_option( 'arve_version', '' ), '10.3.5-alpha1', '<' ) ) {
    15         add_action(
    16             'wp_loaded',
    17             function (): void {
    18                 delete_oembed_cache( '', 'arve-cachetime' );
    19             }
    20         );
    21     }
    22 
    23     update_option( 'arve_version', VERSION );
    24 
    2517    require_once PLUGIN_DIR . '/php/Video.php';
     18    require_once PLUGIN_DIR . '/php/fn-cache.php';
    2619    require_once PLUGIN_DIR . '/php/fn-assets.php';
    2720    require_once PLUGIN_DIR . '/php/fn-html-output.php';
     
    3528    require_once PLUGIN_DIR . '/php/fn-settings.php';
    3629
    37     settings_instance();
     30    add_option( 'arve_install_date', time() );
     31    maybe_delete_oembed_cache(); // Must be before update_option arve_version
     32    update_option( 'arve_version', VERSION );
    3833
     34    add_action( 'init', __NAMESPACE__ . '\settings_instance' );
    3935    add_action( 'init', __NAMESPACE__ . '\init_nextgenthemes_settings' );
    4036    add_action( 'init', __NAMESPACE__ . '\register_assets' );
     37    add_action( 'init', __NAMESPACE__ . '\create_shortcodes' );
     38    add_action( 'init', __NAMESPACE__ . '\create_url_handlers' );
    4139    add_filter( 'mce_css', __NAMESPACE__ . '\add_styles_to_mce' );
    4240    add_filter( 'oembed_remote_get_args', __NAMESPACE__ . '\vimeo_referer', 10, 2 );
    43     add_action( 'plugins_loaded', __NAMESPACE__ . '\create_shortcodes', 999 );
    44     add_action( 'plugins_loaded', __NAMESPACE__ . '\create_url_handlers', 999 );
    4541    add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\action_wp_enqueue_scripts' );
    4642    add_filter( 'render_block_core/embed', __NAMESPACE__ . '\remove_embed_block_aspect_ratio' );
     
    5046    add_filter( 'embed_oembed_html', __NAMESPACE__ . '\filter_embed_oembed_html', OEMBED_HTML_PRIORITY, 4 );
    5147    add_action( 'elementor/widgets/register', __NAMESPACE__ . '\register_elementor_widget' );
    52 
    53     // Stop outdated addons from executing
    54     remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
    55     remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\RandomVideo\init', 15 );
    56     remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Privacy\init', 16 );
    5748
    5849    foreach ( ADDON_NAMES as $addon_name ) {
     
    10899    }
    109100}
    110 
    111 /**
    112  * Deletes the oEmbed caches.
    113  *
    114  * @link https://github.com/wp-cli/embed-command/blob/c868ec31c65ffa1a61868a91c198a5d815b5bafa/src/Cache_Command.php
    115  * @author Nicolas Jonas <https://nextgenthemes.com>
    116  * @author Nicolas Lemoine <https://n5s.dev>
    117  * @copyright Copyright (c) 2025, Nicolas Jonas
    118  * @copyright Copyright (c) 2024, Nicolas Lemoine
    119  *
    120  * @return int|false The number of rows deleted or false on failure.
    121  */
    122 function delete_oembed_cache( string $like = '', string $not_like = '' ): string {
    123 
    124     global $wpdb, $wp_embed;
    125 
    126     $message = '';
    127 
    128     // Get post meta oEmbed caches
    129     if ( $like ) {
    130         $oembed_post_meta_post_ids = (array) $wpdb->get_col(
    131             $wpdb->prepare(
    132                 "SELECT DISTINCT post_id FROM $wpdb->postmeta WHERE meta_key LIKE %s AND meta_value LIKE %s",
    133                 $wpdb->esc_like( '_oembed_' ) . '%',
    134                 '%' . $wpdb->esc_like( $like ) . '%'
    135             )
    136         );
    137     } elseif ( $not_like ) {
    138         $oembed_post_meta_post_ids = (array) $wpdb->get_col(
    139             $wpdb->prepare(
    140                 "SELECT DISTINCT post_id FROM $wpdb->postmeta
    141                 WHERE meta_key LIKE %s
    142                 AND meta_key NOT LIKE %s
    143                 AND meta_value NOT LIKE %s",
    144                 $wpdb->esc_like( '_oembed_' ) . '%',
    145                 $wpdb->esc_like( '_oembed_time_' ) . '%',
    146                 '%' . $wpdb->esc_like( $not_like ) . '%'
    147             )
    148         );
    149     } else {
    150         $oembed_post_meta_post_ids = (array) $wpdb->get_col(
    151             $wpdb->prepare(
    152                 "SELECT DISTINCT post_id FROM $wpdb->postmeta WHERE meta_key LIKE %s",
    153                 $wpdb->esc_like( '_oembed_' ) . '%'
    154             )
    155         );
    156     }
    157 
    158     // Get posts oEmbed caches
    159     if ( $like ) {
    160         $oembed_post_post_ids = (array) $wpdb->get_col(
    161             $wpdb->prepare(
    162                 "SELECT ID FROM $wpdb->posts WHERE post_type = 'oembed_cache' AND post_content LIKE %s",
    163                 '%' . $wpdb->esc_like( $like ) . '%'
    164             )
    165         );
    166     } elseif ( $not_like ) {
    167         $oembed_post_post_ids = (array) $wpdb->get_col(
    168             $wpdb->prepare(
    169                 "SELECT ID FROM $wpdb->posts WHERE post_type = 'oembed_cache' AND post_content NOT LIKE %s",
    170                 '%' . $wpdb->esc_like( $not_like ) . '%'
    171             )
    172         );
    173     } else {
    174         $oembed_post_post_ids = (array) $wpdb->get_col(
    175             "SELECT ID FROM $wpdb->posts WHERE post_type = 'oembed_cache'"
    176         );
    177     }
    178 
    179     // Get transient oEmbed caches
    180     if ( $like ) {
    181         $oembed_transients = $wpdb->get_col(
    182             $wpdb->prepare(
    183                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s AND option_value LIKE %s",
    184                 $wpdb->esc_like( '_transient_oembed_' ) . '%',
    185                 '%' . $wpdb->esc_like( $like ) . '%'
    186             )
    187         );
    188     } elseif ( $not_like ) {
    189         $oembed_transients = $wpdb->get_col(
    190             $wpdb->prepare(
    191                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s AND option_value NOT LIKE %s",
    192                 $wpdb->esc_like( '_transient_oembed_' ) . '%',
    193                 '%' . $wpdb->esc_like( $not_like ) . '%'
    194             )
    195         );
    196     } else {
    197         $oembed_transients = $wpdb->get_col(
    198             $wpdb->prepare(
    199                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s",
    200                 $wpdb->esc_like( '_transient_oembed_' ) . '%'
    201             )
    202         );
    203     }
    204 
    205     $oembed_caches = array(
    206         'post'        => $oembed_post_meta_post_ids,
    207         'oembed post' => $oembed_post_post_ids,
    208         'transient'   => $oembed_transients,
    209     );
    210 
    211     $total = array_sum(
    212         array_map(
    213             function ( $items ) {
    214                 return count( $items );
    215             },
    216             $oembed_caches
    217         )
    218     );
    219 
    220     // Delete post meta oEmbed caches
    221     foreach ( $oembed_post_meta_post_ids as $post_id ) {
    222         $wp_embed->delete_oembed_caches( $post_id );
    223     }
    224 
    225     // Delete posts oEmbed caches
    226     foreach ( $oembed_post_post_ids as $post_id ) {
    227         wp_delete_post( $post_id, true );
    228     }
    229 
    230     // Delete transient oEmbed caches
    231     foreach ( $oembed_transients as $option_name ) {
    232         delete_transient( str_replace( '_transient_', '', $option_name ) );
    233     }
    234 
    235     if ( $total > 0 ) {
    236         $details = array();
    237         foreach ( $oembed_caches as $type => $items ) {
    238             $count     = count( $items );
    239             $details[] = sprintf(
    240                 '%1$d %2$s %3$s',
    241                 $count,
    242                 $type,
    243                 esc_html__( 'cache(s)', 'advanced-responsive-video-embedder' )
    244             );
    245         }
    246 
    247         $message .= sprintf(
    248             'Cleared %1$d oEmbed %2$s: %3$s.',
    249             $total,
    250             esc_html__( 'cache(s)', 'advanced-responsive-video-embedder' ),
    251             implode( ', ', $details )
    252         );
    253 
    254     } else {
    255         $message .= esc_html__( 'No oEmbed caches to clear!', 'advanced-responsive-video-embedder' );
    256     }
    257 
    258     return $message;
    259 }
    260 
    261 /**
    262  * @global wpdb $wpdb
    263  */
    264 function delete_transients( string $prefix, string $contains = '' ): string {
    265 
    266     global $wpdb;
    267 
    268     if ( $contains ) {
    269         $transients = $wpdb->get_col(
    270             $wpdb->prepare(
    271                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s AND option_value LIKE %s",
    272                 $wpdb->esc_like( '_transient_' . $prefix ) . '%',
    273                 '%' . $wpdb->esc_like( $contains ) . '%'
    274             )
    275         );
    276     } else {
    277         $transients = $wpdb->get_col(
    278             $wpdb->prepare(
    279                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s",
    280                 $wpdb->esc_like( '_transient_' . $prefix ) . '%'
    281             )
    282         );
    283     }
    284 
    285     $count = 0;
    286 
    287     foreach ( $transients as $transient_name ) {
    288         // Strip '_transient_' to get the key for delete_transient()
    289         $transient_key = str_replace( '_transient_', '', $transient_name );
    290         if ( delete_transient( $transient_key ) ) {
    291             ++$count;
    292         }
    293     }
    294 
    295     if ( $count > 0 ) {
    296         return sprintf(
    297             // translators: %d: Number of transients deleted.
    298             esc_html__( 'Deleted %d transients.', 'advanced-responsive-video-embedder' ),
    299             $count
    300         );
    301     }
    302 
    303     return esc_html__( 'No transients deleted.', 'advanced-responsive-video-embedder' );
    304 }
  • advanced-responsive-video-embedder/tags/10.6.13/readme.txt

    r3260040 r3338450  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 10.6.12
     8Stable tag: 10.6.13
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    196196* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    197197
     198### 2025-07-30 10.6.13 ###
     199
     200* Fix: _load_textdomain_just_in_time was called incorrectly.
     201* Fix: Minor visible error on debug tab with WP_DEBUG enabled.
     202
    198203### 2025-03-22 10.6.12 ###
     204
    199205* Fix: HTML mistake on the setting page.
    200206* Improved: Hide some old errors.
  • advanced-responsive-video-embedder/tags/10.6.13/src/block.json

    r3260040 r3338450  
    1414        "odysee"
    1515    ],
    16     "version": "10.6.12",
     16    "version": "10.6.13",
    1717    "textdomain": "advanced-responsive-video-embedder",
    1818    "supports": {
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/autoload_packages.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/automattic/jetpack-autoloader/CHANGELOG.md

    r3259912 r3338450  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [5.0.9] - 2025-07-28
     9### Changed
     10- Exclude development files from production build of the package. [#44456]
     11
     12## [5.0.8] - 2025-06-23
     13### Fixed
     14- Autoloader: Prevent double slash in autoloader path. [#44030]
     15
     16## [5.0.7] - 2025-04-28
     17### Changed
     18- Internal updates.
     19
     20## [5.0.6] - 2025-03-31
     21### Changed
     22- Internal updates.
    723
    824## [5.0.5] - 2025-03-21
     
    419435- Add Custom Autoloader
    420436
     437[5.0.9]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.8...v5.0.9
     438[5.0.8]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.7...v5.0.8
     439[5.0.7]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.6...v5.0.7
     440[5.0.6]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.5...v5.0.6
    421441[5.0.5]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.4...v5.0.5
    422442[5.0.4]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.3...v5.0.4
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/automattic/jetpack-autoloader/README.md

    r3185239 r3338450  
    3434In the main plugin you will also need to include the files like this.
    3535```php
    36 require_once  plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
     36require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload_packages.php';
    3737```
    3838
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/automattic/jetpack-autoloader/composer.json

    r3259912 r3338450  
    1818    "require-dev": {
    1919        "composer/composer": "^2.2",
    20         "yoast/phpunit-polyfills": "^3.0.0",
    21         "automattic/jetpack-changelogger": "^6.0.2",
    22         "automattic/phpunit-select-config": "^1.0.1"
     20        "yoast/phpunit-polyfills": "^4.0.0",
     21        "automattic/jetpack-changelogger": "^6.0.5",
     22        "automattic/phpunit-select-config": "^1.0.3"
    2323    },
    2424    "autoload": {
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php

    r3259912 r3338450  
    2222class AutoloadGenerator {
    2323
    24     const VERSION = '5.0.5';
     24    const VERSION = '5.0.9';
    2525
    2626    /**
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/composer/installed.json

    r3259912 r3338450  
    33        {
    44            "name": "automattic/jetpack-autoloader",
    5             "version": "v5.0.5",
    6             "version_normalized": "5.0.5.0",
     5            "version": "v5.0.9",
     6            "version_normalized": "5.0.9.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-autoloader.git",
    10                 "reference": "7bf3172e73c27c72d01d6de4796a41c7abc06d5a"
     10                "reference": "c9e9b82cc515d9ed093fa0ff21245f277aeceb4e"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/7bf3172e73c27c72d01d6de4796a41c7abc06d5a",
    15                 "reference": "7bf3172e73c27c72d01d6de4796a41c7abc06d5a",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/c9e9b82cc515d9ed093fa0ff21245f277aeceb4e",
     15                "reference": "c9e9b82cc515d9ed093fa0ff21245f277aeceb4e",
    1616                "shasum": ""
    1717            },
     
    2121            },
    2222            "require-dev": {
    23                 "automattic/jetpack-changelogger": "^6.0.2",
    24                 "automattic/phpunit-select-config": "^1.0.1",
     23                "automattic/jetpack-changelogger": "^6.0.5",
     24                "automattic/phpunit-select-config": "^1.0.3",
    2525                "composer/composer": "^2.2",
    26                 "yoast/phpunit-polyfills": "^3.0.0"
     26                "yoast/phpunit-polyfills": "^4.0.0"
    2727            },
    28             "time": "2025-03-21T09:05:50+00:00",
     28            "time": "2025-07-28T19:49:50+00:00",
    2929            "type": "composer-plugin",
    3030            "extra": {
     
    6565            ],
    6666            "support": {
    67                 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.5"
     67                "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.9"
    6868            },
    6969            "install-path": "../automattic/jetpack-autoloader"
     
    7676                "type": "path",
    7777                "url": "../../../../../../dev/composer-packages/wp-settings",
    78                 "reference": "8570f0355e41c34591139b5b891b62617e4f444b"
     78                "reference": "4e26cd875e2ba18f6f1bb523ef51d01ec7f7869d"
    7979            },
    8080            "require": {
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/composer/installed.php

    r3260040 r3338450  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '07a7e1e54dc954fa6c60c90ad034530d94911f1d',
     6        'reference' => 'ccd71c526402379c26ae9a45529f7222283d6cd3',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'automattic/jetpack-autoloader' => array(
    14             'pretty_version' => 'v5.0.5',
    15             'version' => '5.0.5.0',
    16             'reference' => '7bf3172e73c27c72d01d6de4796a41c7abc06d5a',
     14            'pretty_version' => 'v5.0.9',
     15            'version' => '5.0.9.0',
     16            'reference' => 'c9e9b82cc515d9ed093fa0ff21245f277aeceb4e',
    1717            'type' => 'composer-plugin',
    1818            'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '07a7e1e54dc954fa6c60c90ad034530d94911f1d',
     25            'reference' => 'ccd71c526402379c26ae9a45529f7222283d6cd3',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '8570f0355e41c34591139b5b891b62617e4f444b',
     34            'reference' => '4e26cd875e2ba18f6f1bb523ef51d01ec7f7869d',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../nextgenthemes/wp-settings',
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/composer/jetpack_autoload_classmap.php

    r3259912 r3338450  
    88return array(
    99    'Autoloader' => array(
    10         'version' => '5.0.5',
     10        'version' => '5.0.9',
    1111        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php'
    1212    ),
    1313    'Autoloader_Handler' => array(
    14         'version' => '5.0.5',
     14        'version' => '5.0.9',
    1515        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php'
    1616    ),
    1717    'Autoloader_Locator' => array(
    18         'version' => '5.0.5',
     18        'version' => '5.0.9',
    1919        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php'
    2020    ),
    2121    'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
    22         'version' => '5.0.5',
     22        'version' => '5.0.9',
    2323        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
    2424    ),
    2525    'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
    26         'version' => '5.0.5',
     26        'version' => '5.0.9',
    2727        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
    2828    ),
    2929    'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
    30         'version' => '5.0.5',
     30        'version' => '5.0.9',
    3131        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
    3232    ),
    3333    'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
    34         'version' => '5.0.5',
     34        'version' => '5.0.9',
    3535        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
    3636    ),
    3737    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
    38         'version' => '5.0.5',
     38        'version' => '5.0.9',
    3939        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
    4040    ),
    4141    'Container' => array(
    42         'version' => '5.0.5',
     42        'version' => '5.0.9',
    4343        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php'
    4444    ),
    4545    'Hook_Manager' => array(
    46         'version' => '5.0.5',
     46        'version' => '5.0.9',
    4747        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php'
    4848    ),
    4949    'Latest_Autoloader_Guard' => array(
    50         'version' => '5.0.5',
     50        'version' => '5.0.9',
    5151        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php'
    5252    ),
    5353    'Manifest_Reader' => array(
    54         'version' => '5.0.5',
     54        'version' => '5.0.9',
    5555        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php'
    5656    ),
    5757    'PHP_Autoloader' => array(
    58         'version' => '5.0.5',
     58        'version' => '5.0.9',
    5959        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php'
    6060    ),
    6161    'Path_Processor' => array(
    62         'version' => '5.0.5',
     62        'version' => '5.0.9',
    6363        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php'
    6464    ),
    6565    'Plugin_Locator' => array(
    66         'version' => '5.0.5',
     66        'version' => '5.0.9',
    6767        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php'
    6868    ),
    6969    'Plugins_Handler' => array(
    70         'version' => '5.0.5',
     70        'version' => '5.0.9',
    7171        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php'
    7272    ),
    7373    'Shutdown_Handler' => array(
    74         'version' => '5.0.5',
     74        'version' => '5.0.9',
    7575        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
    7676    ),
    7777    'Version_Loader' => array(
    78         'version' => '5.0.5',
     78        'version' => '5.0.9',
    7979        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php'
    8080    ),
    8181    'Version_Selector' => array(
    82         'version' => '5.0.5',
     82        'version' => '5.0.9',
    8383        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php'
    8484    ),
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-autoloader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-container.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-hook-manager.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-manifest-reader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-path-processor.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-php-autoloader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-plugin-locator.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-plugins-handler.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-version-loader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/jetpack-autoloader/class-version-selector.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/nextgenthemes/wp-settings/build/settings.asset.php

    r3259912 r3338450  
    1 <?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e4629483261831787ccb', 'type' => 'module');
     1<?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => '53165e7fe2b504514ae7', 'type' => 'module');
  • advanced-responsive-video-embedder/tags/10.6.13/vendor/nextgenthemes/wp-settings/build/settings.js

    r3259912 r3338450  
    1 import*as e from"@wordpress/interactivity";var t={};function o(e,t){if(n(e)&&n(t)){const o=parseInt(e),n=parseInt(t),s=i(o,n);return`${o/s}:${n/s}`}return`${e}:${t}`}function n(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function i(e,t){return t?i(t,e%t):e}t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const s=(d={getConfig:()=>e.getConfig,getContext:()=>e.getContext,store:()=>e.store},g={},t.d(g,d),g),r=new DOMParser,a=document,c=a.querySelector.bind(a),l=c('dialog[data-wp-interactive="nextgenthemes_arve_dialog"]');var d,g;!function(){const e=c('[data-wp-interactive^="nextgenthemes"]')?.dataset?.wpInteractive;if(!e)return;const{state:t,actions:n,callbacks:i,helpers:a}=(0,s.store)(e,{state:{isValidLicenseKey:()=>{const e=(0,s.getContext)();return"valid"===t.options[e.option_key+"_status"]},is32charactersLong:()=>{const e=(0,s.getContext)();return 32===t.options[e.option_key].length},get isActiveTab(){const e=(0,s.getContext)();return!e.activeTabs||!0===e?.activeTabs[e.tab]}},actions:{toggleHelp:()=>{t.help=!t.help},openShortcodeDialog:e=>{const t=e.target instanceof HTMLElement&&e.target.dataset.editor;l&&t?(l.dataset.editor=t,l.showModal()):console.error("Dialog or editorId not found")},insertShortcode:()=>{const e=l?.dataset.editor;if(e)if("content"===e)window.wp.media.editor.insert(t.shortcode);else{if(void 0===window.tinymce||!window.tinymce.get(e))return void console.error("TinyMCE not initialized for field: "+e);window.tinymce.get(e).insertContent(t.shortcode)}else console.error("Editor ID not found");n.closeShortcodeDialog()},closeShortcodeDialog:()=>{l&&l.close()},changeTab:()=>{const e=(0,s.getContext)();for(const t in e.activeTabs)e.activeTabs[t]=!1;e.activeTabs[e.tab]=!0},inputChange:o=>{const i=(0,s.getContext)(),r=o?.target instanceof HTMLInputElement,c=o?.target instanceof HTMLSelectElement;if(!r&&!c)throw new Error("event.target is not HTMLInputElement or HTMLSelectElement");"arveUrl"in o.target.dataset?a.extractFromEmbedCode(o.target.value):t.options[i.option_key]=o.target.value,"nextgenthemes_arve_dialog"!==e&&n.saveOptions()},checkboxChange:o=>{const i=(0,s.getContext)();t.options[i.option_key]=o.target.checked,"nextgenthemes_arve_dialog"!==e&&n.saveOptions()},selectImage:()=>{l&&l.close();const e=(0,s.getContext)(),o=window.wp.media({title:"Upload Image",multiple:!1}).open().on("select",(function(){const n=o.state().get("selection").first().toJSON().id;t.options[e.option_key]=n,l&&l.showModal()})).on("close",(function(){l&&l.showModal()}))},deleteCaches:()=>{const e=(0,s.getContext)();n.restCall("/delete-caches",{type:e.type,prefix:e.prefix,like:e.like,not_like:e.type,delete_option:e.delete_option})},saveOptionsReal:()=>{n.restCall("/save",t.options)},restCall:(e,o,n=!1)=>{if(t.isSaving)return void(t.message="trying to save too fast");const i=(0,s.getConfig)();t.isSaving=!0,t.message="Saving...",fetch(i.restUrl+e,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json","X-WP-Nonce":i.nonce}}).then((e=>{if(!e.ok)throw console.log(e),new Error("Network response was not ok");return e.json()})).then((e=>{t.message=e,setTimeout((()=>t.message=""),666)})).catch((e=>{t.message=e.message})).finally((()=>{t.isSaving=!1,n&&window.location.reload()}))},eddLicenseAction(){const e=(0,s.getContext)();n.restCall("/edd-license-action",{option_key:e.option_key,edd_store_url:e.edd_store_url,edd_action:e.edd_action,item_id:e.edd_item_id,license:t.options[e.option_key]},!0)},resetOptionsSection(){const e=(0,s.getConfig)(),o=(0,s.getContext)().tab;Object.entries(e.defaultOptions).forEach((([e,n])=>{"all"===o?Object.entries(n).forEach((([e,o])=>{t.options[e]=o})):Object.entries(n).forEach((([n,i])=>{e===o&&(t.options[n]=i)}))})),n.saveOptionsReal()}},callbacks:{updateShortcode(){let e="";for(const[o,n]of Object.entries(t.options))"credentialless"===o?!1===n&&(e+=`${o}="false" `):!0===n?e+=`${o}="true" `:n&&(e+=`${o}="${n}" `);t.shortcode="[arve "+e+"/]"}},helpers:{debugJson:e=>{t.debug=JSON.stringify(e,null,2)},extractFromEmbedCode:e=>{const n=r.parseFromString(e,"text/html").querySelector("iframe"),i=n&&n.getAttribute("src");if(i&&(e=i,n.width&&n.height)){const e=o(n.width,n.height);"16:9"!==e&&(t.options.aspect_ratio=e)}t.options.url=e}}});n.saveOptions=function(e){let t;return function(...o){const n=this;clearTimeout(t),t=window.setTimeout((()=>{t=void 0,e.apply(n,o)}),1111)}}(n.saveOptionsReal)}(),function(){const e=window.getComputedStyle(a.body).backgroundColor,t=c(".wrap--nextgenthemes");t&&t.setAttribute("style",`--ngt-wp-body-bg: ${e};`)}(),window.jQuery(document).on("click",'.arve-btn:not([data-editor="content"])',(e=>{e.preventDefault();const t=c('[data-wp-on--click="actions.openShortcodeDialog"][data-editor="content"]'),o=c('[data-wp-on--click="actions.insertShortcode"]');t&&o&&l?t.dispatchEvent(new Event("click")):console.error("Open btn, insert btn od dialog not found")}));
     1import{getConfig as e,getContext as t,store as o}from"@wordpress/interactivity";function n(e,t){if(i(e)&&i(t)){const o=parseInt(e),n=parseInt(t),i=s(o,n);return`${o/i}:${n/i}`}return`${e}:${t}`}function i(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function s(e,t){return t?s(t,e%t):e}const a=new DOMParser,r=document,c=r.querySelector.bind(r),l=c('dialog[data-wp-interactive="nextgenthemes_arve_dialog"]');!function(){const i=c('[data-wp-interactive^="nextgenthemes"]')?.dataset?.wpInteractive;if(!i)return;const{state:s,actions:r,callbacks:d,helpers:p}=o(i,{state:{isValidLicenseKey:()=>{const e=t();return"valid"===s.options[e.option_key+"_status"]},is32charactersLong:()=>{const e=t();return 32===s.options[e.option_key].length},get isActiveTab(){const e=t();return!e.activeTabs||!0===e?.activeTabs[e.tab]}},actions:{toggleHelp:()=>{s.help=!s.help},openShortcodeDialog:e=>{const t=e.target instanceof HTMLElement&&e.target.dataset.editor;l&&t?(l.dataset.editor=t,l.showModal()):console.error("Dialog or editorId not found")},insertShortcode:()=>{const e=l?.dataset.editor;if(e)if("content"===e)window.wp.media.editor.insert(s.shortcode);else{if(void 0===window.tinymce||!window.tinymce.get(e))return void console.error("TinyMCE not initialized for field: "+e);window.tinymce.get(e).insertContent(s.shortcode)}else console.error("Editor ID not found");r.closeShortcodeDialog()},closeShortcodeDialog:()=>{l&&l.close()},changeTab:()=>{const e=t();for(const t in e.activeTabs)e.activeTabs[t]=!1;e.activeTabs[e.tab]=!0},inputChange:e=>{const o=t(),n=e?.target instanceof HTMLInputElement,a=e?.target instanceof HTMLSelectElement;if(!n&&!a)throw new Error("event.target is not HTMLInputElement or HTMLSelectElement");"arveUrl"in e.target.dataset?p.extractFromEmbedCode(e.target.value):s.options[o.option_key]=e.target.value,"nextgenthemes_arve_dialog"!==i&&r.saveOptions()},checkboxChange:e=>{const o=t();s.options[o.option_key]=e.target.checked,"nextgenthemes_arve_dialog"!==i&&r.saveOptions()},selectImage:()=>{l&&l.close();const e=t(),o=window.wp.media({title:"Upload Image",multiple:!1}).open().on("select",function(){const t=o.state().get("selection").first().toJSON().id;s.options[e.option_key]=t,l&&l.showModal()}).on("close",function(){l&&l.showModal()})},deleteCaches:()=>{const e=t();r.restCall("/delete-caches",{type:e.type,prefix:e.prefix,like:e.like,not_like:e.type,delete_option:e.delete_option})},saveOptionsReal:()=>{r.restCall("/save",s.options)},restCall:(t,o,n=!1)=>{if(s.isSaving)return void(s.message="trying to save too fast");const i=e();s.isSaving=!0,s.message="Saving...",fetch(i.restUrl+t,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json","X-WP-Nonce":i.nonce}}).then(e=>{if(!e.ok)throw console.log(e),new Error("Network response was not ok");return e.json()}).then(e=>{s.message=e,setTimeout(()=>s.message="",666)}).catch(e=>{s.message=e.message}).finally(()=>{s.isSaving=!1,n&&window.location.reload()})},eddLicenseAction(){const e=t();r.restCall("/edd-license-action",{option_key:e.option_key,edd_store_url:e.edd_store_url,edd_action:e.edd_action,item_id:e.edd_item_id,license:s.options[e.option_key]},!0)},resetOptionsSection(){const o=e(),n=t().tab;Object.entries(o.defaultOptions).forEach(([e,t])=>{"all"===n?Object.entries(t).forEach(([e,t])=>{s.options[e]=t}):Object.entries(t).forEach(([t,o])=>{e===n&&(s.options[t]=o)})}),r.saveOptionsReal()}},callbacks:{updateShortcode(){let e="";for(const[t,o]of Object.entries(s.options))"credentialless"===t?!1===o&&(e+=`${t}="false" `):!0===o?e+=`${t}="true" `:o&&(e+=`${t}="${o}" `);s.shortcode="[arve "+e+"/]"}},helpers:{debugJson:e=>{s.debug=JSON.stringify(e,null,2)},extractFromEmbedCode:e=>{const t=a.parseFromString(e,"text/html").querySelector("iframe"),o=t&&t.getAttribute("src");if(o&&(e=o,t.width&&t.height)){const e=n(t.width,t.height);"16:9"!==e&&(s.options.aspect_ratio=e)}s.options.url=e}}});r.saveOptions=function(e){let t;return function(...o){const n=this;clearTimeout(t),t=window.setTimeout(()=>{t=void 0,e.apply(n,o)},1111)}}(r.saveOptionsReal)}(),function(){const e=window.getComputedStyle(r.body).backgroundColor,t=c(".wrap--nextgenthemes");t&&t.setAttribute("style",`--ngt-wp-body-bg: ${e};`)}(),window.jQuery(document).on("click",'.arve-btn:not([data-editor="content"])',e=>{e.preventDefault();const t=c('[data-wp-on--click="actions.openShortcodeDialog"][data-editor="content"]'),o=c('[data-wp-on--click="actions.insertShortcode"]');t&&o&&l?t.dispatchEvent(new Event("click")):console.error("Open btn, insert btn od dialog not found")});
  • advanced-responsive-video-embedder/trunk/advanced-responsive-video-embedder.php

    r3260040 r3338450  
    44 * Plugin URI:        https://nextgenthemes.com/plugins/arve-pro/
    55 * Description:       Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
    6  * Version:           10.6.12
     6 * Version:           10.6.13
    77 * Requires PHP:      7.4
    88 * Requires at least: 6.6
     
    2323namespace Nextgenthemes\ARVE;
    2424
    25 const VERSION                       = '10.6.12';
     25const VERSION                       = '10.6.13';
    2626const PRO_VERSION_REQUIRED          = '7.0.6';
    2727const PRIVACY_VERSION_REQUIRED      = '1.1.5';
  • advanced-responsive-video-embedder/trunk/build/admin.asset.php

    r3252510 r3338450  
    1 <?php return array('dependencies' => array(), 'version' => 'a3e0a1e845b99db84cc6');
     1<?php return array('dependencies' => array(), 'version' => '54bbf33813e7cce5dc55');
  • advanced-responsive-video-embedder/trunk/build/admin.js

    r3252510 r3338450  
    1 (()=>{"use strict";var e={625:(e,t,r)=>{r.d(t,{J:()=>a});const o=document,n=o.querySelectorAll.bind(o),i=window.jQuery;function d(){n(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach((e=>{c(e)})),n(".ast-oembed-container").forEach((e=>{e.querySelector(".arve")&&c(e)})),n(".arve-iframe, .arve-video").forEach((e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")}))}function a(){"html"!==o.documentElement.id&&(o.documentElement.id?o.body.id||(o.body.id="html"):o.documentElement.id="html")}function c(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var s;a(),s=()=>{d()},void 0!==o&&("complete"!==o.readyState&&"interactive"!==o.readyState?o.addEventListener("DOMContentLoaded",s):s()),i&&void 0!==i.fn.fitVids&&i(document).ready((()=>{setTimeout((()=>{d()}),1)}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r(625);const n=document,i=n.querySelector.bind(n);(0,o.J)(),function(){let e=0;const t=setInterval((()=>{e++;const r=i('iframe[name="editor-canvas"]'),o=r?.contentDocument?.body;o&&(clearInterval(t),o.setAttribute("id","html")),e>100&&clearInterval(t)}),300)}(),n.addEventListener("click",(e=>{const t=e?.target;if(t instanceof HTMLElement&&t.matches(".notice-dismiss")){e.preventDefault();const r=t.parentNode,o=r?.getAttribute("id");if(!r?.matches(".notice.is-dismissible")||!o)return;fetch(window.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=dnh_dismiss_notice&id="+o})}}))})();
     1(()=>{"use strict";var e={625:(e,t,r)=>{r.d(t,{J:()=>a});const o=document,n=o.querySelectorAll.bind(o),i=window.jQuery;function d(){n(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach(e=>{c(e)}),n(".ast-oembed-container").forEach(e=>{e.querySelector(".arve")&&c(e)}),n(".arve-iframe, .arve-video").forEach(e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")})}function a(){"html"!==o.documentElement.id&&(o.documentElement.id?o.body.id||(o.body.id="html"):o.documentElement.id="html")}function c(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var s;a(),s=()=>{d()},void 0!==o&&("complete"!==o.readyState&&"interactive"!==o.readyState?o.addEventListener("DOMContentLoaded",s):s()),i&&void 0!==i.fn.fitVids&&i(document).ready(()=>{setTimeout(()=>{d()},1)})}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r(625);const n=document,i=n.querySelector.bind(n);(0,o.J)(),function(){let e=0;const t=setInterval(()=>{e++;const r=i('iframe[name="editor-canvas"]'),o=r?.contentDocument?.body;o&&(clearInterval(t),o.setAttribute("id","html")),e>100&&clearInterval(t)},300)}(),n.addEventListener("click",e=>{const t=e?.target;if(t instanceof HTMLElement&&t.matches(".notice-dismiss")){e.preventDefault();const r=t.parentNode,o=r?.getAttribute("id");if(!r?.matches(".notice.is-dismissible")||!o)return;fetch(window.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=dnh_dismiss_notice&id="+o})}})})();
  • advanced-responsive-video-embedder/trunk/build/block.asset.php

    r3252510 r3338450  
    1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'ea94d4a27312ab835dd1');
     1<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'c512e2a9642618eb4a45');
  • advanced-responsive-video-embedder/trunk/build/block.js

    r3252510 r3338450  
    1 (()=>{var e={584:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"UU":"nextgenthemes/arve-block"}'),t=window.wp.i18n,n=window.wp.serverSideRender;var i=r.n(n);const o=window.wp.blockEditor,s=window.wp.components,a=window.wp.blocks;var l=r(584),c=r.n(l);const d=window.wp.element,u=window.ReactJSXRuntime,p=window.React,{UU:h}=e,{settings:m,options:b}=window.ArveBlockJsBefore;delete m?.align?.options?.center;const f=new DOMParser;function g(e){if(!e)throw new Error("no options");return Object.entries(e).map((([e,t])=>({label:t,value:e})))}function x(e,t,r){if("url"===e){const n=f.parseFromString(t,"text/html").querySelector("iframe");if(n&&n.getAttribute("src")){if(r.setAttributes({[e]:n.getAttribute("src")}),n.width&&n.height){const e=function(e,t){if(_(e)&&_(t)){const r=parseInt(e),n=parseInt(t),i=j(r,n);return r/i+":"+n/i}return e+":"+t}(n.width,n.height);"16:9"!==e&&r.setAttributes({aspect_ratio:e})}return}}r.setAttributes({[e]:t})}function v(e){const r=[],n={},i=(0,u.jsx)("p",{children:(0,t.__)("To edit the featured image, you need permission to upload media.")});let a;return Object.values(m).forEach((e=>{n[e.tab]=[]})),Object.entries(m).forEach((([r,l])=>{const c=e.attributes[r];n[l.tab].push((0,u.jsxs)(d.Fragment,{children:["select"===l.ui_element&&(0,u.jsx)(s.SelectControl,{value:c,label:l.label,help:w(l?.description),options:g(l.options),onChange:t=>e.setAttributes({[r]:""===t?void 0:t})}),"checkbox"===l.ui_element_type&&(0,u.jsx)(s.ToggleControl,{label:l.label,help:w(l?.description),checked:!!c,onChange:t=>e.setAttributes({[r]:t})},r),["text","number"].includes(l.ui_element_type)&&(0,u.jsx)(s.TextControl,{label:l.label,placeholder:l.placeholder,help:w(l?.description),value:c,onChange:t=>{x(r,t,e)}}),"image_upload"===l.ui&&(0,u.jsxs)(s.BaseControl,{className:"editor-post-featured-image",help:w(l?.description),children:[(0,u.jsx)(o.MediaUploadCheck,{fallback:i,children:(0,u.jsx)(o.MediaUpload,{title:(0,t.__)("Thumbnail"),onSelect:t=>(a=t,e.setAttributes({[r]:t.id.toString(),[r+"_url"]:t.url})),allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>((e,r)=>(0,u.jsxs)("div",{className:"editor-post-featured-image__container",children:[(0,u.jsxs)(s.Button,{className:r?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":r?(0,t.__)("Edit or update the image"):null,"aria-describedby":r?`editor-post-featured-image-${r}-describedby`:"",children:[!!r&&!1,!r&&(0,t.__)("Set Thumbnail")]}),(0,u.jsx)(s.DropZone,{})]}))(e,c),value:c})}),!!c&&!1,!!c&&(0,u.jsx)(o.MediaUploadCheck,{children:(0,u.jsx)(s.Button,{onClick:()=>e.setAttributes({[r]:"",[r+"_url"]:""}),isDestructive:!0,children:(0,t.__)("Remove Thumbnail")})},r+"-MediaUploadCheck-3")]})]},r+"-fragment"))})),n.main.push((0,u.jsx)(s.BaseControl,{help:(0,t.__)("You can disable the extensive help texts on the ARVE settings page to clean up this UI","advanced-responsive-video-embedder"),children:(0,u.jsx)(s.BaseControl.VisualLabel,{children:(0,t.__)("Info","advanced-responsive-video-embedder")})},"info")),Object.keys(n).forEach((e=>{var t;r.push((0,u.jsx)(s.PanelBody,{title:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),initialOpen:!0,children:n[e]},e))})),r}function w(e){if(!e)return"";const t=f.parseFromString(e,"text/html"),r=t.querySelector("a");if(r){const n=r.getAttribute("href")||"",i=r.textContent||"",o=(e=t.body.textContent||"").split(i);if(2!==o.length)throw new Error("textSplit.length must be 2");return(0,u.jsxs)(u.Fragment,{children:[o[0],(0,u.jsx)("a",{href:n,children:i}),o[1]]})}return e}function _(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function j(e,t){return t?j(t,e%t):e}(0,a.registerBlockType)(h,{edit:function(e){const{attributes:{mode:t,align:r,maxwidth:n}}=e;let s=!0;const a={},l=JSON.parse(JSON.stringify(e.attributes));delete l.align,delete l.maxwidth,!n||"left"!==r&&"right"!==r?"left"!==r&&"right"!==r||(a.width="100%",a.maxWidth=b.align_maxwidth):(a.width="100%",a.maxWidth=n);const d=(0,o.useBlockProps)({style:a});return("normal"===t||!t&&"normal"===b.mode)&&(s=!1),(0,u.jsxs)(u.Fragment,{children:[(0,p.createElement)("div",{...d,key:"block"},(0,u.jsx)(i(),{className:c()({"arve-ssr":!0,"arve-ssr--pointer-events-none":!s}),block:"nextgenthemes/arve-block",attributes:l,skipBlockSupportAttributes:!0})),(0,u.jsx)(o.InspectorControls,{children:v(e)},"insp")]})}})})()})();
     1(()=>{var e={584:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"UU":"nextgenthemes/arve-block"}'),t=window.wp.i18n,n=window.wp.serverSideRender;var i=r.n(n);const o=window.wp.blockEditor,s=window.wp.components,a=window.wp.blocks;var l=r(584),c=r.n(l);const d=window.wp.element,u=window.ReactJSXRuntime,p=window.React,{UU:h}=e,{settings:m,options:b}=window.ArveBlockJsBefore;delete m?.align?.options?.center;const f=new DOMParser;function g(e){if(!e)throw new Error("no options");return Object.entries(e).map(([e,t])=>({label:t,value:e}))}function x(e,t,r){if("url"===e){const n=f.parseFromString(t,"text/html").querySelector("iframe");if(n&&n.getAttribute("src")){if(r.setAttributes({[e]:n.getAttribute("src")}),n.width&&n.height){const e=function(e,t){if(_(e)&&_(t)){const r=parseInt(e),n=parseInt(t),i=j(r,n);return r/i+":"+n/i}return e+":"+t}(n.width,n.height);"16:9"!==e&&r.setAttributes({aspect_ratio:e})}return}}r.setAttributes({[e]:t})}function v(e){const r=[],n={},i=(0,u.jsx)("p",{children:(0,t.__)("To edit the featured image, you need permission to upload media.")});let a;return Object.values(m).forEach(e=>{n[e.tab]=[]}),Object.entries(m).forEach(([r,l])=>{const c=e.attributes[r];n[l.tab].push((0,u.jsxs)(d.Fragment,{children:["select"===l.ui_element&&(0,u.jsx)(s.SelectControl,{value:c,label:l.label,help:w(l?.description),options:g(l.options),onChange:t=>e.setAttributes({[r]:""===t?void 0:t})}),"checkbox"===l.ui_element_type&&(0,u.jsx)(s.ToggleControl,{label:l.label,help:w(l?.description),checked:!!c,onChange:t=>e.setAttributes({[r]:t})},r),["text","number"].includes(l.ui_element_type)&&(0,u.jsx)(s.TextControl,{label:l.label,placeholder:l.placeholder,help:w(l?.description),value:c,onChange:t=>{x(r,t,e)}}),"image_upload"===l.ui&&(0,u.jsxs)(s.BaseControl,{className:"editor-post-featured-image",help:w(l?.description),children:[(0,u.jsx)(o.MediaUploadCheck,{fallback:i,children:(0,u.jsx)(o.MediaUpload,{title:(0,t.__)("Thumbnail"),onSelect:t=>(a=t,e.setAttributes({[r]:t.id.toString(),[r+"_url"]:t.url})),allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>((e,r)=>(0,u.jsxs)("div",{className:"editor-post-featured-image__container",children:[(0,u.jsxs)(s.Button,{className:r?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":r?(0,t.__)("Edit or update the image"):null,"aria-describedby":r?`editor-post-featured-image-${r}-describedby`:"",children:[!!r&&!1,!r&&(0,t.__)("Set Thumbnail")]}),(0,u.jsx)(s.DropZone,{})]}))(e,c),value:c})}),!!c&&!1,!!c&&(0,u.jsx)(o.MediaUploadCheck,{children:(0,u.jsx)(s.Button,{onClick:()=>e.setAttributes({[r]:"",[r+"_url"]:""}),isDestructive:!0,children:(0,t.__)("Remove Thumbnail")})},r+"-MediaUploadCheck-3")]})]},r+"-fragment"))}),n.main.push((0,u.jsx)(s.BaseControl,{help:(0,t.__)("You can disable the extensive help texts on the ARVE settings page to clean up this UI","advanced-responsive-video-embedder"),children:(0,u.jsx)(s.BaseControl.VisualLabel,{children:(0,t.__)("Info","advanced-responsive-video-embedder")})},"info")),Object.keys(n).forEach(e=>{var t;r.push((0,u.jsx)(s.PanelBody,{title:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),initialOpen:!0,children:n[e]},e))}),r}function w(e){if(!e)return"";const t=f.parseFromString(e,"text/html"),r=t.querySelector("a");if(r){const n=r.getAttribute("href")||"",i=r.textContent||"",o=(e=t.body.textContent||"").split(i);if(2!==o.length)throw new Error("textSplit.length must be 2");return(0,u.jsxs)(u.Fragment,{children:[o[0],(0,u.jsx)("a",{href:n,children:i}),o[1]]})}return e}function _(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function j(e,t){return t?j(t,e%t):e}(0,a.registerBlockType)(h,{edit:function(e){const{attributes:{mode:t,align:r,maxwidth:n}}=e;let s=!0;const a={},l=JSON.parse(JSON.stringify(e.attributes));delete l.align,delete l.maxwidth,!n||"left"!==r&&"right"!==r?"left"!==r&&"right"!==r||(a.width="100%",a.maxWidth=b.align_maxwidth):(a.width="100%",a.maxWidth=n);const d=(0,o.useBlockProps)({style:a});return("normal"===t||!t&&"normal"===b.mode)&&(s=!1),(0,u.jsxs)(u.Fragment,{children:[(0,p.createElement)("div",{...d,key:"block"},(0,u.jsx)(i(),{className:c()({"arve-ssr":!0,"arve-ssr--pointer-events-none":!s}),block:"nextgenthemes/arve-block",attributes:l,skipBlockSupportAttributes:!0})),(0,u.jsx)(o.InspectorControls,{children:v(e)},"insp")]})}})})()})();
  • advanced-responsive-video-embedder/trunk/build/block.json

    r3260040 r3338450  
    1414    "odysee"
    1515  ],
    16   "version": "10.6.12",
     16  "version": "10.6.13",
    1717  "textdomain": "advanced-responsive-video-embedder",
    1818  "supports": {
  • advanced-responsive-video-embedder/trunk/build/main.asset.php

    r3252510 r3338450  
    1 <?php return array('dependencies' => array(), 'version' => '462483de06c61395403b');
     1<?php return array('dependencies' => array(), 'version' => '99cbf1962db5106f860d');
  • advanced-responsive-video-embedder/trunk/build/main.js

    r3252510 r3338450  
    1 (()=>{"use strict";const e=document,t=e.querySelectorAll.bind(e),r=window.jQuery;function o(){t(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach((e=>{i(e)})),t(".ast-oembed-container").forEach((e=>{e.querySelector(".arve")&&i(e)})),t(".arve-iframe, .arve-video").forEach((e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")}))}function i(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var d;"html"!==e.documentElement.id&&(e.documentElement.id?e.body.id||(e.body.id="html"):e.documentElement.id="html"),d=()=>{o()},void 0!==e&&("complete"!==e.readyState&&"interactive"!==e.readyState?e.addEventListener("DOMContentLoaded",d):d()),r&&void 0!==r.fn.fitVids&&r(document).ready((()=>{setTimeout((()=>{o()}),1)}))})();
     1(()=>{"use strict";const e=document,t=e.querySelectorAll.bind(e),r=window.jQuery;function o(){t(".arve p, .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach(e=>{i(e)}),t(".ast-oembed-container").forEach(e=>{e.querySelector(".arve")&&i(e)}),t(".arve-iframe, .arve-video").forEach(e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")})}function i(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}var d;"html"!==e.documentElement.id&&(e.documentElement.id?e.body.id||(e.body.id="html"):e.documentElement.id="html"),d=()=>{o()},void 0!==e&&("complete"!==e.readyState&&"interactive"!==e.readyState?e.addEventListener("DOMContentLoaded",d):d()),r&&void 0!==r.fn.fitVids&&r(document).ready(()=>{setTimeout(()=>{o()},1)})})();
  • advanced-responsive-video-embedder/trunk/build/shortcode-ui.asset.php

    r3220773 r3338450  
    1 <?php return array('dependencies' => array(), 'version' => '05296a7015ea33cc85bc');
     1<?php return array('dependencies' => array(), 'version' => 'eb2083646fcc18986be0');
  • advanced-responsive-video-embedder/trunk/build/shortcode-ui.js

    r3220773 r3338450  
    1 (()=>{"use strict";const t=window._,r=new DOMParser;window.wp.shortcake.hooks.addAction("arve.url",(function(e,i,n){function o(r){return t.find(i,(function(t){return r===t.model.get("attr")}))}if(void 0===e.value)return;const u=o("url").$el.find("input"),a=o("aspect_ratio").$el.find("input"),c=r.parseFromString(e.value,"text/html").querySelector("iframe");if(c&&c.hasAttribute("src")){u.val(c.src).trigger("input");const t=c.width,r=c.height;t&&r&&a.val(t+":"+r).trigger("input")}}))})();
     1(()=>{"use strict";const t=window._,r=new DOMParser;window.wp.shortcake.hooks.addAction("arve.url",function(e,i,n){function o(r){return t.find(i,function(t){return r===t.model.get("attr")})}if(void 0===e.value)return;const u=o("url").$el.find("input"),a=o("aspect_ratio").$el.find("input"),c=r.parseFromString(e.value,"text/html").querySelector("iframe");if(c&&c.hasAttribute("src")){u.val(c.src).trigger("input");const t=c.width,r=c.height;t&&r&&a.val(t+":"+r).trigger("input")}})})();
  • advanced-responsive-video-embedder/trunk/changelog.md

    r3260040 r3338450  
    44* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    55
     6### 2025-07-30 10.6.13 ###
     7
     8* Fix: _load_textdomain_just_in_time was called incorrectly.
     9* Fix: Minor visible error on debug tab with WP_DEBUG enabled.
     10
    611### 2025-03-22 10.6.12 ###
     12
    713* Fix: HTML mistake on the setting page.
    814* Improved: Hide some old errors.
  • advanced-responsive-video-embedder/trunk/php/Admin/fn-settings-page.php

    r3260040 r3338450  
    247247    $youtube_api_error = get_option( 'arve_youtube_api_error' );
    248248
    249     if ( ! $youtube_api_error ) {
     249    if ( ! is_wp_error( $youtube_api_error ) ) {
    250250        return;
    251251    }
    252252
    253     if ( ! is_wp_error( $youtube_api_error ) ) {
    254         wp_trigger_error( __FUNCTION__, 'Not WP_Error' );
    255         return;
    256     }
    257 
    258     $code    = $youtube_api_error->get_error_code();
     253    #$code    = $youtube_api_error->get_error_code();
    259254    $message = $youtube_api_error->get_error_message();
    260255    $data    = $youtube_api_error->get_error_data();
  • advanced-responsive-video-embedder/trunk/php/fn-misc.php

    r3252510 r3338450  
    121121    return is_feed() && ! options()['feed'] ? true : false;
    122122}
    123 
    124 
    125123
    126124/**
  • advanced-responsive-video-embedder/trunk/php/init.php

    r3259912 r3338450  
    55namespace Nextgenthemes\ARVE;
    66
    7 add_action( 'plugins_loaded', __NAMESPACE__ . '\init', 9 );
     7// Stop outdated addons from executing
     8remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
     9remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\RandomVideo\init', 15 );
     10remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Privacy\init', 16 );
     11
     12add_action( 'init', __NAMESPACE__ . '\init', 9 );
    813add_action( 'admin_init', __NAMESPACE__ . '\init_admin', 9 );
    914
    1015function init(): void {
    1116
    12     add_option( 'arve_install_date', time() );
    13 
    14     if ( version_compare( get_option( 'arve_version', '' ), '10.3.5-alpha1', '<' ) ) {
    15         add_action(
    16             'wp_loaded',
    17             function (): void {
    18                 delete_oembed_cache( '', 'arve-cachetime' );
    19             }
    20         );
    21     }
    22 
    23     update_option( 'arve_version', VERSION );
    24 
    2517    require_once PLUGIN_DIR . '/php/Video.php';
     18    require_once PLUGIN_DIR . '/php/fn-cache.php';
    2619    require_once PLUGIN_DIR . '/php/fn-assets.php';
    2720    require_once PLUGIN_DIR . '/php/fn-html-output.php';
     
    3528    require_once PLUGIN_DIR . '/php/fn-settings.php';
    3629
    37     settings_instance();
     30    add_option( 'arve_install_date', time() );
     31    maybe_delete_oembed_cache(); // Must be before update_option arve_version
     32    update_option( 'arve_version', VERSION );
    3833
     34    add_action( 'init', __NAMESPACE__ . '\settings_instance' );
    3935    add_action( 'init', __NAMESPACE__ . '\init_nextgenthemes_settings' );
    4036    add_action( 'init', __NAMESPACE__ . '\register_assets' );
     37    add_action( 'init', __NAMESPACE__ . '\create_shortcodes' );
     38    add_action( 'init', __NAMESPACE__ . '\create_url_handlers' );
    4139    add_filter( 'mce_css', __NAMESPACE__ . '\add_styles_to_mce' );
    4240    add_filter( 'oembed_remote_get_args', __NAMESPACE__ . '\vimeo_referer', 10, 2 );
    43     add_action( 'plugins_loaded', __NAMESPACE__ . '\create_shortcodes', 999 );
    44     add_action( 'plugins_loaded', __NAMESPACE__ . '\create_url_handlers', 999 );
    4541    add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\action_wp_enqueue_scripts' );
    4642    add_filter( 'render_block_core/embed', __NAMESPACE__ . '\remove_embed_block_aspect_ratio' );
     
    5046    add_filter( 'embed_oembed_html', __NAMESPACE__ . '\filter_embed_oembed_html', OEMBED_HTML_PRIORITY, 4 );
    5147    add_action( 'elementor/widgets/register', __NAMESPACE__ . '\register_elementor_widget' );
    52 
    53     // Stop outdated addons from executing
    54     remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
    55     remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\RandomVideo\init', 15 );
    56     remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Privacy\init', 16 );
    5748
    5849    foreach ( ADDON_NAMES as $addon_name ) {
     
    10899    }
    109100}
    110 
    111 /**
    112  * Deletes the oEmbed caches.
    113  *
    114  * @link https://github.com/wp-cli/embed-command/blob/c868ec31c65ffa1a61868a91c198a5d815b5bafa/src/Cache_Command.php
    115  * @author Nicolas Jonas <https://nextgenthemes.com>
    116  * @author Nicolas Lemoine <https://n5s.dev>
    117  * @copyright Copyright (c) 2025, Nicolas Jonas
    118  * @copyright Copyright (c) 2024, Nicolas Lemoine
    119  *
    120  * @return int|false The number of rows deleted or false on failure.
    121  */
    122 function delete_oembed_cache( string $like = '', string $not_like = '' ): string {
    123 
    124     global $wpdb, $wp_embed;
    125 
    126     $message = '';
    127 
    128     // Get post meta oEmbed caches
    129     if ( $like ) {
    130         $oembed_post_meta_post_ids = (array) $wpdb->get_col(
    131             $wpdb->prepare(
    132                 "SELECT DISTINCT post_id FROM $wpdb->postmeta WHERE meta_key LIKE %s AND meta_value LIKE %s",
    133                 $wpdb->esc_like( '_oembed_' ) . '%',
    134                 '%' . $wpdb->esc_like( $like ) . '%'
    135             )
    136         );
    137     } elseif ( $not_like ) {
    138         $oembed_post_meta_post_ids = (array) $wpdb->get_col(
    139             $wpdb->prepare(
    140                 "SELECT DISTINCT post_id FROM $wpdb->postmeta
    141                 WHERE meta_key LIKE %s
    142                 AND meta_key NOT LIKE %s
    143                 AND meta_value NOT LIKE %s",
    144                 $wpdb->esc_like( '_oembed_' ) . '%',
    145                 $wpdb->esc_like( '_oembed_time_' ) . '%',
    146                 '%' . $wpdb->esc_like( $not_like ) . '%'
    147             )
    148         );
    149     } else {
    150         $oembed_post_meta_post_ids = (array) $wpdb->get_col(
    151             $wpdb->prepare(
    152                 "SELECT DISTINCT post_id FROM $wpdb->postmeta WHERE meta_key LIKE %s",
    153                 $wpdb->esc_like( '_oembed_' ) . '%'
    154             )
    155         );
    156     }
    157 
    158     // Get posts oEmbed caches
    159     if ( $like ) {
    160         $oembed_post_post_ids = (array) $wpdb->get_col(
    161             $wpdb->prepare(
    162                 "SELECT ID FROM $wpdb->posts WHERE post_type = 'oembed_cache' AND post_content LIKE %s",
    163                 '%' . $wpdb->esc_like( $like ) . '%'
    164             )
    165         );
    166     } elseif ( $not_like ) {
    167         $oembed_post_post_ids = (array) $wpdb->get_col(
    168             $wpdb->prepare(
    169                 "SELECT ID FROM $wpdb->posts WHERE post_type = 'oembed_cache' AND post_content NOT LIKE %s",
    170                 '%' . $wpdb->esc_like( $not_like ) . '%'
    171             )
    172         );
    173     } else {
    174         $oembed_post_post_ids = (array) $wpdb->get_col(
    175             "SELECT ID FROM $wpdb->posts WHERE post_type = 'oembed_cache'"
    176         );
    177     }
    178 
    179     // Get transient oEmbed caches
    180     if ( $like ) {
    181         $oembed_transients = $wpdb->get_col(
    182             $wpdb->prepare(
    183                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s AND option_value LIKE %s",
    184                 $wpdb->esc_like( '_transient_oembed_' ) . '%',
    185                 '%' . $wpdb->esc_like( $like ) . '%'
    186             )
    187         );
    188     } elseif ( $not_like ) {
    189         $oembed_transients = $wpdb->get_col(
    190             $wpdb->prepare(
    191                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s AND option_value NOT LIKE %s",
    192                 $wpdb->esc_like( '_transient_oembed_' ) . '%',
    193                 '%' . $wpdb->esc_like( $not_like ) . '%'
    194             )
    195         );
    196     } else {
    197         $oembed_transients = $wpdb->get_col(
    198             $wpdb->prepare(
    199                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s",
    200                 $wpdb->esc_like( '_transient_oembed_' ) . '%'
    201             )
    202         );
    203     }
    204 
    205     $oembed_caches = array(
    206         'post'        => $oembed_post_meta_post_ids,
    207         'oembed post' => $oembed_post_post_ids,
    208         'transient'   => $oembed_transients,
    209     );
    210 
    211     $total = array_sum(
    212         array_map(
    213             function ( $items ) {
    214                 return count( $items );
    215             },
    216             $oembed_caches
    217         )
    218     );
    219 
    220     // Delete post meta oEmbed caches
    221     foreach ( $oembed_post_meta_post_ids as $post_id ) {
    222         $wp_embed->delete_oembed_caches( $post_id );
    223     }
    224 
    225     // Delete posts oEmbed caches
    226     foreach ( $oembed_post_post_ids as $post_id ) {
    227         wp_delete_post( $post_id, true );
    228     }
    229 
    230     // Delete transient oEmbed caches
    231     foreach ( $oembed_transients as $option_name ) {
    232         delete_transient( str_replace( '_transient_', '', $option_name ) );
    233     }
    234 
    235     if ( $total > 0 ) {
    236         $details = array();
    237         foreach ( $oembed_caches as $type => $items ) {
    238             $count     = count( $items );
    239             $details[] = sprintf(
    240                 '%1$d %2$s %3$s',
    241                 $count,
    242                 $type,
    243                 esc_html__( 'cache(s)', 'advanced-responsive-video-embedder' )
    244             );
    245         }
    246 
    247         $message .= sprintf(
    248             'Cleared %1$d oEmbed %2$s: %3$s.',
    249             $total,
    250             esc_html__( 'cache(s)', 'advanced-responsive-video-embedder' ),
    251             implode( ', ', $details )
    252         );
    253 
    254     } else {
    255         $message .= esc_html__( 'No oEmbed caches to clear!', 'advanced-responsive-video-embedder' );
    256     }
    257 
    258     return $message;
    259 }
    260 
    261 /**
    262  * @global wpdb $wpdb
    263  */
    264 function delete_transients( string $prefix, string $contains = '' ): string {
    265 
    266     global $wpdb;
    267 
    268     if ( $contains ) {
    269         $transients = $wpdb->get_col(
    270             $wpdb->prepare(
    271                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s AND option_value LIKE %s",
    272                 $wpdb->esc_like( '_transient_' . $prefix ) . '%',
    273                 '%' . $wpdb->esc_like( $contains ) . '%'
    274             )
    275         );
    276     } else {
    277         $transients = $wpdb->get_col(
    278             $wpdb->prepare(
    279                 "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s",
    280                 $wpdb->esc_like( '_transient_' . $prefix ) . '%'
    281             )
    282         );
    283     }
    284 
    285     $count = 0;
    286 
    287     foreach ( $transients as $transient_name ) {
    288         // Strip '_transient_' to get the key for delete_transient()
    289         $transient_key = str_replace( '_transient_', '', $transient_name );
    290         if ( delete_transient( $transient_key ) ) {
    291             ++$count;
    292         }
    293     }
    294 
    295     if ( $count > 0 ) {
    296         return sprintf(
    297             // translators: %d: Number of transients deleted.
    298             esc_html__( 'Deleted %d transients.', 'advanced-responsive-video-embedder' ),
    299             $count
    300         );
    301     }
    302 
    303     return esc_html__( 'No transients deleted.', 'advanced-responsive-video-embedder' );
    304 }
  • advanced-responsive-video-embedder/trunk/readme.txt

    r3260040 r3338450  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 10.6.12
     8Stable tag: 10.6.13
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    196196* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    197197
     198### 2025-07-30 10.6.13 ###
     199
     200* Fix: _load_textdomain_just_in_time was called incorrectly.
     201* Fix: Minor visible error on debug tab with WP_DEBUG enabled.
     202
    198203### 2025-03-22 10.6.12 ###
     204
    199205* Fix: HTML mistake on the setting page.
    200206* Improved: Hide some old errors.
  • advanced-responsive-video-embedder/trunk/src/block.json

    r3260040 r3338450  
    1414        "odysee"
    1515    ],
    16     "version": "10.6.12",
     16    "version": "10.6.13",
    1717    "textdomain": "advanced-responsive-video-embedder",
    1818    "supports": {
  • advanced-responsive-video-embedder/trunk/vendor/autoload_packages.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/automattic/jetpack-autoloader/CHANGELOG.md

    r3259912 r3338450  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [5.0.9] - 2025-07-28
     9### Changed
     10- Exclude development files from production build of the package. [#44456]
     11
     12## [5.0.8] - 2025-06-23
     13### Fixed
     14- Autoloader: Prevent double slash in autoloader path. [#44030]
     15
     16## [5.0.7] - 2025-04-28
     17### Changed
     18- Internal updates.
     19
     20## [5.0.6] - 2025-03-31
     21### Changed
     22- Internal updates.
    723
    824## [5.0.5] - 2025-03-21
     
    419435- Add Custom Autoloader
    420436
     437[5.0.9]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.8...v5.0.9
     438[5.0.8]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.7...v5.0.8
     439[5.0.7]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.6...v5.0.7
     440[5.0.6]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.5...v5.0.6
    421441[5.0.5]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.4...v5.0.5
    422442[5.0.4]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.3...v5.0.4
  • advanced-responsive-video-embedder/trunk/vendor/automattic/jetpack-autoloader/README.md

    r3185239 r3338450  
    3434In the main plugin you will also need to include the files like this.
    3535```php
    36 require_once  plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
     36require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload_packages.php';
    3737```
    3838
  • advanced-responsive-video-embedder/trunk/vendor/automattic/jetpack-autoloader/composer.json

    r3259912 r3338450  
    1818    "require-dev": {
    1919        "composer/composer": "^2.2",
    20         "yoast/phpunit-polyfills": "^3.0.0",
    21         "automattic/jetpack-changelogger": "^6.0.2",
    22         "automattic/phpunit-select-config": "^1.0.1"
     20        "yoast/phpunit-polyfills": "^4.0.0",
     21        "automattic/jetpack-changelogger": "^6.0.5",
     22        "automattic/phpunit-select-config": "^1.0.3"
    2323    },
    2424    "autoload": {
  • advanced-responsive-video-embedder/trunk/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php

    r3259912 r3338450  
    2222class AutoloadGenerator {
    2323
    24     const VERSION = '5.0.5';
     24    const VERSION = '5.0.9';
    2525
    2626    /**
  • advanced-responsive-video-embedder/trunk/vendor/composer/installed.json

    r3259912 r3338450  
    33        {
    44            "name": "automattic/jetpack-autoloader",
    5             "version": "v5.0.5",
    6             "version_normalized": "5.0.5.0",
     5            "version": "v5.0.9",
     6            "version_normalized": "5.0.9.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-autoloader.git",
    10                 "reference": "7bf3172e73c27c72d01d6de4796a41c7abc06d5a"
     10                "reference": "c9e9b82cc515d9ed093fa0ff21245f277aeceb4e"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/7bf3172e73c27c72d01d6de4796a41c7abc06d5a",
    15                 "reference": "7bf3172e73c27c72d01d6de4796a41c7abc06d5a",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/c9e9b82cc515d9ed093fa0ff21245f277aeceb4e",
     15                "reference": "c9e9b82cc515d9ed093fa0ff21245f277aeceb4e",
    1616                "shasum": ""
    1717            },
     
    2121            },
    2222            "require-dev": {
    23                 "automattic/jetpack-changelogger": "^6.0.2",
    24                 "automattic/phpunit-select-config": "^1.0.1",
     23                "automattic/jetpack-changelogger": "^6.0.5",
     24                "automattic/phpunit-select-config": "^1.0.3",
    2525                "composer/composer": "^2.2",
    26                 "yoast/phpunit-polyfills": "^3.0.0"
     26                "yoast/phpunit-polyfills": "^4.0.0"
    2727            },
    28             "time": "2025-03-21T09:05:50+00:00",
     28            "time": "2025-07-28T19:49:50+00:00",
    2929            "type": "composer-plugin",
    3030            "extra": {
     
    6565            ],
    6666            "support": {
    67                 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.5"
     67                "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.9"
    6868            },
    6969            "install-path": "../automattic/jetpack-autoloader"
     
    7676                "type": "path",
    7777                "url": "../../../../../../dev/composer-packages/wp-settings",
    78                 "reference": "8570f0355e41c34591139b5b891b62617e4f444b"
     78                "reference": "4e26cd875e2ba18f6f1bb523ef51d01ec7f7869d"
    7979            },
    8080            "require": {
  • advanced-responsive-video-embedder/trunk/vendor/composer/installed.php

    r3260040 r3338450  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '07a7e1e54dc954fa6c60c90ad034530d94911f1d',
     6        'reference' => 'ccd71c526402379c26ae9a45529f7222283d6cd3',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'automattic/jetpack-autoloader' => array(
    14             'pretty_version' => 'v5.0.5',
    15             'version' => '5.0.5.0',
    16             'reference' => '7bf3172e73c27c72d01d6de4796a41c7abc06d5a',
     14            'pretty_version' => 'v5.0.9',
     15            'version' => '5.0.9.0',
     16            'reference' => 'c9e9b82cc515d9ed093fa0ff21245f277aeceb4e',
    1717            'type' => 'composer-plugin',
    1818            'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '07a7e1e54dc954fa6c60c90ad034530d94911f1d',
     25            'reference' => 'ccd71c526402379c26ae9a45529f7222283d6cd3',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '8570f0355e41c34591139b5b891b62617e4f444b',
     34            'reference' => '4e26cd875e2ba18f6f1bb523ef51d01ec7f7869d',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../nextgenthemes/wp-settings',
  • advanced-responsive-video-embedder/trunk/vendor/composer/jetpack_autoload_classmap.php

    r3259912 r3338450  
    88return array(
    99    'Autoloader' => array(
    10         'version' => '5.0.5',
     10        'version' => '5.0.9',
    1111        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php'
    1212    ),
    1313    'Autoloader_Handler' => array(
    14         'version' => '5.0.5',
     14        'version' => '5.0.9',
    1515        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php'
    1616    ),
    1717    'Autoloader_Locator' => array(
    18         'version' => '5.0.5',
     18        'version' => '5.0.9',
    1919        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php'
    2020    ),
    2121    'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
    22         'version' => '5.0.5',
     22        'version' => '5.0.9',
    2323        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
    2424    ),
    2525    'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
    26         'version' => '5.0.5',
     26        'version' => '5.0.9',
    2727        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
    2828    ),
    2929    'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
    30         'version' => '5.0.5',
     30        'version' => '5.0.9',
    3131        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
    3232    ),
    3333    'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
    34         'version' => '5.0.5',
     34        'version' => '5.0.9',
    3535        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
    3636    ),
    3737    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
    38         'version' => '5.0.5',
     38        'version' => '5.0.9',
    3939        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
    4040    ),
    4141    'Container' => array(
    42         'version' => '5.0.5',
     42        'version' => '5.0.9',
    4343        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php'
    4444    ),
    4545    'Hook_Manager' => array(
    46         'version' => '5.0.5',
     46        'version' => '5.0.9',
    4747        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php'
    4848    ),
    4949    'Latest_Autoloader_Guard' => array(
    50         'version' => '5.0.5',
     50        'version' => '5.0.9',
    5151        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php'
    5252    ),
    5353    'Manifest_Reader' => array(
    54         'version' => '5.0.5',
     54        'version' => '5.0.9',
    5555        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php'
    5656    ),
    5757    'PHP_Autoloader' => array(
    58         'version' => '5.0.5',
     58        'version' => '5.0.9',
    5959        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php'
    6060    ),
    6161    'Path_Processor' => array(
    62         'version' => '5.0.5',
     62        'version' => '5.0.9',
    6363        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php'
    6464    ),
    6565    'Plugin_Locator' => array(
    66         'version' => '5.0.5',
     66        'version' => '5.0.9',
    6767        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php'
    6868    ),
    6969    'Plugins_Handler' => array(
    70         'version' => '5.0.5',
     70        'version' => '5.0.9',
    7171        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php'
    7272    ),
    7373    'Shutdown_Handler' => array(
    74         'version' => '5.0.5',
     74        'version' => '5.0.9',
    7575        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
    7676    ),
    7777    'Version_Loader' => array(
    78         'version' => '5.0.5',
     78        'version' => '5.0.9',
    7979        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php'
    8080    ),
    8181    'Version_Selector' => array(
    82         'version' => '5.0.5',
     82        'version' => '5.0.9',
    8383        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php'
    8484    ),
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-autoloader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-container.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-hook-manager.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-manifest-reader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-path-processor.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-php-autoloader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-plugin-locator.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-plugins-handler.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-version-loader.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-version-selector.php

    r3259912 r3338450  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_5;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_9;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/nextgenthemes/wp-settings/build/settings.asset.php

    r3259912 r3338450  
    1 <?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e4629483261831787ccb', 'type' => 'module');
     1<?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => '53165e7fe2b504514ae7', 'type' => 'module');
  • advanced-responsive-video-embedder/trunk/vendor/nextgenthemes/wp-settings/build/settings.js

    r3259912 r3338450  
    1 import*as e from"@wordpress/interactivity";var t={};function o(e,t){if(n(e)&&n(t)){const o=parseInt(e),n=parseInt(t),s=i(o,n);return`${o/s}:${n/s}`}return`${e}:${t}`}function n(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function i(e,t){return t?i(t,e%t):e}t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const s=(d={getConfig:()=>e.getConfig,getContext:()=>e.getContext,store:()=>e.store},g={},t.d(g,d),g),r=new DOMParser,a=document,c=a.querySelector.bind(a),l=c('dialog[data-wp-interactive="nextgenthemes_arve_dialog"]');var d,g;!function(){const e=c('[data-wp-interactive^="nextgenthemes"]')?.dataset?.wpInteractive;if(!e)return;const{state:t,actions:n,callbacks:i,helpers:a}=(0,s.store)(e,{state:{isValidLicenseKey:()=>{const e=(0,s.getContext)();return"valid"===t.options[e.option_key+"_status"]},is32charactersLong:()=>{const e=(0,s.getContext)();return 32===t.options[e.option_key].length},get isActiveTab(){const e=(0,s.getContext)();return!e.activeTabs||!0===e?.activeTabs[e.tab]}},actions:{toggleHelp:()=>{t.help=!t.help},openShortcodeDialog:e=>{const t=e.target instanceof HTMLElement&&e.target.dataset.editor;l&&t?(l.dataset.editor=t,l.showModal()):console.error("Dialog or editorId not found")},insertShortcode:()=>{const e=l?.dataset.editor;if(e)if("content"===e)window.wp.media.editor.insert(t.shortcode);else{if(void 0===window.tinymce||!window.tinymce.get(e))return void console.error("TinyMCE not initialized for field: "+e);window.tinymce.get(e).insertContent(t.shortcode)}else console.error("Editor ID not found");n.closeShortcodeDialog()},closeShortcodeDialog:()=>{l&&l.close()},changeTab:()=>{const e=(0,s.getContext)();for(const t in e.activeTabs)e.activeTabs[t]=!1;e.activeTabs[e.tab]=!0},inputChange:o=>{const i=(0,s.getContext)(),r=o?.target instanceof HTMLInputElement,c=o?.target instanceof HTMLSelectElement;if(!r&&!c)throw new Error("event.target is not HTMLInputElement or HTMLSelectElement");"arveUrl"in o.target.dataset?a.extractFromEmbedCode(o.target.value):t.options[i.option_key]=o.target.value,"nextgenthemes_arve_dialog"!==e&&n.saveOptions()},checkboxChange:o=>{const i=(0,s.getContext)();t.options[i.option_key]=o.target.checked,"nextgenthemes_arve_dialog"!==e&&n.saveOptions()},selectImage:()=>{l&&l.close();const e=(0,s.getContext)(),o=window.wp.media({title:"Upload Image",multiple:!1}).open().on("select",(function(){const n=o.state().get("selection").first().toJSON().id;t.options[e.option_key]=n,l&&l.showModal()})).on("close",(function(){l&&l.showModal()}))},deleteCaches:()=>{const e=(0,s.getContext)();n.restCall("/delete-caches",{type:e.type,prefix:e.prefix,like:e.like,not_like:e.type,delete_option:e.delete_option})},saveOptionsReal:()=>{n.restCall("/save",t.options)},restCall:(e,o,n=!1)=>{if(t.isSaving)return void(t.message="trying to save too fast");const i=(0,s.getConfig)();t.isSaving=!0,t.message="Saving...",fetch(i.restUrl+e,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json","X-WP-Nonce":i.nonce}}).then((e=>{if(!e.ok)throw console.log(e),new Error("Network response was not ok");return e.json()})).then((e=>{t.message=e,setTimeout((()=>t.message=""),666)})).catch((e=>{t.message=e.message})).finally((()=>{t.isSaving=!1,n&&window.location.reload()}))},eddLicenseAction(){const e=(0,s.getContext)();n.restCall("/edd-license-action",{option_key:e.option_key,edd_store_url:e.edd_store_url,edd_action:e.edd_action,item_id:e.edd_item_id,license:t.options[e.option_key]},!0)},resetOptionsSection(){const e=(0,s.getConfig)(),o=(0,s.getContext)().tab;Object.entries(e.defaultOptions).forEach((([e,n])=>{"all"===o?Object.entries(n).forEach((([e,o])=>{t.options[e]=o})):Object.entries(n).forEach((([n,i])=>{e===o&&(t.options[n]=i)}))})),n.saveOptionsReal()}},callbacks:{updateShortcode(){let e="";for(const[o,n]of Object.entries(t.options))"credentialless"===o?!1===n&&(e+=`${o}="false" `):!0===n?e+=`${o}="true" `:n&&(e+=`${o}="${n}" `);t.shortcode="[arve "+e+"/]"}},helpers:{debugJson:e=>{t.debug=JSON.stringify(e,null,2)},extractFromEmbedCode:e=>{const n=r.parseFromString(e,"text/html").querySelector("iframe"),i=n&&n.getAttribute("src");if(i&&(e=i,n.width&&n.height)){const e=o(n.width,n.height);"16:9"!==e&&(t.options.aspect_ratio=e)}t.options.url=e}}});n.saveOptions=function(e){let t;return function(...o){const n=this;clearTimeout(t),t=window.setTimeout((()=>{t=void 0,e.apply(n,o)}),1111)}}(n.saveOptionsReal)}(),function(){const e=window.getComputedStyle(a.body).backgroundColor,t=c(".wrap--nextgenthemes");t&&t.setAttribute("style",`--ngt-wp-body-bg: ${e};`)}(),window.jQuery(document).on("click",'.arve-btn:not([data-editor="content"])',(e=>{e.preventDefault();const t=c('[data-wp-on--click="actions.openShortcodeDialog"][data-editor="content"]'),o=c('[data-wp-on--click="actions.insertShortcode"]');t&&o&&l?t.dispatchEvent(new Event("click")):console.error("Open btn, insert btn od dialog not found")}));
     1import{getConfig as e,getContext as t,store as o}from"@wordpress/interactivity";function n(e,t){if(i(e)&&i(t)){const o=parseInt(e),n=parseInt(t),i=s(o,n);return`${o/i}:${n/i}`}return`${e}:${t}`}function i(e){const t=Math.floor(Number(e));return t!==1/0&&String(t)===e&&t>0}function s(e,t){return t?s(t,e%t):e}const a=new DOMParser,r=document,c=r.querySelector.bind(r),l=c('dialog[data-wp-interactive="nextgenthemes_arve_dialog"]');!function(){const i=c('[data-wp-interactive^="nextgenthemes"]')?.dataset?.wpInteractive;if(!i)return;const{state:s,actions:r,callbacks:d,helpers:p}=o(i,{state:{isValidLicenseKey:()=>{const e=t();return"valid"===s.options[e.option_key+"_status"]},is32charactersLong:()=>{const e=t();return 32===s.options[e.option_key].length},get isActiveTab(){const e=t();return!e.activeTabs||!0===e?.activeTabs[e.tab]}},actions:{toggleHelp:()=>{s.help=!s.help},openShortcodeDialog:e=>{const t=e.target instanceof HTMLElement&&e.target.dataset.editor;l&&t?(l.dataset.editor=t,l.showModal()):console.error("Dialog or editorId not found")},insertShortcode:()=>{const e=l?.dataset.editor;if(e)if("content"===e)window.wp.media.editor.insert(s.shortcode);else{if(void 0===window.tinymce||!window.tinymce.get(e))return void console.error("TinyMCE not initialized for field: "+e);window.tinymce.get(e).insertContent(s.shortcode)}else console.error("Editor ID not found");r.closeShortcodeDialog()},closeShortcodeDialog:()=>{l&&l.close()},changeTab:()=>{const e=t();for(const t in e.activeTabs)e.activeTabs[t]=!1;e.activeTabs[e.tab]=!0},inputChange:e=>{const o=t(),n=e?.target instanceof HTMLInputElement,a=e?.target instanceof HTMLSelectElement;if(!n&&!a)throw new Error("event.target is not HTMLInputElement or HTMLSelectElement");"arveUrl"in e.target.dataset?p.extractFromEmbedCode(e.target.value):s.options[o.option_key]=e.target.value,"nextgenthemes_arve_dialog"!==i&&r.saveOptions()},checkboxChange:e=>{const o=t();s.options[o.option_key]=e.target.checked,"nextgenthemes_arve_dialog"!==i&&r.saveOptions()},selectImage:()=>{l&&l.close();const e=t(),o=window.wp.media({title:"Upload Image",multiple:!1}).open().on("select",function(){const t=o.state().get("selection").first().toJSON().id;s.options[e.option_key]=t,l&&l.showModal()}).on("close",function(){l&&l.showModal()})},deleteCaches:()=>{const e=t();r.restCall("/delete-caches",{type:e.type,prefix:e.prefix,like:e.like,not_like:e.type,delete_option:e.delete_option})},saveOptionsReal:()=>{r.restCall("/save",s.options)},restCall:(t,o,n=!1)=>{if(s.isSaving)return void(s.message="trying to save too fast");const i=e();s.isSaving=!0,s.message="Saving...",fetch(i.restUrl+t,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json","X-WP-Nonce":i.nonce}}).then(e=>{if(!e.ok)throw console.log(e),new Error("Network response was not ok");return e.json()}).then(e=>{s.message=e,setTimeout(()=>s.message="",666)}).catch(e=>{s.message=e.message}).finally(()=>{s.isSaving=!1,n&&window.location.reload()})},eddLicenseAction(){const e=t();r.restCall("/edd-license-action",{option_key:e.option_key,edd_store_url:e.edd_store_url,edd_action:e.edd_action,item_id:e.edd_item_id,license:s.options[e.option_key]},!0)},resetOptionsSection(){const o=e(),n=t().tab;Object.entries(o.defaultOptions).forEach(([e,t])=>{"all"===n?Object.entries(t).forEach(([e,t])=>{s.options[e]=t}):Object.entries(t).forEach(([t,o])=>{e===n&&(s.options[t]=o)})}),r.saveOptionsReal()}},callbacks:{updateShortcode(){let e="";for(const[t,o]of Object.entries(s.options))"credentialless"===t?!1===o&&(e+=`${t}="false" `):!0===o?e+=`${t}="true" `:o&&(e+=`${t}="${o}" `);s.shortcode="[arve "+e+"/]"}},helpers:{debugJson:e=>{s.debug=JSON.stringify(e,null,2)},extractFromEmbedCode:e=>{const t=a.parseFromString(e,"text/html").querySelector("iframe"),o=t&&t.getAttribute("src");if(o&&(e=o,t.width&&t.height)){const e=n(t.width,t.height);"16:9"!==e&&(s.options.aspect_ratio=e)}s.options.url=e}}});r.saveOptions=function(e){let t;return function(...o){const n=this;clearTimeout(t),t=window.setTimeout(()=>{t=void 0,e.apply(n,o)},1111)}}(r.saveOptionsReal)}(),function(){const e=window.getComputedStyle(r.body).backgroundColor,t=c(".wrap--nextgenthemes");t&&t.setAttribute("style",`--ngt-wp-body-bg: ${e};`)}(),window.jQuery(document).on("click",'.arve-btn:not([data-editor="content"])',e=>{e.preventDefault();const t=c('[data-wp-on--click="actions.openShortcodeDialog"][data-editor="content"]'),o=c('[data-wp-on--click="actions.insertShortcode"]');t&&o&&l?t.dispatchEvent(new Event("click")):console.error("Open btn, insert btn od dialog not found")});
Note: See TracChangeset for help on using the changeset viewer.