q2-tecton-elements 1.12.1 → 1.13.1

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.
Files changed (219) hide show
  1. package/dist/cjs/click-elsewhere.cjs.entry.js +5 -7
  2. package/dist/cjs/{icons-9bd0febe.js → icons-08ffe5c9.js} +386 -386
  3. package/dist/cjs/{index-c2e53804.js → index-7febb200.js} +112 -65
  4. package/dist/cjs/{index-773c3eec.js → index-dd823ee6.js} +2 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/q2-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/q2-badge.cjs.entry.js +43 -0
  8. package/dist/cjs/q2-btn_2.cjs.entry.js +13 -13
  9. package/dist/cjs/q2-calendar.cjs.entry.js +42 -59
  10. package/dist/cjs/q2-card.cjs.entry.js +43 -5
  11. package/dist/cjs/q2-carousel-pane.cjs.entry.js +5 -5
  12. package/dist/cjs/q2-carousel.cjs.entry.js +318 -106
  13. package/dist/cjs/q2-checkbox-group.cjs.entry.js +3 -3
  14. package/dist/cjs/q2-checkbox.cjs.entry.js +8 -11
  15. package/dist/cjs/q2-dropdown-item.cjs.entry.js +7 -7
  16. package/dist/cjs/q2-dropdown.cjs.entry.js +9 -18
  17. package/dist/cjs/q2-editable-field.cjs.entry.js +5 -8
  18. package/dist/cjs/q2-icon.cjs.entry.js +3 -3
  19. package/dist/cjs/q2-input.cjs.entry.js +431 -434
  20. package/dist/cjs/q2-loading-element.cjs.entry.js +3 -3
  21. package/dist/cjs/q2-loc.cjs.entry.js +2 -2
  22. package/dist/cjs/q2-message.cjs.entry.js +5 -5
  23. package/dist/cjs/q2-optgroup.cjs.entry.js +3 -3
  24. package/dist/cjs/q2-option-list.cjs.entry.js +5 -3
  25. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-pagination.cjs.entry.js +6 -8
  27. package/dist/cjs/q2-pill.cjs.entry.js +9 -9
  28. package/dist/cjs/q2-radio-group.cjs.entry.js +4 -7
  29. package/dist/cjs/q2-radio.cjs.entry.js +2 -2
  30. package/dist/cjs/q2-section.cjs.entry.js +5 -7
  31. package/dist/cjs/q2-select.cjs.entry.js +17 -29
  32. package/dist/cjs/q2-stepper-pane.cjs.entry.js +42 -4
  33. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +278 -0
  34. package/dist/cjs/q2-stepper.cjs.entry.js +10 -12
  35. package/dist/cjs/q2-tab-container.cjs.entry.js +8 -8
  36. package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
  37. package/dist/cjs/q2-tag.cjs.entry.js +4 -4
  38. package/dist/cjs/q2-tecton-elements.cjs.js +3 -3
  39. package/dist/cjs/q2-textarea.cjs.entry.js +8 -8
  40. package/dist/cjs/{shapes-086c0365.js → shapes-305746b5.js} +9 -16
  41. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -5
  42. package/dist/collection/collection-manifest.json +5 -3
  43. package/dist/collection/components/click-elsewhere/index.js +4 -6
  44. package/dist/collection/components/q2-badge/index.js +148 -0
  45. package/dist/collection/components/q2-badge/styles.css +134 -0
  46. package/dist/collection/components/q2-btn/index.js +14 -14
  47. package/dist/collection/components/q2-calendar/helpers.js +16 -20
  48. package/dist/collection/components/q2-calendar/index.js +21 -36
  49. package/dist/collection/components/q2-calendar/styles.css +1 -1
  50. package/dist/collection/components/q2-calendar/validation.js +4 -2
  51. package/dist/collection/components/q2-card/index.js +59 -2
  52. package/dist/collection/components/q2-card/styles.css +17 -1
  53. package/dist/collection/components/q2-carousel/index.js +11 -16
  54. package/dist/collection/components/q2-carousel/styles.css +3 -3
  55. package/dist/collection/components/q2-carousel-pane/index.js +2 -2
  56. package/dist/collection/components/q2-carousel-pane/styles.css +8 -3
  57. package/dist/collection/components/q2-checkbox/index.js +8 -11
  58. package/dist/collection/components/q2-checkbox/styles.css +1 -1
  59. package/dist/collection/components/q2-checkbox-group/index.js +1 -1
  60. package/dist/collection/components/q2-dropdown/index.js +6 -15
  61. package/dist/collection/components/q2-dropdown/styles.css +3 -3
  62. package/dist/collection/components/q2-dropdown-item/index.js +5 -5
  63. package/dist/collection/components/q2-editable-field/index.js +3 -6
  64. package/dist/collection/components/q2-icon/icons.js +385 -385
  65. package/dist/collection/components/q2-input/formatting/credit-card.js +15 -13
  66. package/dist/collection/components/q2-input/formatting/currency.js +162 -162
  67. package/dist/collection/components/q2-input/formatting/date.js +1 -1
  68. package/dist/collection/components/q2-input/formatting/generic.js +7 -8
  69. package/dist/collection/components/q2-input/formatting/number.js +6 -9
  70. package/dist/collection/components/q2-input/formatting/numeric.js +5 -5
  71. package/dist/collection/components/q2-input/formatting/phone.js +215 -215
  72. package/dist/collection/components/q2-input/formatting/postal.js +1 -1
  73. package/dist/collection/components/q2-input/index.js +20 -21
  74. package/dist/collection/components/q2-input/styles.css +19 -6
  75. package/dist/collection/components/q2-loading/index.js +4 -4
  76. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +1 -1
  77. package/dist/collection/components/q2-loading/skeleton/shapes.js +8 -15
  78. package/dist/collection/components/q2-loading/styles.css +1 -1
  79. package/dist/collection/components/q2-message/index.js +3 -3
  80. package/dist/collection/components/q2-optgroup/index.js +1 -1
  81. package/dist/collection/components/q2-option-list/index.js +4 -2
  82. package/dist/collection/components/q2-pagination/index.js +4 -6
  83. package/dist/collection/components/q2-pill/index.js +8 -8
  84. package/dist/collection/components/q2-pill/styles.css +3 -1
  85. package/dist/collection/components/q2-radio-group/index.js +3 -6
  86. package/dist/collection/components/q2-section/index.js +5 -7
  87. package/dist/collection/components/q2-select/index.js +15 -27
  88. package/dist/collection/components/q2-select/styles.css +4 -4
  89. package/dist/collection/components/q2-stepper/index.js +8 -10
  90. package/dist/collection/components/q2-stepper/styles.css +3 -3
  91. package/dist/collection/components/q2-stepper-pane/index.js +133 -5
  92. package/dist/collection/components/q2-stepper-vertical/index.js +346 -0
  93. package/dist/collection/components/q2-stepper-vertical/styles.css +273 -0
  94. package/dist/collection/components/q2-tab-container/index.js +7 -7
  95. package/dist/collection/components/q2-tag/index.js +3 -3
  96. package/dist/collection/components/q2-textarea/index.js +6 -6
  97. package/dist/collection/components/tecton-tab-pane/index.js +3 -10
  98. package/dist/collection/utils/index.js +1 -1
  99. package/dist/esm/click-elsewhere.entry.js +5 -7
  100. package/dist/esm/{icons-6a143c2f.js → icons-b1e11526.js} +386 -386
  101. package/dist/esm/{index-fa32f694.js → index-0ff8de52.js} +2 -2
  102. package/dist/esm/{index-be8376c0.js → index-dbfb3ecc.js} +112 -65
  103. package/dist/esm/loader.js +3 -3
  104. package/dist/esm/polyfills/css-shim.js +1 -1
  105. package/dist/esm/q2-avatar.entry.js +2 -2
  106. package/dist/esm/q2-badge.entry.js +39 -0
  107. package/dist/esm/q2-btn_2.entry.js +13 -13
  108. package/dist/esm/q2-calendar.entry.js +42 -59
  109. package/dist/esm/q2-card.entry.js +43 -5
  110. package/dist/esm/q2-carousel-pane.entry.js +5 -5
  111. package/dist/esm/q2-carousel.entry.js +318 -106
  112. package/dist/esm/q2-checkbox-group.entry.js +3 -3
  113. package/dist/esm/q2-checkbox.entry.js +8 -11
  114. package/dist/esm/q2-dropdown-item.entry.js +7 -7
  115. package/dist/esm/q2-dropdown.entry.js +9 -18
  116. package/dist/esm/q2-editable-field.entry.js +5 -8
  117. package/dist/esm/q2-icon.entry.js +3 -3
  118. package/dist/esm/q2-input.entry.js +431 -434
  119. package/dist/esm/q2-loading-element.entry.js +3 -3
  120. package/dist/esm/q2-loc.entry.js +2 -2
  121. package/dist/esm/q2-message.entry.js +5 -5
  122. package/dist/esm/q2-optgroup.entry.js +3 -3
  123. package/dist/esm/q2-option-list.entry.js +5 -3
  124. package/dist/esm/q2-option.entry.js +1 -1
  125. package/dist/esm/q2-pagination.entry.js +6 -8
  126. package/dist/esm/q2-pill.entry.js +9 -9
  127. package/dist/esm/q2-radio-group.entry.js +4 -7
  128. package/dist/esm/q2-radio.entry.js +2 -2
  129. package/dist/esm/q2-section.entry.js +5 -7
  130. package/dist/esm/q2-select.entry.js +17 -29
  131. package/dist/esm/q2-stepper-pane.entry.js +42 -4
  132. package/dist/esm/q2-stepper-vertical.entry.js +274 -0
  133. package/dist/esm/q2-stepper.entry.js +10 -12
  134. package/dist/esm/q2-tab-container.entry.js +8 -8
  135. package/dist/esm/q2-tab-pane.entry.js +1 -1
  136. package/dist/esm/q2-tag.entry.js +4 -4
  137. package/dist/esm/q2-tecton-elements.js +3 -3
  138. package/dist/esm/q2-textarea.entry.js +8 -8
  139. package/dist/esm/{shapes-81c11dfe.js → shapes-cff4e1f0.js} +9 -16
  140. package/dist/esm/tecton-tab-pane.entry.js +2 -5
  141. package/dist/loader/index.d.ts +0 -1
  142. package/dist/q2-tecton-elements/{p-a0248299.entry.js → p-00e8f782.entry.js} +1 -1
  143. package/dist/q2-tecton-elements/p-0900bec1.entry.js +1 -0
  144. package/dist/q2-tecton-elements/{p-f98dc161.entry.js → p-10264ecb.entry.js} +1 -1
  145. package/dist/q2-tecton-elements/{p-0a7cff38.entry.js → p-1305ec5f.entry.js} +1 -1
  146. package/dist/q2-tecton-elements/p-148391d6.entry.js +1 -0
  147. package/dist/q2-tecton-elements/p-1dfaee64.entry.js +1 -0
  148. package/dist/q2-tecton-elements/{p-32ad664c.entry.js → p-221abbf6.entry.js} +1 -1
  149. package/dist/q2-tecton-elements/{p-c90a6016.js → p-255b2b4c.js} +1 -1
  150. package/dist/q2-tecton-elements/p-27736b6b.entry.js +1 -0
  151. package/dist/q2-tecton-elements/p-2846ab94.entry.js +1 -0
  152. package/dist/q2-tecton-elements/{p-167a19fd.entry.js → p-2bc1de01.entry.js} +1 -1
  153. package/dist/q2-tecton-elements/{p-8ea2c4f7.entry.js → p-2c15414c.entry.js} +1 -1
  154. package/dist/q2-tecton-elements/p-2caa89fd.js +1 -0
  155. package/dist/q2-tecton-elements/p-327cca41.entry.js +1 -0
  156. package/dist/q2-tecton-elements/{p-54f0d64e.entry.js → p-3a420dbf.entry.js} +1 -1
  157. package/dist/q2-tecton-elements/{p-c460e5ed.entry.js → p-3a64e5ce.entry.js} +1 -1
  158. package/dist/q2-tecton-elements/{p-aca8302b.entry.js → p-3abcb09d.entry.js} +1 -1
  159. package/dist/q2-tecton-elements/{p-08668234.entry.js → p-3fe98e3e.entry.js} +1 -1
  160. package/dist/q2-tecton-elements/{p-c5199147.entry.js → p-430a979b.entry.js} +1 -1
  161. package/dist/q2-tecton-elements/{p-fa9e3825.entry.js → p-45eb7739.entry.js} +1 -1
  162. package/dist/q2-tecton-elements/{p-750bcd33.entry.js → p-49b2abc4.entry.js} +1 -1
  163. package/dist/q2-tecton-elements/{p-d9bc6494.entry.js → p-4ab30466.entry.js} +1 -1
  164. package/dist/q2-tecton-elements/p-5bbf2bfe.entry.js +1 -0
  165. package/dist/q2-tecton-elements/p-6fec9235.entry.js +1 -0
  166. package/dist/q2-tecton-elements/{p-3c6f73cb.js → p-824aebd9.js} +1 -1
  167. package/dist/q2-tecton-elements/{p-91dba21f.entry.js → p-a4ae89cc.entry.js} +1 -1
  168. package/dist/q2-tecton-elements/{p-d3058002.entry.js → p-a5562aaa.entry.js} +1 -1
  169. package/dist/q2-tecton-elements/{p-5effd81a.entry.js → p-ae130f70.entry.js} +1 -1
  170. package/dist/q2-tecton-elements/p-b2302cd3.entry.js +1 -0
  171. package/dist/q2-tecton-elements/p-c20cbb2d.entry.js +1 -0
  172. package/dist/q2-tecton-elements/p-ca7a3380.entry.js +1 -0
  173. package/dist/q2-tecton-elements/{p-9a3c37ab.entry.js → p-d33e152c.entry.js} +1 -1
  174. package/dist/q2-tecton-elements/{p-9024859f.entry.js → p-d5218cd6.entry.js} +1 -1
  175. package/dist/q2-tecton-elements/{p-54300d2f.entry.js → p-d52b435e.entry.js} +1 -1
  176. package/dist/q2-tecton-elements/{p-c3d68d5c.js → p-dd02cf8d.js} +1 -1
  177. package/dist/q2-tecton-elements/{p-30bf5f44.entry.js → p-e0e7ae8b.entry.js} +1 -1
  178. package/dist/q2-tecton-elements/p-ede12fc1.entry.js +1 -0
  179. package/dist/q2-tecton-elements/{p-af202624.entry.js → p-fdfbe75b.entry.js} +1 -1
  180. package/dist/q2-tecton-elements/p-ffbded54.entry.js +1 -0
  181. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  182. package/dist/test/elements/q2-tag-test.js +6 -6
  183. package/dist/test/helpers.js +7 -7
  184. package/dist/types/components/q2-badge/index.d.ts +13 -0
  185. package/dist/types/components/q2-btn/index.d.ts +3 -3
  186. package/dist/types/components/q2-calendar/index.d.ts +1 -1
  187. package/dist/types/components/q2-calendar/validation.d.ts +1 -1
  188. package/dist/types/components/q2-card/index.d.ts +4 -0
  189. package/dist/types/components/q2-dropdown/index.d.ts +1 -1
  190. package/dist/types/components/q2-editable-field/index.d.ts +1 -1
  191. package/dist/types/components/q2-input/formatting/credit-card.d.ts +1 -3
  192. package/dist/types/components/q2-input/index.d.ts +2 -2
  193. package/dist/types/components/q2-option-list/index.d.ts +1 -1
  194. package/dist/types/components/q2-pill/index.d.ts +1 -1
  195. package/dist/types/components/q2-select/index.d.ts +1 -1
  196. package/dist/types/components/q2-stepper/index.d.ts +1 -1
  197. package/dist/types/components/q2-stepper-pane/index.d.ts +16 -1
  198. package/dist/types/components/q2-stepper-vertical/index.d.ts +52 -0
  199. package/dist/types/components/q2-tab-container/index.d.ts +1 -1
  200. package/dist/types/components/tecton-tab-pane/index.d.ts +2 -2
  201. package/dist/types/components.d.ts +63 -13
  202. package/dist/types/global.d.ts +1 -0
  203. package/dist/types/stencil-public-runtime.d.ts +6 -4
  204. package/dist/types/util.d.ts +2 -10
  205. package/dist/types/workspace/workspace/{tecton-production_release_1.12.x → tecton-production_release_1.13.x}/packages/q2-tecton-elements/.stencil/test/elements/q2-tag-test.d.ts +0 -0
  206. package/dist/types/workspace/workspace/{tecton-production_release_1.12.x → tecton-production_release_1.13.x}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -2
  207. package/package.json +13 -13
  208. package/dist/q2-tecton-elements/p-080839ed.js +0 -1
  209. package/dist/q2-tecton-elements/p-2afdc922.entry.js +0 -1
  210. package/dist/q2-tecton-elements/p-34415315.entry.js +0 -1
  211. package/dist/q2-tecton-elements/p-5b906cf1.entry.js +0 -1
  212. package/dist/q2-tecton-elements/p-7ce98c1a.entry.js +0 -1
  213. package/dist/q2-tecton-elements/p-b9c2c1d3.entry.js +0 -1
  214. package/dist/q2-tecton-elements/p-c5e6f7fa.entry.js +0 -1
  215. package/dist/q2-tecton-elements/p-d65aaed2.entry.js +0 -1
  216. package/dist/q2-tecton-elements/p-df86f160.entry.js +0 -1
  217. package/dist/q2-tecton-elements/p-e38080d2.entry.js +0 -1
  218. package/dist/q2-tecton-elements/p-e9d69ba8.entry.js +0 -1
  219. package/dist/q2-tecton-elements/p-fe6407a4.entry.js +0 -1
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c2e53804.js');
6
- const index$1 = require('./index-773c3eec.js');
5
+ const index = require('./index-7febb200.js');
6
+ const index$1 = require('./index-dd823ee6.js');
7
7
 
