Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/plugins/browser/components/page-structure/components/item-configuration-panels/FragmentAdvancedPanel",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../../../app/components/fragment-configuration-fields/HideFromSearchField","../../../../../../app/config/constants/fragmentConfigurationRoles","../../../../../../app/config/index","../../../../../../app/contexts/StoreContext","../../../../../../app/selectors/selectLanguageId","../../../../../../app/utils/getFragmentConfigurationValues","../../../../../../app/utils/updateConfigurationValue","../../../../../../prop-types/index","./CSSFieldSet","./FieldSet"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentAdvancedPanel=function({item:e}){var t,n;const s=(0,l.useDispatch)(),g=(0,l.useSelectorCallback)((t=>t.fragmentEntryLinks[e.config.fragmentEntryLinkId]),[e.config.fragmentEntryLinkId]),m=(0,l.useSelector)(u.default),y=(0,a.useCallback)(((e,t)=>{(0,c.default)({configuration:g.configuration,dispatch:s,fragmentEntryLink:g,languageId:m,name:e,value:t})}),[s,g,m]),S=null===(t=g.configuration)||void 0===t||null===(n=t.fieldSets)||void 0===n?void 0:n.filter((e=>e.configurationRole===o.FRAGMENT_CONFIGURATION_ROLES.advanced));return a.default.createElement(a.default.Fragment,null,a.default.createElement("h1",{className:"sr-only"},Liferay.Language.get("advanced-configuration")),(null==S?void 0:S.length)>0&&S.map(((e,t)=>a.default.createElement(p.FieldSet,{fields:e.fields,key:t,label:e.label,languageId:i.config.defaultLanguageId,onValueSelect:y,values:(0,f.default)(g)}))),a.default.createElement(r.HideFromSearchField,{item:e}),a.default.createElement(d.default,{item:e}))};g(n("liferay!frontend-js-react-web$prop-types"));var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n("liferay!frontend-js-react-web$react")),r=n("../../../../../../app/components/fragment-configuration-fields/HideFromSearchField"),o=n("../../../../../../app/config/constants/fragmentConfigurationRoles"),i=n("../../../../../../app/config/index"),l=n("../../../../../../app/contexts/StoreContext"),u=g(n("../../../../../../app/selectors/selectLanguageId")),f=g(n("../../../../../../app/utils/getFragmentConfigurationValues")),c=g(n("../../../../../../app/utils/updateConfigurationValue")),d=(n("../../../../../../prop-types/index"),g(n("./CSSFieldSet"))),p=n("./FieldSet");function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=FragmentAdvancedPanel.js.map