@lanaco/lnc-react-ui 4.0.35 → 4.0.37

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 (286) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +11 -11
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +3 -3
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +3 -3
  13. package/dist/Badge.cjs +2 -2
  14. package/dist/Badge.js +3 -3
  15. package/dist/BannerSectionBasic.cjs +1 -1
  16. package/dist/BannerSectionBasic.js +1 -1
  17. package/dist/BannerSectionCarousel.cjs +2 -2
  18. package/dist/BannerSectionCarousel.js +63 -63
  19. package/dist/BannerSectionGrid.cjs +3 -3
  20. package/dist/BannerSectionGrid.js +43 -39
  21. package/dist/BannerSectionSimple.cjs +1 -1
  22. package/dist/BannerSectionSimple.js +1 -1
  23. package/dist/BannerSectionWithList.cjs +1 -1
  24. package/dist/BannerSectionWithList.js +2 -2
  25. package/dist/BannerSectionWithListImage.cjs +1 -1
  26. package/dist/BannerSectionWithListImage.js +1 -1
  27. package/dist/BlogsSectionDetailed.cjs +1 -1
  28. package/dist/BlogsSectionDetailed.js +3 -3
  29. package/dist/BlogsSectionLarge.cjs +1 -1
  30. package/dist/BlogsSectionLarge.js +2 -2
  31. package/dist/BlogsSectionSimple.cjs +1 -1
  32. package/dist/BlogsSectionSimple.js +3 -3
  33. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  34. package/dist/BlogsSectionSimpleCentered.js +2 -2
  35. package/dist/BlogsSectionWithFilters.cjs +11 -108
  36. package/dist/BlogsSectionWithFilters.js +59 -437
  37. package/dist/BrandHitsSection.cjs +1 -1
  38. package/dist/BrandHitsSection.js +2 -2
  39. package/dist/Breadcrumbs.cjs +3 -3
  40. package/dist/Breadcrumbs.js +12 -12
  41. package/dist/Button.cjs +1 -1
  42. package/dist/Button.js +4 -4
  43. package/dist/ButtonGroup.cjs +1 -1
  44. package/dist/ButtonGroup.js +3 -3
  45. package/dist/CalorieCalculatorSection.cjs +333 -0
  46. package/dist/CalorieCalculatorSection.js +851 -0
  47. package/dist/CheckBoxInput.cjs +1 -1
  48. package/dist/CheckBoxInput.js +3 -3
  49. package/dist/Chip.cjs +2 -2
  50. package/dist/Chip.js +3 -3
  51. package/dist/ColorInput.cjs +1 -1
  52. package/dist/ColorInput.js +4 -4
  53. package/dist/ConfirmationForm.cjs +2 -2
  54. package/dist/ConfirmationForm.js +3 -3
  55. package/dist/CustomLoanMapSection.cjs +1 -1
  56. package/dist/CustomLoanMapSection.js +2 -2
  57. package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
  58. package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
  59. package/dist/DataView.cjs +1 -1
  60. package/dist/DataView.js +1 -1
  61. package/dist/DateInput.cjs +4 -4
  62. package/dist/DateInput.js +76 -80
  63. package/dist/DecimalInput.cjs +3 -3
  64. package/dist/DecimalInput.js +4 -4
  65. package/dist/DecimalInputV2.cjs +2 -2
  66. package/dist/DecimalInputV2.js +3 -3
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +2 -2
  70. package/dist/DetailsView.js +3 -3
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +3 -3
  73. package/dist/DragAndDropFile.cjs +6 -6
  74. package/dist/DragAndDropFile.js +4 -4
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +3 -3
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +12 -12
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +5 -5
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +10 -10
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +5 -5
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +6 -6
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +3 -3
  89. package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
  90. package/dist/FieldOfInterestsMasonrySection.js +43 -42
  91. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  92. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
  93. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
  94. package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
  95. package/dist/FileInput.cjs +2 -2
  96. package/dist/FileInput.js +3 -3
  97. package/dist/FlexBox.cjs +1 -1
  98. package/dist/FlexBox.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +2 -2
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +7 -7
  103. package/dist/FormView.cjs +2 -2
  104. package/dist/FormView.js +15 -15
  105. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +1 -1
  108. package/dist/GiftCardsSection.js +2 -2
  109. package/dist/Grid.cjs +1 -1
  110. package/dist/Grid.js +1 -1
  111. package/dist/GridItem.cjs +1 -1
  112. package/dist/GridItem.js +1 -1
  113. package/dist/Icon.cjs +2 -2
  114. package/dist/Icon.js +6 -6
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +3 -3
  117. package/dist/Kanban.cjs +7 -7
  118. package/dist/Kanban.js +37 -41
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +2 -2
  121. package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
  122. package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
  123. package/dist/KanbanCard.cjs +1 -1
  124. package/dist/KanbanCard.js +3 -3
  125. package/dist/KanbanFooter.cjs +1 -1
  126. package/dist/KanbanFooter.js +2 -2
  127. package/dist/KanbanHeader.cjs +2 -2
  128. package/dist/KanbanHeader.js +2 -2
  129. package/dist/KanbanView.cjs +1 -1
  130. package/dist/KanbanView.js +3 -3
  131. package/dist/Link.cjs +2 -2
  132. package/dist/Link.js +6 -6
  133. package/dist/LocationSearchSection.cjs +53 -0
  134. package/dist/LocationSearchSection.js +108 -0
  135. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  136. package/dist/MasonryGeneralCardsSection.js +3 -3
  137. package/dist/MenuItem.cjs +2 -2
  138. package/dist/MenuItem.js +3 -3
  139. package/dist/Modal.cjs +1 -1
  140. package/dist/Modal.js +6 -6
  141. package/dist/MultiSelectDropdown.cjs +1 -1
  142. package/dist/MultiSelectDropdown.js +3 -3
  143. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  144. package/dist/MultiSelectDropdownLookup.js +3 -3
  145. package/dist/NestedDropdownItem.cjs +1 -1
  146. package/dist/NestedDropdownItem.js +9 -9
  147. package/dist/NestedMenuItem.cjs +2 -2
  148. package/dist/NestedMenuItem.js +8 -8
  149. package/dist/Notification.cjs +1 -1
  150. package/dist/Notification.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +3 -3
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +3 -3
  155. package/dist/NumberInput.cjs +2 -2
  156. package/dist/NumberInput.js +4 -4
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +3 -3
  159. package/dist/PageLayout.cjs +2 -2
  160. package/dist/PageLayout.js +2 -2
  161. package/dist/Pagination.cjs +2 -2
  162. package/dist/Pagination.js +2 -2
  163. package/dist/PasswordInput.cjs +2 -2
  164. package/dist/PasswordInput.js +4 -4
  165. package/dist/PopoverContent.cjs +1 -1
  166. package/dist/PopoverContent.js +5 -5
  167. package/dist/PopoverDescription.cjs +1 -1
  168. package/dist/PopoverDescription.js +1 -1
  169. package/dist/PopoverHeading.cjs +1 -1
  170. package/dist/PopoverHeading.js +1 -1
  171. package/dist/PopoverTrigger.cjs +1 -1
  172. package/dist/PopoverTrigger.js +1 -1
  173. package/dist/ProductsWithBannerSection.cjs +1 -1
  174. package/dist/ProductsWithBannerSection.js +3 -3
  175. package/dist/ProgressBar.cjs +1 -1
  176. package/dist/ProgressBar.js +8 -8
  177. package/dist/QuizSection.cjs +1 -1
  178. package/dist/QuizSection.js +2 -2
  179. package/dist/RadioGroup.cjs +1 -1
  180. package/dist/RadioGroup.js +2 -2
  181. package/dist/RadioInput.cjs +1 -1
  182. package/dist/RadioInput.js +3 -3
  183. package/dist/RangeSlider.cjs +2 -2
  184. package/dist/RangeSlider.js +3 -3
  185. package/dist/SalesCampaignsSection.cjs +423 -0
  186. package/dist/SalesCampaignsSection.js +967 -0
  187. package/dist/SearchBar.cjs +1 -1
  188. package/dist/SearchBar.js +6 -6
  189. package/dist/Separator.cjs +1 -1
  190. package/dist/Separator.js +3 -3
  191. package/dist/ShopCardsSection.cjs +1 -1
  192. package/dist/ShopCardsSection.js +2 -2
  193. package/dist/Sidebar.cjs +1 -1
  194. package/dist/Sidebar.js +3 -3
  195. package/dist/SimpleCategoriesSection.cjs +9 -9
  196. package/dist/SimpleCategoriesSection.js +48 -44
  197. package/dist/SimpleProductsSection.cjs +1 -1
  198. package/dist/SimpleProductsSection.js +3 -3
  199. package/dist/Spinner.cjs +1 -1
  200. package/dist/Spinner.js +12 -12
  201. package/dist/Surface.cjs +2 -2
  202. package/dist/Surface.js +3 -3
  203. package/dist/SwipeableDrawer.cjs +2 -2
  204. package/dist/SwipeableDrawer.js +3 -3
  205. package/dist/TabItem.cjs +1 -1
  206. package/dist/TabItem.js +11 -11
  207. package/dist/Table.cjs +7 -7
  208. package/dist/Table.js +4 -4
  209. package/dist/TableView.cjs +1 -1
  210. package/dist/TableView.js +2 -2
  211. package/dist/Tabs.cjs +2 -2
  212. package/dist/Tabs.js +2 -2
  213. package/dist/TextAreaInput.cjs +12 -12
  214. package/dist/TextAreaInput.js +124 -112
  215. package/dist/TextInput.cjs +2 -2
  216. package/dist/TextInput.js +4 -4
  217. package/dist/ThemeProvider.cjs +10 -10
  218. package/dist/ThemeProvider.js +189 -187
  219. package/dist/TimeInput.cjs +2 -2
  220. package/dist/TimeInput.js +4 -4
  221. package/dist/Toggle.cjs +15 -15
  222. package/dist/Toggle.js +40 -50
  223. package/dist/TreeMenu.cjs +1 -1
  224. package/dist/TreeMenu.js +1 -1
  225. package/dist/TreeMenuSeparator.cjs +1 -1
  226. package/dist/TreeMenuSeparator.js +3 -3
  227. package/dist/UploadedFile.cjs +2 -2
  228. package/dist/UploadedFile.js +16 -16
  229. package/dist/UrgentSaleProductsSection.cjs +1 -1
  230. package/dist/UrgentSaleProductsSection.js +2 -2
  231. package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
  232. package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
  233. package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
  234. package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
  235. package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
  236. package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
  237. package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
  238. package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
  239. package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
  240. package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
  241. package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
  242. package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
  243. package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
  244. package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
  245. package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
  246. package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
  247. package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
  248. package/dist/index-CT6_7UFb.js +350 -0
  249. package/dist/index-Cb_AeN9A.cjs +4 -0
  250. package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
  251. package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
  252. package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
  253. package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
  254. package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
  255. package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
  256. package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
  257. package/dist/index-EeoArxOx.cjs +174 -0
  258. package/dist/index-Q_i-aqsF.cjs +95 -0
  259. package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
  260. package/dist/index-wy-PXQR9.js +47 -0
  261. package/dist/index.cjs +1 -1
  262. package/dist/index.js +96 -92
  263. package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
  264. package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
  265. package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
  266. package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
  267. package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
  268. package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
  269. package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
  270. package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
  271. package/dist/usePopover.cjs +1 -1
  272. package/dist/usePopover.js +6 -6
  273. package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
  274. package/dist/utils-NZLCh-J5.cjs +51 -0
  275. package/package.json +5 -2
  276. package/vite.config.js +12 -1
  277. package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
  278. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
  279. package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
  280. package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
  281. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
  282. package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
  283. package/dist/floating-ui.dom-BdUovkEr.js +0 -938
  284. package/dist/index-Ct1N7fF4.cjs +0 -174
  285. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
  286. package/dist/utils-scuIeOqU.cjs +0 -51
