@tesouro/embedded-components-react 0.7.47 → 0.7.50
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 +0 -23
- package/dist/lib/monite-sdk.d.ts +51 -182
- package/dist/lib/monite-sdk.js +71 -77
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/counterparts.js +233 -88
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +75 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +10 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +36 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +1 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +102 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +51 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +49 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +53 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +151 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +70 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +68 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +172 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +73 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +76 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +33 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +1 -446
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +565 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +156 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +26 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +23 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +71 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +5 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +37 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +48 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +54 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +28 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +39 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +78 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +47 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +79 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +121 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +17 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +121 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +17 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +120 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +55 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +71 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +31 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +10 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +13 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +15 -564
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +114 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +62 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +195 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +38 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +17 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +5 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +359 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +89 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +14 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +182 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +98 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +33 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +49 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +85 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +304 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +26 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +157 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +34 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +101 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +186 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +131 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +208 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +238 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +131 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +165 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +19 -356
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +16 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +9 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +22 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +83 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +101 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +171 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +11 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +25 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +210 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +87 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +154 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +104 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +42 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +69 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +19 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +5 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +130 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +6 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +219 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +31 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +32 -238
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +73 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +179 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +194 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +102 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +64 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +39 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +83 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +15 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +87 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +70 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +8 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +5 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +72 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +54 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +49 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +51 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +71 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +80 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +8 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +27 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +16 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +3 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +55 -53
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +0 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +0 -97
|
@@ -1,446 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
4
|
-
import { useCounterpartById as n } from "./index46.js";
|
|
5
|
-
import { getCounterpartName as r } from "./index53.js";
|
|
6
|
-
import { useCurrencies as ee } from "./index63.js";
|
|
7
|
-
import { Button as i } from "./index56.js";
|
|
8
|
-
import { useGetPayablesAnalytics as a } from "./index112.js";
|
|
9
|
-
import { useGetReceivablesAnalytics as o } from "./index113.js";
|
|
10
|
-
import { useGetReceivables as te } from "./index114.js";
|
|
11
|
-
import { MoniteScopedProviders as s } from "./index129.js";
|
|
12
|
-
import { Sheet as c, SheetClose as ne, SheetContent as l, SheetDescription as re, SheetHeader as ie, SheetTitle as ae } from "./index50.js";
|
|
13
|
-
import { LoadingSpinner as oe } from "./index51.js";
|
|
14
|
-
import "./index52.js";
|
|
15
|
-
import { Skeleton as u } from "./index54.js";
|
|
16
|
-
import { DropdownMenu as se, DropdownMenuContent as ce, DropdownMenuItem as le, DropdownMenuTrigger as ue } from "./index55.js";
|
|
17
|
-
import { DeleteCounterpartModal as de } from "./index61.js";
|
|
18
|
-
import { Typography as d } from "./index62.js";
|
|
19
|
-
import { Separator as fe } from "./index64.js";
|
|
20
|
-
import { CounterpartContactDetailLine as f } from "./index65.js";
|
|
21
|
-
import { useDeleteCounterpartBank as pe } from "./index75.js";
|
|
22
|
-
import { useCounterpartAddressesById as me } from "./index82.js";
|
|
23
|
-
import { useGetCounterpartPayables as he } from "./index83.js";
|
|
24
|
-
import "./index86.js";
|
|
25
|
-
import { CounterpartBankSection as ge } from "./index97.js";
|
|
26
|
-
import { CounterpartAddressSection as _e } from "./index107.js";
|
|
27
|
-
import { EditCounterpart as ve } from "./index110.js";
|
|
28
|
-
import { useUserPermissions as ye } from "./index111.js";
|
|
29
|
-
import { AR_DEFAULT_STATUSES as be } from "./index115.js";
|
|
30
|
-
import { isBillOverdue as xe } from "./index117.js";
|
|
31
|
-
import { PayableStatusChip as p } from "./index118.js";
|
|
32
|
-
import { useCounterpartsBankAccountsList as Se } from "./index119.js";
|
|
33
|
-
import { InvoiceStatusChip as Ce } from "./index131.js";
|
|
34
|
-
import { NotFound as we } from "./index132.js";
|
|
35
|
-
import { Fragment as Te, useCallback as Ee, useState as m } from "react";
|
|
36
|
-
import { Eye as De, EyeOff as Oe, MoreVerticalIcon as ke, Trash2 as Ae, X as je } from "lucide-react";
|
|
37
|
-
import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
38
|
-
import { useLingui as Me } from "@lingui/react";
|
|
39
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js
|
|
40
|
-
var v = (e) => /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(y, { ...e }) }), y = ({ counterpartId: s, customerType: v, open: y, isEditMode: Ne = !1, showActionsMenu: b = !0, onClose: x, onPayVendor: S, onCreateInvoiceForCustomer: C, onViewVendorBills: w, onViewCustomerInvoices: T }) => {
|
|
41
|
-
let { i18n: E } = Me(), { locale: D } = t(), O = ye(), { formatCurrencyToDisplay: k } = ee(), [A, j] = m(!1), [M, Pe] = m(!1), [N, P] = m(Ne), F = v === "vendor", Fe = F && !!S && O.has(e.PayableWriteOrg), Ie = !F && !!C && O.has(e.InvoiceWriteOrg), Le = F && !!w && O.has(e.PayableReadOrg), Re = !F && !!T && O.has(e.InvoiceReadOrg), { data: I, isLoading: L, isFetching: ze } = n(s), { data: Be, isLoading: R } = me(s), { data: Ve, isLoading: He } = Se(s), { mutate: Ue } = pe(s), { data: We, isLoading: z } = a({
|
|
42
|
-
dimension: "counterpart_id",
|
|
43
|
-
metric: "total_amount",
|
|
44
|
-
aggregation_function: "summary",
|
|
45
|
-
status__in: [
|
|
46
|
-
"new",
|
|
47
|
-
"approve_in_progress",
|
|
48
|
-
"waiting_to_be_paid",
|
|
49
|
-
"partially_paid",
|
|
50
|
-
"paid"
|
|
51
|
-
],
|
|
52
|
-
counterpart_id__in: [s]
|
|
53
|
-
}, F), { data: Ge, isLoading: B } = a({
|
|
54
|
-
dimension: "counterpart_id",
|
|
55
|
-
metric: "amount_due",
|
|
56
|
-
aggregation_function: "summary",
|
|
57
|
-
status__in: [
|
|
58
|
-
"new",
|
|
59
|
-
"approve_in_progress",
|
|
60
|
-
"waiting_to_be_paid",
|
|
61
|
-
"partially_paid"
|
|
62
|
-
],
|
|
63
|
-
counterpart_id__in: [s]
|
|
64
|
-
}, F), { data: Ke, isLoading: qe } = a({
|
|
65
|
-
dimension: "counterpart_id",
|
|
66
|
-
metric: "total_amount",
|
|
67
|
-
aggregation_function: "summary",
|
|
68
|
-
status__in: ["rejected"],
|
|
69
|
-
counterpart_id__in: [s]
|
|
70
|
-
}, F), { data: Je } = he({
|
|
71
|
-
counterpart_id: s,
|
|
72
|
-
sort: "created_at",
|
|
73
|
-
order: "desc",
|
|
74
|
-
limit: 4
|
|
75
|
-
}, F), { data: Ye, isLoading: V } = o({
|
|
76
|
-
dimension: "counterpart_id",
|
|
77
|
-
metric: "total_amount",
|
|
78
|
-
aggregation_function: "summary",
|
|
79
|
-
type: "invoice",
|
|
80
|
-
status__in: [
|
|
81
|
-
"issued",
|
|
82
|
-
"overdue",
|
|
83
|
-
"partially_paid",
|
|
84
|
-
"paid"
|
|
85
|
-
],
|
|
86
|
-
counterpart_id__in: [s]
|
|
87
|
-
}, !F), { data: Xe, isLoading: H } = o({
|
|
88
|
-
dimension: "counterpart_id",
|
|
89
|
-
metric: "amount_due",
|
|
90
|
-
aggregation_function: "summary",
|
|
91
|
-
type: "invoice",
|
|
92
|
-
status__in: [
|
|
93
|
-
"issued",
|
|
94
|
-
"overdue",
|
|
95
|
-
"partially_paid"
|
|
96
|
-
],
|
|
97
|
-
counterpart_id__in: [s]
|
|
98
|
-
}, !F), { data: Ze } = te({
|
|
99
|
-
type: "invoice",
|
|
100
|
-
status__in: [...be],
|
|
101
|
-
counterpart_id: s,
|
|
102
|
-
sort: "created_at",
|
|
103
|
-
order: "desc",
|
|
104
|
-
limit: 4
|
|
105
|
-
}, !F), U = O.has(e.CounterpartWriteOrg), W = O.has(e.CounterpartWriteOrg), Qe = Ee(() => I && "individual" in I ? [I.individual?.email ?? "-", I.individual?.phone ?? "-"] : [I?.organization?.email ?? "-", I?.organization?.phone ?? "-"], [I]), G = Ve?.data?.[0], K = F ? Ge?.data?.[0]?.metric_value ?? 0 : Xe?.data?.[0]?.metric_value ?? 0, q = F ? We?.data?.[0]?.metric_value ?? 0 : Ye?.data?.[0]?.metric_value ?? 0, $e = q - K, et = F ? B : H, tt = F ? z : V, nt = F ? B || z : V || H, rt = F ? Ke?.data?.[0]?.metric_value ?? 0 : 0, it = F ? qe : !1, J = F ? Je?.data : Ze?.data, Y = Be?.data?.[0], X = Y?.city || "", Z = Y?.state || "", Q = Y?.postal_code || "", $ = I?.tax_id, at = $ ? M ? $ : $.slice(0, 3).padEnd($.length, "•") : "-", [ot, st] = Qe();
|
|
106
|
-
return !L && !ze && !I ? /* @__PURE__ */ g(c, {
|
|
107
|
-
open: y,
|
|
108
|
-
onOpenChange: x,
|
|
109
|
-
children: /* @__PURE__ */ g(l, {
|
|
110
|
-
showCloseButton: !0,
|
|
111
|
-
className: "ttw:gap-0",
|
|
112
|
-
children: /* @__PURE__ */ g("div", {
|
|
113
|
-
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
114
|
-
children: /* @__PURE__ */ g(we, {
|
|
115
|
-
title: E._("{customerType} not found", { customerType: v === "vendor" ? "Vendor" : "Customer" }),
|
|
116
|
-
description: E._("Something went wrong while fetching this {customerType}", { customerType: v })
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
})
|
|
120
|
-
}) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(c, {
|
|
121
|
-
open: y,
|
|
122
|
-
onOpenChange: x,
|
|
123
|
-
children: /* @__PURE__ */ _(l, {
|
|
124
|
-
showCloseButton: !1,
|
|
125
|
-
className: "ttw:gap-0",
|
|
126
|
-
children: [/* @__PURE__ */ _(ie, {
|
|
127
|
-
className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
|
|
128
|
-
children: [/* @__PURE__ */ _("div", {
|
|
129
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
|
|
130
|
-
children: [/* @__PURE__ */ g(ae, {
|
|
131
|
-
asChild: L,
|
|
132
|
-
className: "ttw:text-2xl",
|
|
133
|
-
children: L ? /* @__PURE__ */ g(u, { className: "ttw:w-40" }) : r(I)
|
|
134
|
-
}), /* @__PURE__ */ g(re, {
|
|
135
|
-
asChild: L,
|
|
136
|
-
children: L ? /* @__PURE__ */ g(u, { className: "ttw:w-60" }) : E._("{customerType} · Added {createdAt}", {
|
|
137
|
-
createdAt: E.date(I?.created_at, D.dateFormat),
|
|
138
|
-
customerType: F ? "Vendor" : "Customer"
|
|
139
|
-
})
|
|
140
|
-
})]
|
|
141
|
-
}), /* @__PURE__ */ _("div", {
|
|
142
|
-
className: "ttw:flex ttw:gap-2",
|
|
143
|
-
children: [b && W && /* @__PURE__ */ _(se, { children: [/* @__PURE__ */ g(ue, {
|
|
144
|
-
asChild: !0,
|
|
145
|
-
children: /* @__PURE__ */ g(i, {
|
|
146
|
-
type: "button",
|
|
147
|
-
variant: "outline",
|
|
148
|
-
className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
|
|
149
|
-
children: /* @__PURE__ */ g(ke, {})
|
|
150
|
-
})
|
|
151
|
-
}), /* @__PURE__ */ g(ce, {
|
|
152
|
-
align: "end",
|
|
153
|
-
children: /* @__PURE__ */ _(le, {
|
|
154
|
-
onClick: () => j(!0),
|
|
155
|
-
variant: "destructive",
|
|
156
|
-
children: [/* @__PURE__ */ g(Ae, {}), E._("Delete {customerType}", { customerType: v })]
|
|
157
|
-
})
|
|
158
|
-
})] }), /* @__PURE__ */ g(ne, {
|
|
159
|
-
className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
|
|
160
|
-
children: /* @__PURE__ */ g(je, { className: "ttw:size-4" })
|
|
161
|
-
})]
|
|
162
|
-
})]
|
|
163
|
-
}), L ? /* @__PURE__ */ g("div", {
|
|
164
|
-
className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
|
|
165
|
-
children: /* @__PURE__ */ g(oe, {})
|
|
166
|
-
}) : /* @__PURE__ */ _("main", {
|
|
167
|
-
className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ _("div", {
|
|
170
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:pb-3",
|
|
171
|
-
children: [/* @__PURE__ */ _("div", {
|
|
172
|
-
className: "ttw:p-5 ttw:flex ttw:flex-col ttw:gap-4 ttw:bg-muted ttw:rounded-xl",
|
|
173
|
-
children: [
|
|
174
|
-
/* @__PURE__ */ g(d, {
|
|
175
|
-
variant: "body2",
|
|
176
|
-
color: "muted",
|
|
177
|
-
children: E._("Amount due")
|
|
178
|
-
}),
|
|
179
|
-
et ? /* @__PURE__ */ g(u, { className: "ttw:w-20" }) : /* @__PURE__ */ g(d, {
|
|
180
|
-
variant: "h1",
|
|
181
|
-
className: "ttw:font-semibold",
|
|
182
|
-
children: k(K, "USD")
|
|
183
|
-
}),
|
|
184
|
-
/* @__PURE__ */ _("div", {
|
|
185
|
-
className: "ttw:flex ttw:gap-8",
|
|
186
|
-
children: [
|
|
187
|
-
/* @__PURE__ */ _("div", {
|
|
188
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
189
|
-
children: [/* @__PURE__ */ g(d, {
|
|
190
|
-
variant: "caption",
|
|
191
|
-
color: "muted",
|
|
192
|
-
children: E._("Billed")
|
|
193
|
-
}), tt ? /* @__PURE__ */ g(u, { className: "ttw:w-20" }) : /* @__PURE__ */ g(d, {
|
|
194
|
-
variant: "body1",
|
|
195
|
-
className: "ttw:font-semibold",
|
|
196
|
-
children: k(q, "USD")
|
|
197
|
-
})]
|
|
198
|
-
}),
|
|
199
|
-
/* @__PURE__ */ _("div", {
|
|
200
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
201
|
-
children: [/* @__PURE__ */ g(d, {
|
|
202
|
-
variant: "caption",
|
|
203
|
-
color: "muted",
|
|
204
|
-
children: F ? E._("Paid") : E._("Received")
|
|
205
|
-
}), nt ? /* @__PURE__ */ g(u, { className: "ttw:w-20" }) : /* @__PURE__ */ g(d, {
|
|
206
|
-
variant: "body1",
|
|
207
|
-
className: "ttw:text-green-600 ttw:font-semibold",
|
|
208
|
-
children: k($e, "USD")
|
|
209
|
-
})]
|
|
210
|
-
}),
|
|
211
|
-
F && /* @__PURE__ */ _("div", {
|
|
212
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
213
|
-
children: [/* @__PURE__ */ g(d, {
|
|
214
|
-
variant: "caption",
|
|
215
|
-
color: "muted",
|
|
216
|
-
children: E._("Rejected")
|
|
217
|
-
}), it ? /* @__PURE__ */ g(u, { className: "ttw:w-20" }) : /* @__PURE__ */ g(d, {
|
|
218
|
-
variant: "body1",
|
|
219
|
-
className: "ttw:font-semibold",
|
|
220
|
-
children: k(rt, "USD")
|
|
221
|
-
})]
|
|
222
|
-
})
|
|
223
|
-
]
|
|
224
|
-
})
|
|
225
|
-
]
|
|
226
|
-
}), /* @__PURE__ */ g(i, {
|
|
227
|
-
className: "ttw:px-6 ttw:py-2 ttw:w-60",
|
|
228
|
-
disabled: F ? !Fe : !Ie,
|
|
229
|
-
onClick: () => F ? S?.(s) : C?.(s),
|
|
230
|
-
children: F ? E._("Send a payment") : E._("Issue an invoice")
|
|
231
|
-
})]
|
|
232
|
-
}),
|
|
233
|
-
J && J.length > 0 && /* @__PURE__ */ _("div", {
|
|
234
|
-
className: "ttw:border-t ttw:border-border ttw:flex ttw:flex-col",
|
|
235
|
-
children: [/* @__PURE__ */ _("div", {
|
|
236
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7",
|
|
237
|
-
children: [/* @__PURE__ */ _("div", {
|
|
238
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
239
|
-
children: [/* @__PURE__ */ g(d, {
|
|
240
|
-
variant: "body1",
|
|
241
|
-
className: "ttw:font-medium",
|
|
242
|
-
children: E._("Recent {document}", { document: F ? "bills" : "invoices" })
|
|
243
|
-
}), /* @__PURE__ */ g(d, {
|
|
244
|
-
variant: "body2",
|
|
245
|
-
color: "muted",
|
|
246
|
-
children: F ? E._("Sorted by issue date") : E._("Latest activity")
|
|
247
|
-
})]
|
|
248
|
-
}), (Le || Re) && /* @__PURE__ */ g(i, {
|
|
249
|
-
variant: "ghost",
|
|
250
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
251
|
-
onClick: () => F ? w?.(s) : T?.(s),
|
|
252
|
-
children: E._("View all")
|
|
253
|
-
})]
|
|
254
|
-
}), /* @__PURE__ */ g("div", {
|
|
255
|
-
className: "ttw:border ttw:border-border ttw:rounded-lg ttw:p-4 ttw:flex ttw:flex-col ttw:gap-3",
|
|
256
|
-
children: J.map((e, t) => {
|
|
257
|
-
let n = F ? xe(e?.status, e?.due_date) : void 0;
|
|
258
|
-
return /* @__PURE__ */ _(Te, { children: [/* @__PURE__ */ _("div", {
|
|
259
|
-
className: "ttw:flex ttw:items-start ttw:justify-between",
|
|
260
|
-
children: [/* @__PURE__ */ _("div", {
|
|
261
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
262
|
-
children: [/* @__PURE__ */ g(d, {
|
|
263
|
-
variant: "h5",
|
|
264
|
-
className: "ttw:font-medium",
|
|
265
|
-
children: k(e.total_amount ?? 0, e.currency ?? "USD")
|
|
266
|
-
}), /* @__PURE__ */ g(d, {
|
|
267
|
-
variant: "body2",
|
|
268
|
-
color: n ? "destructive" : "muted",
|
|
269
|
-
children: E.date("issued_at" in e ? e.issued_at : e.created_at, D.dateFormat)
|
|
270
|
-
})]
|
|
271
|
-
}), F ? /* @__PURE__ */ _("div", {
|
|
272
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
273
|
-
children: [n && /* @__PURE__ */ g(p, {
|
|
274
|
-
status: e.status,
|
|
275
|
-
dueDate: "due_date" in e ? e.due_date : void 0,
|
|
276
|
-
showOverdueBadge: !0
|
|
277
|
-
}), /* @__PURE__ */ g(p, {
|
|
278
|
-
status: e.status,
|
|
279
|
-
dueDate: "due_date" in e ? e.due_date : void 0
|
|
280
|
-
})]
|
|
281
|
-
}) : /* @__PURE__ */ g(Ce, { status: e.status })]
|
|
282
|
-
}), t < J.length - 1 && /* @__PURE__ */ g(fe, {})] }, e.id);
|
|
283
|
-
})
|
|
284
|
-
})]
|
|
285
|
-
}),
|
|
286
|
-
/* @__PURE__ */ _("div", {
|
|
287
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
288
|
-
children: [/* @__PURE__ */ _("div", {
|
|
289
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
290
|
-
children: [/* @__PURE__ */ _("div", {
|
|
291
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
292
|
-
children: [/* @__PURE__ */ g(d, {
|
|
293
|
-
variant: "body1",
|
|
294
|
-
className: "ttw:font-medium",
|
|
295
|
-
children: E._("{customerType} details", { customerType: F ? "Vendor" : "Customer" })
|
|
296
|
-
}), /* @__PURE__ */ g(d, {
|
|
297
|
-
variant: "body2",
|
|
298
|
-
color: "muted",
|
|
299
|
-
children: F ? E._("Who are you paying?") : E._("Who are you billing?")
|
|
300
|
-
})]
|
|
301
|
-
}), !N && U && /* @__PURE__ */ g(i, {
|
|
302
|
-
type: "button",
|
|
303
|
-
variant: "ghost",
|
|
304
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
305
|
-
onClick: () => P(!0),
|
|
306
|
-
children: E._("Edit")
|
|
307
|
-
})]
|
|
308
|
-
}), N && I ? /* @__PURE__ */ g(ve, {
|
|
309
|
-
customerType: v,
|
|
310
|
-
counterpart: I,
|
|
311
|
-
counterpartAddress: Y,
|
|
312
|
-
handleClose: () => P(!1),
|
|
313
|
-
onUpdate: () => P(!1)
|
|
314
|
-
}) : /* @__PURE__ */ _("ul", {
|
|
315
|
-
className: "ttw:list-none",
|
|
316
|
-
children: [
|
|
317
|
-
/* @__PURE__ */ g(f, {
|
|
318
|
-
label: E._("Type"),
|
|
319
|
-
value: I?.type === "individual" ? "Person" : "Business"
|
|
320
|
-
}),
|
|
321
|
-
/* @__PURE__ */ g(f, {
|
|
322
|
-
label: E._("Name"),
|
|
323
|
-
value: r(I)
|
|
324
|
-
}),
|
|
325
|
-
/* @__PURE__ */ g(f, {
|
|
326
|
-
label: E._("Email"),
|
|
327
|
-
value: ot
|
|
328
|
-
}),
|
|
329
|
-
!F && /* @__PURE__ */ g(f, {
|
|
330
|
-
label: E._("Payment reminders"),
|
|
331
|
-
value: I?.reminders_enabled ? "Enabled" : "Disabled"
|
|
332
|
-
}),
|
|
333
|
-
/* @__PURE__ */ g(f, {
|
|
334
|
-
label: E._("Phone"),
|
|
335
|
-
value: st
|
|
336
|
-
}),
|
|
337
|
-
/* @__PURE__ */ g(f, {
|
|
338
|
-
label: E._("Tax ID / {documentType}", { documentType: I?.type === "individual" ? "SSN" : "EIN" }),
|
|
339
|
-
value: /* @__PURE__ */ _("div", {
|
|
340
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
341
|
-
children: [/* @__PURE__ */ _("div", {
|
|
342
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
343
|
-
children: [/* @__PURE__ */ g(d, {
|
|
344
|
-
variant: "body2",
|
|
345
|
-
className: "ttw:font-medium",
|
|
346
|
-
children: at
|
|
347
|
-
}), $ && /* @__PURE__ */ g(i, {
|
|
348
|
-
onClick: () => Pe((e) => !e),
|
|
349
|
-
type: "button",
|
|
350
|
-
size: "sm",
|
|
351
|
-
variant: "outline",
|
|
352
|
-
className: "ttw:border-border ttw:h-5 ttw:p-2",
|
|
353
|
-
children: M ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Oe, {}), E._("Hide")] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(De, {}), E._("Show")] })
|
|
354
|
-
})]
|
|
355
|
-
}), /* @__PURE__ */ g(d, {
|
|
356
|
-
variant: "body2",
|
|
357
|
-
color: "muted",
|
|
358
|
-
children: F ? E._("Required only if you'll file a 1099 IRS form for this vendor at year-end.") : E._("Required only if you'll issue a 1099 IRS form at year-end.")
|
|
359
|
-
})]
|
|
360
|
-
})
|
|
361
|
-
}),
|
|
362
|
-
F && /* @__PURE__ */ g(f, {
|
|
363
|
-
label: E._("Address"),
|
|
364
|
-
isLast: !0,
|
|
365
|
-
value: /* @__PURE__ */ g("div", {
|
|
366
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
367
|
-
children: R ? /* @__PURE__ */ g(u, { className: "ttw:w-20" }) : /* @__PURE__ */ g(h, { children: Y ? /* @__PURE__ */ _(h, { children: [
|
|
368
|
-
/* @__PURE__ */ g(d, {
|
|
369
|
-
variant: "body2",
|
|
370
|
-
className: "ttw:font-medium",
|
|
371
|
-
children: Y?.line1
|
|
372
|
-
}),
|
|
373
|
-
Y?.line2 && /* @__PURE__ */ g(d, {
|
|
374
|
-
variant: "body2",
|
|
375
|
-
className: "ttw:font-medium",
|
|
376
|
-
children: Y.line2
|
|
377
|
-
}),
|
|
378
|
-
/* @__PURE__ */ g(d, {
|
|
379
|
-
variant: "body2",
|
|
380
|
-
className: "ttw:font-medium",
|
|
381
|
-
children: `${X && X}${X && (Z || Q) && ","} ${Z && Z} ${Q && Q}`
|
|
382
|
-
}),
|
|
383
|
-
/* @__PURE__ */ g(d, {
|
|
384
|
-
variant: "body2",
|
|
385
|
-
className: "ttw:font-medium",
|
|
386
|
-
children: Y?.country
|
|
387
|
-
})
|
|
388
|
-
] }) : /* @__PURE__ */ g(d, {
|
|
389
|
-
variant: "body2",
|
|
390
|
-
className: "ttw:font-medium",
|
|
391
|
-
children: "-"
|
|
392
|
-
}) })
|
|
393
|
-
})
|
|
394
|
-
})
|
|
395
|
-
]
|
|
396
|
-
})]
|
|
397
|
-
}),
|
|
398
|
-
!F && /* @__PURE__ */ g(_e, {
|
|
399
|
-
isStandalone: !0,
|
|
400
|
-
isLoading: L,
|
|
401
|
-
counterpartAddress: Y,
|
|
402
|
-
customerType: v,
|
|
403
|
-
counterpartId: I?.id,
|
|
404
|
-
isUpdateAllowed: U
|
|
405
|
-
}),
|
|
406
|
-
F && /* @__PURE__ */ _("div", {
|
|
407
|
-
className: "ttw:flex ttw:flex-col ttw:border-t ttw:border-border",
|
|
408
|
-
children: [/* @__PURE__ */ _("div", {
|
|
409
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-6 ttw:pb-7",
|
|
410
|
-
children: [/* @__PURE__ */ g(d, {
|
|
411
|
-
variant: "body1",
|
|
412
|
-
className: "ttw:font-medium",
|
|
413
|
-
children: E._("Accepted payment methods")
|
|
414
|
-
}), /* @__PURE__ */ g(d, {
|
|
415
|
-
variant: "body2",
|
|
416
|
-
color: "muted",
|
|
417
|
-
children: E._("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.")
|
|
418
|
-
})]
|
|
419
|
-
}), /* @__PURE__ */ g(ge, {
|
|
420
|
-
counterpartId: I?.id,
|
|
421
|
-
bankAccount: G,
|
|
422
|
-
isUpdateAllowed: U,
|
|
423
|
-
isDeleteAllowed: W,
|
|
424
|
-
isStandalone: !0,
|
|
425
|
-
isLoading: He,
|
|
426
|
-
onRemoveClick: () => Ue({ path: {
|
|
427
|
-
bank_account_id: G?.id || "",
|
|
428
|
-
counterpart_id: s
|
|
429
|
-
} })
|
|
430
|
-
})]
|
|
431
|
-
})
|
|
432
|
-
]
|
|
433
|
-
})]
|
|
434
|
-
})
|
|
435
|
-
}), s && A && /* @__PURE__ */ g(de, {
|
|
436
|
-
counterpartId: s,
|
|
437
|
-
counterpartName: r(I),
|
|
438
|
-
isOpen: A,
|
|
439
|
-
onDelete: () => {
|
|
440
|
-
x?.(), j(!1);
|
|
441
|
-
},
|
|
442
|
-
onCancel: () => j(!1)
|
|
443
|
-
})] });
|
|
444
|
-
};
|
|
445
|
-
//#endregion
|
|
446
|
-
export { v as CounterpartDetails };
|
|
1
|
+
import "./index132.js";
|
|
@@ -1,44 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { useDialog as e } from "./index128.js";
|
|
2
|
+
import "./index129.js";
|
|
3
|
+
import { IconWrapper as t } from "./index132.js";
|
|
4
|
+
import "./index133.js";
|
|
5
|
+
import { memo as n } from "react";
|
|
6
|
+
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { Breadcrumbs as o, DialogTitle as s, Divider as c, Grid as l, Typography as u, styled as d } from "@mui/material";
|
|
8
|
+
import { useLingui as f } from "@lingui/react";
|
|
9
|
+
import p from "@mui/icons-material/Close";
|
|
10
|
+
import m from "@mui/icons-material/ArrowForward";
|
|
6
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
12
|
+
var h = n(({ previousLevelTitle: e, onPreviousLevelClick: t, title: n }) => /* @__PURE__ */ a(o, {
|
|
13
|
+
color: "inherit",
|
|
14
|
+
separator: /* @__PURE__ */ i(m, {
|
|
15
|
+
fontSize: "small",
|
|
16
|
+
color: "disabled"
|
|
17
|
+
}),
|
|
18
|
+
sx: { padding: 3 },
|
|
19
|
+
"aria-label": "breadcrumb",
|
|
20
|
+
children: [/* @__PURE__ */ i(u, {
|
|
21
|
+
onClick: t,
|
|
22
|
+
sx: { cursor: t ? "pointer" : "default" },
|
|
23
|
+
children: e
|
|
24
|
+
}), /* @__PURE__ */ i(u, { children: n })]
|
|
25
|
+
})), g = n(({ title: n, secondaryLevel: o = !1, previousLevelTitle: s, closeButtonTooltip: u, showDivider: d = !0, closeSecondaryLevelDialog: m }) => {
|
|
26
|
+
let { i18n: g } = f(), v = e(), y = v?.isDialogContent && !o, b = u || g._("Close dialog");
|
|
27
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(l, {
|
|
28
|
+
container: !0,
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
children: [/* @__PURE__ */ i(l, {
|
|
31
|
+
item: !0,
|
|
32
|
+
xs: 11,
|
|
33
|
+
children: o && s ? /* @__PURE__ */ i(h, {
|
|
34
|
+
previousLevelTitle: s,
|
|
35
|
+
title: n,
|
|
36
|
+
onPreviousLevelClick: m
|
|
37
|
+
}) : /* @__PURE__ */ i(_, {
|
|
38
|
+
variant: "h3",
|
|
39
|
+
children: n
|
|
40
|
+
})
|
|
41
|
+
}), /* @__PURE__ */ i(l, {
|
|
42
|
+
item: !0,
|
|
43
|
+
xs: 1,
|
|
44
|
+
children: y && /* @__PURE__ */ i(t, {
|
|
45
|
+
color: "inherit",
|
|
46
|
+
onClick: v.onClose,
|
|
47
|
+
ariaLabelOverride: b,
|
|
48
|
+
tooltip: b,
|
|
49
|
+
children: /* @__PURE__ */ i(p, {})
|
|
50
|
+
})
|
|
40
51
|
})]
|
|
41
|
-
});
|
|
42
|
-
}
|
|
52
|
+
}), d && /* @__PURE__ */ i(c, {})] });
|
|
53
|
+
}), _ = d(s)(({ theme: e }) => ({ "&.MuiDialogTitle-root.MuiTypography-root": {
|
|
54
|
+
...e.typography.h3,
|
|
55
|
+
padding: e.spacing(3)
|
|
56
|
+
} }));
|
|
43
57
|
//#endregion
|
|
44
|
-
export {
|
|
58
|
+
export { g as DialogHeader };
|
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { useRootElements as e } from "./index78.js";
|
|
2
|
+
import "./index79.js";
|
|
3
|
+
import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { Alert as i, TextField as a } from "@mui/material";
|
|
5
|
+
import { Controller as o } from "react-hook-form";
|
|
3
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js
|
|
4
|
-
var
|
|
5
|
-
let {
|
|
6
|
-
return
|
|
7
|
+
var s = ({ control: s, name: c, SelectProps: l, type: u, ...d }) => {
|
|
8
|
+
let f = (e) => e?.type === "custom", { root: p } = e();
|
|
9
|
+
return /* @__PURE__ */ n(o, {
|
|
10
|
+
control: s,
|
|
11
|
+
name: c,
|
|
12
|
+
render: ({ field: e, fieldState: { error: o, isTouched: s }, formState: { isValid: m } }) => {
|
|
13
|
+
let h = (s || !m) && !f(o), g = (t) => {
|
|
14
|
+
let n = t.target.value;
|
|
15
|
+
u === "number" ? e.onChange(n === "" ? void 0 : Number(n)) : e.onChange(n);
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(a, {
|
|
18
|
+
...e,
|
|
19
|
+
...d,
|
|
20
|
+
id: c,
|
|
21
|
+
variant: "standard",
|
|
22
|
+
type: u,
|
|
23
|
+
value: e.value ?? "",
|
|
24
|
+
onChange: g,
|
|
25
|
+
error: h && !!o?.message,
|
|
26
|
+
helperText: h && o?.message,
|
|
27
|
+
SelectProps: {
|
|
28
|
+
...l,
|
|
29
|
+
MenuProps: {
|
|
30
|
+
...l?.MenuProps,
|
|
31
|
+
container: p
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}), f(o) && /* @__PURE__ */ n(i, {
|
|
35
|
+
severity: "error",
|
|
36
|
+
icon: !1,
|
|
37
|
+
sx: { marginTop: -2 },
|
|
38
|
+
children: o?.message
|
|
39
|
+
})] });
|
|
40
|
+
}
|
|
41
|
+
});
|
|
7
42
|
};
|
|
8
43
|
//#endregion
|
|
9
|
-
export {
|
|
44
|
+
export { s as RHFTextField };
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js
|
|
3
|
-
var t = (t) => {
|
|
4
|
-
let { api: n } = e();
|
|
5
|
-
return n.finops.getCounterpartsIdAddresses.useQuery({ path: { counterpart_id: t ?? "" } }, { enabled: !!t });
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as useCounterpartAddresses };
|
|
1
|
+
import "./index135.js";
|