Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/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 FragmentAdvancedPanel({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,l.useSelector)((e=>e.selectedViewportSize)),_=(0,l.useSelectorRef)((e=>e.fragmentEntryLinks)),S=(0,a.useCallback)(((e,t)=>{(0,f.default)({configuration:g.configuration,dispatch:s,fragmentEntryLink:g,languageId:m,name:e,value:t})}),[s,g,m]),v=null===(t=g.configuration)||void 0===t||null===(n=t.fieldSets)||void 0===n?void 0:n.filter((e=>e.configurationRole===i.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==v?void 0:v.length)>0&&v.map(((e,t)=>a.default.createElement(p.FieldSet,{description:e.description,fields:e.fields,fragmentEntryLinks:_.current,key:t,label:e.label,languageId:o.config.defaultLanguageId,onValueSelect:S,selectedViewportSize:y,values:(0,c.default)(g)}))),a.default.createElement(r.HideFromSearchField,{item:e}),a.default.createElement(d.default,{item:e}))};_interopRequireDefault(n("liferay!frontend-js-react-web$prop-types"));var a=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 n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=a?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):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"),i=n("../../../../../../app/config/constants/fragmentConfigurationRoles"),o=n("../../../../../../app/config/index"),l=n("../../../../../../app/contexts/StoreContext"),u=_interopRequireDefault(n("../../../../../../app/selectors/selectLanguageId")),c=_interopRequireDefault(n("../../../../../../app/utils/getFragmentConfigurationValues")),f=_interopRequireDefault(n("../../../../../../app/utils/updateConfigurationValue")),d=(n("../../../../../../prop_types/index"),_interopRequireDefault(n("./CSSFieldSet"))),p=n("./FieldSet");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=FragmentAdvancedPanel.js.map