@hkyhy/marsun-components-core 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_cloneBuffer.js +5 -0
- package/dist/_virtual/_cloneBuffer.js.map +1 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_nodeUtil.js +5 -0
- package/dist/_virtual/_nodeUtil.js.map +1 -0
- package/dist/_virtual/clone.js +8 -0
- package/dist/_virtual/clone.js.map +1 -0
- package/dist/_virtual/get.js +8 -0
- package/dist/_virtual/get.js.map +1 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js +3 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/isBuffer.js +5 -0
- package/dist/_virtual/isBuffer.js.map +1 -0
- package/dist/_virtual/isEqual.js +8 -0
- package/dist/_virtual/isEqual.js.map +1 -0
- package/dist/_virtual/isNumber.js +8 -0
- package/dist/_virtual/isNumber.js.map +1 -0
- package/dist/_virtual/merge.js +8 -0
- package/dist/_virtual/merge.js.map +1 -0
- package/dist/_virtual/object_hash.js +8 -0
- package/dist/_virtual/object_hash.js.map +1 -0
- package/dist/_virtual/object_hash2.js +5 -0
- package/dist/_virtual/object_hash2.js.map +1 -0
- package/dist/_virtual/omit.js +8 -0
- package/dist/_virtual/omit.js.map +1 -0
- package/dist/_virtual/pick.js +8 -0
- package/dist/_virtual/pick.js.map +1 -0
- package/dist/_virtual/react-is.development.js +5 -0
- package/dist/_virtual/react-is.development.js.map +1 -0
- package/dist/_virtual/react-is.production.min.js +5 -0
- package/dist/_virtual/react-is.production.min.js.map +1 -0
- package/dist/_virtual/transform.js +8 -0
- package/dist/_virtual/transform.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.js +13 -13
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.js +2 -2
- package/dist/components/AgentHub/Chat/Modal/FormModal.js +11 -11
- package/dist/components/AgentHub/Chat/Modal/FormModal.js.map +1 -1
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js +6 -6
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js.map +1 -1
- package/dist/components/AgentHub/Report/Detail/ReportArchiveModal/index.d.ts +13 -0
- package/dist/components/AgentHub/Report/Detail/ReportArchiveModal/index.js +81 -0
- package/dist/components/AgentHub/Report/Detail/ReportArchiveModal/index.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportArchiveModal/style.module.scss.js +11 -0
- package/dist/components/AgentHub/Report/Detail/ReportArchiveModal/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportExportLayout/index.d.ts +33 -0
- package/dist/components/AgentHub/Report/Detail/ReportExportLayout/index.js +113 -0
- package/dist/components/AgentHub/Report/Detail/ReportExportLayout/index.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportExportLayout/style.module.scss.js +7 -0
- package/dist/components/AgentHub/Report/Detail/ReportExportLayout/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportHtmlPreview/index.d.ts +15 -0
- package/dist/components/AgentHub/Report/Detail/ReportHtmlPreview/index.js +105 -0
- package/dist/components/AgentHub/Report/Detail/ReportHtmlPreview/index.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportHtmlPreview/style.module.scss.js +11 -0
- package/dist/components/AgentHub/Report/Detail/ReportHtmlPreview/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportVersionList/index.d.ts +14 -0
- package/dist/components/AgentHub/Report/Detail/ReportVersionList/index.js +91 -0
- package/dist/components/AgentHub/Report/Detail/ReportVersionList/index.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportVersionList/style.module.scss.js +14 -0
- package/dist/components/AgentHub/Report/Detail/ReportVersionList/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportWorkspace/index.d.ts +13 -0
- package/dist/components/AgentHub/Report/Detail/ReportWorkspace/index.js +39 -0
- package/dist/components/AgentHub/Report/Detail/ReportWorkspace/index.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/ReportWorkspace/style.module.scss.js +9 -0
- package/dist/components/AgentHub/Report/Detail/ReportWorkspace/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Report/Detail/index.d.ts +10 -0
- package/dist/components/AgentHub/Report/index.d.ts +1 -0
- package/dist/components/AgentHub/Report/types.d.ts +24 -0
- package/dist/components/Filter/CommonFilter/index.js +13 -13
- package/dist/components/Icons/index.js +14 -14
- package/dist/components/PermissionBindPanel/PermissionBindPanel.d.ts +20 -0
- package/dist/components/PermissionBindPanel/PermissionBindPanel.js +302 -0
- package/dist/components/PermissionBindPanel/PermissionBindPanel.js.map +1 -0
- package/dist/components/PermissionBindPanel/index.d.ts +3 -0
- package/dist/components/PermissionBindPanel/types.d.ts +29 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/CityFilterItem.d.ts +10 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/CityFilterItem.js +88 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/CityFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/InputFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/InputFilterItem.js +40 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/InputFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/ListFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/ListFilterItem.js +43 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/ListFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/index.d.ts +9 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/index.js +8 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/index.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/index.d.ts +6 -0
- package/dist/components/ReactFilter/AdvancedFilter/index.js +72 -0
- package/dist/components/ReactFilter/AdvancedFilter/index.js.map +1 -0
- package/dist/components/ReactFilter/Filter.d.ts +4 -0
- package/dist/components/ReactFilter/Filter.js +16 -0
- package/dist/components/ReactFilter/Filter.js.map +1 -0
- package/dist/components/ReactFilter/FilterItem.d.ts +7 -0
- package/dist/components/ReactFilter/FilterItem.js +26 -0
- package/dist/components/ReactFilter/FilterItem.js.map +1 -0
- package/dist/components/ReactFilter/FilterItemContainer.d.ts +5 -0
- package/dist/components/ReactFilter/FilterItemContainer.js +5 -0
- package/dist/components/ReactFilter/FilterItemContainer.js.map +1 -0
- package/dist/components/ReactFilter/FilterLines.d.ts +10 -0
- package/dist/components/ReactFilter/FilterLines.js +295 -0
- package/dist/components/ReactFilter/FilterLines.js.map +1 -0
- package/dist/components/ReactFilter/FilterOuter.d.ts +6 -0
- package/dist/components/ReactFilter/FilterOuter.js +28 -0
- package/dist/components/ReactFilter/FilterOuter.js.map +1 -0
- package/dist/components/ReactFilter/FilterProvider.d.ts +7 -0
- package/dist/components/ReactFilter/FilterProvider.js +26 -0
- package/dist/components/ReactFilter/FilterProvider.js.map +1 -0
- package/dist/components/ReactFilter/FilterValueDisplay.d.ts +4 -0
- package/dist/components/ReactFilter/FilterValueDisplay.js +185 -0
- package/dist/components/ReactFilter/FilterValueDisplay.js.map +1 -0
- package/dist/components/ReactFilter/PopoverItem.d.ts +4 -0
- package/dist/components/ReactFilter/PopoverItem.js +167 -0
- package/dist/components/ReactFilter/PopoverItem.js.map +1 -0
- package/dist/components/ReactFilter/SearchInput.d.ts +8 -0
- package/dist/components/ReactFilter/SearchInput.js +55 -0
- package/dist/components/ReactFilter/SearchInput.js.map +1 -0
- package/dist/components/ReactFilter/buildSelectTreeMapping.d.ts +9 -0
- package/dist/components/ReactFilter/buildSelectTreeMapping.js +24 -0
- package/dist/components/ReactFilter/buildSelectTreeMapping.js.map +1 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/index.d.ts +9 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/index.js +158 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/index.js.map +1 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/style.module.scss.js +9 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/style.module.scss.js.map +1 -0
- package/dist/components/ReactFilter/constants/mobilePopup.d.ts +2 -0
- package/dist/components/ReactFilter/constants/mobilePopup.js +6 -0
- package/dist/components/ReactFilter/constants/mobilePopup.js.map +1 -0
- package/dist/components/ReactFilter/context.d.ts +3 -0
- package/dist/components/ReactFilter/context.js +8 -0
- package/dist/components/ReactFilter/context.js.map +1 -0
- package/dist/components/ReactFilter/createFilterValueMapper.d.ts +29 -0
- package/dist/components/ReactFilter/createFilterValueMapper.js +33 -0
- package/dist/components/ReactFilter/createFilterValueMapper.js.map +1 -0
- package/dist/components/ReactFilter/entry.d.ts +24 -0
- package/dist/components/ReactFilter/entry.js +57 -0
- package/dist/components/ReactFilter/entry.js.map +1 -0
- package/dist/components/ReactFilter/fields/DatePickerFilterItem.d.ts +11 -0
- package/dist/components/ReactFilter/fields/DatePickerFilterItem.js +39 -0
- package/dist/components/ReactFilter/fields/DatePickerFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/DateRangePickerFilterItem.d.ts +11 -0
- package/dist/components/ReactFilter/fields/DateRangePickerFilterItem.js +42 -0
- package/dist/components/ReactFilter/fields/DateRangePickerFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/InputFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/fields/InputFilterItem.js +44 -0
- package/dist/components/ReactFilter/fields/InputFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/NumberRangeFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/fields/NumberRangeFilterItem.js +109 -0
- package/dist/components/ReactFilter/fields/NumberRangeFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/SelectTreeFilterItem.d.ts +9 -0
- package/dist/components/ReactFilter/fields/SelectTreeFilterItem.js +118 -0
- package/dist/components/ReactFilter/fields/SelectTreeFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/TypeDateRangePickerFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/fields/TypeDateRangePickerFilterItem.js +40 -0
- package/dist/components/ReactFilter/fields/TypeDateRangePickerFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/index.d.ts +58 -0
- package/dist/components/ReactFilter/fields/index.js +43 -0
- package/dist/components/ReactFilter/fields/index.js.map +1 -0
- package/dist/components/ReactFilter/filterClassNames.d.ts +30 -0
- package/dist/components/ReactFilter/filterClassNames.js +33 -0
- package/dist/components/ReactFilter/filterClassNames.js.map +1 -0
- package/dist/components/ReactFilter/filterInterceptors.d.ts +15 -0
- package/dist/components/ReactFilter/filterInterceptors.js +26 -0
- package/dist/components/ReactFilter/filterInterceptors.js.map +1 -0
- package/dist/components/ReactFilter/flattenSelectTreeOptions.d.ts +11 -0
- package/dist/components/ReactFilter/flattenSelectTreeOptions.js +22 -0
- package/dist/components/ReactFilter/flattenSelectTreeOptions.js.map +1 -0
- package/dist/components/ReactFilter/getFilterValue.d.ts +2 -0
- package/dist/components/ReactFilter/getFilterValue.js +12 -0
- package/dist/components/ReactFilter/getFilterValue.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useFilterIsMobile.d.ts +6 -0
- package/dist/components/ReactFilter/hooks/useFilterIsMobile.js +9 -0
- package/dist/components/ReactFilter/hooks/useFilterIsMobile.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useFilterPopupContainer.d.ts +15 -0
- package/dist/components/ReactFilter/hooks/useFilterPopupContainer.js +32 -0
- package/dist/components/ReactFilter/hooks/useFilterPopupContainer.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useFilterViewportVars.d.ts +2 -0
- package/dist/components/ReactFilter/hooks/useFilterViewportVars.js +23 -0
- package/dist/components/ReactFilter/hooks/useFilterViewportVars.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useHorizontalScrollShadows.d.ts +11 -0
- package/dist/components/ReactFilter/hooks/useHorizontalScrollShadows.js +49 -0
- package/dist/components/ReactFilter/hooks/useHorizontalScrollShadows.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useResponsiveScrollListener.d.ts +2 -0
- package/dist/components/ReactFilter/hooks/useResponsiveScrollListener.js +25 -0
- package/dist/components/ReactFilter/hooks/useResponsiveScrollListener.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useVisibleItemCount.d.ts +15 -0
- package/dist/components/ReactFilter/hooks/useVisibleItemCount.js +23 -0
- package/dist/components/ReactFilter/hooks/useVisibleItemCount.js.map +1 -0
- package/dist/components/ReactFilter/index.d.ts +7 -0
- package/dist/components/ReactFilter/locale/en-US.d.ts +29 -0
- package/dist/components/ReactFilter/locale/en-US.js +32 -0
- package/dist/components/ReactFilter/locale/en-US.js.map +1 -0
- package/dist/components/ReactFilter/locale/index.d.ts +59 -0
- package/dist/components/ReactFilter/locale/zh-CN.d.ts +29 -0
- package/dist/components/ReactFilter/locale/zh-CN.js +32 -0
- package/dist/components/ReactFilter/locale/zh-CN.js.map +1 -0
- package/dist/components/ReactFilter/normalizeFilterList.d.ts +12 -0
- package/dist/components/ReactFilter/normalizeFilterList.js +14 -0
- package/dist/components/ReactFilter/normalizeFilterList.js.map +1 -0
- package/dist/components/ReactFilter/pickSelectValues.d.ts +16 -0
- package/dist/components/ReactFilter/pickSelectValues.js +5 -0
- package/dist/components/ReactFilter/pickSelectValues.js.map +1 -0
- package/dist/components/ReactFilter/style.module.scss.js +75 -0
- package/dist/components/ReactFilter/style.module.scss.js.map +1 -0
- package/dist/components/ReactFilter/types.d.ts +10 -0
- package/dist/components/ReactFilter/useSearchParamsValue.d.ts +34 -0
- package/dist/components/ReactFilter/useSearchParamsValue.js +48 -0
- package/dist/components/ReactFilter/useSearchParamsValue.js.map +1 -0
- package/dist/components/ReactFilter/utils/getMobilePopupMetrics.d.ts +8 -0
- package/dist/components/ReactFilter/utils/getMobilePopupMetrics.js +26 -0
- package/dist/components/ReactFilter/utils/getMobilePopupMetrics.js.map +1 -0
- package/dist/components/ReactFilter/withFieldItem.d.ts +9 -0
- package/dist/components/ReactFilter/withFieldItem.js +178 -0
- package/dist/components/ReactFilter/withFieldItem.js.map +1 -0
- package/dist/components/ReactFilter/withFilterValue.d.ts +6 -0
- package/dist/components/ReactFilter/withFilterValue.js +23 -0
- package/dist/components/ReactFilter/withFilterValue.js.map +1 -0
- package/dist/components/ReactFilter/withLocale.d.ts +4 -0
- package/dist/components/ReactFilter/withLocale.js +15 -0
- package/dist/components/ReactFilter/withLocale.js.map +1 -0
- package/dist/components/Tour/AppTour/index.js +4 -4
- package/dist/components/Tour/AppTour/index.js.map +1 -1
- package/dist/components/Upload/index.js +29 -29
- package/dist/components/Upload/index.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +578 -500
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/node_modules/@ant-design/colors/es/generate.js +75 -0
- package/dist/node_modules/@ant-design/colors/es/generate.js.map +1 -0
- package/dist/node_modules/@ant-design/colors/es/presets.js +6 -0
- package/dist/node_modules/@ant-design/colors/es/presets.js.map +1 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.js +327 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js +42 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.js +6 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js +46 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js +19 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UpOutlined.js +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UpOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/utils.js +130 -0
- package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UpOutlined.js +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UpOutlined.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +22 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +26 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
- package/dist/node_modules/@formatjs/ecma402-abstract/lib/utils.js +45 -0
- package/dist/node_modules/@formatjs/ecma402-abstract/lib/utils.js.map +1 -0
- package/dist/node_modules/@formatjs/fast-memoize/lib/index.js +52 -0
- package/dist/node_modules/@formatjs/fast-memoize/lib/index.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +42 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +8 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/error.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +39 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/index.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +586 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +5 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +1419 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +57 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/types.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +113 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +219 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/number.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +5 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/create-intl.js +45 -0
- package/dist/node_modules/@formatjs/intl/lib/src/create-intl.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/dateTime.js +94 -0
- package/dist/node_modules/@formatjs/intl/lib/src/dateTime.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/displayName.js +25 -0
- package/dist/node_modules/@formatjs/intl/lib/src/displayName.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/error.js +96 -0
- package/dist/node_modules/@formatjs/intl/lib/src/error.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/list.js +48 -0
- package/dist/node_modules/@formatjs/intl/lib/src/list.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/message.js +70 -0
- package/dist/node_modules/@formatjs/intl/lib/src/message.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/number.js +58 -0
- package/dist/node_modules/@formatjs/intl/lib/src/number.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/plural.js +21 -0
- package/dist/node_modules/@formatjs/intl/lib/src/plural.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/relativeTime.js +27 -0
- package/dist/node_modules/@formatjs/intl/lib/src/relativeTime.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/utils.js +126 -0
- package/dist/node_modules/@formatjs/intl/lib/src/utils.js.map +1 -0
- package/dist/node_modules/@kne/global-context/dist/index.modern.js +62 -0
- package/dist/node_modules/@kne/global-context/dist/index.modern.js.map +1 -0
- package/dist/node_modules/@kne/react-fetch/dist/index.modern.js +483 -0
- package/dist/node_modules/@kne/react-fetch/dist/index.modern.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/dist/index.modern.js +173 -0
- package/dist/node_modules/@kne/react-intl/dist/index.modern.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/index.js +9 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/index.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createFormattedComponent.js +36 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createFormattedComponent.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createIntl.js +49 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createIntl.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/injectIntl.js +10 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/injectIntl.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/provider.js +49 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/provider.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/useIntl.js +11 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/useIntl.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/utils.js +35 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/utils.js.map +1 -0
- package/dist/node_modules/@kne/responsive-utils/dist/index.modern.js +239 -0
- package/dist/node_modules/@kne/responsive-utils/dist/index.modern.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +71 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +96 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/intl-messageformat/lib/src/core.js +176 -0
- package/dist/node_modules/intl-messageformat/lib/src/core.js.map +1 -0
- package/dist/node_modules/intl-messageformat/lib/src/error.js +53 -0
- package/dist/node_modules/intl-messageformat/lib/src/error.js.map +1 -0
- package/dist/node_modules/intl-messageformat/lib/src/formatters.js +121 -0
- package/dist/node_modules/intl-messageformat/lib/src/formatters.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +13 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +23 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +23 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +13 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +23 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +13 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +13 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +19 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +21 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +12 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +12 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +13 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_apply.js +23 -0
- package/dist/node_modules/lodash/_apply.js.map +1 -0
- package/dist/node_modules/lodash/_arrayEach.js +15 -0
- package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +17 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +27 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +15 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +15 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +16 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_assignMergeValue.js +16 -0
- package/dist/node_modules/lodash/_assignMergeValue.js.map +1 -0
- package/dist/node_modules/lodash/_assignValue.js +17 -0
- package/dist/node_modules/lodash/_assignValue.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +18 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssign.js +16 -0
- package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
- package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseClone.js +71 -0
- package/dist/node_modules/lodash/_baseClone.js.map +1 -0
- package/dist/node_modules/lodash/_baseCreate.js +24 -0
- package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +21 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseFor.js +12 -0
- package/dist/node_modules/lodash/_baseFor.js.map +1 -0
- package/dist/node_modules/lodash/_baseForOwn.js +16 -0
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +19 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +17 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +17 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +13 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +16 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +16 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +39 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMap.js +16 -0
- package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +38 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +23 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsSet.js +16 -0
- package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +18 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +19 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +21 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +22 -0
- package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +20 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +24 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseMerge.js +28 -0
- package/dist/node_modules/lodash/_baseMerge.js.map +1 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js +39 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js.map +1 -0
- package/dist/node_modules/lodash/_basePick.js +18 -0
- package/dist/node_modules/lodash/_basePick.js.map +1 -0
- package/dist/node_modules/lodash/_basePickBy.js +21 -0
- package/dist/node_modules/lodash/_basePickBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +15 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +17 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseRest.js +17 -0
- package/dist/node_modules/lodash/_baseRest.js.map +1 -0
- package/dist/node_modules/lodash/_baseSet.js +32 -0
- package/dist/node_modules/lodash/_baseSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseSetToString.js +21 -0
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +17 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +15 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +25 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +15 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnset.js +28 -0
- package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +13 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +18 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +20 -0
- package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneDataView.js +16 -0
- package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
- package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
- package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyArray.js +16 -0
- package/dist/node_modules/lodash/_copyArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyObject.js +22 -0
- package/dist/node_modules/lodash/_copyObject.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbols.js +16 -0
- package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +12 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createAssigner.js +23 -0
- package/dist/node_modules/lodash/_createAssigner.js.map +1 -0
- package/dist/node_modules/lodash/_createBaseFor.js +20 -0
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -0
- package/dist/node_modules/lodash/_customOmitClone.js +15 -0
- package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
- package/dist/node_modules/lodash/_defineProperty.js +18 -0
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +47 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +52 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +43 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_flatRest.js +17 -0
- package/dist/node_modules/lodash/_flatRest.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +12 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +17 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +16 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +20 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +17 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getPrototype.js +12 -0
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +22 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +17 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +19 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +34 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +13 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +27 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +15 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +14 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +20 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +16 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +16 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneArray.js +15 -0
- package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +49 -0
- package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneObject.js +17 -0
- package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +17 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +21 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +19 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +14 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +18 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +15 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +13 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +19 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +16 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +15 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +16 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +21 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +15 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +15 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +16 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +16 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +18 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +12 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +12 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +17 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +20 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +14 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +15 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_overRest.js +22 -0
- package/dist/node_modules/lodash/_overRest.js.map +1 -0
- package/dist/node_modules/lodash/_parent.js +16 -0
- package/dist/node_modules/lodash/_parent.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +12 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_safeGet.js +14 -0
- package/dist/node_modules/lodash/_safeGet.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +14 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +13 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +16 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_setToString.js +13 -0
- package/dist/node_modules/lodash/_setToString.js.map +1 -0
- package/dist/node_modules/lodash/_shortOut.js +23 -0
- package/dist/node_modules/lodash/_shortOut.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +15 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +14 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +13 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +13 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +24 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +17 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +18 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +24 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/clone.js +15 -0
- package/dist/node_modules/lodash/clone.js.map +1 -0
- package/dist/node_modules/lodash/constant.js +15 -0
- package/dist/node_modules/lodash/constant.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +13 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +16 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/get.js +16 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +16 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +13 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +17 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +11 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +16 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js +16 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +15 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isEqual.js +15 -0
- package/dist/node_modules/lodash/isEqual.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +19 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +14 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isMap.js +14 -0
- package/dist/node_modules/lodash/isMap.js.map +1 -0
- package/dist/node_modules/lodash/isNumber.js +16 -0
- package/dist/node_modules/lodash/isNumber.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +14 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +13 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isPlainObject.js +23 -0
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/isSet.js +14 -0
- package/dist/node_modules/lodash/isSet.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +16 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +14 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +17 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/keysIn.js +17 -0
- package/dist/node_modules/lodash/keysIn.js.map +1 -0
- package/dist/node_modules/lodash/last.js +14 -0
- package/dist/node_modules/lodash/last.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +24 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/merge.js +15 -0
- package/dist/node_modules/lodash/merge.js.map +1 -0
- package/dist/node_modules/lodash/omit.js +30 -0
- package/dist/node_modules/lodash/omit.js.map +1 -0
- package/dist/node_modules/lodash/pick.js +15 -0
- package/dist/node_modules/lodash/pick.js.map +1 -0
- package/dist/node_modules/lodash/property.js +18 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +13 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +13 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/toPlainObject.js +16 -0
- package/dist/node_modules/lodash/toPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +15 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/transform.js +31 -0
- package/dist/node_modules/lodash/transform.js.map +1 -0
- package/dist/node_modules/object-hash/dist/object_hash.js +783 -0
- package/dist/node_modules/object-hash/dist/object_hash.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js +7 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/contains.js +16 -0
- package/dist/node_modules/rc-util/es/Dom/contains.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js +80 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.js +15 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.js.map +1 -0
- package/dist/node_modules/rc-util/es/warning.js +45 -0
- package/dist/node_modules/rc-util/es/warning.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +45 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/styles/global.css +1 -1
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/date.js +27 -19
- package/dist/utils/date.js.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-intl.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/create-intl.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { createFormatters, DEFAULT_INTL_CONFIG } from './utils';\nimport { InvalidConfigError, MissingDataError } from './error';\nimport { formatNumber, formatNumberToParts } from './number';\nimport { formatRelativeTime } from './relativeTime';\nimport { formatDate, formatDateToParts, formatTime, formatTimeToParts, formatDateTimeRange, } from './dateTime';\nimport { formatPlural } from './plural';\nimport { formatMessage } from './message';\nimport { formatList, formatListToParts } from './list';\nimport { formatDisplayName } from './displayName';\nfunction messagesContainString(messages) {\n var firstMessage = messages ? messages[Object.keys(messages)[0]] : undefined;\n return typeof firstMessage === 'string';\n}\nfunction verifyConfigMessages(config) {\n if (config.onWarn &&\n config.defaultRichTextElements &&\n messagesContainString(config.messages || {})) {\n config.onWarn(\"[@formatjs/intl] \\\"defaultRichTextElements\\\" was specified but \\\"message\\\" was not pre-compiled. \\nPlease consider using \\\"@formatjs/cli\\\" to pre-compile your messages for performance.\\nFor more details see https://formatjs.io/docs/getting-started/message-distribution\");\n }\n}\n/**\n * Create intl object\n * @param config intl config\n * @param cache cache for formatter instances to prevent memory leak\n */\nexport function createIntl(config, cache) {\n var formatters = createFormatters(cache);\n var resolvedConfig = __assign(__assign({}, DEFAULT_INTL_CONFIG), config);\n var locale = resolvedConfig.locale, defaultLocale = resolvedConfig.defaultLocale, onError = resolvedConfig.onError;\n if (!locale) {\n if (onError) {\n onError(new InvalidConfigError(\"\\\"locale\\\" was not configured, using \\\"\".concat(defaultLocale, \"\\\" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details\")));\n }\n // Since there's no registered locale data for `locale`, this will\n // fallback to the `defaultLocale` to make sure things can render.\n // The `messages` are overridden to the `defaultProps` empty object\n // to maintain referential equality across re-renders. It's assumed\n // each <FormattedMessage> contains a `defaultMessage` prop.\n resolvedConfig.locale = resolvedConfig.defaultLocale || 'en';\n }\n else if (!Intl.NumberFormat.supportedLocalesOf(locale).length && onError) {\n onError(new MissingDataError(\"Missing locale data for locale: \\\"\".concat(locale, \"\\\" in Intl.NumberFormat. Using default locale: \\\"\").concat(defaultLocale, \"\\\" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details\")));\n }\n else if (!Intl.DateTimeFormat.supportedLocalesOf(locale).length &&\n onError) {\n onError(new MissingDataError(\"Missing locale data for locale: \\\"\".concat(locale, \"\\\" in Intl.DateTimeFormat. Using default locale: \\\"\").concat(defaultLocale, \"\\\" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details\")));\n }\n verifyConfigMessages(resolvedConfig);\n return __assign(__assign({}, resolvedConfig), { formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), \n // @ts-expect-error TODO: will get to this later\n formatMessage: formatMessage.bind(null, resolvedConfig, formatters), \n // @ts-expect-error TODO: will get to this later\n $t: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) });\n}\n"],"names":["messagesContainString","messages","firstMessage","verifyConfigMessages","config","createIntl","cache","formatters","createFormatters","resolvedConfig","__assign","DEFAULT_INTL_CONFIG","locale","defaultLocale","onError","MissingDataError","InvalidConfigError","formatNumber","formatNumberToParts","formatRelativeTime","formatDate","formatDateToParts","formatTime","formatDateTimeRange","formatTimeToParts","formatPlural","formatMessage","formatList","formatListToParts","formatDisplayName"],"mappings":";;;;;;;;;;AAUA,SAASA,EAAsBC,GAAU;AACrC,MAAIC,IAAeD,IAAWA,EAAS,OAAO,KAAKA,CAAQ,EAAE,CAAC,CAAC,IAAI;AACnE,SAAO,OAAOC,KAAiB;AACnC;AACA,SAASC,EAAqBC,GAAQ;AAClC,EAAIA,EAAO,UACPA,EAAO,2BACPJ,EAAsBI,EAAO,YAAY,CAAA,CAAE,KAC3CA,EAAO,OAAO;AAAA;AAAA,mFAA8Q;AAEpS;AAMO,SAASC,EAAWD,GAAQE,GAAO;AACtC,MAAIC,IAAaC,EAAiBF,CAAK,GACnCG,IAAiBC,EAASA,EAAS,CAAA,GAAIC,CAAmB,GAAGP,CAAM,GACnEQ,IAASH,EAAe,QAAQI,IAAgBJ,EAAe,eAAeK,IAAUL,EAAe;AAC3G,SAAKG,IAWI,CAAC,KAAK,aAAa,mBAAmBA,CAAM,EAAE,UAAUE,IAC7DA,EAAQ,IAAIC,EAAiB,oCAAqC,OAAOH,GAAQ,iDAAmD,EAAE,OAAOC,GAAe,8FAA+F,CAAC,CAAC,IAExP,CAAC,KAAK,eAAe,mBAAmBD,CAAM,EAAE,UACrDE,KACAA,EAA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,94 @@
|
|
|
1
|
+
import { __assign as f } from "../../../../tslib/tslib.es6.js";
|
|
2
|
+
import { filterProps as g, getNamedFormat as E } from "./utils.js";
|
|
3
|
+
import { IntlFormatError as v } from "./error.js";
|
|
4
|
+
var c = [
|
|
5
|
+
"formatMatcher",
|
|
6
|
+
"timeZone",
|
|
7
|
+
"hour12",
|
|
8
|
+
"weekday",
|
|
9
|
+
"era",
|
|
10
|
+
"year",
|
|
11
|
+
"month",
|
|
12
|
+
"day",
|
|
13
|
+
"hour",
|
|
14
|
+
"minute",
|
|
15
|
+
"second",
|
|
16
|
+
"timeZoneName",
|
|
17
|
+
"hourCycle",
|
|
18
|
+
"dateStyle",
|
|
19
|
+
"timeStyle",
|
|
20
|
+
"calendar",
|
|
21
|
+
// 'dayPeriod',
|
|
22
|
+
"numberingSystem",
|
|
23
|
+
"fractionalSecondDigits"
|
|
24
|
+
];
|
|
25
|
+
function s(t, u, e, r) {
|
|
26
|
+
var a = t.locale, o = t.formats, i = t.onError, n = t.timeZone;
|
|
27
|
+
r === void 0 && (r = {});
|
|
28
|
+
var m = r.format, d = f(f({}, n && { timeZone: n }), m && E(o, u, m, i)), l = g(r, c, d);
|
|
29
|
+
return u === "time" && !l.hour && !l.minute && !l.second && !l.timeStyle && !l.dateStyle && (l = f(f({}, l), { hour: "numeric", minute: "numeric" })), e(a, l);
|
|
30
|
+
}
|
|
31
|
+
function S(t, u) {
|
|
32
|
+
for (var e = [], r = 2; r < arguments.length; r++)
|
|
33
|
+
e[r - 2] = arguments[r];
|
|
34
|
+
var a = e[0], o = e[1], i = o === void 0 ? {} : o, n = typeof a == "string" ? new Date(a || 0) : a;
|
|
35
|
+
try {
|
|
36
|
+
return s(t, "date", u, i).format(n);
|
|
37
|
+
} catch (m) {
|
|
38
|
+
t.onError(new v("Error formatting date.", t.locale, m));
|
|
39
|
+
}
|
|
40
|
+
return String(n);
|
|
41
|
+
}
|
|
42
|
+
function D(t, u) {
|
|
43
|
+
for (var e = [], r = 2; r < arguments.length; r++)
|
|
44
|
+
e[r - 2] = arguments[r];
|
|
45
|
+
var a = e[0], o = e[1], i = o === void 0 ? {} : o, n = typeof a == "string" ? new Date(a || 0) : a;
|
|
46
|
+
try {
|
|
47
|
+
return s(t, "time", u, i).format(n);
|
|
48
|
+
} catch (m) {
|
|
49
|
+
t.onError(new v("Error formatting time.", t.locale, m));
|
|
50
|
+
}
|
|
51
|
+
return String(n);
|
|
52
|
+
}
|
|
53
|
+
function Z(t, u) {
|
|
54
|
+
for (var e = [], r = 2; r < arguments.length; r++)
|
|
55
|
+
e[r - 2] = arguments[r];
|
|
56
|
+
var a = e[0], o = e[1], i = e[2], n = i === void 0 ? {} : i, m = t.timeZone, d = t.locale, l = t.onError, h = g(n, c, m ? { timeZone: m } : {});
|
|
57
|
+
try {
|
|
58
|
+
return u(d, h).formatRange(a, o);
|
|
59
|
+
} catch (y) {
|
|
60
|
+
l(new v("Error formatting date time range.", t.locale, y));
|
|
61
|
+
}
|
|
62
|
+
return String(a);
|
|
63
|
+
}
|
|
64
|
+
function b(t, u) {
|
|
65
|
+
for (var e = [], r = 2; r < arguments.length; r++)
|
|
66
|
+
e[r - 2] = arguments[r];
|
|
67
|
+
var a = e[0], o = e[1], i = o === void 0 ? {} : o, n = typeof a == "string" ? new Date(a || 0) : a;
|
|
68
|
+
try {
|
|
69
|
+
return s(t, "date", u, i).formatToParts(n);
|
|
70
|
+
} catch (m) {
|
|
71
|
+
t.onError(new v("Error formatting date.", t.locale, m));
|
|
72
|
+
}
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
function P(t, u) {
|
|
76
|
+
for (var e = [], r = 2; r < arguments.length; r++)
|
|
77
|
+
e[r - 2] = arguments[r];
|
|
78
|
+
var a = e[0], o = e[1], i = o === void 0 ? {} : o, n = typeof a == "string" ? new Date(a || 0) : a;
|
|
79
|
+
try {
|
|
80
|
+
return s(t, "time", u, i).formatToParts(n);
|
|
81
|
+
} catch (m) {
|
|
82
|
+
t.onError(new v("Error formatting time.", t.locale, m));
|
|
83
|
+
}
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
S as formatDate,
|
|
88
|
+
Z as formatDateTimeRange,
|
|
89
|
+
b as formatDateToParts,
|
|
90
|
+
D as formatTime,
|
|
91
|
+
P as formatTimeToParts,
|
|
92
|
+
s as getFormatter
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=dateTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateTime.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/dateTime.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { filterProps, getNamedFormat } from './utils';\nimport { IntlFormatError } from './error';\nvar DATE_TIME_FORMAT_OPTIONS = [\n 'formatMatcher',\n 'timeZone',\n 'hour12',\n 'weekday',\n 'era',\n 'year',\n 'month',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'timeZoneName',\n 'hourCycle',\n 'dateStyle',\n 'timeStyle',\n 'calendar',\n // 'dayPeriod',\n 'numberingSystem',\n 'fractionalSecondDigits',\n];\nexport function getFormatter(_a, type, getDateTimeFormat, options) {\n var locale = _a.locale, formats = _a.formats, onError = _a.onError, timeZone = _a.timeZone;\n if (options === void 0) { options = {}; }\n var format = options.format;\n var defaults = __assign(__assign({}, (timeZone && { timeZone: timeZone })), (format && getNamedFormat(formats, type, format, onError)));\n var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, defaults);\n if (type === 'time' &&\n !filteredOptions.hour &&\n !filteredOptions.minute &&\n !filteredOptions.second &&\n !filteredOptions.timeStyle &&\n !filteredOptions.dateStyle) {\n // Add default formatting options if hour, minute, or second isn't defined.\n filteredOptions = __assign(__assign({}, filteredOptions), { hour: 'numeric', minute: 'numeric' });\n }\n return getDateTimeFormat(locale, filteredOptions);\n}\nexport function formatDate(config, getDateTimeFormat) {\n var _a = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n _a[_i - 2] = arguments[_i];\n }\n var value = _a[0], _b = _a[1], options = _b === void 0 ? {} : _b;\n var date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'date', getDateTimeFormat, options).format(date);\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting date.', config.locale, e));\n }\n return String(date);\n}\nexport function formatTime(config, getDateTimeFormat) {\n var _a = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n _a[_i - 2] = arguments[_i];\n }\n var value = _a[0], _b = _a[1], options = _b === void 0 ? {} : _b;\n var date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'time', getDateTimeFormat, options).format(date);\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting time.', config.locale, e));\n }\n return String(date);\n}\nexport function formatDateTimeRange(config, getDateTimeFormat) {\n var _a = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n _a[_i - 2] = arguments[_i];\n }\n var from = _a[0], to = _a[1], _b = _a[2], options = _b === void 0 ? {} : _b;\n var timeZone = config.timeZone, locale = config.locale, onError = config.onError;\n var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, timeZone ? { timeZone: timeZone } : {});\n try {\n return getDateTimeFormat(locale, filteredOptions).formatRange(from, to);\n }\n catch (e) {\n onError(new IntlFormatError('Error formatting date time range.', config.locale, e));\n }\n return String(from);\n}\nexport function formatDateToParts(config, getDateTimeFormat) {\n var _a = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n _a[_i - 2] = arguments[_i];\n }\n var value = _a[0], _b = _a[1], options = _b === void 0 ? {} : _b;\n var date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'date', getDateTimeFormat, options).formatToParts(date); // TODO: remove this when https://github.com/microsoft/TypeScript/pull/50402 is merged\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting date.', config.locale, e));\n }\n return [];\n}\nexport function formatTimeToParts(config, getDateTimeFormat) {\n var _a = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n _a[_i - 2] = arguments[_i];\n }\n var value = _a[0], _b = _a[1], options = _b === void 0 ? {} : _b;\n var date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'time', getDateTimeFormat, options).formatToParts(date); // TODO: remove this when https://github.com/microsoft/TypeScript/pull/50402 is merged\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting time.', config.locale, e));\n }\n return [];\n}\n"],"names":["DATE_TIME_FORMAT_OPTIONS","getFormatter","_a","type","getDateTimeFormat","options","locale","formats","onError","timeZone","format","defaults","__assign","getNamedFormat","filteredOptions","filterProps","formatDate","config","_i","value","_b","date","e","IntlFormatError","formatTime","formatDateTimeRange","from","to","formatDateToParts","formatTimeToParts"],"mappings":";;;AAGA,IAAIA,IAA2B;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AACJ;AACO,SAASC,EAAaC,GAAIC,GAAMC,GAAmBC,GAAS;AAC/D,MAAIC,IAASJ,EAAG,QAAQK,IAAUL,EAAG,SAASM,IAAUN,EAAG,SAASO,IAAWP,EAAG;AAClF,EAAIG,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIK,IAASL,EAAQ,QACjBM,IAAWC,EAASA,EAAS,CAAA,GAAKH,KAAY,EAAE,UAAUA,EAAQ,CAAE,GAAKC,KAAUG,EAAeN,GAASJ,GAAMO,GAAQF,CAAO,CAAC,GACjIM,IAAkBC,EAAYV,GAASL,GAA0BW,CAAQ;AAC7E,SAAIR,MAAS,UACT,CAACW,EAAgB,QACjB,CAACA,EAAgB,UACjB,CAACA,EAAgB,UACjB,CAACA,EAAgB,aACjB,CAACA,EAAgB,cAEjBA,IAAkBF,EAASA,EAAS,CAAA,GAAIE,CA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AAK,CAAC,IAAI,UAAUA,CAAE;AAE7B,MAAIC,IAAQjB,EAAG,CAAC,GAAGkB,IAAKlB,EAAG,CAAC,GAAGG,IAAUe,MAAO,SAAS,CAAA,IAAKA,GAC1DC,IAAO,OAAOF,KAAU,WAAW,IAAI,KAAKA,KAAS,CAAC,IAAIA;AAC9D,MAAI;AACA,WAAOlB,EAAagB,GAAQ,QAAQb,GAAmBC,CAAO,EAAE,cAAcgB,CAAI;AAAA,EACtF,SACOC,GAAG;AACN,IAAAL,EAAO,QAAQ,IAAIM,EAAgB,0BAA0BN,EAAO,QAAQK,CAAC,CAAC;AAAA,EAClF;AACA,SAAO,CAAA;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { filterProps as s } from "./utils.js";
|
|
2
|
+
import { IntlFormatError as p } from "./error.js";
|
|
3
|
+
import { FormatError as f, ErrorCode as y } from "../../../../intl-messageformat/lib/src/error.js";
|
|
4
|
+
var I = [
|
|
5
|
+
"style",
|
|
6
|
+
"type",
|
|
7
|
+
"fallback",
|
|
8
|
+
"languageDisplay"
|
|
9
|
+
];
|
|
10
|
+
function v(r, t, i, l) {
|
|
11
|
+
var a = r.locale, o = r.onError, n = Intl.DisplayNames;
|
|
12
|
+
n || o(new f(`Intl.DisplayNames is not available in this environment.
|
|
13
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
14
|
+
`, y.MISSING_INTL_API));
|
|
15
|
+
var e = s(l, I);
|
|
16
|
+
try {
|
|
17
|
+
return t(a, e).of(i);
|
|
18
|
+
} catch (m) {
|
|
19
|
+
o(new p("Error formatting display name.", a, m));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
v as formatDisplayName
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=displayName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"displayName.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/displayName.js"],"sourcesContent":["import { filterProps } from './utils';\nimport { FormatError, ErrorCode } from 'intl-messageformat';\nimport { IntlFormatError } from './error';\nvar DISPLAY_NAMES_OPTONS = [\n 'style',\n 'type',\n 'fallback',\n 'languageDisplay',\n];\nexport function formatDisplayName(_a, getDisplayNames, value, options) {\n var locale = _a.locale, onError = _a.onError;\n var DisplayNames = Intl.DisplayNames;\n if (!DisplayNames) {\n onError(new FormatError(\"Intl.DisplayNames is not available in this environment.\\nTry polyfilling it using \\\"@formatjs/intl-displaynames\\\"\\n\", ErrorCode.MISSING_INTL_API));\n }\n var filteredOptions = filterProps(options, DISPLAY_NAMES_OPTONS);\n try {\n return getDisplayNames(locale, filteredOptions).of(value);\n }\n catch (e) {\n onError(new IntlFormatError('Error formatting display name.', locale, e));\n }\n}\n"],"names":["DISPLAY_NAMES_OPTONS","formatDisplayName","_a","getDisplayNames","value","options","locale","onError","DisplayNames","FormatError","ErrorCode","filteredOptions","filterProps","e","IntlFormatError"],"mappings":";;;AAGA,IAAIA,IAAuB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AACO,SAASC,EAAkBC,GAAIC,GAAiBC,GAAOC,GAAS;AACnE,MAAIC,IAASJ,EAAG,QAAQK,IAAUL,EAAG,SACjCM,IAAe,KAAK;AACxB,EAAKA,KACDD,EAAQ,IAAIE,EAAY;AAAA;AAAA,GAAuHC,EAAU,gBAAgB,CAAC;AAE9K,MAAIC,IAAkBC,EAAYP,GAASL,CAAoB;AAC/D,MAAI;AACA,WAAOG,EAAgBG,GAAQK,CAAe,EAAE,GAAGP,CAAK;AAAA,EAC5D,SACOS,GAAG;AACN,IAAAN,EAAQ,IAAIO,EAAgB,kCAAkCR,GAAQO,CAAC,CAAC;AAAA,EAC5E;AACJ;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { __extends as u } from "../../../../tslib/tslib.es6.js";
|
|
2
|
+
var s;
|
|
3
|
+
(function(n) {
|
|
4
|
+
n.FORMAT_ERROR = "FORMAT_ERROR", n.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", n.INVALID_CONFIG = "INVALID_CONFIG", n.MISSING_DATA = "MISSING_DATA", n.MISSING_TRANSLATION = "MISSING_TRANSLATION";
|
|
5
|
+
})(s || (s = {}));
|
|
6
|
+
var l = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function(n) {
|
|
9
|
+
u(r, n);
|
|
10
|
+
function r(a, o, t) {
|
|
11
|
+
var i = this, c = t ? t instanceof Error ? t : new Error(String(t)) : void 0;
|
|
12
|
+
return i = n.call(this, "[@formatjs/intl Error ".concat(a, "] ").concat(o, `
|
|
13
|
+
`).concat(c ? `
|
|
14
|
+
`.concat(c.message, `
|
|
15
|
+
`).concat(c.stack) : "")) || this, i.code = a, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(i, r), i;
|
|
16
|
+
}
|
|
17
|
+
return r;
|
|
18
|
+
})(Error)
|
|
19
|
+
), I = (
|
|
20
|
+
/** @class */
|
|
21
|
+
(function(n) {
|
|
22
|
+
u(r, n);
|
|
23
|
+
function r(a, o) {
|
|
24
|
+
return n.call(this, s.UNSUPPORTED_FORMATTER, a, o) || this;
|
|
25
|
+
}
|
|
26
|
+
return r;
|
|
27
|
+
})(l)
|
|
28
|
+
), E = (
|
|
29
|
+
/** @class */
|
|
30
|
+
(function(n) {
|
|
31
|
+
u(r, n);
|
|
32
|
+
function r(a, o) {
|
|
33
|
+
return n.call(this, s.INVALID_CONFIG, a, o) || this;
|
|
34
|
+
}
|
|
35
|
+
return r;
|
|
36
|
+
})(l)
|
|
37
|
+
), M = (
|
|
38
|
+
/** @class */
|
|
39
|
+
(function(n) {
|
|
40
|
+
u(r, n);
|
|
41
|
+
function r(a, o) {
|
|
42
|
+
return n.call(this, s.MISSING_DATA, a, o) || this;
|
|
43
|
+
}
|
|
44
|
+
return r;
|
|
45
|
+
})(l)
|
|
46
|
+
), e = (
|
|
47
|
+
/** @class */
|
|
48
|
+
(function(n) {
|
|
49
|
+
u(r, n);
|
|
50
|
+
function r(a, o, t) {
|
|
51
|
+
var i = n.call(this, s.FORMAT_ERROR, "".concat(a, `
|
|
52
|
+
Locale: `).concat(o, `
|
|
53
|
+
`), t) || this;
|
|
54
|
+
return i.locale = o, i;
|
|
55
|
+
}
|
|
56
|
+
return r;
|
|
57
|
+
})(l)
|
|
58
|
+
), T = (
|
|
59
|
+
/** @class */
|
|
60
|
+
(function(n) {
|
|
61
|
+
u(r, n);
|
|
62
|
+
function r(a, o, t, i) {
|
|
63
|
+
var c = n.call(this, "".concat(a, `
|
|
64
|
+
MessageID: `).concat(t == null ? void 0 : t.id, `
|
|
65
|
+
Default Message: `).concat(t == null ? void 0 : t.defaultMessage, `
|
|
66
|
+
Description: `).concat(t == null ? void 0 : t.description, `
|
|
67
|
+
`), o, i) || this;
|
|
68
|
+
return c.descriptor = t, c.locale = o, c;
|
|
69
|
+
}
|
|
70
|
+
return r;
|
|
71
|
+
})(e)
|
|
72
|
+
), v = (
|
|
73
|
+
/** @class */
|
|
74
|
+
(function(n) {
|
|
75
|
+
u(r, n);
|
|
76
|
+
function r(a, o) {
|
|
77
|
+
var t = n.call(this, s.MISSING_TRANSLATION, 'Missing message: "'.concat(a.id, '" for locale "').concat(o, '", using ').concat(a.defaultMessage ? "default message (".concat(typeof a.defaultMessage == "string" ? a.defaultMessage : a.defaultMessage.map(function(i) {
|
|
78
|
+
var c;
|
|
79
|
+
return (c = i.value) !== null && c !== void 0 ? c : JSON.stringify(i);
|
|
80
|
+
}).join(), ")") : "id", " as fallback.")) || this;
|
|
81
|
+
return t.descriptor = a, t;
|
|
82
|
+
}
|
|
83
|
+
return r;
|
|
84
|
+
})(l)
|
|
85
|
+
);
|
|
86
|
+
export {
|
|
87
|
+
l as IntlError,
|
|
88
|
+
s as IntlErrorCode,
|
|
89
|
+
e as IntlFormatError,
|
|
90
|
+
E as InvalidConfigError,
|
|
91
|
+
T as MessageFormatError,
|
|
92
|
+
M as MissingDataError,
|
|
93
|
+
v as MissingTranslationError,
|
|
94
|
+
I as UnsupportedFormatterError
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/error.js"],"sourcesContent":["import { __extends } from \"tslib\";\nexport var IntlErrorCode;\n(function (IntlErrorCode) {\n IntlErrorCode[\"FORMAT_ERROR\"] = \"FORMAT_ERROR\";\n IntlErrorCode[\"UNSUPPORTED_FORMATTER\"] = \"UNSUPPORTED_FORMATTER\";\n IntlErrorCode[\"INVALID_CONFIG\"] = \"INVALID_CONFIG\";\n IntlErrorCode[\"MISSING_DATA\"] = \"MISSING_DATA\";\n IntlErrorCode[\"MISSING_TRANSLATION\"] = \"MISSING_TRANSLATION\";\n})(IntlErrorCode || (IntlErrorCode = {}));\nvar IntlError = /** @class */ (function (_super) {\n __extends(IntlError, _super);\n function IntlError(code, message, exception) {\n var _this = this;\n var err = exception\n ? exception instanceof Error\n ? exception\n : new Error(String(exception))\n : undefined;\n _this = _super.call(this, \"[@formatjs/intl Error \".concat(code, \"] \").concat(message, \"\\n\").concat(err ? \"\\n\".concat(err.message, \"\\n\").concat(err.stack) : '')) || this;\n _this.code = code;\n // @ts-ignore just so we don't need to declare dep on @types/node\n if (typeof Error.captureStackTrace === 'function') {\n // @ts-ignore just so we don't need to declare dep on @types/node\n Error.captureStackTrace(_this, IntlError);\n }\n return _this;\n }\n return IntlError;\n}(Error));\nexport { IntlError };\nvar UnsupportedFormatterError = /** @class */ (function (_super) {\n __extends(UnsupportedFormatterError, _super);\n function UnsupportedFormatterError(message, exception) {\n return _super.call(this, IntlErrorCode.UNSUPPORTED_FORMATTER, message, exception) || this;\n }\n return UnsupportedFormatterError;\n}(IntlError));\nexport { UnsupportedFormatterError };\nvar InvalidConfigError = /** @class */ (function (_super) {\n __extends(InvalidConfigError, _super);\n function InvalidConfigError(message, exception) {\n return _super.call(this, IntlErrorCode.INVALID_CONFIG, message, exception) || this;\n }\n return InvalidConfigError;\n}(IntlError));\nexport { InvalidConfigError };\nvar MissingDataError = /** @class */ (function (_super) {\n __extends(MissingDataError, _super);\n function MissingDataError(message, exception) {\n return _super.call(this, IntlErrorCode.MISSING_DATA, message, exception) || this;\n }\n return MissingDataError;\n}(IntlError));\nexport { MissingDataError };\nvar IntlFormatError = /** @class */ (function (_super) {\n __extends(IntlFormatError, _super);\n function IntlFormatError(message, locale, exception) {\n var _this = _super.call(this, IntlErrorCode.FORMAT_ERROR, \"\".concat(message, \"\\nLocale: \").concat(locale, \"\\n\"), exception) || this;\n _this.locale = locale;\n return _this;\n }\n return IntlFormatError;\n}(IntlError));\nexport { IntlFormatError };\nvar MessageFormatError = /** @class */ (function (_super) {\n __extends(MessageFormatError, _super);\n function MessageFormatError(message, locale, descriptor, exception) {\n var _this = _super.call(this, \"\".concat(message, \"\\nMessageID: \").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.id, \"\\nDefault Message: \").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage, \"\\nDescription: \").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.description, \"\\n\"), locale, exception) || this;\n _this.descriptor = descriptor;\n _this.locale = locale;\n return _this;\n }\n return MessageFormatError;\n}(IntlFormatError));\nexport { MessageFormatError };\nvar MissingTranslationError = /** @class */ (function (_super) {\n __extends(MissingTranslationError, _super);\n function MissingTranslationError(descriptor, locale) {\n var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, \"Missing message: \\\"\".concat(descriptor.id, \"\\\" for locale \\\"\").concat(locale, \"\\\", using \").concat(descriptor.defaultMessage\n ? \"default message (\".concat(typeof descriptor.defaultMessage === 'string'\n ? descriptor.defaultMessage\n : descriptor.defaultMessage\n .map(function (e) { var _a; return (_a = e.value) !== null && _a !== void 0 ? _a : JSON.stringify(e); })\n .join(), \")\")\n : 'id', \" as fallback.\")) || this;\n _this.descriptor = descriptor;\n return _this;\n }\n return MissingTranslationError;\n}(IntlError));\nexport { MissingTranslationError };\n"],"names":["IntlErrorCode","IntlError","_super","__extends","code","message","exception","_this","err","UnsupportedFormatterError","InvalidConfigError","MissingDataError","IntlFormatError","locale","MessageFormatError","descriptor","MissingTranslationError","e","_a"],"mappings":";AACU,IAACA;AAAA,CACV,SAAUA,GAAe;AACtB,EAAAA,EAAc,eAAkB,gBAChCA,EAAc,wBAA2B,yBACzCA,EAAc,iBAAoB,kBAClCA,EAAc,eAAkB,gBAChCA,EAAc,sBAAyB;AAC3C,GAAGA,MAAkBA,IAAgB,CAAA,EAAG;AACrC,IAACC;AAAA;AAAA,GAA2B,SAAUC,GAAQ;AAC7C,IAAAC,EAAUF,GAAWC,CAAM;AAC3B,aAASD,EAAUG,GAAMC,GAASC,GAAW;AACzC,UAAIC,IAAQ,MACRC,IAAMF,IACJA,aAAqB,QACjBA,IACA,IAAI,MAAM,OAAOA,CAAS,CAAC,IAC/B;AACN,aAAAC,IAAQL,EAAO,KAAK,MAAM,yBAAyB,OAAOE,GAAM,IAAI,EAAE,OAAOC,GAAS;AAAA,CAAI,EAAE,OAAOG,IAAM;AAAA,EAAK,OAAOA,EAAI,SAAS;AAAA,CAAI,EAAE,OAAOA,EAAI,KAAK,IAAI,EAAE,CAAC,KAAK,MACpKD,EAAM,OAAOH,GAET,OAAO,MAAM,qBAAsB,cAEnC,MAAM,kBAAkBG,GAAON,CAAS,GAErCM;AAAA,IACX;AACA,WAAON;AAAA,EACX,GAAE,KAAK;AAAA,GAEHQ;AAAA;AAAA,GAA2C,SAAUP,GAAQ;AAC7D,IAAAC,EAAUM,GAA2BP,CAAM;AAC3C,aAASO,EAA0BJ,GAASC,GAAW;AACnD,aAAOJ,EAAO,KAAK,MAAMF,EAAc,uBAAuBK,GAASC,CAAS,KAAK;AAAA,IACzF;AACA,WAAOG;AAAA,EACX,GAAER,CAAS;AAAA,GAEPS;AAAA;AAAA,GAAoC,SAAUR,GA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AOO;AAAA,EACX,GAAEF,CAAe;AAAA,GAEbI;AAAA;AAAA,GAAyC,SAAUd,GAAQ;AAC3D,IAAAC,EAAUa,GAAyBd,CAAM;AACzC,aAASc,EAAwBD,GAAYF,GAAQ;AACjD,UAAIN,IAAQL,EAAO,KAAK,MAAMF,EAAc,qBAAqB,qBAAsB,OAAOe,EAAW,IAAI,gBAAkB,EAAE,OAAOF,GAAQ,WAAY,EAAE,OAAOE,EAAW,iBAC1K,oBAAoB,OAAO,OAAOA,EAAW,kBAAmB,WAC5DA,EAAW,iBACXA,EAAW,eACR,IAAI,SAAUE,GAAG;AAAE,YAAIC;AAAI,gBAAQA,IAAKD,EAAE,WAAW,QAAQC,MAAO,SAASA,IAAK,KAAK,UAAUD,CAAC;AAAA,MAAG,CAAC,EACtG,KAAI,GAAI,GAAG,IAClB,MAAM,eAAe,CAAC,KAAK;AACjC,aAAAV,EAAM,aAAaQ,GACZR;AAAA,IACX;AACA,WAAOS;AAAA,EACX,GAAEf,CAAS;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __assign as l } from "../../../../tslib/tslib.es6.js";
|
|
2
|
+
import { filterProps as p } from "./utils.js";
|
|
3
|
+
import { IntlFormatError as y } from "./error.js";
|
|
4
|
+
import { FormatError as I, ErrorCode as T } from "../../../../intl-messageformat/lib/src/error.js";
|
|
5
|
+
var h = [
|
|
6
|
+
"type",
|
|
7
|
+
"style"
|
|
8
|
+
], c = Date.now();
|
|
9
|
+
function L(e) {
|
|
10
|
+
return "".concat(c, "_").concat(e, "_").concat(c);
|
|
11
|
+
}
|
|
12
|
+
function d(e, f, a, n) {
|
|
13
|
+
n === void 0 && (n = {});
|
|
14
|
+
var o = E(e, f, a, n).reduce(function(t, m) {
|
|
15
|
+
var i = m.value;
|
|
16
|
+
return typeof i != "string" ? t.push(i) : typeof t[t.length - 1] == "string" ? t[t.length - 1] += i : t.push(i), t;
|
|
17
|
+
}, []);
|
|
18
|
+
return o.length === 1 ? o[0] : o.length === 0 ? "" : o;
|
|
19
|
+
}
|
|
20
|
+
function E(e, f, a, n) {
|
|
21
|
+
var o = e.locale, t = e.onError;
|
|
22
|
+
n === void 0 && (n = {});
|
|
23
|
+
var m = Intl.ListFormat;
|
|
24
|
+
m || t(new I(`Intl.ListFormat is not available in this environment.
|
|
25
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
26
|
+
`, T.MISSING_INTL_API));
|
|
27
|
+
var i = p(n, h);
|
|
28
|
+
try {
|
|
29
|
+
var u = {}, v = a.map(function(r, g) {
|
|
30
|
+
if (typeof r == "object") {
|
|
31
|
+
var s = L(g);
|
|
32
|
+
return u[s] = r, s;
|
|
33
|
+
}
|
|
34
|
+
return String(r);
|
|
35
|
+
});
|
|
36
|
+
return f(o, i).formatToParts(v).map(function(r) {
|
|
37
|
+
return r.type === "literal" ? r : l(l({}, r), { value: u[r.value] || r.value });
|
|
38
|
+
});
|
|
39
|
+
} catch (r) {
|
|
40
|
+
t(new y("Error formatting list.", o, r));
|
|
41
|
+
}
|
|
42
|
+
return a;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
d as formatList,
|
|
46
|
+
E as formatListToParts
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/list.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { filterProps } from './utils';\nimport { FormatError, ErrorCode } from 'intl-messageformat';\nimport { IntlFormatError } from './error';\nvar LIST_FORMAT_OPTIONS = [\n 'type',\n 'style',\n];\nvar now = Date.now();\nfunction generateToken(i) {\n return \"\".concat(now, \"_\").concat(i, \"_\").concat(now);\n}\nexport function formatList(opts, getListFormat, values, options) {\n if (options === void 0) { options = {}; }\n var results = formatListToParts(opts, getListFormat, values, options).reduce(function (all, el) {\n var val = el.value;\n if (typeof val !== 'string') {\n all.push(val);\n }\n else if (typeof all[all.length - 1] === 'string') {\n all[all.length - 1] += val;\n }\n else {\n all.push(val);\n }\n return all;\n }, []);\n return results.length === 1 ? results[0] : results.length === 0 ? '' : results;\n}\nexport function formatListToParts(_a, getListFormat, values, options) {\n var locale = _a.locale, onError = _a.onError;\n if (options === void 0) { options = {}; }\n var ListFormat = Intl.ListFormat;\n if (!ListFormat) {\n onError(new FormatError(\"Intl.ListFormat is not available in this environment.\\nTry polyfilling it using \\\"@formatjs/intl-listformat\\\"\\n\", ErrorCode.MISSING_INTL_API));\n }\n var filteredOptions = filterProps(options, LIST_FORMAT_OPTIONS);\n try {\n var richValues_1 = {};\n var serializedValues = values.map(function (v, i) {\n if (typeof v === 'object') {\n var id = generateToken(i);\n richValues_1[id] = v;\n return id;\n }\n return String(v);\n });\n return getListFormat(locale, filteredOptions)\n .formatToParts(serializedValues)\n .map(function (part) {\n return part.type === 'literal'\n ? part\n : __assign(__assign({}, part), { value: richValues_1[part.value] || part.value });\n });\n }\n catch (e) {\n onError(new IntlFormatError('Error formatting list.', locale, e));\n }\n // @ts-ignore\n return values;\n}\n"],"names":["LIST_FORMAT_OPTIONS","now","generateToken","i","formatList","opts","getListFormat","values","options","results","formatListToParts","all","el","val","_a","locale","onError","ListFormat","FormatError","ErrorCode","filteredOptions","filterProps","richValues_1","serializedValues","v","id","part","__assign","e","IntlFormatError"],"mappings":";;;;AAIA,IAAIA,IAAsB;AAAA,EACtB;AAAA,EACA;AACJ,GACIC,IAAM,KAAK,IAAG;AAClB,SAASC,EAAcC,GAAG;AACtB,SAAO,GAAG,OAAOF,GAAK,GAAG,EAAE,OAAOE,GAAG,GAAG,EAAE,OAAOF,CAAG;AACxD;AACO,SAASG,EAAWC,GAAMC,GAAeC,GAAQC,GAAS;AAC7D,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIC,IAAUC,EAAkBL,GAAMC,GAAeC,GAAQC,CAAO,EAAE,OAAO,SAAUG,GAAKC,GAAI;AAC5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1
|
+
import { __assign as a } from "../../../../tslib/tslib.es6.js";
|
|
2
|
+
import { IntlMessageFormat as w } from "../../../../intl-messageformat/lib/src/core.js";
|
|
3
|
+
import { MissingTranslationError as T, MessageFormatError as b } from "./error.js";
|
|
4
|
+
import "../../../icu-messageformat-parser/lib/error.js";
|
|
5
|
+
import "../../../icu-messageformat-parser/lib/parser.js";
|
|
6
|
+
import { TYPE as x } from "../../../icu-messageformat-parser/lib/types.js";
|
|
7
|
+
import { invariant as A } from "../../../ecma402-abstract/lib/utils.js";
|
|
8
|
+
function d(r, e) {
|
|
9
|
+
return Object.keys(r).reduce(function(t, n) {
|
|
10
|
+
return t[n] = a({ timeZone: e }, r[n]), t;
|
|
11
|
+
}, {});
|
|
12
|
+
}
|
|
13
|
+
function j(r, e) {
|
|
14
|
+
var t = Object.keys(a(a({}, r), e));
|
|
15
|
+
return t.reduce(function(n, m) {
|
|
16
|
+
return n[m] = a(a({}, r[m] || {}), e[m] || {}), n;
|
|
17
|
+
}, {});
|
|
18
|
+
}
|
|
19
|
+
function F(r, e) {
|
|
20
|
+
if (!e)
|
|
21
|
+
return r;
|
|
22
|
+
var t = w.formats;
|
|
23
|
+
return a(a(a({}, t), r), { date: j(d(t.date, e), d(r.date || {}, e)), time: j(d(t.time, e), d(r.time || {}, e)) });
|
|
24
|
+
}
|
|
25
|
+
var Y = function(r, e, t, n, m) {
|
|
26
|
+
var s = r.locale, y = r.formats, p = r.messages, h = r.defaultLocale, l = r.defaultFormats, O = r.fallbackOnEmptyString, c = r.onError, E = r.timeZone, v = r.defaultRichTextElements;
|
|
27
|
+
t === void 0 && (t = { id: "" });
|
|
28
|
+
var M = t.id, i = t.defaultMessage;
|
|
29
|
+
A(!!M, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
30
|
+
var f = String(M), o = (
|
|
31
|
+
// In case messages is Object.create(null)
|
|
32
|
+
// e.g import('foo.json') from webpack)
|
|
33
|
+
// See https://github.com/formatjs/formatjs/issues/1914
|
|
34
|
+
p && Object.prototype.hasOwnProperty.call(p, f) && p[f]
|
|
35
|
+
);
|
|
36
|
+
if (Array.isArray(o) && o.length === 1 && o[0].type === x.literal)
|
|
37
|
+
return o[0].value;
|
|
38
|
+
if (!n && o && typeof o == "string" && !v)
|
|
39
|
+
return o.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
40
|
+
if (n = a(a({}, v), n || {}), y = F(y, E), l = F(l, E), !o) {
|
|
41
|
+
if (O === !1 && o === "")
|
|
42
|
+
return o;
|
|
43
|
+
if ((!i || s && s.toLowerCase() !== h.toLowerCase()) && c(new T(t, s)), i)
|
|
44
|
+
try {
|
|
45
|
+
var u = e.getMessageFormat(i, h, l, m);
|
|
46
|
+
return u.format(n);
|
|
47
|
+
} catch (g) {
|
|
48
|
+
return c(new b('Error formatting default message for: "'.concat(f, '", rendering default message verbatim'), s, t, g)), typeof i == "string" ? i : f;
|
|
49
|
+
}
|
|
50
|
+
return f;
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
var u = e.getMessageFormat(o, s, y, a({ formatters: e }, m || {}));
|
|
54
|
+
return u.format(n);
|
|
55
|
+
} catch (g) {
|
|
56
|
+
c(new b('Error formatting message: "'.concat(f, '", using ').concat(i ? "default message" : "id", " as fallback."), s, t, g));
|
|
57
|
+
}
|
|
58
|
+
if (i)
|
|
59
|
+
try {
|
|
60
|
+
var u = e.getMessageFormat(i, h, l, m);
|
|
61
|
+
return u.format(n);
|
|
62
|
+
} catch (g) {
|
|
63
|
+
c(new b('Error formatting the default message for: "'.concat(f, '", rendering message verbatim'), s, t, g));
|
|
64
|
+
}
|
|
65
|
+
return typeof o == "string" ? o : typeof i == "string" ? i : f;
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
Y as formatMessage
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/message.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { invariant } from '@formatjs/ecma402-abstract';\nimport { IntlMessageFormat, } from 'intl-messageformat';\nimport { MissingTranslationError, MessageFormatError } from './error';\nimport { TYPE } from '@formatjs/icu-messageformat-parser';\nfunction setTimeZoneInOptions(opts, timeZone) {\n return Object.keys(opts).reduce(function (all, k) {\n all[k] = __assign({ timeZone: timeZone }, opts[k]);\n return all;\n }, {});\n}\nfunction deepMergeOptions(opts1, opts2) {\n var keys = Object.keys(__assign(__assign({}, opts1), opts2));\n return keys.reduce(function (all, k) {\n all[k] = __assign(__assign({}, (opts1[k] || {})), (opts2[k] || {}));\n return all;\n }, {});\n}\nfunction deepMergeFormatsAndSetTimeZone(f1, timeZone) {\n if (!timeZone) {\n return f1;\n }\n var mfFormats = IntlMessageFormat.formats;\n return __assign(__assign(__assign({}, mfFormats), f1), { date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)), time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone)) });\n}\nexport var formatMessage = function (_a, state, messageDescriptor, values, opts) {\n var locale = _a.locale, formats = _a.formats, messages = _a.messages, defaultLocale = _a.defaultLocale, defaultFormats = _a.defaultFormats, fallbackOnEmptyString = _a.fallbackOnEmptyString, onError = _a.onError, timeZone = _a.timeZone, defaultRichTextElements = _a.defaultRichTextElements;\n if (messageDescriptor === void 0) { messageDescriptor = { id: '' }; }\n var msgId = messageDescriptor.id, defaultMessage = messageDescriptor.defaultMessage;\n // `id` is a required field of a Message Descriptor.\n invariant(!!msgId, \"[@formatjs/intl] An `id` must be provided to format a message. You can either:\\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\\nto autofix this issue\");\n var id = String(msgId);\n var message = \n // In case messages is Object.create(null)\n // e.g import('foo.json') from webpack)\n // See https://github.com/formatjs/formatjs/issues/1914\n messages &&\n Object.prototype.hasOwnProperty.call(messages, id) &&\n messages[id];\n // IMPORTANT: Hot path if `message` is AST with a single literal node\n if (Array.isArray(message) &&\n message.length === 1 &&\n message[0].type === TYPE.literal) {\n return message[0].value;\n }\n // IMPORTANT: Hot path straight lookup for performance\n if (!values &&\n message &&\n typeof message === 'string' &&\n !defaultRichTextElements) {\n return message.replace(/'\\{(.*?)\\}'/gi, \"{$1}\");\n }\n values = __assign(__assign({}, defaultRichTextElements), (values || {}));\n formats = deepMergeFormatsAndSetTimeZone(formats, timeZone);\n defaultFormats = deepMergeFormatsAndSetTimeZone(defaultFormats, timeZone);\n if (!message) {\n if (fallbackOnEmptyString === false && message === '') {\n return message;\n }\n if (!defaultMessage ||\n (locale && locale.toLowerCase() !== defaultLocale.toLowerCase())) {\n // This prevents warnings from littering the console in development\n // when no `messages` are passed into the <IntlProvider> for the\n // default locale.\n onError(new MissingTranslationError(messageDescriptor, locale));\n }\n if (defaultMessage) {\n try {\n var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);\n return formatter.format(values);\n }\n catch (e) {\n onError(new MessageFormatError(\"Error formatting default message for: \\\"\".concat(id, \"\\\", rendering default message verbatim\"), locale, messageDescriptor, e));\n return typeof defaultMessage === 'string' ? defaultMessage : id;\n }\n }\n return id;\n }\n // We have the translated message\n try {\n var formatter = state.getMessageFormat(message, locale, formats, __assign({ formatters: state }, (opts || {})));\n return formatter.format(values);\n }\n catch (e) {\n onError(new MessageFormatError(\"Error formatting message: \\\"\".concat(id, \"\\\", using \").concat(defaultMessage ? 'default message' : 'id', \" as fallback.\"), locale, messageDescriptor, e));\n }\n if (defaultMessage) {\n try {\n var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);\n return formatter.format(values);\n }\n catch (e) {\n onError(new MessageFormatError(\"Error formatting the default message for: \\\"\".concat(id, \"\\\", rendering message verbatim\"), locale, messageDescriptor, e));\n }\n }\n if (typeof message === 'string') {\n return message;\n }\n if (typeof defaultMessage === 'string') {\n return defaultMessage;\n }\n return id;\n};\n"],"names":["setTimeZoneInOptions","opts","timeZone","all","k","__assign","deepMergeOptions","opts1","opts2","keys","deepMergeFormatsAndSetTimeZone","f1","mfFormats","IntlMessageFormat","formatMessage","_a","state","messageDescriptor","values","locale","formats","messages","defaultLocale","defaultFormats","fallbackOnEmptyString","onError","defaultRichTextElements","msgId","defaultMessage","invariant","id","message","TYPE","MissingTranslationError","formatter","e","MessageFormatError"],"mappings":";;;;;;;AAKA,SAASA,EAAqBC,GAAMC,GAAU;AAC1C,SAAO,OAAO,KAAKD,CAAI,EAAE,OAAO,SAAUE,GAAKC,GAAG;AAC9C,WAAAD,EAAIC,CAAC,IAAIC,EAAS,EAAE,UAAUH,EAAQ,GAAID,EAAKG,CAAC,CAAC,GAC1CD;AAAA,EACX,GAAG,CAAA,CAAE;AACT;AACA,SAASG,EAAiBC,GAAOC,GAAO;AACpC,MAAIC,IAAO,OAAO,KAAKJ,EAASA,EAAS,IAAIE,CAAK,GAAGC,CAAK,CAAC;AAC3D,SAAOC,EAAK,OAAO,SAAUN,GAAKC,GAAG;AACjC,WAAAD,EAAIC,CAAC,IAAIC,EAASA,EAAS,CAAA,GAAKE,EAAMH,CAAC,KAAK,CAAA,CAAE,GAAKI,EAAMJ,CAAC,KAAK,CAAA,CAAE,GAC1DD;AAAA,EACX,GAAG,CAAA,CAAE;AACT;AACA,SAASO,EAA+BC,GAAIT,GAAU;AAClD,MAAI,CAACA;AACD,WAAOS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58 @@
|
|
|
1
|
+
import { IntlFormatError as e } from "./error.js";
|
|
2
|
+
import { getNamedFormat as l, filterProps as g } from "./utils.js";
|
|
3
|
+
var s = [
|
|
4
|
+
"style",
|
|
5
|
+
"currency",
|
|
6
|
+
"unit",
|
|
7
|
+
"unitDisplay",
|
|
8
|
+
"useGrouping",
|
|
9
|
+
"minimumIntegerDigits",
|
|
10
|
+
"minimumFractionDigits",
|
|
11
|
+
"maximumFractionDigits",
|
|
12
|
+
"minimumSignificantDigits",
|
|
13
|
+
"maximumSignificantDigits",
|
|
14
|
+
// ES2020 NumberFormat
|
|
15
|
+
"compactDisplay",
|
|
16
|
+
"currencyDisplay",
|
|
17
|
+
"currencySign",
|
|
18
|
+
"notation",
|
|
19
|
+
"signDisplay",
|
|
20
|
+
"unit",
|
|
21
|
+
"unitDisplay",
|
|
22
|
+
"numberingSystem",
|
|
23
|
+
// ES2023 NumberFormat
|
|
24
|
+
"trailingZeroDisplay",
|
|
25
|
+
"roundingPriority",
|
|
26
|
+
"roundingIncrement",
|
|
27
|
+
"roundingMode"
|
|
28
|
+
];
|
|
29
|
+
function o(r, n, t) {
|
|
30
|
+
var i = r.locale, m = r.formats, u = r.onError;
|
|
31
|
+
t === void 0 && (t = {});
|
|
32
|
+
var a = t.format, c = a && l(m, "number", a, u) || {}, f = g(t, s, c);
|
|
33
|
+
return n(i, f);
|
|
34
|
+
}
|
|
35
|
+
function d(r, n, t, i) {
|
|
36
|
+
i === void 0 && (i = {});
|
|
37
|
+
try {
|
|
38
|
+
return o(r, n, i).format(t);
|
|
39
|
+
} catch (m) {
|
|
40
|
+
r.onError(new e("Error formatting number.", r.locale, m));
|
|
41
|
+
}
|
|
42
|
+
return String(t);
|
|
43
|
+
}
|
|
44
|
+
function E(r, n, t, i) {
|
|
45
|
+
i === void 0 && (i = {});
|
|
46
|
+
try {
|
|
47
|
+
return o(r, n, i).formatToParts(t);
|
|
48
|
+
} catch (m) {
|
|
49
|
+
r.onError(new e("Error formatting number.", r.locale, m));
|
|
50
|
+
}
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
d as formatNumber,
|
|
55
|
+
E as formatNumberToParts,
|
|
56
|
+
o as getFormatter
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/number.js"],"sourcesContent":["import { IntlFormatError } from './error';\nimport { filterProps, getNamedFormat } from './utils';\nvar NUMBER_FORMAT_OPTIONS = [\n 'style',\n 'currency',\n 'unit',\n 'unitDisplay',\n 'useGrouping',\n 'minimumIntegerDigits',\n 'minimumFractionDigits',\n 'maximumFractionDigits',\n 'minimumSignificantDigits',\n 'maximumSignificantDigits',\n // ES2020 NumberFormat\n 'compactDisplay',\n 'currencyDisplay',\n 'currencySign',\n 'notation',\n 'signDisplay',\n 'unit',\n 'unitDisplay',\n 'numberingSystem',\n // ES2023 NumberFormat\n 'trailingZeroDisplay',\n 'roundingPriority',\n 'roundingIncrement',\n 'roundingMode',\n];\nexport function getFormatter(_a, getNumberFormat, options) {\n var locale = _a.locale, formats = _a.formats, onError = _a.onError;\n if (options === void 0) { options = {}; }\n var format = options.format;\n var defaults = ((format &&\n getNamedFormat(formats, 'number', format, onError)) ||\n {});\n var filteredOptions = filterProps(options, NUMBER_FORMAT_OPTIONS, defaults);\n return getNumberFormat(locale, filteredOptions);\n}\nexport function formatNumber(config, getNumberFormat, value, options) {\n if (options === void 0) { options = {}; }\n try {\n return getFormatter(config, getNumberFormat, options).format(value);\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting number.', config.locale, e));\n }\n return String(value);\n}\nexport function formatNumberToParts(config, getNumberFormat, value, options) {\n if (options === void 0) { options = {}; }\n try {\n return getFormatter(config, getNumberFormat, options).formatToParts(value);\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting number.', config.locale, e));\n }\n return [];\n}\n"],"names":["NUMBER_FORMAT_OPTIONS","getFormatter","_a","getNumberFormat","options","locale","formats","onError","format","defaults","getNamedFormat","filteredOptions","filterProps","formatNumber","config","value","e","IntlFormatError","formatNumberToParts"],"mappings":";;AAEA,IAAIA,IAAwB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AACO,SAASC,EAAaC,GAAIC,GAAiBC,GAAS;AACvD,MAAIC,IAASH,EAAG,QAAQI,IAAUJ,EAAG,SAASK,IAAUL,EAAG;AAC3D,EAAIE,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAII,IAASJ,EAAQ,QACjBK,IAAaD,KACbE,EAAeJ,GAAS,UAAUE,GAAQD,CAAO,KACjD,IACAI,IAAkBC,EAAYR,GAASJ,GAAuBS,CAAQ;AAC1E,SAAON,EAAgBE,GAAQM,CAAe;AAClD;AACO,SAASE,EAAaC,GAAQX,GAAiBY,GAAOX,GAAS;AAClE,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAI;AACA,WAAOH,EAAaa,GAAQX,GAAiBC,CAAO,EAAE,OAAOW,CAAK;AAAA,EACtE,SACOC,GAAG;AACN,IAAAF,EAAO,QAAQ,IAAIG,EAAgB,4BAA4BH,EAAO,QAAQE,CAAC,CAAC;AAAA,EACpF;AACA,SAAO,OAAOD,CAAK;AACvB;AACO,SAASG,EAAoBJ,GAAQX,GAAiBY,GAAOX,GAAS;AACzE,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAI;AACA,WAAOH,EAAaa,GAAQX,GAAiBC,CAAO,EAAE,cAAcW,CAAK;AAAA,EAC7E,SACOC,GAAG;AACN,IAAAF,EAAO,QAAQ,IAAIG,EAAgB,4BAA4BH,EAAO,QAAQE,CAAC,CAAC;AAAA,EACpF;AACA,SAAO,CAAA;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { filterProps as f } from "./utils.js";
|
|
2
|
+
import { IntlFormatError as m } from "./error.js";
|
|
3
|
+
import { FormatError as u, ErrorCode as p } from "../../../../intl-messageformat/lib/src/error.js";
|
|
4
|
+
var s = ["type"];
|
|
5
|
+
function v(l, e, n, r) {
|
|
6
|
+
var o = l.locale, t = l.onError;
|
|
7
|
+
r === void 0 && (r = {}), Intl.PluralRules || t(new u(`Intl.PluralRules is not available in this environment.
|
|
8
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
9
|
+
`, p.MISSING_INTL_API));
|
|
10
|
+
var i = f(r, s);
|
|
11
|
+
try {
|
|
12
|
+
return e(o, i).select(n);
|
|
13
|
+
} catch (a) {
|
|
14
|
+
t(new m("Error formatting plural.", o, a));
|
|
15
|
+
}
|
|
16
|
+
return "other";
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
v as formatPlural
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=plural.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plural.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/plural.js"],"sourcesContent":["import { filterProps } from './utils';\nimport { IntlFormatError } from './error';\nimport { ErrorCode, FormatError } from 'intl-messageformat';\nvar PLURAL_FORMAT_OPTIONS = ['type'];\nexport function formatPlural(_a, getPluralRules, value, options) {\n var locale = _a.locale, onError = _a.onError;\n if (options === void 0) { options = {}; }\n if (!Intl.PluralRules) {\n onError(new FormatError(\"Intl.PluralRules is not available in this environment.\\nTry polyfilling it using \\\"@formatjs/intl-pluralrules\\\"\\n\", ErrorCode.MISSING_INTL_API));\n }\n var filteredOptions = filterProps(options, PLURAL_FORMAT_OPTIONS);\n try {\n return getPluralRules(locale, filteredOptions).select(value);\n }\n catch (e) {\n onError(new IntlFormatError('Error formatting plural.', locale, e));\n }\n return 'other';\n}\n"],"names":["PLURAL_FORMAT_OPTIONS","formatPlural","_a","getPluralRules","value","options","locale","onError","FormatError","ErrorCode","filteredOptions","filterProps","e","IntlFormatError"],"mappings":";;;AAGA,IAAIA,IAAwB,CAAC,MAAM;AAC5B,SAASC,EAAaC,GAAIC,GAAgBC,GAAOC,GAAS;AAC7D,MAAIC,IAASJ,EAAG,QAAQK,IAAUL,EAAG;AACrC,EAAIG,MAAY,WAAUA,IAAU,CAAA,IAC/B,KAAK,eACNE,EAAQ,IAAIC,EAAY;AAAA;AAAA,GAAqHC,EAAU,gBAAgB,CAAC;AAE5K,MAAIC,IAAkBC,EAAYN,GAASL,CAAqB;AAChE,MAAI;AACA,WAAOG,EAAeG,GAAQI,CAAe,EAAE,OAAON,CAAK;AAAA,EAC/D,SACOQ,GAAG;AACN,IAAAL,EAAQ,IAAIM,EAAgB,4BAA4BP,GAAQM,CAAC,CAAC;AAAA,EACtE;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getNamedFormat as f, filterProps as v } from "./utils.js";
|
|
2
|
+
import { IntlFormatError as E } from "./error.js";
|
|
3
|
+
import { FormatError as I, ErrorCode as T } from "../../../../intl-messageformat/lib/src/error.js";
|
|
4
|
+
var F = ["numeric", "style"];
|
|
5
|
+
function d(r, m, t) {
|
|
6
|
+
var e = r.locale, o = r.formats, i = r.onError;
|
|
7
|
+
t === void 0 && (t = {});
|
|
8
|
+
var a = t.format, l = !!a && f(o, "relative", a, i) || {}, n = v(t, F, l);
|
|
9
|
+
return m(e, n);
|
|
10
|
+
}
|
|
11
|
+
function u(r, m, t, e, o) {
|
|
12
|
+
o === void 0 && (o = {}), e || (e = "second");
|
|
13
|
+
var i = Intl.RelativeTimeFormat;
|
|
14
|
+
i || r.onError(new I(`Intl.RelativeTimeFormat is not available in this environment.
|
|
15
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
16
|
+
`, T.MISSING_INTL_API));
|
|
17
|
+
try {
|
|
18
|
+
return d(r, m, o).format(t, e);
|
|
19
|
+
} catch (a) {
|
|
20
|
+
r.onError(new E("Error formatting relative time.", r.locale, a));
|
|
21
|
+
}
|
|
22
|
+
return String(t);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
u as formatRelativeTime
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=relativeTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relativeTime.js","sources":["../../../../../../node_modules/@formatjs/intl/lib/src/relativeTime.js"],"sourcesContent":["import { getNamedFormat, filterProps } from './utils';\nimport { FormatError, ErrorCode } from 'intl-messageformat';\nimport { IntlFormatError } from './error';\nvar RELATIVE_TIME_FORMAT_OPTIONS = ['numeric', 'style'];\nfunction getFormatter(_a, getRelativeTimeFormat, options) {\n var locale = _a.locale, formats = _a.formats, onError = _a.onError;\n if (options === void 0) { options = {}; }\n var format = options.format;\n var defaults = (!!format && getNamedFormat(formats, 'relative', format, onError)) || {};\n var filteredOptions = filterProps(options, RELATIVE_TIME_FORMAT_OPTIONS, defaults);\n return getRelativeTimeFormat(locale, filteredOptions);\n}\nexport function formatRelativeTime(config, getRelativeTimeFormat, value, unit, options) {\n if (options === void 0) { options = {}; }\n if (!unit) {\n unit = 'second';\n }\n var RelativeTimeFormat = Intl.RelativeTimeFormat;\n if (!RelativeTimeFormat) {\n config.onError(new FormatError(\"Intl.RelativeTimeFormat is not available in this environment.\\nTry polyfilling it using \\\"@formatjs/intl-relativetimeformat\\\"\\n\", ErrorCode.MISSING_INTL_API));\n }\n try {\n return getFormatter(config, getRelativeTimeFormat, options).format(value, unit);\n }\n catch (e) {\n config.onError(new IntlFormatError('Error formatting relative time.', config.locale, e));\n }\n return String(value);\n}\n"],"names":["RELATIVE_TIME_FORMAT_OPTIONS","getFormatter","_a","getRelativeTimeFormat","options","locale","formats","onError","format","defaults","getNamedFormat","filteredOptions","filterProps","formatRelativeTime","config","value","unit","RelativeTimeFormat","FormatError","ErrorCode","e","IntlFormatError"],"mappings":";;;AAGA,IAAIA,IAA+B,CAAC,WAAW,OAAO;AACtD,SAASC,EAAaC,GAAIC,GAAuBC,GAAS;AACtD,MAAIC,IAASH,EAAG,QAAQI,IAAUJ,EAAG,SAASK,IAAUL,EAAG;AAC3D,EAAIE,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAII,IAASJ,EAAQ,QACjBK,IAAY,CAAC,CAACD,KAAUE,EAAeJ,GAAS,YAAYE,GAAQD,CAAO,KAAM,CAAA,GACjFI,IAAkBC,EAAYR,GAASJ,GAA8BS,CAAQ;AACjF,SAAON,EAAsBE,GAAQM,CAAe;AACxD;AACO,SAASE,EAAmBC,GAAQX,GAAuBY,GAAOC,GAAMZ,GAAS;AACpF,EAAIA,MAAY,WAAUA,IAAU,CAAA,IAC/BY,MACDA,IAAO;AAEX,MAAIC,IAAqB,KAAK;AAC9B,EAAKA,KACDH,EAAO,QAAQ,IAAII,EAAY;AAAA;AAAA,GAAmIC,EAAU,gBAAgB,CAAC;AAEjM,MAAI;AACA,WAAOlB,EAAaa,GAAQX,GAAuBC,CAAO,EAAE,OAAOW,GAAOC,CAAI;AAAA,EAClF,SACOI,GAAG;AACN,IAAAN,EAAO,QAAQ,IAAIO,EAAgB,mCAAmCP,EAAO,QAAQM,CAAC,CAAC;AAAA,EAC3F;AACA,SAAO,OAAOL,CAAK;AACvB;","x_google_ignoreList":[0]}
|