@tesouro/embedded-components-react 0.2.111 → 0.2.113
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.css +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/lib/monite-sdk.d.ts +8 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +1270 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +9 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +33 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +30 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +12 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +12 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +122 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +117 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +47 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +46 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +11 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +56 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +150 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +25 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +56 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +69 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +24 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +3 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +36 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +79 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +57 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +9 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +76 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +57 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +196 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +21 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +74 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +28 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +38 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +7 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +113 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +70 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +190 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +31 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +111 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +132 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +183 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +12 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +18 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +48 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +87 -45
- 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 +37 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +42 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +47 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +203 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +421 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +141 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +35 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +100 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +146 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +26 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +28 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +94 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +86 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +62 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +47 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +26 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +4 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +76 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +484 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +164 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +42 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +29 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +112 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +21 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +41 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +57 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +34 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +345 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +20 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +9 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +9 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +18 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +28 -294
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +30 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +14 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +17 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +246 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +12 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +19 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +24 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +40 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +55 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +52 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +96 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +46 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +144 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +106 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +53 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +28 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +57 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +16 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +2 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +95 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +94 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +211 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +41 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +340 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +297 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +100 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +162 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +265 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +66 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +149 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +14 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +74 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +77 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +43 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +17 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +42 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +157 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +27 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +60 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +25 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +141 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +107 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +80 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +282 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +46 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +15 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +83 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +218 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +35 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +11 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +11 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +167 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +131 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +162 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +9 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +61 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +51 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +8 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +60 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +60 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +90 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +82 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +17 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +48 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +50 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +27 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +125 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +255 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +53 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +21 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +65 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +19 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +13 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +34 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +35 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +45 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +27 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +66 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +19 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +117 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +14 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +73 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +16 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +33 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +40 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +72 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +94 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +19 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +47 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +9 -21
- 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 +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +94 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +125 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +49 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +15 -47
- 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 +66 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +45 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +19 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +5 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +29 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +9 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +32 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +105 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +112 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +74 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +66 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +35 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +50 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +38 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +55 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +69 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +82 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +18 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +29 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +68 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +32 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +54 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +95 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +16 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +75 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +9 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +15 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +41 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +13 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +49 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +1 -1
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/onboarding-widget/ui/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/onboarding-widget/ui/dist/index6.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/profile-widget/ui/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index6.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +53 -53
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index12.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index13.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index15.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index16.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index6.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index4.js +29 -29
- package/dist/packages/shared-ui-shadcn/dist/index.js +892 -892
- package/package.json +1 -1
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ n(o.Content, { "data-slot": "tooltip-content", sideOffset: r, className: d("ttw:bg-primary ttw:text-primary-foreground ttw:animate-in ttw:fade-in-0 ttw:zoom-in-95 ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-fit ttw:origin-(--radix-tooltip-content-transform-origin) ttw:rounded-md ttw:px-3 ttw:py-1.5 ttw:text-xs ttw:text-balance", t), ...e, children: [
|
|
27
|
-
a,
|
|
28
|
-
/* @__PURE__ */ i(o.Arrow, { className: "ttw:bg-primary ttw:fill-primary ttw:z-1300 ttw:size-2.5 ttw:translate-y-[calc(-50%_-_2px)] ttw:rotate-45 ttw:rounded-[2px]" })
|
|
29
|
-
] }) });
|
|
30
|
-
}
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
import { useLingui as a } from "@lingui/react";
|
|
3
|
+
import { toast as s } from "react-hot-toast";
|
|
4
|
+
const c = () => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: r
|
|
7
|
+
} = a(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: o
|
|
10
|
+
} = n();
|
|
11
|
+
return t.finops.postCounterpartsIdBankAccounts.useMutation(void 0, {
|
|
12
|
+
onSuccess: async (e) => {
|
|
13
|
+
await t.finops.getCounterpartsIdBankAccounts.invalidateQueries({
|
|
14
|
+
parameters: {
|
|
15
|
+
path: {
|
|
16
|
+
counterpart_id: e.counterpart_id
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, o);
|
|
20
|
+
},
|
|
21
|
+
onError: () => {
|
|
22
|
+
s.error(r._("There was an error setting up the bank account"));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
31
26
|
export {
|
|
32
|
-
|
|
33
|
-
f as TooltipContent,
|
|
34
|
-
s as TooltipProvider,
|
|
35
|
-
p as TooltipTrigger
|
|
27
|
+
c as useCreateCounterpartBank
|
|
36
28
|
};
|
|
@@ -1,68 +1,22 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "@
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
recordPayment: m,
|
|
21
|
-
send: l,
|
|
22
|
-
clone: p,
|
|
23
|
-
cancel: t,
|
|
24
|
-
delete: s,
|
|
25
|
-
markUncollectible: d,
|
|
26
|
-
pauseRecurrence: o,
|
|
27
|
-
resumeRecurrence: n,
|
|
28
|
-
cancelRecurrence: i
|
|
29
|
-
}, U = {
|
|
30
|
-
draft: c,
|
|
31
|
-
issuing: e,
|
|
32
|
-
issued: e,
|
|
33
|
-
partially_paid: e,
|
|
34
|
-
paid: a,
|
|
35
|
-
overdue: e,
|
|
36
|
-
canceled: t
|
|
37
|
-
}, D = {
|
|
38
|
-
active: r,
|
|
39
|
-
paused: o,
|
|
40
|
-
canceled: t,
|
|
41
|
-
completed: a
|
|
42
|
-
}, k = {
|
|
43
|
-
default: "ttw:text-foreground",
|
|
44
|
-
danger: "ttw:text-red-600",
|
|
45
|
-
success: "ttw:text-emerald-600",
|
|
46
|
-
muted: "ttw:text-muted-foreground"
|
|
47
|
-
}, v = "ttw:bg-muted ttw:text-muted-foreground ttw:hover:bg-accent", H = 500, b = [
|
|
48
|
-
"application/pdf",
|
|
49
|
-
"image/jpeg",
|
|
50
|
-
"image/png",
|
|
51
|
-
"application/msword",
|
|
52
|
-
// .doc
|
|
53
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
54
|
-
// .docx
|
|
55
|
-
], y = ["pdf", "jpg", "jpeg", "png", "doc", "docx"], F = 3, L = 10;
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
import { useLingui as s } from "@lingui/react";
|
|
3
|
+
import { toast as r } from "react-hot-toast";
|
|
4
|
+
const p = () => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: e
|
|
7
|
+
} = s(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: o
|
|
10
|
+
} = n();
|
|
11
|
+
return t.finops.deleteCounterpartsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async () => {
|
|
13
|
+
await t.finops.getCounterparts.invalidateQueries(o), r.success(e._("Counterpart has been deleted."));
|
|
14
|
+
},
|
|
15
|
+
onError: () => {
|
|
16
|
+
r.error(e._("Failed to delete Counterpart."));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
56
20
|
export {
|
|
57
|
-
|
|
58
|
-
y as ATTACHMENT_ACCEPTED_EXTENSIONS,
|
|
59
|
-
b as ATTACHMENT_ACCEPTED_FORMATS,
|
|
60
|
-
L as ATTACHMENT_MAX_FILE_COUNT,
|
|
61
|
-
F as ATTACHMENT_MAX_FILE_SIZE_MB,
|
|
62
|
-
H as HEADER_TOOLTIP_DELAY,
|
|
63
|
-
P as INVOICE_DOCUMENT_AUTO_ID,
|
|
64
|
-
D as RECURRENCE_STATUS_ICON,
|
|
65
|
-
U as STATUS_ICON,
|
|
66
|
-
k as amountValueToneClass,
|
|
67
|
-
v as headerIconButtonClass
|
|
21
|
+
p as useDeleteCounterpart
|
|
68
22
|
};
|
|
@@ -1,348 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
case "recurring":
|
|
25
|
-
return e._("Recurring");
|
|
26
|
-
case "expired":
|
|
27
|
-
return e._("Expired");
|
|
28
|
-
case "declined":
|
|
29
|
-
return e._("Declined");
|
|
30
|
-
case "accepted":
|
|
31
|
-
return e._("Accepted");
|
|
32
|
-
case "deleted":
|
|
33
|
-
return e._("Deleted");
|
|
34
|
-
default:
|
|
35
|
-
return e._("Unknown");
|
|
36
|
-
}
|
|
37
|
-
}, v = (e, r) => {
|
|
38
|
-
switch (r) {
|
|
39
|
-
case "day":
|
|
40
|
-
return e._("Daily");
|
|
41
|
-
case "week":
|
|
42
|
-
return e._("Weekly");
|
|
43
|
-
case "month":
|
|
44
|
-
return e._("Monthly");
|
|
45
|
-
case "quarter":
|
|
46
|
-
return e._("Quarterly");
|
|
47
|
-
case "year":
|
|
48
|
-
return e._("Yearly");
|
|
49
|
-
default:
|
|
50
|
-
return "";
|
|
51
|
-
}
|
|
52
|
-
}, H = (e, r) => {
|
|
53
|
-
switch (r) {
|
|
54
|
-
case "day":
|
|
55
|
-
return e._("each day");
|
|
56
|
-
case "week":
|
|
57
|
-
return e._("each week");
|
|
58
|
-
case "month":
|
|
59
|
-
return e._("each month");
|
|
60
|
-
case "quarter":
|
|
61
|
-
return e._("each quarter");
|
|
62
|
-
case "year":
|
|
63
|
-
return e._("each year");
|
|
64
|
-
default:
|
|
65
|
-
return "";
|
|
66
|
-
}
|
|
67
|
-
}, J = ["issued", "overdue", "partially_paid", "paid", "uncollectible"], V = {
|
|
68
|
-
// Draft keeps both the issue-only ("Issue") and issue-and-email ("Issue and
|
|
69
|
-
// send") flows the legacy panel offered. This intentionally diverges from the
|
|
70
|
-
// current Figma (which has no email design yet) per David's QA — the send
|
|
71
|
-
// flow must survive the redesign. Revisit when the email flow is redesigned.
|
|
72
|
-
draft: {
|
|
73
|
-
primary: ["edit", "issue", "issueAndSend"],
|
|
74
|
-
overflow: ["clone", "delete"]
|
|
75
|
-
},
|
|
76
|
-
issued: {
|
|
77
|
-
primary: ["recordPayment"],
|
|
78
|
-
overflow: ["clone", "send", "cancel"]
|
|
79
|
-
},
|
|
80
|
-
// Overdue keeps the write-off (mark uncollectible) action the legacy exposed.
|
|
81
|
-
overdue: {
|
|
82
|
-
primary: ["recordPayment"],
|
|
83
|
-
overflow: ["clone", "send", "cancel", "markUncollectible"]
|
|
84
|
-
},
|
|
85
|
-
// No cancel: the backend rejects cancelling a partially-paid invoice with a
|
|
86
|
-
// 409 ("Only invoices in issued and overdue statuses can be canceled"), so
|
|
87
|
-
// offering it here would be a dead-end error toast. Matches the legacy
|
|
88
|
-
// actions, which gated Cancel to issued/overdue only.
|
|
89
|
-
partially_paid: {
|
|
90
|
-
primary: ["recordPayment"],
|
|
91
|
-
overflow: ["clone", "send"]
|
|
92
|
-
},
|
|
93
|
-
paid: {
|
|
94
|
-
primary: [],
|
|
95
|
-
overflow: ["clone"]
|
|
96
|
-
},
|
|
97
|
-
canceled: {
|
|
98
|
-
primary: [],
|
|
99
|
-
overflow: ["clone"]
|
|
100
|
-
},
|
|
101
|
-
uncollectible: {
|
|
102
|
-
primary: [],
|
|
103
|
-
overflow: ["clone"]
|
|
104
|
-
},
|
|
105
|
-
// The recurring master's series actions (pause/resume/cancel) are derived
|
|
106
|
-
// from the recurrence status below, not statically.
|
|
107
|
-
recurring: {
|
|
108
|
-
primary: [],
|
|
109
|
-
overflow: []
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
function re(e, r, k, {
|
|
113
|
-
i18n: a,
|
|
114
|
-
formatCurrencyToDisplay: L,
|
|
115
|
-
locale: D
|
|
116
|
-
}, P = !1, b = {}) {
|
|
117
|
-
const R = e.currency, n = (t) => L(t ?? 0, R) ?? "", c = (t) => t ? a.date(t, D.dateFormat) : "-", u = e.status, y = u === "canceled", d = u === "overdue", f = e.tax_mode === "inclusive", x = !!e.recurrence_id || u === "recurring", i = u === "recurring" && !!r, T = !!e.recurrence_id && u !== "recurring", h = d ? Y(e.due_date) : 0;
|
|
118
|
-
let s = "default";
|
|
119
|
-
const l = [];
|
|
120
|
-
switch (u) {
|
|
121
|
-
case "draft":
|
|
122
|
-
case "recurring":
|
|
123
|
-
l.push({
|
|
124
|
-
label: a._("Invoice amount"),
|
|
125
|
-
value: n(e.total_amount),
|
|
126
|
-
emphasis: !0
|
|
127
|
-
});
|
|
128
|
-
break;
|
|
129
|
-
case "issued":
|
|
130
|
-
case "overdue":
|
|
131
|
-
s = d ? "danger" : "default", l.push({
|
|
132
|
-
label: a._("Balance due"),
|
|
133
|
-
value: n(e.amount_due),
|
|
134
|
-
emphasis: !0
|
|
135
|
-
}), (e.amount_paid ?? 0) > 0 && l.push({
|
|
136
|
-
label: a._("Amount received"),
|
|
137
|
-
value: n(e.amount_paid),
|
|
138
|
-
tone: "success"
|
|
139
|
-
});
|
|
140
|
-
break;
|
|
141
|
-
case "partially_paid":
|
|
142
|
-
l.push({
|
|
143
|
-
label: a._("Balance due"),
|
|
144
|
-
value: n(e.amount_due),
|
|
145
|
-
emphasis: !0
|
|
146
|
-
}, {
|
|
147
|
-
label: a._("Amount received"),
|
|
148
|
-
value: n(e.amount_paid),
|
|
149
|
-
tone: "success"
|
|
150
|
-
});
|
|
151
|
-
break;
|
|
152
|
-
case "paid":
|
|
153
|
-
s = "success", l.push({
|
|
154
|
-
label: a._("Amount received"),
|
|
155
|
-
value: n(e.amount_paid),
|
|
156
|
-
emphasis: !0
|
|
157
|
-
});
|
|
158
|
-
break;
|
|
159
|
-
case "canceled":
|
|
160
|
-
s = "muted", l.push({
|
|
161
|
-
label: a._("Cancelled amount"),
|
|
162
|
-
value: n(e.total_amount),
|
|
163
|
-
emphasis: !0
|
|
164
|
-
});
|
|
165
|
-
break;
|
|
166
|
-
case "uncollectible":
|
|
167
|
-
s = "muted", l.push({
|
|
168
|
-
label: a._("Amount written off"),
|
|
169
|
-
value: n(e.amount_due),
|
|
170
|
-
emphasis: !0
|
|
171
|
-
});
|
|
172
|
-
break;
|
|
173
|
-
default:
|
|
174
|
-
l.push({
|
|
175
|
-
label: a._("Invoice amount"),
|
|
176
|
-
value: n(e.total_amount),
|
|
177
|
-
emphasis: !0
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
const m = e.counterpart_contact, o = e.counterpart_billing_address, $ = o?.country ? Q(a)[o.country] : void 0, A = [o?.city, [o?.state, o?.postal_code].filter(Boolean).join(" ")].filter(Boolean).join(", "), w = o?.line1 ? [`${o.line1}${o.line2 ? ` ${o.line2}` : ""}`, A, $].filter(Boolean).join(", ") : void 0, _ = [];
|
|
181
|
-
m?.email && _.push({
|
|
182
|
-
label: a._("Email"),
|
|
183
|
-
value: m.email
|
|
184
|
-
}), m?.phone && _.push({
|
|
185
|
-
label: a._("Phone"),
|
|
186
|
-
value: m.phone
|
|
187
|
-
}), w && _.push({
|
|
188
|
-
label: a._("Address"),
|
|
189
|
-
value: w
|
|
190
|
-
});
|
|
191
|
-
const C = !!(e.payment_reminder_id || e.overdue_reminder_id), g = z(b.paymentReminder, b.overdueReminder, a, C), O = i ? [{
|
|
192
|
-
label: a._("Frequency"),
|
|
193
|
-
value: r ? v(a, r.frequency) : "-"
|
|
194
|
-
}, {
|
|
195
|
-
label: a._("Invoice amount"),
|
|
196
|
-
value: n(e.total_amount)
|
|
197
|
-
}, {
|
|
198
|
-
label: a._("Payment terms"),
|
|
199
|
-
value: e.payment_terms?.name ?? "-"
|
|
200
|
-
}, {
|
|
201
|
-
label: a._("Payment reminders"),
|
|
202
|
-
value: g
|
|
203
|
-
}, {
|
|
204
|
-
label: a._("PO number"),
|
|
205
|
-
value: e.purchase_order || a._("Not provided")
|
|
206
|
-
}] : [
|
|
207
|
-
// Invoice number is omitted until the invoice is issued: a draft has no
|
|
208
|
-
// number, so a placeholder ("Auto-generated") reads as misleading copy
|
|
209
|
-
// (EMBD-3835 QA item 2 — show no number field/reference for drafts).
|
|
210
|
-
...e.document_id ? [{
|
|
211
|
-
label: a._("Invoice number"),
|
|
212
|
-
value: e.document_id
|
|
213
|
-
}] : [],
|
|
214
|
-
{
|
|
215
|
-
label: a._("Invoice amount"),
|
|
216
|
-
value: n(e.total_amount)
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
label: a._("Invoice date"),
|
|
220
|
-
value: c(e.issue_date ?? e.created_at)
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
label: a._("Due date"),
|
|
224
|
-
value: c(e.due_date)
|
|
1
|
+
import { useMoniteContext as s } from "./index57.js";
|
|
2
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
|
+
import { toast as a } from "react-hot-toast";
|
|
4
|
+
import { getCounterpartName as p } from "./index7.js";
|
|
5
|
+
const f = () => {
|
|
6
|
+
const {
|
|
7
|
+
i18n: r
|
|
8
|
+
} = i(), {
|
|
9
|
+
api: t,
|
|
10
|
+
queryClient: o
|
|
11
|
+
} = s();
|
|
12
|
+
return t.finops.patchCounterpartsId.useMutation(void 0, {
|
|
13
|
+
onSuccess: async (e) => {
|
|
14
|
+
t.finops.getCounterpartsId.setQueryData({
|
|
15
|
+
path: {
|
|
16
|
+
counterpart_id: e.id
|
|
17
|
+
}
|
|
18
|
+
}, (n) => ({
|
|
19
|
+
...n,
|
|
20
|
+
...e
|
|
21
|
+
}), o), await t.finops.getCounterparts.invalidateQueries(o), a.success(r._("{name} has been updated.", {
|
|
22
|
+
name: p(e)
|
|
23
|
+
}));
|
|
225
24
|
},
|
|
226
|
-
{
|
|
227
|
-
|
|
228
|
-
value: e.payment_terms?.name ?? "-"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
label: a._("Payment reminders"),
|
|
232
|
-
value: g
|
|
233
|
-
},
|
|
234
|
-
...e.purchase_order ? [{
|
|
235
|
-
label: a._("PO number"),
|
|
236
|
-
value: e.purchase_order
|
|
237
|
-
}] : []
|
|
238
|
-
], B = (e.line_items ?? []).map((t, U) => {
|
|
239
|
-
const F = f ? t?.product?.price_after_tax?.value : t?.product?.price?.value, N = f ? t?.total_after_tax : t?.total_before_tax ?? (t?.product?.price?.value ?? 0) * (t?.quantity ?? 0);
|
|
240
|
-
return {
|
|
241
|
-
id: `${t?.product?.id ?? "item"}-${U}`,
|
|
242
|
-
name: t?.product?.name ?? "",
|
|
243
|
-
quantityLabel: String(t?.quantity ?? 0),
|
|
244
|
-
unitPriceLabel: n(F),
|
|
245
|
-
totalLabel: n(N)
|
|
246
|
-
};
|
|
247
|
-
}), S = [{
|
|
248
|
-
label: a._("Subtotal"),
|
|
249
|
-
value: n(e.subtotal)
|
|
250
|
-
}, ...(e.total_tax_amounts ?? []).map((t) => ({
|
|
251
|
-
label: a._("Tax ({rate}%)", {
|
|
252
|
-
rate: W(t?.value ?? 0)
|
|
253
|
-
}),
|
|
254
|
-
value: n(t?.amount)
|
|
255
|
-
})), {
|
|
256
|
-
label: a._("Total"),
|
|
257
|
-
value: n(e.total_amount),
|
|
258
|
-
emphasis: !0
|
|
259
|
-
}], j = J.includes(u) ? {
|
|
260
|
-
rows: k.map((t) => ({
|
|
261
|
-
id: t.id,
|
|
262
|
-
dateLabel: c(t.paid_at),
|
|
263
|
-
amountLabel: n(t.amount)
|
|
264
|
-
})),
|
|
265
|
-
// Total is the entity's amount_paid (authoritative), not a sum of
|
|
266
|
-
// `rows`: the records list may be partial/paginated, so summing rows
|
|
267
|
-
// could disagree with the true received total. Intentional.
|
|
268
|
-
totalLabel: n(e.amount_paid),
|
|
269
|
-
emptyTone: d ? "danger" : "default",
|
|
270
|
-
loading: P
|
|
271
|
-
} : void 0, E = i && r ? {
|
|
272
|
-
status: r.status,
|
|
273
|
-
amountLabel: n(e.total_amount),
|
|
274
|
-
amountPeriodLabel: H(a, r.frequency),
|
|
275
|
-
startsOnLabel: c(r.start_date),
|
|
276
|
-
endsOnLabel: r.end_date ? c(r.end_date) : "-",
|
|
277
|
-
scheduleTitle: a._("{frequency} schedule", {
|
|
278
|
-
frequency: v(a, r.frequency)
|
|
279
|
-
})
|
|
280
|
-
} : void 0, M = T && r ? {
|
|
281
|
-
title: a._("{name} - {frequency}", {
|
|
282
|
-
name: e.counterpart_name ?? a._("Invoice"),
|
|
283
|
-
frequency: v(a, r.frequency)
|
|
284
|
-
}),
|
|
285
|
-
invoiceId: r.invoice_id
|
|
286
|
-
} : void 0, q = V[u] ?? {
|
|
287
|
-
primary: [],
|
|
288
|
-
overflow: ["clone"]
|
|
289
|
-
};
|
|
290
|
-
let p = q.overflow;
|
|
291
|
-
if (i && r)
|
|
292
|
-
switch (r.status) {
|
|
293
|
-
case "active":
|
|
294
|
-
p = ["pauseRecurrence", "cancelRecurrence"];
|
|
295
|
-
break;
|
|
296
|
-
case "paused":
|
|
297
|
-
p = ["resumeRecurrence", "cancelRecurrence"];
|
|
298
|
-
break;
|
|
299
|
-
default:
|
|
300
|
-
p = [];
|
|
25
|
+
onError: () => {
|
|
26
|
+
a.error(r._("Failed to update counterpart."));
|
|
301
27
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
// Series master reads "{customer} - {frequency}"; everything else is the
|
|
305
|
-
// customer name.
|
|
306
|
-
title: i && r ? a._("{name} - {frequency}", {
|
|
307
|
-
name: I,
|
|
308
|
-
frequency: v(a, r.frequency)
|
|
309
|
-
}) : I,
|
|
310
|
-
status: u,
|
|
311
|
-
statusLabel: G(a, u),
|
|
312
|
-
// Series master reads "Recurring series". Otherwise show the invoice
|
|
313
|
-
// number once issued; a draft has none so shows nothing (EMBD-3835 QA
|
|
314
|
-
// item 2).
|
|
315
|
-
subtitle: i ? a._("Recurring series") : e.document_id ? a._("Invoice: {number}", {
|
|
316
|
-
number: e.document_id
|
|
317
|
-
}) : void 0,
|
|
318
|
-
recurring: x,
|
|
319
|
-
overdueLabel: d && h > 0 ? a._("{days} days overdue", {
|
|
320
|
-
days: h
|
|
321
|
-
}) : void 0,
|
|
322
|
-
amountTone: s,
|
|
323
|
-
amountRows: l,
|
|
324
|
-
invoiceDateLabel: c(e.issue_date ?? e.created_at),
|
|
325
|
-
// No dedicated cancellation timestamp exists on InvoiceResponsePayload;
|
|
326
|
-
// updated_at is the closest proxy for "Cancelled on".
|
|
327
|
-
dueDateLabel: c(y ? e.updated_at : e.due_date),
|
|
328
|
-
dueDateCaption: y ? a._("Cancelled on") : a._("Due date"),
|
|
329
|
-
paymentHistory: j,
|
|
330
|
-
customerContact: _,
|
|
331
|
-
recurringSeries: E,
|
|
332
|
-
seriesLink: M,
|
|
333
|
-
billingItems: O,
|
|
334
|
-
lineItems: B,
|
|
335
|
-
lineItemTotals: S,
|
|
336
|
-
// memo = opening note; footer = closing note (rendered below the line
|
|
337
|
-
// items in the PDF).
|
|
338
|
-
notes: e.memo || e.footer ? {
|
|
339
|
-
opening: e.memo || void 0,
|
|
340
|
-
closing: e.footer || void 0
|
|
341
|
-
} : void 0,
|
|
342
|
-
primaryActions: q.primary,
|
|
343
|
-
overflowActions: p
|
|
344
|
-
};
|
|
345
|
-
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
346
30
|
export {
|
|
347
|
-
|
|
31
|
+
f as useUpdateCounterpart
|
|
348
32
|
};
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
|
+
import { toast as p } from "react-hot-toast";
|
|
4
|
+
const m = ({
|
|
5
|
+
counterpartId: e,
|
|
6
|
+
addressId: t
|
|
7
|
+
}) => {
|
|
8
|
+
const {
|
|
9
|
+
i18n: a
|
|
10
|
+
} = i(), {
|
|
11
|
+
api: r,
|
|
12
|
+
queryClient: s
|
|
13
|
+
} = n();
|
|
14
|
+
return r.finops.patchCounterpartsIdAddressesId.useMutation({
|
|
15
|
+
path: {
|
|
16
|
+
counterpart_id: e,
|
|
17
|
+
address_id: t
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
onSuccess: async (d) => {
|
|
21
|
+
r.finops.getCounterpartsIdAddressesId.setQueryData({
|
|
22
|
+
path: {
|
|
23
|
+
counterpart_id: e,
|
|
24
|
+
address_id: t
|
|
25
|
+
}
|
|
26
|
+
}, (o) => ({
|
|
27
|
+
...o,
|
|
28
|
+
...d
|
|
29
|
+
}), s), await r.finops.getCounterpartsIdAddresses.invalidateQueries({
|
|
30
|
+
parameters: {
|
|
31
|
+
path: {
|
|
32
|
+
counterpart_id: e
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, s);
|
|
36
|
+
},
|
|
37
|
+
onError: () => {
|
|
38
|
+
p.error(a._("Failed to update address."));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
};
|
|
2
42
|
export {
|
|
3
|
-
|
|
43
|
+
m as useUpdateCounterpartAddress
|
|
4
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as e } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as s } from "./
|
|
2
|
+
import { getAPIErrorMessage as s } from "./index123.js";
|
|
3
3
|
import { useLingui as a } from "@lingui/react";
|
|
4
4
|
import { toast as i } from "react-hot-toast";
|
|
5
5
|
const f = () => {
|
|
@@ -1,22 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as f } from "./index84.js";
|
|
3
|
+
import { Field as m, FieldContent as c, FieldLabel as s, FieldError as u } from "./index153.js";
|
|
4
|
+
import { Input as h } from "./index128.js";
|
|
5
|
+
import { Typography as p } from "./index85.js";
|
|
6
|
+
import { useLingui as g } from "@lingui/react";
|
|
7
|
+
import { useFormContext as y, Controller as w } from "react-hook-form";
|
|
8
|
+
import { twMerge as N } from "tailwind-merge";
|
|
9
|
+
const j = ({
|
|
10
|
+
hasExistingBankAccount: a,
|
|
11
|
+
isLoading: o,
|
|
12
|
+
isStandalone: b,
|
|
13
|
+
handleCancel: v
|
|
14
|
+
}) => {
|
|
5
15
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} =
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
i18n: t
|
|
17
|
+
} = g(), {
|
|
18
|
+
control: d,
|
|
19
|
+
resetField: l
|
|
20
|
+
} = y();
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: N("ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:bg-zinc-100", !b && "ttw:border ttw:border-primary ttw:rounded-[10px]"), children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: [
|
|
23
|
+
/* @__PURE__ */ e(p, { variant: "body1", className: "ttw:font-medium", children: a ? t._("Editing ACH bank transfer") : t._("Adding ACH bank transfer") }),
|
|
24
|
+
!a && !b && /* @__PURE__ */ e(f, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", onClick: () => {
|
|
25
|
+
l("accountHolderName"), l("accountNumber"), l("routingNumber"), v?.();
|
|
26
|
+
}, children: t._("Cancel") })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ e(w, { name: "accountHolderName", control: d, render: ({
|
|
29
|
+
field: r,
|
|
30
|
+
fieldState: {
|
|
31
|
+
error: i
|
|
32
|
+
}
|
|
33
|
+
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
34
|
+
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Account holder name") }),
|
|
35
|
+
/* @__PURE__ */ e(h, { id: r.name, ...r, className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
36
|
+
/* @__PURE__ */ e(u, { errors: [i] })
|
|
37
|
+
] }) }) }),
|
|
38
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
39
|
+
/* @__PURE__ */ e(w, { name: "routingNumber", control: d, render: ({
|
|
40
|
+
field: r,
|
|
41
|
+
fieldState: {
|
|
42
|
+
error: i
|
|
43
|
+
}
|
|
44
|
+
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
45
|
+
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Routing number") }),
|
|
46
|
+
/* @__PURE__ */ e(h, { id: r.name, ...r, placeholder: t._("e.g., 123456789"), className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
47
|
+
/* @__PURE__ */ e(u, { errors: [i] })
|
|
48
|
+
] }) }) }),
|
|
49
|
+
/* @__PURE__ */ e(w, { name: "accountNumber", control: d, render: ({
|
|
50
|
+
field: r,
|
|
51
|
+
fieldState: {
|
|
52
|
+
error: i
|
|
53
|
+
}
|
|
54
|
+
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
55
|
+
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Account number") }),
|
|
56
|
+
/* @__PURE__ */ e(h, { id: r.name, ...r, placeholder: t._("e.g., 12345678"), className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
57
|
+
/* @__PURE__ */ e(u, { errors: [i] })
|
|
58
|
+
] }) }) })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ e(p, { color: "muted", variant: "body2", children: t._("Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.") })
|
|
61
|
+
] });
|
|
19
62
|
};
|
|
20
63
|
export {
|
|
21
|
-
|
|
64
|
+
j as CounterpartBankFormContent
|
|
22
65
|
};
|