@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,100 +1,190 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Typography as t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { Input as e } from "./index90.js";
|
|
2
|
+
import { Typography as t } from "./index63.js";
|
|
3
|
+
import { Field as n, FieldContent as r, FieldError as i, FieldLabel as a } from "./index89.js";
|
|
4
|
+
import { USStatesEnum as o } from "./index108.js";
|
|
5
|
+
import { Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d } from "./index109.js";
|
|
6
|
+
import { MoniteCountryShadcn as f } from "./index113.js";
|
|
7
|
+
import { useRef as p } from "react";
|
|
8
|
+
import { Fragment as m, jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { useLingui as _ } from "@lingui/react";
|
|
10
|
+
import { twMerge as v } from "tailwind-merge";
|
|
11
|
+
import { Controller as y, useFormContext as b } from "react-hook-form";
|
|
10
12
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js
|
|
11
|
-
var
|
|
12
|
-
let { i18n:
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
13
|
+
var x = ({ hasExistingAddress: x, isLoading: S, isStandalone: C, customerType: w }) => {
|
|
14
|
+
let { i18n: T } = _(), { watch: E, control: D } = b(), O = p(null), k = w === "vendor";
|
|
15
|
+
return /* @__PURE__ */ g("div", {
|
|
16
|
+
className: v("ttw:flex ttw:flex-col ttw:gap-4"),
|
|
17
|
+
ref: O,
|
|
18
|
+
children: [
|
|
19
|
+
C ? /* @__PURE__ */ h("div", {
|
|
20
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
21
|
+
children: /* @__PURE__ */ h(t, {
|
|
22
|
+
variant: "body1",
|
|
23
|
+
className: "ttw:font-medium",
|
|
24
|
+
children: x ? T._("Editing address") : T._("Adding address")
|
|
25
|
+
})
|
|
26
|
+
}) : /* @__PURE__ */ h(m, { children: !k && /* @__PURE__ */ h("div", {
|
|
27
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
28
|
+
children: /* @__PURE__ */ g(t, {
|
|
29
|
+
variant: "body1",
|
|
30
|
+
className: "ttw:font-medium",
|
|
31
|
+
children: [
|
|
32
|
+
T._("Address"),
|
|
33
|
+
" ",
|
|
34
|
+
/* @__PURE__ */ h("span", {
|
|
35
|
+
className: "ttw:text-muted-foreground",
|
|
36
|
+
children: T._("(optional)")
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
}) }),
|
|
41
|
+
/* @__PURE__ */ g("div", {
|
|
42
|
+
className: "ttw:flex ttw:gap-4",
|
|
43
|
+
children: [/* @__PURE__ */ h(y, {
|
|
44
|
+
name: "line1",
|
|
45
|
+
control: D,
|
|
46
|
+
render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
47
|
+
/* @__PURE__ */ h(a, {
|
|
48
|
+
htmlFor: t.name,
|
|
49
|
+
children: T._("Street address")
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ h(e, {
|
|
52
|
+
id: t.name,
|
|
53
|
+
...t,
|
|
54
|
+
className: C || k ? "ttw:bg-white" : "",
|
|
55
|
+
disabled: S,
|
|
56
|
+
"aria-invalid": !!o || void 0
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ h(i, { errors: [o] })
|
|
59
|
+
] }) })
|
|
60
|
+
}), /* @__PURE__ */ h(y, {
|
|
61
|
+
name: "line2",
|
|
62
|
+
control: D,
|
|
63
|
+
render: ({ field: o, fieldState: { error: s } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
64
|
+
/* @__PURE__ */ g(a, {
|
|
65
|
+
htmlFor: o.name,
|
|
66
|
+
className: "ttw:gap-1",
|
|
67
|
+
children: [T._("Apt, suite, floor, etc."), k && /* @__PURE__ */ h(t, {
|
|
68
|
+
variant: "body2",
|
|
69
|
+
color: "muted",
|
|
70
|
+
className: "ttw:leading-snug",
|
|
71
|
+
children: T._("(optional)")
|
|
72
|
+
})]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ h(e, {
|
|
75
|
+
id: o.name,
|
|
76
|
+
...o,
|
|
77
|
+
className: C || k ? "ttw:bg-white" : "",
|
|
78
|
+
disabled: S,
|
|
79
|
+
"aria-invalid": !!s || void 0
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ h(i, { errors: [s] })
|
|
82
|
+
] }) })
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ g("div", {
|
|
86
|
+
className: "ttw:flex ttw:gap-4",
|
|
87
|
+
children: [/* @__PURE__ */ h(y, {
|
|
88
|
+
name: "city",
|
|
89
|
+
control: D,
|
|
90
|
+
render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
91
|
+
/* @__PURE__ */ h(a, {
|
|
92
|
+
htmlFor: t.name,
|
|
93
|
+
children: T._("City")
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ h(e, {
|
|
96
|
+
id: t.name,
|
|
97
|
+
...t,
|
|
98
|
+
className: C || k ? "ttw:bg-white" : "",
|
|
99
|
+
disabled: S,
|
|
100
|
+
"aria-invalid": !!o || void 0
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ h(i, { errors: [o] })
|
|
103
|
+
] }) })
|
|
104
|
+
}), /* @__PURE__ */ h(y, {
|
|
105
|
+
name: "state",
|
|
106
|
+
control: D,
|
|
107
|
+
render: ({ field: t, fieldState: { error: f } }) => E("country") === "US" ? /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
108
|
+
/* @__PURE__ */ h(a, {
|
|
109
|
+
htmlFor: t.name,
|
|
110
|
+
children: T._("State")
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ g(s, {
|
|
113
|
+
value: t.value ?? void 0,
|
|
114
|
+
onValueChange: t.onChange,
|
|
115
|
+
disabled: S,
|
|
116
|
+
children: [/* @__PURE__ */ h(u, {
|
|
117
|
+
ref: t.ref,
|
|
118
|
+
onBlur: t.onBlur,
|
|
119
|
+
"aria-invalid": !!f || void 0,
|
|
120
|
+
className: v("ttw:w-full", (C || k) && "ttw:bg-white"),
|
|
121
|
+
disabled: S,
|
|
122
|
+
children: /* @__PURE__ */ h(d, { placeholder: T._("Select a state") })
|
|
123
|
+
}), /* @__PURE__ */ h(c, { children: Object.entries(o).map(([e, t]) => /* @__PURE__ */ g(l, {
|
|
124
|
+
value: e,
|
|
125
|
+
children: [
|
|
126
|
+
t,
|
|
127
|
+
" — ",
|
|
128
|
+
e
|
|
129
|
+
]
|
|
130
|
+
}, e)) })]
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ h(i, { errors: [f] })
|
|
133
|
+
] }) }) : /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
134
|
+
/* @__PURE__ */ h(a, {
|
|
135
|
+
htmlFor: t.name,
|
|
136
|
+
children: T._("State")
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ h(e, {
|
|
139
|
+
id: t.name,
|
|
140
|
+
...t,
|
|
141
|
+
className: C || k ? "ttw:bg-white" : "",
|
|
142
|
+
disabled: S,
|
|
143
|
+
"aria-invalid": !!f || void 0
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ h(i, { errors: [f] })
|
|
146
|
+
] }) })
|
|
147
|
+
})]
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ g("div", {
|
|
150
|
+
className: "ttw:flex ttw:gap-4",
|
|
151
|
+
children: [/* @__PURE__ */ h(y, {
|
|
152
|
+
name: "postalCode",
|
|
153
|
+
control: D,
|
|
154
|
+
render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
155
|
+
/* @__PURE__ */ h(a, {
|
|
156
|
+
htmlFor: t.name,
|
|
157
|
+
children: T._("Postal code")
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ h(e, {
|
|
160
|
+
id: t.name,
|
|
161
|
+
...t,
|
|
162
|
+
className: C || k ? "ttw:bg-white" : "",
|
|
163
|
+
disabled: S,
|
|
164
|
+
"aria-invalid": !!o || void 0
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ h(i, { errors: [o] })
|
|
167
|
+
] }) })
|
|
168
|
+
}), /* @__PURE__ */ h(y, {
|
|
169
|
+
name: "country",
|
|
170
|
+
control: D,
|
|
171
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ h(n, { children: /* @__PURE__ */ g(r, { children: [
|
|
172
|
+
/* @__PURE__ */ h(a, { children: T._("Country") }),
|
|
173
|
+
/* @__PURE__ */ h(f, {
|
|
174
|
+
value: e.value,
|
|
175
|
+
className: C || k ? "ttw:bg-white" : "",
|
|
176
|
+
onChange: e.onChange,
|
|
177
|
+
invalid: !!t,
|
|
178
|
+
disabled: S,
|
|
179
|
+
container: O?.current,
|
|
180
|
+
allowedCountries: ["US"]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ h(i, { errors: [t] })
|
|
183
|
+
] }) })
|
|
94
184
|
})]
|
|
95
185
|
})
|
|
96
|
-
|
|
186
|
+
]
|
|
97
187
|
});
|
|
98
188
|
};
|
|
99
189
|
//#endregion
|
|
100
|
-
export {
|
|
190
|
+
export { x as CounterpartAddressFormContent };
|
|
@@ -1,262 +1,94 @@
|
|
|
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 {
|
|
1
|
+
import { getCounterpartName as e } from "./index54.js";
|
|
2
|
+
import { Button as t } from "./index57.js";
|
|
3
|
+
import { LoadingSpinner as n } from "./index52.js";
|
|
4
|
+
import "./index53.js";
|
|
5
|
+
import { useUpdateCounterpartAddress as r } from "./index80.js";
|
|
6
|
+
import { useCreateCounterpartAddress as i } from "./index85.js";
|
|
7
|
+
import "./index87.js";
|
|
8
|
+
import { getAddressValidationSchema as a } from "./index104.js";
|
|
9
|
+
import { CounterpartAddressFormContent as o } from "./index114.js";
|
|
10
|
+
import { useCallback as s, useId as c, useMemo as l } from "react";
|
|
11
|
+
import { jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { toast as f } from "react-hot-toast";
|
|
13
|
+
import { useLingui as p } from "@lingui/react";
|
|
14
|
+
import { FormProvider as m, useForm as h } from "react-hook-form";
|
|
15
|
+
import { zodResolver as g } from "@hookform/resolvers/zod";
|
|
14
16
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js
|
|
15
|
-
var
|
|
16
|
-
let { i18n:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
var _ = ({ counterpartId: _, isStandalone: v, address: y, customerType: b, handleClose: x, onUpdate: S, onCreate: C }) => {
|
|
18
|
+
let { i18n: w } = p(), T = `counterpart-address-form-${c()}`, E = !!y, { mutate: D, isPending: O } = r({
|
|
19
|
+
counterpartId: _,
|
|
20
|
+
addressId: y?.id ?? ""
|
|
21
|
+
}), { mutate: k, isPending: A } = i(), j = O || A, M = l(() => ({
|
|
22
|
+
line1: y?.line1 ?? "",
|
|
23
|
+
line2: y?.line2 ?? "",
|
|
24
|
+
city: y?.city ?? "",
|
|
25
|
+
state: y?.state ?? "",
|
|
26
|
+
country: y?.country ?? "US",
|
|
27
|
+
postalCode: y?.postal_code ?? ""
|
|
28
|
+
}), [y]), { resetField: N, ...P } = h({
|
|
29
|
+
resolver: g(a(w, b === "vendor")),
|
|
30
|
+
defaultValues: M
|
|
31
|
+
}), F = s((e) => {
|
|
32
|
+
e.preventDefault(), e.stopPropagation(), P.handleSubmit((e) => {
|
|
33
|
+
let t = {
|
|
34
|
+
line1: e.line1 ?? "",
|
|
35
|
+
line2: e.line2,
|
|
36
|
+
city: e.city ?? "",
|
|
37
|
+
state: e.state ?? "",
|
|
38
|
+
country: e.country,
|
|
39
|
+
postal_code: e.postalCode ?? ""
|
|
40
|
+
};
|
|
41
|
+
return y ? D(t, { onSuccess: () => {
|
|
42
|
+
f.success(w._("Address has been updated.")), S && S();
|
|
43
|
+
} }) : k({
|
|
44
|
+
path: { counterpart_id: _ },
|
|
45
|
+
body: t
|
|
46
|
+
}, { onSuccess: () => {
|
|
47
|
+
f.success(w._("Address has been added.")), C && C();
|
|
48
|
+
} });
|
|
49
|
+
})(e);
|
|
50
|
+
}, [
|
|
51
|
+
f,
|
|
52
|
+
D,
|
|
53
|
+
k,
|
|
54
|
+
e,
|
|
55
|
+
S,
|
|
56
|
+
C,
|
|
57
|
+
P.handleSubmit,
|
|
58
|
+
w
|
|
59
|
+
]);
|
|
60
|
+
return /* @__PURE__ */ u(m, {
|
|
61
|
+
resetField: N,
|
|
62
|
+
...P,
|
|
63
|
+
children: /* @__PURE__ */ d("form", {
|
|
64
|
+
id: T,
|
|
65
|
+
onSubmit: F,
|
|
66
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100",
|
|
67
|
+
children: [/* @__PURE__ */ u(o, {
|
|
68
|
+
hasExistingAddress: E,
|
|
69
|
+
isLoading: j,
|
|
70
|
+
isStandalone: v,
|
|
71
|
+
customerType: b
|
|
72
|
+
}), /* @__PURE__ */ d("div", {
|
|
73
|
+
className: "ttw:flex ttw:gap-4 ttw:pt-6",
|
|
74
|
+
children: [/* @__PURE__ */ u(t, {
|
|
75
|
+
type: "button",
|
|
76
|
+
variant: "outline",
|
|
77
|
+
className: "ttw:border-border ttw:flex-1",
|
|
78
|
+
disabled: j,
|
|
79
|
+
onClick: () => {
|
|
80
|
+
N("line1"), N("line2"), N("city"), N("state"), N("postalCode"), N("country"), x();
|
|
81
|
+
},
|
|
82
|
+
children: w._("Cancel")
|
|
83
|
+
}), /* @__PURE__ */ d(t, {
|
|
84
|
+
type: "submit",
|
|
85
|
+
className: "ttw:flex-1",
|
|
86
|
+
disabled: j || !P.formState.isDirty,
|
|
87
|
+
children: [j && /* @__PURE__ */ u(n, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), w._("Save")]
|
|
31
88
|
})]
|
|
32
|
-
})
|
|
33
|
-
|
|
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
|
-
]
|
|
89
|
+
})]
|
|
90
|
+
})
|
|
259
91
|
});
|
|
260
92
|
};
|
|
261
93
|
//#endregion
|
|
262
|
-
export {
|
|
94
|
+
export { _ as CounterpartAddressForm };
|