Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/services/InfoItemService",["module","exports","require","../config/index","./serviceFetch"],(function(e,t,a){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a("../config/index"),l=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("./serviceFetch"));var i={getAvailableListItemRenderers:({itemSubtype:e,itemType:t,listStyle:a,onNetworkStatus:i})=>(0,l.default)(s.config.getAvailableListItemRenderersURL,{body:{itemSubtype:e,itemType:t,listStyle:a}},i),getAvailableListRenderers:({className:e,onNetworkStatus:t})=>(0,l.default)(s.config.getAvailableListRenderersURL,{body:{className:e}},t),getAvailableStructureMappingFields:({classNameId:e,classTypeId:t})=>(0,l.default)(s.config.mappingFieldsURL,{body:{classNameId:e,classTypeId:t}},(()=>{})),getAvailableTemplates({className:e,classPK:t,externalReferenceCode:a,onNetworkStatus:i}){const n={className:e};return t&&(n.classPK=t),a&&(n.externalReferenceCode=a),(0,l.default)(s.config.getAvailableTemplatesURL,{body:n},i)},getInfoItemActionErrorMessage:({classNameId:e,fieldId:t})=>(0,l.default)(s.config.getInfoItemActionErrorMessageURL,{body:{classNameId:e,fieldId:t}},(()=>{})),getInfoItemFieldValue({classNameId:e,classPK:t,editableTypeOptions:a,externalReferenceCode:i,fieldId:n,languageId:d,onNetworkStatus:o}){const r={classNameId:e,editableTypeOptions:JSON.stringify(a),fieldId:n,languageId:d};return t&&(r.classPK=t),i&&(r.externalReferenceCode=i),(0,l.default)(s.config.getInfoItemFieldValueURL,{body:r},o)},getPageContents:({onNetworkStatus:e,segmentsExperienceId:t})=>(0,l.default)(s.config.getPageContentsURL,{body:{segmentsExperienceId:t}},e)};t.default=i}));
//# sourceMappingURL=InfoItemService.js.map