Liferay.Loader.define("layout-admin-web@5.0.117/js/layout/look_and_feel/StyleBookConfiguration",["module","exports","require","@frontend-taglib-clay$clayui/button","frontend-js-web","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function StyleBookConfiguration({changeStyleBookURL:e,portletNamespace:t,styleBookEntryId:a,styleBookEntryName:l}){const[u,c]=(0,o.useState)({name:l,styleBookEntryId:a});return o.default.createElement(o.default.Fragment,null,o.default.createElement("input",{name:"".concat(t,"styleBookEntryId"),type:"hidden",value:u.styleBookEntryId}),o.default.createElement("h3",{className:"sheet-subtitle"},Liferay.Language.get("style-book")),o.default.createElement("p",null,o.default.createElement("strong",null,"".concat(Liferay.Language.get("style-book-name"),": ")),u.name),o.default.createElement(n.default.Group,{spaced:!0},o.default.createElement(n.default,{displayType:"secondary",onClick:()=>{(0,r.openSelectionModal)({iframeBodyCssClass:"",onSelect(e){if(e){const t=JSON.parse(e.value);c({name:t.name,styleBookEntryId:t.styleBookEntryId})}},selectEventName:"".concat(t,"selectStyleBook"),title:Liferay.Language.get("select-style-book"),url:e})},size:"sm"},Liferay.Language.get("change-style-book"))))};var n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("@frontend-taglib-clay$clayui/button")),r=a("frontend-js-web"),o=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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=n?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=StyleBookConfiguration.js.map