@onesy/ui-react 1.0.130 → 1.0.131
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/Accordion/Accordion.js +342 -242
- package/Accordion/index.js +12 -7
- package/AdvancedTextField/AdvancedTextField.js +165 -157
- package/AdvancedTextField/index.js +12 -7
- package/Append/Append.js +502 -519
- package/Append/index.js +12 -7
- package/AreaChart/AreaChart.js +53 -40
- package/AreaChart/index.js +12 -7
- package/AreaChartItem/AreaChartItem.js +325 -237
- package/AreaChartItem/index.js +12 -7
- package/AudioPlayer/AudioPlayer.js +683 -466
- package/AudioPlayer/index.js +12 -7
- package/AudioRecorder/AudioRecorder.js +359 -259
- package/AudioRecorder/index.js +12 -7
- package/AutoComplete/AutoComplete.js +693 -568
- package/AutoComplete/index.js +12 -7
- package/AutoCompleteCountry/AutoCompleteCountry.js +99 -62
- package/AutoCompleteCountry/index.js +12 -7
- package/AutoCompleteCurrency/AutoCompleteCurrency.js +73 -61
- package/AutoCompleteCurrency/index.js +12 -7
- package/Avatar/Avatar.js +113 -86
- package/Avatar/index.js +12 -7
- package/AvatarGroup/AvatarGroup.js +104 -87
- package/AvatarGroup/index.js +12 -7
- package/Backdrop/Backdrop.js +160 -139
- package/Backdrop/index.js +12 -7
- package/Badge/Badge.js +116 -96
- package/Badge/index.js +12 -7
- package/Banner/Banner.js +126 -85
- package/Banner/index.js +12 -7
- package/BottomAppBar/BottomAppBar.js +89 -60
- package/BottomAppBar/index.js +12 -7
- package/BottomSheet/BottomSheet.js +66 -59
- package/BottomSheet/index.js +12 -7
- package/Box/Box.js +43 -35
- package/Box/index.js +12 -7
- package/Breadcrumbs/Breadcrumbs.js +168 -144
- package/Breadcrumbs/index.js +12 -7
- package/BubbleChart/BubbleChart.js +261 -132
- package/BubbleChart/index.js +12 -7
- package/BubbleChartItem/BubbleChartItem.js +228 -161
- package/BubbleChartItem/index.js +12 -7
- package/Button/Button.js +488 -467
- package/Button/index.js +12 -7
- package/Buttons/Buttons.js +366 -293
- package/Buttons/index.js +12 -7
- package/Calendar/Calendar.js +715 -452
- package/Calendar/index.js +12 -7
- package/CalendarAvailability/CalendarAvailability.js +709 -388
- package/CalendarAvailability/index.js +12 -7
- package/CalendarMenu/CalendarMenu.js +430 -303
- package/CalendarMenu/index.js +12 -7
- package/CalendarMonth/CalendarMonth.js +537 -498
- package/CalendarMonth/index.js +12 -7
- package/CalendarViews/CalendarViews.js +403 -254
- package/CalendarViews/index.js +12 -7
- package/CalendarWeek/CalendarWeek.js +536 -395
- package/CalendarWeek/index.js +12 -7
- package/Card/Card.js +133 -101
- package/Card/index.js +12 -7
- package/CardButton/CardButton.js +78 -58
- package/CardButton/index.js +12 -7
- package/CardFooter/CardFooter.js +58 -39
- package/CardFooter/index.js +12 -7
- package/CardHeader/CardHeader.js +61 -44
- package/CardHeader/index.js +12 -7
- package/CardImage/CardImage.js +80 -67
- package/CardImage/index.js +12 -7
- package/CardMain/CardMain.js +53 -39
- package/CardMain/index.js +12 -7
- package/Carousel/Carousel.js +1025 -913
- package/Carousel/index.js +12 -7
- package/Chart/Chart.js +1325 -1174
- package/Chart/index.js +12 -7
- package/Checkbox/Checkbox.js +339 -325
- package/Checkbox/index.js +12 -7
- package/Chip/Chip.js +131 -102
- package/Chip/index.js +12 -7
- package/Chips/Chips.js +121 -94
- package/Chips/index.js +12 -7
- package/ClickListener/ClickListener.js +86 -89
- package/ClickListener/index.js +12 -7
- package/Clock/Clock.js +470 -417
- package/Clock/index.js +12 -7
- package/ColorTextField/ColorTextField.js +234 -171
- package/ColorTextField/index.js +12 -7
- package/ColumnChart/ColumnChart.js +63 -46
- package/ColumnChart/index.js +12 -7
- package/ColumnChartItem/ColumnChartItem.js +208 -149
- package/ColumnChartItem/index.js +12 -7
- package/Confirm/Confirm.js +184 -129
- package/Confirm/Context.js +9 -7
- package/Confirm/index.js +32 -13
- package/Confirm/useConfirm.js +11 -10
- package/Container/Container.js +154 -133
- package/Container/index.js +12 -7
- package/CookieBanner/CookieBanner.js +142 -76
- package/CookieBanner/index.js +12 -7
- package/Countdown/Countdown.js +403 -255
- package/Countdown/index.js +12 -7
- package/DatePicker/DatePicker.js +802 -547
- package/DatePicker/index.js +12 -7
- package/DateRangePicker/DateRangePicker.js +44 -37
- package/DateRangePicker/index.js +12 -7
- package/DateTimePicker/DateTimePicker.js +672 -459
- package/DateTimePicker/index.js +12 -7
- package/DateTimeRangePicker/DateTimeRangePicker.js +44 -37
- package/DateTimeRangePicker/index.js +12 -7
- package/Divider/Divider.js +198 -185
- package/Divider/index.js +12 -7
- package/DonutChart/DonutChart.js +49 -42
- package/DonutChart/index.js +12 -7
- package/DragAndDropList/DragAndDropList.js +160 -156
- package/DragAndDropList/index.js +12 -7
- package/Drawing/Drawing.js +850 -523
- package/Drawing/index.js +12 -7
- package/DropZone/DropZone.js +239 -201
- package/DropZone/index.js +12 -7
- package/Emojis/Emojis.js +409 -317
- package/Emojis/emojis_list.js +7279 -9250
- package/Emojis/index.js +19 -9
- package/Expand/Expand.js +201 -149
- package/Expand/index.js +12 -7
- package/Fab/Fab.js +46 -26
- package/Fab/index.js +12 -7
- package/Fade/Fade.js +131 -101
- package/Fade/index.js +12 -7
- package/FileChoose/FileChoose.js +218 -150
- package/FileChoose/index.js +12 -7
- package/Focus/Focus.js +87 -88
- package/Focus/index.js +12 -7
- package/Form/Form.js +194 -120
- package/Form/index.js +12 -7
- package/FormRow/FormRow.js +123 -78
- package/FormRow/index.js +12 -7
- package/Forms/Forms.js +55 -41
- package/Forms/index.js +12 -7
- package/Frame/Frame.js +212 -150
- package/Frame/index.js +12 -7
- package/Grid/Grid.js +231 -166
- package/Grid/index.js +12 -7
- package/Grow/Grow.js +137 -109
- package/Grow/index.js +12 -7
- package/HTMLCanvas/HTMLCanvas.js +752 -542
- package/HTMLCanvas/index.js +24 -21
- package/IFrame/IFrame.js +122 -104
- package/IFrame/index.js +12 -7
- package/Icon/Icon.js +112 -95
- package/Icon/index.js +24 -21
- package/IconButton/IconButton.js +49 -37
- package/IconButton/index.js +12 -7
- package/Image/Image.js +285 -252
- package/Image/index.js +12 -7
- package/ImageCrop/ImageCrop.js +1073 -1048
- package/ImageCrop/index.js +12 -7
- package/ImageEdit/ImageEdit.js +1088 -783
- package/ImageEdit/index.js +12 -7
- package/ImageGallery/ImageGallery.js +518 -473
- package/ImageGallery/index.js +12 -7
- package/ImageList/ImageList.js +136 -129
- package/ImageList/index.js +12 -7
- package/ImageListItem/ImageListItem.js +101 -87
- package/ImageListItem/index.js +12 -7
- package/ImageListItemBox/ImageListItemBox.js +61 -50
- package/ImageListItemBox/index.js +12 -7
- package/Info/Info.js +99 -63
- package/Info/index.js +12 -7
- package/Interaction/Interaction.js +405 -345
- package/Interaction/index.js +12 -7
- package/Keyframes/Context.js +9 -7
- package/Keyframes/Keyframes.js +189 -174
- package/Keyframes/index.js +42 -25
- package/Keyframes/useKeyframes.js +11 -10
- package/Label/Label.js +177 -151
- package/Label/index.js +12 -7
- package/Labels/Labels.js +126 -98
- package/Labels/index.js +12 -7
- package/Line/Line.js +296 -174
- package/Line/index.js +12 -7
- package/LineChart/LineChart.js +57 -40
- package/LineChart/index.js +12 -7
- package/LineChartItem/LineChartItem.js +239 -177
- package/LineChartItem/index.js +12 -7
- package/LinearMeter/LinearMeter.js +453 -377
- package/LinearMeter/index.js +12 -7
- package/LinearProgress/LinearProgress.js +324 -255
- package/LinearProgress/index.js +12 -7
- package/Link/Link.js +182 -127
- package/Link/index.js +12 -7
- package/Links/Links.js +277 -156
- package/Links/index.js +12 -7
- package/List/List.js +148 -113
- package/List/index.js +12 -7
- package/ListItem/ListItem.js +388 -362
- package/ListItem/index.js +12 -7
- package/ListSubheader/ListSubheader.js +52 -44
- package/ListSubheader/index.js +12 -7
- package/MainProgress/Context.js +9 -7
- package/MainProgress/MainProgress.js +193 -161
- package/MainProgress/index.js +32 -13
- package/MainProgress/useMainProgress.js +11 -10
- package/Markdown/Markdown.js +676 -704
- package/Markdown/index.js +12 -7
- package/Masonry/Masonry.js +207 -181
- package/Masonry/index.js +12 -7
- package/Medias/Medias.js +436 -398
- package/Medias/index.js +12 -7
- package/Menu/Menu.js +278 -243
- package/Menu/index.js +12 -7
- package/MenuDesktop/MenuDesktop.js +496 -419
- package/MenuDesktop/index.js +12 -7
- package/MenuItem/MenuItem.js +286 -231
- package/MenuItem/index.js +12 -7
- package/Meta/Meta.js +78 -54
- package/Meta/index.js +12 -7
- package/Modal/Modal.js +333 -272
- package/Modal/index.js +12 -7
- package/ModalFooter/ModalFooter.js +50 -39
- package/ModalFooter/index.js +12 -7
- package/ModalHeader/ModalHeader.js +51 -39
- package/ModalHeader/index.js +12 -7
- package/ModalIcon/ModalIcon.js +29 -23
- package/ModalIcon/index.js +12 -7
- package/ModalMain/ModalMain.js +50 -41
- package/ModalMain/index.js +12 -7
- package/ModalText/ModalText.js +47 -37
- package/ModalText/index.js +12 -7
- package/ModalTitle/ModalTitle.js +47 -37
- package/ModalTitle/index.js +12 -7
- package/MoreOptions/MoreOptions.js +72 -52
- package/MoreOptions/index.js +12 -7
- package/Move/Move.js +166 -141
- package/Move/index.js +12 -7
- package/NavigationBar/NavigationBar.js +133 -109
- package/NavigationBar/index.js +12 -7
- package/NavigationDrawer/NavigationDrawer.js +241 -211
- package/NavigationDrawer/index.js +12 -7
- package/NavigationItem/NavigationItem.js +293 -262
- package/NavigationItem/index.js +12 -7
- package/NavigationRail/NavigationRail.js +187 -150
- package/NavigationRail/index.js +12 -7
- package/NotFound/NotFound.js +89 -66
- package/NotFound/index.js +12 -7
- package/NumericTextField/NumericTextField.js +217 -212
- package/NumericTextField/index.js +12 -7
- package/Page/Page.js +131 -67
- package/Page/index.js +12 -7
- package/PageTransition/PageTransition.js +112 -102
- package/PageTransition/index.js +12 -7
- package/Pagination/Pagination.js +153 -98
- package/Pagination/index.js +12 -7
- package/PaginationItem/PaginationItem.js +85 -65
- package/PaginationItem/index.js +12 -7
- package/Parallax/Parallax.js +138 -145
- package/Parallax/index.js +12 -7
- package/Path/Path.js +40 -35
- package/Path/index.js +12 -7
- package/PieChart/PieChart.js +382 -267
- package/PieChart/index.js +12 -7
- package/Placeholder/Placeholder.js +125 -117
- package/Placeholder/index.js +12 -7
- package/Portal/Portal.js +37 -38
- package/Portal/index.js +12 -7
- package/Properties/Properties.js +85 -64
- package/Properties/index.js +12 -7
- package/Property/Property.js +120 -108
- package/Property/index.js +12 -7
- package/Radio/Radio.js +211 -181
- package/Radio/index.js +12 -7
- package/Radios/Radios.js +124 -92
- package/Radios/index.js +12 -7
- package/Rating/Rating.js +353 -360
- package/Rating/index.js +12 -7
- package/Reset/Reset.js +19 -24
- package/Reset/index.js +12 -7
- package/Reveal/Reveal.js +98 -89
- package/Reveal/index.js +12 -7
- package/RichTextEditor/RichTextEditor.js +1764 -972
- package/RichTextEditor/index.js +12 -7
- package/RoundMeter/RoundMeter.js +629 -537
- package/RoundMeter/index.js +12 -7
- package/RoundProgress/RoundProgress.js +233 -174
- package/RoundProgress/index.js +12 -7
- package/ScatterChart/ScatterChart.js +53 -40
- package/ScatterChart/index.js +12 -7
- package/ScatterChartItem/ScatterChartItem.js +214 -153
- package/ScatterChartItem/index.js +12 -7
- package/ScreenCapture/ScreenCapture.js +427 -335
- package/ScreenCapture/index.js +12 -7
- package/Section/Section.js +380 -319
- package/Section/index.js +12 -7
- package/SectionAction/SectionAction.js +72 -61
- package/SectionAction/index.js +12 -7
- package/SectionBoxes/SectionBoxes.js +240 -208
- package/SectionBoxes/index.js +12 -7
- package/SectionCards/SectionCards.js +256 -217
- package/SectionCards/index.js +12 -7
- package/SectionCarousel/SectionCarousel.js +284 -242
- package/SectionCarousel/index.js +12 -7
- package/SectionContact/SectionContact.js +174 -116
- package/SectionContact/index.js +12 -7
- package/SectionImageGallery/SectionImageGallery.js +64 -51
- package/SectionImageGallery/index.js +12 -7
- package/SectionLogos/SectionLogos.js +123 -109
- package/SectionLogos/index.js +12 -7
- package/SectionMedia/SectionMedia.js +170 -152
- package/SectionMedia/index.js +12 -7
- package/SectionReviews/SectionReviews.js +170 -129
- package/SectionReviews/index.js +12 -7
- package/SectionTextMedia/SectionTextMedia.js +187 -142
- package/SectionTextMedia/index.js +12 -7
- package/SectionTimeline/SectionTimeline.js +126 -95
- package/SectionTimeline/index.js +12 -7
- package/SectionWatch/SectionWatch.js +65 -53
- package/SectionWatch/index.js +12 -7
- package/Select/Select.js +517 -406
- package/Select/index.js +12 -7
- package/Share/Share.js +458 -319
- package/Share/index.js +12 -7
- package/Slide/Slide.js +184 -140
- package/Slide/index.js +12 -7
- package/Slider/Slider.js +927 -837
- package/Slider/index.js +12 -7
- package/SmartTextField/SmartTextField.js +1406 -1014
- package/SmartTextField/index.js +12 -7
- package/Snackbar/Snackbar.js +227 -185
- package/Snackbar/index.js +12 -7
- package/Snackbars/Context.js +9 -7
- package/Snackbars/Snackbars.js +234 -210
- package/Snackbars/index.js +32 -13
- package/Snackbars/useSnackbars.js +11 -10
- package/Space/Space.js +1683 -968
- package/Space/index.js +24 -21
- package/SpeechToText/SpeechToText.js +207 -172
- package/SpeechToText/index.js +12 -7
- package/SpeedDial/SpeedDial.js +434 -398
- package/SpeedDial/index.js +12 -7
- package/SpeedDialItem/SpeedDialItem.js +89 -63
- package/SpeedDialItem/index.js +12 -7
- package/SpyScroll/SpyScroll.js +154 -142
- package/SpyScroll/index.js +12 -7
- package/Step/Step.js +181 -127
- package/Step/index.js +12 -7
- package/Stepper/Stepper.js +159 -139
- package/Stepper/index.js +12 -7
- package/Surface/Surface.js +760 -798
- package/Surface/index.js +12 -7
- package/Switch/Switch.js +688 -532
- package/Switch/index.js +12 -7
- package/Tab/Tab.js +185 -150
- package/Tab/index.js +12 -7
- package/Table/Table.js +100 -77
- package/Table/index.js +12 -7
- package/TableBody/TableBody.js +76 -63
- package/TableBody/index.js +12 -7
- package/TableCell/TableCell.js +258 -220
- package/TableCell/index.js +12 -7
- package/TableFooter/TableFooter.js +60 -48
- package/TableFooter/index.js +12 -7
- package/TableHead/TableHead.js +139 -120
- package/TableHead/index.js +12 -7
- package/TableHeader/TableHeader.js +65 -50
- package/TableHeader/index.js +12 -7
- package/TablePagination/TablePagination.js +171 -98
- package/TablePagination/index.js +12 -7
- package/TableRow/TableRow.js +77 -64
- package/TableRow/index.js +12 -7
- package/Tabs/Tabs.js +425 -377
- package/Tabs/index.js +12 -7
- package/Text/Text.js +131 -113
- package/Text/index.js +12 -7
- package/TextField/TextField.js +940 -879
- package/TextField/index.js +12 -7
- package/TextToSpeech/TextToSpeech.js +176 -153
- package/TextToSpeech/index.js +12 -7
- package/TimePicker/TimePicker.js +985 -718
- package/TimePicker/index.js +12 -7
- package/TimeRangePicker/TimeRangePicker.js +44 -37
- package/TimeRangePicker/index.js +12 -7
- package/Timeline/Timeline.js +54 -42
- package/Timeline/index.js +12 -7
- package/TimelineItem/TimelineItem.js +144 -147
- package/TimelineItem/index.js +12 -7
- package/Timer/Timer.js +321 -204
- package/Timer/index.js +12 -7
- package/ToggleButton/ToggleButton.js +67 -58
- package/ToggleButton/index.js +12 -7
- package/ToggleButtons/ToggleButtons.js +46 -37
- package/ToggleButtons/index.js +12 -7
- package/Tooltip/Tooltip.js +489 -454
- package/Tooltip/index.js +12 -7
- package/TopAppBar/TopAppBar.js +237 -197
- package/TopAppBar/index.js +12 -7
- package/Transition/Context.js +9 -7
- package/Transition/Transition.js +321 -339
- package/Transition/index.js +42 -25
- package/Transition/useTransition.js +11 -10
- package/Transitions/Transitions.js +215 -179
- package/Transitions/index.js +12 -7
- package/Tree/Tree.js +375 -312
- package/Tree/index.js +12 -7
- package/Type/Type.js +251 -152
- package/Type/index.js +12 -7
- package/VideoPlayer/VideoPlayer.js +866 -656
- package/VideoPlayer/index.js +12 -7
- package/ViewSplit/ViewSplit.js +413 -387
- package/ViewSplit/index.js +12 -7
- package/Watch/Watch.js +436 -290
- package/Watch/index.js +12 -7
- package/Weather/Weather.js +294 -247
- package/Weather/index.js +12 -7
- package/Whiteboard/Whiteboard.js +1392 -1292
- package/Whiteboard/index.js +12 -7
- package/Widgets/Context.js +9 -7
- package/Widgets/Widgets.js +220 -168
- package/Widgets/index.js +32 -13
- package/Widgets/useWidgets.js +11 -10
- package/WindowSplit/WindowSplit.js +381 -336
- package/WindowSplit/index.js +12 -7
- package/Zoom/Zoom.js +126 -99
- package/Zoom/index.js +12 -7
- package/esm/Buttons/Buttons.js +1 -1
- package/esm/index.js +1 -1
- package/index.js +4053 -660
- package/package.json +1 -1
- package/types.js +4 -1
- package/useForm/index.js +25 -11
- package/useForm/useForm.js +203 -174
- package/useForm/validate.js +215 -203
- package/useLocation/index.js +12 -7
- package/useLocation/useLocation.js +54 -49
- package/useMediaQuery/index.js +12 -7
- package/useMediaQuery/useMediaQuery.js +44 -43
- package/useQuery/index.js +12 -7
- package/useQuery/useQuery.js +14 -10
- package/useScroll/index.js +12 -7
- package/useScroll/useScroll.js +61 -56
- package/useSubscription/index.js +12 -7
- package/useSubscription/useSubscription.js +35 -35
- package/useSwipe/index.js +12 -7
- package/useSwipe/useSwipe.js +157 -131
- package/useVisible/index.js +12 -7
- package/useVisible/useVisible.js +86 -76
- package/utils.js +1224 -1362
package/utils.js
CHANGED
|
@@ -1,1427 +1,1289 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.print = exports.minMaxBetweenNumbers = exports.matches = exports.line = exports.keyboardStyleCommands = exports.keyboardStandardCommands = exports.importIframeStyles = exports.image = exports.iconSizeToFontSize = exports.iconFontSize = exports.getOverflowParent = exports.formats = exports.decodeHTMLEntities = exports.currencies = exports.controlPoint = exports.caret = exports.canvasSaturation = exports.canvasOldPhoto = exports.canvasInvert = exports.canvasFade = exports.canvasContrast = exports.canvasBrightness = exports.angleToCoordinates = void 0;
|
|
7
|
+
exports.reflow = reflow;
|
|
8
|
+
exports.valueBreakpoints = exports.toNumber = exports.staticClassName = exports.save = exports.sanitize = exports.replace = void 0;
|
|
9
|
+
var _utils = require("@onesy/utils");
|
|
5
10
|
function reflow(element) {
|
|
6
|
-
|
|
11
|
+
element === null || element === void 0 || element.offsetHeight;
|
|
7
12
|
}
|
|
8
|
-
exports.reflow = reflow;
|
|
9
13
|
const staticClassName = (name, theme) => {
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
var _theme$ui, _theme$ui2, _theme$ui3;
|
|
15
|
+
return (theme === null || theme === void 0 || (_theme$ui = theme.ui) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.elements) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui[`onesy-${name}`]) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.className) === null || _theme$ui === void 0 ? void 0 : _theme$ui.static) !== undefined ? theme === null || theme === void 0 || (_theme$ui2 = theme.ui) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.elements) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2[`onesy-${name}`]) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.className) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.static : theme === null || theme === void 0 || (_theme$ui3 = theme.ui) === null || _theme$ui3 === void 0 ? void 0 : _theme$ui3.className.static;
|
|
12
16
|
};
|
|
13
17
|
exports.staticClassName = staticClassName;
|
|
14
|
-
const iconSizeToFontSize =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
else if (value === 'small')
|
|
19
|
-
fontSize = '1.125rem';
|
|
20
|
-
else if (value === 'regular')
|
|
21
|
-
fontSize = '1.5rem';
|
|
22
|
-
else if (value === 'medium')
|
|
23
|
-
fontSize = '1.875rem';
|
|
24
|
-
else if (value === 'large')
|
|
25
|
-
fontSize = '2.25rem';
|
|
26
|
-
else if (value === 'very large')
|
|
27
|
-
fontSize = '2.625rem';
|
|
28
|
-
else if (value !== undefined)
|
|
29
|
-
fontSize = value;
|
|
30
|
-
return fontSize;
|
|
18
|
+
const iconSizeToFontSize = value => {
|
|
19
|
+
let fontSize = '1.5rem';
|
|
20
|
+
if (value === 'very small') fontSize = '0.75rem';else if (value === 'small') fontSize = '1.125rem';else if (value === 'regular') fontSize = '1.5rem';else if (value === 'medium') fontSize = '1.875rem';else if (value === 'large') fontSize = '2.25rem';else if (value === 'very large') fontSize = '2.625rem';else if (value !== undefined) fontSize = value;
|
|
21
|
+
return fontSize;
|
|
31
22
|
};
|
|
32
|
-
|
|
23
|
+
|
|
33
24
|
// Media query value or value
|
|
25
|
+
exports.iconSizeToFontSize = iconSizeToFontSize;
|
|
34
26
|
const valueBreakpoints = (item, value, breakpoints, theme) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return item[breakpoint];
|
|
48
|
-
}
|
|
49
|
-
if ((item === null || item === void 0 ? void 0 : item.default) !== undefined)
|
|
50
|
-
return item === null || item === void 0 ? void 0 : item.default;
|
|
27
|
+
// Simple
|
|
28
|
+
if (!(0, _utils.is)('object', item) && item !== undefined) return item;
|
|
29
|
+
const breakpointsKeysTheme = Object.keys(theme.breakpoints.media);
|
|
30
|
+
const breakpointsKeys = Object.keys(breakpoints || {});
|
|
31
|
+
|
|
32
|
+
// No breakpoints object
|
|
33
|
+
if ((0, _utils.is)('object', item) && !Object.keys(item).every(prop => ['default', ...breakpointsKeysTheme].includes(prop))) return item;
|
|
34
|
+
|
|
35
|
+
// Item
|
|
36
|
+
if ((0, _utils.is)('object', item)) {
|
|
37
|
+
for (const breakpoint of breakpointsKeys) {
|
|
38
|
+
if (breakpoints[breakpoint] && (item === null || item === void 0 ? void 0 : item[breakpoint]) !== undefined) return item[breakpoint];
|
|
51
39
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return value === null || value === void 0 ? void 0 : value.default;
|
|
40
|
+
if ((item === null || item === void 0 ? void 0 : item.default) !== undefined) return item === null || item === void 0 ? void 0 : item.default;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Value
|
|
44
|
+
if ((0, _utils.is)('object', value)) {
|
|
45
|
+
for (const breakpoint of breakpointsKeys) {
|
|
46
|
+
if (breakpoints[breakpoint] && (value === null || value === void 0 ? void 0 : value[breakpoint]) !== undefined) return value[breakpoint];
|
|
60
47
|
}
|
|
61
|
-
return value;
|
|
48
|
+
if ((value === null || value === void 0 ? void 0 : value.default) !== undefined) return value === null || value === void 0 ? void 0 : value.default;
|
|
49
|
+
}
|
|
50
|
+
return value;
|
|
62
51
|
};
|
|
63
52
|
exports.valueBreakpoints = valueBreakpoints;
|
|
64
|
-
const image =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
const image = uri => new Promise((resolve, reject) => {
|
|
54
|
+
const img = document.createElement('img');
|
|
55
|
+
const method = () => resolve(img);
|
|
56
|
+
img.onload = method;
|
|
57
|
+
img.onerror = () => resolve('');
|
|
58
|
+
img.src = uri;
|
|
70
59
|
});
|
|
71
60
|
exports.image = image;
|
|
72
61
|
const canvasBrightness = (value, mainCanvas, valueCopy) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
return canvas;
|
|
62
|
+
const rootDocument = (mainCanvas === null || mainCanvas === void 0 ? void 0 : mainCanvas.ownerDocument) || window.document;
|
|
63
|
+
const canvas = rootDocument.createElement('canvas');
|
|
64
|
+
canvas.width = valueCopy.width;
|
|
65
|
+
canvas.height = valueCopy.height;
|
|
66
|
+
const context = canvas.getContext('2d');
|
|
67
|
+
context.drawImage(valueCopy, 0, 0);
|
|
68
|
+
if (![0, undefined].includes(value)) (0, _utils.canvasFilterBrightness)(value, canvas);
|
|
69
|
+
mainCanvas === null || mainCanvas === void 0 || mainCanvas.getContext('2d').drawImage(canvas, 0, 0, canvas.width, canvas.height);
|
|
70
|
+
return canvas;
|
|
83
71
|
};
|
|
84
72
|
exports.canvasBrightness = canvasBrightness;
|
|
85
73
|
const canvasContrast = (value, mainCanvas, valueCopy) => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return canvas;
|
|
74
|
+
const rootDocument = (mainCanvas === null || mainCanvas === void 0 ? void 0 : mainCanvas.ownerDocument) || window.document;
|
|
75
|
+
const canvas = rootDocument.createElement('canvas');
|
|
76
|
+
canvas.width = valueCopy.width;
|
|
77
|
+
canvas.height = valueCopy.height;
|
|
78
|
+
const context = canvas.getContext('2d');
|
|
79
|
+
context.drawImage(valueCopy, 0, 0);
|
|
80
|
+
if (![0, undefined].includes(value)) (0, _utils.canvasFilterContrast)(value, canvas);
|
|
81
|
+
mainCanvas === null || mainCanvas === void 0 || mainCanvas.getContext('2d').drawImage(canvas, 0, 0, canvas.width, canvas.height);
|
|
82
|
+
return canvas;
|
|
96
83
|
};
|
|
97
84
|
exports.canvasContrast = canvasContrast;
|
|
98
85
|
const canvasSaturation = (value, mainCanvas, valueCopy) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return canvas;
|
|
86
|
+
const rootDocument = (mainCanvas === null || mainCanvas === void 0 ? void 0 : mainCanvas.ownerDocument) || window.document;
|
|
87
|
+
const canvas = rootDocument.createElement('canvas');
|
|
88
|
+
canvas.width = valueCopy.width;
|
|
89
|
+
canvas.height = valueCopy.height;
|
|
90
|
+
const context = canvas.getContext('2d');
|
|
91
|
+
context.drawImage(valueCopy, 0, 0);
|
|
92
|
+
if (![0, undefined].includes(value)) (0, _utils.canvasFilterSaturation)(value, canvas);
|
|
93
|
+
mainCanvas === null || mainCanvas === void 0 || mainCanvas.getContext('2d').drawImage(canvas, 0, 0, canvas.width, canvas.height);
|
|
94
|
+
return canvas;
|
|
109
95
|
};
|
|
110
96
|
exports.canvasSaturation = canvasSaturation;
|
|
111
97
|
const canvasFade = (value, mainCanvas, valueCopy) => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return canvas;
|
|
98
|
+
const rootDocument = (mainCanvas === null || mainCanvas === void 0 ? void 0 : mainCanvas.ownerDocument) || window.document;
|
|
99
|
+
const canvas = rootDocument.createElement('canvas');
|
|
100
|
+
canvas.width = valueCopy.width;
|
|
101
|
+
canvas.height = valueCopy.height;
|
|
102
|
+
const context = canvas.getContext('2d');
|
|
103
|
+
context.drawImage(valueCopy, 0, 0);
|
|
104
|
+
if (![0, undefined].includes(value)) (0, _utils.canvasFilterFade)(value, canvas);
|
|
105
|
+
mainCanvas === null || mainCanvas === void 0 || mainCanvas.getContext('2d').drawImage(canvas, 0, 0, canvas.width, canvas.height);
|
|
106
|
+
return canvas;
|
|
122
107
|
};
|
|
123
108
|
exports.canvasFade = canvasFade;
|
|
124
109
|
const canvasInvert = (value, mainCanvas, valueCopy) => {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return canvas;
|
|
110
|
+
const rootDocument = (mainCanvas === null || mainCanvas === void 0 ? void 0 : mainCanvas.ownerDocument) || window.document;
|
|
111
|
+
const canvas = rootDocument.createElement('canvas');
|
|
112
|
+
canvas.width = valueCopy.width;
|
|
113
|
+
canvas.height = valueCopy.height;
|
|
114
|
+
const context = canvas.getContext('2d');
|
|
115
|
+
context.drawImage(valueCopy, 0, 0);
|
|
116
|
+
if (![0, undefined].includes(value)) (0, _utils.canvasFilterInvert)(value, canvas);
|
|
117
|
+
mainCanvas === null || mainCanvas === void 0 || mainCanvas.getContext('2d').drawImage(canvas, 0, 0, canvas.width, canvas.height);
|
|
118
|
+
return canvas;
|
|
135
119
|
};
|
|
136
120
|
exports.canvasInvert = canvasInvert;
|
|
137
121
|
const canvasOldPhoto = (value, mainCanvas, valueCopy) => {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
return canvas;
|
|
122
|
+
const rootDocument = (mainCanvas === null || mainCanvas === void 0 ? void 0 : mainCanvas.ownerDocument) || window.document;
|
|
123
|
+
const canvas = rootDocument.createElement('canvas');
|
|
124
|
+
canvas.width = valueCopy.width;
|
|
125
|
+
canvas.height = valueCopy.height;
|
|
126
|
+
const context = canvas.getContext('2d');
|
|
127
|
+
context.drawImage(valueCopy, 0, 0);
|
|
128
|
+
if (![0, undefined].includes(value)) (0, _utils.canvasFilterOldPhoto)(value, canvas);
|
|
129
|
+
mainCanvas === null || mainCanvas === void 0 || mainCanvas.getContext('2d').drawImage(canvas, 0, 0, canvas.width, canvas.height);
|
|
130
|
+
return canvas;
|
|
148
131
|
};
|
|
149
132
|
exports.canvasOldPhoto = canvasOldPhoto;
|
|
150
|
-
const print =
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
133
|
+
const print = element => {
|
|
134
|
+
const rootDocument = (element === null || element === void 0 ? void 0 : element.ownerDocument) || window.document;
|
|
135
|
+
const clone = rootDocument.cloneNode(true);
|
|
136
|
+
clone.body.innerHTML = '';
|
|
137
|
+
const elementClone = element.cloneNode(true);
|
|
138
|
+
clone.body.append(elementClone);
|
|
139
|
+
const windowNew = window.open('', 'print');
|
|
140
|
+
windowNew.document.head.innerHTML = clone.head.innerHTML;
|
|
141
|
+
windowNew.document.body.innerHTML = clone.body.innerHTML;
|
|
142
|
+
windowNew.document.close();
|
|
143
|
+
windowNew.focus();
|
|
144
|
+
windowNew.print();
|
|
145
|
+
windowNew.close();
|
|
163
146
|
};
|
|
164
147
|
exports.print = print;
|
|
165
|
-
const save =
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
148
|
+
const save = element => {
|
|
149
|
+
const rootDocument = (element === null || element === void 0 ? void 0 : element.ownerDocument) || window.document;
|
|
150
|
+
const clone = rootDocument.cloneNode(true);
|
|
151
|
+
clone.body.innerHTML = '';
|
|
152
|
+
const elementClone = element.cloneNode(true);
|
|
153
|
+
elementClone.contentEditable = 'false';
|
|
154
|
+
clone.body.append(elementClone);
|
|
155
|
+
(0, _utils.download)(`${rootDocument.title}.html`, clone.documentElement.innerHTML, 'text/html');
|
|
173
156
|
};
|
|
174
157
|
exports.save = save;
|
|
175
|
-
const matches =
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return method.bind(value);
|
|
158
|
+
const matches = value => {
|
|
159
|
+
const method = (0, _utils.is)('element', value) && (value.matches || value['webkitMatchesSelector'] || value['mozMatchesSelector'] || value['oMatchesSelector'] || value['msMatchesSelector']);
|
|
160
|
+
if (!method) return () => false;
|
|
161
|
+
return method.bind(value);
|
|
180
162
|
};
|
|
181
163
|
exports.matches = matches;
|
|
182
164
|
const angleToCoordinates = (degrees, centerX, centerY, radius) => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
165
|
+
const radians = degrees * Math.PI / 180;
|
|
166
|
+
return {
|
|
167
|
+
x: centerX + radius * Math.cos(radians),
|
|
168
|
+
y: centerY + radius * Math.sin(radians)
|
|
169
|
+
};
|
|
188
170
|
};
|
|
189
171
|
exports.angleToCoordinates = angleToCoordinates;
|
|
190
172
|
const line = (pointA, pointB) => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
173
|
+
const lengthX = pointB[0] - pointA[0];
|
|
174
|
+
const lengthY = pointB[1] - pointA[1];
|
|
175
|
+
return {
|
|
176
|
+
length: Math.sqrt(Math.pow(lengthX, 2) + Math.pow(lengthY, 2)),
|
|
177
|
+
angle: Math.atan2(lengthY, lengthX)
|
|
178
|
+
};
|
|
197
179
|
};
|
|
198
180
|
exports.line = line;
|
|
199
181
|
const controlPoint = (current, previous_, next_, reverse = false, smoothRatio = 0.14) => {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
182
|
+
const previous = previous_ || current;
|
|
183
|
+
const next = next_ || current;
|
|
184
|
+
const opposed = line(previous, next);
|
|
185
|
+
const angle = opposed.angle + (reverse ? Math.PI : 0);
|
|
186
|
+
const length = opposed.length * smoothRatio;
|
|
187
|
+
|
|
188
|
+
// Bug fix, prevent ties if x are the same
|
|
189
|
+
// for previous, and current value
|
|
190
|
+
const x = (0, _utils.clamp)(current[0] + Math.cos(angle) * length, previous[0], next[0]);
|
|
191
|
+
const y = current[1] + Math.sin(angle) * length;
|
|
192
|
+
return [x, y];
|
|
210
193
|
};
|
|
211
194
|
exports.controlPoint = controlPoint;
|
|
212
195
|
const minMaxBetweenNumbers = (value = 10, min = 0, max = 100) => {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
return values;
|
|
196
|
+
const part = (max - min) / (value - 1);
|
|
197
|
+
const values = [min];
|
|
198
|
+
for (let i = 0; i < value - 2; i++) values.push(values[values.length - 1] + part);
|
|
199
|
+
values.push(max);
|
|
200
|
+
return values;
|
|
219
201
|
};
|
|
220
202
|
exports.minMaxBetweenNumbers = minMaxBetweenNumbers;
|
|
221
|
-
const sanitize =
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
203
|
+
const sanitize = value => {
|
|
204
|
+
if (value) {
|
|
205
|
+
const map = {
|
|
206
|
+
'&': '&',
|
|
207
|
+
'<': '<',
|
|
208
|
+
'>': '>',
|
|
209
|
+
'"': '"',
|
|
210
|
+
"'": ''',
|
|
211
|
+
"/": '/',
|
|
212
|
+
"\\": '\',
|
|
213
|
+
'*': '*'
|
|
214
|
+
};
|
|
215
|
+
const reg = /[&<>"'/\\*]/ig;
|
|
216
|
+
return value.replace(reg, match => map[match]);
|
|
217
|
+
}
|
|
236
218
|
};
|
|
237
219
|
exports.sanitize = sanitize;
|
|
238
220
|
const replace = (value, split, join) => {
|
|
239
|
-
|
|
221
|
+
return value.split(split).join(join);
|
|
240
222
|
};
|
|
241
223
|
exports.replace = replace;
|
|
242
|
-
const importIframeStyles =
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
let css = '';
|
|
251
|
-
const rules = styleSheet === null || styleSheet === void 0 ? void 0 : styleSheet.cssRules;
|
|
252
|
-
for (const rule of Array.from(rules))
|
|
253
|
-
css += rule.cssText;
|
|
254
|
-
const style = window.document.createElement('style');
|
|
255
|
-
style.innerHTML = css;
|
|
256
|
-
iframeDocument.head.append(style);
|
|
224
|
+
const importIframeStyles = iframeDocument => {
|
|
225
|
+
const styleSheets = window.document.styleSheets;
|
|
226
|
+
for (const styleSheet of Array.from(styleSheets)) {
|
|
227
|
+
if (!styleSheet.ownerNode.onesy) {
|
|
228
|
+
var _styleSheet$ownerNode;
|
|
229
|
+
iframeDocument.head.append((_styleSheet$ownerNode = styleSheet.ownerNode) === null || _styleSheet$ownerNode === void 0 ? void 0 : _styleSheet$ownerNode.cloneNode(true));
|
|
230
|
+
continue;
|
|
257
231
|
}
|
|
232
|
+
let css = '';
|
|
233
|
+
const rules = styleSheet === null || styleSheet === void 0 ? void 0 : styleSheet.cssRules;
|
|
234
|
+
for (const rule of Array.from(rules)) css += rule.cssText;
|
|
235
|
+
const style = window.document.createElement('style');
|
|
236
|
+
style.innerHTML = css;
|
|
237
|
+
iframeDocument.head.append(style);
|
|
238
|
+
}
|
|
258
239
|
};
|
|
259
240
|
exports.importIframeStyles = importIframeStyles;
|
|
260
|
-
const getOverflowParent =
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
return element;
|
|
265
|
-
return (0, exports.getOverflowParent)(element.parentElement);
|
|
241
|
+
const getOverflowParent = element => {
|
|
242
|
+
if (!element) return;
|
|
243
|
+
if (element.scrollHeight > element.clientHeight) return element;
|
|
244
|
+
return getOverflowParent(element.parentElement);
|
|
266
245
|
};
|
|
267
246
|
exports.getOverflowParent = getOverflowParent;
|
|
268
|
-
exports.keyboardStandardCommands = ['a', 'c', 'v', 'y', 'z'];
|
|
269
|
-
exports.keyboardStyleCommands = ['b', 'i', 'u'];
|
|
270
|
-
exports.caret = {};
|
|
271
|
-
if ((0,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
247
|
+
const keyboardStandardCommands = exports.keyboardStandardCommands = ['a', 'c', 'v', 'y', 'z'];
|
|
248
|
+
const keyboardStyleCommands = exports.keyboardStyleCommands = ['b', 'i', 'u'];
|
|
249
|
+
const caret = exports.caret = {};
|
|
250
|
+
if ((0, _utils.isEnvironment)('browser')) {
|
|
251
|
+
if (window.getSelection && document.createRange) {
|
|
252
|
+
// Saves caret position(s)
|
|
253
|
+
caret.save = function (container) {
|
|
254
|
+
var _window$getSelection;
|
|
255
|
+
const selection = window.getSelection();
|
|
256
|
+
if (!(selection && selection.rangeCount > 0)) return;
|
|
257
|
+
const range = (_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.getRangeAt(0);
|
|
258
|
+
if (!range) return;
|
|
259
|
+
const preSelectionRange = range.cloneRange();
|
|
260
|
+
preSelectionRange.selectNodeContents(container);
|
|
261
|
+
preSelectionRange.setEnd(range.startContainer, range.startOffset);
|
|
262
|
+
const start = preSelectionRange.toString().length;
|
|
263
|
+
return {
|
|
264
|
+
start: start,
|
|
265
|
+
end: start + range.toString().length
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
// Restores caret position(s)
|
|
270
|
+
caret.restore = function (container, savedElement) {
|
|
271
|
+
let charIndex = 0;
|
|
272
|
+
const range = document.createRange();
|
|
273
|
+
range.setStart(container, 0);
|
|
274
|
+
range.collapse(true);
|
|
275
|
+
const nodeStack = [container];
|
|
276
|
+
let node;
|
|
277
|
+
let foundStart = false;
|
|
278
|
+
let stop = false;
|
|
279
|
+
|
|
280
|
+
// tslint:disable-next-line
|
|
281
|
+
while (!stop && (node = nodeStack.pop())) {
|
|
282
|
+
if (node.nodeType === 3) {
|
|
283
|
+
const nextCharIndex = charIndex + node.length;
|
|
284
|
+
if (!foundStart && savedElement.start >= charIndex && savedElement.start <= nextCharIndex) {
|
|
285
|
+
range.setStart(node, savedElement.start - charIndex);
|
|
286
|
+
foundStart = true;
|
|
287
|
+
}
|
|
288
|
+
if (foundStart && savedElement.end >= charIndex && savedElement.end <= nextCharIndex) {
|
|
289
|
+
range.setEnd(node, savedElement.end - charIndex);
|
|
290
|
+
stop = true;
|
|
291
|
+
}
|
|
292
|
+
charIndex = nextCharIndex;
|
|
293
|
+
} else {
|
|
294
|
+
let i = node.childNodes.length;
|
|
295
|
+
while (i--) {
|
|
296
|
+
nodeStack.push(node.childNodes[i]);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
const selection = window.getSelection();
|
|
301
|
+
selection === null || selection === void 0 || selection.removeAllRanges();
|
|
302
|
+
selection === null || selection === void 0 || selection.addRange(range);
|
|
303
|
+
};
|
|
304
|
+
} else if (process.window && window.document.selection && window.document.body.createTextRange) {
|
|
305
|
+
// Saves caret position(s)
|
|
306
|
+
caret.save = function (container) {
|
|
307
|
+
const selectedTextRange = window.document.selection.createRange();
|
|
308
|
+
const preSelectionTextRange = window.document.body.createTextRange();
|
|
309
|
+
preSelectionTextRange.moveToElementText(container);
|
|
310
|
+
preSelectionTextRange.setEndPoint("EndToStart", selectedTextRange);
|
|
311
|
+
const start = preSelectionTextRange.text.length;
|
|
312
|
+
return {
|
|
313
|
+
start: start,
|
|
314
|
+
end: start + selectedTextRange.text.length
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
// Restores caret position(s)
|
|
319
|
+
caret.restore = function (container, savedElement) {
|
|
320
|
+
const textRange = window.document.body.createTextRange();
|
|
321
|
+
textRange.moveToElementText(container);
|
|
322
|
+
textRange.collapse(true);
|
|
323
|
+
textRange.moveEnd("character", savedElement.end);
|
|
324
|
+
textRange.moveStart("character", savedElement.start);
|
|
325
|
+
textRange.select();
|
|
326
|
+
};
|
|
327
|
+
}
|
|
350
328
|
}
|
|
351
|
-
const toNumber = (item, valueDefault = 0) => {
|
|
329
|
+
const toNumber = (item, valueDefault = 0) => {
|
|
330
|
+
var _String$match;
|
|
331
|
+
return ((0, _utils.is)('number', item) ? item : +((_String$match = String(item).match(/\d+.?\d+/)) === null || _String$match === void 0 ? void 0 : _String$match[0])) || valueDefault;
|
|
332
|
+
};
|
|
352
333
|
exports.toNumber = toNumber;
|
|
353
|
-
exports.formats = {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
334
|
+
const formats = exports.formats = {
|
|
335
|
+
entire: 'DD MMM, YYYY [at] h:mm a',
|
|
336
|
+
date: 'DD MMM, YYYY',
|
|
337
|
+
time: 'h:mm a'
|
|
357
338
|
};
|
|
358
|
-
exports.iconFontSize = 20;
|
|
359
|
-
exports.currencies = [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
name: 'New Taiwan Dollar',
|
|
1308
|
-
symbol_native: 'NT$',
|
|
1309
|
-
'decimal_digits': 2,
|
|
1310
|
-
rounding: 0,
|
|
1311
|
-
code: 'TWD',
|
|
1312
|
-
name_plural: 'New Taiwan dollars'
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
symbol: 'TSh',
|
|
1316
|
-
name: 'Tanzanian Shilling',
|
|
1317
|
-
symbol_native: 'TSh',
|
|
1318
|
-
'decimal_digits': 0,
|
|
1319
|
-
rounding: 0,
|
|
1320
|
-
code: 'TZS',
|
|
1321
|
-
name_plural: 'Tanzanian shillings'
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
symbol: '₴',
|
|
1325
|
-
name: 'Ukrainian Hryvnia',
|
|
1326
|
-
symbol_native: '₴',
|
|
1327
|
-
'decimal_digits': 2,
|
|
1328
|
-
rounding: 0,
|
|
1329
|
-
code: 'UAH',
|
|
1330
|
-
name_plural: 'Ukrainian hryvnias'
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
symbol: 'USh',
|
|
1334
|
-
name: 'Ugandan Shilling',
|
|
1335
|
-
symbol_native: 'USh',
|
|
1336
|
-
'decimal_digits': 0,
|
|
1337
|
-
rounding: 0,
|
|
1338
|
-
code: 'UGX',
|
|
1339
|
-
name_plural: 'Ugandan shillings'
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
symbol: '$U',
|
|
1343
|
-
name: 'Uruguayan Peso',
|
|
1344
|
-
symbol_native: '$',
|
|
1345
|
-
'decimal_digits': 2,
|
|
1346
|
-
rounding: 0,
|
|
1347
|
-
code: 'UYU',
|
|
1348
|
-
name_plural: 'Uruguayan pesos'
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
symbol: 'UZS',
|
|
1352
|
-
name: 'Uzbekistan Som',
|
|
1353
|
-
symbol_native: 'UZS',
|
|
1354
|
-
'decimal_digits': 0,
|
|
1355
|
-
rounding: 0,
|
|
1356
|
-
code: 'UZS',
|
|
1357
|
-
name_plural: 'Uzbekistan som'
|
|
1358
|
-
},
|
|
1359
|
-
{
|
|
1360
|
-
symbol: 'Bs.F.',
|
|
1361
|
-
name: 'Venezuelan Bolívar',
|
|
1362
|
-
symbol_native: 'Bs.F.',
|
|
1363
|
-
'decimal_digits': 2,
|
|
1364
|
-
rounding: 0,
|
|
1365
|
-
code: 'VEF',
|
|
1366
|
-
name_plural: 'Venezuelan bolívars'
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
symbol: '₫',
|
|
1370
|
-
name: 'Vietnamese Dong',
|
|
1371
|
-
symbol_native: '₫',
|
|
1372
|
-
'decimal_digits': 0,
|
|
1373
|
-
rounding: 0,
|
|
1374
|
-
code: 'VND',
|
|
1375
|
-
name_plural: 'Vietnamese dong'
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
symbol: 'FCFA',
|
|
1379
|
-
name: 'CFA Franc BEAC',
|
|
1380
|
-
symbol_native: 'FCFA',
|
|
1381
|
-
'decimal_digits': 0,
|
|
1382
|
-
rounding: 0,
|
|
1383
|
-
code: 'XAF',
|
|
1384
|
-
name_plural: 'CFA francs BEAC'
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
symbol: 'CFA',
|
|
1388
|
-
name: 'CFA Franc BCEAO',
|
|
1389
|
-
symbol_native: 'CFA',
|
|
1390
|
-
'decimal_digits': 0,
|
|
1391
|
-
rounding: 0,
|
|
1392
|
-
code: 'XOF',
|
|
1393
|
-
name_plural: 'CFA francs BCEAO'
|
|
1394
|
-
},
|
|
1395
|
-
{
|
|
1396
|
-
symbol: 'YR',
|
|
1397
|
-
name: 'Yemeni Rial',
|
|
1398
|
-
symbol_native: 'ر.ي.',
|
|
1399
|
-
'decimal_digits': 0,
|
|
1400
|
-
rounding: 0,
|
|
1401
|
-
code: 'YER',
|
|
1402
|
-
name_plural: 'Yemeni rials'
|
|
1403
|
-
},
|
|
1404
|
-
{
|
|
1405
|
-
symbol: 'R',
|
|
1406
|
-
name: 'South African Rand',
|
|
1407
|
-
symbol_native: 'R',
|
|
1408
|
-
'decimal_digits': 2,
|
|
1409
|
-
rounding: 0,
|
|
1410
|
-
code: 'ZAR',
|
|
1411
|
-
name_plural: 'South African rand'
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
symbol: 'ZK',
|
|
1415
|
-
name: 'Zambian Kwacha',
|
|
1416
|
-
symbol_native: 'ZK',
|
|
1417
|
-
'decimal_digits': 0,
|
|
1418
|
-
rounding: 0,
|
|
1419
|
-
code: 'ZMK',
|
|
1420
|
-
name_plural: 'Zambian kwachas'
|
|
1421
|
-
}
|
|
1422
|
-
];
|
|
1423
|
-
const decodeHTMLEntities = (html) => {
|
|
1424
|
-
const document = new DOMParser().parseFromString(html, 'text/html');
|
|
1425
|
-
return document.documentElement.textContent || '';
|
|
339
|
+
const iconFontSize = exports.iconFontSize = 20;
|
|
340
|
+
const currencies = exports.currencies = [{
|
|
341
|
+
symbol: '$',
|
|
342
|
+
name: 'US Dollar',
|
|
343
|
+
symbol_native: '$',
|
|
344
|
+
'decimal_digits': 2,
|
|
345
|
+
rounding: 0,
|
|
346
|
+
code: 'USD',
|
|
347
|
+
name_plural: 'US dollars'
|
|
348
|
+
}, {
|
|
349
|
+
symbol: 'CA$',
|
|
350
|
+
name: 'Canadian Dollar',
|
|
351
|
+
symbol_native: '$',
|
|
352
|
+
'decimal_digits': 2,
|
|
353
|
+
rounding: 0,
|
|
354
|
+
code: 'CAD',
|
|
355
|
+
name_plural: 'Canadian dollars'
|
|
356
|
+
}, {
|
|
357
|
+
symbol: '€',
|
|
358
|
+
name: 'Euro',
|
|
359
|
+
symbol_native: '€',
|
|
360
|
+
'decimal_digits': 2,
|
|
361
|
+
rounding: 0,
|
|
362
|
+
code: 'EUR',
|
|
363
|
+
name_plural: 'euros'
|
|
364
|
+
}, {
|
|
365
|
+
symbol: 'AED',
|
|
366
|
+
name: 'United Arab Emirates Dirham',
|
|
367
|
+
symbol_native: 'د.إ.',
|
|
368
|
+
'decimal_digits': 2,
|
|
369
|
+
rounding: 0,
|
|
370
|
+
code: 'AED',
|
|
371
|
+
name_plural: 'UAE dirhams'
|
|
372
|
+
}, {
|
|
373
|
+
symbol: 'Af',
|
|
374
|
+
name: 'Afghan Afghani',
|
|
375
|
+
symbol_native: '؋',
|
|
376
|
+
'decimal_digits': 0,
|
|
377
|
+
rounding: 0,
|
|
378
|
+
code: 'AFN',
|
|
379
|
+
name_plural: 'Afghan Afghanis'
|
|
380
|
+
}, {
|
|
381
|
+
symbol: 'ALL',
|
|
382
|
+
name: 'Albanian Lek',
|
|
383
|
+
symbol_native: 'Lek',
|
|
384
|
+
'decimal_digits': 0,
|
|
385
|
+
rounding: 0,
|
|
386
|
+
code: 'ALL',
|
|
387
|
+
name_plural: 'Albanian lekë'
|
|
388
|
+
}, {
|
|
389
|
+
symbol: 'AMD',
|
|
390
|
+
name: 'Armenian Dram',
|
|
391
|
+
symbol_native: 'դր.',
|
|
392
|
+
'decimal_digits': 0,
|
|
393
|
+
rounding: 0,
|
|
394
|
+
code: 'AMD',
|
|
395
|
+
name_plural: 'Armenian drams'
|
|
396
|
+
}, {
|
|
397
|
+
symbol: 'AR$',
|
|
398
|
+
name: 'Argentine Peso',
|
|
399
|
+
symbol_native: '$',
|
|
400
|
+
'decimal_digits': 2,
|
|
401
|
+
rounding: 0,
|
|
402
|
+
code: 'ARS',
|
|
403
|
+
name_plural: 'Argentine pesos'
|
|
404
|
+
}, {
|
|
405
|
+
symbol: 'AU$',
|
|
406
|
+
name: 'Australian Dollar',
|
|
407
|
+
symbol_native: '$',
|
|
408
|
+
'decimal_digits': 2,
|
|
409
|
+
rounding: 0,
|
|
410
|
+
code: 'AUD',
|
|
411
|
+
name_plural: 'Australian dollars'
|
|
412
|
+
}, {
|
|
413
|
+
symbol: 'man.',
|
|
414
|
+
name: 'Azerbaijani Manat',
|
|
415
|
+
symbol_native: 'ман.',
|
|
416
|
+
'decimal_digits': 2,
|
|
417
|
+
rounding: 0,
|
|
418
|
+
code: 'AZN',
|
|
419
|
+
name_plural: 'Azerbaijani manats'
|
|
420
|
+
}, {
|
|
421
|
+
symbol: 'KM',
|
|
422
|
+
name: 'Bosnia-Herzegovina Convertible Mark',
|
|
423
|
+
symbol_native: 'KM',
|
|
424
|
+
'decimal_digits': 2,
|
|
425
|
+
rounding: 0,
|
|
426
|
+
code: 'BAM',
|
|
427
|
+
name_plural: 'Bosnia-Herzegovina convertible marks'
|
|
428
|
+
}, {
|
|
429
|
+
symbol: 'Tk',
|
|
430
|
+
name: 'Bangladeshi Taka',
|
|
431
|
+
symbol_native: '৳',
|
|
432
|
+
'decimal_digits': 2,
|
|
433
|
+
rounding: 0,
|
|
434
|
+
code: 'BDT',
|
|
435
|
+
name_plural: 'Bangladeshi takas'
|
|
436
|
+
}, {
|
|
437
|
+
symbol: 'BGN',
|
|
438
|
+
name: 'Bulgarian Lev',
|
|
439
|
+
symbol_native: 'лв.',
|
|
440
|
+
'decimal_digits': 2,
|
|
441
|
+
rounding: 0,
|
|
442
|
+
code: 'BGN',
|
|
443
|
+
name_plural: 'Bulgarian leva'
|
|
444
|
+
}, {
|
|
445
|
+
symbol: 'BD',
|
|
446
|
+
name: 'Bahraini Dinar',
|
|
447
|
+
symbol_native: 'د.ب.',
|
|
448
|
+
'decimal_digits': 3,
|
|
449
|
+
rounding: 0,
|
|
450
|
+
code: 'BHD',
|
|
451
|
+
name_plural: 'Bahraini dinars'
|
|
452
|
+
}, {
|
|
453
|
+
symbol: 'FBu',
|
|
454
|
+
name: 'Burundian Franc',
|
|
455
|
+
symbol_native: 'FBu',
|
|
456
|
+
'decimal_digits': 0,
|
|
457
|
+
rounding: 0,
|
|
458
|
+
code: 'BIF',
|
|
459
|
+
name_plural: 'Burundian francs'
|
|
460
|
+
}, {
|
|
461
|
+
symbol: 'BN$',
|
|
462
|
+
name: 'Brunei Dollar',
|
|
463
|
+
symbol_native: '$',
|
|
464
|
+
'decimal_digits': 2,
|
|
465
|
+
rounding: 0,
|
|
466
|
+
code: 'BND',
|
|
467
|
+
name_plural: 'Brunei dollars'
|
|
468
|
+
}, {
|
|
469
|
+
symbol: 'Bs',
|
|
470
|
+
name: 'Bolivian Boliviano',
|
|
471
|
+
symbol_native: 'Bs',
|
|
472
|
+
'decimal_digits': 2,
|
|
473
|
+
rounding: 0,
|
|
474
|
+
code: 'BOB',
|
|
475
|
+
name_plural: 'Bolivian bolivianos'
|
|
476
|
+
}, {
|
|
477
|
+
symbol: 'R$',
|
|
478
|
+
name: 'Brazilian Real',
|
|
479
|
+
symbol_native: 'R$',
|
|
480
|
+
'decimal_digits': 2,
|
|
481
|
+
rounding: 0,
|
|
482
|
+
code: 'BRL',
|
|
483
|
+
name_plural: 'Brazilian reals'
|
|
484
|
+
}, {
|
|
485
|
+
symbol: 'BWP',
|
|
486
|
+
name: 'Botswanan Pula',
|
|
487
|
+
symbol_native: 'P',
|
|
488
|
+
'decimal_digits': 2,
|
|
489
|
+
rounding: 0,
|
|
490
|
+
code: 'BWP',
|
|
491
|
+
name_plural: 'Botswanan pulas'
|
|
492
|
+
}, {
|
|
493
|
+
symbol: 'BYR',
|
|
494
|
+
name: 'Belarusian Ruble',
|
|
495
|
+
symbol_native: 'BYR',
|
|
496
|
+
'decimal_digits': 0,
|
|
497
|
+
rounding: 0,
|
|
498
|
+
code: 'BYR',
|
|
499
|
+
name_plural: 'Belarusian rubles'
|
|
500
|
+
}, {
|
|
501
|
+
symbol: 'BZ$',
|
|
502
|
+
name: 'Belize Dollar',
|
|
503
|
+
symbol_native: '$',
|
|
504
|
+
'decimal_digits': 2,
|
|
505
|
+
rounding: 0,
|
|
506
|
+
code: 'BZD',
|
|
507
|
+
name_plural: 'Belize dollars'
|
|
508
|
+
}, {
|
|
509
|
+
symbol: 'CDF',
|
|
510
|
+
name: 'Congolese Franc',
|
|
511
|
+
symbol_native: 'FrCD',
|
|
512
|
+
'decimal_digits': 2,
|
|
513
|
+
rounding: 0,
|
|
514
|
+
code: 'CDF',
|
|
515
|
+
name_plural: 'Congolese francs'
|
|
516
|
+
}, {
|
|
517
|
+
symbol: 'CHF',
|
|
518
|
+
name: 'Swiss Franc',
|
|
519
|
+
symbol_native: 'CHF',
|
|
520
|
+
'decimal_digits': 2,
|
|
521
|
+
rounding: 0.05,
|
|
522
|
+
code: 'CHF',
|
|
523
|
+
name_plural: 'Swiss francs'
|
|
524
|
+
}, {
|
|
525
|
+
symbol: 'CL$',
|
|
526
|
+
name: 'Chilean Peso',
|
|
527
|
+
symbol_native: '$',
|
|
528
|
+
'decimal_digits': 0,
|
|
529
|
+
rounding: 0,
|
|
530
|
+
code: 'CLP',
|
|
531
|
+
name_plural: 'Chilean pesos'
|
|
532
|
+
}, {
|
|
533
|
+
symbol: 'CN¥',
|
|
534
|
+
name: 'Chinese Yuan',
|
|
535
|
+
symbol_native: 'CN¥',
|
|
536
|
+
'decimal_digits': 2,
|
|
537
|
+
rounding: 0,
|
|
538
|
+
code: 'CNY',
|
|
539
|
+
name_plural: 'Chinese yuan'
|
|
540
|
+
}, {
|
|
541
|
+
symbol: 'CO$',
|
|
542
|
+
name: 'Colombian Peso',
|
|
543
|
+
symbol_native: '$',
|
|
544
|
+
'decimal_digits': 0,
|
|
545
|
+
rounding: 0,
|
|
546
|
+
code: 'COP',
|
|
547
|
+
name_plural: 'Colombian pesos'
|
|
548
|
+
}, {
|
|
549
|
+
symbol: '₡',
|
|
550
|
+
name: 'Costa Rican Colón',
|
|
551
|
+
symbol_native: '₡',
|
|
552
|
+
'decimal_digits': 0,
|
|
553
|
+
rounding: 0,
|
|
554
|
+
code: 'CRC',
|
|
555
|
+
name_plural: 'Costa Rican colóns'
|
|
556
|
+
}, {
|
|
557
|
+
symbol: 'CV$',
|
|
558
|
+
name: 'Cape Verdean Escudo',
|
|
559
|
+
symbol_native: 'CV$',
|
|
560
|
+
'decimal_digits': 2,
|
|
561
|
+
rounding: 0,
|
|
562
|
+
code: 'CVE',
|
|
563
|
+
name_plural: 'Cape Verdean escudos'
|
|
564
|
+
}, {
|
|
565
|
+
symbol: 'Kč',
|
|
566
|
+
name: 'Czech Republic Koruna',
|
|
567
|
+
symbol_native: 'Kč',
|
|
568
|
+
'decimal_digits': 2,
|
|
569
|
+
rounding: 0,
|
|
570
|
+
code: 'CZK',
|
|
571
|
+
name_plural: 'Czech Republic korunas'
|
|
572
|
+
}, {
|
|
573
|
+
symbol: 'Fdj',
|
|
574
|
+
name: 'Djiboutian Franc',
|
|
575
|
+
symbol_native: 'Fdj',
|
|
576
|
+
'decimal_digits': 0,
|
|
577
|
+
rounding: 0,
|
|
578
|
+
code: 'DJF',
|
|
579
|
+
name_plural: 'Djiboutian francs'
|
|
580
|
+
}, {
|
|
581
|
+
symbol: 'Dkr',
|
|
582
|
+
name: 'Danish Krone',
|
|
583
|
+
symbol_native: 'kr',
|
|
584
|
+
'decimal_digits': 2,
|
|
585
|
+
rounding: 0,
|
|
586
|
+
code: 'DKK',
|
|
587
|
+
name_plural: 'Danish kroner'
|
|
588
|
+
}, {
|
|
589
|
+
symbol: 'RD$',
|
|
590
|
+
name: 'Dominican Peso',
|
|
591
|
+
symbol_native: 'RD$',
|
|
592
|
+
'decimal_digits': 2,
|
|
593
|
+
rounding: 0,
|
|
594
|
+
code: 'DOP',
|
|
595
|
+
name_plural: 'Dominican pesos'
|
|
596
|
+
}, {
|
|
597
|
+
symbol: 'DA',
|
|
598
|
+
name: 'Algerian Dinar',
|
|
599
|
+
symbol_native: 'د.ج.',
|
|
600
|
+
'decimal_digits': 2,
|
|
601
|
+
rounding: 0,
|
|
602
|
+
code: 'DZD',
|
|
603
|
+
name_plural: 'Algerian dinars'
|
|
604
|
+
}, {
|
|
605
|
+
symbol: 'Ekr',
|
|
606
|
+
name: 'Estonian Kroon',
|
|
607
|
+
symbol_native: 'kr',
|
|
608
|
+
'decimal_digits': 2,
|
|
609
|
+
rounding: 0,
|
|
610
|
+
code: 'EEK',
|
|
611
|
+
name_plural: 'Estonian kroons'
|
|
612
|
+
}, {
|
|
613
|
+
symbol: 'EGP',
|
|
614
|
+
name: 'Egyptian Pound',
|
|
615
|
+
symbol_native: 'ج.م.',
|
|
616
|
+
'decimal_digits': 2,
|
|
617
|
+
rounding: 0,
|
|
618
|
+
code: 'EGP',
|
|
619
|
+
name_plural: 'Egyptian pounds'
|
|
620
|
+
}, {
|
|
621
|
+
symbol: 'Nfk',
|
|
622
|
+
name: 'Eritrean Nakfa',
|
|
623
|
+
symbol_native: 'Nfk',
|
|
624
|
+
'decimal_digits': 2,
|
|
625
|
+
rounding: 0,
|
|
626
|
+
code: 'ERN',
|
|
627
|
+
name_plural: 'Eritrean nakfas'
|
|
628
|
+
}, {
|
|
629
|
+
symbol: 'Br',
|
|
630
|
+
name: 'Ethiopian Birr',
|
|
631
|
+
symbol_native: 'Br',
|
|
632
|
+
'decimal_digits': 2,
|
|
633
|
+
rounding: 0,
|
|
634
|
+
code: 'ETB',
|
|
635
|
+
name_plural: 'Ethiopian birrs'
|
|
636
|
+
}, {
|
|
637
|
+
symbol: '£',
|
|
638
|
+
name: 'British Pound Sterling',
|
|
639
|
+
symbol_native: '£',
|
|
640
|
+
'decimal_digits': 2,
|
|
641
|
+
rounding: 0,
|
|
642
|
+
code: 'GBP',
|
|
643
|
+
name_plural: 'British pounds sterling'
|
|
644
|
+
}, {
|
|
645
|
+
symbol: 'GEL',
|
|
646
|
+
name: 'Georgian Lari',
|
|
647
|
+
symbol_native: 'GEL',
|
|
648
|
+
'decimal_digits': 2,
|
|
649
|
+
rounding: 0,
|
|
650
|
+
code: 'GEL',
|
|
651
|
+
name_plural: 'Georgian laris'
|
|
652
|
+
}, {
|
|
653
|
+
symbol: 'GH₵',
|
|
654
|
+
name: 'Ghanaian Cedi',
|
|
655
|
+
symbol_native: 'GH₵',
|
|
656
|
+
'decimal_digits': 2,
|
|
657
|
+
rounding: 0,
|
|
658
|
+
code: 'GHS',
|
|
659
|
+
name_plural: 'Ghanaian cedis'
|
|
660
|
+
}, {
|
|
661
|
+
symbol: 'FG',
|
|
662
|
+
name: 'Guinean Franc',
|
|
663
|
+
symbol_native: 'FG',
|
|
664
|
+
'decimal_digits': 0,
|
|
665
|
+
rounding: 0,
|
|
666
|
+
code: 'GNF',
|
|
667
|
+
name_plural: 'Guinean francs'
|
|
668
|
+
}, {
|
|
669
|
+
symbol: 'GTQ',
|
|
670
|
+
name: 'Guatemalan Quetzal',
|
|
671
|
+
symbol_native: 'Q',
|
|
672
|
+
'decimal_digits': 2,
|
|
673
|
+
rounding: 0,
|
|
674
|
+
code: 'GTQ',
|
|
675
|
+
name_plural: 'Guatemalan quetzals'
|
|
676
|
+
}, {
|
|
677
|
+
symbol: 'HK$',
|
|
678
|
+
name: 'Hong Kong Dollar',
|
|
679
|
+
symbol_native: '$',
|
|
680
|
+
'decimal_digits': 2,
|
|
681
|
+
rounding: 0,
|
|
682
|
+
code: 'HKD',
|
|
683
|
+
name_plural: 'Hong Kong dollars'
|
|
684
|
+
}, {
|
|
685
|
+
symbol: 'HNL',
|
|
686
|
+
name: 'Honduran Lempira',
|
|
687
|
+
symbol_native: 'L',
|
|
688
|
+
'decimal_digits': 2,
|
|
689
|
+
rounding: 0,
|
|
690
|
+
code: 'HNL',
|
|
691
|
+
name_plural: 'Honduran lempiras'
|
|
692
|
+
}, {
|
|
693
|
+
symbol: 'kn',
|
|
694
|
+
name: 'Croatian Kuna',
|
|
695
|
+
symbol_native: 'kn',
|
|
696
|
+
'decimal_digits': 2,
|
|
697
|
+
rounding: 0,
|
|
698
|
+
code: 'HRK',
|
|
699
|
+
name_plural: 'Croatian kunas'
|
|
700
|
+
}, {
|
|
701
|
+
symbol: 'Ft',
|
|
702
|
+
name: 'Hungarian Forint',
|
|
703
|
+
symbol_native: 'Ft',
|
|
704
|
+
'decimal_digits': 0,
|
|
705
|
+
rounding: 0,
|
|
706
|
+
code: 'HUF',
|
|
707
|
+
name_plural: 'Hungarian forints'
|
|
708
|
+
}, {
|
|
709
|
+
symbol: 'Rp',
|
|
710
|
+
name: 'Indonesian Rupiah',
|
|
711
|
+
symbol_native: 'Rp',
|
|
712
|
+
'decimal_digits': 0,
|
|
713
|
+
rounding: 0,
|
|
714
|
+
code: 'IDR',
|
|
715
|
+
name_plural: 'Indonesian rupiahs'
|
|
716
|
+
}, {
|
|
717
|
+
symbol: '₪',
|
|
718
|
+
name: 'Israeli New Sheqel',
|
|
719
|
+
symbol_native: '₪',
|
|
720
|
+
'decimal_digits': 2,
|
|
721
|
+
rounding: 0,
|
|
722
|
+
code: 'ILS',
|
|
723
|
+
name_plural: 'Israeli new sheqels'
|
|
724
|
+
}, {
|
|
725
|
+
symbol: 'Rs',
|
|
726
|
+
name: 'Indian Rupee',
|
|
727
|
+
symbol_native: 'টকা',
|
|
728
|
+
'decimal_digits': 2,
|
|
729
|
+
rounding: 0,
|
|
730
|
+
code: 'INR',
|
|
731
|
+
name_plural: 'Indian rupees'
|
|
732
|
+
}, {
|
|
733
|
+
symbol: 'IQD',
|
|
734
|
+
name: 'Iraqi Dinar',
|
|
735
|
+
symbol_native: 'د.ع.',
|
|
736
|
+
'decimal_digits': 0,
|
|
737
|
+
rounding: 0,
|
|
738
|
+
code: 'IQD',
|
|
739
|
+
name_plural: 'Iraqi dinars'
|
|
740
|
+
}, {
|
|
741
|
+
symbol: 'IRR',
|
|
742
|
+
name: 'Iranian Rial',
|
|
743
|
+
symbol_native: '﷼',
|
|
744
|
+
'decimal_digits': 0,
|
|
745
|
+
rounding: 0,
|
|
746
|
+
code: 'IRR',
|
|
747
|
+
name_plural: 'Iranian rials'
|
|
748
|
+
}, {
|
|
749
|
+
symbol: 'Ikr',
|
|
750
|
+
name: 'Icelandic Króna',
|
|
751
|
+
symbol_native: 'kr',
|
|
752
|
+
'decimal_digits': 0,
|
|
753
|
+
rounding: 0,
|
|
754
|
+
code: 'ISK',
|
|
755
|
+
name_plural: 'Icelandic krónur'
|
|
756
|
+
}, {
|
|
757
|
+
symbol: 'J$',
|
|
758
|
+
name: 'Jamaican Dollar',
|
|
759
|
+
symbol_native: '$',
|
|
760
|
+
'decimal_digits': 2,
|
|
761
|
+
rounding: 0,
|
|
762
|
+
code: 'JMD',
|
|
763
|
+
name_plural: 'Jamaican dollars'
|
|
764
|
+
}, {
|
|
765
|
+
symbol: 'JD',
|
|
766
|
+
name: 'Jordanian Dinar',
|
|
767
|
+
symbol_native: 'د.أ.',
|
|
768
|
+
'decimal_digits': 3,
|
|
769
|
+
rounding: 0,
|
|
770
|
+
code: 'JOD',
|
|
771
|
+
name_plural: 'Jordanian dinars'
|
|
772
|
+
}, {
|
|
773
|
+
symbol: '¥',
|
|
774
|
+
name: 'Japanese Yen',
|
|
775
|
+
symbol_native: '¥',
|
|
776
|
+
'decimal_digits': 0,
|
|
777
|
+
rounding: 0,
|
|
778
|
+
code: 'JPY',
|
|
779
|
+
name_plural: 'Japanese yen'
|
|
780
|
+
}, {
|
|
781
|
+
symbol: 'Ksh',
|
|
782
|
+
name: 'Kenyan Shilling',
|
|
783
|
+
symbol_native: 'Ksh',
|
|
784
|
+
'decimal_digits': 2,
|
|
785
|
+
rounding: 0,
|
|
786
|
+
code: 'KES',
|
|
787
|
+
name_plural: 'Kenyan shillings'
|
|
788
|
+
}, {
|
|
789
|
+
symbol: 'KHR',
|
|
790
|
+
name: 'Cambodian Riel',
|
|
791
|
+
symbol_native: '៛',
|
|
792
|
+
'decimal_digits': 2,
|
|
793
|
+
rounding: 0,
|
|
794
|
+
code: 'KHR',
|
|
795
|
+
name_plural: 'Cambodian riels'
|
|
796
|
+
}, {
|
|
797
|
+
symbol: 'CF',
|
|
798
|
+
name: 'Comorian Franc',
|
|
799
|
+
symbol_native: 'FC',
|
|
800
|
+
'decimal_digits': 0,
|
|
801
|
+
rounding: 0,
|
|
802
|
+
code: 'KMF',
|
|
803
|
+
name_plural: 'Comorian francs'
|
|
804
|
+
}, {
|
|
805
|
+
symbol: '₩',
|
|
806
|
+
name: 'South Korean Won',
|
|
807
|
+
symbol_native: '₩',
|
|
808
|
+
'decimal_digits': 0,
|
|
809
|
+
rounding: 0,
|
|
810
|
+
code: 'KRW',
|
|
811
|
+
name_plural: 'South Korean won'
|
|
812
|
+
}, {
|
|
813
|
+
symbol: 'KD',
|
|
814
|
+
name: 'Kuwaiti Dinar',
|
|
815
|
+
symbol_native: 'د.ك.',
|
|
816
|
+
'decimal_digits': 3,
|
|
817
|
+
rounding: 0,
|
|
818
|
+
code: 'KWD',
|
|
819
|
+
name_plural: 'Kuwaiti dinars'
|
|
820
|
+
}, {
|
|
821
|
+
symbol: 'KZT',
|
|
822
|
+
name: 'Kazakhstani Tenge',
|
|
823
|
+
symbol_native: 'тңг.',
|
|
824
|
+
'decimal_digits': 2,
|
|
825
|
+
rounding: 0,
|
|
826
|
+
code: 'KZT',
|
|
827
|
+
name_plural: 'Kazakhstani tenges'
|
|
828
|
+
}, {
|
|
829
|
+
symbol: 'LB£',
|
|
830
|
+
name: 'Lebanese Pound',
|
|
831
|
+
symbol_native: 'ل.ل.',
|
|
832
|
+
'decimal_digits': 0,
|
|
833
|
+
rounding: 0,
|
|
834
|
+
code: 'LBP',
|
|
835
|
+
name_plural: 'Lebanese pounds'
|
|
836
|
+
}, {
|
|
837
|
+
symbol: 'SLRs',
|
|
838
|
+
name: 'Sri Lankan Rupee',
|
|
839
|
+
symbol_native: 'SL Re',
|
|
840
|
+
'decimal_digits': 2,
|
|
841
|
+
rounding: 0,
|
|
842
|
+
code: 'LKR',
|
|
843
|
+
name_plural: 'Sri Lankan rupees'
|
|
844
|
+
}, {
|
|
845
|
+
symbol: 'Lt',
|
|
846
|
+
name: 'Lithuanian Litas',
|
|
847
|
+
symbol_native: 'Lt',
|
|
848
|
+
'decimal_digits': 2,
|
|
849
|
+
rounding: 0,
|
|
850
|
+
code: 'LTL',
|
|
851
|
+
name_plural: 'Lithuanian litai'
|
|
852
|
+
}, {
|
|
853
|
+
symbol: 'Ls',
|
|
854
|
+
name: 'Latvian Lats',
|
|
855
|
+
symbol_native: 'Ls',
|
|
856
|
+
'decimal_digits': 2,
|
|
857
|
+
rounding: 0,
|
|
858
|
+
code: 'LVL',
|
|
859
|
+
name_plural: 'Latvian lati'
|
|
860
|
+
}, {
|
|
861
|
+
symbol: 'LD',
|
|
862
|
+
name: 'Libyan Dinar',
|
|
863
|
+
symbol_native: 'د.ل.',
|
|
864
|
+
'decimal_digits': 3,
|
|
865
|
+
rounding: 0,
|
|
866
|
+
code: 'LYD',
|
|
867
|
+
name_plural: 'Libyan dinars'
|
|
868
|
+
}, {
|
|
869
|
+
symbol: 'MAD',
|
|
870
|
+
name: 'Moroccan Dirham',
|
|
871
|
+
symbol_native: 'د.م.',
|
|
872
|
+
'decimal_digits': 2,
|
|
873
|
+
rounding: 0,
|
|
874
|
+
code: 'MAD',
|
|
875
|
+
name_plural: 'Moroccan dirhams'
|
|
876
|
+
}, {
|
|
877
|
+
symbol: 'MDL',
|
|
878
|
+
name: 'Moldovan Leu',
|
|
879
|
+
symbol_native: 'MDL',
|
|
880
|
+
'decimal_digits': 2,
|
|
881
|
+
rounding: 0,
|
|
882
|
+
code: 'MDL',
|
|
883
|
+
name_plural: 'Moldovan lei'
|
|
884
|
+
}, {
|
|
885
|
+
symbol: 'MGA',
|
|
886
|
+
name: 'Malagasy Ariary',
|
|
887
|
+
symbol_native: 'MGA',
|
|
888
|
+
'decimal_digits': 0,
|
|
889
|
+
rounding: 0,
|
|
890
|
+
code: 'MGA',
|
|
891
|
+
name_plural: 'Malagasy Ariaries'
|
|
892
|
+
}, {
|
|
893
|
+
symbol: 'MKD',
|
|
894
|
+
name: 'Macedonian Denar',
|
|
895
|
+
symbol_native: 'MKD',
|
|
896
|
+
'decimal_digits': 2,
|
|
897
|
+
rounding: 0,
|
|
898
|
+
code: 'MKD',
|
|
899
|
+
name_plural: 'Macedonian denari'
|
|
900
|
+
}, {
|
|
901
|
+
symbol: 'MMK',
|
|
902
|
+
name: 'Myanma Kyat',
|
|
903
|
+
symbol_native: 'K',
|
|
904
|
+
'decimal_digits': 0,
|
|
905
|
+
rounding: 0,
|
|
906
|
+
code: 'MMK',
|
|
907
|
+
name_plural: 'Myanma kyats'
|
|
908
|
+
}, {
|
|
909
|
+
symbol: 'MOP$',
|
|
910
|
+
name: 'Macanese Pataca',
|
|
911
|
+
symbol_native: 'MOP$',
|
|
912
|
+
'decimal_digits': 2,
|
|
913
|
+
rounding: 0,
|
|
914
|
+
code: 'MOP',
|
|
915
|
+
name_plural: 'Macanese patacas'
|
|
916
|
+
}, {
|
|
917
|
+
symbol: 'MURs',
|
|
918
|
+
name: 'Mauritian Rupee',
|
|
919
|
+
symbol_native: 'MURs',
|
|
920
|
+
'decimal_digits': 0,
|
|
921
|
+
rounding: 0,
|
|
922
|
+
code: 'MUR',
|
|
923
|
+
name_plural: 'Mauritian rupees'
|
|
924
|
+
}, {
|
|
925
|
+
symbol: 'MX$',
|
|
926
|
+
name: 'Mexican Peso',
|
|
927
|
+
symbol_native: '$',
|
|
928
|
+
'decimal_digits': 2,
|
|
929
|
+
rounding: 0,
|
|
930
|
+
code: 'MXN',
|
|
931
|
+
name_plural: 'Mexican pesos'
|
|
932
|
+
}, {
|
|
933
|
+
symbol: 'RM',
|
|
934
|
+
name: 'Malaysian Ringgit',
|
|
935
|
+
symbol_native: 'RM',
|
|
936
|
+
'decimal_digits': 2,
|
|
937
|
+
rounding: 0,
|
|
938
|
+
code: 'MYR',
|
|
939
|
+
name_plural: 'Malaysian ringgits'
|
|
940
|
+
}, {
|
|
941
|
+
symbol: 'MTn',
|
|
942
|
+
name: 'Mozambican Metical',
|
|
943
|
+
symbol_native: 'MTn',
|
|
944
|
+
'decimal_digits': 2,
|
|
945
|
+
rounding: 0,
|
|
946
|
+
code: 'MZN',
|
|
947
|
+
name_plural: 'Mozambican meticals'
|
|
948
|
+
}, {
|
|
949
|
+
symbol: 'N$',
|
|
950
|
+
name: 'Namibian Dollar',
|
|
951
|
+
symbol_native: 'N$',
|
|
952
|
+
'decimal_digits': 2,
|
|
953
|
+
rounding: 0,
|
|
954
|
+
code: 'NAD',
|
|
955
|
+
name_plural: 'Namibian dollars'
|
|
956
|
+
}, {
|
|
957
|
+
symbol: '₦',
|
|
958
|
+
name: 'Nigerian Naira',
|
|
959
|
+
symbol_native: '₦',
|
|
960
|
+
'decimal_digits': 2,
|
|
961
|
+
rounding: 0,
|
|
962
|
+
code: 'NGN',
|
|
963
|
+
name_plural: 'Nigerian nairas'
|
|
964
|
+
}, {
|
|
965
|
+
symbol: 'C$',
|
|
966
|
+
name: 'Nicaraguan Córdoba',
|
|
967
|
+
symbol_native: 'C$',
|
|
968
|
+
'decimal_digits': 2,
|
|
969
|
+
rounding: 0,
|
|
970
|
+
code: 'NIO',
|
|
971
|
+
name_plural: 'Nicaraguan córdobas'
|
|
972
|
+
}, {
|
|
973
|
+
symbol: 'Nkr',
|
|
974
|
+
name: 'Norwegian Krone',
|
|
975
|
+
symbol_native: 'kr',
|
|
976
|
+
'decimal_digits': 2,
|
|
977
|
+
rounding: 0,
|
|
978
|
+
code: 'NOK',
|
|
979
|
+
name_plural: 'Norwegian kroner'
|
|
980
|
+
}, {
|
|
981
|
+
symbol: 'NPRs',
|
|
982
|
+
name: 'Nepalese Rupee',
|
|
983
|
+
symbol_native: 'नेरू',
|
|
984
|
+
'decimal_digits': 2,
|
|
985
|
+
rounding: 0,
|
|
986
|
+
code: 'NPR',
|
|
987
|
+
name_plural: 'Nepalese rupees'
|
|
988
|
+
}, {
|
|
989
|
+
symbol: 'NZ$',
|
|
990
|
+
name: 'New Zealand Dollar',
|
|
991
|
+
symbol_native: '$',
|
|
992
|
+
'decimal_digits': 2,
|
|
993
|
+
rounding: 0,
|
|
994
|
+
code: 'NZD',
|
|
995
|
+
name_plural: 'New Zealand dollars'
|
|
996
|
+
}, {
|
|
997
|
+
symbol: 'OMR',
|
|
998
|
+
name: 'Omani Rial',
|
|
999
|
+
symbol_native: 'ر.ع.',
|
|
1000
|
+
'decimal_digits': 3,
|
|
1001
|
+
rounding: 0,
|
|
1002
|
+
code: 'OMR',
|
|
1003
|
+
name_plural: 'Omani rials'
|
|
1004
|
+
}, {
|
|
1005
|
+
symbol: 'B/.',
|
|
1006
|
+
name: 'Panamanian Balboa',
|
|
1007
|
+
symbol_native: 'B/.',
|
|
1008
|
+
'decimal_digits': 2,
|
|
1009
|
+
rounding: 0,
|
|
1010
|
+
code: 'PAB',
|
|
1011
|
+
name_plural: 'Panamanian balboas'
|
|
1012
|
+
}, {
|
|
1013
|
+
symbol: 'S/.',
|
|
1014
|
+
name: 'Peruvian Nuevo Sol',
|
|
1015
|
+
symbol_native: 'S/.',
|
|
1016
|
+
'decimal_digits': 2,
|
|
1017
|
+
rounding: 0,
|
|
1018
|
+
code: 'PEN',
|
|
1019
|
+
name_plural: 'Peruvian nuevos soles'
|
|
1020
|
+
}, {
|
|
1021
|
+
symbol: '₱',
|
|
1022
|
+
name: 'Philippine Peso',
|
|
1023
|
+
symbol_native: '₱',
|
|
1024
|
+
'decimal_digits': 2,
|
|
1025
|
+
rounding: 0,
|
|
1026
|
+
code: 'PHP',
|
|
1027
|
+
name_plural: 'Philippine pesos'
|
|
1028
|
+
}, {
|
|
1029
|
+
symbol: 'PKRs',
|
|
1030
|
+
name: 'Pakistani Rupee',
|
|
1031
|
+
symbol_native: '₨',
|
|
1032
|
+
'decimal_digits': 0,
|
|
1033
|
+
rounding: 0,
|
|
1034
|
+
code: 'PKR',
|
|
1035
|
+
name_plural: 'Pakistani rupees'
|
|
1036
|
+
}, {
|
|
1037
|
+
symbol: 'zł',
|
|
1038
|
+
name: 'Polish Zloty',
|
|
1039
|
+
symbol_native: 'zł',
|
|
1040
|
+
'decimal_digits': 2,
|
|
1041
|
+
rounding: 0,
|
|
1042
|
+
code: 'PLN',
|
|
1043
|
+
name_plural: 'Polish zlotys'
|
|
1044
|
+
}, {
|
|
1045
|
+
symbol: '₲',
|
|
1046
|
+
name: 'Paraguayan Guarani',
|
|
1047
|
+
symbol_native: '₲',
|
|
1048
|
+
'decimal_digits': 0,
|
|
1049
|
+
rounding: 0,
|
|
1050
|
+
code: 'PYG',
|
|
1051
|
+
name_plural: 'Paraguayan guaranis'
|
|
1052
|
+
}, {
|
|
1053
|
+
symbol: 'QR',
|
|
1054
|
+
name: 'Qatari Rial',
|
|
1055
|
+
symbol_native: 'ر.ق.',
|
|
1056
|
+
'decimal_digits': 2,
|
|
1057
|
+
rounding: 0,
|
|
1058
|
+
code: 'QAR',
|
|
1059
|
+
name_plural: 'Qatari rials'
|
|
1060
|
+
}, {
|
|
1061
|
+
symbol: 'RON',
|
|
1062
|
+
name: 'Romanian Leu',
|
|
1063
|
+
symbol_native: 'RON',
|
|
1064
|
+
'decimal_digits': 2,
|
|
1065
|
+
rounding: 0,
|
|
1066
|
+
code: 'RON',
|
|
1067
|
+
name_plural: 'Romanian lei'
|
|
1068
|
+
}, {
|
|
1069
|
+
symbol: 'din.',
|
|
1070
|
+
name: 'Serbian Dinar',
|
|
1071
|
+
symbol_native: 'дин.',
|
|
1072
|
+
'decimal_digits': 0,
|
|
1073
|
+
rounding: 0,
|
|
1074
|
+
code: 'RSD',
|
|
1075
|
+
name_plural: 'Serbian dinars'
|
|
1076
|
+
}, {
|
|
1077
|
+
symbol: 'RUB',
|
|
1078
|
+
name: 'Russian Ruble',
|
|
1079
|
+
symbol_native: 'руб.',
|
|
1080
|
+
'decimal_digits': 2,
|
|
1081
|
+
rounding: 0,
|
|
1082
|
+
code: 'RUB',
|
|
1083
|
+
name_plural: 'Russian rubles'
|
|
1084
|
+
}, {
|
|
1085
|
+
symbol: 'RWF',
|
|
1086
|
+
name: 'Rwandan Franc',
|
|
1087
|
+
symbol_native: 'FR',
|
|
1088
|
+
'decimal_digits': 0,
|
|
1089
|
+
rounding: 0,
|
|
1090
|
+
code: 'RWF',
|
|
1091
|
+
name_plural: 'Rwandan francs'
|
|
1092
|
+
}, {
|
|
1093
|
+
symbol: 'SR',
|
|
1094
|
+
name: 'Saudi Riyal',
|
|
1095
|
+
symbol_native: 'ر.س.',
|
|
1096
|
+
'decimal_digits': 2,
|
|
1097
|
+
rounding: 0,
|
|
1098
|
+
code: 'SAR',
|
|
1099
|
+
name_plural: 'Saudi riyals'
|
|
1100
|
+
}, {
|
|
1101
|
+
symbol: 'SDG',
|
|
1102
|
+
name: 'Sudanese Pound',
|
|
1103
|
+
symbol_native: 'SDG',
|
|
1104
|
+
'decimal_digits': 2,
|
|
1105
|
+
rounding: 0,
|
|
1106
|
+
code: 'SDG',
|
|
1107
|
+
name_plural: 'Sudanese pounds'
|
|
1108
|
+
}, {
|
|
1109
|
+
symbol: 'Skr',
|
|
1110
|
+
name: 'Swedish Krona',
|
|
1111
|
+
symbol_native: 'kr',
|
|
1112
|
+
'decimal_digits': 2,
|
|
1113
|
+
rounding: 0,
|
|
1114
|
+
code: 'SEK',
|
|
1115
|
+
name_plural: 'Swedish kronor'
|
|
1116
|
+
}, {
|
|
1117
|
+
symbol: 'S$',
|
|
1118
|
+
name: 'Singapore Dollar',
|
|
1119
|
+
symbol_native: '$',
|
|
1120
|
+
'decimal_digits': 2,
|
|
1121
|
+
rounding: 0,
|
|
1122
|
+
code: 'SGD',
|
|
1123
|
+
name_plural: 'Singapore dollars'
|
|
1124
|
+
}, {
|
|
1125
|
+
symbol: 'Ssh',
|
|
1126
|
+
name: 'Somali Shilling',
|
|
1127
|
+
symbol_native: 'Ssh',
|
|
1128
|
+
'decimal_digits': 0,
|
|
1129
|
+
rounding: 0,
|
|
1130
|
+
code: 'SOS',
|
|
1131
|
+
name_plural: 'Somali shillings'
|
|
1132
|
+
}, {
|
|
1133
|
+
symbol: 'SY£',
|
|
1134
|
+
name: 'Syrian Pound',
|
|
1135
|
+
symbol_native: 'ل.س.',
|
|
1136
|
+
'decimal_digits': 0,
|
|
1137
|
+
rounding: 0,
|
|
1138
|
+
code: 'SYP',
|
|
1139
|
+
name_plural: 'Syrian pounds'
|
|
1140
|
+
}, {
|
|
1141
|
+
symbol: '฿',
|
|
1142
|
+
name: 'Thai Baht',
|
|
1143
|
+
symbol_native: '฿',
|
|
1144
|
+
'decimal_digits': 2,
|
|
1145
|
+
rounding: 0,
|
|
1146
|
+
code: 'THB',
|
|
1147
|
+
name_plural: 'Thai baht'
|
|
1148
|
+
}, {
|
|
1149
|
+
symbol: 'DT',
|
|
1150
|
+
name: 'Tunisian Dinar',
|
|
1151
|
+
symbol_native: 'د.ت.',
|
|
1152
|
+
'decimal_digits': 3,
|
|
1153
|
+
rounding: 0,
|
|
1154
|
+
code: 'TND',
|
|
1155
|
+
name_plural: 'Tunisian dinars'
|
|
1156
|
+
}, {
|
|
1157
|
+
symbol: 'T$',
|
|
1158
|
+
name: 'Tongan Paʻanga',
|
|
1159
|
+
symbol_native: 'T$',
|
|
1160
|
+
'decimal_digits': 2,
|
|
1161
|
+
rounding: 0,
|
|
1162
|
+
code: 'TOP',
|
|
1163
|
+
name_plural: 'Tongan paʻanga'
|
|
1164
|
+
}, {
|
|
1165
|
+
symbol: 'TL',
|
|
1166
|
+
name: 'Turkish Lira',
|
|
1167
|
+
symbol_native: 'TL',
|
|
1168
|
+
'decimal_digits': 2,
|
|
1169
|
+
rounding: 0,
|
|
1170
|
+
code: 'TRY',
|
|
1171
|
+
name_plural: 'Turkish Lira'
|
|
1172
|
+
}, {
|
|
1173
|
+
symbol: 'TT$',
|
|
1174
|
+
name: 'Trinidad and Tobago Dollar',
|
|
1175
|
+
symbol_native: '$',
|
|
1176
|
+
'decimal_digits': 2,
|
|
1177
|
+
rounding: 0,
|
|
1178
|
+
code: 'TTD',
|
|
1179
|
+
name_plural: 'Trinidad and Tobago dollars'
|
|
1180
|
+
}, {
|
|
1181
|
+
symbol: 'NT$',
|
|
1182
|
+
name: 'New Taiwan Dollar',
|
|
1183
|
+
symbol_native: 'NT$',
|
|
1184
|
+
'decimal_digits': 2,
|
|
1185
|
+
rounding: 0,
|
|
1186
|
+
code: 'TWD',
|
|
1187
|
+
name_plural: 'New Taiwan dollars'
|
|
1188
|
+
}, {
|
|
1189
|
+
symbol: 'TSh',
|
|
1190
|
+
name: 'Tanzanian Shilling',
|
|
1191
|
+
symbol_native: 'TSh',
|
|
1192
|
+
'decimal_digits': 0,
|
|
1193
|
+
rounding: 0,
|
|
1194
|
+
code: 'TZS',
|
|
1195
|
+
name_plural: 'Tanzanian shillings'
|
|
1196
|
+
}, {
|
|
1197
|
+
symbol: '₴',
|
|
1198
|
+
name: 'Ukrainian Hryvnia',
|
|
1199
|
+
symbol_native: '₴',
|
|
1200
|
+
'decimal_digits': 2,
|
|
1201
|
+
rounding: 0,
|
|
1202
|
+
code: 'UAH',
|
|
1203
|
+
name_plural: 'Ukrainian hryvnias'
|
|
1204
|
+
}, {
|
|
1205
|
+
symbol: 'USh',
|
|
1206
|
+
name: 'Ugandan Shilling',
|
|
1207
|
+
symbol_native: 'USh',
|
|
1208
|
+
'decimal_digits': 0,
|
|
1209
|
+
rounding: 0,
|
|
1210
|
+
code: 'UGX',
|
|
1211
|
+
name_plural: 'Ugandan shillings'
|
|
1212
|
+
}, {
|
|
1213
|
+
symbol: '$U',
|
|
1214
|
+
name: 'Uruguayan Peso',
|
|
1215
|
+
symbol_native: '$',
|
|
1216
|
+
'decimal_digits': 2,
|
|
1217
|
+
rounding: 0,
|
|
1218
|
+
code: 'UYU',
|
|
1219
|
+
name_plural: 'Uruguayan pesos'
|
|
1220
|
+
}, {
|
|
1221
|
+
symbol: 'UZS',
|
|
1222
|
+
name: 'Uzbekistan Som',
|
|
1223
|
+
symbol_native: 'UZS',
|
|
1224
|
+
'decimal_digits': 0,
|
|
1225
|
+
rounding: 0,
|
|
1226
|
+
code: 'UZS',
|
|
1227
|
+
name_plural: 'Uzbekistan som'
|
|
1228
|
+
}, {
|
|
1229
|
+
symbol: 'Bs.F.',
|
|
1230
|
+
name: 'Venezuelan Bolívar',
|
|
1231
|
+
symbol_native: 'Bs.F.',
|
|
1232
|
+
'decimal_digits': 2,
|
|
1233
|
+
rounding: 0,
|
|
1234
|
+
code: 'VEF',
|
|
1235
|
+
name_plural: 'Venezuelan bolívars'
|
|
1236
|
+
}, {
|
|
1237
|
+
symbol: '₫',
|
|
1238
|
+
name: 'Vietnamese Dong',
|
|
1239
|
+
symbol_native: '₫',
|
|
1240
|
+
'decimal_digits': 0,
|
|
1241
|
+
rounding: 0,
|
|
1242
|
+
code: 'VND',
|
|
1243
|
+
name_plural: 'Vietnamese dong'
|
|
1244
|
+
}, {
|
|
1245
|
+
symbol: 'FCFA',
|
|
1246
|
+
name: 'CFA Franc BEAC',
|
|
1247
|
+
symbol_native: 'FCFA',
|
|
1248
|
+
'decimal_digits': 0,
|
|
1249
|
+
rounding: 0,
|
|
1250
|
+
code: 'XAF',
|
|
1251
|
+
name_plural: 'CFA francs BEAC'
|
|
1252
|
+
}, {
|
|
1253
|
+
symbol: 'CFA',
|
|
1254
|
+
name: 'CFA Franc BCEAO',
|
|
1255
|
+
symbol_native: 'CFA',
|
|
1256
|
+
'decimal_digits': 0,
|
|
1257
|
+
rounding: 0,
|
|
1258
|
+
code: 'XOF',
|
|
1259
|
+
name_plural: 'CFA francs BCEAO'
|
|
1260
|
+
}, {
|
|
1261
|
+
symbol: 'YR',
|
|
1262
|
+
name: 'Yemeni Rial',
|
|
1263
|
+
symbol_native: 'ر.ي.',
|
|
1264
|
+
'decimal_digits': 0,
|
|
1265
|
+
rounding: 0,
|
|
1266
|
+
code: 'YER',
|
|
1267
|
+
name_plural: 'Yemeni rials'
|
|
1268
|
+
}, {
|
|
1269
|
+
symbol: 'R',
|
|
1270
|
+
name: 'South African Rand',
|
|
1271
|
+
symbol_native: 'R',
|
|
1272
|
+
'decimal_digits': 2,
|
|
1273
|
+
rounding: 0,
|
|
1274
|
+
code: 'ZAR',
|
|
1275
|
+
name_plural: 'South African rand'
|
|
1276
|
+
}, {
|
|
1277
|
+
symbol: 'ZK',
|
|
1278
|
+
name: 'Zambian Kwacha',
|
|
1279
|
+
symbol_native: 'ZK',
|
|
1280
|
+
'decimal_digits': 0,
|
|
1281
|
+
rounding: 0,
|
|
1282
|
+
code: 'ZMK',
|
|
1283
|
+
name_plural: 'Zambian kwachas'
|
|
1284
|
+
}];
|
|
1285
|
+
const decodeHTMLEntities = html => {
|
|
1286
|
+
const document = new DOMParser().parseFromString(html, 'text/html');
|
|
1287
|
+
return document.documentElement.textContent || '';
|
|
1426
1288
|
};
|
|
1427
|
-
exports.decodeHTMLEntities = decodeHTMLEntities;
|
|
1289
|
+
exports.decodeHTMLEntities = decodeHTMLEntities;
|