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