@tesouro/embedded-components-react 0.2.218 → 0.2.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index6.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +13 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +9 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +20 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +114 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +68 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +12 -228
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +91 -462
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +57 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -539
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +43 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +75 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +39 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +227 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +468 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +537 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +23 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +96 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +94 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +7 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +10 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +28 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +37 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +58 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +95 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +110 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +86 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +37 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +337 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +295 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +100 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +160 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +263 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +22 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +488 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +162 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +53 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +60 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +149 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +64 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +24 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +34 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +42 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +60 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +118 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +23 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +40 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +51 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +2 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +94 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +97 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +213 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +121 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +46 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +118 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +111 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +44 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +203 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +68 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +158 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +28 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +78 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +27 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +34 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +29 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +29 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +76 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +76 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +41 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +21 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +169 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +134 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +157 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +9 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +61 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +60 -483
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +55 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +6 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +59 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +23 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +62 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +26 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +127 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +30 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +66 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +45 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +23 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +117 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +15 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +24 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +50 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +18 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +17 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +18 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +65 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +21 -269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +115 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +80 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +8 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +92 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +7 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +51 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +84 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +17 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +82 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +266 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +37 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +62 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +44 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +22 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +142 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +285 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +47 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +81 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +33 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +34 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +72 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +83 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +52 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +53 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +54 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +55 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +70 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +95 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +15 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +75 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +19 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +9 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +40 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +59 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +32 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +85 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +22 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +107 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +69 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +68 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +28 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +23 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +37 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +115 -115
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2025 -2190
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index21.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -4
- package/package.json +1 -1
|
@@ -1,22 +1,99 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
1
|
+
import { jsx as a, jsxs as o, Fragment as w } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as v } from "@lingui/react";
|
|
3
|
+
import { ListFilter as p } from "lucide-react";
|
|
4
|
+
import { useFilterPanel as g, FilterBar as C, FilterTag as x, Popover as b, PopoverTrigger as F, FilterMenuButton as f, PopoverContent as P, DateRangePicker as D, MultiSelectFilter as N, AmountFilter as M, Input as y, RadioGroup as I, RadioGroupItem as S, SearchInput as k } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
const A = {
|
|
6
|
+
date: "ttw:w-auto",
|
|
7
|
+
status: "ttw:w-56",
|
|
8
|
+
amount: "ttw:w-64",
|
|
9
|
+
vendor: "ttw:w-64",
|
|
10
|
+
attachment: "ttw:w-56"
|
|
11
|
+
}, _ = {
|
|
12
|
+
due_date: "Due date",
|
|
13
|
+
created_at: "Created on",
|
|
14
|
+
issued_at: "Issue date"
|
|
15
|
+
}, L = [{
|
|
16
|
+
id: "date",
|
|
17
|
+
label: "Due date",
|
|
18
|
+
activeDateField: "due_date"
|
|
19
|
+
}, {
|
|
20
|
+
id: "date",
|
|
21
|
+
label: "Created on",
|
|
22
|
+
activeDateField: "created_at"
|
|
23
|
+
}, {
|
|
24
|
+
id: "date",
|
|
25
|
+
label: "Issue date",
|
|
26
|
+
activeDateField: "issued_at"
|
|
27
|
+
}, {
|
|
28
|
+
id: "status",
|
|
29
|
+
label: "Status",
|
|
30
|
+
activeDateField: void 0
|
|
31
|
+
}, {
|
|
32
|
+
id: "amount",
|
|
33
|
+
label: "Amount",
|
|
34
|
+
activeDateField: void 0
|
|
35
|
+
}, {
|
|
36
|
+
id: "vendor",
|
|
37
|
+
label: "Vendor",
|
|
38
|
+
activeDateField: void 0
|
|
39
|
+
}, {
|
|
40
|
+
id: "attachment",
|
|
41
|
+
label: "Attachment",
|
|
42
|
+
activeDateField: void 0
|
|
43
|
+
}];
|
|
44
|
+
function H(e) {
|
|
45
|
+
const {
|
|
46
|
+
i18n: i
|
|
47
|
+
} = v(), n = g(), s = n.isMenuOpen || !!n.activePanelId, r = n.activePanelId && A[n.activePanelId] || "ttw:w-52", d = e.allPresets.map((t) => ({
|
|
48
|
+
value: t.value,
|
|
49
|
+
label: t.label,
|
|
50
|
+
group: t.group
|
|
51
|
+
})), c = (t) => {
|
|
52
|
+
t || (n.closeMenu(), n.closePanel());
|
|
53
|
+
}, u = (t, l) => {
|
|
54
|
+
l && e.onActiveDateFieldChange(l), n.openPanel(t);
|
|
55
|
+
}, m = e.hasFile === !0 ? "has" : e.hasFile === !1 ? "no" : "any", h = (t) => {
|
|
56
|
+
t === "any" ? e.onHasFileChange(void 0) : t === "has" ? e.onHasFileChange(!0) : e.onHasFileChange(!1);
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ a(C, { className: "ttw:pl-4", searchSlot: /* @__PURE__ */ a(k, { value: e.searchValue, onChange: (t) => e.onSearchChange(t.target.value), placeholder: "Search by number or vendor..." }), menuSlot: /* @__PURE__ */ o(b, { open: s, onOpenChange: c, children: [
|
|
59
|
+
/* @__PURE__ */ a(F, { asChild: !0, children: /* @__PURE__ */ a(f, { activeCount: e.activeFilterCount, onClick: n.toggleMenu }) }),
|
|
60
|
+
/* @__PURE__ */ o(P, { align: "start", className: `ttw:p-0 ${r}`, children: [
|
|
61
|
+
n.isMenuOpen && /* @__PURE__ */ a("div", { className: "ttw:p-1", children: L.map((t, l) => /* @__PURE__ */ o("button", { type: "button", className: "ttw:flex ttw:items-center ttw:gap-2 ttw:w-full ttw:px-2 ttw:py-1.5 ttw:rounded-md ttw:text-xs ttw:font-medium ttw:hover:bg-accent ttw:transition-colors ttw:cursor-pointer", onClick: () => u(t.id, t.activeDateField), children: [
|
|
62
|
+
/* @__PURE__ */ a(p, { className: "ttw:size-4 ttw:text-muted-foreground ttw:shrink-0" }),
|
|
63
|
+
t.label
|
|
64
|
+
] }, `${t.id}-${l}`)) }),
|
|
65
|
+
n.activePanelId === "date" && /* @__PURE__ */ a(D, { from: e.dateFrom, to: e.dateTo, onRangeChange: e.onDateRangeChange, selectedPreset: e.selectedDatePreset, onPresetChange: e.onDatePresetChange, presets: d, fieldLabel: _[e.activeDateField] }),
|
|
66
|
+
n.activePanelId === "status" && /* @__PURE__ */ a(N, { options: e.statusOptions, selectedValues: e.selectedStatus, onSelectionChange: e.onStatusChange }),
|
|
67
|
+
n.activePanelId === "amount" && /* @__PURE__ */ a(M, { mode: e.amountMode, onModeChange: e.onAmountModeChange, min: e.amountMin, max: e.amountMax, onMinChange: e.onAmountMinChange, onMaxChange: e.onAmountMaxChange, showFlowDirection: !1, minLabel: "No less than", maxLabel: "No more than" }),
|
|
68
|
+
n.activePanelId === "vendor" && /* @__PURE__ */ o("div", { className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
69
|
+
/* @__PURE__ */ a("p", { className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground", children: "Vendor name" }),
|
|
70
|
+
/* @__PURE__ */ a(y, { type: "text", value: e.vendorName, onChange: (t) => e.onVendorNameChange(t.target.value), placeholder: "Search vendors...", className: "ttw:h-8 ttw:text-xs" }),
|
|
71
|
+
/* @__PURE__ */ a("p", { className: "ttw:text-xs ttw:text-muted-foreground", children: i._("Matches names containing your search") })
|
|
72
|
+
] }),
|
|
73
|
+
n.activePanelId === "attachment" && /* @__PURE__ */ a("div", { className: "ttw:p-3", children: /* @__PURE__ */ a(I, { value: m, onValueChange: h, className: "ttw:flex ttw:flex-col ttw:gap-1", children: [{
|
|
74
|
+
value: "any",
|
|
75
|
+
label: "Any"
|
|
76
|
+
}, {
|
|
77
|
+
value: "has",
|
|
78
|
+
label: "Has attachment"
|
|
79
|
+
}, {
|
|
80
|
+
value: "no",
|
|
81
|
+
label: "No attachment"
|
|
82
|
+
}].map(({
|
|
83
|
+
value: t,
|
|
84
|
+
label: l
|
|
85
|
+
}) => /* @__PURE__ */ o("label", { className: "ttw:flex ttw:items-center ttw:gap-2 ttw:cursor-pointer", children: [
|
|
86
|
+
/* @__PURE__ */ a(S, { value: t }),
|
|
87
|
+
/* @__PURE__ */ a("span", { className: "ttw:text-xs ttw:font-medium", children: l })
|
|
88
|
+
] }, t)) }) })
|
|
89
|
+
] })
|
|
90
|
+
] }), activeChipsSlot: /* @__PURE__ */ o(w, { children: [
|
|
91
|
+
e.activeChips.map((t) => /* @__PURE__ */ a(x, { label: t.label, count: t.count, variant: "default", onLabelClick: t.key === "date" ? () => {
|
|
92
|
+
n.openPanel("date");
|
|
93
|
+
} : void 0, onDismiss: () => e.onDismissChip(t.key) }, t.key)),
|
|
94
|
+
e.activeFilterCount > 0 && /* @__PURE__ */ a("button", { type: "button", className: "ttw:text-xs ttw:text-muted-foreground ttw:hover:text-foreground ttw:transition-colors ttw:cursor-pointer ttw:whitespace-nowrap", onClick: e.onClearAll, children: "Clear all" })
|
|
95
|
+
] }) });
|
|
96
|
+
}
|
|
20
97
|
export {
|
|
21
|
-
|
|
98
|
+
H as PayablesFilterBar
|
|
22
99
|
};
|
|
@@ -1,7 +1,215 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { formatDateRangeFilterChip as D, formatFilterChipMultiSelectValueSegment as C } from "./index97.js";
|
|
2
|
+
import { getCounterpartName as I } from "./index7.js";
|
|
3
|
+
import { useMoniteContext as $ } from "./index57.js";
|
|
4
|
+
import { useCounterpartById as A } from "./index70.js";
|
|
5
|
+
import "@tanstack/react-query";
|
|
6
|
+
import { useState as w, useMemo as l, useCallback as d } from "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import "@lingui/react";
|
|
9
|
+
import { useCurrencies as x } from "./index58.js";
|
|
10
|
+
import { toMinorUnits as E } from "./index119.js";
|
|
11
|
+
import { formatISO as m } from "date-fns";
|
|
12
|
+
import { DATE_PRESETS as _, resolveDatePreset as U } from "./index415.js";
|
|
13
|
+
const v = [{
|
|
14
|
+
value: "draft",
|
|
15
|
+
label: "New"
|
|
16
|
+
}, {
|
|
17
|
+
value: "pending_approval",
|
|
18
|
+
label: "Pending approval"
|
|
19
|
+
}, {
|
|
20
|
+
value: "ready_to_pay",
|
|
21
|
+
label: "Ready to pay"
|
|
22
|
+
}, {
|
|
23
|
+
value: "paid",
|
|
24
|
+
label: "Paid"
|
|
25
|
+
}, {
|
|
26
|
+
value: "cancelled",
|
|
27
|
+
label: "Cancelled"
|
|
28
|
+
}, {
|
|
29
|
+
value: "rejected",
|
|
30
|
+
label: "Rejected"
|
|
31
|
+
}], j = {
|
|
32
|
+
draft: ["draft", "new"],
|
|
33
|
+
pending_approval: ["approve_in_progress"],
|
|
34
|
+
ready_to_pay: ["waiting_to_be_paid", "partially_paid"],
|
|
35
|
+
paid: ["paid"],
|
|
36
|
+
cancelled: ["canceled"],
|
|
37
|
+
rejected: ["rejected"]
|
|
38
|
+
}, R = ["draft", "new", "approve_in_progress", "rejected", "waiting_to_be_paid", "partially_paid", "paid"];
|
|
39
|
+
function h() {
|
|
40
|
+
return {
|
|
41
|
+
search: "",
|
|
42
|
+
activeDateField: "due_date",
|
|
43
|
+
datePreset: void 0,
|
|
44
|
+
dateFrom: void 0,
|
|
45
|
+
dateTo: void 0,
|
|
46
|
+
status: [],
|
|
47
|
+
amountMode: "any",
|
|
48
|
+
amountMin: "",
|
|
49
|
+
amountMax: "",
|
|
50
|
+
vendorName: "",
|
|
51
|
+
hasFile: void 0
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function Q({
|
|
55
|
+
initialCounterpartId: f
|
|
56
|
+
} = {}) {
|
|
57
|
+
const [e, o] = w(() => ({
|
|
58
|
+
...h(),
|
|
59
|
+
counterpartId: f
|
|
60
|
+
})), {
|
|
61
|
+
formatToMinorUnits: u
|
|
62
|
+
} = x(), {
|
|
63
|
+
componentSettings: F
|
|
64
|
+
} = $(), {
|
|
65
|
+
data: b
|
|
66
|
+
} = A(e.counterpartId), c = I(b), p = F.onboarding.allowedCurrencies?.[0] ?? "USD", y = l(() => {
|
|
67
|
+
const a = {}, t = e.activeDateField;
|
|
68
|
+
if (e.dateFrom && (a[`${t}__gte`] = m(e.dateFrom, {
|
|
69
|
+
representation: "date"
|
|
70
|
+
})), e.dateTo && (a[`${t}__lte`] = m(e.dateTo, {
|
|
71
|
+
representation: "date"
|
|
72
|
+
})), e.status.length ? a.status__in = e.status.flatMap((r) => j[r] ?? [r]) : a.status__in = R, e.vendorName && (a.counterpart_name__icontains = e.vendorName), e.counterpartId && (a.counterpart_id = e.counterpartId), e.hasFile !== void 0 && (a.has_file = e.hasFile), e.search && (a.search_text = e.search), e.amountMode !== "any") {
|
|
73
|
+
const r = parseFloat(e.amountMin), s = parseFloat(e.amountMax), i = (n) => u(n, p) ?? E(n, 2);
|
|
74
|
+
if (e.amountMode === "exact") {
|
|
75
|
+
if (!isNaN(r)) {
|
|
76
|
+
const n = i(r);
|
|
77
|
+
a.total_amount__gte = n, a.total_amount__lte = n;
|
|
78
|
+
}
|
|
79
|
+
} else
|
|
80
|
+
isNaN(r) || (a.total_amount__gte = i(r)), isNaN(s) || (a.total_amount__lte = i(s));
|
|
81
|
+
}
|
|
82
|
+
return a;
|
|
83
|
+
}, [e, p, u]), g = l(() => {
|
|
84
|
+
let a = 0;
|
|
85
|
+
return e.status.length && a++, e.vendorName && a++, e.counterpartId && a++, e.hasFile !== void 0 && a++, e.amountMode !== "any" && a++, e.search && a++, a;
|
|
86
|
+
}, [e]), M = l(() => {
|
|
87
|
+
const a = [];
|
|
88
|
+
if (e.dateFrom || e.dateTo) {
|
|
89
|
+
const t = (e.datePreset ? _.find((s) => s.value === e.datePreset)?.label : void 0) ?? D(e.dateFrom, e.dateTo), r = e.activeDateField === "due_date" ? "Due date" : e.activeDateField === "created_at" ? "Created on" : "Issue date";
|
|
90
|
+
a.push({
|
|
91
|
+
key: "date",
|
|
92
|
+
label: `${r}: ${t}`
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (e.status.length) {
|
|
96
|
+
const t = e.status.map((r) => v.find((s) => s.value === r)?.label ?? r);
|
|
97
|
+
a.push({
|
|
98
|
+
key: "status",
|
|
99
|
+
label: `Status: ${C(t)}`
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return e.vendorName && a.push({
|
|
103
|
+
key: "vendor",
|
|
104
|
+
label: `Vendor: ${e.vendorName}`
|
|
105
|
+
}), e.counterpartId && a.push({
|
|
106
|
+
key: "counterpart",
|
|
107
|
+
label: `Vendor: ${c || e.counterpartId}`
|
|
108
|
+
}), e.hasFile === !0 && a.push({
|
|
109
|
+
key: "attachment",
|
|
110
|
+
label: "Has attachment"
|
|
111
|
+
}), e.hasFile === !1 && a.push({
|
|
112
|
+
key: "attachment",
|
|
113
|
+
label: "No attachment"
|
|
114
|
+
}), e.amountMode !== "any" && a.push({
|
|
115
|
+
key: "amount",
|
|
116
|
+
label: "Amount"
|
|
117
|
+
}), e.search && a.push({
|
|
118
|
+
key: "search",
|
|
119
|
+
label: `Search: ${e.search}`
|
|
120
|
+
}), a;
|
|
121
|
+
}, [e, c]), N = d((a) => {
|
|
122
|
+
const {
|
|
123
|
+
from: t,
|
|
124
|
+
to: r
|
|
125
|
+
} = U(a);
|
|
126
|
+
o((s) => ({
|
|
127
|
+
...s,
|
|
128
|
+
datePreset: a,
|
|
129
|
+
dateFrom: t,
|
|
130
|
+
dateTo: r
|
|
131
|
+
}));
|
|
132
|
+
}, []), P = d((a, t) => {
|
|
133
|
+
o((r) => ({
|
|
134
|
+
...r,
|
|
135
|
+
datePreset: void 0,
|
|
136
|
+
dateFrom: a,
|
|
137
|
+
dateTo: t
|
|
138
|
+
}));
|
|
139
|
+
}, []), S = d((a) => {
|
|
140
|
+
o((t) => ({
|
|
141
|
+
...t,
|
|
142
|
+
activeDateField: a
|
|
143
|
+
}));
|
|
144
|
+
}, []), T = d((a) => {
|
|
145
|
+
switch (a) {
|
|
146
|
+
case "date": {
|
|
147
|
+
o((t) => ({
|
|
148
|
+
...t,
|
|
149
|
+
datePreset: void 0,
|
|
150
|
+
dateFrom: void 0,
|
|
151
|
+
dateTo: void 0,
|
|
152
|
+
activeDateField: "due_date"
|
|
153
|
+
}));
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
case "status":
|
|
157
|
+
o((t) => ({
|
|
158
|
+
...t,
|
|
159
|
+
status: []
|
|
160
|
+
}));
|
|
161
|
+
break;
|
|
162
|
+
case "vendor":
|
|
163
|
+
o((t) => ({
|
|
164
|
+
...t,
|
|
165
|
+
vendorName: ""
|
|
166
|
+
}));
|
|
167
|
+
break;
|
|
168
|
+
case "counterpart":
|
|
169
|
+
o((t) => ({
|
|
170
|
+
...t,
|
|
171
|
+
counterpartId: void 0
|
|
172
|
+
}));
|
|
173
|
+
break;
|
|
174
|
+
case "attachment":
|
|
175
|
+
o((t) => ({
|
|
176
|
+
...t,
|
|
177
|
+
hasFile: void 0
|
|
178
|
+
}));
|
|
179
|
+
break;
|
|
180
|
+
case "amount":
|
|
181
|
+
o((t) => ({
|
|
182
|
+
...t,
|
|
183
|
+
amountMode: "any",
|
|
184
|
+
amountMin: "",
|
|
185
|
+
amountMax: ""
|
|
186
|
+
}));
|
|
187
|
+
break;
|
|
188
|
+
case "search":
|
|
189
|
+
o((t) => ({
|
|
190
|
+
...t,
|
|
191
|
+
search: ""
|
|
192
|
+
}));
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}, []), k = d(() => o(h()), []);
|
|
196
|
+
return {
|
|
197
|
+
state: e,
|
|
198
|
+
setState: o,
|
|
199
|
+
queryParams: y,
|
|
200
|
+
activeFilterCount: g,
|
|
201
|
+
activeChips: M,
|
|
202
|
+
datePresets: _,
|
|
203
|
+
statusOptions: v,
|
|
204
|
+
setDatePreset: N,
|
|
205
|
+
setDateRange: P,
|
|
206
|
+
setActiveDateField: S,
|
|
207
|
+
clearFilter: T,
|
|
208
|
+
clearAll: k
|
|
209
|
+
};
|
|
210
|
+
}
|
|
5
211
|
export {
|
|
6
|
-
|
|
212
|
+
R as AP_DEFAULT_STATUSES,
|
|
213
|
+
v as AP_STATUS_OPTIONS,
|
|
214
|
+
Q as usePayablesFilter
|
|
7
215
|
};
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
const s = (
|
|
1
|
+
const s = ({
|
|
2
|
+
lineItems: t,
|
|
3
|
+
paymentTermsId: a,
|
|
4
|
+
memo: o,
|
|
5
|
+
footer: n,
|
|
6
|
+
bankAccountId: r,
|
|
7
|
+
bankAccountType: m,
|
|
8
|
+
taxMode: d,
|
|
9
|
+
purchaseOrder: c,
|
|
10
|
+
taxRate: i
|
|
11
|
+
}) => ({
|
|
12
|
+
payment_terms_id: a,
|
|
13
|
+
line_items: (t ?? []).map((e) => ({
|
|
14
|
+
...e,
|
|
15
|
+
id: e.id || `temp-${Math.random().toString(36).substr(2, 9)}`
|
|
16
|
+
})),
|
|
17
|
+
memo: o,
|
|
18
|
+
footer: n,
|
|
19
|
+
bank_account_id: r,
|
|
20
|
+
bank_account_type: m,
|
|
21
|
+
tax_mode: d,
|
|
22
|
+
purchase_order: c || void 0,
|
|
23
|
+
tax_rate: i
|
|
24
|
+
});
|
|
2
25
|
export {
|
|
3
|
-
s as
|
|
26
|
+
s as buildInvoicePreviewData
|
|
4
27
|
};
|
|
@@ -1,98 +1,130 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
representativeStatus: "rejected"
|
|
27
|
-
}, {
|
|
28
|
-
groupStatus: "ready_to_pay",
|
|
29
|
-
apiStatuses: ["waiting_to_be_paid", "partially_paid"],
|
|
30
|
-
representativeStatus: "waiting_to_be_paid"
|
|
31
|
-
}, {
|
|
32
|
-
groupStatus: "paid",
|
|
33
|
-
apiStatuses: ["paid"],
|
|
34
|
-
representativeStatus: "paid"
|
|
35
|
-
}, {
|
|
36
|
-
groupStatus: "cancelled",
|
|
37
|
-
apiStatuses: ["canceled"],
|
|
38
|
-
representativeStatus: "canceled"
|
|
39
|
-
}], O = ({
|
|
40
|
-
onChangeFilter: o,
|
|
41
|
-
selectedStatus: s
|
|
1
|
+
import { jsxs as i, jsx as t, Fragment as z } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CreateCounterpartDialog as B } from "./index151.js";
|
|
3
|
+
import { CounterpartSelector as U } from "./index416.js";
|
|
4
|
+
import { getCounterpartName as P, getCounterpartEmail as R } from "./index7.js";
|
|
5
|
+
import "./index57.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import { useCounterpartAddresses as W } from "./index72.js";
|
|
8
|
+
import { useRef as q, useState as F, useCallback as G, useEffect as k } from "react";
|
|
9
|
+
import "react-hot-toast";
|
|
10
|
+
import { useLingui as H } from "@lingui/react";
|
|
11
|
+
import { useFormContext as J, Controller as K } from "react-hook-form";
|
|
12
|
+
import { CounterpartDetails as Q } from "./index2.js";
|
|
13
|
+
import { Typography as f } from "./index85.js";
|
|
14
|
+
import { Avatar as X, AvatarFallback as Y } from "./index417.js";
|
|
15
|
+
import { Field as Z, FieldContent as tt, FieldLabel as et, FieldError as rt } from "./index154.js";
|
|
16
|
+
import { Input as at } from "./index123.js";
|
|
17
|
+
import { Button as b } from "./index84.js";
|
|
18
|
+
import { Separator as it } from "./index135.js";
|
|
19
|
+
import { Plus as ot } from "lucide-react";
|
|
20
|
+
const Et = ({
|
|
21
|
+
disabled: d,
|
|
22
|
+
canCreateCounterpart: _,
|
|
23
|
+
isEditCustomerOpen: m,
|
|
24
|
+
handleOpenEditCustomer: A,
|
|
25
|
+
counterpart: a
|
|
42
26
|
}) => {
|
|
43
27
|
const {
|
|
44
|
-
i18n:
|
|
45
|
-
} =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} = x(), {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
28
|
+
i18n: s
|
|
29
|
+
} = H(), {
|
|
30
|
+
watch: l,
|
|
31
|
+
setValue: e,
|
|
32
|
+
control: S,
|
|
33
|
+
clearErrors: j
|
|
34
|
+
} = J(), o = l("counterpart_id"), g = q(o), x = l("default_billing_address_id"), y = l("default_shipping_address_id"), {
|
|
35
|
+
data: c
|
|
36
|
+
} = W(a?.id), [v, N] = F(!1), [E, h] = F(!1), D = !!o, w = P(a), I = R(a), O = w ? Array.from(w)[0]?.toUpperCase() ?? "?" : "?", C = l("counterpart_name") ?? "", $ = l("counterpart_email") ?? "", T = () => {
|
|
37
|
+
e("counterpart_id", ""), e("counterpart_name", ""), e("counterpart_email", "");
|
|
38
|
+
}, V = G((r) => {
|
|
39
|
+
const n = {
|
|
40
|
+
email: $,
|
|
41
|
+
phone: "",
|
|
42
|
+
isCustomer: !0,
|
|
43
|
+
isVendor: !1,
|
|
44
|
+
line1: "",
|
|
45
|
+
line2: "",
|
|
46
|
+
city: "",
|
|
47
|
+
state: "",
|
|
48
|
+
postalCode: "",
|
|
49
|
+
country: "US"
|
|
50
|
+
};
|
|
51
|
+
if (r === "individual") {
|
|
52
|
+
const p = C.trim(), u = p.indexOf(" "), L = u === -1 ? p : p.slice(0, u), M = u === -1 ? "" : p.slice(u + 1);
|
|
66
53
|
return {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
54
|
+
tax_id: "",
|
|
55
|
+
counterpart: {
|
|
56
|
+
...n,
|
|
57
|
+
firstName: L,
|
|
58
|
+
lastName: M
|
|
59
|
+
}
|
|
70
60
|
};
|
|
71
|
-
|
|
61
|
+
}
|
|
72
62
|
return {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
tax_id: "",
|
|
64
|
+
counterpart: {
|
|
65
|
+
...n,
|
|
66
|
+
companyName: C
|
|
67
|
+
}
|
|
76
68
|
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
69
|
+
}, [C, $]);
|
|
70
|
+
return k(() => {
|
|
71
|
+
g.current !== o && (g.current = o, e("default_billing_address_id", ""), e("default_shipping_address_id", ""));
|
|
72
|
+
}, [o, e]), k(() => {
|
|
73
|
+
if (c?.data?.length && !(!a || a.id !== o)) {
|
|
74
|
+
if (!x) {
|
|
75
|
+
const r = a.default_billing_address_id || (c.data.length === 1 ? c.data[0].id : "");
|
|
76
|
+
e("default_billing_address_id", r);
|
|
77
|
+
}
|
|
78
|
+
if (!y) {
|
|
79
|
+
const r = a.default_shipping_address_id || "";
|
|
80
|
+
e("default_shipping_address_id", r);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, [c, e, a, o, x, y]), /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
84
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
|
|
85
|
+
/* @__PURE__ */ t(f, { variant: "h4", children: s._("Customer details") }),
|
|
86
|
+
/* @__PURE__ */ t(f, { variant: "body2", color: "muted", className: "ttw:font-medium", children: s._("Who are you billing?") })
|
|
87
|
+
] }),
|
|
88
|
+
D ? /* @__PURE__ */ i("div", { className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl", children: [
|
|
89
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-5", children: [
|
|
90
|
+
/* @__PURE__ */ t(X, { className: "ttw:size-16", children: /* @__PURE__ */ t(Y, { className: "ttw:text-sm ttw:font-normal", children: O }) }),
|
|
91
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
92
|
+
/* @__PURE__ */ t(f, { variant: "body1", className: "ttw:font-medium", children: w }),
|
|
93
|
+
/* @__PURE__ */ t(f, { variant: "body2", color: "muted", children: I })
|
|
94
|
+
] })
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center", children: [
|
|
97
|
+
/* @__PURE__ */ t(b, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", disabled: d, onClick: () => N(!0), children: s._("View details") }),
|
|
98
|
+
/* @__PURE__ */ t(it, { orientation: "vertical", className: "ttw:h-6!" }),
|
|
99
|
+
/* @__PURE__ */ t(b, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", disabled: d, onClick: T, children: s._("Clear") })
|
|
100
|
+
] })
|
|
101
|
+
] }) : /* @__PURE__ */ i(z, { children: [
|
|
102
|
+
/* @__PURE__ */ t(U, { disabled: d, canCreateCounterpart: _ }),
|
|
103
|
+
_ && /* @__PURE__ */ t(K, { name: "counterpart_email", control: S, render: ({
|
|
104
|
+
field: r,
|
|
105
|
+
fieldState: {
|
|
106
|
+
error: n
|
|
107
|
+
}
|
|
108
|
+
}) => /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ i(tt, { children: [
|
|
109
|
+
/* @__PURE__ */ t(et, { htmlFor: r.name, children: s._("Email") }),
|
|
110
|
+
/* @__PURE__ */ t(at, { ...r, id: r.name, type: "email", disabled: d, "aria-invalid": !!n }),
|
|
111
|
+
/* @__PURE__ */ t(rt, { errors: n ? [n] : [] })
|
|
112
|
+
] }) }) }),
|
|
113
|
+
_ && /* @__PURE__ */ i(b, { onClick: () => h(!0), type: "button", variant: "ghost", disabled: d, className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit", children: [
|
|
114
|
+
/* @__PURE__ */ t(ot, {}),
|
|
115
|
+
s._("Add more details including address, phone, etc.")
|
|
116
|
+
] })
|
|
117
|
+
] }),
|
|
118
|
+
E && /* @__PURE__ */ t(B, { open: E, onClose: () => {
|
|
119
|
+
h(!1);
|
|
120
|
+
}, onCreate: (r) => {
|
|
121
|
+
h(!1), e("counterpart_id", r), e("counterpart_name", ""), e("counterpart_email", ""), j(["counterpart_id", "counterpart_email"]);
|
|
122
|
+
}, getCounterpartDefaultValues: V, customerType: "customer" }),
|
|
123
|
+
(m || v) && /* @__PURE__ */ t(Q, { counterpartId: a?.id || "", open: m || v, onClose: () => {
|
|
124
|
+
m && A(!1), N(!1);
|
|
125
|
+
}, isEditMode: m, showActionsMenu: !1, customerType: "customer" })
|
|
126
|
+
] });
|
|
95
127
|
};
|
|
96
128
|
export {
|
|
97
|
-
|
|
129
|
+
Et as CustomerSection
|
|
98
130
|
};
|