@tesouro/embedded-components-react 0.2.221 → 0.2.223
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 +15 -11
- package/dist/index.css +6 -6
- package/dist/index.d.ts +276 -35
- package/dist/index.js +96 -87
- package/dist/lib/{GlCodeTableWidget.d.ts → ChartOfAccountsWidget.d.ts} +276 -35
- package/dist/lib/ChartOfAccountsWidget.js +16 -0
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index3.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index4.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index2.js +153 -76
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index3.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index4.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index6.js +176 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +174 -160
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +206 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index4.js +46 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index5.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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 +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -9
- 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 +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +77 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -18
- 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 +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +121 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +216 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -30
- 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 +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +49 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +47 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +10 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +150 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +68 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +23 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +59 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +81 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +5 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +97 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +52 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +46 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +73 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +80 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +228 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +467 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +104 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +537 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +24 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +94 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +90 -459
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +11 -536
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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 +5 -5
- 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 +141 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +86 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +183 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +23 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +36 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +79 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +34 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +361 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +117 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +6 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +20 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +13 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +21 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +53 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +103 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +40 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +52 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +30 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +144 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +105 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +34 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +73 -43
- 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 +32 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +457 -313
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +158 -293
- 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 +73 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +44 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +18 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +108 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +84 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +40 -212
- 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 +345 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +302 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +100 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +156 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +257 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +20 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +19 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +59 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +25 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +122 -62
- 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 +44 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +117 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +108 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +45 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +202 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +68 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +10 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +27 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +126 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +149 -28
- 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 +30 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +29 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +30 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +12 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +19 -88
- 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 +160 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +26 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +78 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +62 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +14 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +171 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +134 -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 +160 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +12 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +63 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +68 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +6 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +7 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +59 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +22 -30
- 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 +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +77 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +76 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +42 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +38 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +30 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +118 -33
- 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 +22 -490
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +36 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +93 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +96 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +213 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +30 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +42 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +47 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +45 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +24 -46
- 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 +41 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +73 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +9 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +21 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +48 -35
- 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 +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +4 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +9 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +28 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +118 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -7
- 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 +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +82 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +17 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +80 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +269 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +34 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +59 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +42 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +140 -42
- 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 +115 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +79 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +90 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +9 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +8 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +285 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +43 -279
- 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 +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +74 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +3 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +11 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +20 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +33 -17
- 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 +66 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +45 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +25 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +26 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +33 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +96 -16
- 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 +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +67 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +66 -15
- 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 +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +7 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +54 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +14 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +84 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +105 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +108 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +68 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +67 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +37 -32
- 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 +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +39 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +29 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +81 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +49 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +34 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +44 -72
- 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 +94 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +16 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +75 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +55 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +70 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +21 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +34 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +17 -103
- 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 +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +56 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +69 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +80 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +41 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +34 -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 +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +53 -38
- 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 +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +17 -40
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +49 -49
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +321 -291
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +191 -150
- 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 +23 -23
- package/dist/packages/shared-ui-shadcn/dist/index.js +1111 -1109
- package/package.json +1 -1
- package/dist/lib/GlCodeTableWidget.js +0 -7
|
@@ -1,76 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useCurrencies as y } from "./index58.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "./index92.js";
|
|
6
|
-
import { useLingui as f } from "@lingui/react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import "@tanstack/react-query";
|
|
10
|
-
import "date-fns";
|
|
11
|
-
import { useEntityUserByAuthToken as x } from "./index75.js";
|
|
12
|
-
import "react-hot-toast";
|
|
13
|
-
import { MoniteCard as g } from "./index436.js";
|
|
14
|
-
import _ from "@mui/icons-material/DriveFileRenameOutline";
|
|
15
|
-
import { Box as o, Typography as r, Skeleton as v, Alert as b } from "@mui/material";
|
|
16
|
-
const L = ({
|
|
17
|
-
paymentRecords: i,
|
|
18
|
-
invoice: n
|
|
19
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as e } from "./index57.js";
|
|
2
|
+
const a = () => {
|
|
20
3
|
const {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
flexDirection: "column",
|
|
33
|
-
gap: 3
|
|
34
|
-
}, children: [
|
|
35
|
-
/* @__PURE__ */ a(o, { sx: {
|
|
36
|
-
display: "flex",
|
|
37
|
-
flexDirection: "column",
|
|
38
|
-
gap: 1,
|
|
39
|
-
alignItems: "center",
|
|
40
|
-
textAlign: "center"
|
|
41
|
-
}, children: [
|
|
42
|
-
/* @__PURE__ */ e(o, { sx: {
|
|
43
|
-
borderRadius: "100%",
|
|
44
|
-
backgroundColor: "#F2F2F2",
|
|
45
|
-
width: "44px",
|
|
46
|
-
height: "44px",
|
|
47
|
-
display: "flex",
|
|
48
|
-
justifyContent: "center",
|
|
49
|
-
alignItems: "center"
|
|
50
|
-
}, children: /* @__PURE__ */ e(_, { sx: {
|
|
51
|
-
color: "#707070"
|
|
52
|
-
} }) }),
|
|
53
|
-
/* @__PURE__ */ e(r, { variant: "body1", children: t._("Manual payment record") }),
|
|
54
|
-
/* @__PURE__ */ a(o, { children: [
|
|
55
|
-
/* @__PURE__ */ e(r, { variant: "h2", children: s(i?.amount ?? 0, n.currency) }),
|
|
56
|
-
/* @__PURE__ */ e(r, { variant: "body1", children: t._("from {invoiceCounterpart_name}", {
|
|
57
|
-
invoiceCounterpart_name: n.counterpart_name
|
|
58
|
-
}) })
|
|
59
|
-
] })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ e(g, { items: [{
|
|
62
|
-
label: t._("Received"),
|
|
63
|
-
value: i.payment_date ? /* @__PURE__ */ e(r, { fontWeight: 500, children: p }) : "—"
|
|
64
|
-
}, {
|
|
65
|
-
label: t._("Reference"),
|
|
66
|
-
value: n.id ? /* @__PURE__ */ e(r, { fontWeight: 500, children: n.id }) : "—"
|
|
67
|
-
}, {
|
|
68
|
-
label: t._("Created by"),
|
|
69
|
-
value: u ? /* @__PURE__ */ e(v, { variant: "text", width: "50%" }) : m ? /* @__PURE__ */ e(r, { fontWeight: 500, children: m }) : "—"
|
|
70
|
-
}] }),
|
|
71
|
-
/* @__PURE__ */ e(b, { severity: "warning", children: /* @__PURE__ */ e(r, { variant: "body2", children: t._("Please, check the details of your payment record. You won't be able to change or delete it after.") }) })
|
|
72
|
-
] });
|
|
4
|
+
api: t,
|
|
5
|
+
queryClient: i
|
|
6
|
+
} = e();
|
|
7
|
+
return t.finops.putEntitiesIdLogo.useMutation(void 0, {
|
|
8
|
+
onSuccess: async (s) => {
|
|
9
|
+
t.finops.getEntityUsersMyEntity.setQueryData({}, (o) => o && {
|
|
10
|
+
...o,
|
|
11
|
+
logo: s
|
|
12
|
+
}, i), await t.finops.getEntityUsersMyEntity.invalidateQueries(i);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
73
15
|
};
|
|
74
16
|
export {
|
|
75
|
-
|
|
17
|
+
a as useUploadEntityLogo
|
|
76
18
|
};
|
|
@@ -1,99 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import "./index92.js";
|
|
6
|
-
import { useLingui as F } from "@lingui/react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "./index57.js";
|
|
9
|
-
import "@mui/x-data-grid";
|
|
10
|
-
import { safeZodResolver as v } from "./index218.js";
|
|
11
|
-
import { RHFDatePicker as D } from "./index437.js";
|
|
12
|
-
import { RHFTextField as S } from "./index438.js";
|
|
13
|
-
import { RHFTimePicker as R } from "./index439.js";
|
|
14
|
-
import { DialogTitle as T, DialogContent as P, Grid as i, FormHelperText as k, Button as m, DialogActions as E, CircularProgress as H } from "@mui/material";
|
|
15
|
-
import { useForm as V } from "react-hook-form";
|
|
16
|
-
const Z = ({
|
|
17
|
-
invoice: r,
|
|
18
|
-
initialValues: n,
|
|
19
|
-
isLoading: u,
|
|
20
|
-
onSubmit: s,
|
|
21
|
-
onCancel: c
|
|
22
|
-
}) => {
|
|
1
|
+
import { toast as o } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
3
|
+
import { useLingui as r } from "@lingui/react";
|
|
4
|
+
const p = (i) => {
|
|
23
5
|
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
6
|
+
api: t,
|
|
7
|
+
queryClient: s
|
|
8
|
+
} = n(), {
|
|
9
|
+
i18n: e
|
|
10
|
+
} = r();
|
|
11
|
+
return t.finops.deleteEntitiesIdLogo.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
entity_id: i
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await t.finops.getEntityUsersMyEntity.invalidateQueries(s), o.success(e._("Logo was removed."));
|
|
18
|
+
},
|
|
19
|
+
onError: () => {
|
|
20
|
+
o.error(e._("Failed to remove logo."));
|
|
21
|
+
}
|
|
40
22
|
});
|
|
41
|
-
C(() => {
|
|
42
|
-
l(n);
|
|
43
|
-
}, [n, l]);
|
|
44
|
-
const h = d(r.currency);
|
|
45
|
-
return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ o("form", { onSubmit: f(s), children: [
|
|
46
|
-
/* @__PURE__ */ e(T, { sx: {
|
|
47
|
-
px: 4,
|
|
48
|
-
pt: 4
|
|
49
|
-
}, variant: "h3", id: "dialog-title", children: t._("Record payment") }),
|
|
50
|
-
/* @__PURE__ */ e(P, { sx: {
|
|
51
|
-
p: 4
|
|
52
|
-
}, children: /* @__PURE__ */ o(i, { container: !0, spacing: 1, children: [
|
|
53
|
-
/* @__PURE__ */ o(i, { item: !0, xs: 12, children: [
|
|
54
|
-
/* @__PURE__ */ e(S, { label: t._("Amount"), name: "amount", placeholder: "0", control: a, type: "number", sx: {
|
|
55
|
-
"::after": {
|
|
56
|
-
content: `"${h}"`,
|
|
57
|
-
position: "absolute",
|
|
58
|
-
right: "16px",
|
|
59
|
-
bottom: 0,
|
|
60
|
-
transform: "translateY(-50%)",
|
|
61
|
-
fontSize: "16px",
|
|
62
|
-
color: "rgba(0,0,0,0.28)",
|
|
63
|
-
pointerEvents: "none"
|
|
64
|
-
}
|
|
65
|
-
}, fullWidth: !0, required: !0 }),
|
|
66
|
-
/* @__PURE__ */ o(k, { children: [
|
|
67
|
-
t._("Enter full amount due of"),
|
|
68
|
-
" ",
|
|
69
|
-
/* @__PURE__ */ e(m, { variant: "text", sx: {
|
|
70
|
-
textDecoration: "underline"
|
|
71
|
-
}, onClick: () => x("amount", r.amount_due / 100), children: p(r.amount_due, r.currency) })
|
|
72
|
-
] })
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ e(i, { item: !0, xs: 6, children: /* @__PURE__ */ e(D, { label: t._("Date"), name: "payment_date", control: a }) }),
|
|
75
|
-
/* @__PURE__ */ e(i, { item: !0, xs: 6, children: /* @__PURE__ */ e(R, { label: t._("Time"), name: "payment_time", control: a, sx: {
|
|
76
|
-
"::after": {
|
|
77
|
-
content: '"UTC"',
|
|
78
|
-
position: "absolute",
|
|
79
|
-
right: "16px",
|
|
80
|
-
bottom: 0,
|
|
81
|
-
transform: "translateY(-50%)",
|
|
82
|
-
fontSize: "16px",
|
|
83
|
-
color: "rgba(0,0,0,0.28)",
|
|
84
|
-
pointerEvents: "none"
|
|
85
|
-
}
|
|
86
|
-
}, fullWidth: !0, required: !0 }) })
|
|
87
|
-
] }) }),
|
|
88
|
-
/* @__PURE__ */ o(E, { sx: {
|
|
89
|
-
px: 4,
|
|
90
|
-
pb: 4
|
|
91
|
-
}, children: [
|
|
92
|
-
/* @__PURE__ */ e(m, { autoFocus: !0, onClick: c, children: t._("Cancel") }),
|
|
93
|
-
/* @__PURE__ */ e(m, { variant: "contained", startIcon: u ? /* @__PURE__ */ e(H, { size: 20, color: "warning" }) : null, type: "submit", children: t._("Save") })
|
|
94
|
-
] })
|
|
95
|
-
] }) });
|
|
96
23
|
};
|
|
97
24
|
export {
|
|
98
|
-
|
|
25
|
+
p as useDeleteEntityLogo
|
|
99
26
|
};
|
|
@@ -1,39 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useLingui as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsx as t, jsxs as e, Fragment as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { useLingui as h } from "@lingui/react";
|
|
4
|
+
import { X as g, CloudUpload as x, AlertCircle as N, CheckCircle2 as b } from "lucide-react";
|
|
5
|
+
import { LoadingSpinner as y } from "./index138.js";
|
|
6
|
+
import { Typography as l } from "./index85.js";
|
|
7
|
+
import { twMerge as v } from "tailwind-merge";
|
|
8
|
+
import { UploadBar as C } from "./index439.js";
|
|
9
|
+
const U = ({
|
|
10
|
+
isUploading: o,
|
|
11
|
+
isSuccess: r,
|
|
12
|
+
isError: i,
|
|
13
|
+
isDraggingOver: d,
|
|
14
|
+
resetUpload: a,
|
|
15
|
+
fileName: m,
|
|
16
|
+
onClick: u
|
|
17
|
+
}) => {
|
|
6
18
|
const {
|
|
7
|
-
i18n:
|
|
8
|
-
} =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
19
|
+
i18n: s
|
|
20
|
+
} = h(), w = o || r || i;
|
|
21
|
+
function p() {
|
|
22
|
+
return i ? /* @__PURE__ */ t(N, { className: "ttw:size-5 ttw:text-danger" }) : r ? /* @__PURE__ */ t(b, { className: "ttw:size-5 ttw:text-success" }) : /* @__PURE__ */ t(y, { className: "ttw:w-5 ttw:h-5" });
|
|
23
|
+
}
|
|
24
|
+
return f(() => {
|
|
25
|
+
let n;
|
|
26
|
+
return r && (n = setTimeout(() => a(), 2e3)), () => clearTimeout(n);
|
|
27
|
+
}, [r, a]), /* @__PURE__ */ t("div", { className: v("ttw:w-full ttw:h-38 ttw:bg-white ttw:box-border ttw:transition-all ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:px-4 ttw:py-6", d ? "ttw:border-solid ttw:border-primary" : "ttw:border-dashed ttw:border-border"), onClick: () => {
|
|
28
|
+
w || u();
|
|
29
|
+
}, children: w ? /* @__PURE__ */ e(c, { children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-4 ttw:justify-center ttw:w-full", children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:w-1/2 ttw:items-center", children: [
|
|
32
|
+
p(),
|
|
33
|
+
/* @__PURE__ */ t("span", { className: "ttw:w-full ttw:text-sm ttw:leading-5 ttw:text-medium ttw:text-neutral ttw:truncate", children: m })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:items-center", children: [
|
|
36
|
+
/* @__PURE__ */ t(C, { shouldStartProgress: o, isError: i, isSuccess: r }),
|
|
37
|
+
i && /* @__PURE__ */ t("button", { type: "button", disabled: o, onClick: a, className: "ttw:border-none ttw:cursor-pointer", children: /* @__PURE__ */ t(g, { className: "ttw:size-4" }) })
|
|
38
|
+
] })
|
|
39
|
+
] }),
|
|
40
|
+
i && /* @__PURE__ */ t(l, { variant: "body2", color: "destructive", className: "ttw:font-medium", children: s._("Wrong file format. Please, upload the file in JPEG, PNG or GIF format.") })
|
|
41
|
+
] }) : /* @__PURE__ */ e(c, { children: [
|
|
42
|
+
/* @__PURE__ */ t("div", { className: "ttw:p-3 ttw:bg-primary ttw:rounded-full", children: /* @__PURE__ */ t(x, { className: "ttw:text-white ttw:size-5" }) }),
|
|
43
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:font-medium", children: [
|
|
44
|
+
s._("Drop your files here, or "),
|
|
45
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline ttw:hover:cursor-pointer", children: s._("click to browse") })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ t(l, { variant: "caption", color: "muted", children: s._("PNG, JPG or GIF (max. 10MB)") })
|
|
48
|
+
] }) });
|
|
36
49
|
};
|
|
37
50
|
export {
|
|
38
|
-
|
|
51
|
+
U as DragAndDropBox
|
|
39
52
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as $ } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { ScopedCssBaselineContainerClassName as z } from "./index104.js";
|
|
3
3
|
import { InvoiceStatusChip as D } from "./index55.js";
|
|
4
|
-
import { ReceivableFilters as Q } from "./
|
|
4
|
+
import { ReceivableFilters as Q } from "./index174.js";
|
|
5
5
|
import "react-hot-toast";
|
|
6
6
|
import { useMoniteContext as k } from "./index57.js";
|
|
7
7
|
import { useLingui as G } from "@lingui/react";
|
|
@@ -11,7 +11,7 @@ import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
|
11
11
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
12
12
|
import "@tanstack/react-query";
|
|
13
13
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
14
|
-
import { useReceivablesFilters as B } from "./
|
|
14
|
+
import { useReceivablesFilters as B } from "./index175.js";
|
|
15
15
|
import "date-fns";
|
|
16
16
|
import { useCurrencies as W } from "./index58.js";
|
|
17
17
|
import "clsx";
|
|
@@ -19,19 +19,19 @@ import "tailwind-merge";
|
|
|
19
19
|
import "@radix-ui/react-dropdown-menu";
|
|
20
20
|
import "lucide-react";
|
|
21
21
|
import "./index84.js";
|
|
22
|
-
import { useGetReceivables as j } from "./
|
|
22
|
+
import { useGetReceivables as j } from "./index149.js";
|
|
23
23
|
import "./index92.js";
|
|
24
24
|
import { useAreCounterpartsLoading as q, defaultCounterpartColumnWidth as E, useAutosizeGridColumns as V } from "./index62.js";
|
|
25
25
|
import "react-hook-form";
|
|
26
26
|
import { MoniteScopedProviders as H } from "./index83.js";
|
|
27
|
-
import { ReceivableCursorFields as S } from "./
|
|
28
|
-
import { CounterpartNameCellById as Y } from "./
|
|
29
|
-
import { DataGridEmptyState as J } from "./
|
|
30
|
-
import { GetNoRowsOverlay as K } from "./
|
|
31
|
-
import { DueDateCell as U } from "./
|
|
27
|
+
import { ReceivableCursorFields as S } from "./index172.js";
|
|
28
|
+
import { CounterpartNameCellById as Y } from "./index162.js";
|
|
29
|
+
import { DataGridEmptyState as J } from "./index176.js";
|
|
30
|
+
import { GetNoRowsOverlay as K } from "./index163.js";
|
|
31
|
+
import { DueDateCell as U } from "./index173.js";
|
|
32
32
|
import { TablePagination as X } from "./index86.js";
|
|
33
|
-
import { classNames as Z } from "./
|
|
34
|
-
import { hasSelectedText as ee } from "./
|
|
33
|
+
import { classNames as Z } from "./index177.js";
|
|
34
|
+
import { hasSelectedText as ee } from "./index165.js";
|
|
35
35
|
import { Stack as te, Typography as oe, Box as ae } from "@mui/material";
|
|
36
36
|
import { DataGrid as ie } from "@mui/x-data-grid";
|
|
37
37
|
const We = (l) => /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(re, { ...l }) }), re = ({
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Switch as a } from "radix-ui";
|
|
3
|
+
import { cn as e } from "./index100.js";
|
|
4
|
+
function o({
|
|
5
|
+
className: s,
|
|
6
|
+
size: r = "default",
|
|
7
|
+
...i
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "switch", "data-size": r, className: e("ttw:peer ttw:group/switch ttw:inline-flex ttw:shrink-0 ttw:items-center ttw:rounded-full ttw:border ttw:border-transparent ttw:shadow-xs ttw:transition-all ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-[1.15rem] ttw:data-[size=default]:w-8 ttw:data-[size=sm]:h-3.5 ttw:data-[size=sm]:w-6 ttw:data-[state=checked]:bg-primary ttw:data-[state=unchecked]:bg-input ttw:dark:data-[state=unchecked]:bg-input/80", s), ...i, children: /* @__PURE__ */ t(a.Thumb, { "data-slot": "switch-thumb", className: e("ttw:pointer-events-none ttw:block ttw:rounded-full ttw:bg-background ttw:ring-0 ttw:transition-transform ttw:group-data-[size=default]/switch:size-4 ttw:group-data-[size=sm]/switch:size-3 ttw:data-[state=checked]:translate-x-[calc(100%-2px)] ttw:data-[state=unchecked]:translate-x-0 ttw:dark:data-[state=checked]:bg-primary-foreground ttw:dark:data-[state=unchecked]:bg-foreground") }) });
|
|
10
|
+
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
o as Switch
|
|
12
13
|
};
|
|
@@ -1,13 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "./index100.js";
|
|
3
|
+
import * as o from "@radix-ui/react-popover";
|
|
4
|
+
function m({
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "popover", ...t });
|
|
8
|
+
}
|
|
9
|
+
function d({
|
|
10
|
+
ref: t,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "popover-trigger", ref: t, ...a });
|
|
14
|
+
}
|
|
15
|
+
d.displayName = o.Trigger.displayName;
|
|
16
|
+
function f({
|
|
17
|
+
className: t,
|
|
18
|
+
align: a = "center",
|
|
19
|
+
sideOffset: r = 4,
|
|
20
|
+
...n
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(o.Content, { "data-slot": "popover-content", align: a, sideOffset: r, className: i("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-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-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", t), ...n }) });
|
|
23
|
+
}
|
|
24
|
+
function l({
|
|
25
|
+
...t
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
28
|
+
}
|
|
11
29
|
export {
|
|
12
|
-
m as
|
|
30
|
+
m as Popover,
|
|
31
|
+
l as PopoverAnchor,
|
|
32
|
+
f as PopoverContent,
|
|
33
|
+
d as PopoverTrigger
|
|
13
34
|
};
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function m({
|
|
5
|
-
...t
|
|
6
|
-
}) {
|
|
7
|
-
return /* @__PURE__ */ e(o.Root, { "data-slot": "popover", ...t });
|
|
8
|
-
}
|
|
9
|
-
function d({
|
|
10
|
-
ref: t,
|
|
11
|
-
...a
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "popover-trigger", ref: t, ...a });
|
|
14
|
-
}
|
|
15
|
-
d.displayName = o.Trigger.displayName;
|
|
16
|
-
function f({
|
|
17
|
-
className: t,
|
|
18
|
-
align: a = "center",
|
|
19
|
-
sideOffset: r = 4,
|
|
20
|
-
...n
|
|
21
|
-
}) {
|
|
22
|
-
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(o.Content, { "data-slot": "popover-content", align: a, sideOffset: r, className: i("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-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-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", t), ...n }) });
|
|
23
|
-
}
|
|
24
|
-
function l({
|
|
25
|
-
...t
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
1
|
+
function r(l, e) {
|
|
2
|
+
if (l !== void 0) return l;
|
|
3
|
+
if (e !== void 0) return null;
|
|
28
4
|
}
|
|
29
5
|
export {
|
|
30
|
-
|
|
31
|
-
l as PopoverAnchor,
|
|
32
|
-
f as PopoverContent,
|
|
33
|
-
d as PopoverTrigger
|
|
6
|
+
r as resolveNullableUpdate
|
|
34
7
|
};
|
|
@@ -1,98 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { usePaymentIntentById as $ } from "./index80.js";
|
|
10
|
-
import { useCreatePayablePaymentLink as v, usePaymentLinkById as B } from "./index449.js";
|
|
11
|
-
import { Modal as j, Box as x, CircularProgress as D } from "@mui/material";
|
|
12
|
-
const G = (r, d, f, i) => {
|
|
13
|
-
const {
|
|
14
|
-
i18n: t
|
|
15
|
-
} = R(), {
|
|
16
|
-
root: k
|
|
17
|
-
} = S(), b = v(), [L, m] = l(!1), [u, o] = l(null), [g, p] = l(null), [_, P] = l(!1), {
|
|
18
|
-
data: s,
|
|
19
|
-
isSuccess: h
|
|
20
|
-
} = $(i ?? "");
|
|
21
|
-
w(() => {
|
|
22
|
-
h && s?.payment_link_id && i && p(s.payment_link_id);
|
|
23
|
-
}, [h, s, i]);
|
|
24
|
-
const {
|
|
25
|
-
data: e,
|
|
26
|
-
refetch: C,
|
|
27
|
-
isSuccess: y,
|
|
28
|
-
isLoading: E
|
|
29
|
-
} = B(g ?? "");
|
|
30
|
-
return w(() => {
|
|
31
|
-
y && e?.payment_intent?.status === "processing" && f?.(r ?? "", e?.payment_intent?.status ?? "");
|
|
32
|
-
}, [e, y, f, r]), {
|
|
33
|
-
handlePay: async () => {
|
|
34
|
-
if (!d) {
|
|
35
|
-
c.error(t._("Vendor not found. Please create a vendor first."));
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (!_)
|
|
39
|
-
try {
|
|
40
|
-
if (E) {
|
|
41
|
-
c.error(t._("Payment link is still loading. Please wait a moment and try again."));
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (!g || y && e?.payment_intent?.status !== "created") {
|
|
45
|
-
if (P(!0), !r) throw new Error("Payable ID is undefined");
|
|
46
|
-
const a = await b(
|
|
47
|
-
r,
|
|
48
|
-
d,
|
|
49
|
-
["sepa_credit"],
|
|
50
|
-
60
|
|
51
|
-
// 60 days from now
|
|
52
|
-
);
|
|
53
|
-
if (a.payment_page_url)
|
|
54
|
-
p(a.id), o(a.payment_page_url);
|
|
55
|
-
else
|
|
56
|
-
throw p(null), o(null), new Error("No payment page URL in response");
|
|
57
|
-
} else if (e?.payment_page_url)
|
|
58
|
-
o(e.payment_page_url);
|
|
59
|
-
else
|
|
60
|
-
throw new Error("No payment page URL in existing payment link");
|
|
61
|
-
m(!0);
|
|
62
|
-
} catch (a) {
|
|
63
|
-
console.error("Payment link creation/retrieval error:", a), c.error(i && s?.status === "created" ? t._("Failed to retrieve payment link. Please try again.") : t._("Failed to create payment link. Please try again.")), m(!1);
|
|
64
|
-
} finally {
|
|
65
|
-
P(!1);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
isCreatingPaymentLink: _,
|
|
69
|
-
modalComponent: /* @__PURE__ */ n(j, { open: L, onClose: async () => {
|
|
70
|
-
await C(), m(!1), o(null);
|
|
71
|
-
}, container: k, children: /* @__PURE__ */ n(x, { sx: {
|
|
72
|
-
position: "absolute",
|
|
73
|
-
top: "50%",
|
|
74
|
-
left: "50%",
|
|
75
|
-
transform: "translate(-50%, -50%)",
|
|
76
|
-
width: "80%",
|
|
77
|
-
maxWidth: 600,
|
|
78
|
-
bgcolor: "background.paper",
|
|
79
|
-
boxShadow: 24,
|
|
80
|
-
p: 4,
|
|
81
|
-
borderRadius: 2
|
|
82
|
-
}, children: u ? /* @__PURE__ */ n("iframe", { src: u, title: "Payment Page", width: "100%", height: "400px", style: {
|
|
83
|
-
border: "none"
|
|
84
|
-
} }) : /* @__PURE__ */ I(x, { sx: {
|
|
85
|
-
display: "flex",
|
|
86
|
-
flexDirection: "column",
|
|
87
|
-
alignItems: "center",
|
|
88
|
-
gap: 2,
|
|
89
|
-
py: 4
|
|
90
|
-
}, children: [
|
|
91
|
-
/* @__PURE__ */ n(D, {}),
|
|
92
|
-
/* @__PURE__ */ n("p", { children: t._("Loading payment page...") })
|
|
93
|
-
] }) }) })
|
|
94
|
-
};
|
|
1
|
+
const o = ["draft", "new", "waiting_to_be_paid", "approve_in_progress"], s = (n) => {
|
|
2
|
+
if (!n.due_date) return 0;
|
|
3
|
+
const e = /* @__PURE__ */ new Date();
|
|
4
|
+
e.setUTCHours(0, 0, 0, 0);
|
|
5
|
+
const t = new Date(n.due_date);
|
|
6
|
+
if (t.setUTCHours(0, 0, 0, 0), t.getTime() === e.getTime()) return 0;
|
|
7
|
+
const r = o.includes(n.status), i = t.getTime() < e.getTime();
|
|
8
|
+
return !r || !i ? 0 : Math.floor((e.getTime() - t.getTime()) / 864e5);
|
|
95
9
|
};
|
|
96
10
|
export {
|
|
97
|
-
|
|
11
|
+
s as getInvoiceOverdueDays
|
|
98
12
|
};
|
|
@@ -1,40 +1,36 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const v = (i, n, s, p) => {
|
|
1
|
+
import { useMoniteContext as e } from "./index57.js";
|
|
2
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
|
+
import { toast as u } from "react-hot-toast";
|
|
4
|
+
const d = () => {
|
|
6
5
|
const {
|
|
7
|
-
api:
|
|
8
|
-
queryClient:
|
|
9
|
-
} =
|
|
6
|
+
api: r,
|
|
7
|
+
queryClient: n
|
|
8
|
+
} = e(), {
|
|
10
9
|
i18n: o
|
|
11
|
-
} =
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, t), e.finops.getPayables.invalidateQueries(t)]).then(() => r());
|
|
30
|
-
}, 500);
|
|
31
|
-
});
|
|
10
|
+
} = i();
|
|
11
|
+
return r.finops.patchCounterpartsIdBankAccountsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async (t) => {
|
|
13
|
+
r.finops.getCounterpartsIdBankAccountsId.setQueryData({
|
|
14
|
+
path: {
|
|
15
|
+
counterpart_id: t.counterpart_id,
|
|
16
|
+
bank_account_id: t.id
|
|
17
|
+
}
|
|
18
|
+
}, (a) => ({
|
|
19
|
+
...a,
|
|
20
|
+
...t
|
|
21
|
+
}), n), await r.finops.getCounterpartsIdBankAccounts.invalidateQueries({
|
|
22
|
+
parameters: {
|
|
23
|
+
path: {
|
|
24
|
+
counterpart_id: t.counterpart_id
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, n);
|
|
32
28
|
},
|
|
33
|
-
onError: (
|
|
34
|
-
|
|
29
|
+
onError: () => {
|
|
30
|
+
u.error(o._("Failed to update Bank Account."));
|
|
35
31
|
}
|
|
36
32
|
});
|
|
37
33
|
};
|
|
38
34
|
export {
|
|
39
|
-
|
|
35
|
+
d as useUpdateCounterpartBank
|
|
40
36
|
};
|