(function(){"use strict";var d,n,r;const i=(d=document.querySelector("script[data-dashboard-widget-template-widget-l10n-dashboard-widget]"))===null||d===void 0?void 0:d.dataset.dashboardWidgetTemplateWidgetL10nDashboardWidget,a=document.querySelector("#new-template-type");if(a){const e=document.createElement("option");e.value="dashboard_widget",e.textContent=i;const o=a.querySelector('option[value*="edit_widget"]');a.insertBefore(e,o)}const t=document.querySelector("#quickfilters #widget-set-tab");if(t){const e=t.outerHTML.replace(/widget-set/g,"dashboard_widget"),o=document.createElement("template");o.innerHTML=e;const l=o.content;l.querySelector("a").textContent=i,(n=t.parentNode)===null||n===void 0||n.insertBefore(l,t)}(r=document.querySelector('#actions-bar-top-dashboard_widget-listing-form option[value="refresh_tmpl_templates"]'))===null||r===void 0||r.remove()})();
