@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,250 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./index189.js";
|
|
5
|
-
import { Typography as r } from "./index62.js";
|
|
6
|
-
import { Separator as i } from "./index64.js";
|
|
7
|
-
import { Checkbox as a } from "./index99.js";
|
|
8
|
-
import { useUploadReceivableAttachment as o } from "./index192.js";
|
|
9
|
-
import { useDeleteFile as s } from "./index193.js";
|
|
10
|
-
import { validateAttachmentFile as c } from "./index218.js";
|
|
11
|
-
import { formatFileSize as l } from "./index219.js";
|
|
12
|
-
import { toFileArray as u } from "./index220.js";
|
|
13
|
-
import { ATTACHMENT_ACCEPTED_EXTENSIONS as d, ATTACHMENT_ACCEPTED_FORMATS as f } from "./index437.js";
|
|
14
|
-
import { useEffect as p, useRef as m, useState as h } from "react";
|
|
15
|
-
import { FileText as g, ImageIcon as _, Loader2 as v, Trash2 as y, X as b } from "lucide-react";
|
|
16
|
-
import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
17
|
-
import { useLingui as w } from "@lingui/react";
|
|
18
|
-
import { useFormContext as T } from "react-hook-form";
|
|
1
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { twMerge as r } from "tailwind-merge";
|
|
19
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}), []);
|
|
28
|
-
let J = m(/* @__PURE__ */ new Set()), Y = B.some((e) => e.status === "uploading");
|
|
29
|
-
p(() => {
|
|
30
|
-
D?.(Y);
|
|
31
|
-
}, [Y, D]), p(() => () => D?.(!1), [D]);
|
|
32
|
-
let X = () => (K.current += 1, `attachment-${K.current}`), Z = (e) => e === "too_large" ? O._("File too large (max 3 MB)") : O._("File type not supported. Use PDF, DOC, JPG or PNG"), Q = async (e, t) => {
|
|
33
|
-
try {
|
|
34
|
-
let n = await M({
|
|
35
|
-
file: t,
|
|
36
|
-
file_type: "attachments"
|
|
37
|
-
});
|
|
38
|
-
if (q.current || J.current.delete(e)) {
|
|
39
|
-
N({ path: { file_id: n.id } });
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
V((t) => t.filter((t) => t.localId !== e)), A("attachments", [...j("attachments") ?? [], {
|
|
43
|
-
id: n.id,
|
|
44
|
-
include_in_email: !0,
|
|
45
|
-
name: n.name,
|
|
46
|
-
size: n.size
|
|
47
|
-
}], { shouldDirty: !0 });
|
|
48
|
-
} catch {
|
|
49
|
-
let t = J.current.delete(e);
|
|
50
|
-
if (q.current || t) return;
|
|
51
|
-
V((t) => t.map((t) => t.localId === e ? {
|
|
52
|
-
...t,
|
|
53
|
-
status: "error",
|
|
54
|
-
errorMessage: O._("Upload failed. Please try again.")
|
|
55
|
-
} : t));
|
|
56
|
-
}
|
|
57
|
-
}, $ = (e) => {
|
|
58
|
-
if (e.length === 0) return;
|
|
59
|
-
let t = j("attachments") ?? [], n = B.filter((e) => e.status === "uploading").length, r = 10 - t.length - n, i = [], a = !1;
|
|
60
|
-
for (let t of e) {
|
|
61
|
-
let e = c(t, {
|
|
62
|
-
acceptedFormats: f,
|
|
63
|
-
acceptedExtensions: d,
|
|
64
|
-
maxFileSizeInMB: 3
|
|
65
|
-
});
|
|
66
|
-
if (e) {
|
|
67
|
-
i.push({
|
|
68
|
-
localId: X(),
|
|
69
|
-
name: t.name,
|
|
70
|
-
size: t.size,
|
|
71
|
-
status: "error",
|
|
72
|
-
errorMessage: Z(e)
|
|
73
|
-
});
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (r <= 0) {
|
|
77
|
-
a = !0;
|
|
78
|
-
continue;
|
|
79
|
-
}
|
|
80
|
-
--r;
|
|
81
|
-
let n = X();
|
|
82
|
-
i.push({
|
|
83
|
-
localId: n,
|
|
84
|
-
name: t.name,
|
|
85
|
-
size: t.size,
|
|
86
|
-
status: "uploading"
|
|
87
|
-
}), Q(n, t);
|
|
88
|
-
}
|
|
89
|
-
i.length > 0 && V((e) => [...e, ...i]), U(a);
|
|
90
|
-
}, ee = (e, t) => {
|
|
91
|
-
A("attachments", (j("attachments") ?? []).map((n) => n.id === e ? {
|
|
92
|
-
...n,
|
|
93
|
-
include_in_email: t
|
|
94
|
-
} : n), { shouldDirty: !0 });
|
|
95
|
-
}, te = (e) => {
|
|
96
|
-
A("attachments", (j("attachments") ?? []).filter((t) => t.id !== e), { shouldDirty: !0 }), U(!1), N({ path: { file_id: e } });
|
|
97
|
-
}, ne = (e) => {
|
|
98
|
-
B.some((t) => t.localId === e && t.status === "uploading") && J.current.add(e), V((t) => t.filter((t) => t.localId !== e)), U(!1);
|
|
99
|
-
}, re = (e) => {
|
|
100
|
-
e.preventDefault(), G(!1), !E && $(u(e.dataTransfer.files));
|
|
101
|
-
}, ie = L.length > 0 || B.length > 0;
|
|
102
|
-
return /* @__PURE__ */ C("div", {
|
|
103
|
-
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
5
|
+
var i = ({ label: n, value: i, className: a }) => /* @__PURE__ */ t("li", {
|
|
6
|
+
className: r("ttw:flex ttw:justify-between ttw:items-center", a),
|
|
7
|
+
children: [/* @__PURE__ */ e("span", { children: n }), /* @__PURE__ */ e("span", { children: i?.toString() })]
|
|
8
|
+
}), a = ({ subtotalPrice: r, totalTaxes: a, totalPrice: o }) => {
|
|
9
|
+
let { i18n: s } = n();
|
|
10
|
+
return /* @__PURE__ */ t("ul", {
|
|
11
|
+
className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-1.5 ttw:list-none",
|
|
104
12
|
children: [
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
children: O._("Attachments")
|
|
110
|
-
}), /* @__PURE__ */ S(r, {
|
|
111
|
-
variant: "body2",
|
|
112
|
-
color: "muted",
|
|
113
|
-
className: "ttw:font-medium",
|
|
114
|
-
children: O._("Associate additional documents with this invoice for your own reference or to share with the customer. e.g. contracts, photos, terms and conditions, etc.")
|
|
115
|
-
})]
|
|
13
|
+
/* @__PURE__ */ e(i, {
|
|
14
|
+
label: s._("Subtotal"),
|
|
15
|
+
value: r,
|
|
16
|
+
className: "ttw:text-sm ttw:font-normal"
|
|
116
17
|
}),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
color: "muted",
|
|
122
|
-
children: z ? O._("Selected files will be attached to every invoice email in the recurring series.") : O._("Selected files will be attached to the invoice email sent to the customer.")
|
|
123
|
-
}), /* @__PURE__ */ S(i, {})] }), /* @__PURE__ */ C("ul", {
|
|
124
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
125
|
-
children: [L.map((e) => {
|
|
126
|
-
let n = `attachment-include-${e.id}`;
|
|
127
|
-
return /* @__PURE__ */ C("li", {
|
|
128
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
129
|
-
children: [/* @__PURE__ */ S(a, {
|
|
130
|
-
id: n,
|
|
131
|
-
checked: e.include_in_email,
|
|
132
|
-
disabled: E,
|
|
133
|
-
"aria-label": `${O._("Include in email:")} ${e.name}`,
|
|
134
|
-
onCheckedChange: (t) => ee(e.id, t === !0)
|
|
135
|
-
}), /* @__PURE__ */ C("div", {
|
|
136
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:rounded-lg ttw:gap-3 ttw:bg-muted ttw:px-2 ttw:py-1",
|
|
137
|
-
children: [/* @__PURE__ */ C("div", {
|
|
138
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:gap-1",
|
|
139
|
-
children: [/* @__PURE__ */ S(r, {
|
|
140
|
-
variant: "body2",
|
|
141
|
-
className: "ttw:truncate",
|
|
142
|
-
children: e.name
|
|
143
|
-
}), /* @__PURE__ */ C(r, {
|
|
144
|
-
variant: "body2",
|
|
145
|
-
color: "muted",
|
|
146
|
-
className: "ttw:shrink-0",
|
|
147
|
-
children: [
|
|
148
|
-
"(",
|
|
149
|
-
l(e.size),
|
|
150
|
-
")"
|
|
151
|
-
]
|
|
152
|
-
})]
|
|
153
|
-
}), /* @__PURE__ */ S(t, {
|
|
154
|
-
type: "button",
|
|
155
|
-
variant: "ghost",
|
|
156
|
-
size: "icon",
|
|
157
|
-
className: "ttw:size-4",
|
|
158
|
-
disabled: E,
|
|
159
|
-
"aria-label": `${O._("Remove")} ${e.name}`,
|
|
160
|
-
onClick: () => te(e.id),
|
|
161
|
-
children: /* @__PURE__ */ S(y, { className: "ttw:size-4" })
|
|
162
|
-
})]
|
|
163
|
-
})]
|
|
164
|
-
}, e.id);
|
|
165
|
-
}), B.map((e) => /* @__PURE__ */ C("li", {
|
|
166
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:rounded-lg ttw:gap-3 ttw:bg-muted ttw:px-2 ttw:py-1",
|
|
167
|
-
children: [
|
|
168
|
-
e.status === "uploading" ? /* @__PURE__ */ S(v, { className: "ttw:size-5 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ S(g, { className: "ttw:size-5 ttw:shrink-0 ttw:text-destructive" }),
|
|
169
|
-
/* @__PURE__ */ C("div", {
|
|
170
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
171
|
-
children: [/* @__PURE__ */ S(r, {
|
|
172
|
-
variant: "body2",
|
|
173
|
-
className: "ttw:truncate",
|
|
174
|
-
children: e.name
|
|
175
|
-
}), e.status === "uploading" ? /* @__PURE__ */ S(r, {
|
|
176
|
-
variant: "caption",
|
|
177
|
-
color: "muted",
|
|
178
|
-
children: O._("Uploading…")
|
|
179
|
-
}) : /* @__PURE__ */ S(r, {
|
|
180
|
-
variant: "caption",
|
|
181
|
-
role: "alert",
|
|
182
|
-
className: "ttw:text-destructive",
|
|
183
|
-
children: e.errorMessage
|
|
184
|
-
})]
|
|
185
|
-
}),
|
|
186
|
-
/* @__PURE__ */ S(t, {
|
|
187
|
-
type: "button",
|
|
188
|
-
variant: "ghost",
|
|
189
|
-
size: "icon",
|
|
190
|
-
disabled: E,
|
|
191
|
-
"aria-label": `${O._("Remove")} ${e.name}`,
|
|
192
|
-
onClick: () => ne(e.localId),
|
|
193
|
-
children: /* @__PURE__ */ S(b, { className: "ttw:size-4" })
|
|
194
|
-
})
|
|
195
|
-
]
|
|
196
|
-
}, e.localId))]
|
|
197
|
-
})]
|
|
18
|
+
/* @__PURE__ */ e(i, {
|
|
19
|
+
label: s._("Tax"),
|
|
20
|
+
value: a,
|
|
21
|
+
className: "ttw:text-sm ttw:font-normal"
|
|
198
22
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
onDragOver: (e) => {
|
|
204
|
-
e.preventDefault(), E || G(!0);
|
|
205
|
-
},
|
|
206
|
-
onDragLeave: (e) => {
|
|
207
|
-
e.preventDefault(), G(!1);
|
|
208
|
-
},
|
|
209
|
-
onDrop: re,
|
|
210
|
-
className: e("ttw:flex ttw:w-full ttw:flex-col ttw:items-center ttw:gap-2 ttw:rounded-xl ttw:border ttw:border-dashed ttw:p-6 ttw:text-center ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", W ? "ttw:border-primary ttw:bg-primary/5" : "ttw:border-border ttw:bg-muted"),
|
|
211
|
-
children: [
|
|
212
|
-
/* @__PURE__ */ S("span", {
|
|
213
|
-
className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-border",
|
|
214
|
-
children: /* @__PURE__ */ S(_, { className: "ttw:size-5 ttw:text-muted-foreground" })
|
|
215
|
-
}),
|
|
216
|
-
/* @__PURE__ */ C(r, {
|
|
217
|
-
variant: "body2",
|
|
218
|
-
children: [
|
|
219
|
-
O._("Drop your files here, or"),
|
|
220
|
-
" ",
|
|
221
|
-
/* @__PURE__ */ S("span", {
|
|
222
|
-
className: "ttw:text-primary ttw:underline",
|
|
223
|
-
children: O._("browse to upload")
|
|
224
|
-
})
|
|
225
|
-
]
|
|
226
|
-
}),
|
|
227
|
-
/* @__PURE__ */ S(r, {
|
|
228
|
-
variant: "caption",
|
|
229
|
-
color: "muted",
|
|
230
|
-
children: O._("PDF, DOC, JPG, PNG (max. 3MB)")
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
}),
|
|
234
|
-
H && /* @__PURE__ */ S(r, {
|
|
235
|
-
variant: "body2",
|
|
236
|
-
role: "alert",
|
|
237
|
-
className: "ttw:text-destructive",
|
|
238
|
-
children: O._("You can attach up to 10 files.")
|
|
239
|
-
}),
|
|
240
|
-
/* @__PURE__ */ S(P, {
|
|
241
|
-
multiple: !0,
|
|
242
|
-
onChange: (e) => {
|
|
243
|
-
$(u(e.target.files)), I();
|
|
244
|
-
}
|
|
23
|
+
/* @__PURE__ */ e(i, {
|
|
24
|
+
label: s._("Total"),
|
|
25
|
+
value: o,
|
|
26
|
+
className: "ttw:text-lg ttw:font-medium"
|
|
245
27
|
})
|
|
246
28
|
]
|
|
247
29
|
});
|
|
248
30
|
};
|
|
249
31
|
//#endregion
|
|
250
|
-
export {
|
|
32
|
+
export { a as InvoiceTotals };
|
|
@@ -1,10 +1,175 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button as e } from "./index56.js";
|
|
2
|
+
import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index103.js";
|
|
3
|
+
import { LoadingSpinner as i } from "./index51.js";
|
|
4
|
+
import "./index52.js";
|
|
5
|
+
import { Typography as a } from "./index62.js";
|
|
6
|
+
import { Separator as o } from "./index64.js";
|
|
7
|
+
import { Field as s, FieldContent as c, FieldLabel as l } from "./index88.js";
|
|
8
|
+
import { sanitizeTaxRateInput as u } from "./index176.js";
|
|
9
|
+
import { useLineItemManagement as d } from "./index190.js";
|
|
10
|
+
import { useGetMeasureUnits as f } from "./index453.js";
|
|
11
|
+
import { FormErrorDisplay as p, useFormErrors as m } from "./index469.js";
|
|
12
|
+
import "./index470.js";
|
|
13
|
+
import { InvoiceItemRow as h } from "./index489.js";
|
|
14
|
+
import { InvoiceTotals as g } from "./index490.js";
|
|
15
|
+
import { useCallback as _, useEffect as v, useRef as y } from "react";
|
|
16
|
+
import { Plus as b } from "lucide-react";
|
|
17
|
+
import { jsx as x, jsxs as S } from "@emotion/react/jsx-runtime";
|
|
18
|
+
import { useLingui as C } from "@lingui/react";
|
|
19
|
+
import { Controller as w, useFormContext as T } from "react-hook-form";
|
|
2
20
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
21
|
+
var E = ({ defaultCurrency: E = "USD", registerLineItemCleanupFn: D }) => {
|
|
22
|
+
let { i18n: O } = C(), { control: k, formState: A, getValues: j, watch: M, trigger: N, clearErrors: P } = T(), F = M("tax_mode") === "inclusive", { data: I, isLoading: L } = f(), { fields: R, subtotalPrice: z, totalPrice: B, totalTaxes: V, lineItemErrors: H, autoFocusIndex: U, handleAddRow: W, handleRemoveItem: G, setValueWithValidationLocal: K, cleanUpLineItemsForSubmission: q } = d({
|
|
23
|
+
defaultCurrency: E,
|
|
24
|
+
isInclusivePricing: F
|
|
25
|
+
}), J = _((e, t) => {
|
|
26
|
+
K(e, t, { shouldValidate: !1 });
|
|
27
|
+
}, [K]);
|
|
28
|
+
v(() => (D?.(q), () => D?.(null)), [D, q]);
|
|
29
|
+
let Y = y(null), { generalError: X, fieldErrors: Z } = m(H), Q = _((e, t, n) => {
|
|
30
|
+
let r = t.measureUnit?.id, i = t.measureUnit?.name;
|
|
31
|
+
i && !r ? (J(`line_items.${e}.product.measure_unit_id`, ""), J(`line_items.${e}.product.measure_unit_name`, i), J(`line_items.${e}.measure_unit`, {
|
|
32
|
+
name: i,
|
|
33
|
+
id: null
|
|
34
|
+
})) : (r || n) && (J(`line_items.${e}.product.measure_unit_id`, r || n), J(`line_items.${e}.product.measure_unit_name`, void 0), J(`line_items.${e}.measure_unit`, void 0));
|
|
35
|
+
}, [J]), $ = _((e, t, n) => {
|
|
36
|
+
let r = t.label ?? "";
|
|
37
|
+
J(`line_items.${e}.product.name`, r), r.trim() && P(`line_items.${e}.product.name`);
|
|
38
|
+
let i = t.id !== "" && t.id !== "custom" && n;
|
|
39
|
+
if (J(`line_items.${e}.product_id`, i ? t.id : ""), i) {
|
|
40
|
+
J(`line_items.${e}.product.price.value`, t.price?.value ?? 0), J(`line_items.${e}.product.price.currency`, E);
|
|
41
|
+
let n = j(`line_items.${e}.product.measure_unit_id`);
|
|
42
|
+
Q(e, t, n), J(`line_items.${e}.quantity`, t.smallestAmount || 1), J(`line_items.${e}.product.smallest_amount`, t.smallestAmount), J(`line_items.${e}.product.type`, "product"), J(`line_items.${e}.product.description`, t.description ?? ""), N(`line_items.${e}`);
|
|
43
|
+
}
|
|
44
|
+
}, [
|
|
45
|
+
E,
|
|
46
|
+
j,
|
|
47
|
+
J,
|
|
48
|
+
Q,
|
|
49
|
+
N,
|
|
50
|
+
P
|
|
51
|
+
]);
|
|
52
|
+
return /* @__PURE__ */ S("div", {
|
|
53
|
+
ref: Y,
|
|
54
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ S("div", {
|
|
57
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
58
|
+
children: [/* @__PURE__ */ x(a, {
|
|
59
|
+
variant: "h4",
|
|
60
|
+
children: O._("Products and services")
|
|
61
|
+
}), /* @__PURE__ */ x(a, {
|
|
62
|
+
variant: "body2",
|
|
63
|
+
color: "muted",
|
|
64
|
+
className: "ttw:font-medium",
|
|
65
|
+
children: O._("Add the products and services on this invoice. You'll have the option to save new items to your inventory.")
|
|
66
|
+
})]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ x(p, {
|
|
69
|
+
generalError: A?.errors?.line_items?.root?.message ?? X,
|
|
70
|
+
fieldErrors: Z
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ S("ul", {
|
|
73
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
74
|
+
children: [/* @__PURE__ */ S("li", {
|
|
75
|
+
className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-5",
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ x(a, {
|
|
78
|
+
variant: "body2",
|
|
79
|
+
className: "ttw:font-medium ttw:leading-5 ttw:min-w-30 ttw:whitespace-nowrap ttw:inline-flex ttw:flex-1",
|
|
80
|
+
children: O._("Item name")
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ x(a, {
|
|
83
|
+
variant: "body2",
|
|
84
|
+
className: "ttw:font-medium ttw:leading-5 ttw:w-24 ttw:min-w-24",
|
|
85
|
+
children: O._("Quantity")
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ x(a, {
|
|
88
|
+
variant: "body2",
|
|
89
|
+
className: "ttw:font-medium ttw:leading-5 ttw:w-20.5 ttw:min-w-20.5",
|
|
90
|
+
children: O._("Units")
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ x(a, {
|
|
93
|
+
variant: "body2",
|
|
94
|
+
className: "ttw:font-medium ttw:leading-5 ttw:max-w-41 ttw:w-full ttw:min-w-29",
|
|
95
|
+
children: O._("Price")
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ x(a, {
|
|
98
|
+
variant: "body2",
|
|
99
|
+
className: "ttw:font-medium ttw:leading-5 ttw:w-12 ttw:min-w-12",
|
|
100
|
+
children: O._("Taxable")
|
|
101
|
+
}),
|
|
102
|
+
R.length > 1 && /* @__PURE__ */ x("div", { className: "ttw:w-10 ttw:min-w-10" })
|
|
103
|
+
]
|
|
104
|
+
}), L ? /* @__PURE__ */ x("li", {
|
|
105
|
+
className: "ttw:flex ttw:items-center ttw:justify-center ttw:h-9",
|
|
106
|
+
children: /* @__PURE__ */ x(i, { className: "ttw:w-5 ttw:h-5" })
|
|
107
|
+
}) : R.map((e, t) => /* @__PURE__ */ x(h, {
|
|
108
|
+
field: e,
|
|
109
|
+
index: t,
|
|
110
|
+
control: k,
|
|
111
|
+
errors: A.errors,
|
|
112
|
+
defaultCurrency: E,
|
|
113
|
+
measureUnitsData: I,
|
|
114
|
+
onRequestLineItemValue: (e) => j(`line_items.${t}.${e}`),
|
|
115
|
+
onLineItemValueChange: (e, n, r) => {
|
|
116
|
+
let i = `line_items.${t}.${e}`;
|
|
117
|
+
K(i, n, r);
|
|
118
|
+
},
|
|
119
|
+
canRemove: R.length > 1,
|
|
120
|
+
autoFocusName: t === U,
|
|
121
|
+
onUpdateItem: $,
|
|
122
|
+
onRemoveItem: G,
|
|
123
|
+
container: Y
|
|
124
|
+
}, e.id))]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ S(e, {
|
|
127
|
+
type: "button",
|
|
128
|
+
variant: "ghost",
|
|
129
|
+
onClick: W,
|
|
130
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
131
|
+
children: [/* @__PURE__ */ x(b, { className: "ttw:size-5 ttw:text-primary" }), O._("Add item")]
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ x(w, {
|
|
134
|
+
name: "tax_rate",
|
|
135
|
+
control: k,
|
|
136
|
+
render: ({ field: e }) => /* @__PURE__ */ x(s, { children: /* @__PURE__ */ S(c, {
|
|
137
|
+
className: "ttw:flex-row ttw:justify-end",
|
|
138
|
+
children: [/* @__PURE__ */ x(l, {
|
|
139
|
+
htmlFor: e.name,
|
|
140
|
+
children: O._("Tax rate")
|
|
141
|
+
}), /* @__PURE__ */ S(t, {
|
|
142
|
+
className: "ttw:w-28 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0",
|
|
143
|
+
children: [/* @__PURE__ */ x(r, {
|
|
144
|
+
...e,
|
|
145
|
+
value: e.value ?? "",
|
|
146
|
+
id: e.name,
|
|
147
|
+
className: "ttw:text-right",
|
|
148
|
+
placeholder: O._("e.g. 6.25"),
|
|
149
|
+
type: "text",
|
|
150
|
+
inputMode: "decimal",
|
|
151
|
+
onChange: (t) => {
|
|
152
|
+
e.onChange(u(t.target.value));
|
|
153
|
+
},
|
|
154
|
+
onBlur: (t) => {
|
|
155
|
+
let n = t.target.value;
|
|
156
|
+
e.onChange(n.endsWith(".") ? n.slice(0, -1) : n), e.onBlur();
|
|
157
|
+
}
|
|
158
|
+
}), /* @__PURE__ */ x(n, {
|
|
159
|
+
align: "inline-end",
|
|
160
|
+
children: "%"
|
|
161
|
+
})]
|
|
162
|
+
})]
|
|
163
|
+
}) })
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ x(o, {}),
|
|
166
|
+
/* @__PURE__ */ x(g, {
|
|
167
|
+
subtotalPrice: z,
|
|
168
|
+
totalTaxes: V,
|
|
169
|
+
totalPrice: B
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
};
|
|
9
174
|
//#endregion
|
|
10
|
-
export {
|
|
175
|
+
export { E as ItemsSection };
|
|
@@ -1,8 +1,144 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e } from "./index56.js";
|
|
2
|
+
import { Input as t } from "./index89.js";
|
|
3
|
+
import { Typography as n } from "./index62.js";
|
|
4
|
+
import { Field as r, FieldContent as i, FieldError as a, FieldLabel as o } from "./index88.js";
|
|
5
|
+
import { getCreateBankAccountSchema as s } from "./index94.js";
|
|
6
|
+
import { useCreateEntityBankAccount as c } from "./index114.js";
|
|
7
|
+
import { prepareBankAccountCreatePayload as l } from "./index211.js";
|
|
8
|
+
import "./index232.js";
|
|
9
|
+
import { safeZodResolver as u } from "./index386.js";
|
|
10
|
+
import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { useLingui as p } from "@lingui/react";
|
|
12
|
+
import { Controller as m, useForm as h } from "react-hook-form";
|
|
3
13
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
14
|
+
var g = ({ bankAccountsLength: g, onCreate: _, onCancel: v }) => {
|
|
15
|
+
let { i18n: y } = p(), { mutate: b, isPending: x } = c(_), { control: S, handleSubmit: C } = h({
|
|
16
|
+
mode: "onSubmit",
|
|
17
|
+
reValidateMode: "onSubmit",
|
|
18
|
+
resolver: u(s(y)),
|
|
19
|
+
defaultValues: {
|
|
20
|
+
display_name: "",
|
|
21
|
+
account_holder_name: "",
|
|
22
|
+
account_number: "",
|
|
23
|
+
routing_number: ""
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ f("div", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ d("div", {
|
|
30
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
31
|
+
children: /* @__PURE__ */ d(n, {
|
|
32
|
+
variant: "body2",
|
|
33
|
+
children: y._("Add a bank account")
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ f("div", {
|
|
37
|
+
className: "ttw:flex ttw:gap-4",
|
|
38
|
+
children: [/* @__PURE__ */ d(m, {
|
|
39
|
+
name: "routing_number",
|
|
40
|
+
control: S,
|
|
41
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
42
|
+
/* @__PURE__ */ d(o, {
|
|
43
|
+
htmlFor: "routing_number",
|
|
44
|
+
children: y._("Routing number")
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ d(t, {
|
|
47
|
+
...e,
|
|
48
|
+
id: "routing_number",
|
|
49
|
+
placeholder: y._("e.g. 123456789"),
|
|
50
|
+
value: e.value ?? "",
|
|
51
|
+
disabled: x,
|
|
52
|
+
"aria-invalid": !!n
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ d(a, { errors: n ? [n] : [] })
|
|
55
|
+
] }) })
|
|
56
|
+
}), /* @__PURE__ */ d(m, {
|
|
57
|
+
name: "account_number",
|
|
58
|
+
control: S,
|
|
59
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
60
|
+
/* @__PURE__ */ d(o, {
|
|
61
|
+
htmlFor: "account_number",
|
|
62
|
+
children: y._("Account number")
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ d(t, {
|
|
65
|
+
...e,
|
|
66
|
+
id: "account_number",
|
|
67
|
+
placeholder: y._("e.g. 123456789"),
|
|
68
|
+
value: e.value ?? "",
|
|
69
|
+
disabled: x,
|
|
70
|
+
"aria-invalid": !!n
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ d(a, { errors: n ? [n] : [] })
|
|
73
|
+
] }) })
|
|
74
|
+
})]
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ f("div", {
|
|
77
|
+
className: "ttw:flex ttw:gap-4",
|
|
78
|
+
children: [/* @__PURE__ */ d(m, {
|
|
79
|
+
name: "account_holder_name",
|
|
80
|
+
control: S,
|
|
81
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
82
|
+
/* @__PURE__ */ d(o, {
|
|
83
|
+
htmlFor: "account_holder_name",
|
|
84
|
+
children: y._("Account holder name")
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ d(t, {
|
|
87
|
+
...e,
|
|
88
|
+
id: "account_holder_name",
|
|
89
|
+
placeholder: y._("e.g. James Smith"),
|
|
90
|
+
value: e.value ?? "",
|
|
91
|
+
disabled: x,
|
|
92
|
+
"aria-invalid": !!n
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ d(a, { errors: n ? [n] : [] })
|
|
95
|
+
] }) })
|
|
96
|
+
}), /* @__PURE__ */ d(m, {
|
|
97
|
+
name: "display_name",
|
|
98
|
+
control: S,
|
|
99
|
+
render: ({ field: e, fieldState: { error: s } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
|
|
100
|
+
/* @__PURE__ */ f(o, {
|
|
101
|
+
htmlFor: "display_name",
|
|
102
|
+
className: "ttw:gap-1",
|
|
103
|
+
children: [y._("Account nickname"), /* @__PURE__ */ d(n, {
|
|
104
|
+
variant: "body2",
|
|
105
|
+
color: "muted",
|
|
106
|
+
className: "ttw:leading-snug",
|
|
107
|
+
children: y._("(optional)")
|
|
108
|
+
})]
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ d(t, {
|
|
111
|
+
...e,
|
|
112
|
+
id: "display_name",
|
|
113
|
+
placeholder: y._("e.g. Empire Bank Checking"),
|
|
114
|
+
value: e.value ?? "",
|
|
115
|
+
disabled: x,
|
|
116
|
+
"aria-invalid": !!s
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ d(a, { errors: s ? [s] : [] })
|
|
119
|
+
] }) })
|
|
120
|
+
})]
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ f("div", {
|
|
123
|
+
className: "ttw:flex ttw:gap-4",
|
|
124
|
+
children: [g !== 0 && /* @__PURE__ */ d(e, {
|
|
125
|
+
type: "button",
|
|
126
|
+
variant: "outline",
|
|
127
|
+
className: "ttw:border-border",
|
|
128
|
+
disabled: x,
|
|
129
|
+
onClick: v,
|
|
130
|
+
children: y._("Cancel")
|
|
131
|
+
}), /* @__PURE__ */ d(e, {
|
|
132
|
+
type: "button",
|
|
133
|
+
disabled: x,
|
|
134
|
+
onClick: C((e) => {
|
|
135
|
+
b({ body: l(e) });
|
|
136
|
+
}),
|
|
137
|
+
children: y._("Save account")
|
|
138
|
+
})]
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
});
|
|
142
|
+
};
|
|
7
143
|
//#endregion
|
|
8
|
-
export {
|
|
144
|
+
export { g as BankAccountSectionForm };
|