Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/data_renderers/DateRenderer",["module","exports","require","liferay!frontend-js-react-web$prop-types"],(function(e,t,r){var o;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(o=r("liferay!frontend-js-react-web$prop-types"))&&o.__esModule?o:{default:o};function a({options:e,value:t}){var r,o,n,a;if(!t)return null;let l=t;if("string"==typeof t){const e=t.split("T")[0].split("-");if(3===e.length){const[t,r,o]=e;l=Date.UTC(Number(t),Number(r)-1,Number(o))}else l=Number(t)}const i=themeDisplay.getBCP47LanguageId(),u={day:(null==e||null===(r=e.format)||void 0===r?void 0:r.day)||"numeric",month:(null==e||null===(o=e.format)||void 0===o?void 0:o.month)||"short",timeZone:(null==e||null===(n=e.format)||void 0===n?void 0:n.timeZone)||"UTC",year:(null==e||null===(a=e.format)||void 0===a?void 0:a.year)||"numeric"};return new Intl.DateTimeFormat(i,u).format(l)}a.propTypes={options:n.default.shape({format:n.default.object}),value:n.default.string.isRequired};var l=a;t.default=l}}));
//# sourceMappingURL=DateRenderer.js.map