@tesouro/embedded-components-react 0.5.182 → 0.5.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +49 -36
- package/dist/index.d.ts +30 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +30 -1
- package/dist/lib/WidgetSuite.d.ts +30 -1
- package/dist/lib/monite-sdk.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +24 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +44 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +13 -36
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +339 -301
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +2 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +95 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +287 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +49 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +66 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +100 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +89 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +15 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +67 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +8 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +67 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +165 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +36 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +184 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +89 -257
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +98 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +257 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +183 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +127 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +3 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +34 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +38 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +46 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +47 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +4 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +3 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +21 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +4 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +32 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +73 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +134 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +211 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +8 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +7 -348
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +13 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +349 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +15 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +115 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +32 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +4 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +4 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +24 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +49 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.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/index244.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +3 -3
- 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/index257.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +26 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +1 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +83 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +38 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +80 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +22 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +48 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +47 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +17 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +4 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +21 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +70 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +11 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +25 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +104 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +255 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +108 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +150 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +28 -93
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +188 -181
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
- 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 +97 -73
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -55
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +1 -0
- package/package.json +1 -1
|
@@ -1,185 +1,100 @@
|
|
|
1
|
+
import { Button as e } from "./index57.js";
|
|
2
|
+
import { Typography as t } from "./index63.js";
|
|
3
|
+
import { CounterpartAddressFormContent as n } from "./index114.js";
|
|
4
|
+
import { CounterpartAddressForm as r } from "./index115.js";
|
|
5
|
+
import { useState as i } from "react";
|
|
6
|
+
import { Plus as a } from "lucide-react";
|
|
7
|
+
import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { useLingui as l } from "@lingui/react";
|
|
9
|
+
import { twMerge as u } from "tailwind-merge";
|
|
1
10
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
kj: "kj",
|
|
91
|
-
ku: "ku",
|
|
92
|
-
lo: "lo",
|
|
93
|
-
la: "la",
|
|
94
|
-
lv: "lv",
|
|
95
|
-
li: "li",
|
|
96
|
-
ln: "ln",
|
|
97
|
-
lt: "lt",
|
|
98
|
-
lu: "lu",
|
|
99
|
-
lb: "lb",
|
|
100
|
-
mk: "mk",
|
|
101
|
-
mg: "mg",
|
|
102
|
-
ms: "ms",
|
|
103
|
-
ml: "ml",
|
|
104
|
-
mt: "mt",
|
|
105
|
-
gv: "gv",
|
|
106
|
-
mi: "mi",
|
|
107
|
-
mr: "mr",
|
|
108
|
-
mh: "mh",
|
|
109
|
-
mn: "mn",
|
|
110
|
-
na: "na",
|
|
111
|
-
nv: "nv",
|
|
112
|
-
nd: "nd",
|
|
113
|
-
nr: "nr",
|
|
114
|
-
ng: "ng",
|
|
115
|
-
ne: "ne",
|
|
116
|
-
no: "no",
|
|
117
|
-
nb: "nb",
|
|
118
|
-
nn: "nn",
|
|
119
|
-
ii: "ii",
|
|
120
|
-
oc: "oc",
|
|
121
|
-
oj: "oj",
|
|
122
|
-
om: "om",
|
|
123
|
-
os: "os",
|
|
124
|
-
pi: "pi",
|
|
125
|
-
ps: "ps",
|
|
126
|
-
fa: "fa",
|
|
127
|
-
pl: "pl",
|
|
128
|
-
pt: "pt",
|
|
129
|
-
pa: "pa",
|
|
130
|
-
qu: "qu",
|
|
131
|
-
ro: "ro",
|
|
132
|
-
rm: "rm",
|
|
133
|
-
rn: "rn",
|
|
134
|
-
ru: "ru",
|
|
135
|
-
se: "se",
|
|
136
|
-
sm: "sm",
|
|
137
|
-
sg: "sg",
|
|
138
|
-
sa: "sa",
|
|
139
|
-
sc: "sc",
|
|
140
|
-
sr: "sr",
|
|
141
|
-
sn: "sn",
|
|
142
|
-
sd: "sd",
|
|
143
|
-
si: "si",
|
|
144
|
-
sk: "sk",
|
|
145
|
-
sl: "sl",
|
|
146
|
-
so: "so",
|
|
147
|
-
st: "st",
|
|
148
|
-
es: "es",
|
|
149
|
-
su: "su",
|
|
150
|
-
sw: "sw",
|
|
151
|
-
ss: "ss",
|
|
152
|
-
sv: "sv",
|
|
153
|
-
tl: "tl",
|
|
154
|
-
ty: "ty",
|
|
155
|
-
tg: "tg",
|
|
156
|
-
ta: "ta",
|
|
157
|
-
tt: "tt",
|
|
158
|
-
te: "te",
|
|
159
|
-
th: "th",
|
|
160
|
-
bo: "bo",
|
|
161
|
-
ti: "ti",
|
|
162
|
-
to: "to",
|
|
163
|
-
ts: "ts",
|
|
164
|
-
tn: "tn",
|
|
165
|
-
tr: "tr",
|
|
166
|
-
tk: "tk",
|
|
167
|
-
tw: "tw",
|
|
168
|
-
ug: "ug",
|
|
169
|
-
uk: "uk",
|
|
170
|
-
ur: "ur",
|
|
171
|
-
uz: "uz",
|
|
172
|
-
ve: "ve",
|
|
173
|
-
vi: "vi",
|
|
174
|
-
vo: "vo",
|
|
175
|
-
wa: "wa",
|
|
176
|
-
cy: "cy",
|
|
177
|
-
wo: "wo",
|
|
178
|
-
xh: "xh",
|
|
179
|
-
yi: "yi",
|
|
180
|
-
yo: "yo",
|
|
181
|
-
za: "za",
|
|
182
|
-
zu: "zu"
|
|
183
|
-
});
|
|
11
|
+
var d = ({ isStandalone: d, counterpartId: f, counterpartAddress: p, isUpdateAllowed: m, isLoading: h, customerType: g }) => {
|
|
12
|
+
let { i18n: _ } = l(), [v, y] = i(!d), b = !!p, x = p?.city || "", S = p?.state || "", C = p?.postal_code || "", w = () => {
|
|
13
|
+
y(!1);
|
|
14
|
+
};
|
|
15
|
+
return v ? /* @__PURE__ */ s(o, { children: d && f ? /* @__PURE__ */ s(o, { children: p ? /* @__PURE__ */ s(r, {
|
|
16
|
+
address: p,
|
|
17
|
+
handleClose: w,
|
|
18
|
+
counterpartId: f,
|
|
19
|
+
onUpdate: w,
|
|
20
|
+
isStandalone: !0,
|
|
21
|
+
customerType: g
|
|
22
|
+
}) : /* @__PURE__ */ s(r, {
|
|
23
|
+
handleClose: w,
|
|
24
|
+
counterpartId: f,
|
|
25
|
+
onCreate: w,
|
|
26
|
+
isStandalone: !0,
|
|
27
|
+
customerType: g
|
|
28
|
+
}) }) : /* @__PURE__ */ s(n, {
|
|
29
|
+
hasExistingAddress: !1,
|
|
30
|
+
isLoading: h,
|
|
31
|
+
isStandalone: !1,
|
|
32
|
+
customerType: g
|
|
33
|
+
}) }) : /* @__PURE__ */ c("div", {
|
|
34
|
+
className: "ttw:flex ttw:flex-col",
|
|
35
|
+
children: [/* @__PURE__ */ c("div", {
|
|
36
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7",
|
|
37
|
+
children: [/* @__PURE__ */ c(t, {
|
|
38
|
+
variant: "body1",
|
|
39
|
+
className: "ttw:font-medium",
|
|
40
|
+
children: [
|
|
41
|
+
_._("Address"),
|
|
42
|
+
" ",
|
|
43
|
+
/* @__PURE__ */ s("span", {
|
|
44
|
+
className: "ttw:text-muted-foreground",
|
|
45
|
+
children: _._("(optional)")
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
}), b && m && /* @__PURE__ */ s(e, {
|
|
49
|
+
type: "button",
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent",
|
|
52
|
+
onClick: () => y(!0),
|
|
53
|
+
children: _._("Edit")
|
|
54
|
+
})]
|
|
55
|
+
}), /* @__PURE__ */ s("div", {
|
|
56
|
+
className: u("ttw:flex ttw:items-start ttw:rounded-lg", b ? "ttw:border-none" : "ttw:border ttw:border-border ttw:p-3"),
|
|
57
|
+
children: b ? /* @__PURE__ */ c("div", {
|
|
58
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ s(t, {
|
|
61
|
+
variant: "body2",
|
|
62
|
+
className: "ttw:font-medium",
|
|
63
|
+
children: p?.line1
|
|
64
|
+
}),
|
|
65
|
+
p?.line2 && /* @__PURE__ */ s(t, {
|
|
66
|
+
variant: "body2",
|
|
67
|
+
className: "ttw:font-medium",
|
|
68
|
+
children: p.line2
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ s(t, {
|
|
71
|
+
variant: "body2",
|
|
72
|
+
className: "ttw:font-medium",
|
|
73
|
+
children: `${x && x}${x && (S || C) && ","} ${S && S} ${C && C}`
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ s(t, {
|
|
76
|
+
variant: "body2",
|
|
77
|
+
className: "ttw:font-medium",
|
|
78
|
+
children: p?.country
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
}) : /* @__PURE__ */ c("div", {
|
|
82
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
83
|
+
children: [/* @__PURE__ */ s(t, {
|
|
84
|
+
variant: "body2",
|
|
85
|
+
className: "ttw:leading-5",
|
|
86
|
+
children: _._("No address on file")
|
|
87
|
+
}), /* @__PURE__ */ c(e, {
|
|
88
|
+
type: "button",
|
|
89
|
+
variant: "ghost",
|
|
90
|
+
className: "ttw:text-primary ttw:hover:text-primary/70 ttw:w-fit ttw:px-0 ttw:has-[>svg]:px-0 ttw:py-2 ttw:hover:bg-transparent",
|
|
91
|
+
onClick: () => y(!0),
|
|
92
|
+
disabled: h,
|
|
93
|
+
children: [/* @__PURE__ */ s(a, {}), _._("Add address")]
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
};
|
|
184
99
|
//#endregion
|
|
185
|
-
export {
|
|
100
|
+
export { d as CounterpartAddressSection };
|
|
@@ -1,130 +1,262 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { useLingui as m } from "@lingui/react";
|
|
15
|
-
import { FormProvider as h, useForm as g } from "react-hook-form";
|
|
16
|
-
import { zodResolver as _ } from "@hookform/resolvers/zod";
|
|
1
|
+
import { Input as e } from "./index90.js";
|
|
2
|
+
import { Typography as t } from "./index63.js";
|
|
3
|
+
import { Label as n } from "./index88.js";
|
|
4
|
+
import { Field as r, FieldContent as i, FieldDescription as a, FieldError as o, FieldLabel as s } from "./index89.js";
|
|
5
|
+
import { CounterpartBankSection as c } from "./index106.js";
|
|
6
|
+
import { CounterpartAddressSection as l } from "./index116.js";
|
|
7
|
+
import { RadioGroup as u, RadioGroupItem as d } from "./index91.js";
|
|
8
|
+
import { Checkbox as f } from "./index107.js";
|
|
9
|
+
import { useRef as p } from "react";
|
|
10
|
+
import { jsx as m, jsxs as h } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { useLingui as g } from "@lingui/react";
|
|
12
|
+
import { twMerge as _ } from "tailwind-merge";
|
|
13
|
+
import { Controller as v, useFormContext as y } from "react-hook-form";
|
|
17
14
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js
|
|
18
|
-
var
|
|
19
|
-
let { i18n:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
postalCode: b?.postal_code,
|
|
35
|
-
firstName: P,
|
|
36
|
-
lastName: N,
|
|
37
|
-
companyName: P
|
|
38
|
-
}), [y, b]), I = g({
|
|
39
|
-
resolver: _(a(C, A, v)),
|
|
40
|
-
defaultValues: F
|
|
41
|
-
}), L = c((t) => {
|
|
42
|
-
t.preventDefault(), t.stopPropagation(), I.handleSubmit(async (t) => {
|
|
43
|
-
let n = s.find((e) => e === C.locale.split("-")[0]) ?? "en", r = {
|
|
44
|
-
city: t.city,
|
|
45
|
-
country: t.country,
|
|
46
|
-
line1: t.line1,
|
|
47
|
-
line2: t.line2,
|
|
48
|
-
state: t.state,
|
|
49
|
-
postal_code: t.postalCode
|
|
50
|
-
}, i = t.city !== b?.city || t.country !== b?.country || t.line1 !== b?.line1 || (t.line2 ?? "") !== (b?.line2 ?? "") || t.state !== b?.state || t.postalCode !== b?.postal_code, a = {
|
|
51
|
-
reminders_enabled: t.remindersEnabled,
|
|
52
|
-
is_customer: y.is_customer,
|
|
53
|
-
is_vendor: y.is_vendor,
|
|
54
|
-
tax_id: t.tax_id
|
|
55
|
-
};
|
|
56
|
-
if (t.remindersEnabled !== !!y.reminders_enabled || t.tax_id !== (y.tax_id ?? "") || t.phone !== M || t.email !== j || A === "organization" && t.companyName !== P || A === "individual" && t.firstName !== P || A === "individual" && t.lastName !== N) {
|
|
57
|
-
i && await D(r);
|
|
58
|
-
let e = A === "individual" ? {
|
|
59
|
-
...a,
|
|
60
|
-
individual: {
|
|
61
|
-
first_name: t.firstName,
|
|
62
|
-
last_name: t.lastName,
|
|
63
|
-
phone: t.phone,
|
|
64
|
-
email: t.email
|
|
65
|
-
}
|
|
66
|
-
} : {
|
|
67
|
-
...a,
|
|
68
|
-
language: y.language ?? n,
|
|
69
|
-
organization: {
|
|
70
|
-
legal_name: t.companyName,
|
|
71
|
-
phone: t.phone,
|
|
72
|
-
email: t.email
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
return T({
|
|
76
|
-
path: { counterpart_id: y.id },
|
|
77
|
-
body: e
|
|
78
|
-
}, { onSuccess: ({ id: e }) => {
|
|
79
|
-
S && S(e);
|
|
80
|
-
} });
|
|
81
|
-
}
|
|
82
|
-
return D(r, { onSuccess: () => {
|
|
83
|
-
p.success(C._("{name} has been updated.", { name: e(y) })), S && S(y.id);
|
|
84
|
-
} });
|
|
85
|
-
})(t);
|
|
86
|
-
}, [
|
|
87
|
-
T,
|
|
88
|
-
D,
|
|
89
|
-
p,
|
|
90
|
-
e,
|
|
91
|
-
S,
|
|
92
|
-
A,
|
|
93
|
-
I.handleSubmit,
|
|
94
|
-
C,
|
|
95
|
-
P,
|
|
96
|
-
M,
|
|
97
|
-
j,
|
|
98
|
-
N
|
|
99
|
-
]);
|
|
100
|
-
return /* @__PURE__ */ d(h, {
|
|
101
|
-
...I,
|
|
102
|
-
children: /* @__PURE__ */ f("form", {
|
|
103
|
-
id: w,
|
|
104
|
-
onSubmit: L,
|
|
105
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100",
|
|
106
|
-
children: [/* @__PURE__ */ d(o, {
|
|
107
|
-
counterpartType: A,
|
|
108
|
-
isLoading: E,
|
|
109
|
-
isEditMode: !0,
|
|
110
|
-
customerType: v
|
|
111
|
-
}), /* @__PURE__ */ f("div", {
|
|
112
|
-
className: "ttw:flex ttw:gap-4 ttw:pt-6",
|
|
113
|
-
children: [/* @__PURE__ */ d(t, {
|
|
114
|
-
type: "button",
|
|
115
|
-
variant: "outline",
|
|
116
|
-
className: "ttw:border-border ttw:flex-1",
|
|
117
|
-
onClick: x,
|
|
118
|
-
children: C._("Cancel")
|
|
119
|
-
}), /* @__PURE__ */ f(t, {
|
|
120
|
-
type: "submit",
|
|
121
|
-
className: "ttw:flex-1",
|
|
122
|
-
disabled: k || !I.formState.isDirty && y.type === A,
|
|
123
|
-
children: [k && /* @__PURE__ */ d(n, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), C._("Save")]
|
|
15
|
+
var b = ({ handleChangeCounterpartType: b, counterpartType: x, isLoading: S, customerType: C, isEditMode: w }) => {
|
|
16
|
+
let { i18n: T } = g(), { control: E } = y(), D = p(null), O = C === "vendor";
|
|
17
|
+
return /* @__PURE__ */ h("div", {
|
|
18
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
19
|
+
ref: D,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ h("div", {
|
|
22
|
+
className: _("ttw:flex ttw:flex-col ttw:gap-1.5", w && "ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border"),
|
|
23
|
+
children: [/* @__PURE__ */ m(t, {
|
|
24
|
+
variant: "body1",
|
|
25
|
+
className: "ttw:font-medium",
|
|
26
|
+
children: w ? T._("Editing {customerType} details", { customerType: C }) : T._("{customerType} details", { customerType: O ? "Vendor" : "Customer" })
|
|
27
|
+
}), !w && /* @__PURE__ */ m(t, {
|
|
28
|
+
variant: "body2",
|
|
29
|
+
color: "muted",
|
|
30
|
+
children: O ? T._("Who are you paying?") : T._("Who are you billing?")
|
|
124
31
|
})]
|
|
125
|
-
})
|
|
126
|
-
|
|
32
|
+
}),
|
|
33
|
+
!w && /* @__PURE__ */ h("div", {
|
|
34
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
35
|
+
children: [/* @__PURE__ */ m(s, { children: T._("{customerType} type", { customerType: O ? "Vendor" : "Customer" }) }), /* @__PURE__ */ h(u, {
|
|
36
|
+
className: "ttw:flex",
|
|
37
|
+
value: x,
|
|
38
|
+
disabled: S,
|
|
39
|
+
onValueChange: (e) => b?.(e),
|
|
40
|
+
children: [/* @__PURE__ */ h("div", {
|
|
41
|
+
className: _("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", x === "organization" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
42
|
+
children: [/* @__PURE__ */ m(d, {
|
|
43
|
+
value: "organization",
|
|
44
|
+
id: "organization",
|
|
45
|
+
className: _(x === "organization" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
46
|
+
dotClassName: _(x === "organization" && "ttw:fill-white"),
|
|
47
|
+
disabled: S
|
|
48
|
+
}), /* @__PURE__ */ h(n, {
|
|
49
|
+
htmlFor: "organization",
|
|
50
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
51
|
+
children: [/* @__PURE__ */ m(t, {
|
|
52
|
+
variant: "body2",
|
|
53
|
+
className: "ttw:leading-3.5",
|
|
54
|
+
children: T._("Business")
|
|
55
|
+
}), /* @__PURE__ */ m(t, {
|
|
56
|
+
variant: "caption",
|
|
57
|
+
color: "muted",
|
|
58
|
+
children: T._("A company or organization")
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
}), /* @__PURE__ */ h("div", {
|
|
62
|
+
className: _("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", x === "individual" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
63
|
+
children: [/* @__PURE__ */ m(d, {
|
|
64
|
+
value: "individual",
|
|
65
|
+
id: "individual",
|
|
66
|
+
className: _(x === "individual" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
67
|
+
dotClassName: _(x === "individual" && "ttw:fill-white"),
|
|
68
|
+
disabled: S
|
|
69
|
+
}), /* @__PURE__ */ h(n, {
|
|
70
|
+
htmlFor: "individual",
|
|
71
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
72
|
+
children: [/* @__PURE__ */ m(t, {
|
|
73
|
+
variant: "body2",
|
|
74
|
+
className: "ttw:leading-3.5",
|
|
75
|
+
children: T._("Person")
|
|
76
|
+
}), /* @__PURE__ */ m(t, {
|
|
77
|
+
variant: "caption",
|
|
78
|
+
color: "muted",
|
|
79
|
+
children: T._("An individual or contractor")
|
|
80
|
+
})]
|
|
81
|
+
})]
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
85
|
+
x === "individual" ? /* @__PURE__ */ h("div", {
|
|
86
|
+
className: "ttw:flex ttw:gap-4",
|
|
87
|
+
children: [/* @__PURE__ */ m(v, {
|
|
88
|
+
name: "firstName",
|
|
89
|
+
control: E,
|
|
90
|
+
render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
|
|
91
|
+
/* @__PURE__ */ m(s, {
|
|
92
|
+
htmlFor: t.name,
|
|
93
|
+
children: T._("First name")
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ m(e, {
|
|
96
|
+
className: w ? "ttw:bg-white" : "",
|
|
97
|
+
id: t.name,
|
|
98
|
+
...t,
|
|
99
|
+
disabled: S,
|
|
100
|
+
"aria-invalid": !!n || void 0
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ m(o, { errors: [n] })
|
|
103
|
+
] }) })
|
|
104
|
+
}), /* @__PURE__ */ m(v, {
|
|
105
|
+
name: "lastName",
|
|
106
|
+
control: E,
|
|
107
|
+
render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
|
|
108
|
+
/* @__PURE__ */ m(s, {
|
|
109
|
+
htmlFor: t.name,
|
|
110
|
+
children: T._("Last name")
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ m(e, {
|
|
113
|
+
id: t.name,
|
|
114
|
+
...t,
|
|
115
|
+
className: w ? "ttw:bg-white" : "",
|
|
116
|
+
disabled: S,
|
|
117
|
+
"aria-invalid": !!n || void 0
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ m(o, { errors: [n] })
|
|
120
|
+
] }) })
|
|
121
|
+
})]
|
|
122
|
+
}) : /* @__PURE__ */ m(v, {
|
|
123
|
+
name: "companyName",
|
|
124
|
+
control: E,
|
|
125
|
+
render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
|
|
126
|
+
/* @__PURE__ */ m(s, {
|
|
127
|
+
htmlFor: t.name,
|
|
128
|
+
children: T._("Business name")
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ m(e, {
|
|
131
|
+
id: t.name,
|
|
132
|
+
...t,
|
|
133
|
+
className: w ? "ttw:bg-white" : "",
|
|
134
|
+
disabled: S,
|
|
135
|
+
"aria-invalid": !!n || void 0
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ m(o, { errors: [n] })
|
|
138
|
+
] }) })
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ h("div", {
|
|
141
|
+
className: _("ttw:flex ttw:gap-4", O ? "ttw:flex-row" : "ttw:flex-col"),
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ m(v, {
|
|
144
|
+
name: "email",
|
|
145
|
+
control: E,
|
|
146
|
+
render: ({ field: t, fieldState: { error: n } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
|
|
147
|
+
/* @__PURE__ */ m(s, {
|
|
148
|
+
htmlFor: t.name,
|
|
149
|
+
children: T._("Email")
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ m(e, {
|
|
152
|
+
id: t.name,
|
|
153
|
+
...t,
|
|
154
|
+
className: w ? "ttw:bg-white" : "",
|
|
155
|
+
disabled: S,
|
|
156
|
+
"aria-invalid": !!n || void 0
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ m(o, { errors: [n] })
|
|
159
|
+
] }) })
|
|
160
|
+
}),
|
|
161
|
+
!O && /* @__PURE__ */ m(v, {
|
|
162
|
+
name: "remindersEnabled",
|
|
163
|
+
control: E,
|
|
164
|
+
render: ({ field: e }) => /* @__PURE__ */ m(r, {
|
|
165
|
+
orientation: "horizontal",
|
|
166
|
+
children: /* @__PURE__ */ h(i, {
|
|
167
|
+
className: "ttw:flex-row",
|
|
168
|
+
children: [/* @__PURE__ */ m(f, {
|
|
169
|
+
id: e.name,
|
|
170
|
+
ref: e.ref,
|
|
171
|
+
checked: e.value,
|
|
172
|
+
onCheckedChange: e.onChange,
|
|
173
|
+
onBlur: e.onBlur,
|
|
174
|
+
disabled: S
|
|
175
|
+
}), /* @__PURE__ */ m(s, {
|
|
176
|
+
htmlFor: e.name,
|
|
177
|
+
className: "ttw:font-normal ttw:leading-4",
|
|
178
|
+
children: T._("Send reminders to this email when an invoice is approaching its due date")
|
|
179
|
+
})]
|
|
180
|
+
})
|
|
181
|
+
})
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ m(v, {
|
|
184
|
+
name: "phone",
|
|
185
|
+
control: E,
|
|
186
|
+
render: ({ field: n, fieldState: { error: a } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
|
|
187
|
+
/* @__PURE__ */ h(s, {
|
|
188
|
+
htmlFor: n.name,
|
|
189
|
+
className: "ttw:gap-1",
|
|
190
|
+
children: [T._("Phone"), /* @__PURE__ */ m(t, {
|
|
191
|
+
variant: "body2",
|
|
192
|
+
color: "muted",
|
|
193
|
+
className: "ttw:leading-snug",
|
|
194
|
+
children: T._("(optional)")
|
|
195
|
+
})]
|
|
196
|
+
}),
|
|
197
|
+
/* @__PURE__ */ m(e, {
|
|
198
|
+
id: n.name,
|
|
199
|
+
...n,
|
|
200
|
+
className: w ? "ttw:bg-white" : "",
|
|
201
|
+
disabled: S,
|
|
202
|
+
"aria-invalid": !!a || void 0
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ m(o, { errors: [a] })
|
|
205
|
+
] }) })
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ m(v, {
|
|
210
|
+
name: "tax_id",
|
|
211
|
+
control: E,
|
|
212
|
+
render: ({ field: n, fieldState: { error: c } }) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ h(i, { children: [
|
|
213
|
+
/* @__PURE__ */ h(s, {
|
|
214
|
+
htmlFor: n.name,
|
|
215
|
+
className: "ttw:gap-1",
|
|
216
|
+
children: [T._("Tax ID / {documentType}", { documentType: x === "individual" ? "SSN" : "EIN" }), /* @__PURE__ */ m(t, {
|
|
217
|
+
variant: "body2",
|
|
218
|
+
color: "muted",
|
|
219
|
+
className: "ttw:leading-snug",
|
|
220
|
+
children: T._("(optional)")
|
|
221
|
+
})]
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ m(e, {
|
|
224
|
+
id: n.name,
|
|
225
|
+
...n,
|
|
226
|
+
className: w ? "ttw:bg-white" : "",
|
|
227
|
+
placeholder: T._("e.g., {example}", { example: x === "individual" ? "034-56-78890" : "12-3456789" }),
|
|
228
|
+
disabled: S,
|
|
229
|
+
"aria-invalid": !!c || void 0
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ m(a, { children: O ? T._("Required only if you'll file a 1099 IRS form for this vendor at year-end.") : T._("Required only if you'll issue a 1099 IRS form at year-end.") }),
|
|
232
|
+
/* @__PURE__ */ m(o, { errors: [c] })
|
|
233
|
+
] }) })
|
|
234
|
+
}),
|
|
235
|
+
(O || !w) && /* @__PURE__ */ m(l, {
|
|
236
|
+
isLoading: S,
|
|
237
|
+
customerType: C,
|
|
238
|
+
isStandalone: !1
|
|
239
|
+
}),
|
|
240
|
+
O && !w && /* @__PURE__ */ h("div", {
|
|
241
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
242
|
+
children: [/* @__PURE__ */ h("div", {
|
|
243
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-6 ttw:pb-7",
|
|
244
|
+
children: [/* @__PURE__ */ m(t, {
|
|
245
|
+
variant: "body1",
|
|
246
|
+
className: "ttw:font-medium",
|
|
247
|
+
children: T._("Accepted payment methods")
|
|
248
|
+
}), /* @__PURE__ */ m(t, {
|
|
249
|
+
variant: "body2",
|
|
250
|
+
color: "muted",
|
|
251
|
+
children: T._("How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later - you just won't be able to send payments until you do.")
|
|
252
|
+
})]
|
|
253
|
+
}), /* @__PURE__ */ m(c, {
|
|
254
|
+
isLoading: S,
|
|
255
|
+
isStandalone: !1
|
|
256
|
+
})]
|
|
257
|
+
})
|
|
258
|
+
]
|
|
127
259
|
});
|
|
128
260
|
};
|
|
129
261
|
//#endregion
|
|
130
|
-
export {
|
|
262
|
+
export { b as CounterpartFormContent };
|