@tesouro/embedded-components-react 0.2.198 → 0.2.201
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/index.d.ts +3 -2
- package/dist/lib/InvoicingWidget.d.ts +3 -2
- package/dist/lib/ReceivablesWidget.js +21 -21
- package/dist/lib/monite-sdk.d.ts +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- 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/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- 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 +7 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +119 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +217 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +7 -7
- 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 +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +11 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +150 -24
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +43 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +77 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +226 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +468 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +539 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +23 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +25 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +20 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +24 -225
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +109 -462
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +66 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +11 -528
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -4
- 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/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +4 -4
- 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 +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 -355
- 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 +107 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -37
- 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 +26 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +59 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +47 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +97 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +43 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +143 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +22 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +55 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +28 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +56 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +16 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +30 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +42 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +94 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +107 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +83 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +92 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +93 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +212 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +62 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +5 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +486 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +168 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +23 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +127 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +160 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +28 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +29 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +77 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +52 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +5 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +71 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +32 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +19 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +127 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +48 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +115 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +105 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +47 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +198 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +68 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +149 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +23 -295
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +4 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +17 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +35 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +33 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +32 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +12 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +6 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +38 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +57 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +29 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +118 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +22 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +42 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +54 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +340 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +299 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +93 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +160 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +266 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +65 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +73 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +76 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +41 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +18 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +169 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +134 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +162 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +7 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +18 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +60 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +65 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +57 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +6 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +60 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +14 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +40 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +24 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +46 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +48 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +44 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +33 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +25 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +40 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +73 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +94 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +9 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +50 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +23 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +82 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +17 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +86 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +263 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +65 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +142 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +114 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +81 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +94 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +282 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +46 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +15 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +31 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +14 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +63 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +69 -16
- 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 +47 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +18 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +13 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +20 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +45 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +11 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +122 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +18 -25
- 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 +16 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +71 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +3 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +11 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +94 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +51 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +8 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +69 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +80 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +51 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +54 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +31 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +23 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +104 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +112 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +29 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +22 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +38 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +72 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +67 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +15 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +18 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +92 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +73 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +21 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +43 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +36 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +13 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +17 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +48 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +58 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +29 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +54 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +82 -28
- 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 +33 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +4 -4
- 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 +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +21 -21
- 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 +21 -21
- package/package.json +1 -1
|
@@ -1,119 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, o = ["su", "mo", "tu", "we", "th", "fr", "sa"], m = {
|
|
22
|
-
frequency: "once",
|
|
23
|
-
recurrence_start_date: void 0,
|
|
24
|
-
recurrence_end_date: void 0,
|
|
25
|
-
recurrence_end_mode: "after",
|
|
26
|
-
recurrence_max_occurrences: void 0,
|
|
27
|
-
recurrence_issue_mode: "first_day",
|
|
28
|
-
recurrence_days_of_week: void 0,
|
|
29
|
-
recurrence_subject_text: void 0,
|
|
30
|
-
recurrence_body_text: void 0
|
|
31
|
-
}, s = (e) => {
|
|
32
|
-
if (!e) return m;
|
|
33
|
-
const t = e.start_date ? d(e.start_date) : void 0;
|
|
34
|
-
return {
|
|
35
|
-
frequency: e.frequency,
|
|
36
|
-
recurrence_start_date: t,
|
|
37
|
-
recurrence_end_date: e.end_date ? d(e.end_date) : void 0,
|
|
38
|
-
recurrence_end_mode: e.end_date ? "on" : "after",
|
|
39
|
-
// The API returns `null` for these when unset, but the form's schema fields
|
|
40
|
-
// are `string | number | undefined` (optional) — `null` fails validation
|
|
41
|
-
// (invalid_type), so coerce absent values to `undefined`.
|
|
42
|
-
recurrence_max_occurrences: e.max_occurrences ?? void 0,
|
|
43
|
-
// Only read for a monthly frequency; harmless otherwise.
|
|
44
|
-
recurrence_issue_mode: t ? String(t.getDate()) : "first_day",
|
|
45
|
-
// Only read for a weekly frequency; harmless otherwise.
|
|
46
|
-
recurrence_days_of_week: t ? o[t.getDay()] : void 0,
|
|
47
|
-
recurrence_subject_text: e.subject_text ?? void 0,
|
|
48
|
-
recurrence_body_text: e.body_text ?? void 0
|
|
49
|
-
};
|
|
50
|
-
}, y = (e, t) => ({
|
|
51
|
-
// `invoice` is the only editable receivable type.
|
|
52
|
-
type: "invoice",
|
|
53
|
-
/** Customer section */
|
|
54
|
-
counterpart_id: e.counterpart_id,
|
|
55
|
-
// Existing counterpart is always selected by id, so the inline-create
|
|
56
|
-
// fields start empty.
|
|
57
|
-
counterpart_name: "",
|
|
58
|
-
counterpart_email: "",
|
|
59
|
-
default_shipping_address_id: e.counterpart_shipping_address?.id ?? "",
|
|
60
|
-
default_billing_address_id: e.counterpart_billing_address?.id ?? "",
|
|
61
|
-
/** Billing section */
|
|
62
|
-
purchase_order: e.purchase_order ?? "",
|
|
63
|
-
footer: e.footer ?? "",
|
|
64
|
-
...u(e.payment_terms),
|
|
65
|
-
/** Items section */
|
|
66
|
-
tax_mode: e.tax_mode ?? "exclusive",
|
|
67
|
-
tax_rate: (() => {
|
|
68
|
-
const r = e.line_items.find((_) => _.product.tax_rate?.value !== void 0);
|
|
69
|
-
return r ? String(n(r.product.tax_rate.value ?? 0)) : void 0;
|
|
70
|
-
})(),
|
|
71
|
-
line_items: e.line_items.map((r) => {
|
|
72
|
-
const _ = r.product.measure_unit?.name, a = r.product.measure_unit?.id;
|
|
73
|
-
return {
|
|
74
|
-
quantity: r.quantity,
|
|
75
|
-
product_id: r.product.id,
|
|
76
|
-
taxable: r.tax_status === "taxable",
|
|
77
|
-
product: {
|
|
78
|
-
name: r.product.name,
|
|
79
|
-
price: e.tax_mode === "inclusive" ? r.product.price_after_tax : r.product.price,
|
|
80
|
-
measure_unit_id: a && a !== "" ? a : void 0,
|
|
81
|
-
measure_unit_name: !a && _ ? _ : void 0,
|
|
82
|
-
type: r.product.type || "product"
|
|
83
|
-
},
|
|
84
|
-
measure_unit: !a && _ ? {
|
|
85
|
-
name: _,
|
|
86
|
-
id: null
|
|
87
|
-
} : void 0,
|
|
88
|
-
tax_rate_value: r.product.tax_rate.value !== void 0 ? n(r.product.tax_rate.value) : void 0
|
|
89
|
-
};
|
|
90
|
-
}),
|
|
91
|
-
memo: e.memo ?? "",
|
|
92
|
-
/** Payment / bank section */
|
|
93
|
-
bank_account_id: e.bank_account_id ?? "",
|
|
94
|
-
// A draft without a bank account has `bank_account_type: null`, but the
|
|
95
|
-
// form's enum field only accepts a valid member or `undefined` — seeding
|
|
96
|
-
// `null` fails validation (and, being an object-level parse error, would
|
|
97
|
-
// short-circuit the customer-required refinement). Coerce absent to
|
|
98
|
-
// `undefined`.
|
|
99
|
-
bank_account_type: e.bank_account_type || void 0,
|
|
100
|
-
/** Reminders section */
|
|
101
|
-
payment_reminder_id: e.payment_reminder_id ?? "",
|
|
102
|
-
overdue_reminder_id: e.overdue_reminder_id ?? "",
|
|
103
|
-
/** Attachments — seeded from the saved invoice so they show and persist. */
|
|
104
|
-
attachments: (e.attachments ?? []).map((r) => ({
|
|
105
|
-
id: r.id,
|
|
106
|
-
include_in_email: r.include_in_email,
|
|
107
|
-
name: r.name,
|
|
108
|
-
size: r.size
|
|
109
|
-
})),
|
|
110
|
-
/**
|
|
111
|
-
* Recurrence — seeded from the existing series when editing a recurring
|
|
112
|
-
* master (so the user can change the schedule), or the "once" defaults for
|
|
113
|
-
* a plain draft (where setting a frequency starts a new series on submit).
|
|
114
|
-
*/
|
|
115
|
-
...s(t)
|
|
116
|
-
});
|
|
1
|
+
import { useMoniteContext as r } from "./index57.js";
|
|
2
|
+
const i = (t, a) => {
|
|
3
|
+
const {
|
|
4
|
+
api: n
|
|
5
|
+
} = r();
|
|
6
|
+
return n.finops.getReceivablesIdPdfLink.useQuery({
|
|
7
|
+
path: {
|
|
8
|
+
receivable_id: t
|
|
9
|
+
}
|
|
10
|
+
}, {
|
|
11
|
+
enabled: a,
|
|
12
|
+
// Monite can return the PDF-link response before file_url is populated
|
|
13
|
+
// (the PDF is still generating). Poll until it's ready; self-terminates
|
|
14
|
+
// once file_url exists.
|
|
15
|
+
// Bounded so a never-populated file_url can't poll forever (e.g. PDF
|
|
16
|
+
// generation fails server-side): give up after ~30 attempts (~30s).
|
|
17
|
+
refetchInterval: (e) => e.state.data?.file_url || e.state.dataUpdateCount > 30 ? !1 : 1e3,
|
|
18
|
+
refetchIntervalInBackground: !0
|
|
19
|
+
});
|
|
20
|
+
};
|
|
117
21
|
export {
|
|
118
|
-
|
|
22
|
+
i as useGetReceivablePDFById
|
|
119
23
|
};
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
+
const a = ({
|
|
3
|
+
counterpart_billing_address_id: e,
|
|
4
|
+
counterpart_country: r,
|
|
5
|
+
counterpart_id: t,
|
|
6
|
+
counterpart_type: n
|
|
7
|
+
}) => {
|
|
8
|
+
const {
|
|
9
|
+
api: i
|
|
10
|
+
} = o();
|
|
11
|
+
return i.finops.getReceivablesRequiredFields.useQuery({
|
|
12
|
+
query: {
|
|
13
|
+
counterpart_billing_address_id: e,
|
|
14
|
+
counterpart_country: r,
|
|
15
|
+
counterpart_id: t,
|
|
16
|
+
counterpart_type: n
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
enabled: !!e && !!t
|
|
20
|
+
});
|
|
21
|
+
};
|
|
6
22
|
export {
|
|
7
|
-
|
|
23
|
+
a as useGetInvoiceRequiredFields
|
|
8
24
|
};
|
|
@@ -1,22 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { useMemo as y } from "react";
|
|
2
|
+
import { useLingui as B } from "@lingui/react";
|
|
3
|
+
import { useUserPermissions as I } from "./index135.js";
|
|
4
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
5
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
7
|
+
import "@tanstack/react-query";
|
|
8
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
9
|
+
import { Scope as s } from "../../shared/data-access/dist/lib/scopes.js";
|
|
10
|
+
import { getLineLabel as m } from "./index353.js";
|
|
11
|
+
import { useGetEmbeddedBankAccounts as N } from "./index354.js";
|
|
12
|
+
import { useGetEntityBankAccounts as v } from "./index355.js";
|
|
13
|
+
import { useGetExternalBankAccounts as R } from "./index356.js";
|
|
14
|
+
const P = (t = !0) => {
|
|
5
15
|
const {
|
|
6
16
|
i18n: o
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
} = B(), e = I(), u = t && e.has(s.BankAccountReadOrg), d = t && e.has(s.ExternalBankAccountReadOrg), {
|
|
18
|
+
data: n,
|
|
19
|
+
isLoading: p,
|
|
20
|
+
isError: _
|
|
21
|
+
} = v(void 0, t), {
|
|
22
|
+
data: i,
|
|
23
|
+
isLoading: l,
|
|
24
|
+
isFetching: b,
|
|
25
|
+
isError: E
|
|
26
|
+
} = N(void 0, u), {
|
|
27
|
+
data: c,
|
|
28
|
+
isLoading: A,
|
|
29
|
+
isFetching: k,
|
|
30
|
+
isError: g
|
|
31
|
+
} = R(void 0, d), r = p || l || A, f = !!(r || b || k || _ || E || g || n?.next_pagination_token);
|
|
32
|
+
return {
|
|
33
|
+
bankAccounts: y(() => [...(n?.data ?? []).map((a) => ({
|
|
34
|
+
id: a.id,
|
|
35
|
+
display_name: a.display_name,
|
|
36
|
+
account_number: a.account_number,
|
|
37
|
+
account_number_last4: a.account_number_last4,
|
|
38
|
+
bank_account_type: "BANK_DETAILS"
|
|
39
|
+
})), ...(i?.data ?? []).filter((a) => a.status === "ACTIVE").map((a) => ({
|
|
40
|
+
id: a.id,
|
|
41
|
+
display_name: a.nickname,
|
|
42
|
+
account_number: a.accountNumber,
|
|
43
|
+
account_number_last4: null,
|
|
44
|
+
bank_account_type: "INTERNAL"
|
|
45
|
+
})), ...(c?.data ?? []).filter((a) => a.accountStatus === "ACTIVE" && a.verificationStatus === "VERIFIED").map((a) => ({
|
|
46
|
+
id: a.id,
|
|
47
|
+
display_name: a.nickname || a.nameOnAccount,
|
|
48
|
+
account_number: a.accountNumber,
|
|
49
|
+
account_number_last4: null,
|
|
50
|
+
bank_account_type: "EXTERNAL"
|
|
51
|
+
}))].sort((a, L) => m(a, o).localeCompare(m(L, o))), [n, i, c, o]),
|
|
52
|
+
isLoading: r,
|
|
53
|
+
isIncomplete: f
|
|
54
|
+
};
|
|
19
55
|
};
|
|
20
56
|
export {
|
|
21
|
-
|
|
57
|
+
P as useSelectableBankAccounts
|
|
22
58
|
};
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { toast as a } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
3
|
+
import { useLingui as n } from "@lingui/react";
|
|
4
|
+
const p = () => {
|
|
3
5
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
i18n: t
|
|
7
|
+
} = n(), {
|
|
8
|
+
api: e,
|
|
9
|
+
queryClient: s
|
|
10
|
+
} = o();
|
|
11
|
+
return e.finops.postReceivablesIdIssue.useMutation(void 0, {
|
|
12
|
+
onSuccess: async (i) => {
|
|
13
|
+
e.finops.getReceivablesId.setQueryData({
|
|
14
|
+
path: {
|
|
15
|
+
receivable_id: i.id
|
|
16
|
+
}
|
|
17
|
+
}, i, s), await Promise.all([e.finops.getReceivables.invalidateQueries(s), e.finops.getReceivablesIdPdfLink.resetQueries({
|
|
18
|
+
parameters: {
|
|
19
|
+
path: {
|
|
20
|
+
receivable_id: i.id
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, s)]), a.success(t._("Invoice has been issued"));
|
|
9
24
|
}
|
|
10
|
-
}, {
|
|
11
|
-
enabled: !!e
|
|
12
25
|
});
|
|
13
26
|
};
|
|
14
27
|
export {
|
|
15
|
-
|
|
28
|
+
p as useIssueReceivableById
|
|
16
29
|
};
|
|
@@ -1,16 +1,39 @@
|
|
|
1
1
|
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
-
|
|
2
|
+
import { getAPIErrorMessage as u } from "./index119.js";
|
|
3
|
+
import { useLingui as c } from "@lingui/react";
|
|
4
|
+
import { toast as a } from "react-hot-toast";
|
|
5
|
+
const f = (s, t) => {
|
|
3
6
|
const {
|
|
4
|
-
|
|
7
|
+
i18n: i
|
|
8
|
+
} = c(), {
|
|
9
|
+
api: e,
|
|
10
|
+
queryClient: r
|
|
5
11
|
} = o();
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
return e.finops.postRecurrencesIdPause.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
recurrence_id: s
|
|
9
15
|
}
|
|
10
16
|
}, {
|
|
11
|
-
|
|
17
|
+
onError: (n) => {
|
|
18
|
+
a.error(u(i, n));
|
|
19
|
+
},
|
|
20
|
+
onSuccess: async () => {
|
|
21
|
+
await Promise.all([e.finops.getReceivables.invalidateQueries(r), e.finops.getReceivablesId.invalidateQueries({
|
|
22
|
+
parameters: {
|
|
23
|
+
path: {
|
|
24
|
+
receivable_id: t
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, r), e.finops.getRecurrencesId.invalidateQueries({
|
|
28
|
+
parameters: {
|
|
29
|
+
path: {
|
|
30
|
+
recurrence_id: s
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, r)]), a.success(i._("Series has been paused"));
|
|
34
|
+
}
|
|
12
35
|
});
|
|
13
36
|
};
|
|
14
37
|
export {
|
|
15
|
-
|
|
38
|
+
f as usePauseRecurrence
|
|
16
39
|
};
|
|
@@ -1,16 +1,39 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
|
|
1
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as u } from "./index119.js";
|
|
3
|
+
import { useLingui as c } from "@lingui/react";
|
|
4
|
+
import { toast as t } from "react-hot-toast";
|
|
5
|
+
const f = (s, a) => {
|
|
3
6
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
+
i18n: i
|
|
8
|
+
} = c(), {
|
|
9
|
+
api: e,
|
|
10
|
+
queryClient: r
|
|
11
|
+
} = o();
|
|
12
|
+
return e.finops.postRecurrencesIdResume.useMutation({
|
|
7
13
|
path: {
|
|
8
|
-
|
|
14
|
+
recurrence_id: s
|
|
9
15
|
}
|
|
10
16
|
}, {
|
|
11
|
-
|
|
17
|
+
onError: (n) => {
|
|
18
|
+
t.error(u(i, n));
|
|
19
|
+
},
|
|
20
|
+
onSuccess: async () => {
|
|
21
|
+
await Promise.all([e.finops.getReceivables.invalidateQueries(r), e.finops.getReceivablesId.invalidateQueries({
|
|
22
|
+
parameters: {
|
|
23
|
+
path: {
|
|
24
|
+
receivable_id: a
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, r), e.finops.getRecurrencesId.invalidateQueries({
|
|
28
|
+
parameters: {
|
|
29
|
+
path: {
|
|
30
|
+
recurrence_id: s
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, r)]), t.success(i._("Series has been resumed"));
|
|
34
|
+
}
|
|
12
35
|
});
|
|
13
36
|
};
|
|
14
37
|
export {
|
|
15
|
-
|
|
38
|
+
f as useResumeRecurrence
|
|
16
39
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
1
|
+
import { jsxs as s, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { amountValueToneClass as m } from "./index224.js";
|
|
3
|
+
import { Typography as o } from "./index85.js";
|
|
4
|
+
import { cn as l } from "./index100.js";
|
|
5
|
+
function f({
|
|
6
|
+
row: a,
|
|
7
|
+
defaultTone: t
|
|
8
|
+
}) {
|
|
9
|
+
const n = a.tone ?? (a.emphasis ? t : "default");
|
|
10
|
+
return /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
11
|
+
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", className: "ttw:font-medium", children: a.label }),
|
|
12
|
+
/* @__PURE__ */ e(o, { component: "span", variant: a.emphasis ? "h3" : "body1", className: l(!a.emphasis && "ttw:font-medium", m[n]), children: a.value })
|
|
13
|
+
] });
|
|
14
|
+
}
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
f as InvoiceDetailsAmountCell
|
|
16
17
|
};
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsxs as r, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { AccordionItem as c, AccordionTrigger as i, AccordionContent as o } from "./index220.js";
|
|
3
|
+
import { Badge as s } from "./index221.js";
|
|
4
|
+
import { Typography as n } from "./index85.js";
|
|
5
|
+
import { useLingui as d } from "@lingui/react";
|
|
6
|
+
import { Check as m } from "lucide-react";
|
|
7
|
+
const N = ({
|
|
8
|
+
attachments: l
|
|
9
|
+
}) => {
|
|
3
10
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
i18n: e
|
|
12
|
+
} = d();
|
|
13
|
+
return /* @__PURE__ */ r(c, { value: "attachments", children: [
|
|
14
|
+
/* @__PURE__ */ t(i, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
15
|
+
/* @__PURE__ */ t("span", { className: "ttw:group-hover:underline", children: e._("Attachments") }),
|
|
16
|
+
/* @__PURE__ */ t(s, { variant: "secondary", className: "ttw:rounded-full", children: l.length })
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ t(o, { children: l.length === 0 ? /* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("No attached files") }) : /* @__PURE__ */ r("table", { className: "ttw:w-full ttw:border-collapse", children: [
|
|
19
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ r("tr", { className: "ttw:border-b ttw:border-border", children: [
|
|
20
|
+
/* @__PURE__ */ t("th", { scope: "col", className: "ttw:py-2 ttw:text-left", children: /* @__PURE__ */ t(n, { component: "span", variant: "caption", color: "muted", children: e._("File") }) }),
|
|
21
|
+
/* @__PURE__ */ t("th", { scope: "col", className: "ttw:py-2 ttw:text-right", children: /* @__PURE__ */ t(n, { component: "span", variant: "caption", color: "muted", children: e._("Emailed") }) })
|
|
22
|
+
] }) }),
|
|
23
|
+
/* @__PURE__ */ t("tbody", { children: l.map((a) => /* @__PURE__ */ r("tr", { className: "ttw:border-b ttw:border-border ttw:last:border-b-0", children: [
|
|
24
|
+
/* @__PURE__ */ t("td", { className: "ttw:py-3", children: /* @__PURE__ */ t("a", { href: a.url, target: "_blank", rel: "noreferrer", className: "ttw:text-primary ttw:hover:underline", children: a.name }) }),
|
|
25
|
+
/* @__PURE__ */ t("td", { className: "ttw:py-3 ttw:text-right ttw:align-middle", children: a.include_in_email ? /* @__PURE__ */ t(m, { role: "img", "aria-label": e._("Included in email"), className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600" }) : /* @__PURE__ */ t("span", { className: "ttw:sr-only", children: e._("Not included in email") }) })
|
|
26
|
+
] }, a.id)) })
|
|
27
|
+
] }) })
|
|
28
|
+
] });
|
|
20
29
|
};
|
|
21
30
|
export {
|
|
22
|
-
|
|
31
|
+
N as InvoiceDetailsAttachments
|
|
23
32
|
};
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}, {
|
|
19
|
-
enabled: !!e && !!t
|
|
20
|
-
});
|
|
21
|
-
};
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as c } from "./index84.js";
|
|
3
|
+
import { XIcon as m } from "lucide-react";
|
|
4
|
+
import { forwardRef as f } from "react";
|
|
5
|
+
const v = f(function({
|
|
6
|
+
label: r,
|
|
7
|
+
onClose: t,
|
|
8
|
+
variant: i = "ghost",
|
|
9
|
+
size: e = "icon",
|
|
10
|
+
onClick: n,
|
|
11
|
+
...a
|
|
12
|
+
}, s) {
|
|
13
|
+
return /* @__PURE__ */ o(c, { ref: s, variant: i, size: e, ...a, "aria-label": r, onClick: (l) => {
|
|
14
|
+
n?.(l), t();
|
|
15
|
+
}, children: /* @__PURE__ */ o(m, { className: "ttw:size-4" }) });
|
|
16
|
+
});
|
|
22
17
|
export {
|
|
23
|
-
|
|
18
|
+
v as InvoiceDetailsCloseButton
|
|
24
19
|
};
|
|
@@ -1,29 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as s, jsxs as N, Fragment as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { getDraftInvoiceValidationSchema as B, getInvoiceValidationSchema as V } from "./index178.js";
|
|
3
|
+
import { useMeasureUnitsMapping as q } from "./index357.js";
|
|
4
|
+
import { useGetRecurrenceById as A } from "./index233.js";
|
|
5
|
+
import { useReceivableSubmit as P } from "./index179.js";
|
|
6
|
+
import { useMoniteContext as D } from "./index57.js";
|
|
7
|
+
import { useUserPermissions as G } from "./index135.js";
|
|
8
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
9
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
11
|
+
import "@tanstack/react-query";
|
|
12
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
13
|
+
import { Scope as O } from "../../shared/data-access/dist/lib/scopes.js";
|
|
14
|
+
import { useRef as j, useMemo as c, useCallback as w, useEffect as z } from "react";
|
|
15
|
+
import { Button as l } from "./index84.js";
|
|
16
|
+
import { LoadingPage as W } from "./index273.js";
|
|
17
|
+
import { zodResolver as C } from "@hookform/resolvers/zod";
|
|
18
|
+
import { useLingui as X } from "@lingui/react";
|
|
19
|
+
import { useForm as H } from "react-hook-form";
|
|
20
|
+
import { useGetMeasureUnits as J } from "./index307.js";
|
|
21
|
+
import "date-fns";
|
|
22
|
+
import { buildEditInvoiceFormValues as K } from "./index227.js";
|
|
23
|
+
import { ReceivableFormLayout as Q } from "./index180.js";
|
|
24
|
+
const Re = (o) => {
|
|
5
25
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
data: m,
|
|
27
|
+
isLoading: d
|
|
28
|
+
} = A(o.invoice.recurrence_id);
|
|
29
|
+
return o.invoice.recurrence_id && d ? /* @__PURE__ */ s(W, {}) : /* @__PURE__ */ s(T, { ...o, recurrence: m });
|
|
30
|
+
}, T = ({
|
|
31
|
+
invoice: o,
|
|
32
|
+
onCancel: m,
|
|
33
|
+
onUpdated: d,
|
|
34
|
+
isOpen: R,
|
|
35
|
+
recurrence: t,
|
|
36
|
+
issueIntent: I,
|
|
37
|
+
embeddedBankName: L
|
|
38
|
+
}) => {
|
|
39
|
+
const {
|
|
40
|
+
i18n: r
|
|
41
|
+
} = X(), {
|
|
42
|
+
componentSettings: S
|
|
43
|
+
} = D(), a = G().has(O.CounterpartWriteOrg), p = !!S?.receivables?.enableEntityBankAccount, f = j("draft"), {
|
|
44
|
+
data: _
|
|
45
|
+
} = J(), g = o.currency, E = c(() => K(o, t), [o, t]), n = c(() => t?.iterations?.filter((i) => i.issued_invoice_id).length ?? 0, [t?.iterations]), h = c(() => C(B(r, a, n)), [r, a, n]), b = c(() => C(V(r, p, a, n)), [r, p, a, n]), U = w((i, k, F) => (f.current === "issue" || i.frequency !== "once" && n === 0 ? b : h)(i, k, F), [b, h, n]), u = H({
|
|
46
|
+
mode: "onBlur",
|
|
47
|
+
resolver: U,
|
|
48
|
+
defaultValues: E
|
|
49
|
+
}), {
|
|
50
|
+
getValues: y,
|
|
51
|
+
reset: M
|
|
52
|
+
} = u;
|
|
53
|
+
q(_, y, M);
|
|
54
|
+
const v = !!t?.iterations?.some((i) => i.issued_invoice_id), e = P({
|
|
55
|
+
mode: "edit",
|
|
56
|
+
methods: u,
|
|
57
|
+
currency: g,
|
|
58
|
+
invoice: o,
|
|
59
|
+
submitModeRef: f,
|
|
60
|
+
// When editing a series, switch the recurrence save to PATCH. `interval`
|
|
61
|
+
// isn't passed: the form has no interval control, and omitting it from the
|
|
62
|
+
// PATCH is what preserves the stored value.
|
|
63
|
+
existingRecurrence: t ? {
|
|
64
|
+
id: t.id,
|
|
65
|
+
scheduleLocked: v
|
|
66
|
+
} : void 0,
|
|
67
|
+
hasStartedRecurrence: n > 0,
|
|
68
|
+
onComplete: (i) => d(i.receivable, {
|
|
69
|
+
inlineLineItems: i.inlineLineItems,
|
|
70
|
+
activatedRecurrence: i.mode === "recurrence",
|
|
71
|
+
issued: i.mode === "issue",
|
|
72
|
+
counterpartId: i.counterpartId,
|
|
73
|
+
hasCustomerEmail: i.hasCustomerEmail
|
|
74
|
+
}),
|
|
75
|
+
onClose: m
|
|
25
76
|
});
|
|
77
|
+
return z(() => {
|
|
78
|
+
I && e.highlightForIssue();
|
|
79
|
+
}, []), /* @__PURE__ */ s(
|
|
80
|
+
Q,
|
|
81
|
+
{
|
|
82
|
+
open: R,
|
|
83
|
+
onRequestClose: e.requestClose,
|
|
84
|
+
methods: u,
|
|
85
|
+
title: r._("Edit invoice"),
|
|
86
|
+
currency: g,
|
|
87
|
+
embeddedBankName: L,
|
|
88
|
+
showPurchaseOrder: !1,
|
|
89
|
+
lockRecurrenceSchedule: v,
|
|
90
|
+
formName: e.formName,
|
|
91
|
+
onSubmit: e.onSubmit,
|
|
92
|
+
formScrollRef: e.formScrollRef,
|
|
93
|
+
registerLineItemCleanupFn: e.registerLineItemCleanupFn,
|
|
94
|
+
onAttachmentsUploadingChange: e.onAttachmentsUploadingChange,
|
|
95
|
+
disabled: e.isLoading,
|
|
96
|
+
closeDisabled: e.isSaving,
|
|
97
|
+
discardModal: e.discardModal,
|
|
98
|
+
footer: /* @__PURE__ */ N(x, { children: [
|
|
99
|
+
/* @__PURE__ */ s(l, { variant: "outline", className: "ttw:border-border", onClick: e.requestClose, disabled: e.isSaving || e.attachmentsUploading, children: r._("Cancel") }),
|
|
100
|
+
!e.isRecurrenceEnabled && /* @__PURE__ */ s(l, { variant: "secondary", type: "submit", form: e.formName, disabled: e.isLoading || e.attachmentsUploading, onClick: () => {
|
|
101
|
+
e.submitModeRef.current = "draft";
|
|
102
|
+
}, children: r._("Update draft") }),
|
|
103
|
+
/* @__PURE__ */ s(l, { type: "submit", form: e.formName, disabled: e.isLoading || e.attachmentsUploading || e.isIssuePreflightLoading || !e.isRecurrenceEnabled && e.isCustomerEmailLoading, onClick: () => {
|
|
104
|
+
e.submitModeRef.current = e.isRecurrenceEnabled ? "draft" : "issue";
|
|
105
|
+
}, children: e.isRecurrenceEnabled ? t ? r._("Update recurring billing schedule") : r._("Activate recurring billing schedule") : r._("Issue invoice") }, "next")
|
|
106
|
+
] })
|
|
107
|
+
}
|
|
108
|
+
);
|
|
26
109
|
};
|
|
27
110
|
export {
|
|
28
|
-
|
|
111
|
+
Re as EditInvoiceDetails
|
|
29
112
|
};
|