(()=>{"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")}})})();