@@ -1,10 +1,10 @@
1
- "use strict";const B=require("react/jsx-runtime"),v=require("./index-BPVoEhTF.cjs"),F=require("react"),ae=require("./index-DaiUAQVF.cjs"),K=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),b=require("./utils-scuIeOqU.cjs"),ie=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs");function A(){}function oe(){return!0}function O(a){return!!(a||"").match(/\d/)}function W(a){return a==null}function q(a){return a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ne(a){switch(a){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function se(a,f,u){var e=ne(u),t=a.search(/[1-9]/);return t=t===-1?a.length:t,a.substring(0,t)+a.substring(t,a.length).replace(e,"$1"+f)}function z(a,f){f===void 0&&(f=!0);var u=a[0]==="-",e=u&&f;a=a.replace("-","");var t=a.split("."),r=t[0],o=t[1]||"";return{beforeDecimal:r,afterDecimal:o,hasNagation:u,addNegation:e}}function fe(a){if(!a)return a;var f=a[0]==="-";f&&(a=a.substring(1,a.length));var u=a.split("."),e=u[0].replace(/^0+/,"")||"0",t=u[1]||"";return(f?"-":"")+e+(t?"."+t:"")}function H(a,f,u){for(var e="",t=u?"0":"",r=0;r<=f-1;r++)e+=a[r]||t;return e}function G(a,f){return Array(f+1).join(a)}function le(a){a+="";var f=a[0]==="-"?"-":"";f&&(a=a.substring(1));var u=a.split(/[eE]/g),e=u[0],t=u[1];if(t=Number(t),!t)return f+e;e=e.replace(".","");var r=1+t,o=e.length;return r<0?e="0."+G("0",Math.abs(r))+e:r>=o?e=e+G("0",r-o):e=(e.substring(0,r)||"0")+"."+e.substring(r),f+e}function ue(a,f,u){if(["","-"].indexOf(a)!==-1)return a;var e=a.indexOf(".")!==-1&&f,t=z(a),r=t.beforeDecimal,o=t.afterDecimal,s=t.hasNagation,i=parseFloat("0."+(o||"0")),n=o.length<=f?"0."+o:i.toFixed(f),l=n.split("."),c=r.split("").reverse().reduce(function(m,y,x){return m.length>x?(Number(m[0])+Number(y)).toString()+m.substring(1,m.length):y+m},l[0]),p=H(l[1]||"",Math.min(f,o.length),u),d=s?"-":"",h=e?".":"";return""+d+c+h+p}function _(a,f){if(a.value=a.value,a!==null){if(a.createTextRange){var u=a.createTextRange();return u.move("character",f),u.select(),!0}return a.selectionStart||a.selectionStart===0?(a.focus(),a.setSelectionRange(f,f),!0):(a.focus(),!1)}}function pe(a,f){for(var u=0,e=0,t=a.length,r=f.length;a[u]===f[u]&&u<t;)u++;for(;a[t-1-e]===f[r-1-e]&&r-e>u&&t-e>u;)e++;return{start:u,end:t-e}}function L(a,f,u){return Math.min(Math.max(a,f),u)}function Z(a){return Math.max(a.selectionStart,a.selectionEnd)}function ce(a){return a||typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function de(a,f){var u={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&f.indexOf(e)===-1&&(u[e]=a[e]);return u}var me={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:A,onChange:A,onKeyDown:A,onMouseUp:A,onFocus:A,onBlur:A,isAllowed:oe},J=function(a){function f(u){a.call(this,u);var e=u.defaultValue;this.validateProps();var t=this.formatValueProp(e);this.state={value:t,numAsString:this.removeFormatting(t),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return a&&(f.__proto__=a),f.prototype=Object.create(a&&a.prototype),f.prototype.constructor=f,f.prototype.componentDidMount=function(){this.setState({mounted:!0})},f.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},f.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},f.prototype.updateValueIfRequired=function(e){var t=this,r=t.props,o=t.state,s=t.focusedElm,i=o.value,n=o.numAsString;if(n===void 0&&(n=""),e!==r){this.validateProps();var l=this.formatNumString(n),c=W(r.value)?l:this.formatValueProp(),p=this.removeFormatting(c),d=parseFloat(p),h=parseFloat(n);((!isNaN(d)||!isNaN(h))&&d!==h||l!==i||s===null&&c!==i)&&this.updateValue({formattedValue:c,numAsString:p,input:s,source:"prop",event:null})}},f.prototype.getFloatString=function(e){e===void 0&&(e="");var t=this.props,r=t.decimalScale,o=this.getSeparators(),s=o.decimalSeparator,i=this.getNumberRegex(!0),n=e[0]==="-";n&&(e=e.replace("-","")),s&&r===0&&(e=e.split(s)[0]),e=(e.match(i)||[]).join("").replace(s,".");var l=e.indexOf(".");return l!==-1&&(e=e.substring(0,l)+"."+e.substring(l+1,e.length).replace(new RegExp(q(s),"g"),"")),n&&(e="-"+e),e},f.prototype.getNumberRegex=function(e,t){var r=this.props,o=r.format,s=r.decimalScale,i=r.customNumerals,n=this.getSeparators(),l=n.decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(l&&s!==0&&!t&&!o?"|"+q(l):""),e?"g":void 0)},f.prototype.getSeparators=function(){var e=this.props,t=e.decimalSeparator,r=this.props,o=r.thousandSeparator,s=r.allowedDecimalSeparators;return o===!0&&(o=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:s}},f.prototype.getMaskAtIndex=function(e){var t=this.props,r=t.mask;return r===void 0&&(r=" "),typeof r=="string"?r:r[e]||" "},f.prototype.getValueObject=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},f.prototype.validateProps=function(){var e=this.props,t=e.mask,r=this.getSeparators(),o=r.decimalSeparator,s=r.thousandSeparator;if(o===s)throw new Error(`
1
+ "use strict";const B=require("react/jsx-runtime"),v=require("./index-BPVoEhTF.cjs"),R=require("react"),ae=require("./index-DaiUAQVF.cjs"),K=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),b=require("./utils-NZLCh-J5.cjs"),ie=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function A(){}function oe(){return!0}function O(a){return!!(a||"").match(/\d/)}function W(a){return a==null}function q(a){return a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ne(a){switch(a){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function se(a,f,u){var e=ne(u),t=a.search(/[1-9]/);return t=t===-1?a.length:t,a.substring(0,t)+a.substring(t,a.length).replace(e,"$1"+f)}function z(a,f){f===void 0&&(f=!0);var u=a[0]==="-",e=u&&f;a=a.replace("-","");var t=a.split("."),r=t[0],o=t[1]||"";return{beforeDecimal:r,afterDecimal:o,hasNagation:u,addNegation:e}}function fe(a){if(!a)return a;var f=a[0]==="-";f&&(a=a.substring(1,a.length));var u=a.split("."),e=u[0].replace(/^0+/,"")||"0",t=u[1]||"";return(f?"-":"")+e+(t?"."+t:"")}function H(a,f,u){for(var e="",t=u?"0":"",r=0;r<=f-1;r++)e+=a[r]||t;return e}function G(a,f){return Array(f+1).join(a)}function le(a){a+="";var f=a[0]==="-"?"-":"";f&&(a=a.substring(1));var u=a.split(/[eE]/g),e=u[0],t=u[1];if(t=Number(t),!t)return f+e;e=e.replace(".","");var r=1+t,o=e.length;return r<0?e="0."+G("0",Math.abs(r))+e:r>=o?e=e+G("0",r-o):e=(e.substring(0,r)||"0")+"."+e.substring(r),f+e}function ue(a,f,u){if(["","-"].indexOf(a)!==-1)return a;var e=a.indexOf(".")!==-1&&f,t=z(a),r=t.beforeDecimal,o=t.afterDecimal,s=t.hasNagation,i=parseFloat("0."+(o||"0")),n=o.length<=f?"0."+o:i.toFixed(f),l=n.split("."),c=r.split("").reverse().reduce(function(m,y,x){return m.length>x?(Number(m[0])+Number(y)).toString()+m.substring(1,m.length):y+m},l[0]),p=H(l[1]||"",Math.min(f,o.length),u),d=s?"-":"",h=e?".":"";return""+d+c+h+p}function _(a,f){if(a.value=a.value,a!==null){if(a.createTextRange){var u=a.createTextRange();return u.move("character",f),u.select(),!0}return a.selectionStart||a.selectionStart===0?(a.focus(),a.setSelectionRange(f,f),!0):(a.focus(),!1)}}function pe(a,f){for(var u=0,e=0,t=a.length,r=f.length;a[u]===f[u]&&u<t;)u++;for(;a[t-1-e]===f[r-1-e]&&r-e>u&&t-e>u;)e++;return{start:u,end:t-e}}function L(a,f,u){return Math.min(Math.max(a,f),u)}function Z(a){return Math.max(a.selectionStart,a.selectionEnd)}function ce(a){return a||typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function de(a,f){var u={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&f.indexOf(e)===-1&&(u[e]=a[e]);return u}var me={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:A,onChange:A,onKeyDown:A,onMouseUp:A,onFocus:A,onBlur:A,isAllowed:oe},J=function(a){function f(u){a.call(this,u);var e=u.defaultValue;this.validateProps();var t=this.formatValueProp(e);this.state={value:t,numAsString:this.removeFormatting(t),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return a&&(f.__proto__=a),f.prototype=Object.create(a&&a.prototype),f.prototype.constructor=f,f.prototype.componentDidMount=function(){this.setState({mounted:!0})},f.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},f.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},f.prototype.updateValueIfRequired=function(e){var t=this,r=t.props,o=t.state,s=t.focusedElm,i=o.value,n=o.numAsString;if(n===void 0&&(n=""),e!==r){this.validateProps();var l=this.formatNumString(n),c=W(r.value)?l:this.formatValueProp(),p=this.removeFormatting(c),d=parseFloat(p),h=parseFloat(n);((!isNaN(d)||!isNaN(h))&&d!==h||l!==i||s===null&&c!==i)&&this.updateValue({formattedValue:c,numAsString:p,input:s,source:"prop",event:null})}},f.prototype.getFloatString=function(e){e===void 0&&(e="");var t=this.props,r=t.decimalScale,o=this.getSeparators(),s=o.decimalSeparator,i=this.getNumberRegex(!0),n=e[0]==="-";n&&(e=e.replace("-","")),s&&r===0&&(e=e.split(s)[0]),e=(e.match(i)||[]).join("").replace(s,".");var l=e.indexOf(".");return l!==-1&&(e=e.substring(0,l)+"."+e.substring(l+1,e.length).replace(new RegExp(q(s),"g"),"")),n&&(e="-"+e),e},f.prototype.getNumberRegex=function(e,t){var r=this.props,o=r.format,s=r.decimalScale,i=r.customNumerals,n=this.getSeparators(),l=n.decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(l&&s!==0&&!t&&!o?"|"+q(l):""),e?"g":void 0)},f.prototype.getSeparators=function(){var e=this.props,t=e.decimalSeparator,r=this.props,o=r.thousandSeparator,s=r.allowedDecimalSeparators;return o===!0&&(o=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:s}},f.prototype.getMaskAtIndex=function(e){var t=this.props,r=t.mask;return r===void 0&&(r=" "),typeof r=="string"?r:r[e]||" "},f.prototype.getValueObject=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},f.prototype.validateProps=function(){var e=this.props,t=e.mask,r=this.getSeparators(),o=r.decimalSeparator,s=r.thousandSeparator;if(o===s)throw new Error(`
2
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+s+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+o+` (default value for decimalSeparator is .)
5
5
  `);if(t){var i=t==="string"?t:t.toString();if(i.match(/\d/g))throw new Error(`
6
6
  Mask `+t+` should not contain numeric character;
7
- `)}},f.prototype.setPatchedCaretPosition=function(e,t,r){_(e,t),this.caretPositionTimeout=setTimeout(function(){e.value===r&&_(e,t)},0)},f.prototype.correctCaretPosition=function(e,t,r){var o=this.props,s=o.prefix,i=o.suffix,n=o.format;if(e==="")return 0;if(t=L(t,0,e.length),!n){var l=e[0]==="-";return L(t,s.length+(l?1:0),e.length-i.length)}if(typeof n=="function"||n[t]==="#"&&O(e[t])||n[t-1]==="#"&&O(e[t-1]))return t;var c=n.indexOf("#"),p=n.lastIndexOf("#");t=L(t,c,p+1);for(var d=n.substring(t,n.length).indexOf("#"),h=t,m=t+(d===-1?0:d);h>c&&(n[h]!=="#"||!O(e[h]));)h-=1;var y=!O(e[m])||r==="left"&&t!==c||t-h<m-t;return y?O(e[h])?h+1:h:m},f.prototype.getCaretPosition=function(e,t,r){var o=this.props,s=o.format,i=this.state.value,n=this.getNumberRegex(!0),l=(e.match(n)||[]).join(""),c=(t.match(n)||[]).join(""),p,d;for(p=0,d=0;d<r;d++){var h=e[d]||"",m=t[p]||"";if(!(!h.match(n)&&h!==m)&&!(h==="0"&&m.match(n)&&m!=="0"&&l.length!==c.length)){for(;h!==t[p]&&p<t.length;)p++;p++}}return typeof s=="string"&&!i&&(p=t.length),p=this.correctCaretPosition(t,p),p},f.prototype.removePrefixAndSuffix=function(e){var t=this.props,r=t.format,o=t.prefix,s=t.suffix;if(!r&&e){var i=e[0]==="-";i&&(e=e.substring(1,e.length)),e=o&&e.indexOf(o)===0?e.substring(o.length,e.length):e;var n=e.lastIndexOf(s);e=s&&n!==-1&&n===e.length-s.length?e.substring(0,n):e,i&&(e="-"+e)}return e},f.prototype.removePatternFormatting=function(e){for(var t=this.props,r=t.format,o=r.split("#").filter(function(d){return d!==""}),s=0,i="",n=0,l=o.length;n<=l;n++){var c=o[n]||"",p=n===l?e.length:e.indexOf(c,s);if(p===-1){i=e;break}else i+=e.substring(s,p),s=p+c.length}return(i.match(this.getNumberRegex(!0))||[]).join("")},f.prototype.removeFormatting=function(e){var t=this.props,r=t.format,o=t.removeFormatting;return e&&(r?typeof r=="string"?e=this.removePatternFormatting(e):typeof o=="function"?e=o(e):e=(e.match(this.getNumberRegex(!0))||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e)},f.prototype.formatWithPattern=function(e){for(var t=this.props,r=t.format,o=0,s=r.split(""),i=0,n=r.length;i<n;i++)r[i]==="#"&&(s[i]=e[o]||this.getMaskAtIndex(o),o+=1);return s.join("")},f.prototype.formatAsNumber=function(e){var t=this.props,r=t.decimalScale,o=t.fixedDecimalScale,s=t.prefix,i=t.suffix,n=t.allowNegative,l=t.thousandsGroupStyle,c=this.getSeparators(),p=c.thousandSeparator,d=c.decimalSeparator,h=e.indexOf(".")!==-1||r&&o,m=z(e,n),y=m.beforeDecimal,x=m.afterDecimal,N=m.addNegation;return r!==void 0&&(x=H(x,r,o)),p&&(y=se(y,p,l)),s&&(y=s+y),i&&(x=x+i),N&&(y="-"+y),e=y+(h&&d||"")+x,e},f.prototype.formatNumString=function(e){e===void 0&&(e="");var t=this.props,r=t.format,o=t.allowEmptyFormatting,s=t.customNumerals,i=e;if(s&&s.length===10){var n=new RegExp("["+s.join("")+"]","g");i=e.replace(n,function(l){return s.indexOf(l).toString()})}return e===""&&!o?i="":e==="-"&&!r?i="-":typeof r=="string"?i=this.formatWithPattern(i):typeof r=="function"?i=r(i):i=this.formatAsNumber(i),i},f.prototype.formatValueProp=function(e){var t=this.props,r=t.format,o=t.decimalScale,s=t.fixedDecimalScale,i=t.allowEmptyFormatting,n=this.props,l=n.value,c=n.isNumericString;l=W(l)?e:l;var p=!l&&l!==0;if(p&&i&&(l=""),p&&!i)return"";typeof l=="number"&&(l=le(l),c=!0),l==="Infinity"&&c&&(l=""),c&&!r&&typeof o=="number"&&(l=ue(l,o,s));var d=c?this.formatNumString(l):this.formatInput(l);return d},f.prototype.formatNegation=function(e){e===void 0&&(e="");var t=this.props,r=t.allowNegative,o=new RegExp("(-)"),s=new RegExp("(-)(.)*(-)"),i=o.test(e),n=s.test(e);return e=e.replace(/-/g,""),i&&!n&&r&&(e="-"+e),e},f.prototype.formatInput=function(e){e===void 0&&(e="");var t=this.props,r=t.format;return r||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)},f.prototype.isCharacterAFormat=function(e,t){var r=this.props,o=r.format,s=r.prefix,i=r.suffix,n=r.decimalScale,l=r.fixedDecimalScale,c=this.getSeparators(),p=c.decimalSeparator;return!!(typeof o=="string"&&o[e]!=="#"||!o&&(e<s.length||e>=t.length-i.length||n&&l&&t[e]===p))},f.prototype.correctInputValue=function(e,t,r){var o=this,s=this.props,i=s.format,n=s.allowNegative,l=s.prefix,c=s.suffix,p=s.decimalScale,d=this.getSeparators(),h=d.allowedDecimalSeparators,m=d.decimalSeparator,y=this.state.numAsString||"",x=this.selectionBeforeInput,N=x.selectionStart,P=x.selectionEnd,C=pe(t,r),g=C.start,w=C.end;if(!i&&g===w&&h.indexOf(r[N])!==-1){var R=p===0?"":m;return r.substr(0,N)+R+r.substr(N+1,r.length)}var E=i?0:l.length,$=t.length-(i?0:c.length);if(r.length>t.length||!r.length||g===w||N===0&&P===t.length||g===0&&w===t.length||N===E&&P===$)return r;var j=t.substr(g,w-g),M=!![].concat(j).find(function(T,I){return o.isCharacterAFormat(I+g,t)});if(M){var U=t.substr(g),V={},S=[];[].concat(U).forEach(function(T,I){o.isCharacterAFormat(I+g,t)?V[I]=T:I>j.length-1&&S.push(T)}),Object.keys(V).forEach(function(T){S.length>T?S.splice(T,0,V[T]):S.push(V[T])}),r=t.substr(0,g)+S.join("")}if(!i){var D=this.removeFormatting(r),k=z(D,n),Y=k.beforeDecimal,ee=k.afterDecimal,te=k.addNegation,re=e<r.indexOf(m)+1;if(D.length<y.length&&re&&Y===""&&!parseFloat(ee))return te?"-":""}return r},f.prototype.updateValue=function(e){var t=e.formattedValue,r=e.input,o=e.setCaretPosition;o===void 0&&(o=!0);var s=e.source,i=e.event,n=e.numAsString,l=e.caretPos,c=this.props,p=c.onValueChange,d=this.state,h=d.value;if(r){if(l===void 0&&o){var m=e.inputValue||r.value,y=Z(r);r.value=t,l=this.getCaretPosition(m,t,y)}r.value=t,o&&this.setPatchedCaretPosition(r,l,t)}n===void 0&&(n=this.removeFormatting(t)),t!==h&&(this.setState({value:t,numAsString:n}),p(this.getValueObject(t,n),{event:i,source:s}))},f.prototype.onChange=function(e){var t=e.target,r=t.value,o=this,s=o.state,i=o.props,n=i.isAllowed,l=s.value||"",c=Z(t);r=this.correctInputValue(c,l,r);var p=this.formatInput(r)||"",d=this.removeFormatting(p),h=this.getValueObject(p,d),m=n(h);m||(p=l),this.updateValue({formattedValue:p,numAsString:d,inputValue:r,input:t,event:e,source:"event"}),m&&i.onChange(e)},f.prototype.onBlur=function(e){var t=this,r=t.props,o=t.state,s=r.format,i=r.onBlur,n=r.allowLeadingZeros,l=o.numAsString,c=o.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!s){isNaN(parseFloat(l))&&(l=""),n||(l=fe(l));var p=this.formatNumString(l);if(p!==c){this.updateValue({formattedValue:p,numAsString:l,input:e.target,setCaretPosition:!1,event:e,source:"event"}),i(e);return}}i(e)},f.prototype.onKeyDown=function(e){var t=e.target,r=e.key,o=t.selectionStart,s=t.selectionEnd,i=t.value;i===void 0&&(i="");var n,l=this.props,c=l.decimalScale,p=l.fixedDecimalScale,d=l.prefix,h=l.suffix,m=l.format,y=l.onKeyDown,x=c!==void 0&&p,N=this.getNumberRegex(!1,x),P=new RegExp("-"),C=typeof m=="string";if(this.selectionBeforeInput={selectionStart:o,selectionEnd:s},r==="ArrowLeft"||r==="Backspace"?n=o-1:r==="ArrowRight"?n=o+1:r==="Delete"&&(n=o),n===void 0||o!==s){y(e);return}var g=n,w=C?m.indexOf("#"):d.length,R=C?m.lastIndexOf("#")+1:i.length-h.length;if(r==="ArrowLeft"||r==="ArrowRight"){var E=r==="ArrowLeft"?"left":"right";g=this.correctCaretPosition(i,n,E)}else if(r==="Delete"&&!N.test(i[n])&&!P.test(i[n]))for(;!N.test(i[g])&&g<R;)g++;else if(r==="Backspace"&&!N.test(i[n])){if(o<=w+1&&i[0]==="-"&&typeof m>"u"){var $=i.substring(1);this.updateValue({formattedValue:$,caretPos:g,input:t,event:e,source:"event"})}else if(!P.test(i[n])){for(;!N.test(i[g-1])&&g>w;)g--;g=this.correctCaretPosition(i,g,"left")}}(g!==n||n<w||n>R)&&(e.preventDefault(),this.setPatchedCaretPosition(t,g,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(t,g,i),y(e)},f.prototype.onMouseUp=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd,s=t.value;if(s===void 0&&(s=""),r===o){var i=this.correctCaretPosition(s,r);i!==r&&this.setPatchedCaretPosition(t,i,s)}this.props.onMouseUp(e)},f.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout(function(){var r=e.target,o=r.selectionStart,s=r.selectionEnd,i=r.value;i===void 0&&(i="");var n=t.correctCaretPosition(i,o);n!==o&&!(o===0&&s===i.length)&&t.setPatchedCaretPosition(r,n,i),t.props.onFocus(e)},0)},f.prototype.render=function(){var e=this.props,t=e.type,r=e.displayType,o=e.customInput,s=e.renderText,i=e.getInputRef,n=e.format;e.thousandSeparator,e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle,e.decimalScale,e.fixedDecimalScale,e.prefix,e.suffix,e.removeFormatting,e.mask,e.defaultValue,e.isNumericString,e.allowNegative,e.allowEmptyFormatting,e.allowLeadingZeros,e.onValueChange,e.isAllowed,e.customNumerals,e.onChange,e.onKeyDown,e.onMouseUp,e.onFocus,e.onBlur,e.value;var l=de(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"]),c=l,p=this.state,d=p.value,h=p.mounted,m=h&&ce(n)?"numeric":void 0,y=Object.assign({inputMode:m},c,{type:t,value:d,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if(r==="text")return s?s(d,c)||null:F.createElement("span",Object.assign({},c,{ref:i}),d);if(o){var x=o;return F.createElement(x,Object.assign({},y,{ref:i}))}return F.createElement("input",Object.assign({},y,{ref:i}))},f}(F.Component);J.defaultProps=me;const he=K.newStyled.div`
7
+ `)}},f.prototype.setPatchedCaretPosition=function(e,t,r){_(e,t),this.caretPositionTimeout=setTimeout(function(){e.value===r&&_(e,t)},0)},f.prototype.correctCaretPosition=function(e,t,r){var o=this.props,s=o.prefix,i=o.suffix,n=o.format;if(e==="")return 0;if(t=L(t,0,e.length),!n){var l=e[0]==="-";return L(t,s.length+(l?1:0),e.length-i.length)}if(typeof n=="function"||n[t]==="#"&&O(e[t])||n[t-1]==="#"&&O(e[t-1]))return t;var c=n.indexOf("#"),p=n.lastIndexOf("#");t=L(t,c,p+1);for(var d=n.substring(t,n.length).indexOf("#"),h=t,m=t+(d===-1?0:d);h>c&&(n[h]!=="#"||!O(e[h]));)h-=1;var y=!O(e[m])||r==="left"&&t!==c||t-h<m-t;return y?O(e[h])?h+1:h:m},f.prototype.getCaretPosition=function(e,t,r){var o=this.props,s=o.format,i=this.state.value,n=this.getNumberRegex(!0),l=(e.match(n)||[]).join(""),c=(t.match(n)||[]).join(""),p,d;for(p=0,d=0;d<r;d++){var h=e[d]||"",m=t[p]||"";if(!(!h.match(n)&&h!==m)&&!(h==="0"&&m.match(n)&&m!=="0"&&l.length!==c.length)){for(;h!==t[p]&&p<t.length;)p++;p++}}return typeof s=="string"&&!i&&(p=t.length),p=this.correctCaretPosition(t,p),p},f.prototype.removePrefixAndSuffix=function(e){var t=this.props,r=t.format,o=t.prefix,s=t.suffix;if(!r&&e){var i=e[0]==="-";i&&(e=e.substring(1,e.length)),e=o&&e.indexOf(o)===0?e.substring(o.length,e.length):e;var n=e.lastIndexOf(s);e=s&&n!==-1&&n===e.length-s.length?e.substring(0,n):e,i&&(e="-"+e)}return e},f.prototype.removePatternFormatting=function(e){for(var t=this.props,r=t.format,o=r.split("#").filter(function(d){return d!==""}),s=0,i="",n=0,l=o.length;n<=l;n++){var c=o[n]||"",p=n===l?e.length:e.indexOf(c,s);if(p===-1){i=e;break}else i+=e.substring(s,p),s=p+c.length}return(i.match(this.getNumberRegex(!0))||[]).join("")},f.prototype.removeFormatting=function(e){var t=this.props,r=t.format,o=t.removeFormatting;return e&&(r?typeof r=="string"?e=this.removePatternFormatting(e):typeof o=="function"?e=o(e):e=(e.match(this.getNumberRegex(!0))||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e)},f.prototype.formatWithPattern=function(e){for(var t=this.props,r=t.format,o=0,s=r.split(""),i=0,n=r.length;i<n;i++)r[i]==="#"&&(s[i]=e[o]||this.getMaskAtIndex(o),o+=1);return s.join("")},f.prototype.formatAsNumber=function(e){var t=this.props,r=t.decimalScale,o=t.fixedDecimalScale,s=t.prefix,i=t.suffix,n=t.allowNegative,l=t.thousandsGroupStyle,c=this.getSeparators(),p=c.thousandSeparator,d=c.decimalSeparator,h=e.indexOf(".")!==-1||r&&o,m=z(e,n),y=m.beforeDecimal,x=m.afterDecimal,N=m.addNegation;return r!==void 0&&(x=H(x,r,o)),p&&(y=se(y,p,l)),s&&(y=s+y),i&&(x=x+i),N&&(y="-"+y),e=y+(h&&d||"")+x,e},f.prototype.formatNumString=function(e){e===void 0&&(e="");var t=this.props,r=t.format,o=t.allowEmptyFormatting,s=t.customNumerals,i=e;if(s&&s.length===10){var n=new RegExp("["+s.join("")+"]","g");i=e.replace(n,function(l){return s.indexOf(l).toString()})}return e===""&&!o?i="":e==="-"&&!r?i="-":typeof r=="string"?i=this.formatWithPattern(i):typeof r=="function"?i=r(i):i=this.formatAsNumber(i),i},f.prototype.formatValueProp=function(e){var t=this.props,r=t.format,o=t.decimalScale,s=t.fixedDecimalScale,i=t.allowEmptyFormatting,n=this.props,l=n.value,c=n.isNumericString;l=W(l)?e:l;var p=!l&&l!==0;if(p&&i&&(l=""),p&&!i)return"";typeof l=="number"&&(l=le(l),c=!0),l==="Infinity"&&c&&(l=""),c&&!r&&typeof o=="number"&&(l=ue(l,o,s));var d=c?this.formatNumString(l):this.formatInput(l);return d},f.prototype.formatNegation=function(e){e===void 0&&(e="");var t=this.props,r=t.allowNegative,o=new RegExp("(-)"),s=new RegExp("(-)(.)*(-)"),i=o.test(e),n=s.test(e);return e=e.replace(/-/g,""),i&&!n&&r&&(e="-"+e),e},f.prototype.formatInput=function(e){e===void 0&&(e="");var t=this.props,r=t.format;return r||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)},f.prototype.isCharacterAFormat=function(e,t){var r=this.props,o=r.format,s=r.prefix,i=r.suffix,n=r.decimalScale,l=r.fixedDecimalScale,c=this.getSeparators(),p=c.decimalSeparator;return!!(typeof o=="string"&&o[e]!=="#"||!o&&(e<s.length||e>=t.length-i.length||n&&l&&t[e]===p))},f.prototype.correctInputValue=function(e,t,r){var o=this,s=this.props,i=s.format,n=s.allowNegative,l=s.prefix,c=s.suffix,p=s.decimalScale,d=this.getSeparators(),h=d.allowedDecimalSeparators,m=d.decimalSeparator,y=this.state.numAsString||"",x=this.selectionBeforeInput,N=x.selectionStart,P=x.selectionEnd,C=pe(t,r),g=C.start,w=C.end;if(!i&&g===w&&h.indexOf(r[N])!==-1){var F=p===0?"":m;return r.substr(0,N)+F+r.substr(N+1,r.length)}var E=i?0:l.length,$=t.length-(i?0:c.length);if(r.length>t.length||!r.length||g===w||N===0&&P===t.length||g===0&&w===t.length||N===E&&P===$)return r;var j=t.substr(g,w-g),M=!![].concat(j).find(function(T,I){return o.isCharacterAFormat(I+g,t)});if(M){var U=t.substr(g),V={},S=[];[].concat(U).forEach(function(T,I){o.isCharacterAFormat(I+g,t)?V[I]=T:I>j.length-1&&S.push(T)}),Object.keys(V).forEach(function(T){S.length>T?S.splice(T,0,V[T]):S.push(V[T])}),r=t.substr(0,g)+S.join("")}if(!i){var D=this.removeFormatting(r),k=z(D,n),Y=k.beforeDecimal,ee=k.afterDecimal,te=k.addNegation,re=e<r.indexOf(m)+1;if(D.length<y.length&&re&&Y===""&&!parseFloat(ee))return te?"-":""}return r},f.prototype.updateValue=function(e){var t=e.formattedValue,r=e.input,o=e.setCaretPosition;o===void 0&&(o=!0);var s=e.source,i=e.event,n=e.numAsString,l=e.caretPos,c=this.props,p=c.onValueChange,d=this.state,h=d.value;if(r){if(l===void 0&&o){var m=e.inputValue||r.value,y=Z(r);r.value=t,l=this.getCaretPosition(m,t,y)}r.value=t,o&&this.setPatchedCaretPosition(r,l,t)}n===void 0&&(n=this.removeFormatting(t)),t!==h&&(this.setState({value:t,numAsString:n}),p(this.getValueObject(t,n),{event:i,source:s}))},f.prototype.onChange=function(e){var t=e.target,r=t.value,o=this,s=o.state,i=o.props,n=i.isAllowed,l=s.value||"",c=Z(t);r=this.correctInputValue(c,l,r);var p=this.formatInput(r)||"",d=this.removeFormatting(p),h=this.getValueObject(p,d),m=n(h);m||(p=l),this.updateValue({formattedValue:p,numAsString:d,inputValue:r,input:t,event:e,source:"event"}),m&&i.onChange(e)},f.prototype.onBlur=function(e){var t=this,r=t.props,o=t.state,s=r.format,i=r.onBlur,n=r.allowLeadingZeros,l=o.numAsString,c=o.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!s){isNaN(parseFloat(l))&&(l=""),n||(l=fe(l));var p=this.formatNumString(l);if(p!==c){this.updateValue({formattedValue:p,numAsString:l,input:e.target,setCaretPosition:!1,event:e,source:"event"}),i(e);return}}i(e)},f.prototype.onKeyDown=function(e){var t=e.target,r=e.key,o=t.selectionStart,s=t.selectionEnd,i=t.value;i===void 0&&(i="");var n,l=this.props,c=l.decimalScale,p=l.fixedDecimalScale,d=l.prefix,h=l.suffix,m=l.format,y=l.onKeyDown,x=c!==void 0&&p,N=this.getNumberRegex(!1,x),P=new RegExp("-"),C=typeof m=="string";if(this.selectionBeforeInput={selectionStart:o,selectionEnd:s},r==="ArrowLeft"||r==="Backspace"?n=o-1:r==="ArrowRight"?n=o+1:r==="Delete"&&(n=o),n===void 0||o!==s){y(e);return}var g=n,w=C?m.indexOf("#"):d.length,F=C?m.lastIndexOf("#")+1:i.length-h.length;if(r==="ArrowLeft"||r==="ArrowRight"){var E=r==="ArrowLeft"?"left":"right";g=this.correctCaretPosition(i,n,E)}else if(r==="Delete"&&!N.test(i[n])&&!P.test(i[n]))for(;!N.test(i[g])&&g<F;)g++;else if(r==="Backspace"&&!N.test(i[n])){if(o<=w+1&&i[0]==="-"&&typeof m>"u"){var $=i.substring(1);this.updateValue({formattedValue:$,caretPos:g,input:t,event:e,source:"event"})}else if(!P.test(i[n])){for(;!N.test(i[g-1])&&g>w;)g--;g=this.correctCaretPosition(i,g,"left")}}(g!==n||n<w||n>F)&&(e.preventDefault(),this.setPatchedCaretPosition(t,g,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(t,g,i),y(e)},f.prototype.onMouseUp=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd,s=t.value;if(s===void 0&&(s=""),r===o){var i=this.correctCaretPosition(s,r);i!==r&&this.setPatchedCaretPosition(t,i,s)}this.props.onMouseUp(e)},f.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout(function(){var r=e.target,o=r.selectionStart,s=r.selectionEnd,i=r.value;i===void 0&&(i="");var n=t.correctCaretPosition(i,o);n!==o&&!(o===0&&s===i.length)&&t.setPatchedCaretPosition(r,n,i),t.props.onFocus(e)},0)},f.prototype.render=function(){var e=this.props,t=e.type,r=e.displayType,o=e.customInput,s=e.renderText,i=e.getInputRef,n=e.format;e.thousandSeparator,e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle,e.decimalScale,e.fixedDecimalScale,e.prefix,e.suffix,e.removeFormatting,e.mask,e.defaultValue,e.isNumericString,e.allowNegative,e.allowEmptyFormatting,e.allowLeadingZeros,e.onValueChange,e.isAllowed,e.customNumerals,e.onChange,e.onKeyDown,e.onMouseUp,e.onFocus,e.onBlur,e.value;var l=de(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"]),c=l,p=this.state,d=p.value,h=p.mounted,m=h&&ce(n)?"numeric":void 0,y=Object.assign({inputMode:m},c,{type:t,value:d,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if(r==="text")return s?s(d,c)||null:R.createElement("span",Object.assign({},c,{ref:i}),d);if(o){var x=o;return R.createElement(x,Object.assign({},y,{ref:i}))}return R.createElement("input",Object.assign({},y,{ref:i}))},f}(R.Component);J.defaultProps=me;const he=K.newStyled.div`
8
8
  display: flex;
9
9
  align-items: center;
10
10
 
@@ -51,4 +51,4 @@
51
51
  `,Q=K.newStyled.span`
52
52
  padding: 0 12px;
53
53
  color: ${a=>b.getColorRgbaValue(a.theme,"Input",a.focused===!0?"primary":a.color,"enabled","prefix")};
54
- `,ge=K.newStyled(Q)``,X=F.forwardRef((a,f)=>{const{disabled:u,readOnly:e,debounceTime:t=0,prefix:r,suffix:o,thousandSeparator:s=".",decimalSeparator:i=",",decimalScale:n=2,fixedDecimalScale:l=!0,allowNegative:c=!0,onChange:p,onBlur:d,onFocus:h,onInputChange:m,className:y="",style:x={},size:N="small",color:P="primary",...C}=a,g=ie.useTheme(),[w,R]=F.useState(!1),E=F.useCallback(ae.debounce((S,D)=>$(S,D),t),[p]),$=(S,D)=>{p&&(p==null||p(S,D)),m==null||m(S,D)},j=(S,D)=>{E(D.event,S==null?void 0:S.floatValue)},M=()=>n<0?0:n>17?17:n,U=S=>{R(!0),h==null||h(S)},V=S=>{R(!1),d==null||d(S)};return B.jsxs(he,{style:x,className:y,theme:g,color:P,size:N,prefix:r,suffix:o,focused:w,disabled:u,readOnly:e,children:[r&&B.jsx(Q,{theme:g,color:P,focused:w,className:"lnc-input-prefix",children:r}),B.jsx(J,{getInputRef:f,className:"lnc-decimal-input",disabled:u,readOnly:e,thousandSeparator:s,decimalSeparator:i,decimalScale:M(),fixedDecimalScale:l,allowNegative:c,onFocus:U,onBlur:V,onValueChange:j,...C}),o&&B.jsx(ge,{theme:g,color:P,focused:w,className:"lnc-input-suffix",children:o})]})});X.propTypes={id:v.PropTypes.string,value:v.PropTypes.any,defaultValue:v.PropTypes.any,disabled:v.PropTypes.bool,readOnly:v.PropTypes.bool,debounceTime:v.PropTypes.number,prefix:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.element]),suffix:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.element]),thousandSeparator:v.PropTypes.oneOf([".",","," "]),decimalSeparator:v.PropTypes.oneOf([".",","]),decimalScale:v.PropTypes.number,fixedDecimalScale:v.PropTypes.bool,allowNegative:v.PropTypes.bool,onChange:v.PropTypes.func,onInputChange:v.PropTypes.func,onBlur:v.PropTypes.func,onFocus:v.PropTypes.func,className:v.PropTypes.string,style:v.PropTypes.object,size:v.PropTypes.oneOf(["small","medium","large"]),color:v.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=X;
54
+ `,ge=K.newStyled(Q)``,X=R.forwardRef((a,f)=>{const{disabled:u,readOnly:e,debounceTime:t=0,prefix:r,suffix:o,thousandSeparator:s=".",decimalSeparator:i=",",decimalScale:n=2,fixedDecimalScale:l=!0,allowNegative:c=!0,onChange:p,onBlur:d,onFocus:h,onInputChange:m,className:y="",style:x={},size:N="small",color:P="primary",...C}=a,g=ie.useTheme(),[w,F]=R.useState(!1),E=R.useCallback(ae.debounce((S,D)=>$(S,D),t),[p]),$=(S,D)=>{p&&(p==null||p(S,D)),m==null||m(S,D)},j=(S,D)=>{E(D.event,S==null?void 0:S.floatValue)},M=()=>n<0?0:n>17?17:n,U=S=>{F(!0),h==null||h(S)},V=S=>{F(!1),d==null||d(S)};return B.jsxs(he,{style:x,className:y,theme:g,color:P,size:N,prefix:r,suffix:o,focused:w,disabled:u,readOnly:e,children:[r&&B.jsx(Q,{theme:g,color:P,focused:w,className:"lnc-input-prefix",children:r}),B.jsx(J,{getInputRef:f,className:"lnc-decimal-input",disabled:u,readOnly:e,thousandSeparator:s,decimalSeparator:i,decimalScale:M(),fixedDecimalScale:l,allowNegative:c,onFocus:U,onBlur:V,onValueChange:j,...C}),o&&B.jsx(ge,{theme:g,color:P,focused:w,className:"lnc-input-suffix",children:o})]})});X.propTypes={id:v.PropTypes.string,value:v.PropTypes.any,defaultValue:v.PropTypes.any,disabled:v.PropTypes.bool,readOnly:v.PropTypes.bool,debounceTime:v.PropTypes.number,prefix:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.element]),suffix:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.element]),thousandSeparator:v.PropTypes.oneOf([".",","," "]),decimalSeparator:v.PropTypes.oneOf([".",","]),decimalScale:v.PropTypes.number,fixedDecimalScale:v.PropTypes.bool,allowNegative:v.PropTypes.bool,onChange:v.PropTypes.func,onInputChange:v.PropTypes.func,onBlur:v.PropTypes.func,onFocus:v.PropTypes.func,className:v.PropTypes.string,style:v.PropTypes.object,size:v.PropTypes.oneOf(["small","medium","large"]),color:v.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=X;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as ie, jsx as L } from "react/jsx-runtime";
2
2
  import { P as v } from "./index-S5Cd7WrG.js";
3
3
  import B, { forwardRef as oe, useState as ne, useCallback as se } from "react";
4
- import { d as fe } from "./index-CNBqQrtK.js";
5
- import { n as G } from "./emotion-styled.browser.esm-BiK8DcgW.js";
6
- import { d as M, a as R, b as le, e as ue, h as W, g as ce } from "./utils-jiuifwtJ.js";
7
- import { u as pe } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
4
+ import { d as fe } from "./index-CkWvbrVT.js";
5
+ import { n as G } from "./emotion-styled.browser.esm-CjCaF13H.js";
6
+ import { d as M, b as R, a as le, e as ue, h as W, c as ce } from "./utils-DtRLzzTZ.js";
7
+ import { u as pe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  function E() {
9
9
  }
10
10
  function de() {
@@ -1,4 +1,4 @@
1
- "use strict";const y=require("react/jsx-runtime"),i=require("./index-BPVoEhTF.cjs"),h=require("react"),$=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-scuIeOqU.cjs"),M=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),Q=$.newStyled.div`
1
+ "use strict";const y=require("react/jsx-runtime"),i=require("./index-BPVoEhTF.cjs"),h=require("react"),$=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),s=require("./utils-NZLCh-J5.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Q=$.newStyled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
@@ -45,4 +45,4 @@
45
45
  `,q=$.newStyled.span`
46
46
  padding: 0 12px;
47
47
  color: ${e=>s.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
48
- `,X=$.newStyled(q)``,W=h.forwardRef((e,R)=>{const{disabled:V,readOnly:j,prefix:m,suffix:f,decimalSeparator:c=",",decimalScale:a=2,allowNegative:U=!0,onKeyDown:B=()=>{},onBlur:b=()=>{},onFocus:T=()=>{},onChange:N=()=>{},value:x,className:K="",style:_={},size:F="small",color:P="primary",onInputChange:k=()=>{},allowNull:z=!0,...E}=e,w=M.useTheme(),[C,I]=h.useState(!1),O=o=>{var t,u;if(isNaN(+o)){if(z===!0&&(o==null||o===""))return""}else{const l=(t=o==null?void 0:o.toString())==null?void 0:t.split(".");if(!(l!=null&&l.length)>0)return"0"+c+new Array(a+1).join("0");if((l==null?void 0:l.length)===1)return l.at(0)+c+new Array(a+1).join("0");if((l==null?void 0:l.length)>1){let n=(u=l==null?void 0:l.at(1))==null?void 0:u.toString();if((n==null?void 0:n.length)===a)return l.at(0)+c+n;if((n==null?void 0:n.length)<a)return l.at(0)+c+l.at(1)+new Array(a-n.length+1).join("0");if((n==null?void 0:n.length)>a)return l.at(0)+c+n.slice(0,a)}}return"0"+c+new Array(a+1).join("0")},D=O(x),[G,p]=h.useState(D),r=h.useRef(D);h.useEffect(()=>{const o=O(x);r.current=o,p(r.current)},[x]);const H=o=>{I(!0),T==null||T(o)},J=o=>{I(!1),b==null||b(o)},L=o=>{var u,l;let t=(u=r.current)==null?void 0:u.replace(c,"");if(o.key==="Delete"||o.key==="Backspace")if(+t!=0){t=t.slice(0,(t==null?void 0:t.length)-1);let n=t.slice(0,(t==null?void 0:t.length)-a),d=t.slice((t==null?void 0:t.length)-a);(n==null?void 0:n.length)===0?n="0":n==="-"&&+t!=0?n="-0":n==="-"&&+t==0&&(n="0");let g=[n,c,d].join("");r.current=g,p(r.current)}else+t==0&&z===!0&&(r==null?void 0:r.current)!==""&&(r.current="",p(r.current),S(o));else if(o.key==="-"&&U===!0&&+t!=0)((l=r==null?void 0:r.current)==null?void 0:l.slice(1))==="-"?r.current=r.current.slice(1,r.current.length):r.current="-"+r.current,p(r.current);else if(!isNaN(o.key)){(t==null?void 0:t.length)===0?t="0"+new Array(a).join("0")+o.key:t=t+o.key;let n=t.slice(0,(t==null?void 0:t.length)-a),d=t.slice((t==null?void 0:t.length)-a);(n==null?void 0:n.length)>1&&(n=n.replace(/^0+/,""),(n==null?void 0:n.length)===0&&(n="0"));let g=[n,c,d].join("");r.current=g,p(r.current)}B(o)},S=o=>{var d,g;if((r==null?void 0:r.current)===""){o.target.value="",k(o,null),N(o,null);return}let t=(d=r==null?void 0:r.current)==null?void 0:d.split(c),u=+(t==null?void 0:t.at(0)),l=((g=t==null?void 0:t.at(1))==null?void 0:g.length)>0?`0.${t==null?void 0:t.at(1)}`:0,n=u+ +l;o.target.value=n,k(o,n),N(o,n)};return y.jsxs(Q,{style:_,className:K,theme:w,color:P,size:F,prefix:m,suffix:f,focused:C,disabled:V,readOnly:j,children:[m&&y.jsx(q,{theme:w,color:P,focused:C,className:"lnc-input-prefix",children:m}),y.jsx("input",{ref:R,type:"text",...E,onKeyDown:L,onBlur:J,value:G,className:"lnc-ui-decimal-v2-input",onFocus:H,disabled:V||j,onChange:o=>{console.log("CHG",o),S(o)}}),f&&y.jsx(X,{theme:w,color:P,focused:C,className:"lnc-input-suffix",children:f})]})});W.propTypes={id:i.PropTypes.string,value:i.PropTypes.any,defaultValue:i.PropTypes.any,disabled:i.PropTypes.bool,readOnly:i.PropTypes.bool,debounceTime:i.PropTypes.number,prefix:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),suffix:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),thousandSeparator:i.PropTypes.oneOf([".",","," "]),decimalSeparator:i.PropTypes.oneOf([".",","]),decimalScale:i.PropTypes.number,fixedDecimalScale:i.PropTypes.bool,allowNegative:i.PropTypes.bool,onChange:i.PropTypes.func,onInputChange:i.PropTypes.func,onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyDown:i.PropTypes.func,className:i.PropTypes.string,style:i.PropTypes.object,size:i.PropTypes.oneOf(["small","medium","large"]),color:i.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=W;
48
+ `,X=$.newStyled(q)``,W=h.forwardRef((e,R)=>{const{disabled:V,readOnly:j,prefix:m,suffix:f,decimalSeparator:c=",",decimalScale:a=2,allowNegative:U=!0,onKeyDown:B=()=>{},onBlur:b=()=>{},onFocus:T=()=>{},onChange:N=()=>{},value:x,className:F="",style:K={},size:_="small",color:P="primary",onInputChange:k=()=>{},allowNull:z=!0,...E}=e,w=M.useTheme(),[C,I]=h.useState(!1),O=o=>{var t,u;if(isNaN(+o)){if(z===!0&&(o==null||o===""))return""}else{const l=(t=o==null?void 0:o.toString())==null?void 0:t.split(".");if(!(l!=null&&l.length)>0)return"0"+c+new Array(a+1).join("0");if((l==null?void 0:l.length)===1)return l.at(0)+c+new Array(a+1).join("0");if((l==null?void 0:l.length)>1){let n=(u=l==null?void 0:l.at(1))==null?void 0:u.toString();if((n==null?void 0:n.length)===a)return l.at(0)+c+n;if((n==null?void 0:n.length)<a)return l.at(0)+c+l.at(1)+new Array(a-n.length+1).join("0");if((n==null?void 0:n.length)>a)return l.at(0)+c+n.slice(0,a)}}return"0"+c+new Array(a+1).join("0")},D=O(x),[G,p]=h.useState(D),r=h.useRef(D);h.useEffect(()=>{const o=O(x);r.current=o,p(r.current)},[x]);const H=o=>{I(!0),T==null||T(o)},J=o=>{I(!1),b==null||b(o)},L=o=>{var u,l;let t=(u=r.current)==null?void 0:u.replace(c,"");if(o.key==="Delete"||o.key==="Backspace")if(+t!=0){t=t.slice(0,(t==null?void 0:t.length)-1);let n=t.slice(0,(t==null?void 0:t.length)-a),d=t.slice((t==null?void 0:t.length)-a);(n==null?void 0:n.length)===0?n="0":n==="-"&&+t!=0?n="-0":n==="-"&&+t==0&&(n="0");let g=[n,c,d].join("");r.current=g,p(r.current)}else+t==0&&z===!0&&(r==null?void 0:r.current)!==""&&(r.current="",p(r.current),S(o));else if(o.key==="-"&&U===!0&&+t!=0)((l=r==null?void 0:r.current)==null?void 0:l.slice(1))==="-"?r.current=r.current.slice(1,r.current.length):r.current="-"+r.current,p(r.current);else if(!isNaN(o.key)){(t==null?void 0:t.length)===0?t="0"+new Array(a).join("0")+o.key:t=t+o.key;let n=t.slice(0,(t==null?void 0:t.length)-a),d=t.slice((t==null?void 0:t.length)-a);(n==null?void 0:n.length)>1&&(n=n.replace(/^0+/,""),(n==null?void 0:n.length)===0&&(n="0"));let g=[n,c,d].join("");r.current=g,p(r.current)}B(o)},S=o=>{var d,g;if((r==null?void 0:r.current)===""){o.target.value="",k(o,null),N(o,null);return}let t=(d=r==null?void 0:r.current)==null?void 0:d.split(c),u=+(t==null?void 0:t.at(0)),l=((g=t==null?void 0:t.at(1))==null?void 0:g.length)>0?`0.${t==null?void 0:t.at(1)}`:0,n=u+ +l;o.target.value=n,k(o,n),N(o,n)};return y.jsxs(Q,{style:K,className:F,theme:w,color:P,size:_,prefix:m,suffix:f,focused:C,disabled:V,readOnly:j,children:[m&&y.jsx(q,{theme:w,color:P,focused:C,className:"lnc-input-prefix",children:m}),y.jsx("input",{ref:R,type:"text",...E,onKeyDown:L,onBlur:J,value:G,className:"lnc-ui-decimal-v2-input",onFocus:H,disabled:V||j,onChange:o=>{console.log("CHG",o),S(o)}}),f&&y.jsx(X,{theme:w,color:P,focused:C,className:"lnc-input-suffix",children:f})]})});W.propTypes={id:i.PropTypes.string,value:i.PropTypes.any,defaultValue:i.PropTypes.any,disabled:i.PropTypes.bool,readOnly:i.PropTypes.bool,debounceTime:i.PropTypes.number,prefix:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),suffix:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),thousandSeparator:i.PropTypes.oneOf([".",","," "]),decimalSeparator:i.PropTypes.oneOf([".",","]),decimalScale:i.PropTypes.number,fixedDecimalScale:i.PropTypes.bool,allowNegative:i.PropTypes.bool,onChange:i.PropTypes.func,onInputChange:i.PropTypes.func,onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyDown:i.PropTypes.func,className:i.PropTypes.string,style:i.PropTypes.object,size:i.PropTypes.oneOf(["small","medium","large"]),color:i.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=W;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as Y, jsx as N } from "react/jsx-runtime";
2
2
  import { P as l } from "./index-S5Cd7WrG.js";
3
3
  import { forwardRef as Z, useState as F, useRef as _, useEffect as v } from "react";
4
- import { n as k } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import { d as m, a as u, b as R, e as A, h as P, g as ee } from "./utils-jiuifwtJ.js";
6
- import { u as te } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
4
+ import { n as k } from "./emotion-styled.browser.esm-CjCaF13H.js";
5
+ import { d as m, b as u, a as R, e as A, h as P, c as ee } from "./utils-DtRLzzTZ.js";
6
+ import { u as te } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const ne = k.div`
8
8
  display: flex;
9
9
  align-items: center;
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),y=require("react"),S=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./consts-CtNoHdBj.cjs"),f=require("./Button.cjs"),a=require("./utils-scuIeOqU.cjs"),C=require("./useDetectMobile-D6d5LpdL.cjs"),h=require("./style-BEUISPP7.cjs"),d=require("./index-C5vAqIS6.cjs"),j=S.newStyled.div`
1
+ "use strict";const i=require("react/jsx-runtime"),y=require("react"),S=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),f=require("./Button.cjs"),a=require("./utils-NZLCh-J5.cjs"),C=require("./useDetectMobile-D6d5LpdL.cjs"),h=require("./style-BR3tIhP1.cjs"),d=require("./index-vXmvgZ2Y.cjs"),j=S.newStyled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -1,12 +1,12 @@
1
1
  import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as y } from "react";
3
- import { n as S } from "./emotion-styled.browser.esm-BiK8DcgW.js";
3
+ import { n as S } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
4
  import { M as w } from "./consts-C1uHV4xc.js";
5
5
  import h from "./Button.js";
6
- import { k as s } from "./utils-jiuifwtJ.js";
6
+ import { k as s } from "./utils-DtRLzzTZ.js";
7
7
  import { u as C } from "./useDetectMobile-BC6EGaBc.js";
8
- import { R as k } from "./style-BGQ1B_dp.js";
9
- import { D as m } from "./index-DKztZfzw.js";
8
+ import { R as k } from "./style-6tSw9aqK.js";
9
+ import { D as m } from "./index-D6g5ZqyJ.js";
10
10
  const v = S.div`
11
11
  display: grid;
12
12
  grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
@@ -1,4 +1,4 @@
1
- "use strict";const s=require("react/jsx-runtime"),k=require("react"),e=require("./index-BPVoEhTF.cjs"),T=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),n=require("./utils-scuIeOqU.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),W=require("./Button.cjs"),d=require("./IconButton.cjs"),A=T.newStyled.label`
1
+ "use strict";const s=require("react/jsx-runtime"),k=require("react"),e=require("./index-BPVoEhTF.cjs"),T=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),n=require("./utils-NZLCh-J5.cjs"),_=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),W=require("./Button.cjs"),c=require("./IconButton.cjs"),A=T.newStyled.label`
2
2
  display: block;
3
3
  margin-bottom: 4px;
4
4
  ${o=>n.getComponentTypographyCss(o.theme,"FormField",o.size,"enabled")}
@@ -15,4 +15,4 @@
15
15
  border-top: 1px solid rgba(0, 0, 0, 0.04);
16
16
  padding: 12px;
17
17
  background-color: ${o=>n.getColorRgbaValue(o.theme,"Popover","default","enabled","bg")};
18
- `,g=k.forwardRef((o,p)=>{const{__TYPE__:P="DETAILS_VIEW",goToPreviousView:a,data:l={},fields:y={},flexGridProps:u,goBackText:b="Go back",showBack:E=!0,showNext:v=!0,showPrevious:B=!0,showEdit:x=!0,disableGoBack:N=!1,disableNext:C=!1,disablePrevious:q=!1,disableEdit:h=!1,editOnTop:f=!1,goToNext:S=()=>{},goToPrevious:R=()=>{},onEdit:w=()=>{},goBack:V=()=>{},className:F="",color:t="primary",size:i="small",children:G,...I}=o,z=_.useTheme(),O=(r,c)=>{a&&a(),V(r,c)},$=()=>s.jsx(s.Fragment,{children:G||s.jsx(D,{spacing:10,...u,children:y.map((r,c)=>s.jsxs(L,{...r,children:[s.jsxs(m,{color:t,size:i,children:[r.label,":"]},c),l[r.accessor]]},c))})});return s.jsxs(Y,{ref:p,theme:z,color:t,borderRadius:"regular",className:F,...I,children:[s.jsxs(j,{children:[E&&s.jsx(W,{leadingIcon:"arrow-circle-left",text:b,btnType:"outline",style:{width:"fit-content"},onClick:r=>O(r,l),disabled:N,color:t,size:i},0),x&&f&&s.jsx(d,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]}),$(),s.jsxs(j,{children:[s.jsxs("div",{children:[v&&s.jsxs(s.Fragment,{children:[s.jsx(d,{btnType:"outline",icon:"angle-left",disabled:q,onClick:r=>R(l,r),color:t,size:i}),"  "]}),B&&s.jsx(d,{btnType:"outline",icon:"angle-right",disabled:C,onClick:r=>S(l,r),color:t,size:i})]}),x&&!f&&s.jsx(d,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]})]})});g.propTypes={__TYPE__:e.PropTypes.string,goBackText:e.PropTypes.string,fields:e.PropTypes.array,data:e.PropTypes.object,showBack:e.PropTypes.bool,showNext:e.PropTypes.bool,showPrevious:e.PropTypes.bool,showEdit:e.PropTypes.bool,disableGoBack:e.PropTypes.bool,disableNext:e.PropTypes.bool,disablePrevious:e.PropTypes.bool,disableEdit:e.PropTypes.bool,flexGridProps:e.PropTypes.any,editOnTop:e.PropTypes.bool,goToNext:e.PropTypes.func,goToPrevious:e.PropTypes.func,onEdit:e.PropTypes.func,goBack:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};g.displayName="DETAILS_VIEW";module.exports=g;
18
+ `,g=k.forwardRef((o,p)=>{const{__TYPE__:P="DETAILS_VIEW",goToPreviousView:a,data:l={},fields:y={},flexGridProps:u,goBackText:b="Go back",showBack:E=!0,showNext:v=!0,showPrevious:B=!0,showEdit:x=!0,disableGoBack:N=!1,disableNext:C=!1,disablePrevious:q=!1,disableEdit:h=!1,editOnTop:f=!1,goToNext:S=()=>{},goToPrevious:F=()=>{},onEdit:w=()=>{},goBack:R=()=>{},className:V="",color:t="primary",size:i="small",children:G,...I}=o,z=_.useTheme(),O=(r,d)=>{a&&a(),R(r,d)},$=()=>s.jsx(s.Fragment,{children:G||s.jsx(D,{spacing:10,...u,children:y.map((r,d)=>s.jsxs(L,{...r,children:[s.jsxs(m,{color:t,size:i,children:[r.label,":"]},d),l[r.accessor]]},d))})});return s.jsxs(Y,{ref:p,theme:z,color:t,borderRadius:"regular",className:V,...I,children:[s.jsxs(j,{children:[E&&s.jsx(W,{leadingIcon:"arrow-circle-left",text:b,btnType:"outline",style:{width:"fit-content"},onClick:r=>O(r,l),disabled:N,color:t,size:i},0),x&&f&&s.jsx(c,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]}),$(),s.jsxs(j,{children:[s.jsxs("div",{children:[v&&s.jsxs(s.Fragment,{children:[s.jsx(c,{btnType:"outline",icon:"angle-left",disabled:q,onClick:r=>F(l,r),color:t,size:i}),"  "]}),B&&s.jsx(c,{btnType:"outline",icon:"angle-right",disabled:C,onClick:r=>S(l,r),color:t,size:i})]}),x&&!f&&s.jsx(c,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]})]})});g.propTypes={__TYPE__:e.PropTypes.string,goBackText:e.PropTypes.string,fields:e.PropTypes.array,data:e.PropTypes.object,showBack:e.PropTypes.bool,showNext:e.PropTypes.bool,showPrevious:e.PropTypes.bool,showEdit:e.PropTypes.bool,disableGoBack:e.PropTypes.bool,disableNext:e.PropTypes.bool,disablePrevious:e.PropTypes.bool,disableEdit:e.PropTypes.bool,flexGridProps:e.PropTypes.any,editOnTop:e.PropTypes.bool,goToNext:e.PropTypes.func,goToPrevious:e.PropTypes.func,onEdit:e.PropTypes.func,goBack:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};g.displayName="DETAILS_VIEW";module.exports=g;
@@ -1,11 +1,11 @@
1
1
  import { jsx as a, jsxs as t, Fragment as k } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
3
  import { P as e } from "./index-S5Cd7WrG.js";
4
- import { n as f } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { n as f } from "./emotion-styled.browser.esm-CjCaF13H.js";
5
5
  import W from "./FlexGrid.js";
6
6
  import A from "./FlexGridItem.js";
7
- import { g as Y, a as B, c as U, b as q } from "./utils-jiuifwtJ.js";
8
- import { u as E } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ import { c as Y, b as B, g as U, a as q } from "./utils-DtRLzzTZ.js";
8
+ import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
9
  import H from "./Button.js";
10
10
  import c from "./IconButton.js";
11
11
  const J = f.label`
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),i=require("react"),v=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./index-BPVoEhTF.cjs"),o=require("./utils-scuIeOqU.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),C=({theme:e,size:y})=>{var u=o.getSizeValueWithUnits(e,y);return`
1
+ "use strict";const t=require("react/jsx-runtime"),i=require("react"),v=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),s=require("./index-BPVoEhTF.cjs"),o=require("./utils-NZLCh-J5.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=({theme:e,size:y})=>{var u=o.getSizeValueWithUnits(e,y);return`
2
2
  min-height: ${u};
3
3
  max-height: ${u};
4
4
  `},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},N=v.newStyled.div`
@@ -1,9 +1,9 @@
1
1
  import { jsxs as f, jsx as r, Fragment as V } from "react/jsx-runtime";
2
2
  import { forwardRef as F, useState as w, useEffect as x, useRef as T, useCallback as j } from "react";
3
- import { n as $ } from "./emotion-styled.browser.esm-BiK8DcgW.js";
3
+ import { n as $ } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
4
  import { P as i } from "./index-S5Cd7WrG.js";
5
- import { a as u, b as R, g as E, d as O } from "./utils-jiuifwtJ.js";
6
- import { u as D } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
5
+ import { b as u, a as R, c as E, d as O } from "./utils-DtRLzzTZ.js";
6
+ import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const L = ({ theme: e, size: k }) => {
8
8
  var s = O(e, k);
9
9
  return `