Liferay.Loader.define("@liferay/search-experiences-web@3.0.30/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/fetch_data","../utils/language/rename_keys","../utils/language/transform_locale","../utils/toasts","./EditSXPBlueprintForm"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default({contextPath:e,defaultLocale:t,featureFlagLps153813:a,isCompanyAdmin:p,learnMessages:_,locale:g,namespace:h,redirectURL:y,sxpBlueprintId:m}){const[b,R]=(0,r.useState)(null);if((0,n.default)("."+u.COPY_BUTTON_CSS_CLASS),(0,r.useEffect)((()=>{(0,f.openInitialSuccessToast)(),(0,o.default)("/o/search-experiences-rest/v1.0/sxp-blueprints/".concat(m),{headers:{"X-Liferay-Accept-All-Languages":!0}}).then((e=>R(e))).catch((()=>R({})))}),[]),!b)return null;return r.default.createElement(l.default.Provider,{value:{availableLanguages:Liferay.Language.available,contextPath:e,defaultLocale:t,featureFlagLps153813:a,isCompanyAdmin:p,learnMessages:_,locale:g,namespace:h,redirectURL:y}},r.default.createElement("div",{className:"edit-sxp-blueprint-root"},r.default.createElement(i.default,null,r.default.createElement(d.default,{entityJSON:b.entityJSON,initialConfiguration:b.configuration,initialDescription:(0,s.default)(b.description_i18n,c.default),initialSXPElementInstances:b.elementInstances,initialTitle:(0,s.default)(b.title_i18n,c.default),sxpBlueprintId:m}))))};var r=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 a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),n=_interopRequireDefault(a("../hooks/useClipboardJS")),i=_interopRequireDefault(a("../shared/ErrorBoundary")),l=_interopRequireDefault(a("../shared/ThemeContext")),u=a("../utils/constants"),o=_interopRequireDefault(a("../utils/fetch/fetch_data")),s=_interopRequireDefault(a("../utils/language/rename_keys")),c=_interopRequireDefault(a("../utils/language/transform_locale")),f=a("../utils/toasts"),d=_interopRequireDefault(a("./EditSXPBlueprintForm"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=index.js.map