Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/thunks/addFragmentComposition",["module","exports","require","frontend-js-web","../actions/addFragmentComposition","../services/FragmentService"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.default=function addFragmentComposition({description:e,fragmentCollectionId:n,itemId:t,name:r,previewImageURL:s,saveInlineContent:d,saveMappingConfiguration:u}){return(g,m)=>o.default.addFragmentComposition({description:e,fragmentCollectionId:n,itemId:t,name:r,onNetworkStatus:g,previewImageURL:s,saveInlineContent:d,saveMappingConfiguration:u,segmentsExperienceId:m().segmentsExperienceId}).then((({fragmentComposition:e,url:t})=>{g((0,i.default)({fragmentCollectionId:n,fragmentComposition:e})),(0,a.openToast)({message:(0,a.sub)(Liferay.Language.get("the-fragment-was-created-successfully.-you-can-view-it-in-x"),'<a href="'.concat(t,'">').concat(Liferay.Language.get("fragments"),"</a>")),type:"success"})}))};var a=t("frontend-js-web"),i=_interopRequireDefault(t("../actions/addFragmentComposition")),o=_interopRequireDefault(t("../services/FragmentService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=addFragmentComposition.js.map