8
8
  function formatNumber(val = '', options = {
9
9
  prefix: '',
@@ -12,15 +12,14 @@ function formatNumber(val = '', options = {
12
12
  decimalSeparator: '.',
13
13
  thousandsSeparator: '',
14
14
  allowDecimal: false,
15
- allowNegative: true
15
+ allowNegative: true,
16
16
  }, explicit = false) {
17
17
  const isNegative = val[0] === '-';
18
18
  let value = val;
19
19
  const allowDecimal = !!options.allowDecimal && !!options.decimals;
20
20
  if (explicit) {
21
21
  const parsedValue = value.replace(/[^\d.]/g, '');
22
- value =
23
- (parsedValue && Number(parsedValue).toFixed(allowDecimal ? options.decimals : 0)) || '';
22
+ value = (parsedValue && Number(parsedValue).toFixed(allowDecimal ? options.decimals : 0)) || '';
24
23
  }
25
24
  value = value.replace(/[^\d]/g, '');
26
25
  let { integerString, decimalString } = splitValue(value, allowDecimal, options.decimals);
@@ -35,9 +34,7 @@ function formatNumber(val = '', options = {
35
34
  value = `${negativeSymbol}${integerString}${decimalSeparator}${decimalString}`;
36
35
  // format integerString
37
36
  integerString = integerString.replace(/\B(?=(\d{3})+(?!\d))/g, options.thousandsSeparator);
38
- const formattedValue = negativeSymbol || integerString
39
- ? `${negativeSymbol}${integerString}${decimalSeparator}${decimalString}`
40
- : '';
37
+ const formattedValue = negativeSymbol || integerString ? `${negativeSymbol}${integerString}${decimalSeparator}${decimalString}` : '';
41
38
  const fullyFormattedValue = negativeSymbol || integerString
42
39
  ? `${negativeSymbol}${options.prefix}${integerString}${decimalSeparator}${decimalString}${options.suffix}`
43
40
  : '';
@@ -56,14 +53,14 @@ function formatNumber(val = '', options = {
56
53
  suffix: '',
57
54
  formattingCharacterCount,
58
55
  maxlength,
59
- unformattedValue
56
+ unformattedValue,
60
57
  };
61
58
  }
62
59
  function splitValue(value, allowDecimal = false, decimals) {
63
60
  if (!allowDecimal) {
64
61
  return {
65
62
  integerString: value,
66
- decimalString: ''
63
+ decimalString: '',
67
64
  };
68
65
  }
69
66
  const splitIndex = value.length - decimals;
@@ -74,7 +71,7 @@ function splitValue(value, allowDecimal = false, decimals) {
74
71
  const decimalString = value.substring(splitIndex).padStart(decimals, '0');
75
72
  return {
76
73
  integerString,
77
- decimalString
74
+ decimalString,
78
75
  };
79
76
  }
80
77
 
@@ -89,7 +86,7 @@ function formatValue(value = '', mask = '', options) {
89
86
  fullyFormattedValue,
90
87
  prefix: prefix.trim() || suffix.trim(),
91
88
  formattingCharacterCount: 0,
92
- unformattedValue: value
89
+ unformattedValue: value,
93
90
  };
94
91
  }
95
92
  const { unformattedValue, formattedValue, formattingCharacterCount } = generateMask(value, mask);
@@ -104,7 +101,7 @@ function formatValue(value = '', mask = '', options) {
104
101
  formattingCharacterCount,
105
102
  maxlength,
106
103
  minFormattedLength,
107
- unformattedValue
104
+ unformattedValue,
108
105
  };
109
106
  }
110
107
  const optionalValidatingChars = ['?'];
@@ -116,8 +113,8 @@ function isKnownValidatingChar(character) {
116
113
  return knownValidatingChars.includes(character);
117
114
  }
118
115
  function getStaticFormattingChars(mask) {
119
- let knownChars = knownValidatingChars.join('|');
120
- let formattingChars = mask.replace(new RegExp(`[${knownChars}]`, 'g'), '').split('');
116
+ const knownChars = knownValidatingChars.join('|');
117
+ const formattingChars = mask.replace(new RegExp(`[${knownChars}]`, 'g'), '').split('');
121
118
  return new Set(formattingChars);
122
119
  }
123
120
  function isStaticFormattingChar(character, formattingChars) {
@@ -144,7 +141,7 @@ function getValidatedChar(char, matcher) {
144
141
  }
145
142
  function generateMask(value, mask) {
146
143
  const maskArray = mask.split('');
147
- let formattingChars = getStaticFormattingChars(mask);
144
+ const formattingChars = getStaticFormattingChars(mask);
148
145
  let currentValueIndex = 0;
149
146
  let formattingCharacterCount = 0;
150
147
  let unformattedValue = '';
@@ -152,8 +149,7 @@ function generateMask(value, mask) {
152
149
  if (currentValueIndex >= value.length) {
153
150
  return acc;
154
151
  }
155
- if (isOptionalValidatingChar(character) &&
156
- isStaticFormattingChar(value[currentValueIndex], formattingChars)) {
152
+ if (isOptionalValidatingChar(character) && isStaticFormattingChar(value[currentValueIndex], formattingChars)) {
157
153
  return acc;
158
154
  }
159
155
  if (isKnownValidatingChar(character)) {
@@ -181,7 +177,7 @@ function generateMask(value, mask) {
181
177
  return {
182
178
  unformattedValue,
183
179
  formattedValue,
184
- formattingCharacterCount
180
+ formattingCharacterCount,
185
181
  };
186
182
  }
187
183
  function getNextNonFormattingCharIndex(value, currentValueIndex, formattingChars) {
@@ -204,1128 +200,1128 @@ const currencyFormats = {
204
200
  suffix: 'د.إ',
205
201
  decimals: 2,
206
202
  decimalSeparator: '.',
207
- thousandsSeparator: ','
203
+ thousandsSeparator: ',',
208
204
  },
209
205
  AFN: {
210
206
  prefix: '¤',
211
207
  suffix: '',
212
208
  decimals: 2,
213
209
  decimalSeparator: '.',
214
- thousandsSeparator: ','
210
+ thousandsSeparator: ',',
215
211
  },
216
212
  ALL: {
217
213
  prefix: 'L',
218
214
  suffix: '',
219
215
  decimals: 2,
220
216
  decimalSeparator: '.',
221
- thousandsSeparator: ','
217
+ thousandsSeparator: ',',
222
218
  },
223
219
  AMD: {
224
220
  prefix: 'դր.',
225
221
  suffix: '',
226
222
  decimals: 2,
227
223
  decimalSeparator: '.',
228
- thousandsSeparator: ','
224
+ thousandsSeparator: ',',
229
225
  },
230
226
  ANG: {
231
227
  prefix: 'ƒ',
232
228
  suffix: '',
233
229
  decimals: 2,
234
230
  decimalSeparator: '.',
235
- thousandsSeparator: ','
231
+ thousandsSeparator: ',',
236
232
  },
237
233
  AOA: {
238
234
  prefix: 'Kz',
239
235
  suffix: '',
240
236
  decimals: 2,
241
237
  decimalSeparator: '.',
242
- thousandsSeparator: ','
238
+ thousandsSeparator: ',',
243
239
  },
244
240
  ARS: {
245
241
  prefix: '$',
246
242
  suffix: '',
247
243
  decimals: 2,
248
244
  decimalSeparator: '.',
249
- thousandsSeparator: ','
245
+ thousandsSeparator: ',',
250
246
  },
251
247
  AUD: {
252
248
  prefix: '$',
253
249
  suffix: '',
254
250
  decimals: 2,
255
251
  decimalSeparator: '.',
256
- thousandsSeparator: ','
252
+ thousandsSeparator: ',',
257
253
  },
258
254
  AWG: {
259
255
  prefix: 'ƒ',
260
256
  suffix: '',
261
257
  decimals: 2,
262
258
  decimalSeparator: '.',
263
- thousandsSeparator: ','
259
+ thousandsSeparator: ',',
264
260
  },
265
261
  AZN: {
266
262
  prefix: '¤',
267
263
  suffix: '',
268
264
  decimals: 2,
269
265
  decimalSeparator: '.',
270
- thousandsSeparator: ','
266
+ thousandsSeparator: ',',
271
267
  },
272
268
  BAM: {
273
269
  prefix: 'КМ',
274
270
  suffix: '',
275
271
  decimals: 2,
276
272
  decimalSeparator: '.',
277
- thousandsSeparator: ','
273
+ thousandsSeparator: ',',
278
274
  },
279
275
  BBD: {
280
276
  prefix: '$',
281
277
  suffix: '',
282
278
  decimals: 2,
283
279
  decimalSeparator: '.',
284
- thousandsSeparator: ','
280
+ thousandsSeparator: ',',
285
281
  },
286
282
  BDT: {
287
283
  prefix: '৳',
288
284
  suffix: '',
289
285
  decimals: 2,
290
286
  decimalSeparator: '.',
291
- thousandsSeparator: ','
287
+ thousandsSeparator: ',',
292
288
  },
293
289
  BGN: {
294
290
  prefix: '৳',
295
291
  suffix: '',
296
292
  decimals: 2,
297
293
  decimalSeparator: '.',
298
- thousandsSeparator: ','
294
+ thousandsSeparator: ',',
299
295
  },
300
296
  BHD: {
301
297
  prefix: '',
302
298
  suffix: 'ب.د',
303
299
  decimals: 3,
304
300
  decimalSeparator: '.',
305
- thousandsSeparator: ','
301
+ thousandsSeparator: ',',
306
302
  },
307
303
  BIF: {
308
304
  prefix: 'Fr',
309
305
  suffix: '',
310
306
  decimals: 0,
311
307
  decimalSeparator: '.',
312
- thousandsSeparator: ','
308
+ thousandsSeparator: ',',
313
309
  },
314
310
  BMD: {
315
311
  prefix: '$',
316
312
  suffix: '',
317
313
  decimals: 2,
318
314
  decimalSeparator: '.',
319
- thousandsSeparator: ','
315
+ thousandsSeparator: ',',
320
316
  },
321
317
  BND: {
322
318
  prefix: '$',
323
319
  suffix: '',
324
320
  decimals: 2,
325
321
  decimalSeparator: '.',
326
- thousandsSeparator: ','
322
+ thousandsSeparator: ',',
327
323
  },
328
324
  BOB: {
329
325
  prefix: 'Bs.',
330
326
  suffix: '',
331
327
  decimals: 2,
332
328
  decimalSeparator: '.',
333
- thousandsSeparator: ','
329
+ thousandsSeparator: ',',
334
330
  },
335
331
  BRL: {
336
332
  prefix: 'R$',
337
333
  suffix: '',
338
334
  decimals: 2,
339
335
  decimalSeparator: '.',
340
- thousandsSeparator: ','
336
+ thousandsSeparator: ',',
341
337
  },
342
338
  BSD: {
343
339
  prefix: '$',
344
340
  suffix: '',
345
341
  decimals: 2,
346
342
  decimalSeparator: '.',
347
- thousandsSeparator: ','
343
+ thousandsSeparator: ',',
348
344
  },
349
345
  BTN: {
350
346
  prefix: '¤',
351
347
  suffix: '',
352
348
  decimals: 2,
353
349
  decimalSeparator: '.',
354
- thousandsSeparator: ','
350
+ thousandsSeparator: ',',
355
351
  },
356
352
  BWP: {
357
353
  prefix: 'P',
358
354
  suffix: '',
359
355
  decimals: 2,
360
356
  decimalSeparator: '.',
361
- thousandsSeparator: ','
357
+ thousandsSeparator: ',',
362
358
  },
363
359
  BYN: {
364
360
  prefix: 'Br',
365
361
  suffix: '',
366
362
  decimals: 0,
367
363
  decimalSeparator: '.',
368
- thousandsSeparator: ','
364
+ thousandsSeparator: ',',
369
365
  },
370
366
  BZD: {
371
367
  prefix: '$',
372
368
  suffix: '',
373
369
  decimals: 2,
374
370
  decimalSeparator: '.',
375
- thousandsSeparator: ','
371
+ thousandsSeparator: ',',
376
372
  },
377
373
  CAD: {
378
374
  prefix: '$',
379
375
  suffix: '',
380
376
  decimals: 2,
381
377
  decimalSeparator: '.',
382
- thousandsSeparator: ','
378
+ thousandsSeparator: ',',
383
379
  },
384
380
  CDF: {
385
381
  prefix: 'Fr',
386
382
  suffix: '',
387
383
  decimals: 2,
388
384
  decimalSeparator: '.',
389
- thousandsSeparator: ','
385
+ thousandsSeparator: ',',
390
386
  },
391
387
  CHF: {
392
388
  prefix: 'Fr',
393
389
  suffix: '',
394
390
  decimals: 2,
395
391
  decimalSeparator: '.',
396
- thousandsSeparator: ','
392
+ thousandsSeparator: ',',
397
393
  },
398
394
  CLF: {
399
395
  prefix: 'Fr',
400
396
  suffix: '',
401
397
  decimals: 4,
402
398
  decimalSeparator: '.',
403
- thousandsSeparator: ','
399
+ thousandsSeparator: ',',
404
400
  },
405
401
  CLP: {
406
402
  prefix: '$',
407
403
  suffix: '',
408
404
  decimals: 0,
409
405
  decimalSeparator: '.',
410
- thousandsSeparator: ','
406
+ thousandsSeparator: ',',
411
407
  },
412
408
  CNY: {
413
409
  prefix: '¥',
414
410
  suffix: '',
415
411
  decimals: 2,
416
412
  decimalSeparator: '.',
417
- thousandsSeparator: ','
413
+ thousandsSeparator: ',',
418
414
  },
419
415
  COP: {
420
416
  prefix: '$',
421
417
  suffix: '',
422
418
  decimals: 2,
423
419
  decimalSeparator: '.',
424
- thousandsSeparator: ','
420
+ thousandsSeparator: ',',
425
421
  },
426
422
  CRC: {
427
423
  prefix: '₡',
428
424
  suffix: '',
429
425
  decimals: 2,
430
426
  decimalSeparator: '.',
431
- thousandsSeparator: ','
427
+ thousandsSeparator: ',',
432
428
  },
433
429
  CUC: {
434
430
  prefix: '$',
435
431
  suffix: '',
436
432
  decimals: 2,
437
433
  decimalSeparator: '.',
438
- thousandsSeparator: ','
434
+ thousandsSeparator: ',',
439
435
  },
440
436
  CUP: {
441
437
  prefix: '$',
442
438
  suffix: '',
443
439
  decimals: 2,
444
440
  decimalSeparator: '.',
445
- thousandsSeparator: ','
441
+ thousandsSeparator: ',',
446
442
  },
447
443
  CVE: {
448
444
  prefix: '$',
449
445
  suffix: '',
450
446
  decimals: 0,
451
447
  decimalSeparator: '.',
452
- thousandsSeparator: ','
448
+ thousandsSeparator: ',',
453
449
  },
454
450
  CZK: {
455
451
  prefix: 'Kč',
456
452
  suffix: '',
457
453
  decimals: 2,
458
454
  decimalSeparator: '.',
459
- thousandsSeparator: ','
455
+ thousandsSeparator: ',',
460
456
  },
461
457
  DJF: {
462
458
  prefix: 'Fr',
463
459
  suffix: '',
464
460
  decimals: 0,
465
461
  decimalSeparator: '.',
466
- thousandsSeparator: ','
462
+ thousandsSeparator: ',',
467
463
  },
468
464
  DKK: {
469
465
  prefix: 'kr',
470
466
  suffix: '',
471
467
  decimals: 2,
472
468
  decimalSeparator: '.',
473
- thousandsSeparator: ','
469
+ thousandsSeparator: ',',
474
470
  },
475
471
  DOP: {
476
472
  prefix: '$',
477
473
  suffix: '',
478
474
  decimals: 2,
479
475
  decimalSeparator: '.',
480
- thousandsSeparator: ','
476
+ thousandsSeparator: ',',
481
477
  },
482
478
  DZD: {
483
479
  prefix: '',
484
480
  suffix: 'د.ج',
485
481
  decimals: 2,
486
482
  decimalSeparator: '.',
487
- thousandsSeparator: ','
483
+ thousandsSeparator: ',',
488
484
  },
489
485
  EEK: {
490
486
  prefix: 'KR',
491
487
  suffix: '',
492
488
  decimals: 2,
493
489
  decimalSeparator: '.',
494
- thousandsSeparator: ','
490
+ thousandsSeparator: ',',
495
491
  },
496
492
  EGP: {
497
493
  prefix: '£',
498
494
  suffix: '',
499
495
  decimals: 2,
500
496
  decimalSeparator: '.',
501
- thousandsSeparator: ','
497
+ thousandsSeparator: ',',
502
498
  },
503
499
  ERN: {
504
500
  prefix: 'Nfk',
505
501
  suffix: '',
506
502
  decimals: 2,
507
503
  decimalSeparator: '.',
508
- thousandsSeparator: ','
504
+ thousandsSeparator: ',',
509
505
  },
510
506
  ETB: {
511
507
  prefix: '¤',
512
508
  suffix: '',
513
509
  decimals: 2,
514
510
  decimalSeparator: '.',
515
- thousandsSeparator: ','
511
+ thousandsSeparator: ',',
516
512
  },
517
513
  EUR: {
518
514
  prefix: '€',
519
515
  suffix: '',
520
516
  decimals: 2,
521
517
  decimalSeparator: '.',
522
- thousandsSeparator: ','
518
+ thousandsSeparator: ',',
523
519
  },
524
520
  FJD: {
525
521
  prefix: '$',
526
522
  suffix: '',
527
523
  decimals: 2,
528
524
  decimalSeparator: '.',
529
- thousandsSeparator: ','
525
+ thousandsSeparator: ',',
530
526
  },
531
527
  FKP: {
532
528
  prefix: '£',
533
529
  suffix: '',
534
530
  decimals: 2,
535
531
  decimalSeparator: '.',
536
- thousandsSeparator: ','
532
+ thousandsSeparator: ',',
537
533
  },
538
534
  GBP: {
539
535
  prefix: '£',
540
536
  suffix: '',
541
537
  decimals: 2,
542
538
  decimalSeparator: '.',
543
- thousandsSeparator: ','
539
+ thousandsSeparator: ',',
544
540
  },
545
541
  GEL: {
546
542
  prefix: 'ლ',
547
543
  suffix: '',
548
544
  decimals: 2,
549
545
  decimalSeparator: '.',
550
- thousandsSeparator: ','
546
+ thousandsSeparator: ',',
551
547
  },
552
548
  GHS: {
553
549
  prefix: '¤',
554
550
  suffix: '',
555
551
  decimals: 2,
556
552
  decimalSeparator: '.',
557
- thousandsSeparator: ','
553
+ thousandsSeparator: ',',
558
554
  },
559
555
  GIP: {
560
556
  prefix: '£',
561
557
  suffix: '',
562
558
  decimals: 2,
563
559
  decimalSeparator: '.',
564
- thousandsSeparator: ','
560
+ thousandsSeparator: ',',
565
561
  },
566
562
  GMD: {
567
563
  prefix: 'D',
568
564
  suffix: '',
569
565
  decimals: 2,
570
566
  decimalSeparator: '.',
571
- thousandsSeparator: ','
567
+ thousandsSeparator: ',',
572
568
  },
573
569
  GNF: {
574
570
  prefix: 'Fr',
575
571
  suffix: '',
576
572
  decimals: 0,
577
573
  decimalSeparator: '.',
578
- thousandsSeparator: ','
574
+ thousandsSeparator: ',',
579
575
  },
580
576
  GTQ: {
581
577
  prefix: 'Q',
582
578
  suffix: '',
583
579
  decimals: 2,
584
580
  decimalSeparator: '.',
585
- thousandsSeparator: ','
581
+ thousandsSeparator: ',',
586
582
  },
587
583
  GYD: {
588
584
  prefix: '$',
589
585
  suffix: '',
590
586
  decimals: 2,
591
587
  decimalSeparator: '.',
592
- thousandsSeparator: ','
588
+ thousandsSeparator: ',',
593
589
  },
594
590
  HKD: {
595
591
  prefix: '$',
596
592
  suffix: '',
597
593
  decimals: 2,
598
594
  decimalSeparator: '.',
599
- thousandsSeparator: ','
595
+ thousandsSeparator: ',',
600
596
  },
601
597
  HNL: {
602
598
  prefix: 'L',
603
599
  suffix: '',
604
600
  decimals: 2,
605
601
  decimalSeparator: '.',
606
- thousandsSeparator: ','
602
+ thousandsSeparator: ',',
607
603
  },
608
604
  HRK: {
609
605
  prefix: 'kn',
610
606
  suffix: '',
611
607
  decimals: 2,
612
608
  decimalSeparator: '.',
613
- thousandsSeparator: ','
609
+ thousandsSeparator: ',',
614
610
  },
615
611
  HTG: {
616
612
  prefix: 'G',
617
613
  suffix: '',
618
614
  decimals: 2,
619
615
  decimalSeparator: '.',
620
- thousandsSeparator: ','
616
+ thousandsSeparator: ',',
621
617
  },
622
618
  HUF: {
623
619
  prefix: 'Ft',
624
620
  suffix: '',
625
621
  decimals: 2,
626
622
  decimalSeparator: '.',
627
- thousandsSeparator: ','
623
+ thousandsSeparator: ',',
628
624
  },
629
625
  IDR: {
630
626
  prefix: 'Rs',
631
627
  suffix: '',
632
628
  decimals: 2,
633
629
  decimalSeparator: '.',
634
- thousandsSeparator: ','
630
+ thousandsSeparator: ',',
635
631
  },
636
632
  ILS: {
637
633
  prefix: '₪',
638
634
  suffix: '',
639
635
  decimals: 2,
640
636
  decimalSeparator: '.',
641
- thousandsSeparator: ','
637
+ thousandsSeparator: ',',
642
638
  },
643
639
  INR: {
644
640
  prefix: '₨',
645
641
  suffix: '',
646
642
  decimals: 2,
647
643
  decimalSeparator: '.',
648
- thousandsSeparator: ','
644
+ thousandsSeparator: ',',
649
645
  },
650
646
  IQD: {
651
647
  prefix: '',
652
648
  suffix: 'ع.د',
653
649
  decimals: 3,
654
650
  decimalSeparator: '.',
655
- thousandsSeparator: ','
651
+ thousandsSeparator: ',',
656
652
  },
657
653
  IRR: {
658
654
  prefix: '¤',
659
655
  suffix: '',
660
656
  decimals: 2,
661
657
  decimalSeparator: '.',
662
- thousandsSeparator: ','
658
+ thousandsSeparator: ',',
663
659
  },
664
660
  ISK: {
665
661
  prefix: 'kr',
666
662
  suffix: '',
667
663
  decimals: 0,
668
664
  decimalSeparator: '.',
669
- thousandsSeparator: ','
665
+ thousandsSeparator: ',',
670
666
  },
671
667
  JMD: {
672
668
  prefix: '$',
673
669
  suffix: '',
674
670
  decimals: 2,
675
671
  decimalSeparator: '.',
676
- thousandsSeparator: ','
672
+ thousandsSeparator: ',',
677
673
  },
678
674
  JOD: {
679
675
  prefix: '',
680
676
  suffix: 'د.ا',
681
677
  decimals: 3,
682
678
  decimalSeparator: '.',
683
- thousandsSeparator: ','
679
+ thousandsSeparator: ',',
684
680
  },
685
681
  JPY: {
686
682
  prefix: '¥',
687
683
  suffix: '',
688
684
  decimals: 0,
689
685
  decimalSeparator: '.',
690
- thousandsSeparator: ','
686
+ thousandsSeparator: ',',
691
687
  },
692
688
  KES: {
693
689
  prefix: 'Sh',
694
690
  suffix: '',
695
691
  decimals: 2,
696
692
  decimalSeparator: '.',
697
- thousandsSeparator: ','
693
+ thousandsSeparator: ',',
698
694
  },
699
695
  KGS: {
700
696
  prefix: '¤',
701
697
  suffix: '',
702
698
  decimals: 2,
703
699
  decimalSeparator: '.',
704
- thousandsSeparator: ','
700
+ thousandsSeparator: ',',
705
701
  },
706
702
  KHR: {
707
703
  prefix: '¤',
708
704
  suffix: '',
709
705
  decimals: 2,
710
706
  decimalSeparator: '.',
711
- thousandsSeparator: ','
707
+ thousandsSeparator: ',',
712
708
  },
713
709
  KMF: {
714
710
  prefix: 'Fr',
715
711
  suffix: '',
716
712
  decimals: 0,
717
713
  decimalSeparator: '.',
718
- thousandsSeparator: ','
714
+ thousandsSeparator: ',',
719
715
  },
720
716
  KPW: {
721
717
  prefix: '₩',
722
718
  suffix: '',
723
719
  decimals: 2,
724
720
  decimalSeparator: '.',
725
- thousandsSeparator: ','
721
+ thousandsSeparator: ',',
726
722
  },
727
723
  KRW: {
728
724
  prefix: '₩',
729
725
  suffix: '',
730
726
  decimals: 0,
731
727
  decimalSeparator: '.',
732
- thousandsSeparator: ','
728
+ thousandsSeparator: ',',
733
729
  },
734
730
  KWD: {
735
731
  prefix: 'د.ك',
736
732
  suffix: '',
737
733
  decimals: 3,
738
734
  decimalSeparator: '.',
739
- thousandsSeparator: ','
735
+ thousandsSeparator: ',',
740
736
  },
741
737
  KYD: {
742
738
  prefix: '$',
743
739
  suffix: '',
744
740
  decimals: 2,
745
741
  decimalSeparator: '.',
746
- thousandsSeparator: ','
742
+ thousandsSeparator: ',',
747
743
  },
748
744
  KZT: {
749
745
  prefix: '〒',
750
746
  suffix: '',
751
747
  decimals: 2,
752
748
  decimalSeparator: '.',
753
- thousandsSeparator: ','
749
+ thousandsSeparator: ',',
754
750
  },
755
751
  LAK: {
756
752
  prefix: '₭',
757
753
  suffix: '',
758
754
  decimals: 2,
759
755
  decimalSeparator: '.',
760
- thousandsSeparator: ','
756
+ thousandsSeparator: ',',
761
757
  },
762
758
  LBP: {
763
759
  prefix: '',
764
760
  suffix: 'ل.ل',
765
761
  decimals: 2,
766
762
  decimalSeparator: '.',
767
- thousandsSeparator: ','
763
+ thousandsSeparator: ',',
768
764
  },
769
765
  LKR: {
770
766
  prefix: 'Rs',
771
767
  suffix: '',
772
768
  decimals: 2,
773
769
  decimalSeparator: '.',
774
- thousandsSeparator: ','
770
+ thousandsSeparator: ',',
775
771
  },
776
772
  LRD: {
777
773
  prefix: '$',
778
774
  suffix: '',
779
775
  decimals: 2,
780
776
  decimalSeparator: '.',
781
- thousandsSeparator: ','
777
+ thousandsSeparator: ',',
782
778
  },
783
779
  LSL: {
784
780
  prefix: 'L',
785
781
  suffix: '',
786
782
  decimals: 2,
787
783
  decimalSeparator: '.',
788
- thousandsSeparator: ','
784
+ thousandsSeparator: ',',
789
785
  },
790
786
  LTL: {
791
787
  prefix: 'Lt',
792
788
  suffix: '',
793
789
  decimals: 2,
794
790
  decimalSeparator: '.',
795
- thousandsSeparator: ','
791
+ thousandsSeparator: ',',
796
792
  },
797
793
  LVL: {
798
794
  prefix: 'Ls',
799
795
  suffix: '',
800
796
  decimals: 2,
801
797
  decimalSeparator: '.',
802
- thousandsSeparator: ','
798
+ thousandsSeparator: ',',
803
799
  },
804
800
  LYD: {
805
801
  prefix: '',
806
802
  suffix: 'ل.د',
807
803
  decimals: 3,
808
804
  decimalSeparator: '.',
809
- thousandsSeparator: ','
805
+ thousandsSeparator: ',',
810
806
  },
811
807
  MAD: {
812
808
  prefix: '',
813
809
  suffix: 'د.م.',
814
810
  decimals: 2,
815
811
  decimalSeparator: '.',
816
- thousandsSeparator: ','
812
+ thousandsSeparator: ',',
817
813
  },
818
814
  MDL: {
819
815
  prefix: 'L',
820
816
  suffix: '',
821
817
  decimals: 2,
822
818
  decimalSeparator: '.',
823
- thousandsSeparator: ','
819
+ thousandsSeparator: ',',
824
820
  },
825
821
  MGA: {
826
822
  prefix: '¤',
827
823
  suffix: '',
828
824
  decimals: 1,
829
825
  decimalSeparator: '.',
830
- thousandsSeparator: ','
826
+ thousandsSeparator: ',',
831
827
  },
832
828
  MKD: {
833
829
  prefix: 'ден',
834
830
  suffix: '',
835
831
  decimals: 2,
836
832
  decimalSeparator: '.',
837
- thousandsSeparator: ','
833
+ thousandsSeparator: ',',
838
834
  },
839
835
  MMK: {
840
836
  prefix: 'K',
841
837
  suffix: '',
842
838
  decimals: 2,
843
839
  decimalSeparator: '.',
844
- thousandsSeparator: ','
840
+ thousandsSeparator: ',',
845
841
  },
846
842
  MNT: {
847
843
  prefix: '₮',
848
844
  suffix: '',
849
845
  decimals: 2,
850
846
  decimalSeparator: '.',
851
- thousandsSeparator: ','
847
+ thousandsSeparator: ',',
852
848
  },
853
849
  MOP: {
854
850
  prefix: 'P',
855
851
  suffix: '',
856
852
  decimals: 2,
857
853
  decimalSeparator: '.',
858
- thousandsSeparator: ','
854
+ thousandsSeparator: ',',
859
855
  },
860
856
  MRU: {
861
857
  prefix: 'UM',
862
858
  suffix: '',
863
859
  decimals: 1,
864
860
  decimalSeparator: '.',
865
- thousandsSeparator: ','
861
+ thousandsSeparator: ',',
866
862
  },
867
863
  MUR: {
868
864
  prefix: '₨',
869
865
  suffix: '',
870
866
  decimals: 2,
871
867
  decimalSeparator: '.',
872
- thousandsSeparator: ','
868
+ thousandsSeparator: ',',
873
869
  },
874
870
  MVR: {
875
871
  prefix: '¤',
876
872
  suffix: '',
877
873
  decimals: 2,
878
874
  decimalSeparator: '.',
879
- thousandsSeparator: ','
875
+ thousandsSeparator: ',',
880
876
  },
881
877
  MWK: {
882
878
  prefix: 'MK',
883
879
  suffix: '',
884
880
  decimals: 2,
885
881
  decimalSeparator: '.',
886
- thousandsSeparator: ','
882
+ thousandsSeparator: ',',
887
883
  },
888
884
  MXN: {
889
885
  prefix: '$',
890
886
  suffix: '',
891
887
  decimals: 2,
892
888
  decimalSeparator: '.',
893
- thousandsSeparator: ','
889
+ thousandsSeparator: ',',
894
890
  },
895
891
  MYR: {
896
892
  prefix: 'RM',
897
893
  suffix: '',
898
894
  decimals: 2,
899
895
  decimalSeparator: '.',
900
- thousandsSeparator: ','
896
+ thousandsSeparator: ',',
901
897
  },
902
898
  MZN: {
903
899
  prefix: 'MTn',
904
900
  suffix: '',
905
901
  decimals: 2,
906
902
  decimalSeparator: '.',
907
- thousandsSeparator: ','
903
+ thousandsSeparator: ',',
908
904
  },
909
905
  NAD: {
910
906
  prefix: '$',
911
907
  suffix: '',
912
908
  decimals: 2,
913
909
  decimalSeparator: '.',
914
- thousandsSeparator: ','
910
+ thousandsSeparator: ',',
915
911
  },
916
912
  NGN: {
917
913
  prefix: '₦',
918
914
  suffix: '',
919
915
  decimals: 2,
920
916
  decimalSeparator: '.',
921
- thousandsSeparator: ','
917
+ thousandsSeparator: ',',
922
918
  },
923
919
  NIO: {
924
920
  prefix: 'C$',
925
921
  suffix: '',
926
922
  decimals: 2,
927
923
  decimalSeparator: '.',
928
- thousandsSeparator: ','
924
+ thousandsSeparator: ',',
929
925
  },
930
926
  NOK: {
931
927
  prefix: 'kr',
932
928
  suffix: '',
933
929
  decimals: 2,
934
930
  decimalSeparator: '.',
935
- thousandsSeparator: ','
931
+ thousandsSeparator: ',',
936
932
  },
937
933
  NPR: {
938
934
  prefix: '₨',
939
935
  suffix: '',
940
936
  decimals: 2,
941
937
  decimalSeparator: '.',
942
- thousandsSeparator: ','
938
+ thousandsSeparator: ',',
943
939
  },
944
940
  NZD: {
945
941
  prefix: '$',
946
942
  suffix: '',
947
943
  decimals: 2,
948
944
  decimalSeparator: '.',
949
- thousandsSeparator: ','
945
+ thousandsSeparator: ',',
950
946
  },
951
947
  OMR: {
952
948
  prefix: '',
953
949
  suffix: 'ر.ع.',
954
950
  decimals: 3,
955
951
  decimalSeparator: '.',
956
- thousandsSeparator: ','
952
+ thousandsSeparator: ',',
957
953
  },
958
954
  PAB: {
959
955
  prefix: 'B/.',
960
956
  suffix: '',
961
957
  decimals: 2,
962
958
  decimalSeparator: '.',
963
- thousandsSeparator: ','
959
+ thousandsSeparator: ',',
964
960
  },
965
961
  PEN: {
966
962
  prefix: 'S/.',
967
963
  suffix: '',
968
964
  decimals: 2,
969
965
  decimalSeparator: '.',
970
- thousandsSeparator: ','
966
+ thousandsSeparator: ',',
971
967
  },
972
968
  PGK: {
973
969
  prefix: 'K',
974
970
  suffix: '',
975
971
  decimals: 2,
976
972
  decimalSeparator: '.',
977
- thousandsSeparator: ','
973
+ thousandsSeparator: ',',
978
974
  },
979
975
  PHP: {
980
976
  prefix: 'p',
981
977
  suffix: '',
982
978
  decimals: 2,
983
979
  decimalSeparator: '.',
984
- thousandsSeparator: ','
980
+ thousandsSeparator: ',',
985
981
  },
986
982
  PKR: {
987
983
  prefix: '₨',
988
984
  suffix: '',
989
985
  decimals: 2,
990
986
  decimalSeparator: '.',
991
- thousandsSeparator: ','
987
+ thousandsSeparator: ',',
992
988
  },
993
989
  PLN: {
994
990
  prefix: 'zł',
995
991
  suffix: '',
996
992
  decimals: 2,
997
993
  decimalSeparator: '.',
998
- thousandsSeparator: ','
994
+ thousandsSeparator: ',',
999
995
  },
1000
996
  PYG: {
1001
997
  prefix: '¤',
1002
998
  suffix: '',
1003
999
  decimals: 0,
1004
1000
  decimalSeparator: '.',
1005
- thousandsSeparator: ','
1001
+ thousandsSeparator: ',',
1006
1002
  },
1007
1003
  QAR: {
1008
1004
  prefix: '',
1009
1005
  suffix: 'ر.ق',
1010
1006
  decimals: 2,
1011
1007
  decimalSeparator: '.',
1012
- thousandsSeparator: ','
1008
+ thousandsSeparator: ',',
1013
1009
  },
1014
1010
  RON: {
1015
1011
  prefix: 'L',
1016
1012
  suffix: '',
1017
1013
  decimals: 2,
1018
1014
  decimalSeparator: '.',
1019
- thousandsSeparator: ','
1015
+ thousandsSeparator: ',',
1020
1016
  },
1021
1017
  RSD: {
1022
1018
  prefix: 'дин.',
1023
1019
  suffix: '',
1024
1020
  decimals: 2,
1025
1021
  decimalSeparator: '.',
1026
- thousandsSeparator: ','
1022
+ thousandsSeparator: ',',
1027
1023
  },
1028
1024
  RUB: {
1029
1025
  prefix: 'руб.',
1030
1026
  suffix: '',
1031
1027
  decimals: 2,
1032
1028
  decimalSeparator: '.',
1033
- thousandsSeparator: ','
1029
+ thousandsSeparator: ',',
1034
1030
  },
1035
1031
  RWF: {
1036
1032
  prefix: 'Fr',
1037
1033
  suffix: '',
1038
1034
  decimals: 0,
1039
1035
  decimalSeparator: '.',
1040
- thousandsSeparator: ','
1036
+ thousandsSeparator: ',',
1041
1037
  },
1042
1038
  SAR: {
1043
1039
  prefix: '',
1044
1040
  suffix: 'ر.س',
1045
1041
  decimals: 2,
1046
1042
  decimalSeparator: '.',
1047
- thousandsSeparator: ','
1043
+ thousandsSeparator: ',',
1048
1044
  },
1049
1045
  SBD: {
1050
1046
  prefix: '$',
1051
1047
  suffix: '',
1052
1048
  decimals: 2,
1053
1049
  decimalSeparator: '.',
1054
- thousandsSeparator: ','
1050
+ thousandsSeparator: ',',
1055
1051
  },
1056
1052
  SCR: {
1057
1053
  prefix: '₨',
1058
1054
  suffix: '',
1059
1055
  decimals: 2,
1060
1056
  decimalSeparator: '.',
1061
- thousandsSeparator: ','
1057
+ thousandsSeparator: ',',
1062
1058
  },
1063
1059
  SDG: {
1064
1060
  prefix: '£',
1065
1061
  suffix: '',
1066
1062
  decimals: 2,
1067
1063
  decimalSeparator: '.',
1068
- thousandsSeparator: ','
1064
+ thousandsSeparator: ',',
1069
1065
  },
1070
1066
  SEK: {
1071
1067
  prefix: 'kr',
1072
1068
  suffix: '',
1073
1069
  decimals: 2,
1074
1070
  decimalSeparator: '.',
1075
- thousandsSeparator: ','
1071
+ thousandsSeparator: ',',
1076
1072
  },
1077
1073
  SGD: {
1078
1074
  prefix: '$',
1079
1075
  suffix: '',
1080
1076
  decimals: 2,
1081
1077
  decimalSeparator: '.',
1082
- thousandsSeparator: ','
1078
+ thousandsSeparator: ',',
1083
1079
  },
1084
1080
  SHP: {
1085
1081
  prefix: '£',
1086
1082
  suffix: '',
1087
1083
  decimals: 2,
1088
1084
  decimalSeparator: '.',
1089
- thousandsSeparator: ','
1085
+ thousandsSeparator: ',',
1090
1086
  },
1091
1087
  SKK: {
1092
1088
  prefix: 'Sk',
1093
1089
  suffix: '',
1094
1090
  decimals: 2,
1095
1091
  decimalSeparator: '.',
1096
- thousandsSeparator: ','
1092
+ thousandsSeparator: ',',
1097
1093
  },
1098
1094
  SLL: {
1099
1095
  prefix: 'Le',
1100
1096
  suffix: '',
1101
1097
  decimals: 2,
1102
1098
  decimalSeparator: '.',
1103
- thousandsSeparator: ','
1099
+ thousandsSeparator: ',',
1104
1100
  },
1105
1101
  SOS: {
1106
1102
  prefix: 'Sh',
1107
1103
  suffix: '',
1108
1104
  decimals: 2,
1109
1105
  decimalSeparator: '.',
1110
- thousandsSeparator: ','
1106
+ thousandsSeparator: ',',
1111
1107
  },
1112
1108
  SRD: {
1113
1109
  prefix: '$',
1114
1110
  suffix: '',
1115
1111
  decimals: 2,
1116
1112
  decimalSeparator: '.',
1117
- thousandsSeparator: ','
1113
+ thousandsSeparator: ',',
1118
1114
  },
1119
1115
  STN: {
1120
1116
  prefix: 'Db',
1121
1117
  suffix: '',
1122
1118
  decimals: 2,
1123
1119
  decimalSeparator: '.',
1124
- thousandsSeparator: ','
1120
+ thousandsSeparator: ',',
1125
1121
  },
1126
1122
  SVC: {
1127
1123
  prefix: '₡',
1128
1124
  suffix: '',
1129
1125
  decimals: 2,
1130
1126
  decimalSeparator: '.',
1131
- thousandsSeparator: ','
1127
+ thousandsSeparator: ',',
1132
1128
  },
1133
1129
  SYP: {
1134
1130
  prefix: '£',
1135
1131
  suffix: '',
1136
1132
  decimals: 2,
1137
1133
  decimalSeparator: '.',
1138
- thousandsSeparator: ','
1134
+ thousandsSeparator: ',',
1139
1135
  },
1140
1136
  SZL: {
1141
1137
  prefix: 'L',
1142
1138
  suffix: '',
1143
1139
  decimals: 2,
1144
1140
  decimalSeparator: '.',
1145
- thousandsSeparator: ','
1141
+ thousandsSeparator: ',',
1146
1142
  },
1147
1143
  THB: {
1148
1144
  prefix: '฿',
1149
1145
  suffix: '',
1150
1146
  decimals: 2,
1151
1147
  decimalSeparator: '.',
1152
- thousandsSeparator: ','
1148
+ thousandsSeparator: ',',
1153
1149
  },
1154
1150
  TJS: {
1155
1151
  prefix: 'ЅМ',
1156
1152
  suffix: '',
1157
1153
  decimals: 2,
1158
1154
  decimalSeparator: '.',
1159
- thousandsSeparator: ','
1155
+ thousandsSeparator: ',',
1160
1156
  },
1161
1157
  TMM: {
1162
1158
  prefix: 'm',
1163
1159
  suffix: '',
1164
1160
  decimals: 2,
1165
1161
  decimalSeparator: '.',
1166
- thousandsSeparator: ','
1162
+ thousandsSeparator: ',',
1167
1163
  },
1168
1164
  TND: {
1169
1165
  prefix: '',
1170
1166
  suffix: 'د.ت',
1171
1167
  decimals: 3,
1172
1168
  decimalSeparator: '.',
1173
- thousandsSeparator: ','
1169
+ thousandsSeparator: ',',
1174
1170
  },
1175
1171
  TOP: {
1176
1172
  prefix: 'T$',
1177
1173
  suffix: '',
1178
1174
  decimals: 2,
1179
1175
  decimalSeparator: '.',
1180
- thousandsSeparator: ','
1176
+ thousandsSeparator: ',',
1181
1177
  },
1182
1178
  TRY: {
1183
1179
  prefix: 'YTL',
1184
1180
  suffix: '',
1185
1181
  decimals: 2,
1186
1182
  decimalSeparator: '.',
1187
- thousandsSeparator: ','
1183
+ thousandsSeparator: ',',
1188
1184
  },
1189
1185
  TTD: {
1190
1186
  prefix: '$',
1191
1187
  suffix: '',
1192
1188
  decimals: 2,
1193
1189
  decimalSeparator: '.',
1194
- thousandsSeparator: ','
1190
+ thousandsSeparator: ',',
1195
1191
  },
1196
1192
  TWD: {
1197
1193
  prefix: '$',
1198
1194
  suffix: '',
1199
1195
  decimals: 2,
1200
1196
  decimalSeparator: '.',
1201
- thousandsSeparator: ','
1197
+ thousandsSeparator: ',',
1202
1198
  },
1203
1199
  TZS: {
1204
1200
  prefix: 'Sh',
1205
1201
  suffix: '',
1206
1202
  decimals: 2,
1207
1203
  decimalSeparator: '.',
1208
- thousandsSeparator: ','
1204
+ thousandsSeparator: ',',
1209
1205
  },
1210
1206
  UAH: {
1211
1207
  prefix: '¤',
1212
1208
  suffix: '',
1213
1209
  decimals: 2,
1214
1210
  decimalSeparator: '.',
1215
- thousandsSeparator: ','
1211
+ thousandsSeparator: ',',
1216
1212
  },
1217
1213
  UGX: {
1218
1214
  prefix: 'Sh',
1219
1215
  suffix: '',
1220
1216
  decimals: 0,
1221
1217
  decimalSeparator: '.',
1222
- thousandsSeparator: ','
1218
+ thousandsSeparator: ',',
1223
1219
  },
1224
1220
  USD: {
1225
1221
  prefix: '$',
1226
1222
  suffix: '',
1227
1223
  decimals: 2,
1228
1224
  decimalSeparator: '.',
1229
- thousandsSeparator: ','
1225
+ thousandsSeparator: ',',
1230
1226
  },
1231
1227
  UYU: {
1232
1228
  prefix: '$',
1233
1229
  suffix: '',
1234
1230
  decimals: 0,
1235
1231
  decimalSeparator: '.',
1236
- thousandsSeparator: ','
1232
+ thousandsSeparator: ',',
1237
1233
  },
1238
1234
  UZS: {
1239
1235
  prefix: '¤',
1240
1236
  suffix: '',
1241
1237
  decimals: 2,
1242
1238
  decimalSeparator: '.',
1243
- thousandsSeparator: ','
1239
+ thousandsSeparator: ',',
1244
1240
  },
1245
1241
  VEF: {
1246
1242
  prefix: 'Bs F',
1247
1243
  suffix: '',
1248
1244
  decimals: 2,
1249
1245
  decimalSeparator: '.',
1250
- thousandsSeparator: ','
1246
+ thousandsSeparator: ',',
1251
1247
  },
1252
1248
  VND: {
1253
1249
  prefix: '₫',
1254
1250
  suffix: '',
1255
1251
  decimals: 0,
1256
1252
  decimalSeparator: '.',
1257
- thousandsSeparator: ','
1253
+ thousandsSeparator: ',',
1258
1254
  },
1259
1255
  VUV: {
1260
1256
  prefix: 'Vt',
1261
1257
  suffix: '',
1262
1258
  decimals: 0,
1263
1259
  decimalSeparator: '.',
1264
- thousandsSeparator: ','
1260
+ thousandsSeparator: ',',
1265
1261
  },
1266
1262
  WST: {
1267
1263
  prefix: 'T',
1268
1264
  suffix: '',
1269
1265
  decimals: 2,
1270
1266
  decimalSeparator: '.',
1271
- thousandsSeparator: ','
1267
+ thousandsSeparator: ',',
1272
1268
  },
1273
1269
  XAF: {
1274
1270
  prefix: 'Fr',
1275
1271
  suffix: '',
1276
1272
  decimals: 0,
1277
1273
  decimalSeparator: '.',
1278
- thousandsSeparator: ','
1274
+ thousandsSeparator: ',',
1279
1275
  },
1280
1276
  XCD: {
1281
1277
  prefix: '$',
1282
1278
  suffix: '',
1283
1279
  decimals: 2,
1284
1280
  decimalSeparator: '.',
1285
- thousandsSeparator: ','
1281
+ thousandsSeparator: ',',
1286
1282
  },
1287
1283
  XOF: {
1288
1284
  prefix: 'Fr',
1289
1285
  suffix: '',
1290
1286
  decimals: 0,
1291
1287
  decimalSeparator: '.',
1292
- thousandsSeparator: ','
1288
+ thousandsSeparator: ',',
1293
1289
  },
1294
1290
  XPF: {
1295
1291
  prefix: 'Fr',
1296
1292
  suffix: '',
1297
1293
  decimals: 0,
1298
1294
  decimalSeparator: '.',
1299
- thousandsSeparator: ','
1295
+ thousandsSeparator: ',',
1300
1296
  },
1301
1297
  YER: {
1302
1298
  prefix: '¤',
1303
1299
  suffix: '',
1304
1300
  decimals: 2,
1305
1301
  decimalSeparator: '.',
1306
- thousandsSeparator: ','
1302
+ thousandsSeparator: ',',
1307
1303
  },
1308
1304
  ZAR: {
1309
1305
  prefix: 'R',
1310
1306
  suffix: '',
1311
1307
  decimals: 2,
1312
1308
  decimalSeparator: '.',
1313
- thousandsSeparator: ','
1309
+ thousandsSeparator: ',',
1314
1310
  },
1315
1311
  ZMW: {
1316
1312
  prefix: 'ZK',
1317
1313
  suffix: '',
1318
1314
  decimals: 2,
1319
1315
  decimalSeparator: '.',
1320
- thousandsSeparator: ','
1316
+ thousandsSeparator: ',',
1321
1317
  },
1322
1318
  ZWD: {
1323
1319
  prefix: '$',
1324
1320
  suffix: '',
1325
1321
  decimals: 2,
1326
1322
  decimalSeparator: '.',
1327
- thousandsSeparator: ','
1328
- } // '$9,999.99'
1323
+ thousandsSeparator: ',',
1324
+ }, // '$9,999.99'
1329
1325
  };
1330
1326
  function formatCurrency(value, currencyCode = 'USD', explicit = false) {
1331
1327
  let processedCurrencyCode = currencyCode || '';
@@ -1345,52 +1341,52 @@ function formatCurrency(value, currencyCode = 'USD', explicit = false) {
1345
1341
  const phoneNumberFormats = {
1346
1342
  AF: {
1347
1343
  mask: '(##) #######',
1348
- prefix: '+93 '
1344
+ prefix: '+93 ',
1349
1345
  },
1350
1346
  AL: {
1351
1347
  mask: '#######',
1352
- prefix: '+355 '
1348
+ prefix: '+355 ',
1353
1349
  },
1354
1350
  DZ: {
1355
1351
  mask: '(##) ###-###',
1356
- prefix: '+213 '
1352
+ prefix: '+213 ',
1357
1353
  },
1358
1354
  // AS
1359
1355
  AD: {
1360
1356
  mask: '(#) #####',
1361
- prefix: '+376 '
1357
+ prefix: '+376 ',
1362
1358
  },
1363
1359
  AO: {
1364
1360
  mask: '#########',
1365
- prefix: '+244 '
1361
+ prefix: '+244 ',
1366
1362
  },
1367
1363
  AI: {
1368
1364
  mask: '(###) ###-####',
1369
- prefix: '+1 '
1365
+ prefix: '+1 ',
1370
1366
  },
1371
1367
  AG: {
1372
1368
  mask: '(###) ###-####',
1373
- prefix: '+1 '
1369
+ prefix: '+1 ',
1374
1370
  },
1375
1371
  AR: {
1376
1372
  mask: '##########',
1377
- prefix: '+54 '
1373
+ prefix: '+54 ',
1378
1374
  },
1379
1375
  AM: {
1380
1376
  mask: '########',
1381
- prefix: '+375 '
1377
+ prefix: '+375 ',
1382
1378
  },
1383
1379
  AQ: {
1384
1380
  mask: '##-####',
1385
- prefix: '+672 '
1381
+ prefix: '+672 ',
1386
1382
  },
1387
1383
  AW: {
1388
1384
  mask: '###-####',
1389
- prefix: '+297 '
1385
+ prefix: '+297 ',
1390
1386
  },
1391
1387
  AU: {
1392
1388
  mask: '(##) ####-####',
1393
- prefix: '+61 '
1389
+ prefix: '+61 ',
1394
1390
  },
1395
1391
  /* AT: {
1396
1392
  mask:'####?????????',
@@ -1398,7 +1394,7 @@ const phoneNumberFormats = {
1398
1394
  }, */
1399
1395
  AT: {
1400
1396
  mask: '#############',
1401
- prefix: '+43 '
1397
+ prefix: '+43 ',
1402
1398
  },
1403
1399
  /* AZ: {
1404
1400
  mask:'########?',
@@ -1406,15 +1402,15 @@ const phoneNumberFormats = {
1406
1402
  }, */
1407
1403
  AZ: {
1408
1404
  mask: '#########',
1409
- prefix: '+994 '
1405
+ prefix: '+994 ',
1410
1406
  },
1411
1407
  BS: {
1412
1408
  mask: '(###) ###-####',
1413
- prefix: '+1 '
1409
+ prefix: '+1 ',
1414
1410
  },
1415
1411
  BH: {
1416
1412
  mask: '####-####',
1417
- prefix: '+973 '
1413
+ prefix: '+973 ',
1418
1414
  },
1419
1415
  /* BD: {
1420
1416
  mask:'#######??',
@@ -1422,43 +1418,43 @@ const phoneNumberFormats = {
1422
1418
  }, */
1423
1419
  BD: {
1424
1420
  mask: '#########',
1425
- prefix: '+880 '
1421
+ prefix: '+880 ',
1426
1422
  },
1427
1423
  BB: {
1428
1424
  mask: '(###) ###-####',
1429
- prefix: '+1 '
1425
+ prefix: '+1 ',
1430
1426
  },
1431
1427
  BY: {
1432
1428
  mask: '#########',
1433
- prefix: '+375 '
1429
+ prefix: '+375 ',
1434
1430
  },
1435
1431
  BE: {
1436
1432
  mask: '########??',
1437
- prefix: '+32 '
1433
+ prefix: '+32 ',
1438
1434
  },
1439
1435
  BZ: {
1440
1436
  mask: '#######',
1441
- prefix: '+501 '
1437
+ prefix: '+501 ',
1442
1438
  },
1443
1439
  BJ: {
1444
1440
  mask: '(##) ###-###',
1445
- prefix: '+229 '
1441
+ prefix: '+229 ',
1446
1442
  },
1447
1443
  BM: {
1448
1444
  mask: '(###) ###-####',
1449
- prefix: '+1 '
1445
+ prefix: '+1 ',
1450
1446
  },
1451
1447
  BT: {
1452
1448
  mask: '(#) ###-###',
1453
- prefix: '+975 '
1449
+ prefix: '+975 ',
1454
1450
  },
1455
1451
  BO: {
1456
1452
  mask: '(#) ###-####',
1457
- prefix: '+591 '
1453
+ prefix: '+591 ',
1458
1454
  },
1459
1455
  BA: {
1460
1456
  mask: '(##) ##-##-##',
1461
- prefix: '+387 '
1457
+ prefix: '+387 ',
1462
1458
  },
1463
1459
  /* BW: {
1464
1460
  mask:'#######?',
@@ -1466,55 +1462,55 @@ const phoneNumberFormats = {
1466
1462
  }, */
1467
1463
  BW: {
1468
1464
  mask: '########',
1469
- prefix: '+267 '
1465
+ prefix: '+267 ',
1470
1466
  },
1471
1467
  BR: {
1472
1468
  mask: '(##) ####-####',
1473
- prefix: '+55 '
1469
+ prefix: '+55 ',
1474
1470
  },
1475
1471
  BN: {
1476
1472
  mask: '###-####',
1477
- prefix: '+673 '
1473
+ prefix: '+673 ',
1478
1474
  },
1479
1475
  BG: {
1480
1476
  mask: '#######?',
1481
- prefix: '+359 '
1477
+ prefix: '+359 ',
1482
1478
  },
1483
1479
  BF: {
1484
1480
  mask: '##-##-##-##',
1485
- prefix: '+226 '
1481
+ prefix: '+226 ',
1486
1482
  },
1487
1483
  BI: {
1488
1484
  mask: '####-####',
1489
- prefix: '+257 '
1485
+ prefix: '+257 ',
1490
1486
  },
1491
1487
  KH: {
1492
1488
  mask: '(##) ######',
1493
- prefix: '+855 '
1489
+ prefix: '+855 ',
1494
1490
  },
1495
1491
  CM: {
1496
1492
  mask: '####-####',
1497
- prefix: '+237 '
1493
+ prefix: '+237 ',
1498
1494
  },
1499
1495
  CA: {
1500
1496
  mask: '(###) ###-####',
1501
- prefix: '+1 '
1497
+ prefix: '+1 ',
1502
1498
  },
1503
1499
  CV: {
1504
1500
  mask: '###-####',
1505
- prefix: '+238 '
1501
+ prefix: '+238 ',
1506
1502
  },
1507
1503
  KY: {
1508
1504
  mask: '(###) ###-####',
1509
- prefix: '+1 '
1505
+ prefix: '+1 ',
1510
1506
  },
1511
1507
  CF: {
1512
1508
  mask: '###-###',
1513
- prefix: '+236 '
1509
+ prefix: '+236 ',
1514
1510
  },
1515
1511
  TD: {
1516
1512
  mask: '###-##-##',
1517
- prefix: '+235 '
1513
+ prefix: '+235 ',
1518
1514
  },
1519
1515
  /* CL: {
1520
1516
  mask:'########?',
@@ -1522,7 +1518,7 @@ const phoneNumberFormats = {
1522
1518
  }, */
1523
1519
  CL: {
1524
1520
  mask: '#########',
1525
- prefix: '+56 '
1521
+ prefix: '+56 ',
1526
1522
  },
1527
1523
  /* CN: {
1528
1524
  mask:'########???',
@@ -1530,7 +1526,7 @@ const phoneNumberFormats = {
1530
1526
  }, */
1531
1527
  CN: {
1532
1528
  mask: '###########',
1533
- prefix: '+86 '
1529
+ prefix: '+86 ',
1534
1530
  },
1535
1531
  /* CO: {
1536
1532
  mask:'########??',
@@ -1538,32 +1534,32 @@ const phoneNumberFormats = {
1538
1534
  }, */
1539
1535
  CO: {
1540
1536
  mask: '##########',
1541
- prefix: '57 '
1537
+ prefix: '57 ',
1542
1538
  },
1543
1539
  KM: {
1544
1540
  mask: '###-####',
1545
- prefix: '+269 '
1541
+ prefix: '+269 ',
1546
1542
  },
1547
1543
  CD: {
1548
1544
  mask: '###-####',
1549
- prefix: '+243 '
1545
+ prefix: '+243 ',
1550
1546
  },
1551
1547
  CG: {
1552
1548
  mask: '###-####',
1553
- prefix: '+242 '
1549
+ prefix: '+242 ',
1554
1550
  },
1555
1551
  // CK
1556
1552
  CR: {
1557
1553
  mask: '####-####',
1558
- prefix: '+506 '
1554
+ prefix: '+506 ',
1559
1555
  },
1560
1556
  CI: {
1561
1557
  mask: '####-####',
1562
- prefix: '+225 '
1558
+ prefix: '+225 ',
1563
1559
  },
1564
1560
  HR: {
1565
1561
  mask: '########?',
1566
- prefix: '+385 '
1562
+ prefix: '+385 ',
1567
1563
  },
1568
1564
  /* CU: {
1569
1565
  mask:'#####?ID:?????',
@@ -1571,39 +1567,39 @@ const phoneNumberFormats = {
1571
1567
  }, */
1572
1568
  CU: {
1573
1569
  mask: '###########',
1574
- prefix: '+53 '
1570
+ prefix: '+53 ',
1575
1571
  },
1576
1572
  CY: {
1577
1573
  mask: '####-####',
1578
- prefix: '+357 '
1574
+ prefix: '+357 ',
1579
1575
  },
1580
1576
  CZ: {
1581
1577
  mask: '#########',
1582
- prefix: '+420 '
1578
+ prefix: '+420 ',
1583
1579
  },
1584
1580
  DK: {
1585
1581
  mask: '####-####',
1586
- prefix: '+45 '
1582
+ prefix: '+45 ',
1587
1583
  },
1588
1584
  DJ: {
1589
1585
  mask: '##-##-##-##',
1590
- prefix: '+253 '
1586
+ prefix: '+253 ',
1591
1587
  },
1592
1588
  DM: {
1593
1589
  mask: '(###) ###-####',
1594
- prefix: '+1 '
1590
+ prefix: '+1 ',
1595
1591
  },
1596
1592
  DO: {
1597
1593
  mask: '(###) ###-####',
1598
- prefix: '+1 '
1594
+ prefix: '+1 ',
1599
1595
  },
1600
1596
  TL: {
1601
1597
  mask: '###-####',
1602
- prefix: '+670 '
1598
+ prefix: '+670 ',
1603
1599
  },
1604
1600
  EC: {
1605
1601
  mask: '(##) ###-####',
1606
- prefix: '+593 '
1602
+ prefix: '+593 ',
1607
1603
  },
1608
1604
  /* EG: {
1609
1605
  mask:'########??',
@@ -1611,36 +1607,36 @@ const phoneNumberFormats = {
1611
1607
  }, */
1612
1608
  EG: {
1613
1609
  mask: '##########',
1614
- prefix: '+20 '
1610
+ prefix: '+20 ',
1615
1611
  },
1616
1612
  SV: {
1617
1613
  mask: '####-####',
1618
- prefix: '+503 '
1614
+ prefix: '+503 ',
1619
1615
  },
1620
1616
  GQ: {
1621
1617
  mask: '##-####',
1622
- prefix: '+240 '
1618
+ prefix: '+240 ',
1623
1619
  },
1624
- //ER:
1620
+ // ER:
1625
1621
  EE: {
1626
1622
  mask: '#######?',
1627
- prefix: '+372 '
1623
+ prefix: '+372 ',
1628
1624
  },
1629
1625
  ET: {
1630
1626
  mask: '(##) ###-####',
1631
- prefix: '+251 '
1627
+ prefix: '+251 ',
1632
1628
  },
1633
1629
  FK: {
1634
1630
  mask: '#####',
1635
- prefix: '+500 '
1631
+ prefix: '+500 ',
1636
1632
  },
1637
1633
  FO: {
1638
1634
  mask: '######',
1639
- prefix: '+298 '
1635
+ prefix: '+298 ',
1640
1636
  },
1641
1637
  FJ: {
1642
1638
  mask: '###-####',
1643
- prefix: '+679 '
1639
+ prefix: '+679 ',
1644
1640
  },
1645
1641
  /* FI: {
1646
1642
  mask:'#####???????',
@@ -1648,11 +1644,11 @@ const phoneNumberFormats = {
1648
1644
  }, */
1649
1645
  FI: {
1650
1646
  mask: '############',
1651
- prefix: '+358 '
1647
+ prefix: '+358 ',
1652
1648
  },
1653
1649
  FR: {
1654
1650
  mask: '#########',
1655
- prefix: '+33 '
1651
+ prefix: '+33 ',
1656
1652
  },
1657
1653
  /* GF: {
1658
1654
  mask:'#########?',
@@ -1660,23 +1656,23 @@ const phoneNumberFormats = {
1660
1656
  }, */
1661
1657
  GF: {
1662
1658
  mask: '##########',
1663
- prefix: '+594 '
1659
+ prefix: '+594 ',
1664
1660
  },
1665
1661
  PF: {
1666
1662
  mask: '######',
1667
- prefix: '+689 '
1663
+ prefix: '+689 ',
1668
1664
  },
1669
1665
  GA: {
1670
1666
  mask: '######?',
1671
- prefix: '+241 '
1667
+ prefix: '+241 ',
1672
1668
  },
1673
1669
  GM: {
1674
1670
  mask: '###-####',
1675
- prefix: '+220 '
1671
+ prefix: '+220 ',
1676
1672
  },
1677
1673
  GE: {
1678
1674
  mask: '########',
1679
- prefix: '+995 '
1675
+ prefix: '+995 ',
1680
1676
  },
1681
1677
  /* DE: {
1682
1678
  mask:'######?????',
@@ -1684,7 +1680,7 @@ const phoneNumberFormats = {
1684
1680
  }, */
1685
1681
  DE: {
1686
1682
  mask: '###########',
1687
- prefix: '+49 '
1683
+ prefix: '+49 ',
1688
1684
  },
1689
1685
  /* GH: {
1690
1686
  mask:'########?',
@@ -1692,63 +1688,63 @@ const phoneNumberFormats = {
1692
1688
  }, */
1693
1689
  GH: {
1694
1690
  mask: '#########',
1695
- prefix: '+233 '
1691
+ prefix: '+233 ',
1696
1692
  },
1697
1693
  GI: {
1698
1694
  mask: '####-####',
1699
- prefix: '+350 '
1695
+ prefix: '+350 ',
1700
1696
  },
1701
1697
  GR: {
1702
1698
  mask: '##########',
1703
- prefix: '+30 '
1699
+ prefix: '+30 ',
1704
1700
  },
1705
1701
  GL: {
1706
1702
  mask: '###-###',
1707
- prefix: '+299 '
1703
+ prefix: '+299 ',
1708
1704
  },
1709
1705
  GD: {
1710
1706
  mask: '(###) ###-####',
1711
- prefix: '+1 '
1707
+ prefix: '+1 ',
1712
1708
  },
1713
1709
  GP: {
1714
1710
  mask: '##########',
1715
- prefix: '+590 '
1711
+ prefix: '+590 ',
1716
1712
  },
1717
1713
  GU: {
1718
1714
  mask: '(###) ###-####',
1719
- prefix: '+1 '
1715
+ prefix: '+1 ',
1720
1716
  },
1721
1717
  GT: {
1722
1718
  mask: '####-####',
1723
- prefix: '+502 '
1719
+ prefix: '+502 ',
1724
1720
  },
1725
1721
  GN: {
1726
1722
  mask: '####-####',
1727
- prefix: '+224 '
1723
+ prefix: '+224 ',
1728
1724
  },
1729
1725
  GW: {
1730
1726
  mask: '###-####',
1731
- prefix: '+245 '
1727
+ prefix: '+245 ',
1732
1728
  },
1733
1729
  GY: {
1734
1730
  mask: '(###) ####',
1735
- prefix: '+592 '
1731
+ prefix: '+592 ',
1736
1732
  },
1737
1733
  HK: {
1738
1734
  mask: '####-####',
1739
- prefix: '+852 '
1735
+ prefix: '+852 ',
1740
1736
  },
1741
1737
  HN: {
1742
1738
  mask: '########',
1743
- prefix: '+504 '
1739
+ prefix: '+504 ',
1744
1740
  },
1745
1741
  HT: {
1746
1742
  mask: '####-####',
1747
- prefix: '+509 '
1743
+ prefix: '+509 ',
1748
1744
  },
1749
1745
  HU: {
1750
1746
  mask: '########??',
1751
- prefix: '+36 '
1747
+ prefix: '+36 ',
1752
1748
  },
1753
1749
  /* IS: {
1754
1750
  mask:'#######??',
@@ -1756,11 +1752,11 @@ const phoneNumberFormats = {
1756
1752
  }, */
1757
1753
  IS: {
1758
1754
  mask: '#########',
1759
- prefix: '+354 '
1755
+ prefix: '+354 ',
1760
1756
  },
1761
1757
  IN: {
1762
1758
  mask: '##########',
1763
- prefix: '+91 '
1759
+ prefix: '+91 ',
1764
1760
  },
1765
1761
  /* ID: {
1766
1762
  mask:'#######???',
@@ -1768,11 +1764,11 @@ const phoneNumberFormats = {
1768
1764
  }, */
1769
1765
  ID: {
1770
1766
  mask: '##########',
1771
- prefix: '+62 '
1767
+ prefix: '+62 ',
1772
1768
  },
1773
1769
  IR: {
1774
1770
  mask: '##########',
1775
- prefix: '+98 '
1771
+ prefix: '+98 ',
1776
1772
  },
1777
1773
  /* IQ: {
1778
1774
  mask:'########??',
@@ -1780,7 +1776,7 @@ const phoneNumberFormats = {
1780
1776
  }, */
1781
1777
  IQ: {
1782
1778
  mask: '##########',
1783
- prefix: '+964 '
1779
+ prefix: '+964 ',
1784
1780
  },
1785
1781
  /* IE: {
1786
1782
  mask:'#######??',
@@ -1788,7 +1784,7 @@ const phoneNumberFormats = {
1788
1784
  }, */
1789
1785
  IE: {
1790
1786
  mask: '#########',
1791
- prefix: '+353 '
1787
+ prefix: '+353 ',
1792
1788
  },
1793
1789
  /* IL: {
1794
1790
  mask:'########?',
@@ -1796,7 +1792,7 @@ const phoneNumberFormats = {
1796
1792
  }, */
1797
1793
  IL: {
1798
1794
  mask: '#########',
1799
- prefix: '+972 '
1795
+ prefix: '+972 ',
1800
1796
  },
1801
1797
  /* IT: {
1802
1798
  mask:'######????',
@@ -1804,15 +1800,15 @@ const phoneNumberFormats = {
1804
1800
  }, */
1805
1801
  IT: {
1806
1802
  mask: '##########',
1807
- prefix: '+39 '
1803
+ prefix: '+39 ',
1808
1804
  },
1809
1805
  JM: {
1810
1806
  mask: '(###) ###-####',
1811
- prefix: '+1 '
1807
+ prefix: '+1 ',
1812
1808
  },
1813
1809
  JP: {
1814
1810
  mask: '#########',
1815
- prefix: '+81 '
1811
+ prefix: '+81 ',
1816
1812
  },
1817
1813
  /* JO: {
1818
1814
  mask:'#######??',
@@ -1820,11 +1816,11 @@ const phoneNumberFormats = {
1820
1816
  }, */
1821
1817
  JO: {
1822
1818
  mask: '#########',
1823
- prefix: '+962 '
1819
+ prefix: '+962 ',
1824
1820
  },
1825
1821
  KZ: {
1826
1822
  mask: '(###) ####-###',
1827
- prefix: '+7 '
1823
+ prefix: '+7 ',
1828
1824
  },
1829
1825
  /* KE: {
1830
1826
  mask:'######????',
@@ -1832,44 +1828,44 @@ const phoneNumberFormats = {
1832
1828
  }, */
1833
1829
  KE: {
1834
1830
  mask: '##########',
1835
- prefix: '+254 '
1831
+ prefix: '+254 ',
1836
1832
  },
1837
1833
  KI: {
1838
1834
  mask: '##-###',
1839
- prefix: '+686 '
1835
+ prefix: '+686 ',
1840
1836
  },
1841
- //kp
1837
+ // kp
1842
1838
  /* KR: {
1843
1839
  mask:'####??????',
1844
1840
  prefix: ''
1845
1841
  }, */
1846
1842
  KR: {
1847
1843
  mask: '##########',
1848
- prefix: '+82 '
1844
+ prefix: '+82 ',
1849
1845
  },
1850
1846
  KW: {
1851
1847
  mask: '####-####',
1852
- prefix: '+965 '
1848
+ prefix: '+965 ',
1853
1849
  },
1854
1850
  KG: {
1855
1851
  mask: '#########',
1856
- prefix: '+996 '
1852
+ prefix: '+996 ',
1857
1853
  },
1858
1854
  LA: {
1859
1855
  mask: '########?',
1860
- prefix: '+856 '
1856
+ prefix: '+856 ',
1861
1857
  },
1862
1858
  LV: {
1863
1859
  mask: '####-####',
1864
- prefix: '+371 '
1860
+ prefix: '+371 ',
1865
1861
  },
1866
1862
  LB: {
1867
1863
  mask: '#######?',
1868
- prefix: '+961 '
1864
+ prefix: '+961 ',
1869
1865
  },
1870
1866
  LS: {
1871
1867
  mask: '##-###-###',
1872
- prefix: '+266 '
1868
+ prefix: '+266 ',
1873
1869
  },
1874
1870
  // LR
1875
1871
  /* LY: {
@@ -1878,15 +1874,15 @@ const phoneNumberFormats = {
1878
1874
  }, */
1879
1875
  LY: {
1880
1876
  mask: '########?',
1881
- prefix: '+218 '
1877
+ prefix: '+218 ',
1882
1878
  },
1883
1879
  LI: {
1884
1880
  mask: '###-####',
1885
- prefix: '+423 '
1881
+ prefix: '+423 ',
1886
1882
  },
1887
1883
  LT: {
1888
1884
  mask: '########',
1889
- prefix: '+370 '
1885
+ prefix: '+370 ',
1890
1886
  },
1891
1887
  /* LU: {
1892
1888
  mask:'#####??????',
@@ -1894,19 +1890,19 @@ const phoneNumberFormats = {
1894
1890
  }, */
1895
1891
  LU: {
1896
1892
  mask: '###########',
1897
- prefix: '+352 '
1893
+ prefix: '+352 ',
1898
1894
  },
1899
1895
  MO: {
1900
1896
  mask: '####-####',
1901
- prefix: '+853 '
1897
+ prefix: '+853 ',
1902
1898
  },
1903
1899
  MK: {
1904
1900
  mask: '########',
1905
- prefix: '+389 '
1901
+ prefix: '+389 ',
1906
1902
  },
1907
1903
  MG: {
1908
1904
  mask: '##-##-###-##',
1909
- prefix: '+261 '
1905
+ prefix: '+261 ',
1910
1906
  },
1911
1907
  /* MW: {
1912
1908
  mask:'#######??',
@@ -1914,7 +1910,7 @@ const phoneNumberFormats = {
1914
1910
  }, */
1915
1911
  MW: {
1916
1912
  mask: '#########',
1917
- prefix: '+265 '
1913
+ prefix: '+265 ',
1918
1914
  },
1919
1915
  /* MY: {
1920
1916
  mask:'#######???',
@@ -1922,46 +1918,46 @@ const phoneNumberFormats = {
1922
1918
  }, */
1923
1919
  MY: {
1924
1920
  mask: '##########',
1925
- prefix: '+60 '
1921
+ prefix: '+60 ',
1926
1922
  },
1927
1923
  MV: {
1928
1924
  mask: '###-####',
1929
- prefix: '+960 '
1925
+ prefix: '+960 ',
1930
1926
  },
1931
1927
  ML: {
1932
1928
  mask: '####-####',
1933
- prefix: '+223 '
1929
+ prefix: '+223 ',
1934
1930
  },
1935
1931
  MT: {
1936
1932
  mask: '##-##-##-##',
1937
- prefix: '+356 '
1933
+ prefix: '+356 ',
1938
1934
  },
1939
1935
  MH: {
1940
1936
  mask: '###-####',
1941
- prefix: '+692 '
1937
+ prefix: '+692 ',
1942
1938
  },
1943
1939
  MQ: {
1944
1940
  mask: '###-######',
1945
- prefix: '+596 '
1941
+ prefix: '+596 ',
1946
1942
  },
1947
1943
  // MR
1948
1944
  MU: {
1949
1945
  mask: '###-####',
1950
- prefix: '+230 '
1946
+ prefix: '+230 ',
1951
1947
  },
1952
1948
  // YT
1953
1949
  MX: {
1954
1950
  mask: '(###) ###-####',
1955
- prefix: '+52 '
1951
+ prefix: '+52 ',
1956
1952
  },
1957
1953
  // FM
1958
1954
  MD: {
1959
1955
  mask: '########',
1960
- prefix: '+373 '
1956
+ prefix: '+373 ',
1961
1957
  },
1962
1958
  MC: {
1963
1959
  mask: '####-####',
1964
- prefix: '+377 '
1960
+ prefix: '+377 ',
1965
1961
  },
1966
1962
  /* MN: {
1967
1963
  mask:'######?????',
@@ -1969,15 +1965,15 @@ const phoneNumberFormats = {
1969
1965
  }, */
1970
1966
  MN: {
1971
1967
  mask: '###########',
1972
- prefix: '+976 '
1968
+ prefix: '+976 ',
1973
1969
  },
1974
1970
  MS: {
1975
1971
  mask: '(###) ###-####',
1976
- prefix: '+1 '
1972
+ prefix: '+1 ',
1977
1973
  },
1978
1974
  MA: {
1979
1975
  mask: '##-###-####',
1980
- prefix: '+212 '
1976
+ prefix: '+212 ',
1981
1977
  },
1982
1978
  /* MZ: {
1983
1979
  mask:'########?',
@@ -1985,7 +1981,7 @@ const phoneNumberFormats = {
1985
1981
  }, */
1986
1982
  MZ: {
1987
1983
  mask: '#########',
1988
- prefix: '+258 '
1984
+ prefix: '+258 ',
1989
1985
  },
1990
1986
  /* MM: {
1991
1987
  mask:'#######?',
@@ -1993,7 +1989,7 @@ const phoneNumberFormats = {
1993
1989
  }, */
1994
1990
  MM: {
1995
1991
  mask: '########',
1996
- prefix: '+95 '
1992
+ prefix: '+95 ',
1997
1993
  },
1998
1994
  /* NA: {
1999
1995
  mask:'######????',
@@ -2001,7 +1997,7 @@ const phoneNumberFormats = {
2001
1997
  }, */
2002
1998
  NA: {
2003
1999
  mask: '##########',
2004
- prefix: '+264 '
2000
+ prefix: '+264 ',
2005
2001
  },
2006
2002
  // NR
2007
2003
  /* NP: {
@@ -2010,11 +2006,11 @@ const phoneNumberFormats = {
2010
2006
  }, */
2011
2007
  NP: {
2012
2008
  mask: '##########',
2013
- prefix: '+977 '
2009
+ prefix: '+977 ',
2014
2010
  },
2015
2011
  NL: {
2016
2012
  mask: '#########',
2017
- prefix: '+31 '
2013
+ prefix: '+31 ',
2018
2014
  },
2019
2015
  /* AN: {
2020
2016
  mask:'#######?',
@@ -2022,11 +2018,11 @@ const phoneNumberFormats = {
2022
2018
  }, */
2023
2019
  AN: {
2024
2020
  mask: '########',
2025
- prefix: '+599 '
2021
+ prefix: '+599 ',
2026
2022
  },
2027
2023
  NC: {
2028
2024
  mask: '###-###',
2029
- prefix: '+687 '
2025
+ prefix: '+687 ',
2030
2026
  },
2031
2027
  /* NZ: {
2032
2028
  mask:'########??',
@@ -2034,15 +2030,15 @@ const phoneNumberFormats = {
2034
2030
  }, */
2035
2031
  NZ: {
2036
2032
  mask: '##########',
2037
- prefix: '+64 '
2033
+ prefix: '+64 ',
2038
2034
  },
2039
2035
  NI: {
2040
2036
  mask: '####-####',
2041
- prefix: '+505 '
2037
+ prefix: '+505 ',
2042
2038
  },
2043
2039
  NE: {
2044
2040
  mask: '##-###-###',
2045
- prefix: '+227 '
2041
+ prefix: '+227 ',
2046
2042
  },
2047
2043
  /* NG: {
2048
2044
  mask:'########??',
@@ -2050,20 +2046,20 @@ const phoneNumberFormats = {
2050
2046
  }, */
2051
2047
  NG: {
2052
2048
  mask: '##########',
2053
- prefix: '+234 '
2049
+ prefix: '+234 ',
2054
2050
  },
2055
2051
  // NU
2056
2052
  MP: {
2057
2053
  mask: '(###) ###-####',
2058
- prefix: '+1 '
2054
+ prefix: '+1 ',
2059
2055
  },
2060
2056
  NO: {
2061
2057
  mask: '####-####',
2062
- prefix: '+47 '
2058
+ prefix: '+47 ',
2063
2059
  },
2064
2060
  OM: {
2065
2061
  mask: '####-####',
2066
- prefix: '+968 '
2062
+ prefix: '+968 ',
2067
2063
  },
2068
2064
  /* PK: {
2069
2065
  mask:'#########?',
@@ -2071,11 +2067,11 @@ const phoneNumberFormats = {
2071
2067
  }, */
2072
2068
  PK: {
2073
2069
  mask: '##########',
2074
- prefix: '+92 '
2070
+ prefix: '+92 ',
2075
2071
  },
2076
2072
  PW: {
2077
2073
  mask: '###-####',
2078
- prefix: '+680 '
2074
+ prefix: '+680 ',
2079
2075
  },
2080
2076
  /* PA: {
2081
2077
  mask:'#######?',
@@ -2083,7 +2079,7 @@ const phoneNumberFormats = {
2083
2079
  }, */
2084
2080
  PA: {
2085
2081
  mask: '########',
2086
- prefix: '+507 '
2082
+ prefix: '+507 ',
2087
2083
  },
2088
2084
  /* PG: {
2089
2085
  mask:'#######?',
@@ -2091,7 +2087,7 @@ const phoneNumberFormats = {
2091
2087
  }, */
2092
2088
  PG: {
2093
2089
  mask: '########',
2094
- prefix: '+675 '
2090
+ prefix: '+675 ',
2095
2091
  },
2096
2092
  // PY
2097
2093
  /* PE: {
@@ -2100,7 +2096,7 @@ const phoneNumberFormats = {
2100
2096
  }, */
2101
2097
  PE: {
2102
2098
  mask: '###########',
2103
- prefix: '+51 '
2099
+ prefix: '+51 ',
2104
2100
  },
2105
2101
  /* PH: {
2106
2102
  mask:'########??',
@@ -2108,62 +2104,62 @@ const phoneNumberFormats = {
2108
2104
  }, */
2109
2105
  PH: {
2110
2106
  mask: '##########',
2111
- prefix: '+63 '
2107
+ prefix: '+63 ',
2112
2108
  },
2113
2109
  PL: {
2114
2110
  mask: '#########',
2115
- prefix: '+48 '
2111
+ prefix: '+48 ',
2116
2112
  },
2117
2113
  PT: {
2118
2114
  mask: '#-####-####',
2119
- prefix: '+351 '
2115
+ prefix: '+351 ',
2120
2116
  },
2121
2117
  PR: {
2122
2118
  mask: '(###) ###-####',
2123
- prefix: '+1 '
2119
+ prefix: '+1 ',
2124
2120
  },
2125
2121
  QA: {
2126
2122
  mask: '###-####',
2127
- prefix: '+974 '
2123
+ prefix: '+974 ',
2128
2124
  },
2129
2125
  RE: {
2130
2126
  mask: '###-###-###',
2131
- prefix: '+262 '
2127
+ prefix: '+262 ',
2132
2128
  },
2133
2129
  RO: {
2134
2130
  mask: '#########',
2135
- prefix: '+40 '
2131
+ prefix: '+40 ',
2136
2132
  },
2137
2133
  RU: {
2138
2134
  mask: '##########',
2139
- prefix: '+7 '
2135
+ prefix: '+7 ',
2140
2136
  },
2141
2137
  RW: {
2142
2138
  mask: '###-###-###',
2143
- prefix: '+250 '
2139
+ prefix: '+250 ',
2144
2140
  },
2145
2141
  SH: {
2146
2142
  mask: '#-###',
2147
- prefix: '+290 '
2143
+ prefix: '+290 ',
2148
2144
  },
2149
2145
  // PM
2150
2146
  KN: {
2151
2147
  mask: '(###) ###-####',
2152
- prefix: '+1 '
2148
+ prefix: '+1 ',
2153
2149
  },
2154
2150
  LC: {
2155
2151
  mask: '(###) ###-####',
2156
- prefix: '+1 '
2152
+ prefix: '+1 ',
2157
2153
  },
2158
2154
  VC: {
2159
2155
  mask: '(###) ###-####',
2160
- prefix: '+1 '
2156
+ prefix: '+1 ',
2161
2157
  },
2162
2158
  // WS
2163
2159
  // SM
2164
2160
  ST: {
2165
2161
  mask: '##-####',
2166
- prefix: '+239 '
2162
+ prefix: '+239 ',
2167
2163
  },
2168
2164
  /* SA: {
2169
2165
  mask:'########?',
@@ -2171,60 +2167,60 @@ const phoneNumberFormats = {
2171
2167
  }, */
2172
2168
  SA: {
2173
2169
  mask: '#########',
2174
- prefix: '+966 '
2170
+ prefix: '+966 ',
2175
2171
  },
2176
2172
  SN: {
2177
2173
  mask: '##-###-####',
2178
- prefix: '+221 '
2174
+ prefix: '+221 ',
2179
2175
  },
2180
2176
  SC: {
2181
2177
  mask: '###-###',
2182
- prefix: '+248 '
2178
+ prefix: '+248 ',
2183
2179
  },
2184
2180
  SL: {
2185
2181
  mask: '(##) ###-###',
2186
- prefix: '+232 '
2182
+ prefix: '+232 ',
2187
2183
  },
2188
2184
  SG: {
2189
2185
  mask: '####-####',
2190
- prefix: '+65 '
2186
+ prefix: '+65 ',
2191
2187
  },
2192
2188
  SK: {
2193
2189
  mask: '#########',
2194
- prefix: '+421 '
2190
+ prefix: '+421 ',
2195
2191
  },
2196
2192
  SI: {
2197
2193
  mask: '########',
2198
- prefix: '+386 '
2194
+ prefix: '+386 ',
2199
2195
  },
2200
2196
  SB: {
2201
2197
  mask: '##-###',
2202
- prefix: '+677 '
2198
+ prefix: '+677 ',
2203
2199
  },
2204
2200
  // SO
2205
2201
  ZA: {
2206
2202
  mask: '(##) ###-####',
2207
- prefix: '+27 '
2203
+ prefix: '+27 ',
2208
2204
  },
2209
2205
  ES: {
2210
2206
  mask: '###-###-###',
2211
- prefix: '+34 '
2207
+ prefix: '+34 ',
2212
2208
  },
2213
2209
  LK: {
2214
2210
  mask: '(##) ###-####',
2215
- prefix: '+94 '
2211
+ prefix: '+94 ',
2216
2212
  },
2217
2213
  SD: {
2218
2214
  mask: '##-###-####',
2219
- prefix: '+249 '
2215
+ prefix: '+249 ',
2220
2216
  },
2221
2217
  SR: {
2222
2218
  mask: '######?',
2223
- prefix: '+597 '
2219
+ prefix: '+597 ',
2224
2220
  },
2225
2221
  SZ: {
2226
2222
  mask: '###-####',
2227
- prefix: '+268 '
2223
+ prefix: '+268 ',
2228
2224
  },
2229
2225
  /* SE: {
2230
2226
  mask:'######?????',
@@ -2232,11 +2228,11 @@ const phoneNumberFormats = {
2232
2228
  }, */
2233
2229
  SE: {
2234
2230
  mask: '###########',
2235
- prefix: '+46 '
2231
+ prefix: '+46 ',
2236
2232
  },
2237
2233
  CH: {
2238
2234
  mask: '(##) ###-####',
2239
- prefix: '+41 '
2235
+ prefix: '+41 ',
2240
2236
  },
2241
2237
  /* SY: {
2242
2238
  mask:'########?',
@@ -2244,15 +2240,15 @@ const phoneNumberFormats = {
2244
2240
  }, */
2245
2241
  SY: {
2246
2242
  mask: '#########',
2247
- prefix: '+963 '
2243
+ prefix: '+963 ',
2248
2244
  },
2249
2245
  TJ: {
2250
2246
  mask: '#########',
2251
- prefix: '+992 '
2247
+ prefix: '+992 ',
2252
2248
  },
2253
2249
  TZ: {
2254
2250
  mask: '#########',
2255
- prefix: '+255 '
2251
+ prefix: '+255 ',
2256
2252
  },
2257
2253
  /* TH: {
2258
2254
  mask:'########?',
@@ -2260,42 +2256,42 @@ const phoneNumberFormats = {
2260
2256
  }, */
2261
2257
  TH: {
2262
2258
  mask: '#########',
2263
- prefix: '+66 '
2259
+ prefix: '+66 ',
2264
2260
  },
2265
2261
  TG: {
2266
2262
  mask: '###-####',
2267
- prefix: '+228 '
2263
+ prefix: '+228 ',
2268
2264
  },
2269
2265
  // TK
2270
2266
  // TO
2271
2267
  TT: {
2272
2268
  mask: '(###) ###-####',
2273
- prefix: '+1 '
2269
+ prefix: '+1 ',
2274
2270
  },
2275
2271
  TN: {
2276
2272
  mask: '##-###-###',
2277
- prefix: '+216 '
2273
+ prefix: '+216 ',
2278
2274
  },
2279
2275
  TR: {
2280
2276
  mask: '(###) ###-####',
2281
- prefix: '+90 '
2277
+ prefix: '+90 ',
2282
2278
  },
2283
2279
  TM: {
2284
2280
  mask: '########',
2285
- prefix: '+993 '
2281
+ prefix: '+993 ',
2286
2282
  },
2287
2283
  TC: {
2288
2284
  mask: '(###) ###-####',
2289
- prefix: '+1 '
2285
+ prefix: '+1 ',
2290
2286
  },
2291
2287
  // TV
2292
2288
  UG: {
2293
2289
  mask: '#########',
2294
- prefix: '+256 '
2290
+ prefix: '+256 ',
2295
2291
  },
2296
2292
  UA: {
2297
2293
  mask: '(##) ###-####',
2298
- prefix: '+380 '
2294
+ prefix: '+380 ',
2299
2295
  },
2300
2296
  /* AE: {
2301
2297
  mask:'########?',
@@ -2303,7 +2299,7 @@ const phoneNumberFormats = {
2303
2299
  }, */
2304
2300
  AE: {
2305
2301
  mask: '#########',
2306
- prefix: '+971 '
2302
+ prefix: '+971 ',
2307
2303
  },
2308
2304
  /* GB: {
2309
2305
  mask:'##########???',
@@ -2311,33 +2307,33 @@ const phoneNumberFormats = {
2311
2307
  }, */
2312
2308
  GB: {
2313
2309
  mask: '#############',
2314
- prefix: '+44 '
2310
+ prefix: '+44 ',
2315
2311
  },
2316
2312
  UY: {
2317
2313
  mask: '########?',
2318
- prefix: '+598 '
2314
+ prefix: '+598 ',
2319
2315
  },
2320
2316
  UZ: {
2321
2317
  mask: '(##) ###-####',
2322
- prefix: '+998 '
2318
+ prefix: '+998 ',
2323
2319
  },
2324
2320
  // VU
2325
2321
  // VA
2326
2322
  VE: {
2327
2323
  mask: '(###) ###-####',
2328
- prefix: '+58 '
2324
+ prefix: '+58 ',
2329
2325
  },
2330
2326
  VN: {
2331
2327
  mask: '#######????',
2332
- prefix: '+84 '
2328
+ prefix: '+84 ',
2333
2329
  },
2334
2330
  VG: {
2335
2331
  mask: '(###) ###-####',
2336
- prefix: '+1 '
2332
+ prefix: '+1 ',
2337
2333
  },
2338
2334
  VI: {
2339
2335
  mask: '(###) ###-####',
2340
- prefix: '+1 '
2336
+ prefix: '+1 ',
2341
2337
  },
2342
2338
  // WF
2343
2339
  /* YE: {
@@ -2346,12 +2342,12 @@ const phoneNumberFormats = {
2346
2342
  }, */
2347
2343
  YE: {
2348
2344
  mask: '#########',
2349
- prefix: '+967 '
2345
+ prefix: '+967 ',
2350
2346
  },
2351
2347
  // YU
2352
2348
  ZM: {
2353
2349
  mask: '#########',
2354
- prefix: '+260 '
2350
+ prefix: '+260 ',
2355
2351
  },
2356
2352
  /* ZW: {
2357
2353
  mask:'####?????',
@@ -2359,15 +2355,15 @@ const phoneNumberFormats = {
2359
2355
  }, */
2360
2356
  ZW: {
2361
2357
  mask: '#########',
2362
- prefix: '+263 '
2358
+ prefix: '+263 ',
2363
2359
  },
2364
2360
  AC: {
2365
2361
  mask: '####',
2366
- prefix: '+247 '
2362
+ prefix: '+247 ',
2367
2363
  },
2368
2364
  ME: {
2369
2365
  mask: '(##) ###-####',
2370
- prefix: '+382 '
2366
+ prefix: '+382 ',
2371
2367
  },
2372
2368
  /* PS: {
2373
2369
  mask:'########?',
@@ -2375,7 +2371,7 @@ const phoneNumberFormats = {
2375
2371
  }, */
2376
2372
  PS: {
2377
2373
  mask: '#########',
2378
- prefix: '+970 '
2374
+ prefix: '+970 ',
2379
2375
  },
2380
2376
  /* RS: {
2381
2377
  mask:'#######??',
@@ -2383,7 +2379,7 @@ const phoneNumberFormats = {
2383
2379
  }, */
2384
2380
  RS: {
2385
2381
  mask: '#########',
2386
- prefix: '+381 '
2382
+ prefix: '+381 ',
2387
2383
  },
2388
2384
  /* TW: {
2389
2385
  mask:'########?',
@@ -2391,23 +2387,23 @@ const phoneNumberFormats = {
2391
2387
  }, */
2392
2388
  TW: {
2393
2389
  mask: '#########',
2394
- prefix: '+886 '
2390
+ prefix: '+886 ',
2395
2391
  },
2396
2392
  CW: {
2397
2393
  mask: '#-###-####',
2398
- prefix: '+599 '
2394
+ prefix: '+599 ',
2399
2395
  },
2400
2396
  US: {
2401
2397
  mask: '(###) ###-####',
2402
- prefix: ''
2403
- }
2398
+ prefix: '',
2399
+ },
2404
2400
  };
2405
2401
  function formatPhoneNumber(value, isoCode = 'US') {
2406
- const { mask, prefix } = phoneNumberFormats[isoCode] || phoneNumberFormats['US'];
2402
+ const { mask, prefix } = phoneNumberFormats[isoCode] || phoneNumberFormats.US;
2407
2403
  const options = {
2408
- prefix
2404
+ prefix,
2409
2405
  };
2410
- let val = value || '';
2406
+ const val = value || '';
2411
2407
  return formatValue(val, mask, options);
2412
2408
  }
2413
2409
 
@@ -2439,7 +2435,7 @@ const numberFormats = {
2439
2435
  decimalSeparator: '.',
2440
2436
  thousandsSeparator: ',',
2441
2437
  allowDecimal: false,
2442
- allowNegative: true
2438
+ allowNegative: true,
2443
2439
  },
2444
2440
  integer: {
2445
2441
  prefix: '',
@@ -2448,7 +2444,7 @@ const numberFormats = {
2448
2444
  decimalSeparator: '.',
2449
2445
  thousandsSeparator: '',
2450
2446
  allowDecimal: true,
2451
- allowNegative: true
2447
+ allowNegative: true,
2452
2448
  },
2453
2449
  dec: {
2454
2450
  prefix: '',
@@ -2457,8 +2453,8 @@ const numberFormats = {
2457
2453
  decimalSeparator: '.',
2458
2454
  thousandsSeparator: ',',
2459
2455
  allowDecimal: true,
2460
- allowNegative: true
2461
- }
2456
+ allowNegative: true,
2457
+ },
2462
2458
  };
2463
2459
  function getNumberFormat(key) {
2464
2460
  let decimals;
@@ -2485,7 +2481,7 @@ function formatNumeric(value = '', modifier = '', explicit = false) {
2485
2481
  return formatNumber(value, numberFormat, explicit);
2486
2482
  }
2487
2483
  function formatPercentage(value = '', modifier = '', explicit = false) {
2488
- let numberFormat = getNumberFormat(modifier);
2484
+ const numberFormat = getNumberFormat(modifier);
2489
2485
  if (!numberFormat) {
2490
2486
  const val = (value || '').replace(/[^\d.,-]/g, '');
2491
2487
  return formatValue(val, undefined, { suffix: '%' });
@@ -2689,7 +2685,7 @@ const postalCodeFormats = {
2689
2685
  WF: '986##',
2690
2686
  ZM: '#####',
2691
2687
  US: '#####',
2692
- 'US+4': '#####-####'
2688
+ 'US+4': '#####-####',
2693
2689
  };
2694
2690
  function formatPostalCode(value, modifier = 'US') {
2695
2691
  const mask = postalCodeFormats[modifier];
@@ -2719,7 +2715,7 @@ const dateFormats = {
2719
2715
  'DD-MM-YYYY': '##-##-####',
2720
2716
  'D-M-YYYY': '#?-#?-####',
2721
2717
  'DD-MM-YY': '##-##-##',
2722
- 'D-M-YY': '#?-#?-##'
2718
+ 'D-M-YY': '#?-#?-##',
2723
2719
  };
2724
2720
  function formatDate(value, format = 'MM/DD/YYYY') {
2725
2721
  const mask = dateFormats[format] || dateFormats['MM/DD/YYYY'];
@@ -2728,10 +2724,10 @@ function formatDate(value, format = 'MM/DD/YYYY') {
2728
2724
  }
2729
2725
 
2730
2726
  function format(value) {
2731
- //have a initial generic mask which then converts to specific mask
2727
+ // have a initial generic mask which then converts to specific mask
2732
2728
  const detectedType = formatCreditCard.detectCreditCardTypeFromValue(value);
2733
2729
  const formattedValueObject = creditCardFormatters[detectedType](value);
2734
- if (value.length < 2 && detectedType == 'unknown') {
2730
+ if (value.length < 2 && detectedType === 'unknown') {
2735
2731
  formattedValueObject.leftIcon = 'card';
2736
2732
  }
2737
2733
  return formattedValueObject;
@@ -2766,8 +2762,9 @@ const creditCardFormatters = {
2766
2762
  masterCard: masterCardFormatter,
2767
2763
  visa: visaFormatter,
2768
2764
  dinersClub: dinersClubInternationalFormatter,
2769
- unknown: unknownFormatter
2765
+ unknown: unknownFormatter,
2770
2766
  };
2767
+ /* tslint:disable:cyclomatic-complexity */
2771
2768
  function detectCreditCardTypeFromValue(value) {
2772
2769
  // use value and some algorithm from the internet to detect and return card type based on string
2773
2770
  // return string 'unknown' if algorithm cannot detect or returns a type that is not one of our 5 supported types
@@ -2788,13 +2785,13 @@ function detectCreditCardTypeFromValue(value) {
2788
2785
  }
2789
2786
  break;
2790
2787
  case 3:
2791
- if (secondInt == 4 || secondInt == 7) {
2788
+ if (secondInt === 4 || secondInt === 7) {
2792
2789
  return 'amex';
2793
2790
  }
2794
- if (secondInt == 0) {
2791
+ if (secondInt === 0) {
2795
2792
  if (value.length > 2) {
2796
2793
  const thirdInt = parseInt(value.charAt(2));
2797
- if (thirdInt < 6 || thirdInt == 9) {
2794
+ if (thirdInt < 6 || thirdInt === 9) {
2798
2795
  return 'dinersClub';
2799
2796
  }
2800
2797
  }
@@ -2802,7 +2799,7 @@ function detectCreditCardTypeFromValue(value) {
2802
2799
  return 'dinersClub';
2803
2800
  }
2804
2801
  }
2805
- if (secondInt == 6 || secondInt == 8 || secondInt == 9) {
2802
+ if (secondInt === 6 || secondInt === 8 || secondInt === 9) {
2806
2803
  return 'dinersClub';
2807
2804
  }
2808
2805
  break;
@@ -2814,10 +2811,10 @@ function detectCreditCardTypeFromValue(value) {
2814
2811
  }
2815
2812
  break;
2816
2813
  case 6:
2817
- if (secondInt == 0) {
2814
+ if (secondInt === 0) {
2818
2815
  if (value.length > 3) {
2819
2816
  const firstfour = value.substr(0, 4);
2820
- if (firstfour == '6011') {
2817
+ if (firstfour === '6011') {
2821
2818
  return 'discover';
2822
2819
  }
2823
2820
  }
@@ -2825,7 +2822,7 @@ function detectCreditCardTypeFromValue(value) {
2825
2822
  return 'discover';
2826
2823
  }
2827
2824
  }
2828
- if (secondInt == 4) {
2825
+ if (secondInt === 4) {
2829
2826
  if (value.length > 2) {
2830
2827
  const firstthree = parseInt(value.substr(0, 3));
2831
2828
  if (firstthree > 643) {
@@ -2836,10 +2833,10 @@ function detectCreditCardTypeFromValue(value) {
2836
2833
  return 'discover';
2837
2834
  }
2838
2835
  }
2839
- if (secondInt == 5) {
2836
+ if (secondInt === 5) {
2840
2837
  return 'discover';
2841
2838
  }
2842
- if (secondInt == 2) {
2839
+ if (secondInt === 2) {
2843
2840
  if (value.length > 5) {
2844
2841
  const firstsix = parseInt(value.substr(0, 6));
2845
2842
  if (firstsix >= 622126 && firstsix <= 622925) {
@@ -2856,6 +2853,7 @@ function detectCreditCardTypeFromValue(value) {
2856
2853
  }
2857
2854
  return 'unknown';
2858
2855
  }
2856
+ /* tslint:enable:cyclomatic-complexity */
2859
2857
  const formatCreditCard = {
2860
2858
  detectCreditCardTypeFromValue,
2861
2859
  format,
@@ -2864,10 +2862,10 @@ const formatCreditCard = {
2864
2862
  discoverFormatter,
2865
2863
  masterCardFormatter,
2866
2864
  visaFormatter,
2867
- unknownFormatter
2865
+ unknownFormatter,
2868
2866
  };
2869
2867
 
2870
- const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block;margin-top:var(--tct-input-margin-top, var(--t-input-margin-top, var(--app-scale-6x, 30px)));margin-bottom:var(--tct-input-margin-bottom, var(--t-input-margin-bottom, var(--app-scale-6x, 30px)));font-size:var(--tct-input-font-size, var(--t-input-font-size, var(--app-font-size, inherit)))}:host([hidden]){display:none}.field-container,.input-container{position:relative}.field-container{--comp-input-tween:var(--tct-input-tween, var(--t-input-tween, var(--tct-tween-2, var(--app-tween-2, 0.4s ease))))}label{display:block;padding-left:var(--tct-input-label-padding-left, var(--t-input-label-padding-left, 0));padding-right:var(--tct-input-label-padding-right, var(--t-input-label-padding-right, 0));margin-top:var(--tct-input-label-margin-top, var(--t-input-label-margin-top, 0));margin-bottom:var(--tct-input-label-margin-bottom, var(--t-input-label-margin-bottom, var(--tct-scale-1, var(--app-scale-1, 5px))));color:var(--tct-input-label-font-color, var(--t-input-label-font-color, inherit));font-size:var(--tct-input-label-font-size, var(--t-input-label-font-size, inherit));font-weight:var(--tct-input-label-font-weight, var(--t-input-label-font-weight, 600));text-transform:var(--tct-input-label-text-transform, var(--t-input-label-text-transform, none));letter-spacing:var(--tct-input-label-letter-spacing, var(--t-input-label-letter-spacing, normal));transition:color var(--comp-input-tween)}.optional-tag{margin-left:var(--tct-input-label-optional-margin-left, var(--t-input-label-optional-margin-left, var(--tct-scale-1, var(--app-scale-1, 5px))));color:var(--tct-input-label-optional-font-color, var(--t-input-label-optional-font-color, var(--t-textA, var(--t-a11y-gray-color, rgba(77, 77, 77, 0.77)))));font-size:var(--tct-input-label-optional-font-size, var(--t-input-label-optional-font-size, 12px));font-weight:var(--tct-input-label-optional-font-weight, var(--t-input-label-optional-font-weight, 400))}.input-container{background-color:var(--tct-input-bg, var(--t-input-bg, var(--tct-gray-14, var(--t-gray-14, #f2f2f2))));display:flex;align-items:center;--comp-input-horizontal-gap:var(--tct-input-horizontal-gap, var(--t-input-horizontal-gap, 8px));--comp-input-border-top-left-radius:var(--tct-input-border-top-left-radius, var(--t-input-border-top-left-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-top-right-radius:var(--tct-input-border-top-right-radius, var(--t-input-border-top-right-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-bottom-right-radius:var(--tct-input-border-bottom-right-radius, var(--t-input-border-bottom-right-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-bottom-left-radius:var(--tct-input-border-bottom-left-radius, var(--t-input-border-bottom-left-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-radius:var(--comp-input-border-top-left-radius)\n var(--comp-input-border-top-right-radius) var(--comp-input-border-bottom-right-radius)\n var(--comp-input-border-bottom-left-radius);--comp-input-border-width:var(--tct-input-border-top-width, 1px)\n var(--tct-input-border-right-width, 1px) var(--tct-input-border-bottom-width, 1px)\n var(--tct-input-border-left-width, 1px);--comp-input-focus-border-width:var(--tct-input-focus-border-top-width, 1px)\n var(--tct-input-focus-border-right-width, 1px)\n var(--tct-input-focus-border-bottom-width, 1px)\n var(--tct-input-focus-border-left-width, 1px);--comp-input-prefix-clearance:calc(\n 3 * var(--tct-input-prefix-font-size, 14px) + var(--tct-scale-1, 5px)\n );--comp-input-icon-clearance:34px;--comp-input-min-height:var(--tct-input-min-height, 44px);border-width:var(--comp-input-border-width);border-style:solid;border-color:var(--tct-input-border-color, var(--t-input-border-color, var(--tct-gray-11, var(--t-gray-11, #cccccc))));border-radius:var(--comp-input-border-radius);box-shadow:var(--tct-input-box-shadow, var(--t-input-box-shadow, none));transition:border-width var(--comp-input-tween), border-color var(--comp-input-tween), box-shadow var(--comp-input-tween)}:host([disabled]) .input-container{cursor:not-allowed;opacity:var(--tct-input-disabled-opacity, var(--t-input-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))))}.input-field{flex:1;border:0;-webkit-appearance:none;appearance:none;box-sizing:border-box;min-height:var(--comp-input-min-height);height:var(--tct-input-height, var(--t-input-height, 44px));width:100%;padding:0 var(--tct-input-horizontal-padding, var(--t-input-horizontal-padding, var(--tct-scale-2, var(--app-scale-2, 10px))));background-color:transparent;color:var(--tct-input-font-color, var(--t-input-font-color, var(--t-text, inherit)));display:inline-block;text-align:var(--tct-input-align, \"start\");}.input-field:focus{outline:none;box-shadow:none}.input-field::-webkit-outer-spin-button,.input-field::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.input-field[type=number]{-moz-appearance:textfield}.input-field::-ms-clear{display:none}.input-field[type=search]::-webkit-search-decoration,.input-field[type=search]::-webkit-search-cancel-button,.input-field[type=search]::-webkit-search-results-button,.input-field[type=search]::-webkit-search-results-decoration{display:none}.input-field[disabled]{cursor:not-allowed}.right-aligned .input-field{text-align:right}.input-field:is(input){flex:1}.input-field:is(button){display:inline-flex;align-items:center}.input-container:focus-within{border-width:var(--comp-input-focus-border-width, 1px);border-color:var(--tct-input-focus-border-color, var(--t-input-focus-border-color, var(--tct-gray-9, var(--t-gray-9, #999999))));box-shadow:var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff)), var(--tct-input-focus-box-shadow, var(--t-input-focus-box-shadow, 0 0 transparent))}.input-field::placeholder,.placeholder-text{color:var(--tct-input-placeholder-font-color, var(--t-input-placeholder-font-color, var(--t-textA, var(--app-gray-d1, rgba(77, 77, 77, 0.77)))))}.pseudo-input{min-width:0;flex:1}.pseudo-input span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-icons-container-left,.input-icons-container-right{display:flex;flex-direction:row;align-items:center;gap:var(--comp-input-horizontal-gap)}.input-icons-container-left:empty,.input-icons-container-right:empty{display:none}.input-icons-container-left{padding-left:var(--comp-input-horizontal-gap)}.input-icons-container-right{padding-right:var(--comp-input-horizontal-gap)}.input-icons-container-right .btn-visibility-toggle{color:var(--tct-primary, var(--t-primary, #006eb2));font-size:12px}q2-icon{margin-top:calc(var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) / 2);margin-bottom:calc(var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) / 2);pointer-events:none;color:var(--tct-input-icon-stroke-primary, var(--t-input-icon-stroke-primary, var(--t-textA, var(--app-gray, rgba(77, 77, 77, 0.77)))));--tct-icon-stroke-primary:var(--tct-input-icon-stroke-primary, var(--t-input-icon-stroke-primary, var(--t-textA, var(--app-gray, rgba(77, 77, 77, 0.77)))))}.icon-left-muted{opacity:0.5}.input-prefix,.input-suffix{margin-left:calc(var(--comp-input-horizontal-gap) * -1);margin-right:calc(var(--comp-input-horizontal-gap) * -1);width:3em;display:inline-flex;align-items:center;justify-content:center;min-height:calc( var(--comp-input-min-height) - var(--tct-input-focus-border-top-width, var(--t-input-focus-border-top-width, 1px)) - var(--tct-input-focus-border-bottom-width, var(--t-input-focus-border-bottom-width, 1px)) );height:calc( var(--tct-input-height, var(--t-input-height, 44px)) - var(--tct-input-focus-border-top-width, var(--t-input-focus-border-top-width, 1px)) - var(--tct-input-focus-border-bottom-width, var(--t-input-focus-border-bottom-width, 1px)) );font-size:var(--tct-input-prefix-font-size, var(--t-input-prefix-font-size, inherit));color:var(--tct-input-prefix-font-color, var(--t-input-prefix-font-color, inherit));background-color:var(--tct-input-prefix-bg, var(--t-input-prefix-bg, var(--tct-input-bg, var(--t-input-bg, var(--tct-gray-14, var(--t-gray-14, #f2f2f2))))));transition:color var(--comp-input-tween), background-color var(--comp-input-tween)}.input-prefix{border-top-left-radius:calc( var(--comp-input-border-top-left-radius) - var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) - var(--tct-input-border-left-width, var(--t-input-border-left-width, 1px)) );border-bottom-left-radius:calc( var(--comp-input-border-bottom-left-radius) - var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) - var(--tct-input-border-left-width, var(--t-input-border-left-width, 1px)) );pointer-events:none;}.input-suffix{border-top-right-radius:calc( var(--comp-input-border-top-right-radius) - var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) - var(--tct-input-border-right-width, var(--t-input-border-right-width, 1px)) );border-bottom-right-radius:calc( var(--comp-input-border-bottom-right-radius) - var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) - var(--tct-input-border-right-width, var(--t-input-border-right-width, 1px)) )}.icon-error{color:var(--tct-stoplight-error, var(--const-stoplight-alert, #c30000));--tct-icon-stroke-primary:var(--tct-stoplight-error, var(--const-stoplight-alert, #c30000))}.pw-show{position:absolute;margin-right:var(--tct-scale-2, var(--app-scale-2, 20px))}.btn-clear{margin-top:calc(var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) / 2);margin-bottom:calc(var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) / 2);height:22px;--tct-btn-icon-width:17px;--tct-btn-icon-height:22px;--tct-icon-size:17px}.messages-container{height:0px;overflow:hidden;background-color:var(--tct-message-bg, var(--t-message-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2))))));box-shadow:var(--tct-input-message-box-shadow, var(--t-input-message-box-shadow, var(--tct-box-shadow-1, var(--app-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.3)))));transition:height var(--tct-input-messages-tween, var(--t-input-messages-tween, var(--tct-tween-1, var(--app-tween-1, 0.2s ease))));margin-top:2px;z-index:1;position:absolute;width:100%;color:var(--tct-input-messages-font-color, var(--t-input-messages-font-color, inherit))}.has-error label{color:var(--tct-input-error-label-font-color, var(--t-input-error-label-font-color, var(--tct-input-label-font-color, var(--t-input-label-font-color, inherit))))}.has-error:not(.has-focus) .input-prefix,.has-error:not(.has-focus) .input-suffix{color:var(--tct-input-error-prefix-font-color, var(--t-input-error-prefix-font-color, inherit));background-color:var(--tct-input-error-prefix-bg, var(--t-input-error-prefix-bg, var(--tct-input-bg, var(--t-input-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2))))))))}.has-error .input-container:not(:focus-within){border-color:var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000))}.icon-left{width:26px;height:26px}.vertical-separator{height:calc(var(--comp-input-min-height) - 2px);border-right:1px solid var(--tct-input-prefix-border-color, var(--t-input-prefix-border-color, var(--tct-input-border-color, var(--t-input-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))))))}";
2868
+ const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block;margin-top:var(--tct-input-margin-top, var(--t-input-margin-top, var(--app-scale-6x, 30px)));margin-bottom:var(--tct-input-margin-bottom, var(--t-input-margin-bottom, var(--app-scale-6x, 30px)));font-size:var(--tct-input-font-size, var(--t-input-font-size, var(--app-font-size, inherit)))}:host([hidden]){display:none}.field-container,.input-container{position:relative}.field-container{--comp-input-tween:var(--tct-input-tween, var(--t-input-tween, var(--tct-tween-2, var(--app-tween-2, 0.4s ease))))}label{display:block;padding-left:var(--tct-input-label-padding-left, var(--t-input-label-padding-left, 0));padding-right:var(--tct-input-label-padding-right, var(--t-input-label-padding-right, 0));margin-top:var(--tct-input-label-margin-top, var(--t-input-label-margin-top, 0));margin-bottom:var(--tct-input-label-margin-bottom, var(--t-input-label-margin-bottom, var(--tct-scale-1, var(--app-scale-1, 5px))));color:var(--tct-input-label-font-color, var(--t-input-label-font-color, inherit));font-size:var(--tct-input-label-font-size, var(--t-input-label-font-size, inherit));font-weight:var(--tct-input-label-font-weight, var(--t-input-label-font-weight, 600));text-transform:var(--tct-input-label-text-transform, var(--t-input-label-text-transform, none));letter-spacing:var(--tct-input-label-letter-spacing, var(--t-input-label-letter-spacing, normal));transition:color var(--comp-input-tween)}.optional-tag{margin-left:var(--tct-input-label-optional-margin-left, var(--t-input-label-optional-margin-left, var(--tct-scale-1, var(--app-scale-1, 5px))));color:var(--tct-input-label-optional-font-color, var(--t-input-label-optional-font-color, var(--t-textA, var(--t-a11y-gray-color, rgba(77, 77, 77, 0.77)))));font-size:var(--tct-input-label-optional-font-size, var(--t-input-label-optional-font-size, 12px));font-weight:var(--tct-input-label-optional-font-weight, var(--t-input-label-optional-font-weight, 400))}.input-container{background-color:var(--tct-input-bg, var(--t-input-bg, var(--tct-gray-14, var(--t-gray-14, #f2f2f2))));display:flex;align-items:center;--comp-input-horizontal-gap:var(--tct-input-horizontal-gap, var(--t-input-horizontal-gap, 8px));--comp-input-border-top-left-radius:var(--tct-input-border-top-left-radius, var(--t-input-border-top-left-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-top-right-radius:var(--tct-input-border-top-right-radius, var(--t-input-border-top-right-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-bottom-right-radius:var(--tct-input-border-bottom-right-radius, var(--t-input-border-bottom-right-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-bottom-left-radius:var(--tct-input-border-bottom-left-radius, var(--t-input-border-bottom-left-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px))));--comp-input-border-radius:var(--comp-input-border-top-left-radius)\n var(--comp-input-border-top-right-radius) var(--comp-input-border-bottom-right-radius)\n var(--comp-input-border-bottom-left-radius);--comp-input-border-width:var(--tct-input-border-top-width, 1px)\n var(--tct-input-border-right-width, 1px) var(--tct-input-border-bottom-width, 1px)\n var(--tct-input-border-left-width, 1px);--comp-input-focus-border-width:var(--tct-input-focus-border-top-width, 1px)\n var(--tct-input-focus-border-right-width, 1px)\n var(--tct-input-focus-border-bottom-width, 1px)\n var(--tct-input-focus-border-left-width, 1px);--comp-input-prefix-clearance:calc(\n 3 * var(--tct-input-prefix-font-size, 14px) + var(--tct-scale-1, 5px)\n );--comp-input-icon-clearance:34px;--comp-input-min-height:var(--tct-input-min-height, 44px);border-width:var(--comp-input-border-width);border-style:solid;border-color:var(--tct-input-border-color, var(--t-input-border-color, var(--tct-gray-11, var(--t-gray-11, #cccccc))));border-radius:var(--comp-input-border-radius);box-shadow:var(--tct-input-box-shadow, var(--t-input-box-shadow, none));transition:border-width var(--comp-input-tween), border-color var(--comp-input-tween), box-shadow var(--comp-input-tween)}:host([disabled]) .input-container{cursor:not-allowed;opacity:var(--tct-input-disabled-opacity, var(--t-input-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))))}.input-field{flex:1;border:0;-webkit-appearance:none;appearance:none;box-sizing:border-box;min-height:var(--comp-input-min-height);height:var(--tct-input-height, var(--t-input-height, 44px));width:100%;padding:0 var(--tct-input-horizontal-padding, var(--t-input-horizontal-padding, var(--tct-scale-2, var(--app-scale-2, 10px))));background-color:transparent;color:var(--tct-input-font-color, var(--t-input-font-color, var(--t-text, inherit)));display:inline-block;text-align:var(--tct-input-align, \"start\");}.input-field:focus{outline:none;box-shadow:none}.input-field::-webkit-outer-spin-button,.input-field::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.input-field[type=number]{-moz-appearance:textfield}.input-field::-ms-clear{display:none}.input-field[type=search]::-webkit-search-decoration,.input-field[type=search]::-webkit-search-cancel-button,.input-field[type=search]::-webkit-search-results-button,.input-field[type=search]::-webkit-search-results-decoration{display:none}.input-field[disabled]{cursor:not-allowed}.right-aligned .input-field{text-align:right}.input-field:is(input){flex:1}.input-field:is(button){display:inline-flex;align-items:center}.input-container:focus-within{border-width:var(--comp-input-focus-border-width, 1px);border-color:var(--tct-input-focus-border-color, var(--t-input-focus-border-color, var(--tct-gray-9, var(--t-gray-9, #999999))));box-shadow:var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff)), var(--tct-input-focus-box-shadow, var(--t-input-focus-box-shadow, 0 0 transparent))}.input-field::placeholder,.placeholder-text{color:var(--tct-input-placeholder-font-color, var(--t-input-placeholder-font-color, var(--t-textA, var(--app-gray-d1, rgba(77, 77, 77, 0.77)))))}.pseudo-input{min-width:0;flex:1}.pseudo-input span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-icons-container-left,.input-icons-container-right{display:flex;flex-direction:row;align-items:center;gap:var(--comp-input-horizontal-gap)}.input-icons-container-left:empty,.input-icons-container-right:empty{display:none}.input-icons-container-left{padding-left:var(--comp-input-horizontal-gap)}.input-icons-container-right{padding-right:var(--comp-input-horizontal-gap)}.input-icons-container-right .btn-visibility-toggle{color:var(--tct-primary, var(--t-primary, #006eb2));font-size:12px}q2-icon{margin-top:calc(var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) / 2);margin-bottom:calc(var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) / 2);pointer-events:none;color:var(--tct-input-icon-stroke-primary, var(--t-input-icon-stroke-primary, var(--t-textA, var(--app-gray, rgba(77, 77, 77, 0.77)))));--tct-icon-stroke-primary:var(--tct-input-icon-stroke-primary, var(--t-input-icon-stroke-primary, var(--t-textA, var(--app-gray, rgba(77, 77, 77, 0.77)))))}.icon-left-muted{opacity:0.5}.input-prefix,.input-suffix{margin-left:calc(var(--comp-input-horizontal-gap) * -1);margin-right:calc(var(--comp-input-horizontal-gap) * -1);width:3em;display:inline-flex;align-items:center;justify-content:center;min-height:calc(\n var(--comp-input-min-height) - var(--tct-input-focus-border-top-width, var(--t-input-focus-border-top-width, 1px)) -\n var(--tct-input-focus-border-bottom-width, var(--t-input-focus-border-bottom-width, 1px))\n );height:calc(\n var(--tct-input-height, var(--t-input-height, 44px)) - var(--tct-input-focus-border-top-width, var(--t-input-focus-border-top-width, 1px)) - var(--tct-input-focus-border-bottom-width, var(--t-input-focus-border-bottom-width, 1px))\n );font-size:var(--tct-input-prefix-font-size, var(--t-input-prefix-font-size, inherit));color:var(--tct-input-prefix-font-color, var(--t-input-prefix-font-color, inherit));background-color:var(--tct-input-prefix-bg, var(--t-input-prefix-bg, var(--tct-input-bg, var(--t-input-bg, var(--tct-gray-14, var(--t-gray-14, #f2f2f2))))));transition:color var(--comp-input-tween), background-color var(--comp-input-tween)}.input-prefix{border-top-left-radius:calc(\n var(--comp-input-border-top-left-radius) - var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) - var(--tct-input-border-left-width, var(--t-input-border-left-width, 1px))\n );border-bottom-left-radius:calc(\n var(--comp-input-border-bottom-left-radius) - var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) - var(--tct-input-border-left-width, var(--t-input-border-left-width, 1px))\n );pointer-events:none;}.input-suffix{border-top-right-radius:calc(\n var(--comp-input-border-top-right-radius) - var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) - var(--tct-input-border-right-width, var(--t-input-border-right-width, 1px))\n );border-bottom-right-radius:calc(\n var(--comp-input-border-bottom-right-radius) - var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) - var(--tct-input-border-right-width, var(--t-input-border-right-width, 1px))\n )}.icon-error{color:var(--tct-stoplight-error, var(--const-stoplight-alert, #c30000));--tct-icon-stroke-primary:var(--tct-stoplight-error, var(--const-stoplight-alert, #c30000))}.pw-show{position:absolute;margin-right:var(--tct-scale-2, var(--app-scale-2, 20px))}.btn-clear{margin-top:calc(var(--tct-input-border-top-width, var(--t-input-border-top-width, 1px)) / 2);margin-bottom:calc(var(--tct-input-border-bottom-width, var(--t-input-border-bottom-width, 1px)) / 2);height:22px;--tct-btn-icon-width:17px;--tct-btn-icon-height:22px;--tct-icon-size:17px}.messages-container{height:0px;overflow:hidden;background-color:var(--tct-message-bg, var(--t-message-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2))))));box-shadow:var(--tct-input-message-box-shadow, var(--t-input-message-box-shadow, var(--tct-box-shadow-1, var(--app-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.3)))));transition:height var(--tct-input-messages-tween, var(--t-input-messages-tween, var(--tct-tween-1, var(--app-tween-1, 0.2s ease))));margin-top:2px;z-index:1;position:absolute;width:100%;color:var(--tct-input-messages-font-color, var(--t-input-messages-font-color, inherit))}.has-error label{color:var(--tct-input-error-label-font-color, var(--t-input-error-label-font-color, var(--tct-input-label-font-color, var(--t-input-label-font-color, inherit))))}.has-error:not(.has-focus) .input-prefix,.has-error:not(.has-focus) .input-suffix{color:var(--tct-input-error-prefix-font-color, var(--t-input-error-prefix-font-color, inherit));background-color:var(--tct-input-error-prefix-bg, var(--t-input-error-prefix-bg, var(--tct-input-bg, var(--t-input-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2))))))))}.has-error .input-container:not(:focus-within){border-color:var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000))}.icon-left{width:26px;height:26px}.vertical-separator{height:calc(var(--comp-input-min-height) - 2px);border-right:1px solid var(--tct-input-prefix-border-color, var(--t-input-prefix-border-color, var(--tct-input-border-color, var(--t-input-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))))))}";
2871
2869
 
2872
2870
  const Q2Input = class {
2873
2871
  constructor(hostRef) {
@@ -2922,7 +2920,7 @@ const Q2Input = class {
2922
2920
  const eventDetail = {
2923
2921
  value: '',
2924
2922
  formattedValue: '',
2925
- minFormattedLength: this.formattedValueObject.minFormattedLength
2923
+ minFormattedLength: this.formattedValueObject.minFormattedLength,
2926
2924
  };
2927
2925
  this.input.emit(eventDetail);
2928
2926
  this.change.emit(eventDetail);
@@ -2961,17 +2959,17 @@ const Q2Input = class {
2961
2959
  percentage: formatPercentage,
2962
2960
  postal: formatPostalCode,
2963
2961
  date: formatDate,
2964
- 'credit-card': formatCreditCard.format
2962
+ 'credit-card': formatCreditCard.format,
2965
2963
  };
2966
2964
  if (formattingFunctions[this.type]) {
2967
2965
  return formattingFunctions[this.type](value, this.formatModifier, valueChangedFromProperty);
2968
2966
  }
2969
2967
  return {
2970
- value: value,
2968
+ value,
2971
2969
  formattedValue: value,
2972
2970
  fullyFormattedValue: value,
2973
2971
  formattingCharacterCount: 0,
2974
- unformattedValue: value
2972
+ unformattedValue: value,
2975
2973
  };
2976
2974
  }
2977
2975
  get canClear() {
@@ -3008,7 +3006,7 @@ const Q2Input = class {
3008
3006
  'percentage',
3009
3007
  'postal',
3010
3008
  'date',
3011
- 'credit-card'
3009
+ 'credit-card',
3012
3010
  ];
3013
3011
  return maskedTypes.includes(this.type);
3014
3012
  }
@@ -3043,7 +3041,7 @@ const Q2Input = class {
3043
3041
  percentage: 'tel',
3044
3042
  postal: 'tel',
3045
3043
  date: 'tel',
3046
- 'credit-card': 'tel'
3044
+ 'credit-card': 'tel',
3047
3045
  };
3048
3046
  if (['password', 'text'].includes(this.type) && this.textHidden) {
3049
3047
  return 'password';
@@ -3123,15 +3121,14 @@ const Q2Input = class {
3123
3121
  handleDataInput(newFormattedValue) {
3124
3122
  if (this.maxlength === undefined ||
3125
3123
  newFormattedValue.unformattedValue.length <= this.maxlength ||
3126
- newFormattedValue.unformattedValue.length <=
3127
- this.formattedValueObject.unformattedValue.length) {
3124
+ newFormattedValue.unformattedValue.length <= this.formattedValueObject.unformattedValue.length) {
3128
3125
  this.formattedValueObject = newFormattedValue;
3129
3126
  }
3130
3127
  else if (this.maxlength) {
3131
3128
  newFormattedValue = this.getFormattedValue(newFormattedValue.unformattedValue.substring(0, this.maxlength), false);
3132
3129
  this.formattedValueObject = newFormattedValue;
3133
3130
  }
3134
- //ORDER IMPORTANT: calculate cursor position -> set value -> set cursor position
3131
+ // ORDER IMPORTANT: calculate cursor position -> set value -> set cursor position
3135
3132
  const cursorPosition = this.calculateCursorPositionOnInput();
3136
3133
  this.inputField.value = this.formattedValueObject.formattedValue;
3137
3134
  this.input.emit(Object.assign({ value: this.formattedValueObject.value, formattedValue: this.formattedValueObject.fullyFormattedValue, minFormattedLength: this.formattedValueObject.minFormattedLength }, (this.formattedValueObject.type && { type: this.formattedValueObject.type })));
@@ -3141,9 +3138,11 @@ const Q2Input = class {
3141
3138
  render() {
3142
3139
  return (index.h("div", { class: this.wrapperClasses }, index$1.labelDOM(this), this.inputDOM(), index$1.messagesDOM(this)));
3143
3140
  }
3141
+ /* tslint:disable:cyclomatic-complexity */
3144
3142
  inputDOM() {
3145
3143
  return (index.h("div", { class: "input-container" }, index.h("div", { class: "input-icons-container-left" }, this.formattedValueObject.prefix && (index.h("span", { class: "input-prefix" }, this.formattedValueObject.prefix)), this.computedIconLeft && (index.h("q2-icon", { type: this.computedIconLeft, class: this.computedClassForIconLeft })), this.showIconSeperator && index.h("div", { class: "vertical-separator" }), this.hasError && this.type === 'currency' && (index.h("q2-icon", { type: "error", class: "icon-error" }))), this.pseudo ? (this.pseudoInputDOM()) : (index.h("input", { class: "input-field", id: this.inputId, type: this.computedType, size: this.formattedValueObject.prefix ? 10 : undefined, max: this.max, min: this.min, "aria-current": this.current || undefined, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": this.hideLabel && this.label ? index$1.loc(this.label) : undefined, autocomplete: this.autocomplete ? this.autocomplete : 'off', autocapitalize: this.autocapitalize === 'on' ? 'on' : 'off', autocorrect: this.autocorrect === 'on' ? 'on' : 'off', placeholder: (this.placeholder && index$1.loc(this.placeholder)) || undefined, role: (this.role && `${this.role}`) || undefined, "test-id": "inputField", readonly: !!this.readonly, disabled: !!this.disabled, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onKeyDown: this.onInputKeydown, onInput: this.onInputInput, onPaste: this.onInputPaste })), index.h("div", { class: "input-icons-container-right" }, this.canClear && (index.h("q2-btn", { class: "btn-clear", ariaLabel: index$1.loc('tecton.element.input.clear', [this.label]), "test-id": "clearButton", onClick: this.onClearInput }, index.h("q2-icon", { type: "close", class: "icon-clear" }))), ['password', 'text'].includes(this.type) && this.showVisibilityToggle && (index.h("q2-btn", { class: "btn-visibility-toggle", "test-id": "toggleVisibilityButton", onClick: this.onToggleVisibility }, this.visibilityToggleText)), this.formattedValueObject.suffix && (index.h("span", { class: "input-suffix" }, this.formattedValueObject.suffix)), this.iconRight && !this.formattedValueObject.suffix && (index.h("q2-icon", { type: this.iconRight, class: "icon-right" })), this.hasError && this.type !== 'currency' && (index.h("q2-icon", { type: "error", class: "icon-error" })))));
3146
3144
  }
3145
+ /* tslint:enable:cyclomatic-complexity */
3147
3146
  pseudoInputDOM() {
3148
3147
  const showPlaceholder = !this.value && !!this.placeholder;
3149
3148
  let ariaLabelSuffix = '';
@@ -3153,18 +3152,18 @@ const Q2Input = class {
3153
3152
  if (this.readonly) {
3154
3153
  ariaLabelSuffix = index$1.loc('tecton.element.input.readonly');
3155
3154
  }
3156
- return (index.h("div", { class: "pseudo-input" }, index.h("button", { class: "input-field", type: "button", id: this.inputId, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": `${this.value}, ${(this.label && index$1.loc(this.label)) ||
3157
- ''}${ariaLabelSuffix}`, role: (this.role && `${this.role}`) || undefined, disabled: !!this.disabled, "test-id": "q2InputInnerClearButton" }, index.h("span", { class: showPlaceholder ? 'placeholder-text' : '' }, showPlaceholder ? this.placeholder : this.value))));
3155
+ return (index.h("div", { class: "pseudo-input" }, index.h("button", { class: "input-field", type: "button", id: this.inputId, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": `${this.value}, ${(this.label && index$1.loc(this.label)) || ''}${ariaLabelSuffix}`, role: (this.role && `${this.role}`) || undefined, disabled: !!this.disabled, "test-id": "q2InputInnerClearButton" }, index.h("span", { class: showPlaceholder ? 'placeholder-text' : '' }, showPlaceholder ? this.placeholder : this.value))));
3158
3156
  }
3159
3157
  calculateCursorPositionOnInput() {
3160
3158
  const input = this.inputField;
3161
3159
  const formattedLength = this.formattedValueObject.formattedValue.length;
3162
3160
  const currentValueLength = input.value.length;
3161
+ const defaultPosition = this.type === 'currency' ? formattedLength : 0;
3163
3162
  return {
3164
- startingPosition: (input && input.selectionStart) || formattedLength,
3163
+ startingPosition: (input && input.selectionStart) || defaultPosition,
3165
3164
  valueLength: formattedLength,
3166
3165
  previousValueLength: input && currentValueLength,
3167
- hasSelection: false
3166
+ hasSelection: false,
3168
3167
  };
3169
3168
  }
3170
3169
  calculateCursorPositionOnFocus() {
@@ -3175,16 +3174,14 @@ const Q2Input = class {
3175
3174
  startingPosition,
3176
3175
  valueLength,
3177
3176
  previousValueLength: valueLength,
3178
- hasSelection: getSelection().toString().length > 0
3177
+ hasSelection: getSelection().toString().length > 0,
3179
3178
  };
3180
3179
  }
3181
3180
  setCursorPosition(cursorData) {
3182
3181
  if (this.canSetSelection && !cursorData.hasSelection) {
3183
3182
  const input = this.inputField;
3184
3183
  const { valueLength, previousValueLength, startingPosition } = cursorData;
3185
- if (startingPosition === valueLength &&
3186
- valueLength >= previousValueLength &&
3187
- this.type === 'currency') {
3184
+ if (startingPosition === valueLength && valueLength >= previousValueLength && this.type === 'currency') {
3188
3185
  input.setSelectionRange(valueLength, valueLength);
3189
3186
  }
3190
3187
  else {