Liferay.Loader.define("portal-search-web@6.0.53/js/utils/initializeClipboard",["module","exports","require","portal-search-web$clipboard","frontend-js-web"],(function(e,r,a){var o;window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({selector:e}){const r=new t.default(e);r.on("success",(()=>{(0,s.openToast)({message:Liferay.Language.get("copied-to-clipboard"),title:Liferay.Language.get("success"),type:"success"})})),r.on("error",(()=>{(0,s.openToast)({message:Liferay.Language.get("an-unexpected-error-occurred"),title:Liferay.Language.get("error"),type:"danger"})})),Liferay.once("beforeNavigate",(()=>{r.destroy()}))};var t=(o=a("portal-search-web$clipboard"))&&o.__esModule?o:{default:o},s=a("frontend-js-web")}));
//# sourceMappingURL=initializeClipboard.js.map