@tesouro/embedded-components-react 0.2.234 → 0.2.237
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 +22 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +65 -59
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/useApprovalPolicies.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +19 -19
- 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/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/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1 -1
- 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 +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +46 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +74 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +55 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +80 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +40 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +225 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +462 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +106 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +536 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +10 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +19 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +27 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +117 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +68 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +12 -468
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +12 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +86 -526
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +57 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +214 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -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 +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +82 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +361 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +117 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +6 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +20 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +13 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +21 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +53 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +103 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +40 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +52 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +30 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +144 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +105 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +71 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +44 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +34 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +30 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +57 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +108 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +84 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +63 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +26 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +4 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +73 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +32 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +19 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +62 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +31 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +116 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +23 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +56 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +5 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +491 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +168 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +126 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +43 -485
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +112 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +45 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +201 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +69 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +149 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +30 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +4 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +19 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +38 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +29 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +33 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +31 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +6 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +158 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +27 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +76 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +77 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +76 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +43 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +38 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +53 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +57 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +20 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +123 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +22 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +31 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +2 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +93 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +95 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +212 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +63 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +168 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +134 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +159 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +8 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +61 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +64 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +59 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +59 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +23 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +62 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +14 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +35 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +344 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +299 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +93 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +156 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +263 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +23 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +18 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +255 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +50 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +45 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +31 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +41 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +23 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +94 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +34 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +10 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +19 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +20 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +67 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +114 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +80 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +8 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +31 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +23 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +120 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +73 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +3 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +53 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +34 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +85 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +17 -7
- 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 +82 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +266 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +36 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +62 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +137 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +93 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +2 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +278 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +49 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +32 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +14 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +10 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +32 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +45 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +26 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +96 -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 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +49 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +45 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +72 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +84 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +51 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +52 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +30 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +54 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +71 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +82 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +32 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +84 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +103 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +104 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +69 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +12 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +28 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +37 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +91 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +16 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +75 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +21 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +9 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +42 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +37 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +55 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +52 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +33 -38
- 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 +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- 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/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 +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +22 -22
- 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/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/package.json +1 -1
|
@@ -1,98 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
w(() => {
|
|
22
|
-
h && s?.payment_link_id && i && p(s.payment_link_id);
|
|
23
|
-
}, [h, s, i]);
|
|
24
|
-
const {
|
|
25
|
-
data: e,
|
|
26
|
-
refetch: C,
|
|
27
|
-
isSuccess: y,
|
|
28
|
-
isLoading: E
|
|
29
|
-
} = B(g ?? "");
|
|
30
|
-
return w(() => {
|
|
31
|
-
y && e?.payment_intent?.status === "processing" && f?.(r ?? "", e?.payment_intent?.status ?? "");
|
|
32
|
-
}, [e, y, f, r]), {
|
|
33
|
-
handlePay: async () => {
|
|
34
|
-
if (!d) {
|
|
35
|
-
c.error(t._("Vendor not found. Please create a vendor first."));
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (!_)
|
|
39
|
-
try {
|
|
40
|
-
if (E) {
|
|
41
|
-
c.error(t._("Payment link is still loading. Please wait a moment and try again."));
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (!g || y && e?.payment_intent?.status !== "created") {
|
|
45
|
-
if (P(!0), !r) throw new Error("Payable ID is undefined");
|
|
46
|
-
const a = await b(
|
|
47
|
-
r,
|
|
48
|
-
d,
|
|
49
|
-
["sepa_credit"],
|
|
50
|
-
60
|
|
51
|
-
// 60 days from now
|
|
52
|
-
);
|
|
53
|
-
if (a.payment_page_url)
|
|
54
|
-
p(a.id), o(a.payment_page_url);
|
|
55
|
-
else
|
|
56
|
-
throw p(null), o(null), new Error("No payment page URL in response");
|
|
57
|
-
} else if (e?.payment_page_url)
|
|
58
|
-
o(e.payment_page_url);
|
|
59
|
-
else
|
|
60
|
-
throw new Error("No payment page URL in existing payment link");
|
|
61
|
-
m(!0);
|
|
62
|
-
} catch (a) {
|
|
63
|
-
console.error("Payment link creation/retrieval error:", a), c.error(i && s?.status === "created" ? t._("Failed to retrieve payment link. Please try again.") : t._("Failed to create payment link. Please try again.")), m(!1);
|
|
64
|
-
} finally {
|
|
65
|
-
P(!1);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
isCreatingPaymentLink: _,
|
|
69
|
-
modalComponent: /* @__PURE__ */ n(j, { open: L, onClose: async () => {
|
|
70
|
-
await C(), m(!1), o(null);
|
|
71
|
-
}, container: k, children: /* @__PURE__ */ n(x, { sx: {
|
|
72
|
-
position: "absolute",
|
|
73
|
-
top: "50%",
|
|
74
|
-
left: "50%",
|
|
75
|
-
transform: "translate(-50%, -50%)",
|
|
76
|
-
width: "80%",
|
|
77
|
-
maxWidth: 600,
|
|
78
|
-
bgcolor: "background.paper",
|
|
79
|
-
boxShadow: 24,
|
|
80
|
-
p: 4,
|
|
81
|
-
borderRadius: 2
|
|
82
|
-
}, children: u ? /* @__PURE__ */ n("iframe", { src: u, title: "Payment Page", width: "100%", height: "400px", style: {
|
|
83
|
-
border: "none"
|
|
84
|
-
} }) : /* @__PURE__ */ I(x, { sx: {
|
|
85
|
-
display: "flex",
|
|
86
|
-
flexDirection: "column",
|
|
87
|
-
alignItems: "center",
|
|
88
|
-
gap: 2,
|
|
89
|
-
py: 4
|
|
90
|
-
}, children: [
|
|
91
|
-
/* @__PURE__ */ n(D, {}),
|
|
92
|
-
/* @__PURE__ */ n("p", { children: t._("Loading payment page...") })
|
|
93
|
-
] }) }) })
|
|
94
|
-
};
|
|
95
|
-
};
|
|
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
|
+
}
|
|
96
21
|
export {
|
|
97
|
-
|
|
22
|
+
t as Price
|
|
98
23
|
};
|
|
@@ -1,40 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { useCreateInvoiceProductsTable as W } from "./index375.js";
|
|
2
|
+
import { sanitizeLineItems as J } from "./index378.js";
|
|
3
|
+
import { useCurrencies as O } from "./index58.js";
|
|
4
|
+
import { useRef as j, useState as I, useCallback as u, useEffect as C, useMemo as B } 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 G } from "./index68.js";
|
|
12
|
+
import { generateUniqueId as H } from "./index379.js";
|
|
13
|
+
import { useFormContext as K, useFieldArray as Q } from "react-hook-form";
|
|
14
|
+
const me = ({
|
|
15
|
+
defaultCurrency: p,
|
|
16
|
+
isInclusivePricing: P
|
|
17
|
+
}) => {
|
|
6
18
|
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
i18n: o
|
|
11
|
-
} = m();
|
|
12
|
-
return e.finops.postApprovalRequestsIdReject.useMutation({
|
|
13
|
-
path: {
|
|
14
|
-
approval_request_id: i
|
|
15
|
-
}
|
|
16
|
-
}, {
|
|
17
|
-
onSuccess: () => {
|
|
18
|
-
if (e.finops.getApprovalRequests.invalidateQueries(t), a.success(o._("Payable “{document_id}” has been rejected", {
|
|
19
|
-
document_id: p
|
|
20
|
-
})), !!s)
|
|
21
|
-
return n?.(s ?? ""), new Promise((r) => {
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
24
|
-
parameters: {
|
|
25
|
-
path: {
|
|
26
|
-
payable_id: s ?? ""
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, t), e.finops.getPayables.invalidateQueries(t)]).then(() => r());
|
|
30
|
-
}, 500);
|
|
31
|
-
});
|
|
19
|
+
control: b,
|
|
20
|
+
formState: {
|
|
21
|
+
errors: o
|
|
32
22
|
},
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
setValue: l,
|
|
24
|
+
getValues: r,
|
|
25
|
+
watch: f,
|
|
26
|
+
clearErrors: m,
|
|
27
|
+
trigger: h,
|
|
28
|
+
reset: g
|
|
29
|
+
} = K(), {
|
|
30
|
+
fields: n,
|
|
31
|
+
append: y,
|
|
32
|
+
remove: v
|
|
33
|
+
} = Q({
|
|
34
|
+
control: b,
|
|
35
|
+
name: "line_items",
|
|
36
|
+
shouldUnregister: !1
|
|
37
|
+
}), c = G(), s = j(!1), [x, V] = I(!1), [F, T] = I(null), D = f("line_items"), L = f("tax_rate"), R = J(D), {
|
|
38
|
+
formatCurrencyToDisplay: S
|
|
39
|
+
} = O(), {
|
|
40
|
+
subtotalPrice: q,
|
|
41
|
+
totalPrice: A,
|
|
42
|
+
totalTaxes: E
|
|
43
|
+
} = W({
|
|
44
|
+
lineItems: R,
|
|
45
|
+
actualCurrency: p,
|
|
46
|
+
isInclusivePricing: P,
|
|
47
|
+
formatCurrencyToDisplay: S,
|
|
48
|
+
taxRate: Number(L) || void 0
|
|
49
|
+
}), i = u((e) => {
|
|
50
|
+
const t = {
|
|
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 ?? H(),
|
|
61
|
+
product_id: e?.product_id || "",
|
|
62
|
+
product: t,
|
|
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]), M = u(() => {
|
|
71
|
+
if (s.current) return;
|
|
72
|
+
s.current = !0, y(i(), {
|
|
73
|
+
shouldFocus: !1
|
|
74
|
+
});
|
|
75
|
+
const e = r("line_items");
|
|
76
|
+
if (e && e.length > 0) {
|
|
77
|
+
const t = e.length - 1;
|
|
78
|
+
m(`line_items.${t}`), T(t);
|
|
35
79
|
}
|
|
36
|
-
});
|
|
80
|
+
}, [y, i, r, m]);
|
|
81
|
+
C(() => {
|
|
82
|
+
s.current && Promise.resolve().then(() => {
|
|
83
|
+
c.current && (s.current = !1);
|
|
84
|
+
});
|
|
85
|
+
}, [n.length, c]), C(() => {
|
|
86
|
+
!c.current || x || !r("line_items")?.length && !s.current && (g({
|
|
87
|
+
...r(),
|
|
88
|
+
line_items: [i()]
|
|
89
|
+
}), V(!0));
|
|
90
|
+
}, [c, x, r, g, i]);
|
|
91
|
+
const U = u((e) => v(e), [v, r]), $ = u(() => {
|
|
92
|
+
const e = r("line_items");
|
|
93
|
+
if (!e?.length) return;
|
|
94
|
+
const t = e.filter((a) => !!a?.product?.name?.trim()), d = e.find((a) => !a?.product?.name?.trim()), _ = t.length > 0 ? t : e.length > 0 ? [i(d || void 0)] : [];
|
|
95
|
+
(_.length !== e.length || !_.every((a, z) => a.id === e[z]?.id)) && (m("line_items"), l("line_items", _, {
|
|
96
|
+
shouldValidate: !1,
|
|
97
|
+
shouldDirty: !0
|
|
98
|
+
}));
|
|
99
|
+
}, [r, l, m, i]), N = u((e, t, d) => {
|
|
100
|
+
l(e, t, {
|
|
101
|
+
shouldDirty: !0,
|
|
102
|
+
...d
|
|
103
|
+
}), d?.shouldValidate && h(e);
|
|
104
|
+
}, [l, h]), k = JSON.stringify(o.line_items), w = B(() => Array.isArray(o.line_items) ? n.map((e, t) => o.line_items?.[t] ?? {}) : n.map(() => ({})), [o.line_items, k, n]);
|
|
105
|
+
return {
|
|
106
|
+
fields: n,
|
|
107
|
+
subtotalPrice: q,
|
|
108
|
+
totalPrice: A,
|
|
109
|
+
totalTaxes: E,
|
|
110
|
+
lineItemErrors: w,
|
|
111
|
+
autoFocusIndex: F,
|
|
112
|
+
handleAddRow: M,
|
|
113
|
+
handleRemoveItem: U,
|
|
114
|
+
setValueWithValidationLocal: N,
|
|
115
|
+
cleanUpLineItemsForSubmission: $
|
|
116
|
+
};
|
|
37
117
|
};
|
|
38
118
|
export {
|
|
39
|
-
|
|
119
|
+
me as useLineItemManagement
|
|
40
120
|
};
|
|
@@ -1,37 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})),
|
|
30
|
-
onError: (s) => {
|
|
31
|
-
a.error(m(r, s));
|
|
1
|
+
import { rateMinorToMajor as p, rateMajorToMinor as f } from "./index94.js";
|
|
2
|
+
import { generateUniqueId as l } from "./index379.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;
|
|
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];
|
|
32
29
|
}
|
|
30
|
+
return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string";
|
|
33
31
|
});
|
|
34
|
-
|
|
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
|
+
}));
|
|
35
77
|
export {
|
|
36
|
-
|
|
78
|
+
j as formatMinorToMajorCurrency,
|
|
79
|
+
m as getErrorMessage,
|
|
80
|
+
d as getLineItemErrorMessage,
|
|
81
|
+
b as parseMajorToMinorCurrency,
|
|
82
|
+
_ as sanitizeLineItems,
|
|
83
|
+
M as sanitizeTaxRateInput
|
|
37
84
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (l !== void 0) return l;
|
|
3
|
-
if (e !== void 0) return null;
|
|
4
|
-
}
|
|
1
|
+
const t = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 9)}`;
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
t as generateUniqueId
|
|
7
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as b, Fragment as $ } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { ScopedCssBaselineContainerClassName as z } from "./index104.js";
|
|
3
3
|
import { InvoiceStatusChip as k } from "./index55.js";
|
|
4
|
-
import { ReceivableFilters as G } from "./
|
|
4
|
+
import { ReceivableFilters as G } from "./index172.js";
|
|
5
5
|
import "react-hot-toast";
|
|
6
6
|
import { useMoniteContext as A } from "./index57.js";
|
|
7
7
|
import { useLingui as B } from "@lingui/react";
|
|
@@ -11,7 +11,7 @@ import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
|
11
11
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
12
12
|
import "@tanstack/react-query";
|
|
13
13
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
14
|
-
import { useReceivablesFilters as W } from "./
|
|
14
|
+
import { useReceivablesFilters as W } from "./index173.js";
|
|
15
15
|
import "date-fns";
|
|
16
16
|
import { useCurrencies as j } from "./index58.js";
|
|
17
17
|
import "clsx";
|
|
@@ -24,12 +24,12 @@ import "./index92.js";
|
|
|
24
24
|
import { useAreCounterpartsLoading as V, defaultCounterpartColumnWidth as q, useAutosizeGridColumns as H } from "./index62.js";
|
|
25
25
|
import "react-hook-form";
|
|
26
26
|
import { MoniteScopedProviders as Q } from "./index83.js";
|
|
27
|
-
import { ReceivableCursorFields as x } from "./
|
|
27
|
+
import { ReceivableCursorFields as x } from "./index170.js";
|
|
28
28
|
import { CounterpartNameCellById as Y } from "./index162.js";
|
|
29
|
-
import { DataGridEmptyState as J } from "./
|
|
29
|
+
import { DataGridEmptyState as J } from "./index174.js";
|
|
30
30
|
import { GetNoRowsOverlay as K } from "./index163.js";
|
|
31
31
|
import { TablePagination as U } from "./index86.js";
|
|
32
|
-
import { classNames as X } from "./
|
|
32
|
+
import { classNames as X } from "./index175.js";
|
|
33
33
|
import { hasSelectedText as Z } from "./index165.js";
|
|
34
34
|
import { Stack as ee, Typography as te, Box as oe } from "@mui/material";
|
|
35
35
|
import { DataGrid as ie } from "@mui/x-data-grid";
|
|
@@ -1,87 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useFormContext as $, Controller as E } from "react-hook-form";
|
|
4
|
-
import { getCounterpartEmail as V, getCounterpartName as I } from "./index7.js";
|
|
5
|
-
import { useRootElements as j } from "./index92.js";
|
|
6
|
-
import "./index57.js";
|
|
7
|
-
import { useCounterpartList as k } from "./index71.js";
|
|
8
|
-
import "react-hot-toast";
|
|
9
|
-
import { useLingui as z } from "@lingui/react";
|
|
10
|
-
import { Combobox as D, ComboboxInput as A, ComboboxContent as q, ComboboxList as B, ComboboxEmpty as G, ComboboxItem as K } from "./index90.js";
|
|
11
|
-
import { Field as M, FieldContent as O, FieldLabel as P, FieldDescription as R, FieldError as T } from "./index159.js";
|
|
12
|
-
import { InputGroupAddon as H } from "./index101.js";
|
|
13
|
-
import { Loader2 as J, Search as Q } from "lucide-react";
|
|
14
|
-
const me = ({
|
|
15
|
-
disabled: _,
|
|
16
|
-
canCreateCounterpart: i = !0
|
|
17
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
+
const n = () => {
|
|
18
3
|
const {
|
|
19
|
-
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
control: x,
|
|
24
|
-
setValue: s,
|
|
25
|
-
watch: v,
|
|
26
|
-
clearErrors: f
|
|
27
|
-
} = $(), {
|
|
28
|
-
data: d,
|
|
29
|
-
isLoading: L
|
|
30
|
-
} = k({
|
|
31
|
-
query: {
|
|
32
|
-
is_customer: !0
|
|
4
|
+
api: t
|
|
5
|
+
} = o();
|
|
6
|
+
return t.finops.postFiles.useMutation({}, {
|
|
7
|
+
onError: () => {
|
|
33
8
|
}
|
|
34
|
-
})
|
|
35
|
-
id: e.id,
|
|
36
|
-
name: I(e),
|
|
37
|
-
email: V(e)
|
|
38
|
-
})) : [], [d]), a = p(() => {
|
|
39
|
-
const e = m.toLowerCase().trim();
|
|
40
|
-
return e ? c.filter((n) => n.name.toLowerCase().includes(e) || n.email.toLowerCase().includes(e)) : c;
|
|
41
|
-
}, [c, m]), y = p(() => a.map((e) => e.id), [a]);
|
|
42
|
-
return /* @__PURE__ */ t(E, { name: "counterpart_id", control: x, render: ({
|
|
43
|
-
field: e,
|
|
44
|
-
fieldState: {
|
|
45
|
-
error: n
|
|
46
|
-
}
|
|
47
|
-
}) => {
|
|
48
|
-
const w = (r) => {
|
|
49
|
-
s("counterpart_name", ""), s("counterpart_email", ""), f(["counterpart_id", "counterpart_email"]), e.onChange(r ?? "");
|
|
50
|
-
}, N = (r, l) => {
|
|
51
|
-
if (l.reason !== "input-change") {
|
|
52
|
-
i || s("counterpart_name", "");
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
s("counterpart_name", r), e.value && e.onChange(""), i && r.trim() && f("counterpart_id");
|
|
56
|
-
};
|
|
57
|
-
return /* @__PURE__ */ t(M, { children: /* @__PURE__ */ u(O, { children: [
|
|
58
|
-
/* @__PURE__ */ t(P, { htmlFor: "counterpart_id", children: o._("Name") }),
|
|
59
|
-
/* @__PURE__ */ u(D, { value: e.value || null, onValueChange: w, inputValue: m, onInputValueChange: N, items: y, filter: () => !0, disabled: _, open: h, onOpenChange: C, children: [
|
|
60
|
-
/* @__PURE__ */ t(A, { id: "counterpart_id", placeholder: i ? o._("Search or type to add a customer") : o._("Search for a customer"), "aria-invalid": !!n, onKeyDown: (r) => {
|
|
61
|
-
if (r.key === "Enter") {
|
|
62
|
-
r.preventDefault();
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (r.key === "Tab" && h) {
|
|
66
|
-
const l = m.toLowerCase().trim();
|
|
67
|
-
if (!l) return;
|
|
68
|
-
const b = a.find((F) => F.name.toLowerCase() === l) ?? (a.length === 1 ? a[0] : void 0);
|
|
69
|
-
b && (w(b.id), C(!1));
|
|
70
|
-
}
|
|
71
|
-
}, children: /* @__PURE__ */ t(H, { align: "inline-start", children: L ? /* @__PURE__ */ t(J, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ t(Q, { className: "ttw:size-4 ttw:text-muted-foreground" }) }) }),
|
|
72
|
-
/* @__PURE__ */ t(q, { container: g, children: /* @__PURE__ */ u(B, { children: [
|
|
73
|
-
/* @__PURE__ */ t(G, { children: i ? o._("No customers found - type to add a customer") : o._("No customers found") }),
|
|
74
|
-
a.map((r) => /* @__PURE__ */ t(K, { value: r.id, children: /* @__PURE__ */ u("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
75
|
-
/* @__PURE__ */ t("span", { children: r.name }),
|
|
76
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-muted-foreground", children: r.email })
|
|
77
|
-
] }) }, r.id))
|
|
78
|
-
] }) })
|
|
79
|
-
] }),
|
|
80
|
-
/* @__PURE__ */ t(R, { children: i ? o._("Search by customer name or email. New customers will be saved when saving the invoice.") : o._("Search by customer name or email.") }),
|
|
81
|
-
/* @__PURE__ */ t(T, { errors: n ? [n] : [] })
|
|
82
|
-
] }) });
|
|
83
|
-
} });
|
|
9
|
+
});
|
|
84
10
|
};
|
|
85
11
|
export {
|
|
86
|
-
|
|
12
|
+
n as useUploadReceivableAttachment
|
|
87
13
|
};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
className: t,
|
|
12
|
-
...a
|
|
13
|
-
}) {
|
|
14
|
-
return /* @__PURE__ */ e(r.Fallback, { "data-slot": "avatar-fallback", className: l("ttw:bg-muted ttw:flex ttw:size-full ttw:items-center ttw:justify-center ttw:rounded-full", t), ...a });
|
|
15
|
-
}
|
|
1
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
+
const r = () => {
|
|
3
|
+
const {
|
|
4
|
+
api: e
|
|
5
|
+
} = o();
|
|
6
|
+
return e.finops.deleteFilesId.useMutation(void 0, {
|
|
7
|
+
onError: () => {
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
};
|
|
16
11
|
export {
|
|
17
|
-
|
|
18
|
-
f as AvatarFallback
|
|
12
|
+
r as useDeleteFile
|
|
19
13
|
};
|