@tesouro/embedded-components-react 0.2.158 → 0.2.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -10
- package/dist/index.css +28 -4
- package/dist/index.d.ts +41 -8
- package/dist/lib/AcceptDisclosuresWidget.d.ts +22 -6
- package/dist/lib/BankAccountsWidget.d.ts +19 -0
- package/dist/lib/ProfileWidget.d.ts +0 -2
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +21 -50
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index2.js +160 -167
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index2.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index4.js +135 -142
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +82 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index6.js +47 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +79 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +6 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +31 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +121 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +7 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +217 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +45 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +149 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +23 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +70 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +56 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +37 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +79 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +99 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +57 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +9 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +44 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +75 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +55 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +77 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +41 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +220 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +466 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +108 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +537 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +23 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +22 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +10 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +117 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +67 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +13 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +12 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +92 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +95 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +58 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +396 -467
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +68 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +2 -537
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +406 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +82 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +348 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +117 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +14 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +13 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +22 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +103 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +40 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +53 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +52 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +30 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +144 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +105 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +10 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +72 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +42 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +34 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +36 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +86 -481
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +106 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +85 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +55 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +28 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +62 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +26 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +126 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +156 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +28 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +26 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +78 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +25 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +5 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +128 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +49 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +113 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +109 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +45 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +200 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +68 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +457 -313
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +158 -293
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +91 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +95 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +213 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +62 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +29 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +113 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +22 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +44 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +57 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +38 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +344 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +303 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +103 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +160 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +259 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +23 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +149 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +29 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +4 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +17 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +35 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +28 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +31 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +30 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +48 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +18 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +19 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +65 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +50 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +75 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +32 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +19 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +40 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +78 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +76 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +41 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +21 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +17 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +168 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +125 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +162 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +18 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +63 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +68 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +6 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +7 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +59 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +22 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +53 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +24 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +48 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +17 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +85 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +264 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +37 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +60 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +141 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +112 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +82 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +91 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +7 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +284 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +48 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +15 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +31 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +126 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +96 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +33 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +118 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +18 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +71 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +19 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +11 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +64 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +11 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +64 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +2 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +22 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +31 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +13 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +9 -283
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +47 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +81 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +23 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +100 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +108 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +70 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +65 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +34 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +28 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +37 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +92 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +75 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +20 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +72 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- 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/index462.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +73 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +86 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +50 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +50 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +29 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +38 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +52 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +82 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index2.js +58 -64
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index3.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/profile-widget/ui/dist/index2.js +43 -37
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index10.js +80 -267
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +226 -101
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index12.js +33 -185
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index13.js +131 -36
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index14.js +75 -129
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index15.js +4 -77
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index16.js +98 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +217 -198
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index5.js +83 -50
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index6.js +165 -75
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +75 -156
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index8.js +82 -74
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index9.js +278 -74
- package/package.json +1 -1
- package/dist/libs/embedded-banking/shared/util/dist/index10.js +0 -4
- package/dist/libs/embedded-banking/shared/util/dist/index11.js +0 -4
- package/dist/libs/embedded-banking/shared/util/dist/index12.js +0 -4
- package/dist/libs/embedded-banking/shared/util/dist/index2.js +0 -4
- package/dist/libs/embedded-banking/shared/util/dist/index3.js +0 -322
- package/dist/libs/embedded-banking/shared/util/dist/index9.js +0 -145
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index10.js +0 -85
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index9.js +0 -13
|
@@ -1,170 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as y } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { USStatesEnum as x } from "./index364.js";
|
|
3
|
+
import { Field as o, FieldContent as s, FieldLabel as c, FieldError as m } from "./index154.js";
|
|
4
|
+
import { Input as f } from "./index119.js";
|
|
5
|
+
import { Select as F, SelectTrigger as _, SelectValue as j, SelectContent as A, SelectItem as E } from "./index254.js";
|
|
6
|
+
import { Typography as b } from "./index85.js";
|
|
7
|
+
import { MoniteCountryShadcn as L } from "./index365.js";
|
|
8
|
+
import { useLingui as T } from "@lingui/react";
|
|
9
|
+
import { useRef as U } from "react";
|
|
10
|
+
import { useFormContext as B, Controller as w } from "react-hook-form";
|
|
11
|
+
import { twMerge as g } from "tailwind-merge";
|
|
12
|
+
const G = ({
|
|
13
|
+
hasExistingAddress: v,
|
|
14
|
+
isLoading: n,
|
|
15
|
+
isStandalone: d,
|
|
16
|
+
customerType: S
|
|
17
17
|
}) => {
|
|
18
18
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
data: L
|
|
36
|
-
} = h.finops.getTags.useQuery({
|
|
37
|
-
query: {
|
|
38
|
-
id__in: Array.isArray(i?.tags) ? i.tags : []
|
|
39
|
-
}
|
|
40
|
-
}, {
|
|
41
|
-
enabled: !!i?.tags?.length
|
|
42
|
-
}), {
|
|
43
|
-
data: W
|
|
44
|
-
} = h.finops.getCounterparts.useQuery({
|
|
45
|
-
query: {
|
|
46
|
-
id__in: Array.isArray(i?.counterpart_id) ? i.counterpart_id : []
|
|
47
|
-
}
|
|
48
|
-
}, {
|
|
49
|
-
enabled: !!i?.counterpart_id?.length
|
|
50
|
-
}), y = h.finops.deleteApprovalPoliciesId.useMutation(void 0, {
|
|
51
|
-
onSuccess: async () => {
|
|
52
|
-
await Promise.all([h.finops.getApprovalPolicies.invalidateQueries(_), h.finops.getApprovalPoliciesId.invalidateQueries({
|
|
53
|
-
parameters: {
|
|
54
|
-
path: {
|
|
55
|
-
approval_policy_id: d.id
|
|
56
|
-
}
|
|
19
|
+
i18n: l
|
|
20
|
+
} = T(), {
|
|
21
|
+
watch: N,
|
|
22
|
+
control: h
|
|
23
|
+
} = B(), u = U(null), i = S === "vendor";
|
|
24
|
+
return /* @__PURE__ */ a("div", { className: g("ttw:flex ttw:flex-col ttw:gap-4"), ref: u, children: [
|
|
25
|
+
d ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ e(b, { variant: "body1", className: "ttw:font-medium", children: v ? l._("Editing address") : l._("Adding address") }) }) : /* @__PURE__ */ e(y, { children: !i && /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ a(b, { variant: "body1", className: "ttw:font-medium", children: [
|
|
26
|
+
l._("Address"),
|
|
27
|
+
" ",
|
|
28
|
+
/* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground", children: l._("(optional)") })
|
|
29
|
+
] }) }) }),
|
|
30
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
31
|
+
/* @__PURE__ */ e(w, { name: "line1", control: h, render: ({
|
|
32
|
+
field: t,
|
|
33
|
+
fieldState: {
|
|
34
|
+
error: r
|
|
57
35
|
}
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
flexWrap: "wrap"
|
|
110
|
-
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
-
};
|
|
112
|
-
case "approval_chain":
|
|
113
|
-
return {
|
|
114
|
-
label: b(r),
|
|
115
|
-
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
-
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
-
/* @__PURE__ */ s(F, { children: [
|
|
122
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
-
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
-
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
-
} }) }),
|
|
128
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
-
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
-
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
-
] }) }),
|
|
133
|
-
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
-
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
-
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
-
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
137
|
-
] }) }),
|
|
138
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Approval flow") }),
|
|
139
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: a._("Who needs to approve the document and how:") }),
|
|
140
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
141
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
142
|
-
/* @__PURE__ */ e(o, { children: a._("Approval type") }),
|
|
143
|
-
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
-
] }) }),
|
|
145
|
-
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
-
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
-
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
-
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
149
|
-
] }) })
|
|
36
|
+
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
37
|
+
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Street address") }),
|
|
38
|
+
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
39
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
40
|
+
] }) }) }),
|
|
41
|
+
/* @__PURE__ */ e(w, { name: "line2", control: h, render: ({
|
|
42
|
+
field: t,
|
|
43
|
+
fieldState: {
|
|
44
|
+
error: r
|
|
45
|
+
}
|
|
46
|
+
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
47
|
+
/* @__PURE__ */ a(c, { htmlFor: t.name, className: "ttw:gap-1", children: [
|
|
48
|
+
l._("Apt, suite, floor, etc."),
|
|
49
|
+
i && /* @__PURE__ */ e(b, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: l._("(optional)") })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
52
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
53
|
+
] }) }) })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
56
|
+
/* @__PURE__ */ e(w, { name: "city", control: h, render: ({
|
|
57
|
+
field: t,
|
|
58
|
+
fieldState: {
|
|
59
|
+
error: r
|
|
60
|
+
}
|
|
61
|
+
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
62
|
+
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("City") }),
|
|
63
|
+
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
64
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
65
|
+
] }) }) }),
|
|
66
|
+
/* @__PURE__ */ e(w, { name: "state", control: h, render: ({
|
|
67
|
+
field: t,
|
|
68
|
+
fieldState: {
|
|
69
|
+
error: r
|
|
70
|
+
}
|
|
71
|
+
}) => N("country") === "US" ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
72
|
+
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
|
|
73
|
+
/* @__PURE__ */ a(F, { value: t.value ?? void 0, onValueChange: t.onChange, disabled: n, children: [
|
|
74
|
+
/* @__PURE__ */ e(_, { ref: t.ref, onBlur: t.onBlur, "aria-invalid": !!r || void 0, className: g("ttw:w-full", (d || i) && "ttw:bg-white"), disabled: n, children: /* @__PURE__ */ e(j, { placeholder: l._("Select a state") }) }),
|
|
75
|
+
/* @__PURE__ */ e(A, { children: Object.entries(x).map(([p, C]) => /* @__PURE__ */ a(E, { value: p, children: [
|
|
76
|
+
C,
|
|
77
|
+
" — ",
|
|
78
|
+
p
|
|
79
|
+
] }, p)) })
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
82
|
+
] }) }) : /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
83
|
+
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
|
|
84
|
+
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
85
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
86
|
+
] }) }) })
|
|
150
87
|
] }),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
88
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
89
|
+
/* @__PURE__ */ e(w, { name: "postalCode", control: h, render: ({
|
|
90
|
+
field: t,
|
|
91
|
+
fieldState: {
|
|
92
|
+
error: r
|
|
93
|
+
}
|
|
94
|
+
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
95
|
+
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Postal code") }),
|
|
96
|
+
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
97
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
98
|
+
] }) }) }),
|
|
99
|
+
/* @__PURE__ */ e(w, { name: "country", control: h, render: ({
|
|
100
|
+
field: t,
|
|
101
|
+
fieldState: {
|
|
102
|
+
error: r
|
|
103
|
+
}
|
|
104
|
+
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
105
|
+
/* @__PURE__ */ e(c, { children: l._("Country") }),
|
|
106
|
+
/* @__PURE__ */ e(L, { value: t.value, className: d || i ? "ttw:bg-white" : "", onChange: t.onChange, invalid: !!r, disabled: n, container: u?.current, allowedCountries: ["US"] }),
|
|
107
|
+
/* @__PURE__ */ e(m, { errors: [r] })
|
|
108
|
+
] }) }) })
|
|
109
|
+
] })
|
|
166
110
|
] });
|
|
167
111
|
};
|
|
168
112
|
export {
|
|
169
|
-
|
|
113
|
+
G as CounterpartAddressFormContent
|
|
170
114
|
};
|
|
@@ -1,44 +1,90 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as d, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useForm as N, FormProvider as F } from "react-hook-form";
|
|
3
|
+
import { useLingui as I } from "@lingui/react";
|
|
4
|
+
import { useId as P, useMemo as z, useCallback as L } from "react";
|
|
5
|
+
import { zodResolver as U } from "@hookform/resolvers/zod";
|
|
6
|
+
import { Button as y } from "./index84.js";
|
|
7
|
+
import { getAddressValidationSchema as j } from "./index216.js";
|
|
8
|
+
import "./index57.js";
|
|
9
|
+
import { toast as p } from "react-hot-toast";
|
|
10
|
+
import "date-fns";
|
|
11
|
+
import { getCounterpartName as k } from "./index7.js";
|
|
12
|
+
import { useUpdateCounterpartAddress as D } from "./index259.js";
|
|
13
|
+
import { useCreateCounterpartAddress as T } from "./index366.js";
|
|
14
|
+
import { LoadingSpinner as V } from "./index131.js";
|
|
15
|
+
import { CounterpartAddressFormContent as B } from "./index262.js";
|
|
16
|
+
const tt = ({
|
|
17
|
+
counterpartId: c,
|
|
18
|
+
isStandalone: C,
|
|
19
|
+
address: t,
|
|
20
|
+
customerType: u,
|
|
21
|
+
handleClose: h,
|
|
22
|
+
onUpdate: i,
|
|
23
|
+
onCreate: n
|
|
10
24
|
}) => {
|
|
11
25
|
const {
|
|
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
|
-
|
|
26
|
+
i18n: r
|
|
27
|
+
} = I(), S = `counterpart-address-form-${P()}`, g = !!t, {
|
|
28
|
+
mutate: f,
|
|
29
|
+
isPending: x
|
|
30
|
+
} = D({
|
|
31
|
+
counterpartId: c,
|
|
32
|
+
addressId: t?.id ?? ""
|
|
33
|
+
}), {
|
|
34
|
+
mutate: w,
|
|
35
|
+
isPending: A
|
|
36
|
+
} = T(), o = x || A, v = z(() => ({
|
|
37
|
+
line1: t?.line1 ?? "",
|
|
38
|
+
line2: t?.line2 ?? "",
|
|
39
|
+
city: t?.city ?? "",
|
|
40
|
+
state: t?.state ?? "",
|
|
41
|
+
country: t?.country ?? "US",
|
|
42
|
+
postalCode: t?.postal_code ?? ""
|
|
43
|
+
}), [t]), {
|
|
44
|
+
resetField: e,
|
|
45
|
+
...a
|
|
46
|
+
} = N({
|
|
47
|
+
resolver: U(j(r, u === "vendor")),
|
|
48
|
+
defaultValues: v
|
|
49
|
+
}), _ = L((l) => {
|
|
50
|
+
l.preventDefault(), l.stopPropagation(), a.handleSubmit((s) => {
|
|
51
|
+
const b = {
|
|
52
|
+
line1: s.line1 ?? "",
|
|
53
|
+
line2: s.line2,
|
|
54
|
+
city: s.city ?? "",
|
|
55
|
+
state: s.state ?? "",
|
|
56
|
+
country: s.country,
|
|
57
|
+
postal_code: s.postalCode ?? ""
|
|
58
|
+
};
|
|
59
|
+
return t ? f(b, {
|
|
60
|
+
onSuccess: () => {
|
|
61
|
+
p.success(r._("Address has been updated.")), i && i();
|
|
62
|
+
}
|
|
63
|
+
}) : w({
|
|
64
|
+
path: {
|
|
65
|
+
counterpart_id: c
|
|
66
|
+
},
|
|
67
|
+
body: b
|
|
68
|
+
}, {
|
|
69
|
+
onSuccess: () => {
|
|
70
|
+
p.success(r._("Address has been added.")), n && n();
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
})(l);
|
|
74
|
+
}, [p, f, w, k, i, n, a.handleSubmit, r]);
|
|
75
|
+
return /* @__PURE__ */ d(F, { resetField: e, ...a, children: /* @__PURE__ */ m("form", { id: S, onSubmit: _, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
|
|
76
|
+
/* @__PURE__ */ d(B, { hasExistingAddress: g, isLoading: o, isStandalone: C, customerType: u }),
|
|
77
|
+
/* @__PURE__ */ m("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
78
|
+
/* @__PURE__ */ d(y, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
|
|
79
|
+
e("line1"), e("line2"), e("city"), e("state"), e("postalCode"), e("country"), h();
|
|
80
|
+
}, children: r._("Cancel") }),
|
|
81
|
+
/* @__PURE__ */ m(y, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
|
|
82
|
+
o && /* @__PURE__ */ d(V, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
83
|
+
r._("Save")
|
|
84
|
+
] })
|
|
85
|
+
] })
|
|
86
|
+
] }) });
|
|
41
87
|
};
|
|
42
88
|
export {
|
|
43
|
-
|
|
89
|
+
tt as CounterpartAddressForm
|
|
44
90
|
};
|
|
@@ -1,64 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import "@
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
variant: m = "text",
|
|
17
|
-
showUsersAsEmail: i = !1,
|
|
18
|
-
showAvatar: f = !1,
|
|
19
|
-
className: o = ""
|
|
20
|
-
}) => {
|
|
21
|
-
const {
|
|
22
|
-
data: u,
|
|
23
|
-
isLoading: r,
|
|
24
|
-
isError: N
|
|
25
|
-
} = U(e ? void 0 : t), a = e || u;
|
|
26
|
-
if (!a && !r && N && t) {
|
|
27
|
-
const {
|
|
28
|
-
useBadge: x,
|
|
29
|
-
badgeVariant: E,
|
|
30
|
-
className: c
|
|
31
|
-
} = d({
|
|
32
|
-
variant: m,
|
|
33
|
-
isError: !0,
|
|
34
|
-
componentType: "user",
|
|
35
|
-
className: o
|
|
36
|
-
});
|
|
37
|
-
return x ? /* @__PURE__ */ s(p, { variant: E, className: c, children: "N/A" }) : /* @__PURE__ */ s("span", { className: c, children: "N/A" });
|
|
38
|
-
}
|
|
39
|
-
if (!a && !r)
|
|
40
|
-
return null;
|
|
41
|
-
const h = a ? `${a.first_name ?? ""} ${a.last_name ?? ""}`.trim() : "", w = a ? `${a.first_name?.[0] ?? ""}${a.last_name?.[0] ?? ""}`.toUpperCase() : "", n = i && a?.email ? a.email : h || a?.email || "";
|
|
42
|
-
if (r)
|
|
43
|
-
return /* @__PURE__ */ s(B, { className: "ttw:h-4 ttw:w-20" });
|
|
44
|
-
const {
|
|
45
|
-
useBadge: v,
|
|
46
|
-
badgeVariant: A,
|
|
47
|
-
className: l,
|
|
48
|
-
showAvatar: g
|
|
49
|
-
} = d({
|
|
50
|
-
variant: m,
|
|
51
|
-
isError: !1,
|
|
52
|
-
componentType: "user",
|
|
53
|
-
showAvatar: f,
|
|
54
|
-
showUsersAsEmail: i,
|
|
55
|
-
className: o
|
|
56
|
-
});
|
|
57
|
-
return v ? /* @__PURE__ */ y(p, { variant: A, className: l, children: [
|
|
58
|
-
g && /* @__PURE__ */ s(b, { className: "ttw:w-4 ttw:h-4", children: /* @__PURE__ */ s(k, { className: "ttw:text-xs ttw:font-medium", children: w }) }),
|
|
59
|
-
n
|
|
60
|
-
] }) : /* @__PURE__ */ s("span", { className: l, children: n });
|
|
61
|
-
};
|
|
1
|
+
import e from "@mui/icons-material/Cancel";
|
|
2
|
+
import _ from "@mui/icons-material/DangerousOutlined";
|
|
3
|
+
import r from "@mui/icons-material/HourglassEmpty";
|
|
4
|
+
import a from "@mui/icons-material/PaidOutlined";
|
|
5
|
+
const s = ["waiting", "approved", "rejected", "canceled"], o = {
|
|
6
|
+
approved: "success",
|
|
7
|
+
canceled: "secondary",
|
|
8
|
+
rejected: "error",
|
|
9
|
+
waiting: "warning"
|
|
10
|
+
}, A = {
|
|
11
|
+
approved: a,
|
|
12
|
+
canceled: e,
|
|
13
|
+
rejected: _,
|
|
14
|
+
waiting: r
|
|
15
|
+
}, R = "status", d = "created_at", i = "created_by", S = "current_user";
|
|
62
16
|
export {
|
|
63
|
-
|
|
17
|
+
s as APPROVAL_REQUEST_STATUSES,
|
|
18
|
+
A as APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP,
|
|
19
|
+
i as FILTER_TYPE_ADDED_BY,
|
|
20
|
+
d as FILTER_TYPE_CREATED_AT,
|
|
21
|
+
S as FILTER_TYPE_CURRENT_USER,
|
|
22
|
+
R as FILTER_TYPE_STATUS,
|
|
23
|
+
o as ROW_TO_STATUS_MUI_MAP
|
|
64
24
|
};
|
|
@@ -1,33 +1,59 @@
|
|
|
1
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as n, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRootElements as s } from "./index92.js";
|
|
3
|
+
import { FilterContainer as p } from "./index273.js";
|
|
4
|
+
import { useLingui as m } from "@lingui/react";
|
|
5
|
+
import { FormControl as u, InputLabel as c, Select as d, MenuItem as E, FormControlLabel as F, Switch as T } from "@mui/material";
|
|
6
|
+
import { DatePicker as _ } from "@mui/x-date-pickers";
|
|
7
|
+
import { APPROVAL_REQUEST_STATUSES as v, FILTER_TYPE_STATUS as R, FILTER_TYPE_ADDED_BY as A, FILTER_TYPE_CREATED_AT as C, FILTER_TYPE_CURRENT_USER as h } from "./index264.js";
|
|
8
|
+
import { getRowToStatusTextMap as S } from "./index367.js";
|
|
9
|
+
import { AutocompleteCreatedBy as M } from "./index368.js";
|
|
10
|
+
const O = ({
|
|
11
|
+
onChangeFilter: l,
|
|
12
|
+
sx: i
|
|
10
13
|
}) => {
|
|
11
14
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})({
|
|
15
|
+
i18n: a
|
|
16
|
+
} = m(), {
|
|
17
|
+
root: r
|
|
18
|
+
} = s();
|
|
19
|
+
return /* @__PURE__ */ n(p, { className: "Monite-ApprovalRequestsFilters", sx: i, children: [
|
|
20
|
+
/* @__PURE__ */ n(u, { variant: "standard", fullWidth: !0, className: "Monite-ApprovalStatusFilter Monite-FilterControl", children: [
|
|
21
|
+
/* @__PURE__ */ t(c, { id: "status", children: a._("Status") }),
|
|
22
|
+
/* @__PURE__ */ t(d, { labelId: "status", label: a._("Status"), defaultValue: "all", MenuProps: {
|
|
23
|
+
container: r
|
|
24
|
+
}, onChange: (e) => {
|
|
25
|
+
l(R, e && e.target.value);
|
|
26
|
+
}, children: [{
|
|
27
|
+
label: a._("All invoices"),
|
|
28
|
+
value: "all"
|
|
29
|
+
}, ...Object.values(v).map((e) => ({
|
|
30
|
+
label: S(a)[e],
|
|
31
|
+
value: e
|
|
32
|
+
}))].map(({
|
|
33
|
+
label: e,
|
|
34
|
+
value: o
|
|
35
|
+
}) => /* @__PURE__ */ t(E, { value: o, children: e }, o)) })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ t(M, { onChange: (e) => l(A, e || null) }),
|
|
38
|
+
/* @__PURE__ */ t(_, { label: a._("Requested on"), className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl", onChange: (e, o) => {
|
|
39
|
+
o.validationError || l(C, e);
|
|
40
|
+
}, slotProps: {
|
|
41
|
+
textField: {
|
|
42
|
+
variant: "standard"
|
|
43
|
+
},
|
|
44
|
+
popper: {
|
|
45
|
+
container: r
|
|
46
|
+
},
|
|
47
|
+
dialog: {
|
|
48
|
+
container: r
|
|
49
|
+
},
|
|
50
|
+
actionBar: {
|
|
51
|
+
actions: ["clear", "today"]
|
|
52
|
+
}
|
|
53
|
+
}, views: ["year", "month", "day"] }),
|
|
54
|
+
/* @__PURE__ */ t(F, { control: /* @__PURE__ */ t(T, {}), className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl", label: a._("Only my approvals"), onChange: (e, o) => l(h, o) })
|
|
55
|
+
] });
|
|
56
|
+
};
|
|
30
57
|
export {
|
|
31
|
-
|
|
32
|
-
h as StyledChip
|
|
58
|
+
O as ApprovalRequestsFilter
|
|
33
59
|
};
|