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