Liferay.Loader.define("style-book-web@2.0.76/js/fragment-collection-preview/FragmentCollectionPreview",["module","exports","require","@frontend-taglib-clay$clayui/alert","liferay!frontend-js-react-web$react","./FragmentPreview","../../css/FragmentCollectionPreview.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function FragmentCollectionPreview({fragmentCollectionKey:t,fragments:r,namespace:l}){const o=(0,a.useMemo)((()=>{const n=e[t];return n?r.filter((e=>!n.includes(e.fragmentEntryKey))):r}),[t,r]);return a.default.createElement(a.default.Fragment,null,o.length?o.map((e=>a.default.createElement(i.FragmentPreview,{fragment:e,key:e.fragmentEntryKey,namespace:l}))):a.default.createElement(n.default,{className:"m-3",displayType:"info"},Liferay.Language.get("there-are-no-fragments")))};var n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("@frontend-taglib-clay$clayui/alert")),a=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),i=r("./FragmentPreview");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}r("../../css/FragmentCollectionPreview.scss");const e={BASIC_COMPONENT:["BASIC_COMPONENT-external-video","BASIC_COMPONENT-html","BASIC_COMPONENT-separator","BASIC_COMPONENT-spacer","BASIC_COMPONENT-video"]}}}));
//# sourceMappingURL=FragmentCollectionPreview.js.map