@tesouro/embedded-components-react 0.2.324 → 0.2.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -25
- package/dist/experimental/WidgetSuite.d.ts +5 -5
- package/dist/experimental/index.d.ts +5 -5
- package/dist/index.css +12 -0
- package/dist/index.d.ts +21 -41
- package/dist/lib/AcceptDisclosuresWidget.d.ts +14 -34
- package/dist/lib/BalancesWidget.d.ts +5 -5
- package/dist/lib/BankAccountOnboardingWidget.d.ts +5 -5
- package/dist/lib/BankAccountsWidget.d.ts +5 -5
- package/dist/lib/BillPayWidget.d.ts +5 -5
- package/dist/lib/CardDetailsWidget.d.ts +5 -5
- package/dist/lib/CardsWidget.d.ts +5 -5
- package/dist/lib/ChartOfAccountsWidget.d.ts +5 -5
- package/dist/lib/CounterpartsWidget.d.ts +5 -5
- package/dist/lib/CreateCardWidget.d.ts +5 -5
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +5 -5
- package/dist/lib/ExpenseManagementWidget.d.ts +5 -5
- package/dist/lib/ExpenseRequirementsWidget.d.ts +5 -5
- package/dist/lib/HelpWidget.d.ts +5 -5
- package/dist/lib/InsightsWidget.d.ts +5 -5
- package/dist/lib/InvoicingWidget.d.ts +5 -5
- package/dist/lib/LinkedAccountsWidget.d.ts +5 -5
- package/dist/lib/ProductsWidget.d.ts +5 -5
- package/dist/lib/ProfileWidget.d.ts +5 -5
- package/dist/lib/ReceiptMatchWidget.d.ts +5 -5
- package/dist/lib/ReceivablesWidget.d.ts +5 -5
- package/dist/lib/SettingsWidget.d.ts +5 -5
- package/dist/lib/TagsWidget.d.ts +5 -5
- package/dist/lib/TeamWidget.d.ts +5 -5
- package/dist/lib/TransfersWidget.d.ts +5 -5
- package/dist/lib/WidgetProvider.d.ts +12 -12
- package/dist/lib/WidgetProviderPublic.d.ts +5 -5
- package/dist/lib/monite-sdk.d.ts +8 -0
- package/dist/lib/monite-sdk.js +55 -55
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +57 -68
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +6 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +109 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +35 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +8 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +73 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +19 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +441 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +41 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +76 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +62 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +28 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +39 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +2 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +48 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +120 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +5 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +184 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +206 -289
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +162 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +58 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +60 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +296 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +6 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +6 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +69 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +24 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +76 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +87 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +26 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +3 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +54 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +34 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +101 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +34 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +74 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +7 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +56 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +39 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +8 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +21 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +62 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +57 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +169 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +0 -598
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +1 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +598 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +166 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +16 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +90 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +10 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +10 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +75 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +127 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +11 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +53 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +62 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +120 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +21 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +6 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +52 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +70 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +26 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +180 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +1 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +29 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +3 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +61 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +29 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +31 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +44 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +8 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +14 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +5 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +117 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +197 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +7 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +9 -422
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +5 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +420 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +88 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +15 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +190 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +99 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +42 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +157 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +10 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +61 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +44 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +51 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +79 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +23 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +41 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +345 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +159 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +35 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +34 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +4 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +103 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +187 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +132 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +211 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +11 -240
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +27 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +1 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +140 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +163 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +26 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +8 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +37 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +153 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +210 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +40 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +1 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +77 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +185 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +166 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +12 -310
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +9 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +5 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +317 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +90 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +191 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +29 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +82 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +133 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +37 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +58 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +138 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +549 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +137 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +143 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +36 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +64 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +144 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +57 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +84 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +23 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +97 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +43 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +13 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +14 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +92 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +33 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +45 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +66 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +23 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +173 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +142 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +124 -428
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +78 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +246 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +6 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +435 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +21 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +17 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +52 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +46 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +143 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +114 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +40 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +32 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +19 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +19 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +171 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +137 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +113 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +42 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +13 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +26 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +81 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +81 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +49 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +34 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +131 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +782 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +90 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +2 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +25 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +14 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +164 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +207 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +84 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +156 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +99 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +37 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +13 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +180 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +40 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +75 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +16 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +11 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +130 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +4 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +4 -205
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +213 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +11 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +32 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +170 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +193 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +91 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +60 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +90 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +43 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +79 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +85 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +17 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +13 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +5 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +6 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +69 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +111 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +80 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +141 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +28 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +91 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +3 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +68 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +66 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +27 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +33 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +41 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +79 -80
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js +1 -1
- package/package.json +1 -1
|
@@ -1,62 +1,447 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index47.js";
|
|
4
|
+
import { useCounterpartById as n } from "./index48.js";
|
|
5
|
+
import { getCounterpartName as r } from "./index53.js";
|
|
6
|
+
import { useCurrencies as ee } from "./index63.js";
|
|
7
|
+
import { Button as i } from "./index56.js";
|
|
8
|
+
import { useGetPayablesAnalytics as a } from "./index113.js";
|
|
9
|
+
import { MoniteScopedProviders as o } from "./index209.js";
|
|
10
|
+
import { Sheet as s, SheetClose as te, SheetContent as c, SheetDescription as ne, SheetHeader as re, SheetTitle as ie } from "./index50.js";
|
|
11
|
+
import { LoadingSpinner as ae } from "./index51.js";
|
|
12
|
+
import "./index52.js";
|
|
13
|
+
import { Skeleton as l } from "./index54.js";
|
|
14
|
+
import { DropdownMenu as oe, DropdownMenuContent as se, DropdownMenuItem as ce, DropdownMenuTrigger as le } from "./index55.js";
|
|
15
|
+
import { DeleteCounterpartModal as ue } from "./index61.js";
|
|
16
|
+
import { Typography as u } from "./index62.js";
|
|
17
|
+
import { Separator as de } from "./index64.js";
|
|
18
|
+
import { CounterpartContactDetailLine as d } from "./index65.js";
|
|
19
|
+
import { useDeleteCounterpartBank as fe } from "./index75.js";
|
|
20
|
+
import { useCounterpartAddressesById as pe } from "./index82.js";
|
|
21
|
+
import { useGetCounterpartPayables as me } from "./index83.js";
|
|
22
|
+
import "./index86.js";
|
|
23
|
+
import { CounterpartBankSection as he } from "./index98.js";
|
|
24
|
+
import { CounterpartAddressSection as ge } from "./index108.js";
|
|
25
|
+
import { EditCounterpart as _e } from "./index111.js";
|
|
26
|
+
import { useUserPermissions as ve } from "./index112.js";
|
|
27
|
+
import { AR_DEFAULT_STATUSES as ye } from "./index140.js";
|
|
28
|
+
import { useGetReceivables as be } from "./index156.js";
|
|
29
|
+
import { useGetReceivablesAnalytics as f } from "./index170.js";
|
|
30
|
+
import "./index194.js";
|
|
31
|
+
import { isBillOverdue as xe } from "./index196.js";
|
|
32
|
+
import { PayableStatusChip as p } from "./index197.js";
|
|
33
|
+
import { useCounterpartsBankAccountsList as Se } from "./index198.js";
|
|
34
|
+
import { InvoiceStatusChip as Ce } from "./index233.js";
|
|
35
|
+
import { NotFound as we } from "./index234.js";
|
|
36
|
+
import { Fragment as Te, useCallback as Ee, useState as m } from "react";
|
|
37
|
+
import { Eye as De, EyeOff as Oe, MoreVerticalIcon as ke, Trash2 as Ae, X as je } from "lucide-react";
|
|
38
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
39
|
+
import { useLingui as Me } from "@lingui/react";
|
|
8
40
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
var v = (e) => /* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(y, { ...e }) }), y = ({ counterpartId: o, customerType: v, open: y, isEditMode: Ne = !1, showActionsMenu: b = !0, onClose: x, onPayVendor: S, onCreateInvoiceForCustomer: C, onViewVendorBills: w, onViewCustomerInvoices: T }) => {
|
|
42
|
+
let { i18n: E } = Me(), { locale: D } = t(), O = ve(), { formatCurrencyToDisplay: k } = ee(), [A, j] = m(!1), [M, N] = m(!1), [P, F] = m(Ne), I = v === "vendor", Pe = I && !!S && O.has(e.PayableWriteOrg), Fe = !I && !!C && O.has(e.InvoiceWriteOrg), Ie = I && !!w && O.has(e.PayableReadOrg), Le = !I && !!T && O.has(e.InvoiceReadOrg), { data: L, isLoading: R, isFetching: Re } = n(o), { data: ze, isLoading: Be } = pe(o), { data: Ve, isLoading: He } = Se(o), { mutate: Ue } = fe(o), { data: We, isLoading: z } = a({
|
|
43
|
+
dimension: "counterpart_id",
|
|
44
|
+
metric: "total_amount",
|
|
45
|
+
aggregation_function: "summary",
|
|
46
|
+
status__in: [
|
|
47
|
+
"new",
|
|
48
|
+
"approve_in_progress",
|
|
49
|
+
"waiting_to_be_paid",
|
|
50
|
+
"partially_paid",
|
|
51
|
+
"paid"
|
|
52
|
+
],
|
|
53
|
+
counterpart_id__in: [o]
|
|
54
|
+
}, I), { data: Ge, isLoading: B } = a({
|
|
55
|
+
dimension: "counterpart_id",
|
|
56
|
+
metric: "amount_due",
|
|
57
|
+
aggregation_function: "summary",
|
|
58
|
+
status__in: [
|
|
59
|
+
"new",
|
|
60
|
+
"approve_in_progress",
|
|
61
|
+
"waiting_to_be_paid",
|
|
62
|
+
"partially_paid"
|
|
63
|
+
],
|
|
64
|
+
counterpart_id__in: [o]
|
|
65
|
+
}, I), { data: Ke, isLoading: qe } = a({
|
|
66
|
+
dimension: "counterpart_id",
|
|
67
|
+
metric: "total_amount",
|
|
68
|
+
aggregation_function: "summary",
|
|
69
|
+
status__in: ["rejected"],
|
|
70
|
+
counterpart_id__in: [o]
|
|
71
|
+
}, I), { data: Je } = me({
|
|
72
|
+
counterpart_id: o,
|
|
73
|
+
sort: "created_at",
|
|
74
|
+
order: "desc",
|
|
75
|
+
limit: 4
|
|
76
|
+
}, I), { data: Ye, isLoading: V } = f({
|
|
77
|
+
dimension: "counterpart_id",
|
|
78
|
+
metric: "total_amount",
|
|
79
|
+
aggregation_function: "summary",
|
|
80
|
+
type: "invoice",
|
|
81
|
+
status__in: [
|
|
82
|
+
"issued",
|
|
83
|
+
"overdue",
|
|
84
|
+
"partially_paid",
|
|
85
|
+
"paid"
|
|
86
|
+
],
|
|
87
|
+
counterpart_id__in: [o]
|
|
88
|
+
}, !I), { data: Xe, isLoading: H } = f({
|
|
89
|
+
dimension: "counterpart_id",
|
|
90
|
+
metric: "amount_due",
|
|
91
|
+
aggregation_function: "summary",
|
|
92
|
+
type: "invoice",
|
|
93
|
+
status__in: [
|
|
94
|
+
"issued",
|
|
95
|
+
"overdue",
|
|
96
|
+
"partially_paid"
|
|
97
|
+
],
|
|
98
|
+
counterpart_id__in: [o]
|
|
99
|
+
}, !I), { data: Ze } = be({
|
|
100
|
+
type: "invoice",
|
|
101
|
+
status__in: [...ye],
|
|
102
|
+
counterpart_id: o,
|
|
103
|
+
sort: "created_at",
|
|
104
|
+
order: "desc",
|
|
105
|
+
limit: 4
|
|
106
|
+
}, !I), U = O.has(e.CounterpartWriteOrg), W = O.has(e.CounterpartWriteOrg), Qe = Ee(() => L && "individual" in L ? [L.individual?.email ?? "-", L.individual?.phone ?? "-"] : [L?.organization?.email ?? "-", L?.organization?.phone ?? "-"], [L]), G = Ve?.data?.[0], K = I ? Ge?.data?.[0]?.metric_value ?? 0 : Xe?.data?.[0]?.metric_value ?? 0, q = I ? We?.data?.[0]?.metric_value ?? 0 : Ye?.data?.[0]?.metric_value ?? 0, $e = q - K, et = I ? B : H, tt = I ? z : V, nt = I ? B || z : V || H, rt = I ? Ke?.data?.[0]?.metric_value ?? 0 : 0, it = I ? qe : !1, J = I ? Je?.data : Ze?.data, Y = ze?.data?.[0], X = Y?.city || "", Z = Y?.state || "", Q = Y?.postal_code || "", $ = L?.tax_id, at = $ ? M ? $ : $.slice(0, 3).padEnd($.length, "•") : "-", [ot, st] = Qe();
|
|
107
|
+
return !R && !Re && !L ? /* @__PURE__ */ g(s, {
|
|
108
|
+
open: y,
|
|
109
|
+
onOpenChange: x,
|
|
110
|
+
children: /* @__PURE__ */ g(c, {
|
|
111
|
+
showCloseButton: !0,
|
|
112
|
+
className: "ttw:gap-0",
|
|
113
|
+
children: /* @__PURE__ */ g("div", {
|
|
114
|
+
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
115
|
+
children: /* @__PURE__ */ g(we, {
|
|
116
|
+
title: E._("{customerType} not found", { customerType: v === "vendor" ? "Vendor" : "Customer" }),
|
|
117
|
+
description: E._("Something went wrong while fetching this {customerType}", { customerType: v })
|
|
118
|
+
})
|
|
30
119
|
})
|
|
31
|
-
]
|
|
32
|
-
})
|
|
33
|
-
}), f = ({ onAction: t, actionButtonLabel: o, actionOptions: d = [], type: f }) => {
|
|
34
|
-
if (!o) return null;
|
|
35
|
-
let p = (e) => {
|
|
36
|
-
t && t(e);
|
|
37
|
-
};
|
|
38
|
-
return d.length > 1 ? /* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(a, {
|
|
39
|
-
asChild: !0,
|
|
40
|
-
children: /* @__PURE__ */ u(e, {
|
|
41
|
-
type: "button",
|
|
42
|
-
children: [
|
|
43
|
-
f === "error" ? /* @__PURE__ */ l(c, {}) : void 0,
|
|
44
|
-
o,
|
|
45
|
-
/* @__PURE__ */ l(s, {})
|
|
46
|
-
]
|
|
47
120
|
})
|
|
48
|
-
}), /* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
121
|
+
}) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(s, {
|
|
122
|
+
open: y,
|
|
123
|
+
onOpenChange: x,
|
|
124
|
+
children: /* @__PURE__ */ _(c, {
|
|
125
|
+
showCloseButton: !1,
|
|
126
|
+
className: "ttw:gap-0",
|
|
127
|
+
children: [/* @__PURE__ */ _(re, {
|
|
128
|
+
className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
|
|
129
|
+
children: [/* @__PURE__ */ _("div", {
|
|
130
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
|
|
131
|
+
children: [/* @__PURE__ */ g(ie, {
|
|
132
|
+
asChild: R,
|
|
133
|
+
className: "ttw:text-2xl",
|
|
134
|
+
children: R ? /* @__PURE__ */ g(l, { className: "ttw:w-40" }) : r(L)
|
|
135
|
+
}), /* @__PURE__ */ g(ne, {
|
|
136
|
+
asChild: R,
|
|
137
|
+
children: R ? /* @__PURE__ */ g(l, { className: "ttw:w-60" }) : E._("{customerType} · Added {createdAt}", {
|
|
138
|
+
createdAt: E.date(L?.created_at, D.dateFormat),
|
|
139
|
+
customerType: I ? "Vendor" : "Customer"
|
|
140
|
+
})
|
|
141
|
+
})]
|
|
142
|
+
}), /* @__PURE__ */ _("div", {
|
|
143
|
+
className: "ttw:flex ttw:gap-2",
|
|
144
|
+
children: [b && W && /* @__PURE__ */ _(oe, { children: [/* @__PURE__ */ g(le, {
|
|
145
|
+
asChild: !0,
|
|
146
|
+
children: /* @__PURE__ */ g(i, {
|
|
147
|
+
type: "button",
|
|
148
|
+
variant: "outline",
|
|
149
|
+
className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
|
|
150
|
+
children: /* @__PURE__ */ g(ke, {})
|
|
151
|
+
})
|
|
152
|
+
}), /* @__PURE__ */ g(se, {
|
|
153
|
+
align: "end",
|
|
154
|
+
children: /* @__PURE__ */ _(ce, {
|
|
155
|
+
onClick: () => j(!0),
|
|
156
|
+
variant: "destructive",
|
|
157
|
+
children: [/* @__PURE__ */ g(Ae, {}), E._("Delete {customerType}", { customerType: v })]
|
|
158
|
+
})
|
|
159
|
+
})] }), /* @__PURE__ */ g(te, {
|
|
160
|
+
className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
|
|
161
|
+
children: /* @__PURE__ */ g(je, { className: "ttw:size-4" })
|
|
162
|
+
})]
|
|
163
|
+
})]
|
|
164
|
+
}), R ? /* @__PURE__ */ g("div", {
|
|
165
|
+
className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
|
|
166
|
+
children: /* @__PURE__ */ g(ae, {})
|
|
167
|
+
}) : /* @__PURE__ */ _("main", {
|
|
168
|
+
className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ _("div", {
|
|
171
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:pb-3",
|
|
172
|
+
children: [/* @__PURE__ */ _("div", {
|
|
173
|
+
className: "ttw:p-5 ttw:flex ttw:flex-col ttw:gap-4 ttw:bg-muted ttw:rounded-xl",
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ g(u, {
|
|
176
|
+
variant: "body2",
|
|
177
|
+
color: "muted",
|
|
178
|
+
children: E._("Amount due")
|
|
179
|
+
}),
|
|
180
|
+
et ? /* @__PURE__ */ g(l, { className: "ttw:w-20" }) : /* @__PURE__ */ g(u, {
|
|
181
|
+
variant: "h1",
|
|
182
|
+
className: "ttw:font-semibold",
|
|
183
|
+
children: k(K, "USD")
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ _("div", {
|
|
186
|
+
className: "ttw:flex ttw:gap-8",
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ _("div", {
|
|
189
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
190
|
+
children: [/* @__PURE__ */ g(u, {
|
|
191
|
+
variant: "caption",
|
|
192
|
+
color: "muted",
|
|
193
|
+
children: E._("Billed")
|
|
194
|
+
}), tt ? /* @__PURE__ */ g(l, { className: "ttw:w-20" }) : /* @__PURE__ */ g(u, {
|
|
195
|
+
variant: "body1",
|
|
196
|
+
className: "ttw:font-semibold",
|
|
197
|
+
children: k(q, "USD")
|
|
198
|
+
})]
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ _("div", {
|
|
201
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
202
|
+
children: [/* @__PURE__ */ g(u, {
|
|
203
|
+
variant: "caption",
|
|
204
|
+
color: "muted",
|
|
205
|
+
children: I ? E._("Paid") : E._("Received")
|
|
206
|
+
}), nt ? /* @__PURE__ */ g(l, { className: "ttw:w-20" }) : /* @__PURE__ */ g(u, {
|
|
207
|
+
variant: "body1",
|
|
208
|
+
className: "ttw:text-green-600 ttw:font-semibold",
|
|
209
|
+
children: k($e, "USD")
|
|
210
|
+
})]
|
|
211
|
+
}),
|
|
212
|
+
I && /* @__PURE__ */ _("div", {
|
|
213
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
214
|
+
children: [/* @__PURE__ */ g(u, {
|
|
215
|
+
variant: "caption",
|
|
216
|
+
color: "muted",
|
|
217
|
+
children: E._("Rejected")
|
|
218
|
+
}), it ? /* @__PURE__ */ g(l, { className: "ttw:w-20" }) : /* @__PURE__ */ g(u, {
|
|
219
|
+
variant: "body1",
|
|
220
|
+
className: "ttw:font-semibold",
|
|
221
|
+
children: k(rt, "USD")
|
|
222
|
+
})]
|
|
223
|
+
})
|
|
224
|
+
]
|
|
225
|
+
})
|
|
226
|
+
]
|
|
227
|
+
}), /* @__PURE__ */ g(i, {
|
|
228
|
+
className: "ttw:px-6 ttw:py-2 ttw:w-60",
|
|
229
|
+
disabled: I ? !Pe : !Fe,
|
|
230
|
+
onClick: () => I ? S?.(o) : C?.(o),
|
|
231
|
+
children: I ? E._("Send a payment") : E._("Issue an invoice")
|
|
232
|
+
})]
|
|
233
|
+
}),
|
|
234
|
+
J && J.length > 0 && /* @__PURE__ */ _("div", {
|
|
235
|
+
className: "ttw:border-t ttw:border-border ttw:flex ttw:flex-col",
|
|
236
|
+
children: [/* @__PURE__ */ _("div", {
|
|
237
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7",
|
|
238
|
+
children: [/* @__PURE__ */ _("div", {
|
|
239
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
240
|
+
children: [/* @__PURE__ */ g(u, {
|
|
241
|
+
variant: "body1",
|
|
242
|
+
className: "ttw:font-medium",
|
|
243
|
+
children: E._("Recent {document}", { document: I ? "bills" : "invoices" })
|
|
244
|
+
}), /* @__PURE__ */ g(u, {
|
|
245
|
+
variant: "body2",
|
|
246
|
+
color: "muted",
|
|
247
|
+
children: I ? E._("Sorted by issue date") : E._("Latest activity")
|
|
248
|
+
})]
|
|
249
|
+
}), (Ie || Le) && /* @__PURE__ */ g(i, {
|
|
250
|
+
variant: "ghost",
|
|
251
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
252
|
+
onClick: () => I ? w?.(o) : T?.(o),
|
|
253
|
+
children: E._("View all")
|
|
254
|
+
})]
|
|
255
|
+
}), /* @__PURE__ */ g("div", {
|
|
256
|
+
className: "ttw:border ttw:border-border ttw:rounded-lg ttw:p-4 ttw:flex ttw:flex-col ttw:gap-3",
|
|
257
|
+
children: J.map((e, t) => {
|
|
258
|
+
let n = I ? xe(e?.status, e?.due_date) : void 0;
|
|
259
|
+
return /* @__PURE__ */ _(Te, { children: [/* @__PURE__ */ _("div", {
|
|
260
|
+
className: "ttw:flex ttw:items-start ttw:justify-between",
|
|
261
|
+
children: [/* @__PURE__ */ _("div", {
|
|
262
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
263
|
+
children: [/* @__PURE__ */ g(u, {
|
|
264
|
+
variant: "h5",
|
|
265
|
+
className: "ttw:font-medium",
|
|
266
|
+
children: k(e.total_amount ?? 0, e.currency ?? "USD")
|
|
267
|
+
}), /* @__PURE__ */ g(u, {
|
|
268
|
+
variant: "body2",
|
|
269
|
+
color: n ? "destructive" : "muted",
|
|
270
|
+
children: E.date("issued_at" in e ? e.issued_at : e.created_at, D.dateFormat)
|
|
271
|
+
})]
|
|
272
|
+
}), I ? /* @__PURE__ */ _("div", {
|
|
273
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
274
|
+
children: [n && /* @__PURE__ */ g(p, {
|
|
275
|
+
status: e.status,
|
|
276
|
+
dueDate: "due_date" in e ? e.due_date : void 0,
|
|
277
|
+
showOverdueBadge: !0
|
|
278
|
+
}), /* @__PURE__ */ g(p, {
|
|
279
|
+
status: e.status,
|
|
280
|
+
dueDate: "due_date" in e ? e.due_date : void 0
|
|
281
|
+
})]
|
|
282
|
+
}) : /* @__PURE__ */ g(Ce, { status: e.status })]
|
|
283
|
+
}), t < J.length - 1 && /* @__PURE__ */ g(de, {})] }, e.id);
|
|
284
|
+
})
|
|
285
|
+
})]
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ _("div", {
|
|
288
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
289
|
+
children: [/* @__PURE__ */ _("div", {
|
|
290
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
291
|
+
children: [/* @__PURE__ */ _("div", {
|
|
292
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
293
|
+
children: [/* @__PURE__ */ g(u, {
|
|
294
|
+
variant: "body1",
|
|
295
|
+
className: "ttw:font-medium",
|
|
296
|
+
children: E._("{customerType} details", { customerType: I ? "Vendor" : "Customer" })
|
|
297
|
+
}), /* @__PURE__ */ g(u, {
|
|
298
|
+
variant: "body2",
|
|
299
|
+
color: "muted",
|
|
300
|
+
children: I ? E._("Who are you paying?") : E._("Who are you billing?")
|
|
301
|
+
})]
|
|
302
|
+
}), !P && U && /* @__PURE__ */ g(i, {
|
|
303
|
+
type: "button",
|
|
304
|
+
variant: "ghost",
|
|
305
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
306
|
+
onClick: () => F(!0),
|
|
307
|
+
children: E._("Edit")
|
|
308
|
+
})]
|
|
309
|
+
}), P && L ? /* @__PURE__ */ g(_e, {
|
|
310
|
+
customerType: v,
|
|
311
|
+
counterpart: L,
|
|
312
|
+
counterpartAddress: Y,
|
|
313
|
+
handleClose: () => F(!1),
|
|
314
|
+
onUpdate: () => F(!1)
|
|
315
|
+
}) : /* @__PURE__ */ _("ul", {
|
|
316
|
+
className: "ttw:list-none",
|
|
317
|
+
children: [
|
|
318
|
+
/* @__PURE__ */ g(d, {
|
|
319
|
+
label: E._("Type"),
|
|
320
|
+
value: L?.type === "individual" ? "Person" : "Business"
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ g(d, {
|
|
323
|
+
label: E._("Name"),
|
|
324
|
+
value: r(L)
|
|
325
|
+
}),
|
|
326
|
+
/* @__PURE__ */ g(d, {
|
|
327
|
+
label: E._("Email"),
|
|
328
|
+
value: ot
|
|
329
|
+
}),
|
|
330
|
+
!I && /* @__PURE__ */ g(d, {
|
|
331
|
+
label: E._("Payment reminders"),
|
|
332
|
+
value: L?.reminders_enabled ? "Enabled" : "Disabled"
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ g(d, {
|
|
335
|
+
label: E._("Phone"),
|
|
336
|
+
value: st
|
|
337
|
+
}),
|
|
338
|
+
/* @__PURE__ */ g(d, {
|
|
339
|
+
label: E._("Tax ID / {documentType}", { documentType: L?.type === "individual" ? "SSN" : "EIN" }),
|
|
340
|
+
value: /* @__PURE__ */ _("div", {
|
|
341
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
342
|
+
children: [/* @__PURE__ */ _("div", {
|
|
343
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
344
|
+
children: [/* @__PURE__ */ g(u, {
|
|
345
|
+
variant: "body2",
|
|
346
|
+
className: "ttw:font-medium",
|
|
347
|
+
children: at
|
|
348
|
+
}), $ && /* @__PURE__ */ g(i, {
|
|
349
|
+
onClick: () => N((e) => !e),
|
|
350
|
+
type: "button",
|
|
351
|
+
size: "sm",
|
|
352
|
+
variant: "outline",
|
|
353
|
+
className: "ttw:border-border ttw:h-5 ttw:p-2",
|
|
354
|
+
children: M ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Oe, {}), E._("Hide")] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(De, {}), E._("Show")] })
|
|
355
|
+
})]
|
|
356
|
+
}), /* @__PURE__ */ g(u, {
|
|
357
|
+
variant: "body2",
|
|
358
|
+
color: "muted",
|
|
359
|
+
children: I ? E._("Required only if you'll file a 1099 IRS form for this vendor at year-end.") : E._("Required only if you'll issue a 1099 IRS form at year-end.")
|
|
360
|
+
})]
|
|
361
|
+
})
|
|
362
|
+
}),
|
|
363
|
+
I && /* @__PURE__ */ g(d, {
|
|
364
|
+
label: E._("Address"),
|
|
365
|
+
isLast: !0,
|
|
366
|
+
value: /* @__PURE__ */ g("div", {
|
|
367
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
368
|
+
children: Be ? /* @__PURE__ */ g(l, { className: "ttw:w-20" }) : /* @__PURE__ */ g(h, { children: Y ? /* @__PURE__ */ _(h, { children: [
|
|
369
|
+
/* @__PURE__ */ g(u, {
|
|
370
|
+
variant: "body2",
|
|
371
|
+
className: "ttw:font-medium",
|
|
372
|
+
children: Y?.line1
|
|
373
|
+
}),
|
|
374
|
+
Y?.line2 && /* @__PURE__ */ g(u, {
|
|
375
|
+
variant: "body2",
|
|
376
|
+
className: "ttw:font-medium",
|
|
377
|
+
children: Y.line2
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ g(u, {
|
|
380
|
+
variant: "body2",
|
|
381
|
+
className: "ttw:font-medium",
|
|
382
|
+
children: `${X && X}${X && (Z || Q) && ","} ${Z && Z} ${Q && Q}`
|
|
383
|
+
}),
|
|
384
|
+
/* @__PURE__ */ g(u, {
|
|
385
|
+
variant: "body2",
|
|
386
|
+
className: "ttw:font-medium",
|
|
387
|
+
children: Y?.country
|
|
388
|
+
})
|
|
389
|
+
] }) : /* @__PURE__ */ g(u, {
|
|
390
|
+
variant: "body2",
|
|
391
|
+
className: "ttw:font-medium",
|
|
392
|
+
children: "-"
|
|
393
|
+
}) })
|
|
394
|
+
})
|
|
395
|
+
})
|
|
396
|
+
]
|
|
397
|
+
})]
|
|
398
|
+
}),
|
|
399
|
+
!I && /* @__PURE__ */ g(ge, {
|
|
400
|
+
isStandalone: !0,
|
|
401
|
+
isLoading: R,
|
|
402
|
+
counterpartAddress: Y,
|
|
403
|
+
customerType: v,
|
|
404
|
+
counterpartId: L?.id,
|
|
405
|
+
isUpdateAllowed: U
|
|
406
|
+
}),
|
|
407
|
+
I && /* @__PURE__ */ _("div", {
|
|
408
|
+
className: "ttw:flex ttw:flex-col ttw:border-t ttw:border-border",
|
|
409
|
+
children: [/* @__PURE__ */ _("div", {
|
|
410
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-6 ttw:pb-7",
|
|
411
|
+
children: [/* @__PURE__ */ g(u, {
|
|
412
|
+
variant: "body1",
|
|
413
|
+
className: "ttw:font-medium",
|
|
414
|
+
children: E._("Accepted payment methods")
|
|
415
|
+
}), /* @__PURE__ */ g(u, {
|
|
416
|
+
variant: "body2",
|
|
417
|
+
color: "muted",
|
|
418
|
+
children: E._("How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later - you just won't be able to send payments until you do.")
|
|
419
|
+
})]
|
|
420
|
+
}), /* @__PURE__ */ g(he, {
|
|
421
|
+
counterpartId: L?.id,
|
|
422
|
+
bankAccount: G,
|
|
423
|
+
isUpdateAllowed: U,
|
|
424
|
+
isDeleteAllowed: W,
|
|
425
|
+
isStandalone: !0,
|
|
426
|
+
isLoading: He,
|
|
427
|
+
onRemoveClick: () => Ue({ path: {
|
|
428
|
+
bank_account_id: G?.id || "",
|
|
429
|
+
counterpart_id: o
|
|
430
|
+
} })
|
|
431
|
+
})]
|
|
432
|
+
})
|
|
433
|
+
]
|
|
434
|
+
})]
|
|
435
|
+
})
|
|
436
|
+
}), o && A && /* @__PURE__ */ g(ue, {
|
|
437
|
+
counterpartId: o,
|
|
438
|
+
counterpartName: r(L),
|
|
439
|
+
isOpen: A,
|
|
440
|
+
onDelete: () => {
|
|
441
|
+
x?.(), j(!1);
|
|
57
442
|
},
|
|
58
|
-
|
|
59
|
-
});
|
|
443
|
+
onCancel: () => j(!1)
|
|
444
|
+
})] });
|
|
60
445
|
};
|
|
61
446
|
//#endregion
|
|
62
|
-
export {
|
|
447
|
+
export { v as CounterpartDetails };
|
|
@@ -1,31 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Input as e } from "./index89.js";
|
|
2
|
+
import { Select as t, SelectContent as n, SelectItem as r, SelectTrigger as i, SelectValue as a } from "./index101.js";
|
|
3
|
+
import { FILTER_TYPE_SEARCH as o, FILTER_TYPE_TYPE as s } from "./index236.js";
|
|
4
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
5
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js
|
|
6
|
-
var
|
|
7
|
-
let { i18n:
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
var d = ({ onChangeFilter: d, isDisabled: f }) => {
|
|
8
|
+
let { i18n: p } = u();
|
|
9
|
+
return /* @__PURE__ */ l("div", {
|
|
10
|
+
className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4 ttw:px-4",
|
|
11
|
+
children: [/* @__PURE__ */ c(e, {
|
|
12
|
+
className: "ttw:max-w-100 ttw:w-full",
|
|
13
|
+
placeholder: p._("Search by name"),
|
|
14
|
+
onChange: (e) => {
|
|
15
|
+
d(o, e.target.value);
|
|
16
|
+
},
|
|
17
|
+
disabled: f
|
|
18
|
+
}), /* @__PURE__ */ l(t, {
|
|
19
|
+
defaultValue: "all",
|
|
20
|
+
onValueChange: (e) => {
|
|
21
|
+
d(s, e);
|
|
22
|
+
},
|
|
23
|
+
children: [/* @__PURE__ */ c(i, {
|
|
24
|
+
className: "ttw:max-w-40 ttw:w-full",
|
|
25
|
+
children: /* @__PURE__ */ c(a, {})
|
|
26
|
+
}), /* @__PURE__ */ l(n, { children: [
|
|
27
|
+
/* @__PURE__ */ c(r, {
|
|
28
|
+
value: "all",
|
|
29
|
+
children: p._("All types")
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ c(r, {
|
|
32
|
+
value: "individual",
|
|
33
|
+
children: p._("Individuals")
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ c(r, {
|
|
36
|
+
value: "organization",
|
|
37
|
+
children: p._("Companies")
|
|
38
|
+
})
|
|
39
|
+
] })]
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
29
42
|
};
|
|
30
43
|
//#endregion
|
|
31
|
-
export {
|
|
44
|
+
export { d as CounterpartTableFilters };
|