@tesouro/embedded-components-react 0.2.160 → 0.2.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -0
- package/dist/lib/ReceivablesWidget.js +19 -19
- package/dist/lib/WidgetProvider.d.ts +9 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +4 -4
- 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/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index6.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/data-access/dist/index2.js +2 -2
- 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/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +13 -2
- 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 +6 -7
- 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 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1269 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.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/index140.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.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/index155.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +46 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +76 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +54 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +14 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +22 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +80 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +38 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +7 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +221 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +469 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +109 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +512 -444
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +23 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +86 -524
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +57 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +94 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +97 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +18 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +2 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +27 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +110 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +214 -7
- 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 +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +2 -2
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +52 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +29 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +5 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +74 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +32 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +18 -40
- 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 +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +28 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +37 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +58 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +96 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +107 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +2 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +92 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +97 -63
- 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 +213 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +62 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +149 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +8 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +22 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +52 -44
- 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 +27 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +55 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +17 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +72 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +44 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +25 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +122 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +58 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +30 -96
- 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 +110 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +40 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +55 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +25 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +124 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +44 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +113 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +93 -329
- 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 +47 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +193 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +68 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +59 -259
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +31 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +20 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +36 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +31 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +157 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +28 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +78 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +484 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +158 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +22 -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 +15 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +17 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +168 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +134 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +158 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +61 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +64 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +60 -14
- 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 +6 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +57 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +60 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +17 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +40 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +77 -9
- 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 +77 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +42 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +36 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +339 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +302 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +99 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +155 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +264 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +11 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +53 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +33 -15
- 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 +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +125 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +34 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +25 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +12 -43
- 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 +48 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +35 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +65 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +17 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +13 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +67 -2
- 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 +20 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +105 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +7 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +49 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +1 -1
- 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/index405.js +1 -1
- 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 +82 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +265 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +37 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +63 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +137 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +93 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +285 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +66 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +45 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +5 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +10 -11
- 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 +93 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +33 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +56 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +57 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +75 -85
- 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 +67 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +33 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +32 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +85 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +99 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +112 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +20 -35
- 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 +38 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +82 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +52 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +38 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +47 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +69 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +83 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +50 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +52 -16
- 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 +29 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +54 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +67 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +15 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +93 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +75 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +20 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +9 -55
- 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 +39 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +33 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +14 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +49 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +18 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +49 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +20 -48
- 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 +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 +1 -1
- 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/settings-widget/feature/dist/index2.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +119 -119
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +52 -52
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1671 -1613
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index16.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +7 -7
- 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 +14 -14
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/package.json +1 -1
|
@@ -1,36 +1,170 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as D } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Role as j } from "./index452.js";
|
|
3
|
+
import { User as g } from "./index288.js";
|
|
4
|
+
import { useApprovalPolicyScript as B } from "./index405.js";
|
|
5
|
+
import { useApprovalPolicyTrigger as R } from "./index399.js";
|
|
6
|
+
import { getCounterpartName as $ } from "./index7.js";
|
|
7
|
+
import { useMoniteContext as q } from "./index57.js";
|
|
8
|
+
import { useDialog as H } from "./index50.js";
|
|
9
|
+
import { DialogFooter as N } from "./index453.js";
|
|
10
|
+
import { DialogHeader as Q } from "./index454.js";
|
|
11
|
+
import { useLingui as U, Trans as E } from "@lingui/react";
|
|
12
|
+
import { Stack as c, Chip as w, DialogContent as F, Typography as u, Paper as A, Table as x, TableHead as C, TableRow as m, TableCell as o, TableBody as I } from "@mui/material";
|
|
13
|
+
import { toast as M } from "react-hot-toast";
|
|
14
|
+
const le = ({
|
|
15
|
+
approvalPolicy: d,
|
|
16
|
+
setIsEdit: P
|
|
17
|
+
}) => {
|
|
5
18
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
api:
|
|
9
|
-
queryClient:
|
|
10
|
-
} =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
i18n: a
|
|
20
|
+
} = U(), T = H(), {
|
|
21
|
+
api: h,
|
|
22
|
+
queryClient: _
|
|
23
|
+
} = q(), {
|
|
24
|
+
triggers: i,
|
|
25
|
+
getTriggerLabel: k,
|
|
26
|
+
getAmountLabel: S
|
|
27
|
+
} = R({
|
|
28
|
+
approvalPolicy: d
|
|
29
|
+
}), {
|
|
30
|
+
rules: t,
|
|
31
|
+
getRuleLabel: b
|
|
32
|
+
} = B({
|
|
33
|
+
approvalPolicy: d
|
|
34
|
+
}), {
|
|
35
|
+
data: L
|
|
36
|
+
} = h.finops.getTags.useQuery({
|
|
37
|
+
query: {
|
|
38
|
+
id__in: Array.isArray(i?.tags) ? i.tags : []
|
|
14
39
|
}
|
|
15
40
|
}, {
|
|
16
|
-
|
|
17
|
-
|
|
41
|
+
enabled: !!i?.tags?.length
|
|
42
|
+
}), {
|
|
43
|
+
data: W
|
|
44
|
+
} = h.finops.getCounterparts.useQuery({
|
|
45
|
+
query: {
|
|
46
|
+
id__in: Array.isArray(i?.counterpart_id) ? i.counterpart_id : []
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
enabled: !!i?.counterpart_id?.length
|
|
50
|
+
}), y = h.finops.deleteApprovalPoliciesId.useMutation(void 0, {
|
|
51
|
+
onSuccess: async () => {
|
|
52
|
+
await Promise.all([h.finops.getApprovalPolicies.invalidateQueries(_), h.finops.getApprovalPoliciesId.invalidateQueries({
|
|
18
53
|
parameters: {
|
|
19
54
|
path: {
|
|
20
|
-
|
|
55
|
+
approval_policy_id: d.id
|
|
21
56
|
}
|
|
22
57
|
}
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
58
|
+
}, _)]), M.success(a._("Approval policy has been deleted"));
|
|
59
|
+
}
|
|
60
|
+
}), f = Object.keys(i).map((r) => {
|
|
61
|
+
const l = k(r);
|
|
62
|
+
let p;
|
|
63
|
+
switch (r) {
|
|
64
|
+
case "was_created_by_user_id":
|
|
65
|
+
Array.isArray(i[r]) && (p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
66
|
+
flexWrap: "wrap"
|
|
67
|
+
}, children: i[r].map((n) => /* @__PURE__ */ e(g, { userId: n }, n)) }));
|
|
68
|
+
break;
|
|
69
|
+
case "tags":
|
|
70
|
+
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
71
|
+
flexWrap: "wrap"
|
|
72
|
+
}, children: L?.data.map((n) => /* @__PURE__ */ e(w, { label: n.name }, n.id)) });
|
|
73
|
+
break;
|
|
74
|
+
case "counterpart_id":
|
|
75
|
+
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
76
|
+
flexWrap: "wrap"
|
|
77
|
+
}, children: W?.data.map((n) => /* @__PURE__ */ e(w, { label: $(n) }, n.id)) });
|
|
78
|
+
break;
|
|
79
|
+
case "amount":
|
|
80
|
+
p = /* @__PURE__ */ e("p", { children: S(i.amount?.value ?? [], i.amount?.currency ?? "EUR") });
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
p = r;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
label: l,
|
|
88
|
+
value: p
|
|
89
|
+
};
|
|
90
|
+
}), v = t && Object.keys(t)?.map((r) => {
|
|
91
|
+
if (!t[r]) return null;
|
|
92
|
+
switch (r) {
|
|
93
|
+
case "single_user":
|
|
94
|
+
return {
|
|
95
|
+
label: b(r),
|
|
96
|
+
value: /* @__PURE__ */ e(g, { userId: t[r].userId })
|
|
97
|
+
};
|
|
98
|
+
case "users_from_list":
|
|
99
|
+
return {
|
|
100
|
+
label: b(r, t[r].count),
|
|
101
|
+
value: /* @__PURE__ */ e(c, { direction: "column", gap: 1, sx: {
|
|
102
|
+
flexWrap: "wrap"
|
|
103
|
+
}, children: t[r].userIds?.map((l) => /* @__PURE__ */ e(g, { userId: l }, l)) })
|
|
104
|
+
};
|
|
105
|
+
case "roles_from_list":
|
|
106
|
+
return {
|
|
107
|
+
label: b(r),
|
|
108
|
+
value: /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
109
|
+
flexWrap: "wrap"
|
|
110
|
+
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
+
};
|
|
112
|
+
case "approval_chain":
|
|
113
|
+
return {
|
|
114
|
+
label: b(r),
|
|
115
|
+
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
+
};
|
|
31
117
|
}
|
|
32
118
|
});
|
|
119
|
+
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
+
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
+
/* @__PURE__ */ s(F, { children: [
|
|
122
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
+
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
+
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
+
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
+
} }) }),
|
|
128
|
+
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
+
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
+
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
+
] }) }),
|
|
133
|
+
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
+
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
+
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
+
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
137
|
+
] }) }),
|
|
138
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Approval flow") }),
|
|
139
|
+
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: a._("Who needs to approve the document and how:") }),
|
|
140
|
+
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
141
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
142
|
+
/* @__PURE__ */ e(o, { children: a._("Approval type") }),
|
|
143
|
+
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
+
] }) }),
|
|
145
|
+
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
+
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
+
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
+
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
149
|
+
] }) })
|
|
150
|
+
] }),
|
|
151
|
+
/* @__PURE__ */ e(N, { primaryButton: {
|
|
152
|
+
label: a._("Edit"),
|
|
153
|
+
onClick: () => P(!0)
|
|
154
|
+
}, deleteButton: {
|
|
155
|
+
onClick: () => {
|
|
156
|
+
y.mutate({
|
|
157
|
+
path: {
|
|
158
|
+
approval_policy_id: d.id
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
onSuccess: () => T?.onClose?.()
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
isLoading: y.isPending
|
|
165
|
+
} })
|
|
166
|
+
] });
|
|
33
167
|
};
|
|
34
168
|
export {
|
|
35
|
-
|
|
169
|
+
le as ApprovalPolicyView
|
|
36
170
|
};
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTheme as i, Box as n } from "@mui/material";
|
|
3
|
+
const d = ({
|
|
4
|
+
children: a,
|
|
5
|
+
shouldApplyFinanceStyles: r = !1
|
|
6
|
+
}) => {
|
|
7
|
+
const e = i();
|
|
8
|
+
return /* @__PURE__ */ p(n, { sx: {
|
|
9
|
+
background: `linear-gradient(180deg, ${e.palette.primary.light} 0%, ${e.palette.background.paper} 100%)`,
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
gap: 1,
|
|
13
|
+
px: 3,
|
|
14
|
+
py: r ? 3 : 2.5,
|
|
15
|
+
width: "100%",
|
|
16
|
+
minHeight: "auto",
|
|
17
|
+
borderRadius: "16px",
|
|
18
|
+
boxShadow: "0 16px 24px 0 rgba(0, 0, 0, 0.02)",
|
|
19
|
+
border: r ? "none" : `1px solid ${e.palette.divider}`
|
|
20
|
+
}, children: a });
|
|
21
|
+
};
|
|
18
22
|
export {
|
|
19
|
-
|
|
20
|
-
c as RadioGroupItem
|
|
23
|
+
d as FinanceBannerWrapper
|
|
21
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as p } from "./
|
|
2
|
+
import { getAPIErrorMessage as p } from "./index121.js";
|
|
3
3
|
import { useLingui as d } from "@lingui/react";
|
|
4
4
|
import { toast as t } from "react-hot-toast";
|
|
5
5
|
const f = (i, s) => {
|
|
@@ -1,69 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index101.js";
|
|
14
|
-
import { useDebounceCallback as R } from "./index65.js";
|
|
15
|
-
const at = () => {
|
|
16
|
-
const {
|
|
17
|
-
i18n: i
|
|
18
|
-
} = I(), [g, s] = m(null), [a, c] = m(null), x = !!a, [u, N] = m(""), {
|
|
19
|
-
data: C,
|
|
20
|
-
isLoading: M
|
|
21
|
-
} = _(), n = y(a?.name), $ = R((t) => {
|
|
22
|
-
N(t);
|
|
23
|
-
}, 500), D = C?.data?.filter((t) => t.name.toLowerCase().includes(u.toLowerCase()) || t.description && t.description.toLowerCase().includes(u.toLowerCase())) || [], L = w((t) => {
|
|
24
|
-
c(t);
|
|
25
|
-
}, []), o = w(() => {
|
|
26
|
-
c(null);
|
|
27
|
-
}, []), U = w(() => {
|
|
28
|
-
a && n.mutate({
|
|
29
|
-
path: {
|
|
30
|
-
unit_id: a.id
|
|
1
|
+
import { jsxs as n, Fragment as i, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { Dialog as s } from "./index50.js";
|
|
4
|
+
import { FinanceFaqDetails as l } from "./index327.js";
|
|
5
|
+
const d = ({
|
|
6
|
+
children: e
|
|
7
|
+
}) => {
|
|
8
|
+
const [a, r] = t(!1);
|
|
9
|
+
return /* @__PURE__ */ n(i, { children: [
|
|
10
|
+
e({
|
|
11
|
+
openModal: () => {
|
|
12
|
+
r(!0);
|
|
31
13
|
}
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
-
s(null);
|
|
37
|
-
};
|
|
38
|
-
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
-
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
-
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
-
/* @__PURE__ */ r(F, { children: [
|
|
42
|
-
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
-
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
-
] }),
|
|
45
|
-
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
-
] }) }),
|
|
51
|
-
/* @__PURE__ */ r(G, { children: [
|
|
52
|
-
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
-
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
-
isUpdateAllowed: !0,
|
|
58
|
-
isDeleteAllowed: !0
|
|
59
|
-
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
-
] }, t.id))
|
|
61
|
-
] })
|
|
62
|
-
] })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ o(s, { open: a, onClose: () => r(!1), alignDialog: "right", children: /* @__PURE__ */ o(l, {}) })
|
|
65
16
|
] });
|
|
66
17
|
};
|
|
67
18
|
export {
|
|
68
|
-
|
|
19
|
+
d as FinanceFaqWrapper
|
|
69
20
|
};
|
|
@@ -1,55 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Switch as i } from "./index429.js";
|
|
6
|
-
import { twMerge as h } from "tailwind-merge";
|
|
7
|
-
const x = ({
|
|
8
|
-
control: l,
|
|
9
|
-
isDialog: r
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTheme as s, Box as o } from "@mui/material";
|
|
3
|
+
const d = ({
|
|
4
|
+
progress: i
|
|
10
5
|
}) => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-lg",
|
|
24
|
-
// In the dialog the toggles sit in their own grey grouping box, so the
|
|
25
|
-
// inset padding is needed. On the settings page they already sit inside
|
|
26
|
-
// the section card, so the extra padding just indented the body.
|
|
27
|
-
r ? "ttw:bg-zinc-100 ttw:p-4" : ""
|
|
28
|
-
), children: [
|
|
29
|
-
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
30
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
31
|
-
/* @__PURE__ */ e(n, { variant: "body1", className: "ttw:font-medium", children: t._("Display your bank account details on the PDF") }),
|
|
32
|
-
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", children: t._("Shows your bank account number, routing number, and account holder name so that customers can pay using an ACH bank transfer. Should only be used with accounts that have a debit block.") })
|
|
33
|
-
] }),
|
|
34
|
-
/* @__PURE__ */ e(i, { checked: s, onCheckedChange: (o) => {
|
|
35
|
-
d("invoice_bank_display", o, {
|
|
36
|
-
shouldDirty: !0
|
|
37
|
-
});
|
|
38
|
-
}, "aria-label": t._("Display bank display options") })
|
|
39
|
-
] }),
|
|
40
|
-
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
41
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
42
|
-
/* @__PURE__ */ e(n, { variant: "body1", className: "ttw:font-medium", children: t._("Update PDF files for paid invoices") }),
|
|
43
|
-
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", children: t._("PDF invoice files will be regenerated to reflect payments made and any remaining amount due. Once a PDF has been updated, you won't be able to revert it.") }),
|
|
44
|
-
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", className: "ttw:font-medium", children: t._("Once updated, you won't be able to revert the PDFs.") })
|
|
45
|
-
] }),
|
|
46
|
-
/* @__PURE__ */ e(u, { name: "update_paid_invoices", control: l, render: ({
|
|
47
|
-
field: o
|
|
48
|
-
}) => /* @__PURE__ */ e(i, { checked: o.value, onCheckedChange: o.onChange, "aria-label": t._("Enable update paid invoices pdf") }) })
|
|
49
|
-
] })
|
|
50
|
-
] })
|
|
51
|
-
] });
|
|
6
|
+
const r = s();
|
|
7
|
+
return /* @__PURE__ */ e(o, { sx: {
|
|
8
|
+
backgroundColor: r.palette.divider,
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "6px",
|
|
11
|
+
borderRadius: 0.5
|
|
12
|
+
}, children: /* @__PURE__ */ e(o, { sx: {
|
|
13
|
+
backgroundColor: r.palette.primary.main,
|
|
14
|
+
width: `${i}%`,
|
|
15
|
+
height: "6px",
|
|
16
|
+
borderRadius: 0.5
|
|
17
|
+
} }) });
|
|
52
18
|
};
|
|
53
19
|
export {
|
|
54
|
-
|
|
20
|
+
d as FinanceProgressBar
|
|
55
21
|
};
|
|
@@ -1,31 +1,173 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { useGetFinanceOffers as T } from "./index330.js";
|
|
2
|
+
import { useGetFinancingConnectToken as P } from "./index464.js";
|
|
3
|
+
import { useKanmonContext as b } from "./index56.js";
|
|
4
|
+
import { useMoniteContext as h } from "./index57.js";
|
|
5
|
+
import { useLingui as k } from "@lingui/react";
|
|
6
|
+
import { useState as U, useEffect as V } from "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import "./index92.js";
|
|
9
|
+
import "@emotion/react/jsx-runtime";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "@mui/x-data-grid";
|
|
12
|
+
import { useComponentSettings as w } from "./index67.js";
|
|
13
|
+
import "@tanstack/react-query";
|
|
14
|
+
import "date-fns";
|
|
15
|
+
import { useMyEntity as G } from "./index78.js";
|
|
16
|
+
import x from "react-script-hook";
|
|
17
|
+
const W = "https://cdn.sandbox.kanmon.dev/scripts/v2/kanmon-connect.js", L = "https://cdn.kanmon.dev/scripts/v2/kanmon-connect.js", s = {
|
|
18
|
+
INIT: "init",
|
|
19
|
+
IN_PROGRESS: "in_progress",
|
|
20
|
+
PENDING_APPROVAL: "pending_approval",
|
|
21
|
+
NO_OFFERS_AVAILABLE: "no_offers",
|
|
22
|
+
SERVICING: "servicing",
|
|
23
|
+
APPROVED: "approved",
|
|
24
|
+
OFFER_ACCEPTED: "offer_accepted",
|
|
25
|
+
OFFERS_EXPIRED: "offers_expired"
|
|
26
|
+
}, ae = () => {
|
|
5
27
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
apiUrl: _,
|
|
29
|
+
api: i,
|
|
30
|
+
queryClient: c,
|
|
31
|
+
entityId: E
|
|
32
|
+
} = h(), {
|
|
33
|
+
isKanmonInitialized: d,
|
|
34
|
+
toggleKanmon: f,
|
|
35
|
+
handleButtonText: a,
|
|
36
|
+
buttonText: R
|
|
37
|
+
} = b(), {
|
|
38
|
+
onboardingCallbacks: y
|
|
39
|
+
} = w(), {
|
|
40
|
+
i18n: o
|
|
41
|
+
} = k(), l = P(), {
|
|
42
|
+
data: t
|
|
43
|
+
} = T(), {
|
|
44
|
+
isUSEntity: u
|
|
45
|
+
} = G(), I = (() => {
|
|
46
|
+
switch (t?.business_status) {
|
|
47
|
+
case "NEW":
|
|
48
|
+
default:
|
|
49
|
+
return s.INIT;
|
|
50
|
+
case "INPUT_REQUIRED":
|
|
51
|
+
return s.IN_PROGRESS;
|
|
52
|
+
case "ONBOARDED":
|
|
53
|
+
return t?.offers?.length === 0 ? s.PENDING_APPROVAL : t?.offers?.[0]?.status === "NEW" ? s.APPROVED : t?.offers?.[0]?.status === "EXPIRED" ? s.OFFERS_EXPIRED : t?.offers?.[0]?.status === "ACCEPTED" ? s.OFFER_ACCEPTED : s.SERVICING;
|
|
26
54
|
}
|
|
27
|
-
})
|
|
55
|
+
})(), F = (() => {
|
|
56
|
+
try {
|
|
57
|
+
const e = new URL(_);
|
|
58
|
+
return !["api.dev.monite.com", "api.sandbox.monite.com"].includes(e.hostname);
|
|
59
|
+
} catch {
|
|
60
|
+
return !0;
|
|
61
|
+
}
|
|
62
|
+
})() ? L : W, [p] = x({
|
|
63
|
+
src: F
|
|
64
|
+
}), [N, m] = U(!1), g = (e) => {
|
|
65
|
+
const n = {
|
|
66
|
+
type: "receivable",
|
|
67
|
+
status: "NEW",
|
|
68
|
+
invoice_id: e?.platformInvoiceId,
|
|
69
|
+
document_id: e?.platformInvoiceNumber,
|
|
70
|
+
due_date: e?.invoiceDueDate,
|
|
71
|
+
issue_date: e?.invoiceIssuedDate,
|
|
72
|
+
total_amount: e?.invoiceAmountCents,
|
|
73
|
+
currency: "USD",
|
|
74
|
+
payer_type: e?.payorType,
|
|
75
|
+
payer_business_name: e?.payorBusinessName,
|
|
76
|
+
payer_first_name: e?.payorFirstName,
|
|
77
|
+
payer_last_name: e?.payorLastName,
|
|
78
|
+
requested_amount: e?.amountRequestedForFinancingCents,
|
|
79
|
+
principal_amount: e?.principalAmountCents,
|
|
80
|
+
repayment_amount: e?.repaymentAmountCents,
|
|
81
|
+
advance_amount: e?.invoiceAdvanceAmountCents,
|
|
82
|
+
advance_rate_percentage: e?.advanceRatePercentage * 100,
|
|
83
|
+
fee_amount: e?.feeAmountCents,
|
|
84
|
+
fee_percentage: e?.transactionFeePercentage * 100,
|
|
85
|
+
repayment_schedule: {
|
|
86
|
+
repayment_date: e?.repaymentSchedule?.schedule?.[0]?.repaymentDate,
|
|
87
|
+
repayment_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentAmountCents,
|
|
88
|
+
repayment_fee_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentFeeAmountCents,
|
|
89
|
+
repayment_principal_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentPrincipalAmountCents
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
i.finops.getFinancingInvoices.setQueryData(i.finops.getFinancingInvoices.getQueryKey({
|
|
93
|
+
query: {
|
|
94
|
+
type: "receivable",
|
|
95
|
+
invoice_id: e?.platformInvoiceId
|
|
96
|
+
}
|
|
97
|
+
}), (r) => ({
|
|
98
|
+
...r,
|
|
99
|
+
data: [n]
|
|
100
|
+
}), c), i.finops.getFinancingInvoices.setQueryData(i.finops.getFinancingInvoices.getQueryKey({
|
|
101
|
+
query: {}
|
|
102
|
+
}), (r) => {
|
|
103
|
+
const S = r?.data ? r.data : [];
|
|
104
|
+
return {
|
|
105
|
+
...r,
|
|
106
|
+
data: [n, ...S]
|
|
107
|
+
};
|
|
108
|
+
}, c);
|
|
109
|
+
}, C = ({
|
|
110
|
+
connectToken: e
|
|
111
|
+
}) => {
|
|
112
|
+
window?.KANMON_CONNECT?.start({
|
|
113
|
+
connectToken: e,
|
|
114
|
+
onEvent: (n) => {
|
|
115
|
+
if (!(n.eventType !== "USER_STATE_CHANGED" && n.eventType !== "USER_CONFIRMED_INVOICE"))
|
|
116
|
+
if (n.eventType === "USER_CONFIRMED_INVOICE")
|
|
117
|
+
g(n.data.invoice);
|
|
118
|
+
else {
|
|
119
|
+
switch (n.data.userState) {
|
|
120
|
+
case "START_FLOW":
|
|
121
|
+
a(o._("Apply for financing"));
|
|
122
|
+
break;
|
|
123
|
+
case "USER_INPUT_REQUIRED":
|
|
124
|
+
n.data.section === "OFFER" ? a(o._("Review terms and sign")) : a(o._("Resume application"));
|
|
125
|
+
break;
|
|
126
|
+
case "WAITING_FOR_OFFERS":
|
|
127
|
+
a(""), (t?.business_status === "INPUT_REQUIRED" || t?.business_status === "NEW") && y.onWorkingCapitalOnboardingComplete?.(E);
|
|
128
|
+
break;
|
|
129
|
+
case "OFFERS_EXPIRED":
|
|
130
|
+
case "NO_OFFERS_EXTENDED":
|
|
131
|
+
a("");
|
|
132
|
+
break;
|
|
133
|
+
case "SERVICING":
|
|
134
|
+
a(o._("Financing menu")), t?.business_status === "ONBOARDED" && t?.offers?.[0]?.status === "NEW" && window.localStorage.setItem("isFinanceTabNew", "true");
|
|
135
|
+
break;
|
|
136
|
+
case "VIEW_OFFERS":
|
|
137
|
+
case "OFFER_ACCEPTED":
|
|
138
|
+
a(o._("Review terms and sign"));
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
i.finops.getFinancingOffers.invalidateQueries(c);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
V(() => {
|
|
147
|
+
!d && !p && u && (async () => {
|
|
148
|
+
m(!0);
|
|
149
|
+
try {
|
|
150
|
+
const e = await l.mutateAsync();
|
|
151
|
+
C({
|
|
152
|
+
connectToken: e.connect_token
|
|
153
|
+
}), f(!0);
|
|
154
|
+
} catch {
|
|
155
|
+
} finally {
|
|
156
|
+
m(!1);
|
|
157
|
+
}
|
|
158
|
+
})();
|
|
159
|
+
}, [p, u]);
|
|
160
|
+
const O = p || N, v = u, A = t?.business_status === "ONBOARDED" && t?.offers?.[0]?.status === "CURRENT", D = t?.offers?.[0];
|
|
161
|
+
return {
|
|
162
|
+
buttonText: R,
|
|
163
|
+
applicationState: I,
|
|
164
|
+
offer: D,
|
|
165
|
+
isLoading: O,
|
|
166
|
+
isEnabled: v,
|
|
167
|
+
isServicing: A
|
|
168
|
+
};
|
|
28
169
|
};
|
|
29
170
|
export {
|
|
30
|
-
|
|
171
|
+
s as FinancialApplicationState,
|
|
172
|
+
ae as useFinancing
|
|
31
173
|
};
|