Liferay.Loader.define("@liferay/search-experiences-web@3.0.7/sxp_blueprint_admin/js/edit_sxp_blueprint/index",["module","exports","require","liferay!frontend-js-react-web$react","../hooks/useClipboardJS","../shared/ErrorBoundary","../shared/ThemeContext","../utils/constants","../utils/fetch","../utils/toasts","./EditSXPBlueprintForm"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({contextPath:e,defaultLocale:t,learnMessages:r,locale:f,namespace:d,redirectURL:p,sxpBlueprintId:h}){const[y,b]=(0,n.useState)(null);if((0,a.default)("."+o.COPY_BUTTON_CSS_CLASS),(0,n.useEffect)((()=>{(0,u.openInitialSuccessToast)(),(0,s.fetchData)("/o/search-experiences-rest/v1.0/sxp-blueprints/".concat(h)).then((e=>b(e))).catch((()=>b({})))}),[]),!y)return null;return n.default.createElement(l.default.Provider,{value:{availableLanguages:Liferay.Language.available,contextPath:e,defaultLocale:t,learnMessages:r,locale:f,namespace:d,redirectURL:p}},n.default.createElement("div",{className:"edit-sxp-blueprint-root"},n.default.createElement(i.default,null,n.default.createElement(c.default,{entityJSON:y.entityJSON,initialConfiguration:y.configuration,initialDescription:y.description_i18n||{[t]:y.description},initialSXPElementInstances:y.elementInstances,initialTitle:y.title_i18n||{[t]:y.title},sxpBlueprintId:h}))))};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();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")),a=f(r("../hooks/useClipboardJS")),i=f(r("../shared/ErrorBoundary")),l=f(r("../shared/ThemeContext")),o=r("../utils/constants"),s=r("../utils/fetch"),u=r("../utils/toasts"),c=f(r("./EditSXPBlueprintForm"));function f(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}}}));
//# sourceMappingURL=index.js.map