@tesouro/embedded-components-react 0.2.232 → 0.2.234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -6
- 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 +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index4.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +154 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +144 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +9 -0
- 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/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +19 -19
- 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-requirements-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +6 -6
- 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 +19 -19
- 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 +5 -5
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index9.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +16 -16
- 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/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +11 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +114 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +70 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +46 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +74 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +55 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +80 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +7 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +228 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +467 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +104 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +537 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +24 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +94 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +90 -459
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +14 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +11 -536
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -35
- 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 +37 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +52 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +5 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +75 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +32 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +1 -1
- 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 +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +2 -2
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +94 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +96 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +212 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +37 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +341 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +296 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +98 -36
- 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 +154 -339
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +259 -295
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +15 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +18 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +5 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +78 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +77 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +73 -96
- 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 +43 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +149 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +10 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +17 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +8 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +491 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +168 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +22 -58
- 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 +32 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +63 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +155 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +28 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +78 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +67 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +21 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +16 -15
- 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 +170 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +129 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +153 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +9 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +18 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +65 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +53 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +8 -5
- 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 +59 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +60 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +27 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +126 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +124 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +49 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +119 -25
- 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 +99 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +42 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +195 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +68 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +22 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +52 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +28 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +59 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +30 -19
- 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 +4 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +32 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +27 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +39 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +58 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +29 -40
- 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 +116 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +43 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +56 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +27 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +40 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +60 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +92 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +108 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +87 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +14 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +24 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +17 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +49 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +47 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +32 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +17 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +41 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +23 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +72 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +88 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +33 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +9 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +10 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +31 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +4 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +127 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +91 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +35 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +84 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +85 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +266 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +37 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +63 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +138 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +115 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +80 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +95 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +8 -115
- 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 +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +282 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +49 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +15 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +48 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +65 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +42 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +23 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +19 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +34 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +24 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +33 -91
- 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 +121 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +16 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +34 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +72 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +3 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +11 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +19 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +42 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +35 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +13 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +48 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +56 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +51 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +8 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +75 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +9 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +53 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +72 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +72 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +66 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +39 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +70 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +81 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +49 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +51 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +50 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +39 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +47 -24
- 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 +28 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +22 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +37 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +31 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +85 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +24 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +104 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +105 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +50 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- 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 +7 -7
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +70 -74
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApproverOptions.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/clientRegistry.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +454 -454
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +96 -96
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +122 -97
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +19 -19
- 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 +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index9.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +7 -7
- 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 +5 -5
- 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 +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index3.js +7 -7
- 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 +17 -17
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +35 -35
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -4
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +0 -175
|
@@ -1,36 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
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);
|
|
28
|
-
},
|
|
29
|
-
onError: () => {
|
|
30
|
-
u.error(o._("Failed to update Bank Account."));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
1
|
+
const f = (n, r) => `${n} ${n === 1 ? r._("day") : r._("days")}`, s = (n, r) => {
|
|
2
|
+
const e = n.map((_) => f(_, r));
|
|
3
|
+
if (e.length <= 1) return e[0] ?? "";
|
|
4
|
+
const t = r._("and");
|
|
5
|
+
return e.length === 2 ? `${e[0]} ${t} ${e[1]}` : `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
|
|
6
|
+
}, d = (n) => [n?.term_1_reminder?.days_before, n?.term_2_reminder?.days_before, n?.term_final_reminder?.days_before].filter((r) => typeof r == "number"), l = (n) => (n?.terms ?? []).map((r) => r.days_after).filter((r) => typeof r == "number"), m = (n, r, e, t = !1) => {
|
|
7
|
+
const _ = d(n), o = l(r), a = [];
|
|
8
|
+
return _.length > 0 && a.push(`${s(_, e)} ${e._("before")}`), o.length > 0 && a.push(`${s(o, e)} ${e._("after")}`), a.length > 0 ? a.join(`
|
|
9
|
+
`) : t ? "-" : e._("None");
|
|
33
10
|
};
|
|
34
11
|
export {
|
|
35
|
-
|
|
12
|
+
m as formatReminderSchedule
|
|
36
13
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
if (
|
|
3
|
-
return
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
return 0;
|
|
7
|
-
const n = 1e3 * 60 * 60 * 24, T = Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()), o = Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), a = Math.floor((T - o) / n);
|
|
8
|
-
return a > 0 ? a : 0;
|
|
1
|
+
const e = (t) => {
|
|
2
|
+
if (t < 1024)
|
|
3
|
+
return `${t} B`;
|
|
4
|
+
const o = t / 1024;
|
|
5
|
+
return o < 1024 ? `${Math.round(o)} KB` : `${(o / 1024).toFixed(1)} MB`;
|
|
9
6
|
};
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
e as formatFileSize
|
|
12
9
|
};
|
|
@@ -1,13 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useRef as v, useState as s, useCallback as r, useEffect as M } from "react";
|
|
2
|
+
const D = () => {
|
|
3
|
+
const t = v(null), [n, a] = s(!1), [u, o] = s(0), [f, c] = s(0), d = r((e) => {
|
|
4
|
+
a(!0), o(e.pageX - (t.current?.offsetLeft || 0)), c(t.current?.scrollLeft || 0);
|
|
5
|
+
}, []), h = r(() => {
|
|
6
|
+
a(!1);
|
|
7
|
+
}, []), i = r(() => {
|
|
8
|
+
a(!1);
|
|
9
|
+
}, []), L = r((e) => {
|
|
10
|
+
if (!n) return;
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
const p = e.pageX - (t.current?.offsetLeft || 0) - u;
|
|
13
|
+
t.current && (t.current.scrollLeft = f - p);
|
|
14
|
+
}, [n, u, f]), l = r((e) => {
|
|
15
|
+
t.current && (e.deltaMode === 0 && Math.abs(e.deltaX) > Math.abs(e.deltaY) ? (e.preventDefault(), t.current.scrollLeft += e.deltaX * 2) : e.preventDefault());
|
|
16
|
+
}, []);
|
|
17
|
+
return M(() => {
|
|
18
|
+
const e = t.current;
|
|
19
|
+
if (e)
|
|
20
|
+
return e.addEventListener("wheel", l), () => {
|
|
21
|
+
e.removeEventListener("wheel", l);
|
|
22
|
+
};
|
|
23
|
+
}, [l]), {
|
|
24
|
+
containerRef: t,
|
|
25
|
+
handleMouseDown: d,
|
|
26
|
+
handleMouseLeave: h,
|
|
27
|
+
handleMouseUp: i,
|
|
28
|
+
handleMouseMove: L,
|
|
29
|
+
isDragging: n
|
|
30
|
+
};
|
|
10
31
|
};
|
|
11
32
|
export {
|
|
12
|
-
|
|
33
|
+
D as useDragScroll
|
|
13
34
|
};
|
|
@@ -1,56 +1,7 @@
|
|
|
1
|
-
const a = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
AZ: "Arizona",
|
|
5
|
-
AR: "Arkansas",
|
|
6
|
-
CA: "California",
|
|
7
|
-
CO: "Colorado",
|
|
8
|
-
CT: "Connecticut",
|
|
9
|
-
DE: "Delaware",
|
|
10
|
-
FL: "Florida",
|
|
11
|
-
GA: "Georgia",
|
|
12
|
-
HI: "Hawaii",
|
|
13
|
-
ID: "Idaho",
|
|
14
|
-
IL: "Illinois",
|
|
15
|
-
IN: "Indiana",
|
|
16
|
-
IA: "Iowa",
|
|
17
|
-
KS: "Kansas",
|
|
18
|
-
KY: "Kentucky",
|
|
19
|
-
LA: "Louisiana",
|
|
20
|
-
ME: "Maine",
|
|
21
|
-
MD: "Maryland",
|
|
22
|
-
MA: "Massachusetts",
|
|
23
|
-
MI: "Michigan",
|
|
24
|
-
MN: "Minnesota",
|
|
25
|
-
MS: "Mississippi",
|
|
26
|
-
MO: "Missouri",
|
|
27
|
-
MT: "Montana",
|
|
28
|
-
NE: "Nebraska",
|
|
29
|
-
NV: "Nevada",
|
|
30
|
-
NH: "New Hampshire",
|
|
31
|
-
NJ: "New Jersey",
|
|
32
|
-
NM: "New Mexico",
|
|
33
|
-
NY: "New York",
|
|
34
|
-
NC: "North Carolina",
|
|
35
|
-
ND: "North Dakota",
|
|
36
|
-
OH: "Ohio",
|
|
37
|
-
OK: "Oklahoma",
|
|
38
|
-
OR: "Oregon",
|
|
39
|
-
PA: "Pennsylvania",
|
|
40
|
-
RI: "Rhode Island",
|
|
41
|
-
SC: "South Carolina",
|
|
42
|
-
SD: "South Dakota",
|
|
43
|
-
TN: "Tennessee",
|
|
44
|
-
TX: "Texas",
|
|
45
|
-
UT: "Utah",
|
|
46
|
-
VT: "Vermont",
|
|
47
|
-
VA: "Virginia",
|
|
48
|
-
WA: "Washington",
|
|
49
|
-
WV: "West Virginia",
|
|
50
|
-
WI: "Wisconsin",
|
|
51
|
-
WY: "Wyoming",
|
|
52
|
-
DC: "Washington D.C."
|
|
1
|
+
const o = (e) => JSON.stringify(Object.entries(e).sort(([t], [a]) => t.localeCompare(a))), r = (e) => {
|
|
2
|
+
if (e)
|
|
3
|
+
return JSON.stringify(e.map(o).sort((t, a) => t.localeCompare(a)));
|
|
53
4
|
};
|
|
54
5
|
export {
|
|
55
|
-
|
|
6
|
+
r as getPayablesAnalyticsSnapshot
|
|
56
7
|
};
|
|
@@ -1,38 +1,129 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
value:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { startOfDay as c, startOfYear as r, subYears as m, endOfYear as s, startOfQuarter as o, subQuarters as b, endOfQuarter as u, subDays as a, startOfMonth as l, subMonths as d, endOfMonth as n, startOfWeek as _, subWeeks as i, endOfWeek as f, endOfDay as y } from "date-fns";
|
|
2
|
+
const v = [{
|
|
3
|
+
value: "today",
|
|
4
|
+
label: "Today",
|
|
5
|
+
group: "Current"
|
|
6
|
+
}, {
|
|
7
|
+
value: "this_week",
|
|
8
|
+
label: "This week",
|
|
9
|
+
group: "Current"
|
|
10
|
+
}, {
|
|
11
|
+
value: "this_month",
|
|
12
|
+
label: "This month",
|
|
13
|
+
group: "Current"
|
|
14
|
+
}, {
|
|
15
|
+
value: "this_quarter",
|
|
16
|
+
label: "This quarter",
|
|
17
|
+
group: "Current"
|
|
18
|
+
}, {
|
|
19
|
+
value: "this_year",
|
|
20
|
+
label: "This year",
|
|
21
|
+
group: "Current"
|
|
22
|
+
}, {
|
|
23
|
+
value: "yesterday",
|
|
24
|
+
label: "Yesterday",
|
|
25
|
+
group: "Past"
|
|
26
|
+
}, {
|
|
27
|
+
value: "last_week",
|
|
28
|
+
label: "Last week",
|
|
29
|
+
group: "Past"
|
|
30
|
+
}, {
|
|
31
|
+
value: "last_month",
|
|
32
|
+
label: "Last month",
|
|
33
|
+
group: "Past"
|
|
34
|
+
}, {
|
|
35
|
+
value: "last_30_days",
|
|
36
|
+
label: "Last 30 days",
|
|
37
|
+
group: "Past"
|
|
38
|
+
}, {
|
|
39
|
+
value: "last_90_days",
|
|
40
|
+
label: "Last 90 days",
|
|
41
|
+
group: "Past"
|
|
42
|
+
}, {
|
|
43
|
+
value: "last_quarter",
|
|
44
|
+
label: "Last quarter",
|
|
45
|
+
group: "Past"
|
|
46
|
+
}, {
|
|
47
|
+
value: "last_year",
|
|
48
|
+
label: "Last year",
|
|
49
|
+
group: "Past"
|
|
50
|
+
}];
|
|
51
|
+
function g(h) {
|
|
52
|
+
const e = c(/* @__PURE__ */ new Date());
|
|
53
|
+
switch (h) {
|
|
54
|
+
case "today":
|
|
55
|
+
return {
|
|
56
|
+
from: e,
|
|
57
|
+
to: y(e)
|
|
58
|
+
};
|
|
59
|
+
case "this_week":
|
|
60
|
+
return {
|
|
61
|
+
from: _(e),
|
|
62
|
+
to: f(e)
|
|
63
|
+
};
|
|
64
|
+
case "this_month":
|
|
65
|
+
return {
|
|
66
|
+
from: l(e),
|
|
67
|
+
to: n(e)
|
|
68
|
+
};
|
|
69
|
+
case "this_quarter":
|
|
70
|
+
return {
|
|
71
|
+
from: o(e),
|
|
72
|
+
to: u(e)
|
|
73
|
+
};
|
|
74
|
+
case "this_year":
|
|
75
|
+
return {
|
|
76
|
+
from: r(e),
|
|
77
|
+
to: s(e)
|
|
78
|
+
};
|
|
79
|
+
case "yesterday": {
|
|
80
|
+
const t = a(e, 1);
|
|
81
|
+
return {
|
|
82
|
+
from: t,
|
|
83
|
+
to: y(t)
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
case "last_week": {
|
|
87
|
+
const t = _(i(e, 1));
|
|
88
|
+
return {
|
|
89
|
+
from: t,
|
|
90
|
+
to: f(t)
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
case "last_month": {
|
|
94
|
+
const t = l(d(e, 1));
|
|
95
|
+
return {
|
|
96
|
+
from: t,
|
|
97
|
+
to: n(t)
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
case "last_30_days":
|
|
101
|
+
return {
|
|
102
|
+
from: a(e, 30),
|
|
103
|
+
to: e
|
|
104
|
+
};
|
|
105
|
+
case "last_90_days":
|
|
106
|
+
return {
|
|
107
|
+
from: a(e, 90),
|
|
108
|
+
to: e
|
|
109
|
+
};
|
|
110
|
+
case "last_quarter": {
|
|
111
|
+
const t = o(b(e, 1));
|
|
112
|
+
return {
|
|
113
|
+
from: t,
|
|
114
|
+
to: u(t)
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
case "last_year": {
|
|
118
|
+
const t = r(m(e, 1));
|
|
119
|
+
return {
|
|
120
|
+
from: t,
|
|
121
|
+
to: s(t)
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
36
126
|
export {
|
|
37
|
-
|
|
127
|
+
v as DATE_PRESETS,
|
|
128
|
+
g as resolveDatePreset
|
|
38
129
|
};
|
|
@@ -1,28 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { toast as
|
|
4
|
-
|
|
1
|
+
import { jsx as n, jsxs as I } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as w } from "react";
|
|
3
|
+
import { toast as c } from "react-hot-toast";
|
|
4
|
+
import { useRootElements as S } from "./index92.js";
|
|
5
|
+
import "./index57.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "date-fns";
|
|
8
|
+
import { useLingui as R } from "@lingui/react";
|
|
9
|
+
import { usePaymentIntentById as $ } from "./index80.js";
|
|
10
|
+
import { useCreatePayablePaymentLink as v, usePaymentLinkById as B } from "./index457.js";
|
|
11
|
+
import { Modal as j, Box as x, CircularProgress as D } from "@mui/material";
|
|
12
|
+
const G = (r, d, f, i) => {
|
|
5
13
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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;
|
|
17
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);
|
|
18
66
|
}
|
|
19
|
-
}, t);
|
|
20
67
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
+
};
|
|
25
95
|
};
|
|
26
96
|
export {
|
|
27
|
-
|
|
97
|
+
G as usePaymentHandler
|
|
28
98
|
};
|
|
@@ -1,98 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import "@tanstack/react-query";
|
|
7
|
-
import "date-fns";
|
|
8
|
-
import { useLingui as R } from "@lingui/react";
|
|
9
|
-
import { usePaymentIntentById as $ } from "./index80.js";
|
|
10
|
-
import { useCreatePayablePaymentLink as v, usePaymentLinkById as B } from "./index456.js";
|
|
11
|
-
import { Modal as j, Box as x, CircularProgress as D } from "@mui/material";
|
|
12
|
-
const G = (r, d, f, i) => {
|
|
1
|
+
import { useMoniteContext as u } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as l } from "./index121.js";
|
|
3
|
+
import { useLingui as m } from "@lingui/react";
|
|
4
|
+
import { toast as a } from "react-hot-toast";
|
|
5
|
+
const v = (i, n, s, p) => {
|
|
13
6
|
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
}
|
|
7
|
+
api: e,
|
|
8
|
+
queryClient: t
|
|
9
|
+
} = u(), {
|
|
10
|
+
i18n: o
|
|
11
|
+
} = m();
|
|
12
|
+
return e.finops.postApprovalRequestsIdReject.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
approval_request_id: i
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: () => {
|
|
18
|
+
if (e.finops.getApprovalRequests.invalidateQueries(t), a.success(o._("Payable “{document_id}” has been rejected", {
|
|
19
|
+
document_id: p
|
|
20
|
+
})), !!s)
|
|
21
|
+
return n?.(s ?? ""), new Promise((r) => {
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
24
|
+
parameters: {
|
|
25
|
+
path: {
|
|
26
|
+
payable_id: s ?? ""
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, t), e.finops.getPayables.invalidateQueries(t)]).then(() => r());
|
|
30
|
+
}, 500);
|
|
31
|
+
});
|
|
67
32
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
};
|
|
33
|
+
onError: (r) => {
|
|
34
|
+
a.error(l(o, r));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
95
37
|
};
|
|
96
38
|
export {
|
|
97
|
-
|
|
39
|
+
v as useRejectApprovalRequest
|
|
98
40
|
};
|
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
import { useMoniteContext as u } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as
|
|
3
|
-
import { useLingui as
|
|
2
|
+
import { getAPIErrorMessage as m } from "./index121.js";
|
|
3
|
+
import { useLingui as d } from "@lingui/react";
|
|
4
4
|
import { toast as a } from "react-hot-toast";
|
|
5
|
-
const
|
|
5
|
+
const g = (i, p, t, n) => {
|
|
6
6
|
const {
|
|
7
7
|
api: e,
|
|
8
|
-
queryClient:
|
|
8
|
+
queryClient: o
|
|
9
9
|
} = u(), {
|
|
10
|
-
i18n:
|
|
11
|
-
} =
|
|
12
|
-
return e.finops.
|
|
10
|
+
i18n: r
|
|
11
|
+
} = d();
|
|
12
|
+
return e.finops.postApprovalRequestsIdApprove.useMutation({
|
|
13
13
|
path: {
|
|
14
14
|
approval_request_id: i
|
|
15
15
|
}
|
|
16
16
|
}, {
|
|
17
|
-
onSuccess: () => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
onError: (r) => {
|
|
34
|
-
a.error(l(o, r));
|
|
17
|
+
onSuccess: () => (e.finops.getApprovalRequests.invalidateQueries(o), a.success(r._('Payable "{document_id}" has been approved', {
|
|
18
|
+
document_id: n ?? "document id is unknown"
|
|
19
|
+
})), p?.(t ?? ""), new Promise((s) => {
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
22
|
+
parameters: {
|
|
23
|
+
path: {
|
|
24
|
+
payable_id: t ?? ""
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, o), e.finops.getPayables.invalidateQueries(o)]).then(() => s());
|
|
28
|
+
}, 500);
|
|
29
|
+
})),
|
|
30
|
+
onError: (s) => {
|
|
31
|
+
a.error(m(r, s));
|
|
35
32
|
}
|
|
36
33
|
});
|
|
37
34
|
};
|
|
38
35
|
export {
|
|
39
|
-
|
|
36
|
+
g as useApproveApprovalRequest
|
|
40
37
|
};
|