@tesouro/embedded-components-react 0.2.219 → 0.2.221
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/README.md +10 -0
- package/dist/index.d.ts +35 -15
- package/dist/index.js +81 -77
- package/dist/lib/CreateCardWidget.d.ts +590 -0
- package/dist/lib/CreateCardWidget.js +7 -0
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index2.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index2.js +61 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/index2.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index6.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index3.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/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/index118.js +1 -1
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +7 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +94 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +97 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +17 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +79 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +24 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +99 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +57 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +9 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +33 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +24 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +12 -468
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +119 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +215 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +10 -537
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +49 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +49 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +14 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +42 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +148 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +71 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +24 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +3 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +60 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +36 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +79 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +5 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +72 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +55 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +14 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +80 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +29 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +40 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +7 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +227 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +467 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +108 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +536 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +22 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -1
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +2 -2
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +146 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +85 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +25 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +183 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +26 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +35 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +51 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +82 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +360 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +117 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +6 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +10 -23
- 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 +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +54 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +27 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +34 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +17 -40
- 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 +106 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +12 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +23 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +54 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +44 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +28 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +98 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +45 -23
- 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 +147 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +105 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +53 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +54 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +16 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +35 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +345 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +303 -19
- 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 +101 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +156 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +260 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +5 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +93 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +97 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +213 -25
- 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 +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +14 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +17 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +168 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +126 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +158 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +10 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +18 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +66 -26
- 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 +60 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +8 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +59 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +24 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +60 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +14 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +63 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +159 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +28 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +78 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +25 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +41 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +61 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +93 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +109 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +82 -36
- 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 +25 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +122 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +43 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +115 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +111 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +50 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +200 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +69 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +149 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +18 -19
- 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 +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +73 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +36 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +17 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +29 -294
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +25 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +31 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +30 -265
- 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 +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +80 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +75 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +43 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +18 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +33 -481
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +62 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +32 -65
- 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 +488 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +164 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +59 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +31 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +118 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +22 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +125 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +255 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +13 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +23 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +15 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +46 -21
- 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 +10 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +47 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +43 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +74 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +97 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +32 -80
- 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 +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +10 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +32 -269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +94 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +34 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +35 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +31 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +126 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +7 -82
- 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 +49 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +29 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +83 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +80 -279
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +266 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +62 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +44 -24
- 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 +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +142 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +114 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +80 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +94 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +11 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +283 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- 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 +49 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +54 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +35 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +66 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +45 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +25 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +22 -18
- 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 +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +123 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -11
- 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 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +65 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +18 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +20 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +14 -67
- 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 +19 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +66 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +2 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +20 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +30 -46
- 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 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +96 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +18 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +9 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +53 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +69 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +42 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +50 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +56 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +72 -19
- 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 +68 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +35 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +12 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +33 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +85 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +23 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +99 -48
- 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 +108 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +72 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +83 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +52 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +52 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +36 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +45 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +48 -50
- 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 +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +38 -54
- 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 +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +40 -17
- 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 +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 +9 -9
- 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/index58.js +1 -1
- 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/profile-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +115 -115
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2025 -2190
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +4 -4
- 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 +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index21.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -4
- package/package.json +1 -1
|
@@ -1,472 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { format as te } from "date-fns";
|
|
4
|
-
import { toast as o } from "react-hot-toast";
|
|
5
|
-
import { buildPaymentTermsPayload as ae } from "./index298.js";
|
|
6
|
-
import { getCounterpartEmail as _t } from "./index7.js";
|
|
7
|
-
import { LanguageCodeEnum as lt } from "./index260.js";
|
|
8
|
-
import { rateMajorToMinor as ne } from "./index299.js";
|
|
9
|
-
import { useMoniteContext as pt } from "./index57.js";
|
|
10
|
-
import { useUserPermissions as ft } from "./index154.js";
|
|
11
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
12
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
13
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
14
|
-
import "@tanstack/react-query";
|
|
15
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
16
|
-
import { Scope as yt } from "../../shared/data-access/dist/lib/scopes.js";
|
|
17
|
-
import { useCounterpartById as gt } from "./index70.js";
|
|
18
|
-
import { useCounterpartAddresses as vt } from "./index72.js";
|
|
19
|
-
import { useMyEntity as bt } from "./index78.js";
|
|
20
|
-
import { useCreateReceivable as ht } from "./index300.js";
|
|
21
|
-
import { useCreateCounterpart as xt } from "./index259.js";
|
|
22
|
-
import { useUpdateReceivable as Ct } from "./index301.js";
|
|
23
|
-
import { useUpdateReceivableLineItems as It } from "./index302.js";
|
|
24
|
-
import { useCreateRecurrence as wt } from "./index303.js";
|
|
25
|
-
import { useUpdateRecurrence as Pt } from "./index304.js";
|
|
26
|
-
import { useIssueReceivableById as Rt } from "./index239.js";
|
|
27
|
-
import { useGetInvoiceRequiredFields as kt } from "./index237.js";
|
|
28
|
-
import { useSelectableBankAccounts as At } from "./index238.js";
|
|
29
|
-
import { useLineItemSubmitCleanup as Lt } from "./index305.js";
|
|
30
|
-
import { useGetMeasureUnits as St } from "./index306.js";
|
|
31
|
-
const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t, i) => ({
|
|
32
|
-
// Callers only reach this in `invoice` mode (the guard runs earlier).
|
|
33
|
-
type: t.type,
|
|
34
|
-
counterpart_id: i.resolvedCounterpartId,
|
|
35
|
-
counterpart_billing_address_id: i.billingAddressId,
|
|
36
|
-
counterpart_shipping_address_id: i.shippingAddressId,
|
|
37
|
-
bank_account_id: t.bank_account_id || void 0,
|
|
38
|
-
bank_account_type: t.bank_account_id ? t.bank_account_type : void 0,
|
|
39
|
-
...ae({
|
|
40
|
-
paymentTermId: t.payment_terms_id,
|
|
41
|
-
customDueDate: t.payment_terms_custom_date
|
|
42
|
-
}),
|
|
43
|
-
line_items: t.line_items.filter((r) => !!r.product?.name?.trim()).map((r) => ({
|
|
44
|
-
quantity: r.quantity,
|
|
45
|
-
tax_status: r.taxable ? "taxable" : "non_taxable",
|
|
46
|
-
product: {
|
|
47
|
-
name: r.product.name,
|
|
48
|
-
price: {
|
|
49
|
-
currency: r.product.price.currency,
|
|
50
|
-
value: r.product.price.value
|
|
51
|
-
},
|
|
52
|
-
measure_unit: r.product.measure_unit_id ? {
|
|
53
|
-
name: oe(i.measureUnits, r.product.measure_unit_id) ?? ""
|
|
54
|
-
} : void 0,
|
|
55
|
-
type: "product"
|
|
56
|
-
},
|
|
57
|
-
tax_rate_value: r.taxable ? ne(Number(t.tax_rate) || 0) : void 0
|
|
58
|
-
})),
|
|
59
|
-
memo: t.memo,
|
|
60
|
-
footer: t.footer,
|
|
61
|
-
purchase_order: t.purchase_order || void 0,
|
|
62
|
-
currency: i.currency,
|
|
63
|
-
payment_reminder_id: t.payment_reminder_id || void 0,
|
|
64
|
-
overdue_reminder_id: t.overdue_reminder_id || void 0,
|
|
65
|
-
tag_ids: [],
|
|
66
|
-
// TODO: add support for tags, ideally values.tags?.map((tag) => tag.id)
|
|
67
|
-
tax_mode: t.tax_mode || "exclusive",
|
|
68
|
-
// `attachments` is `minItems: 1` on the payload, so omit it entirely when
|
|
69
|
-
// empty rather than sending `[]` (which 422s). Only `id`/`include_in_email`
|
|
70
|
-
// ride the request; the buffered `name`/`size` are display-only (EMBD-3617).
|
|
71
|
-
attachments: t.attachments.length ? t.attachments.map(({
|
|
72
|
-
id: r,
|
|
73
|
-
include_in_email: n
|
|
74
|
-
}) => ({
|
|
75
|
-
id: r,
|
|
76
|
-
include_in_email: n
|
|
77
|
-
})) : void 0
|
|
78
|
-
}), re = (t, i) => ({
|
|
79
|
-
data: t.line_items.filter((r) => !!r.product?.name?.trim()).map((r) => {
|
|
80
|
-
const n = r;
|
|
81
|
-
let c;
|
|
82
|
-
return n.product.measure_unit_id ? c = oe(i, n.product.measure_unit_id) : (n.product.measure_unit_name || n.measure_unit?.name) && (c = n.product.measure_unit_name || n.measure_unit?.name), {
|
|
83
|
-
quantity: r.quantity,
|
|
84
|
-
tax_status: r.taxable ? "taxable" : "non_taxable",
|
|
85
|
-
product: {
|
|
86
|
-
name: r.product.name,
|
|
87
|
-
type: r.product.type,
|
|
88
|
-
measure_unit: c ? {
|
|
89
|
-
name: c
|
|
90
|
-
} : void 0,
|
|
91
|
-
price: r.product.price ? {
|
|
92
|
-
currency: r.product.price.currency ?? "USD",
|
|
93
|
-
value: Math.round(r.product.price.value ?? 0)
|
|
94
|
-
} : void 0
|
|
95
|
-
},
|
|
96
|
-
// The backend requires a taxable line item to carry a tax rate, so send
|
|
97
|
-
// one whenever it's taxable — defaulting to 0 when none was entered
|
|
98
|
-
// (matching the create payload). Omitting it for a taxable item 422s.
|
|
99
|
-
tax_rate_value: r.taxable ? ne(Number(t.tax_rate) || 0) : void 0
|
|
100
|
-
};
|
|
101
|
-
})
|
|
102
|
-
}), ie = (t, i) => ({
|
|
103
|
-
invoice: {
|
|
104
|
-
counterpart_id: i.resolvedCounterpartId,
|
|
105
|
-
currency: i.currency,
|
|
106
|
-
memo: t.memo,
|
|
107
|
-
footer: t.footer,
|
|
108
|
-
// Send `null` (not `undefined`) when the address is empty so a cleared field
|
|
109
|
-
// is actually cleared. Omitting it leaves the previous value in place, which
|
|
110
|
-
// — after the customer was changed — would keep an address that belongs to
|
|
111
|
-
// the old counterpart (a mismatch the API rejects). Empty happens when the
|
|
112
|
-
// customer is cleared or a newly picked/inline customer has no default
|
|
113
|
-
// address. Same `null`-to-clear pattern as the reminders/attachments below.
|
|
114
|
-
// @ts-expect-error - we need to send `null` to clear, but the backend doesn't type it
|
|
115
|
-
counterpart_shipping_address_id: t?.default_shipping_address_id || null,
|
|
116
|
-
// @ts-expect-error - we need to send `null` to clear, but the backend doesn't type it
|
|
117
|
-
counterpart_billing_address_id: t?.default_billing_address_id || null,
|
|
118
|
-
bank_account_id: t.bank_account_id || void 0,
|
|
119
|
-
bank_account_type: t.bank_account_id ? t.bank_account_type : void 0,
|
|
120
|
-
/**
|
|
121
|
-
* Rebuild the payment-terms payload from the form values (a saved
|
|
122
|
-
* `payment_terms_id`, or an inline object for "Custom date" / "Due on
|
|
123
|
-
* receipt") via the shared builder, so it's the request-shaped
|
|
124
|
-
* `InlinePaymentTermsRequestPayload` the PATCH accepts.
|
|
125
|
-
*/
|
|
126
|
-
...ae({
|
|
127
|
-
paymentTermId: t.payment_terms_id,
|
|
128
|
-
customDueDate: t.payment_terms_custom_date
|
|
129
|
-
}),
|
|
130
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
131
|
-
payment_reminder_id: t.payment_reminder_id || null,
|
|
132
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
133
|
-
overdue_reminder_id: t.overdue_reminder_id || null,
|
|
134
|
-
// The backend enforces `minItems: 1` here (the generated schema is wrong),
|
|
135
|
-
// so `[]` 422s. Omitting it (`undefined`) is a no-op that leaves the existing
|
|
136
|
-
// attachments in place, so removing the last one must be sent as `null` to
|
|
137
|
-
// actually clear them. Only `id`/`include_in_email` ride the request; the
|
|
138
|
-
// buffered `name`/`size` are display-only (EMBD-3617).
|
|
139
|
-
// @ts-expect-error - we need to send `null` to clear, but the backend doesn't provide a correct type
|
|
140
|
-
attachments: t.attachments.length ? t.attachments.map(({
|
|
141
|
-
id: r,
|
|
142
|
-
include_in_email: n
|
|
143
|
-
}) => ({
|
|
144
|
-
id: r,
|
|
145
|
-
include_in_email: n
|
|
146
|
-
})) : null
|
|
147
|
-
// `purchase_order` is intentionally omitted — the backend does not support
|
|
148
|
-
// updating it, so `BillingSection` hides the field in edit.
|
|
149
|
-
}
|
|
150
|
-
}), sr = ({
|
|
151
|
-
mode: t,
|
|
152
|
-
methods: i,
|
|
153
|
-
currency: r,
|
|
154
|
-
invoice: n,
|
|
155
|
-
existingRecurrence: c,
|
|
156
|
-
hasStartedRecurrence: $ = !1,
|
|
157
|
-
onComplete: h,
|
|
158
|
-
onClose: E,
|
|
159
|
-
submitModeRef: de
|
|
160
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as s } from "./index57.js";
|
|
2
|
+
const o = (e) => {
|
|
161
3
|
const {
|
|
162
|
-
|
|
163
|
-
} =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
watch: g,
|
|
172
|
-
formState: le,
|
|
173
|
-
setValue: R,
|
|
174
|
-
clearErrors: pe,
|
|
175
|
-
trigger: fe
|
|
176
|
-
} = i, {
|
|
177
|
-
isDirty: ye
|
|
178
|
-
} = le, {
|
|
179
|
-
data: ge,
|
|
180
|
-
isLoading: ve,
|
|
181
|
-
isFetching: be
|
|
182
|
-
} = bt(), {
|
|
183
|
-
data: he,
|
|
184
|
-
isLoading: j
|
|
185
|
-
} = St(), {
|
|
186
|
-
bankAccounts: xe,
|
|
187
|
-
isLoading: z
|
|
188
|
-
} = At(P), Ce = xe.length > 0, [k, Ie] = U(!1), [we, A] = U(!1), Pe = ee("draft"), v = de ?? Pe, Re = `Monite-Form-receivablesDetailsForm-${ut()}`, [x, b] = U(null), {
|
|
189
|
-
registerLineItemCleanupFn: ke,
|
|
190
|
-
runLineItemCleanup: Ae
|
|
191
|
-
} = Lt(), {
|
|
192
|
-
mutateAsync: Le,
|
|
193
|
-
isPending: Se
|
|
194
|
-
} = ht(), {
|
|
195
|
-
mutateAsync: qe,
|
|
196
|
-
isPending: Me
|
|
197
|
-
} = (
|
|
198
|
-
// An inline counterpart is created as a side effect of saving the invoice;
|
|
199
|
-
// the invoice's own success toast is the confirmation, so skip the extra
|
|
200
|
-
// "customer added" one.
|
|
201
|
-
xt({
|
|
202
|
-
showSuccessToast: !1
|
|
203
|
-
})
|
|
204
|
-
), N = n?.id ?? x?.id ?? "", {
|
|
205
|
-
mutateAsync: G,
|
|
206
|
-
isPending: De
|
|
207
|
-
} = Ct(N), {
|
|
208
|
-
mutateAsync: H,
|
|
209
|
-
isPending: Fe
|
|
210
|
-
} = It(N), {
|
|
211
|
-
mutateAsync: Ue,
|
|
212
|
-
isPending: $e
|
|
213
|
-
} = wt(), {
|
|
214
|
-
mutateAsync: Ee,
|
|
215
|
-
isPending: Be
|
|
216
|
-
} = Pt(), {
|
|
217
|
-
mutateAsync: Te,
|
|
218
|
-
isPending: je
|
|
219
|
-
} = Rt(), O = Se || Me || De || Fe || $e || Be || je, ze = O || j || z, Q = ee(null), V = () => {
|
|
220
|
-
requestAnimationFrame(() => {
|
|
221
|
-
const e = Q.current, u = e?.querySelector('[aria-invalid="true"]');
|
|
222
|
-
if (!e || !u) return;
|
|
223
|
-
const l = u.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop - e.clientHeight / 2 + u.offsetHeight / 2;
|
|
224
|
-
e.scrollTo({
|
|
225
|
-
top: Math.max(0, l),
|
|
226
|
-
behavior: "smooth"
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
}, Ne = () => {
|
|
230
|
-
v.current = "issue", fe().then(V);
|
|
231
|
-
}, _ = g("counterpart_id"), C = g("frequency") !== "once", Ge = g("counterpart_email"), I = g("default_billing_address_id"), He = g("bank_account_id"), {
|
|
232
|
-
data: d,
|
|
233
|
-
isLoading: W,
|
|
234
|
-
isFetching: J
|
|
235
|
-
} = gt(_), {
|
|
236
|
-
data: L,
|
|
237
|
-
isLoading: Oe,
|
|
238
|
-
isFetching: Qe
|
|
239
|
-
} = vt(_), S = ct(() => L?.data?.find((e) => e.id === I), [I, L?.data]), K = !!(Ge?.trim() || _t(d)), Ve = !!_ && (W || J), {
|
|
240
|
-
data: We,
|
|
241
|
-
isLoading: Je,
|
|
242
|
-
isFetching: Ke
|
|
243
|
-
} = kt({
|
|
244
|
-
counterpart_billing_address_id: d?.id === _ && I || void 0,
|
|
245
|
-
counterpart_country: S?.id === I && S?.country || void 0,
|
|
246
|
-
counterpart_id: _ || void 0,
|
|
247
|
-
counterpart_type: d?.id === _ && d?.type || void 0
|
|
248
|
-
}), Xe = We?.entity?.tax_id?.required, X = ve || be || Je || Ke || !!_ && (W || J || Oe || Qe), Y = (e) => {
|
|
249
|
-
R("counterpart_id", e), R("counterpart_name", ""), R("counterpart_email", ""), pe(["counterpart_id", "counterpart_email"]);
|
|
250
|
-
}, Ye = () => {
|
|
251
|
-
if (k) {
|
|
252
|
-
o.error(a._("Please wait for attachments to finish uploading."));
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
ye ? A(!0) : E();
|
|
256
|
-
}, Ze = async (e) => {
|
|
257
|
-
if (e.type !== "invoice") {
|
|
258
|
-
o.error(a._("`type` except `invoice` is not supported yet"));
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
const u = C && !$ || v.current === "issue";
|
|
262
|
-
if (u && Xe && !ge?.tax_id) {
|
|
263
|
-
o.error(a._("Set your organization's Tax ID to issue invoice"));
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
const l = !e.counterpart_id && !!e.counterpart_name?.trim(), et = d && "organization" in d ? d?.organization?.email : void 0, tt = d && "individual" in d ? d?.individual?.email : void 0, rt = et || tt, q = l ? !0 : d?.reminders_enabled, M = l ? e.counterpart_email : rt, it = !!(e.payment_reminder_id || e.overdue_reminder_id);
|
|
267
|
-
if (u && it) {
|
|
268
|
-
if (!q && M) {
|
|
269
|
-
o.error(a._("Payment reminders are disabled for this customer. Please enable them in the customer details or turn them off."));
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
if (!M && q) {
|
|
273
|
-
o.error(a._("No email address is added for the selected customer. Please add it to the customer details or turn off the reminders."));
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
if (!q && !M) {
|
|
277
|
-
o.error(a._("Reminders are disabled for this customer, and no email address has been added for it. Please update the details or turn off reminders."));
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
let p = e.counterpart_id ?? "";
|
|
282
|
-
if (l)
|
|
283
|
-
try {
|
|
284
|
-
p = (await qe({
|
|
285
|
-
type: "organization",
|
|
286
|
-
is_customer: !0,
|
|
287
|
-
is_vendor: !1,
|
|
288
|
-
reminders_enabled: !0,
|
|
289
|
-
language: lt.find((m) => m === a.locale.split("-")[0]) ?? "en",
|
|
290
|
-
organization: {
|
|
291
|
-
legal_name: e?.counterpart_name?.trim() ?? "",
|
|
292
|
-
...e.counterpart_email ? {
|
|
293
|
-
email: e.counterpart_email
|
|
294
|
-
} : {}
|
|
295
|
-
}
|
|
296
|
-
})).id;
|
|
297
|
-
} catch {
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
const at = e.default_shipping_address_id, nt = L?.data?.find((m) => m.id === at), ot = e.line_items.filter((m) => !m.product_id && !!m.product?.name?.trim()), D = he?.data ?? [];
|
|
301
|
-
let f, s, F = null;
|
|
302
|
-
try {
|
|
303
|
-
if (t === "create")
|
|
304
|
-
x ? (f = x.id, await H(re(e, D)), s = await G(ie(e, {
|
|
305
|
-
resolvedCounterpartId: p,
|
|
306
|
-
currency: r
|
|
307
|
-
}))) : (s = await Le(qt(e, {
|
|
308
|
-
resolvedCounterpartId: p,
|
|
309
|
-
billingAddressId: S?.id,
|
|
310
|
-
shippingAddressId: nt?.id,
|
|
311
|
-
measureUnits: D,
|
|
312
|
-
currency: r
|
|
313
|
-
}), {
|
|
314
|
-
onSuccess: async () => {
|
|
315
|
-
await B.finops.getReceivables.invalidateQueries(T);
|
|
316
|
-
}
|
|
317
|
-
}), f = s.id, F = s, l && Y(p));
|
|
318
|
-
else {
|
|
319
|
-
if (!n) return;
|
|
320
|
-
await H(re(e, D)), s = await G(ie(e, {
|
|
321
|
-
resolvedCounterpartId: p,
|
|
322
|
-
currency: r
|
|
323
|
-
})), f = n.id;
|
|
324
|
-
}
|
|
325
|
-
} catch {
|
|
326
|
-
l && Y(p);
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
const w = {
|
|
330
|
-
receivableId: f,
|
|
331
|
-
counterpartId: p,
|
|
332
|
-
inlineLineItems: ot,
|
|
333
|
-
receivable: s,
|
|
334
|
-
hasCustomerEmail: K
|
|
335
|
-
}, dt = () => B.finops.getReceivablesId.fetchQuery({
|
|
336
|
-
parameters: {
|
|
337
|
-
path: {
|
|
338
|
-
receivable_id: f
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
requestFn: ce,
|
|
342
|
-
baseUrl: se
|
|
343
|
-
}, T);
|
|
344
|
-
if (C) {
|
|
345
|
-
const m = e.frequency === "day" && e.recurrence_end_mode === "on" && !!e.recurrence_end_date, Z = c ? null : void 0, y = {
|
|
346
|
-
// Never `once` here (guarded above), which the API enum doesn't include.
|
|
347
|
-
frequency: e.frequency,
|
|
348
|
-
start_date: e.recurrence_start_date ? te(new Date(e.recurrence_start_date), "yyyy-MM-dd") : void 0,
|
|
349
|
-
// The `as` sheds `null` from the type only — the backend accepts `null`
|
|
350
|
-
// to clear the field, but the generated payload types omit it.
|
|
351
|
-
max_occurrences: m ? Z : e.recurrence_max_occurrences || void 0,
|
|
352
|
-
end_date: m && e.recurrence_end_date ? te(new Date(e.recurrence_end_date), "yyyy-MM-dd") : Z,
|
|
353
|
-
subject_text: e.recurrence_subject_text || void 0,
|
|
354
|
-
body_text: e.recurrence_body_text || void 0
|
|
355
|
-
};
|
|
356
|
-
try {
|
|
357
|
-
if (c) {
|
|
358
|
-
const st = c.scheduleLocked ? {
|
|
359
|
-
max_occurrences: y.max_occurrences,
|
|
360
|
-
end_date: y.end_date,
|
|
361
|
-
subject_text: y.subject_text,
|
|
362
|
-
body_text: y.body_text
|
|
363
|
-
} : y;
|
|
364
|
-
await Ee({
|
|
365
|
-
path: {
|
|
366
|
-
recurrence_id: c.id
|
|
367
|
-
},
|
|
368
|
-
body: st
|
|
369
|
-
});
|
|
370
|
-
} else
|
|
371
|
-
await Ue({
|
|
372
|
-
body: {
|
|
373
|
-
...y,
|
|
374
|
-
invoice_id: f,
|
|
375
|
-
interval: 1,
|
|
376
|
-
automation_level: "issue"
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
} catch {
|
|
380
|
-
!x && F && b(F);
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
b(null);
|
|
384
|
-
try {
|
|
385
|
-
s = await dt();
|
|
386
|
-
} catch {
|
|
387
|
-
}
|
|
388
|
-
h({
|
|
389
|
-
mode: "recurrence",
|
|
390
|
-
...w,
|
|
391
|
-
receivable: s
|
|
392
|
-
});
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
if (v.current === "issue") {
|
|
396
|
-
try {
|
|
397
|
-
s = await Te({
|
|
398
|
-
path: {
|
|
399
|
-
receivable_id: f
|
|
400
|
-
}
|
|
401
|
-
}), b(null), h({
|
|
402
|
-
mode: "issue",
|
|
403
|
-
...w,
|
|
404
|
-
receivable: s
|
|
405
|
-
});
|
|
406
|
-
} catch {
|
|
407
|
-
o.error(a._("The invoice was saved but could not be issued.")), b(null), h({
|
|
408
|
-
mode: t === "edit" ? "update" : "draft",
|
|
409
|
-
...w
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
t === "create" ? o.success(a._("Invoice to {counterpartName} was created", {
|
|
415
|
-
counterpartName: s?.counterpart_name ?? ""
|
|
416
|
-
})) : o.success(a._("Invoice has been updated")), b(null), h({
|
|
417
|
-
mode: t === "edit" ? "update" : "draft",
|
|
418
|
-
...w
|
|
419
|
-
});
|
|
420
|
-
};
|
|
421
|
-
return {
|
|
422
|
-
formName: Re,
|
|
423
|
-
onSubmit: async (e) => {
|
|
424
|
-
e.preventDefault(), Ae();
|
|
425
|
-
const u = C && !$ || v.current === "issue";
|
|
426
|
-
if (k) {
|
|
427
|
-
o.error(a._("Please wait for attachments to finish uploading."));
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
if (j) {
|
|
431
|
-
o.error(a._("Please wait for invoice details to finish loading."));
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
if (u && X) {
|
|
435
|
-
o.error(a._("Please wait for invoice checks to finish."));
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
if (u && P && z) {
|
|
439
|
-
o.error(a._("Please wait for invoice checks to finish."));
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
if (u && !me && P && !He && !Ce) {
|
|
443
|
-
o.error(a._("Contact your company admin to set up a bank account before creating an invoice."));
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
await _e(Ze, V)(e);
|
|
447
|
-
},
|
|
448
|
-
formScrollRef: Q,
|
|
449
|
-
registerLineItemCleanupFn: ke,
|
|
450
|
-
onAttachmentsUploadingChange: Ie,
|
|
451
|
-
isLoading: ze,
|
|
452
|
-
isSaving: O,
|
|
453
|
-
attachmentsUploading: k,
|
|
454
|
-
submitModeRef: v,
|
|
455
|
-
isRecurrenceEnabled: C,
|
|
456
|
-
hasCustomerEmail: K,
|
|
457
|
-
isCustomerEmailLoading: Ve,
|
|
458
|
-
isIssuePreflightLoading: X,
|
|
459
|
-
requestClose: Ye,
|
|
460
|
-
highlightForIssue: Ne,
|
|
461
|
-
discardModal: {
|
|
462
|
-
open: we,
|
|
463
|
-
onOpenChange: A,
|
|
464
|
-
onConfirm: () => {
|
|
465
|
-
A(!1), E();
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
};
|
|
4
|
+
api: t
|
|
5
|
+
} = s();
|
|
6
|
+
return t.finops.getCounterpartsIdAddresses.useQuery({
|
|
7
|
+
path: {
|
|
8
|
+
counterpart_id: e ?? ""
|
|
9
|
+
}
|
|
10
|
+
}, {
|
|
11
|
+
enabled: !!e
|
|
12
|
+
});
|
|
469
13
|
};
|
|
470
14
|
export {
|
|
471
|
-
|
|
15
|
+
o as useCounterpartAddressesById
|
|
472
16
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
|
|
1
|
+
import { useMoniteContext as r } from "./index57.js";
|
|
2
|
+
const a = (e, t = !0) => {
|
|
3
3
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
return
|
|
7
|
-
|
|
4
|
+
api: o
|
|
5
|
+
} = r();
|
|
6
|
+
return o.finops.getPayables.useQuery({
|
|
7
|
+
query: e
|
|
8
|
+
}, {
|
|
9
|
+
enabled: t
|
|
10
|
+
});
|
|
11
|
+
};
|
|
8
12
|
export {
|
|
9
|
-
|
|
13
|
+
a as useGetCounterpartPayables
|
|
10
14
|
};
|
|
@@ -1,28 +1,123 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsx as d, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useForm as I, FormProvider as A } from "react-hook-form";
|
|
3
|
+
import { CounterpartFormContent as T } from "./index222.js";
|
|
4
|
+
import { useLingui as V } from "@lingui/react";
|
|
5
|
+
import { useId as j, useMemo as k, useCallback as D } from "react";
|
|
6
|
+
import { useUpdateCounterpart as M } from "./index304.js";
|
|
7
|
+
import { zodResolver as B } from "@hookform/resolvers/zod";
|
|
8
|
+
import { Button as C } from "./index84.js";
|
|
9
|
+
import { getUpdateCounterpartValidationSchema as O } from "./index223.js";
|
|
10
|
+
import "./index57.js";
|
|
11
|
+
import { toast as x } from "react-hot-toast";
|
|
12
|
+
import "date-fns";
|
|
13
|
+
import { getCounterpartName as N } from "./index7.js";
|
|
14
|
+
import { useUpdateCounterpartAddress as R } from "./index305.js";
|
|
15
|
+
import { LanguageCodeEnum as q } from "./index225.js";
|
|
16
|
+
import { LoadingSpinner as G } from "./index143.js";
|
|
17
|
+
const de = ({
|
|
18
|
+
customerType: g,
|
|
19
|
+
counterpart: t,
|
|
20
|
+
counterpartAddress: a,
|
|
21
|
+
handleClose: z,
|
|
22
|
+
onUpdate: i
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
i18n: o
|
|
26
|
+
} = V(), S = `vendor-form-${j()}`, {
|
|
27
|
+
mutate: y,
|
|
28
|
+
isPending: b
|
|
29
|
+
} = M(), {
|
|
30
|
+
mutateAsync: m,
|
|
31
|
+
isPending: E
|
|
32
|
+
} = R({
|
|
33
|
+
counterpartId: a?.counterpart_id ?? "",
|
|
34
|
+
addressId: a?.id ?? ""
|
|
35
|
+
}), v = E || b, r = t.type, l = "individual" in t ? t.individual.email : t.organization.email, p = ("individual" in t ? t.individual.phone : t.organization.phone) ?? "", u = "individual" in t ? t.individual.last_name : "", n = "organization" in t ? t.organization.legal_name : t.individual.first_name, $ = k(() => ({
|
|
36
|
+
remindersEnabled: t.reminders_enabled,
|
|
37
|
+
isCustomer: t.is_customer,
|
|
38
|
+
isVendor: t.is_vendor,
|
|
39
|
+
tax_id: t.tax_id ?? "",
|
|
40
|
+
email: l,
|
|
41
|
+
phone: p,
|
|
42
|
+
line1: a?.line1,
|
|
43
|
+
line2: a?.line2 ?? "",
|
|
44
|
+
city: a?.city,
|
|
45
|
+
state: a?.state,
|
|
46
|
+
country: a?.country,
|
|
47
|
+
postalCode: a?.postal_code,
|
|
48
|
+
firstName: n,
|
|
49
|
+
lastName: u,
|
|
50
|
+
companyName: n
|
|
51
|
+
}), [t, a]), s = I({
|
|
52
|
+
resolver: B(O(o, r, g)),
|
|
53
|
+
defaultValues: $
|
|
54
|
+
}), L = D((c) => {
|
|
55
|
+
c.preventDefault(), c.stopPropagation(), s.handleSubmit(async (e) => {
|
|
56
|
+
const P = q.find((f) => f === o.locale.split("-")[0]) ?? "en", h = {
|
|
57
|
+
city: e.city,
|
|
58
|
+
country: e.country,
|
|
59
|
+
line1: e.line1,
|
|
60
|
+
line2: e.line2,
|
|
61
|
+
state: e.state,
|
|
62
|
+
postal_code: e.postalCode
|
|
63
|
+
}, U = e.city !== a?.city || e.country !== a?.country || e.line1 !== a?.line1 || (e.line2 ?? "") !== (a?.line2 ?? "") || e.state !== a?.state || e.postalCode !== a?.postal_code, w = {
|
|
64
|
+
reminders_enabled: e.remindersEnabled,
|
|
65
|
+
is_customer: t.is_customer,
|
|
66
|
+
is_vendor: t.is_vendor,
|
|
67
|
+
tax_id: e.tax_id
|
|
68
|
+
};
|
|
69
|
+
if (e.remindersEnabled !== !!t.reminders_enabled || e.tax_id !== (t.tax_id ?? "") || e.phone !== p || e.email !== l || r === "organization" && e.companyName !== n || r === "individual" && e.firstName !== n || r === "individual" && e.lastName !== u) {
|
|
70
|
+
U && await m(h);
|
|
71
|
+
const f = r === "individual" ? {
|
|
72
|
+
...w,
|
|
73
|
+
individual: {
|
|
74
|
+
first_name: e.firstName,
|
|
75
|
+
last_name: e.lastName,
|
|
76
|
+
phone: e.phone,
|
|
77
|
+
email: e.email
|
|
78
|
+
}
|
|
79
|
+
} : {
|
|
80
|
+
...w,
|
|
81
|
+
language: t.language ?? P,
|
|
82
|
+
organization: {
|
|
83
|
+
legal_name: e.companyName,
|
|
84
|
+
phone: e.phone,
|
|
85
|
+
email: e.email
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return y({
|
|
89
|
+
path: {
|
|
90
|
+
counterpart_id: t.id
|
|
91
|
+
},
|
|
92
|
+
body: f
|
|
93
|
+
}, {
|
|
94
|
+
onSuccess: ({
|
|
95
|
+
id: F
|
|
96
|
+
}) => {
|
|
97
|
+
i && i(F);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
} else
|
|
101
|
+
return m(h, {
|
|
102
|
+
onSuccess: () => {
|
|
103
|
+
x.success(o._("{name} has been updated.", {
|
|
104
|
+
name: N(t)
|
|
105
|
+
})), i && i(t.id);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
})(c);
|
|
109
|
+
}, [y, m, x, N, i, r, s.handleSubmit, o, n, p, l, u]);
|
|
110
|
+
return /* @__PURE__ */ d(A, { ...s, children: /* @__PURE__ */ _("form", { id: S, onSubmit: L, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
|
|
111
|
+
/* @__PURE__ */ d(T, { counterpartType: r, isLoading: b, isEditMode: !0, customerType: g }),
|
|
112
|
+
/* @__PURE__ */ _("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
113
|
+
/* @__PURE__ */ d(C, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", onClick: z, children: o._("Cancel") }),
|
|
114
|
+
/* @__PURE__ */ _(C, { type: "submit", className: "ttw:flex-1", disabled: v || !s.formState.isDirty && t.type === r, children: [
|
|
115
|
+
v && /* @__PURE__ */ d(G, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
116
|
+
o._("Save")
|
|
22
117
|
] })
|
|
23
|
-
] })
|
|
24
|
-
] });
|
|
118
|
+
] })
|
|
119
|
+
] }) });
|
|
25
120
|
};
|
|
26
121
|
export {
|
|
27
|
-
|
|
122
|
+
de as EditCounterpart
|
|
28
123
|
};
|