@tesouro/embedded-components-react 0.2.166 → 0.2.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1269 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +98 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +56 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +11 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +217 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +42 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +15 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +152 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +54 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +71 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +60 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +76 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +36 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +100 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +96 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +96 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +211 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +41 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +345 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +303 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +102 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +159 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +264 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +36 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +347 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +116 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +17 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +19 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +19 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +27 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +35 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +35 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +13 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +25 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +17 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +101 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +19 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +37 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +52 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +29 -490
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +94 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +46 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +147 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +106 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +480 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +163 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +22 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +53 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +27 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +53 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +15 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +40 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +60 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +118 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +23 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +42 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +16 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +17 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +166 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +127 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +156 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +18 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +62 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +65 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +55 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +63 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +149 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +6 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +66 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +22 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +41 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +72 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +33 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +59 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +159 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +27 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +75 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +25 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +121 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +117 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +105 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +46 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +195 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +69 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +36 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +31 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +34 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +29 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +48 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +12 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +16 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +28 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +36 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +61 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +92 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +112 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +88 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +76 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +76 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +41 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +19 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +26 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +127 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +30 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +4 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +125 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +93 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +33 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +6 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +43 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +42 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +72 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +92 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +9 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +115 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +72 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +11 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +69 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +44 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +20 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +47 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +64 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +17 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +11 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +21 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +107 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +81 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +11 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +78 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +17 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +85 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +257 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +62 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +43 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +141 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +89 -278
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +11 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +282 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +15 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +9 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +31 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +53 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +34 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +16 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +38 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +34 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +42 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +54 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +51 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +56 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +28 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +96 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +75 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +52 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +68 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +18 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +38 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +32 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +85 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +24 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +101 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +107 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +74 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +37 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +80 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +53 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +43 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +69 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +86 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +54 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +53 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiNotFoundError.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isUserDataNotFoundError.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/expectedApiNotFound.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/package.json +1 -1
|
@@ -1,88 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
const {
|
|
22
|
-
i18n: a
|
|
23
|
-
} = L(), {
|
|
24
|
-
control: M,
|
|
25
|
-
watch: w,
|
|
26
|
-
setValue: _
|
|
27
|
-
} = Y(), [F, m] = k(!1), i = w("payment_terms_id"), y = w("frequency") !== "once", o = w("payment_terms_custom_date") ?? void 0, p = (r) => _("payment_terms_custom_date", r ?? null), {
|
|
28
|
-
dedupedTerms: g
|
|
29
|
-
} = b(() => $(f?.data ?? []), [f]), d = g.find((r) => r?.id === i), P = d && N(d), c = () => {
|
|
30
|
-
window.setTimeout(() => m(!0), 0);
|
|
31
|
-
}, C = (r, s) => /* @__PURE__ */ n("span", { className: "ttw:flex ttw:w-full ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
32
|
-
/* @__PURE__ */ e("span", { className: "ttw:truncate", children: r }),
|
|
33
|
-
s && /* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground ttw:shrink-0 ttw:text-xs", children: x(s, S) })
|
|
34
|
-
] });
|
|
35
|
-
return /* @__PURE__ */ e(v, { children: E ? /* @__PURE__ */ e(O, { className: "ttw:w-full ttw:h-9" }) : /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(j, { name: "payment_terms_id", control: M, render: ({
|
|
36
|
-
field: r,
|
|
37
|
-
fieldState: {
|
|
38
|
-
error: s
|
|
39
|
-
}
|
|
40
|
-
}) => /* @__PURE__ */ e(H, { children: /* @__PURE__ */ n(J, { children: [
|
|
41
|
-
/* @__PURE__ */ e(Q, { htmlFor: "payment_terms_id", children: a._("Payment terms") }),
|
|
42
|
-
/* @__PURE__ */ n(q, { open: F, onOpenChange: (t) => {
|
|
43
|
-
m(t), !t && i === l && !o && r.onChange(void 0);
|
|
44
|
-
}, children: [
|
|
45
|
-
/* @__PURE__ */ n(R, { ...r, disabled: T, value: r.value, onValueChange: (t) => {
|
|
46
|
-
if (t === l) {
|
|
47
|
-
i !== l && p(void 0), r.onChange(t), c();
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
r.onChange(t), t === u && _("payment_reminder_id", "", {
|
|
51
|
-
shouldDirty: !0
|
|
52
|
-
}), p(void 0), m(!1);
|
|
53
|
-
}, children: [
|
|
54
|
-
/* @__PURE__ */ e(B, { className: "ttw:w-full", children: /* @__PURE__ */ e(U, { id: "payment_terms_id", className: "ttw:w-full", "aria-invalid": !!s, children: /* @__PURE__ */ n(V, { placeholder: a._("Select payment terms"), children: [
|
|
55
|
-
i === u && /* @__PURE__ */ e("span", { className: "ttw:truncate", children: a._("Due on receipt") }),
|
|
56
|
-
i === l && /* @__PURE__ */ n("span", { className: "ttw:flex ttw:w-full ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
57
|
-
/* @__PURE__ */ n("span", { className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-1.5", children: [
|
|
58
|
-
/* @__PURE__ */ e(A, { className: D("ttw:size-4 ttw:shrink-0", !o && "ttw:text-muted-foreground") }),
|
|
59
|
-
/* @__PURE__ */ e("span", { className: D("ttw:truncate", !o && "ttw:text-muted-foreground"), children: o ? x(o, S) : a._("Mon DD, YYYY") })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground ttw:shrink-0 ttw:text-xs", children: a._("Custom date") })
|
|
62
|
-
] }),
|
|
63
|
-
d && C(d.name, P)
|
|
64
|
-
] }) }) }),
|
|
65
|
-
/* @__PURE__ */ n(z, { children: [
|
|
66
|
-
/* @__PURE__ */ e(h, { value: u, children: a._("Due on receipt") }),
|
|
67
|
-
!y && /* @__PURE__ */ e(h, { value: l, onPointerUp: c, onClick: c, onKeyDown: (t) => {
|
|
68
|
-
(t.key === "Enter" || t.key === " ") && c();
|
|
69
|
-
}, children: a._("Custom date") }),
|
|
70
|
-
/* @__PURE__ */ e(I, {}),
|
|
71
|
-
g.map((t) => /* @__PURE__ */ e(h, { value: t.id, children: C(t.name, N(t)) }, t.id))
|
|
72
|
-
] })
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ e(K, { className: "ttw:w-auto ttw:overflow-hidden ttw:p-0", align: "start", onFocusOutside: (t) => {
|
|
75
|
-
t.preventDefault();
|
|
76
|
-
}, children: /* @__PURE__ */ e(G, { mode: "single", captionLayout: "dropdown", selected: o, disabled: {
|
|
77
|
-
before: /* @__PURE__ */ new Date()
|
|
78
|
-
}, onSelect: (t) => {
|
|
79
|
-
p(t), m(!1);
|
|
80
|
-
} }) })
|
|
81
|
-
] }),
|
|
82
|
-
y && /* @__PURE__ */ e(W, { children: a._("Each invoice in the series will have the same payment term.") }),
|
|
83
|
-
/* @__PURE__ */ e(X, { errors: s ? [s] : [] })
|
|
84
|
-
] }) }) }) }) });
|
|
85
|
-
};
|
|
1
|
+
class t {
|
|
2
|
+
value;
|
|
3
|
+
currency;
|
|
4
|
+
formatter;
|
|
5
|
+
constructor(r) {
|
|
6
|
+
this.value = r.value, this.currency = r.currency, this.formatter = r.formatter;
|
|
7
|
+
}
|
|
8
|
+
add(r) {
|
|
9
|
+
if (this.currency !== r.currency)
|
|
10
|
+
throw new Error("Currencies must match");
|
|
11
|
+
return new t({
|
|
12
|
+
value: Number(this.value) + Number(r.value),
|
|
13
|
+
currency: this.currency,
|
|
14
|
+
formatter: this.formatter
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return this.formatter(this.value, this.currency) ?? "";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
86
21
|
export {
|
|
87
|
-
|
|
22
|
+
t as Price
|
|
88
23
|
};
|
|
@@ -1,271 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
length: 31
|
|
18
|
-
}, (a, t) => t + 1), P = ["recurrence_start_date", "recurrence_end_date", "recurrence_issue_mode", "recurrence_days_of_week", "recurrence_end_mode", "recurrence_max_occurrences"], R = {
|
|
19
|
-
su: 0,
|
|
20
|
-
mo: 1,
|
|
21
|
-
tu: 2,
|
|
22
|
-
we: 3,
|
|
23
|
-
th: 4,
|
|
24
|
-
fr: 5,
|
|
25
|
-
sa: 6
|
|
26
|
-
}, V = () => {
|
|
27
|
-
const a = /* @__PURE__ */ new Date();
|
|
28
|
-
return a.setHours(0, 0, 0, 0), a;
|
|
29
|
-
}, re = () => {
|
|
30
|
-
const a = V();
|
|
31
|
-
return a.setDate(a.getDate() + 1), a;
|
|
32
|
-
}, ae = (a) => {
|
|
33
|
-
const t = V(), s = (R[a] - t.getDay() + 7) % 7 || 7, d = new Date(t);
|
|
34
|
-
return d.setDate(t.getDate() + s), d;
|
|
35
|
-
}, he = ({
|
|
36
|
-
lockSchedule: a = !1
|
|
1
|
+
import { useCreateInvoiceProductsTable as N } from "./index402.js";
|
|
2
|
+
import { sanitizeLineItems as W } from "./index405.js";
|
|
3
|
+
import { useCurrencies as k } from "./index58.js";
|
|
4
|
+
import { useRef as z, useState as J, useCallback as u, useEffect as x, useMemo as O } from "react";
|
|
5
|
+
import "./index92.js";
|
|
6
|
+
import "@emotion/react/jsx-runtime";
|
|
7
|
+
import "@lingui/react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "./index57.js";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { useIsMounted as j } from "./index68.js";
|
|
12
|
+
import { generateUniqueId as B } from "./index406.js";
|
|
13
|
+
import { useFormContext as G, useFieldArray as H } from "react-hook-form";
|
|
14
|
+
const oe = ({
|
|
15
|
+
defaultCurrency: p,
|
|
16
|
+
isInclusivePricing: C
|
|
37
17
|
}) => {
|
|
38
18
|
const {
|
|
39
|
-
|
|
40
|
-
} = z(), {
|
|
41
|
-
control: s,
|
|
42
|
-
watch: d,
|
|
43
|
-
clearErrors: x,
|
|
44
|
-
setValue: u,
|
|
19
|
+
control: P,
|
|
45
20
|
formState: {
|
|
46
|
-
errors:
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
} })
|
|
136
|
-
] });
|
|
137
|
-
}
|
|
138
|
-
}, W = () => {
|
|
139
|
-
switch (i) {
|
|
140
|
-
case "once":
|
|
141
|
-
default:
|
|
142
|
-
return null;
|
|
143
|
-
case "day":
|
|
144
|
-
return /* @__PURE__ */ c(p, { children: [
|
|
145
|
-
/* @__PURE__ */ e(m, { variant: "body2", color: "muted", className: "ttw:text-nowrap", children: t._("and end") }),
|
|
146
|
-
/* @__PURE__ */ e(h, { name: "recurrence_end_mode", control: s, render: ({
|
|
147
|
-
field: r,
|
|
148
|
-
fieldState: {
|
|
149
|
-
error: o
|
|
150
|
-
}
|
|
151
|
-
}) => /* @__PURE__ */ e(_, { className: "ttw:w-fit", children: /* @__PURE__ */ e(f, { className: "ttw:grow-0", children: /* @__PURE__ */ c(k, { value: r.value, onValueChange: (n) => {
|
|
152
|
-
r.onChange(n), n === "after" ? u("recurrence_end_date", void 0, {
|
|
153
|
-
shouldDirty: !1
|
|
154
|
-
}) : u("recurrence_max_occurrences", void 0, {
|
|
155
|
-
shouldDirty: !1
|
|
156
|
-
});
|
|
157
|
-
}, children: [
|
|
158
|
-
/* @__PURE__ */ e(S, { id: "recurrence_end_mode", className: "ttw:w-21", "aria-invalid": !!o, children: /* @__PURE__ */ e(C, {}) }),
|
|
159
|
-
/* @__PURE__ */ c(M, { children: [
|
|
160
|
-
/* @__PURE__ */ e(l, { value: "after", children: t._("After") }),
|
|
161
|
-
/* @__PURE__ */ e(l, { value: "on", children: t._("On") })
|
|
162
|
-
] })
|
|
163
|
-
] }) }) }) }),
|
|
164
|
-
H === "on" ? /* @__PURE__ */ e(h, { control: s, name: "recurrence_end_date", render: ({
|
|
165
|
-
field: r,
|
|
166
|
-
fieldState: {
|
|
167
|
-
error: o
|
|
168
|
-
}
|
|
169
|
-
}) => /* @__PURE__ */ e(_, { className: "ttw:grow-0 ttw:w-44", children: /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(q, { ...r, selected: r.value ? new Date(r.value) : void 0, onSelect: r.onChange, showOutsideDays: !1, disabled: K, "aria-invalid": !!o, startMonth: y ? new Date(y.getFullYear(), y.getMonth(), 1) : /* @__PURE__ */ new Date(), endMonth: new Date(2050, 11) }) }) }) }) : /* @__PURE__ */ c(p, { children: [
|
|
170
|
-
/* @__PURE__ */ e(h, { name: "recurrence_max_occurrences", control: s, render: ({
|
|
171
|
-
field: r,
|
|
172
|
-
fieldState: {
|
|
173
|
-
error: o
|
|
174
|
-
}
|
|
175
|
-
}) => /* @__PURE__ */ e(_, { className: "ttw:w-fit", children: /* @__PURE__ */ e(f, { className: "ttw:grow-0", children: /* @__PURE__ */ e(A, { ...r, className: "ttw:w-16", value: r.value ?? "", type: "number", min: 0, max: 1e3, onKeyDown: O, "aria-invalid": !!o }) }) }) }),
|
|
176
|
-
/* @__PURE__ */ e(m, { variant: "body2", color: "muted", className: "ttw:text-nowrap", children: v ? t._("day") : t._("days") })
|
|
177
|
-
] })
|
|
178
|
-
] });
|
|
179
|
-
case "month":
|
|
180
|
-
case "quarter":
|
|
181
|
-
case "year":
|
|
182
|
-
case "week":
|
|
183
|
-
return /* @__PURE__ */ c(p, { children: [
|
|
184
|
-
/* @__PURE__ */ e(m, { variant: "body2", color: "muted", className: "ttw:text-nowrap", children: t._("and end after") }),
|
|
185
|
-
/* @__PURE__ */ e(h, { name: "recurrence_max_occurrences", control: s, render: ({
|
|
186
|
-
field: r,
|
|
187
|
-
fieldState: {
|
|
188
|
-
error: o
|
|
189
|
-
}
|
|
190
|
-
}) => /* @__PURE__ */ e(_, { className: "ttw:w-fit", children: /* @__PURE__ */ e(f, { className: "ttw:grow-0", children: /* @__PURE__ */ e(A, { ...r, className: "ttw:w-16", value: r.value ?? "", type: "number", min: 0, max: 1e3, onKeyDown: O, "aria-invalid": !!o }) }) }) }),
|
|
191
|
-
/* @__PURE__ */ c(m, { variant: "body2", color: "muted", className: "ttw:text-nowrap", children: [
|
|
192
|
-
i === "month" && (v ? t._("month") : t._("months")),
|
|
193
|
-
i === "quarter" && (v ? t._("quarter") : t._("quarters")),
|
|
194
|
-
i === "week" && (v ? t._("week") : t._("weeks")),
|
|
195
|
-
i === "year" && (v ? t._("year") : t._("years"))
|
|
196
|
-
] })
|
|
197
|
-
] });
|
|
198
|
-
}
|
|
21
|
+
errors: o
|
|
22
|
+
},
|
|
23
|
+
setValue: l,
|
|
24
|
+
getValues: t,
|
|
25
|
+
watch: f,
|
|
26
|
+
clearErrors: m,
|
|
27
|
+
trigger: h,
|
|
28
|
+
reset: g
|
|
29
|
+
} = G(), {
|
|
30
|
+
fields: n,
|
|
31
|
+
append: y,
|
|
32
|
+
remove: v
|
|
33
|
+
} = H({
|
|
34
|
+
control: P,
|
|
35
|
+
name: "line_items",
|
|
36
|
+
shouldUnregister: !1
|
|
37
|
+
}), c = j(), s = z(!1), [I, b] = J(!1), V = f("line_items"), T = f("tax_rate"), D = W(V), {
|
|
38
|
+
formatCurrencyToDisplay: L
|
|
39
|
+
} = k(), {
|
|
40
|
+
subtotalPrice: R,
|
|
41
|
+
totalPrice: S,
|
|
42
|
+
totalTaxes: q
|
|
43
|
+
} = N({
|
|
44
|
+
lineItems: D,
|
|
45
|
+
actualCurrency: p,
|
|
46
|
+
isInclusivePricing: C,
|
|
47
|
+
formatCurrencyToDisplay: L,
|
|
48
|
+
taxRate: Number(T) || void 0
|
|
49
|
+
}), i = u((e) => {
|
|
50
|
+
const r = {
|
|
51
|
+
name: e?.product?.name || "",
|
|
52
|
+
price: {
|
|
53
|
+
currency: p,
|
|
54
|
+
value: e?.product?.price?.value || 0
|
|
55
|
+
},
|
|
56
|
+
measure_unit_id: e?.product?.measure_unit_id || "",
|
|
57
|
+
type: e?.product?.type || "product"
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
id: e?.id ?? B(),
|
|
61
|
+
product_id: e?.product_id || "",
|
|
62
|
+
product: r,
|
|
63
|
+
quantity: e?.quantity ?? 1,
|
|
64
|
+
tax_rate_value: e?.tax_rate_value ? e?.tax_rate_value ?? 0 : void 0,
|
|
65
|
+
...e?.measure_unit ? {
|
|
66
|
+
measure_unit: e.measure_unit
|
|
67
|
+
} : {},
|
|
68
|
+
taxable: !0
|
|
69
|
+
};
|
|
70
|
+
}, [p]), A = u(() => {
|
|
71
|
+
if (s.current) return;
|
|
72
|
+
s.current = !0, y(i());
|
|
73
|
+
const e = t("line_items");
|
|
74
|
+
e && e.length > 0 && m(`line_items.${e.length - 1}`);
|
|
75
|
+
}, [y, i, t, m]);
|
|
76
|
+
x(() => {
|
|
77
|
+
s.current && Promise.resolve().then(() => {
|
|
78
|
+
c.current && (s.current = !1);
|
|
79
|
+
});
|
|
80
|
+
}, [n.length, c]), x(() => {
|
|
81
|
+
!c.current || I || !t("line_items")?.length && !s.current && (g({
|
|
82
|
+
...t(),
|
|
83
|
+
line_items: [i()]
|
|
84
|
+
}), b(!0));
|
|
85
|
+
}, [c, I, t, g, i]);
|
|
86
|
+
const E = u((e) => v(e), [v, t]), F = u(() => {
|
|
87
|
+
const e = t("line_items");
|
|
88
|
+
if (!e?.length) return;
|
|
89
|
+
const r = e.filter((a) => !!a?.product?.name?.trim()), d = e.find((a) => !a?.product?.name?.trim()), _ = r.length > 0 ? r : e.length > 0 ? [i(d || void 0)] : [];
|
|
90
|
+
(_.length !== e.length || !_.every((a, w) => a.id === e[w]?.id)) && (m("line_items"), l("line_items", _, {
|
|
91
|
+
shouldValidate: !1,
|
|
92
|
+
shouldDirty: !0
|
|
93
|
+
}));
|
|
94
|
+
}, [t, l, m, i]), M = u((e, r, d) => {
|
|
95
|
+
l(e, r, {
|
|
96
|
+
shouldDirty: !0,
|
|
97
|
+
...d
|
|
98
|
+
}), d?.shouldValidate && h(e);
|
|
99
|
+
}, [l, h]), U = JSON.stringify(o.line_items), $ = O(() => Array.isArray(o.line_items) ? n.map((e, r) => o.line_items?.[r] ?? {}) : n.map(() => ({})), [o.line_items, U, n]);
|
|
100
|
+
return {
|
|
101
|
+
fields: n,
|
|
102
|
+
subtotalPrice: R,
|
|
103
|
+
totalPrice: S,
|
|
104
|
+
totalTaxes: q,
|
|
105
|
+
lineItemErrors: $,
|
|
106
|
+
handleAddRow: A,
|
|
107
|
+
handleRemoveItem: E,
|
|
108
|
+
setValueWithValidationLocal: M,
|
|
109
|
+
cleanUpLineItemsForSubmission: F
|
|
199
110
|
};
|
|
200
|
-
return /* @__PURE__ */ c("section", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
201
|
-
/* @__PURE__ */ c("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
|
|
202
|
-
/* @__PURE__ */ e(m, { variant: "body2", color: "muted", className: "ttw:text-nowrap", children: t._("Repeat this invoice") }),
|
|
203
|
-
/* @__PURE__ */ e(h, { name: "frequency", control: s, render: ({
|
|
204
|
-
field: r
|
|
205
|
-
}) => /* @__PURE__ */ e(_, { className: "ttw:w-fit", children: /* @__PURE__ */ e(f, { className: "ttw:grow-0", children: /* @__PURE__ */ c(
|
|
206
|
-
k,
|
|
207
|
-
{
|
|
208
|
-
value: r.value,
|
|
209
|
-
disabled: a,
|
|
210
|
-
onValueChange: (o) => {
|
|
211
|
-
x(P), P.forEach((n) => {
|
|
212
|
-
u(n, void 0, {
|
|
213
|
-
shouldDirty: !1
|
|
214
|
-
});
|
|
215
|
-
}), $.includes(o) ? (u("payment_terms_id", J, {
|
|
216
|
-
shouldDirty: !0
|
|
217
|
-
}), u("payment_terms_custom_date", null, {
|
|
218
|
-
shouldDirty: !1
|
|
219
|
-
}), u("payment_reminder_id", "", {
|
|
220
|
-
shouldDirty: !0
|
|
221
|
-
})) : o !== "once" && Y === X && (u("payment_terms_id", "", {
|
|
222
|
-
shouldDirty: !0
|
|
223
|
-
}), u("payment_terms_custom_date", null, {
|
|
224
|
-
shouldDirty: !1
|
|
225
|
-
})), r.onChange(o);
|
|
226
|
-
},
|
|
227
|
-
children: [
|
|
228
|
-
/* @__PURE__ */ e(S, { id: "frequency", className: "ttw:w-31", children: /* @__PURE__ */ e(C, {}) }),
|
|
229
|
-
/* @__PURE__ */ c(M, { children: [
|
|
230
|
-
/* @__PURE__ */ e(l, { value: "once", children: t._("Once") }),
|
|
231
|
-
/* @__PURE__ */ e(l, { value: "day", children: t._("Daily") }),
|
|
232
|
-
/* @__PURE__ */ e(l, { value: "week", children: t._("Weekly") }),
|
|
233
|
-
/* @__PURE__ */ e(l, { value: "month", children: t._("Monthly") }),
|
|
234
|
-
/* @__PURE__ */ e(l, { value: "quarter", children: t._("Quarterly") }),
|
|
235
|
-
/* @__PURE__ */ e(l, { value: "year", children: t._("Annually") })
|
|
236
|
-
] })
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
) }) }) }),
|
|
240
|
-
U()
|
|
241
|
-
] }),
|
|
242
|
-
i !== "once" && /* @__PURE__ */ c("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
|
|
243
|
-
/* @__PURE__ */ e(m, { variant: "body2", color: "muted", className: "ttw:text-nowrap", children: t._("Start on") }),
|
|
244
|
-
/* @__PURE__ */ e(h, { control: s, name: "recurrence_start_date", render: ({
|
|
245
|
-
field: r,
|
|
246
|
-
fieldState: {
|
|
247
|
-
error: o
|
|
248
|
-
}
|
|
249
|
-
}) => /* @__PURE__ */ e(_, { className: "ttw:grow-0 ttw:w-44", children: /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
250
|
-
q,
|
|
251
|
-
{
|
|
252
|
-
...r,
|
|
253
|
-
selected: r.value ? new Date(r.value) : void 0,
|
|
254
|
-
onSelect: r.onChange,
|
|
255
|
-
showOutsideDays: !1,
|
|
256
|
-
shouldDisableButton: a || i === "week" && !D,
|
|
257
|
-
disabled: L,
|
|
258
|
-
"aria-invalid": !!o,
|
|
259
|
-
startMonth: /* @__PURE__ */ new Date(),
|
|
260
|
-
endMonth: b ? new Date(b.getFullYear(), b.getMonth(), 1) : new Date(2050, 11)
|
|
261
|
-
}
|
|
262
|
-
) }) }) }),
|
|
263
|
-
W()
|
|
264
|
-
] }),
|
|
265
|
-
E.recurrence_max_occurrences && /* @__PURE__ */ e(Q, { errors: [E.recurrence_max_occurrences] }),
|
|
266
|
-
["month", "quarter", "year"].includes(i) && /* @__PURE__ */ e(m, { variant: "caption", color: "muted", children: t._("If the issue day doesn't exist in a given month, e.g., the 31st, then the invoice will be sent on the last day of that month.") })
|
|
267
|
-
] });
|
|
268
111
|
};
|
|
269
112
|
export {
|
|
270
|
-
|
|
113
|
+
oe as useLineItemManagement
|
|
271
114
|
};
|
|
@@ -1,41 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
disabled: a
|
|
12
|
-
}) => {
|
|
13
|
-
const {
|
|
14
|
-
i18n: i
|
|
15
|
-
} = y(), {
|
|
16
|
-
watch: t,
|
|
17
|
-
setValue: d
|
|
18
|
-
} = x(), n = t("payment_terms_id"), c = t("payment_terms_custom_date"), p = t("payment_reminder_id"), u = t("overdue_reminder_id"), o = !!(n || c), w = !!(p || u), f = n !== N, [m, _] = v(o || w);
|
|
19
|
-
return /* @__PURE__ */ r("section", { className: "ttw:flex ttw:flex-col ttw:gap-6", children: [
|
|
20
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
21
|
-
/* @__PURE__ */ e(g, { checked: m, disabled: !o, onCheckedChange: (s) => {
|
|
22
|
-
s || (d("payment_reminder_id", "", {
|
|
23
|
-
shouldDirty: !0
|
|
24
|
-
}), d("overdue_reminder_id", "", {
|
|
25
|
-
shouldDirty: !0
|
|
26
|
-
})), _(s);
|
|
27
|
-
}, "aria-label": i._("Payment reminders") }),
|
|
28
|
-
/* @__PURE__ */ e(l, { variant: "body2", children: i._("Send reminders when an invoice is approaching its due date or past due.") })
|
|
29
|
-
] }),
|
|
30
|
-
m && /* @__PURE__ */ r(h, { children: [
|
|
31
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:w-full ttw:xl:flex-row", children: [
|
|
32
|
-
f && /* @__PURE__ */ e(b, { disabled: a }),
|
|
33
|
-
/* @__PURE__ */ e(E, { disabled: a })
|
|
34
|
-
] }),
|
|
35
|
-
/* @__PURE__ */ e(l, { variant: "body2", color: "muted", className: "ttw:font-medium", children: i._("New reminders will be saved to your organization's library and can be managed via Invoice settings") })
|
|
36
|
-
] })
|
|
37
|
-
] });
|
|
1
|
+
import { rateMinorToMajor as p, rateMajorToMinor as f } from "./index94.js";
|
|
2
|
+
import { generateUniqueId as l } from "./index406.js";
|
|
3
|
+
const c = (t, e) => {
|
|
4
|
+
let r = t;
|
|
5
|
+
for (const n of e) {
|
|
6
|
+
if (typeof r != "object" || r === null || !(n in r))
|
|
7
|
+
return;
|
|
8
|
+
r = r[n];
|
|
9
|
+
}
|
|
10
|
+
return typeof r == "object" && r !== null && "message" in r && typeof r.message == "string" ? String(r.message) : void 0;
|
|
38
11
|
};
|
|
12
|
+
function m(t, e) {
|
|
13
|
+
if (!t)
|
|
14
|
+
return;
|
|
15
|
+
const r = typeof t == "object";
|
|
16
|
+
if (r && "message" in t && typeof t.message == "string")
|
|
17
|
+
return t.message;
|
|
18
|
+
const n = e.split("."), s = !Array.isArray(t);
|
|
19
|
+
if (s && r)
|
|
20
|
+
return c(t, n);
|
|
21
|
+
if (s) return;
|
|
22
|
+
const a = t.find((o) => {
|
|
23
|
+
if (!o || typeof o != "object" || o === null) return !1;
|
|
24
|
+
let i = o;
|
|
25
|
+
for (const u of n) {
|
|
26
|
+
if (typeof i != "object" || i === null || !(u in i))
|
|
27
|
+
return !1;
|
|
28
|
+
i = i[u];
|
|
29
|
+
}
|
|
30
|
+
return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string";
|
|
31
|
+
});
|
|
32
|
+
if (a)
|
|
33
|
+
return c(a, n);
|
|
34
|
+
}
|
|
35
|
+
const d = (t, e) => m(t, e), M = (t) => {
|
|
36
|
+
let e = t.replace(/[^0-9.]/g, "");
|
|
37
|
+
const r = e.indexOf(".");
|
|
38
|
+
if (r !== -1 && (e = e.slice(0, r + 1) + e.slice(r + 1).replace(/\./g, ""), e = e.slice(0, r + 3)), e.length > 1 && e.startsWith("0") && e[1] !== "." && (e = e.replace(/^0+/, "") || "0"), e === "" || e === ".")
|
|
39
|
+
return e;
|
|
40
|
+
const n = Number(e);
|
|
41
|
+
return !isNaN(n) && n > 100 ? "100" : e;
|
|
42
|
+
}, j = (t, e) => {
|
|
43
|
+
if (t === void 0 || isNaN(t)) return "";
|
|
44
|
+
const r = p(t);
|
|
45
|
+
return e.format(r);
|
|
46
|
+
}, b = (t, e, r) => {
|
|
47
|
+
if (t.trim() === "") return 0;
|
|
48
|
+
let n = t;
|
|
49
|
+
if (r) {
|
|
50
|
+
const a = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
51
|
+
n = n.replace(new RegExp(a, "g"), "");
|
|
52
|
+
}
|
|
53
|
+
n = n.replace(e, ".");
|
|
54
|
+
const s = parseFloat(n);
|
|
55
|
+
return isNaN(s) ? 0 : f(s);
|
|
56
|
+
}, _ = (t) => !t || !Array.isArray(t) ? [] : t.filter((e) => !!e?.product?.name).map((e) => ({
|
|
57
|
+
...e,
|
|
58
|
+
id: e.product_id || l(),
|
|
59
|
+
quantity: e.quantity ?? 1,
|
|
60
|
+
product: {
|
|
61
|
+
...e.product,
|
|
62
|
+
type: e.product?.type,
|
|
63
|
+
price: {
|
|
64
|
+
...e.product?.price || {},
|
|
65
|
+
value: e.product?.price?.value ?? 0,
|
|
66
|
+
currency: e.product?.price?.currency || "USD"
|
|
67
|
+
},
|
|
68
|
+
measure_unit_id: e.product?.measure_unit_id || ""
|
|
69
|
+
},
|
|
70
|
+
...e.measure_unit?.name ? {
|
|
71
|
+
measure_unit: {
|
|
72
|
+
name: e.measure_unit.name,
|
|
73
|
+
id: null
|
|
74
|
+
}
|
|
75
|
+
} : {}
|
|
76
|
+
}));
|
|
39
77
|
export {
|
|
40
|
-
|
|
78
|
+
j as formatMinorToMajorCurrency,
|
|
79
|
+
m as getErrorMessage,
|
|
80
|
+
d as getLineItemErrorMessage,
|
|
81
|
+
b as parseMajorToMinorCurrency,
|
|
82
|
+
_ as sanitizeLineItems,
|
|
83
|
+
M as sanitizeTaxRateInput
|
|
41
84
|
};
|