@tesouro/embedded-components-react 0.2.241 → 0.2.243
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 +29 -7
- package/dist/experimental/EntryPointProbe.d.ts +22 -0
- package/dist/experimental/EntryPointProbe.js +9 -0
- package/dist/experimental/index.d.ts +22 -0
- package/dist/experimental/index.js +2 -0
- package/dist/lib/monite-sdk.js +55 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +7 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +445 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +38 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +76 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +110 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +5 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +98 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +206 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +155 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +51 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +299 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +24 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +74 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +90 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +13 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +21 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +50 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +48 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +169 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +0 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +82 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +29 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +1 -598
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +598 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +1 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +167 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +18 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +62 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +120 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +6 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +7 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +53 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +28 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +10 -6
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +4 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +9 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +42 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +425 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +2 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +187 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +53 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +1 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +88 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +169 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +206 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +0 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +255 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +32 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +59 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +35 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +151 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +69 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +14 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +214 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +76 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +103 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +163 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +5 -313
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +310 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +83 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +190 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +28 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +84 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +132 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +37 -447
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +447 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +16 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +78 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +142 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +34 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +62 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +67 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +140 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +58 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +85 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +18 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +23 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +156 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +8 -463
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +443 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +51 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +39 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +142 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +112 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +20 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +18 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +149 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +136 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +31 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +115 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +34 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +86 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +129 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +105 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +48 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +780 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +84 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +105 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +163 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +204 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +146 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +95 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +219 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +32 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +168 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +66 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +104 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +72 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +91 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/package.json +11 -1
|
@@ -1,6 +1,299 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
1
|
+
import { useIsMounted as e } from "./index28.js";
|
|
2
|
+
import { getCounterpartName as t } from "./index53.js";
|
|
3
|
+
import { Button as n } from "./index56.js";
|
|
4
|
+
import { Input as ee } from "./index89.js";
|
|
5
|
+
import { Combobox as r, ComboboxChip as te, ComboboxChips as ne, ComboboxChipsInput as re, ComboboxContent as i, ComboboxEmpty as ie, ComboboxInput as ae, ComboboxItem as a, ComboboxList as o, useComboboxAnchor as oe } from "./index104.js";
|
|
6
|
+
import { useCounterpartList as se } from "./index125.js";
|
|
7
|
+
import "./index138.js";
|
|
8
|
+
import "./index189.js";
|
|
9
|
+
import { LoadingSpinner as ce } from "./index51.js";
|
|
10
|
+
import { Typography as s } from "./index62.js";
|
|
11
|
+
import { Field as c, FieldContent as l, FieldError as le, FieldLabel as u } from "./index88.js";
|
|
12
|
+
import { CreateCounterpartDialog as ue } from "./index244.js";
|
|
13
|
+
import { Alert as de, AlertDescription as fe, AlertTitle as pe } from "./index246.js";
|
|
14
|
+
import { useEffect as d, useMemo as f, useRef as me, useState as p } from "react";
|
|
15
|
+
import { Plus as m, Sparkles as he } from "lucide-react";
|
|
16
|
+
import { jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
17
|
+
import { useLingui as ge } from "@lingui/react";
|
|
18
|
+
import { Controller as _e, useFormContext as ve } from "react-hook-form";
|
|
19
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js
|
|
20
|
+
var _ = "__create-new__", ye = 50, v = ({ control: v, name: y, label: b, required: x = !0, getCounterpartDefaultValues: be, multiple: S = !1, disabled: C = !1, customerType: w, counterpartRawName: T, counterpartMatchingToOCR: E, counterpartAISuggested: D, preselectedCounterpart: O, setShowEditCounterpartDialog: k, showEditCounterpartButton: xe = !1 }) => {
|
|
21
|
+
let { i18n: A } = ge(), { setValue: j, getValues: M } = ve(), N = me(null), [Se, P] = p(!1), [Ce, F] = p(!1), [I, we] = p(null), [L, R] = p(!1), [z, B] = p(!1), [V, H] = p(""), [Te, U] = p(""), [W, Ee] = p(!1), G = e(), K = oe(), { data: q, isLoading: De } = se({ query: { is_vendor: !0 } }), J = M(y), Y = w === "vendor" ? A._("New vendor") : A._("New customer"), Oe = w === "vendor" ? A._("Create new vendor") : A._("Create new customer"), X = f(() => S ? Array.isArray(J) && J.length > 0 : J != null && J !== "", [J, S]), Z = f(() => {
|
|
22
|
+
let e = [], n = q?.data.map((e) => ({
|
|
23
|
+
id: e.id,
|
|
24
|
+
label: t(e)
|
|
25
|
+
})) ?? [];
|
|
26
|
+
return !S && E && !n.some((e) => e.id === E.id) && e.push({
|
|
27
|
+
id: E.id,
|
|
28
|
+
label: t(E)
|
|
29
|
+
}), !S && D && !n.some((e) => e.id === D.id) && !e.some((e) => e.id === D.id) && e.push({
|
|
30
|
+
id: D.id,
|
|
31
|
+
label: t(D)
|
|
32
|
+
}), !S && O && !n.some((e) => e.id === O.id) && !e.some((e) => e.id === O.id) && e.push({
|
|
33
|
+
id: O.id,
|
|
34
|
+
label: t(O)
|
|
35
|
+
}), [...e, ...n];
|
|
36
|
+
}, [
|
|
37
|
+
q,
|
|
38
|
+
S,
|
|
39
|
+
E,
|
|
40
|
+
D,
|
|
41
|
+
O
|
|
42
|
+
]), ke = f(() => !S || !Array.isArray(J) ? [] : J.map((e) => e.id), [J, S]);
|
|
43
|
+
d(() => {
|
|
44
|
+
if (I) {
|
|
45
|
+
let e = M(y);
|
|
46
|
+
if (S) {
|
|
47
|
+
let t = e || [];
|
|
48
|
+
if (!t?.some((e) => e.id === I)) {
|
|
49
|
+
let e = Z.find((e) => e.id === I), n = {
|
|
50
|
+
id: I,
|
|
51
|
+
label: e ? e.label : Y
|
|
52
|
+
};
|
|
53
|
+
j(y, [...t, n]);
|
|
54
|
+
}
|
|
55
|
+
} else j(y, I, { shouldValidate: !0 });
|
|
56
|
+
}
|
|
57
|
+
}, [
|
|
58
|
+
I,
|
|
59
|
+
j,
|
|
60
|
+
y,
|
|
61
|
+
M,
|
|
62
|
+
Z,
|
|
63
|
+
S,
|
|
64
|
+
Y
|
|
65
|
+
]), d(() => {
|
|
66
|
+
if (X || D?.id) B(!0);
|
|
67
|
+
else {
|
|
68
|
+
let e = setTimeout(() => {
|
|
69
|
+
G.current && B(!0);
|
|
70
|
+
}, ye);
|
|
71
|
+
return () => clearTimeout(e);
|
|
72
|
+
}
|
|
73
|
+
}, [
|
|
74
|
+
X,
|
|
75
|
+
D?.id,
|
|
76
|
+
G
|
|
77
|
+
]), d(() => {
|
|
78
|
+
if (!S && !X && !L && G.current) {
|
|
79
|
+
let e = D || E;
|
|
80
|
+
if (e?.id) {
|
|
81
|
+
if (e === D && !z) return;
|
|
82
|
+
j(y, e.id, { shouldValidate: !0 });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, [
|
|
86
|
+
E,
|
|
87
|
+
D,
|
|
88
|
+
S,
|
|
89
|
+
X,
|
|
90
|
+
L,
|
|
91
|
+
y,
|
|
92
|
+
j,
|
|
93
|
+
G,
|
|
94
|
+
z
|
|
95
|
+
]);
|
|
96
|
+
let Q = f(() => S ? Array.isArray(J) ? J : [] : Z.find((e) => e.id === J) || null, [
|
|
97
|
+
J,
|
|
98
|
+
Z,
|
|
99
|
+
S
|
|
100
|
+
]), $ = f(() => {
|
|
101
|
+
let e = Q ? "" : V.toLowerCase().trim();
|
|
102
|
+
return e ? Z.filter((t) => t.label.toLowerCase().includes(e)) : Z;
|
|
103
|
+
}, [
|
|
104
|
+
V,
|
|
105
|
+
Q,
|
|
106
|
+
Z
|
|
107
|
+
]), Ae = Q?.label ?? V;
|
|
108
|
+
return De && !(E || D || O) ? /* @__PURE__ */ h(c, { children: /* @__PURE__ */ g(l, { children: [/* @__PURE__ */ h(u, {
|
|
109
|
+
required: x,
|
|
110
|
+
children: b
|
|
111
|
+
}), /* @__PURE__ */ g("div", {
|
|
112
|
+
className: "ttw:relative",
|
|
113
|
+
children: [/* @__PURE__ */ h(ee, {
|
|
114
|
+
disabled: !0,
|
|
115
|
+
className: "ttw:opacity-50"
|
|
116
|
+
}), /* @__PURE__ */ h("span", {
|
|
117
|
+
className: "ttw:absolute ttw:right-3 ttw:top-1/2 ttw:-translate-y-1/2 ttw:flex ttw:items-center",
|
|
118
|
+
children: /* @__PURE__ */ h(ce, { className: "ttw:h-4 ttw:w-4" })
|
|
119
|
+
})]
|
|
120
|
+
})] }) }) : /* @__PURE__ */ g("div", {
|
|
121
|
+
ref: N,
|
|
122
|
+
children: [
|
|
123
|
+
Se && /* @__PURE__ */ h(ue, {
|
|
124
|
+
open: !0,
|
|
125
|
+
onClose: () => {
|
|
126
|
+
P(!1), F(!1);
|
|
127
|
+
},
|
|
128
|
+
onCreate: (e) => {
|
|
129
|
+
P(!1), we(e);
|
|
130
|
+
},
|
|
131
|
+
getCounterpartDefaultValues: Ce ? be : void 0,
|
|
132
|
+
customerType: w
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ h(_e, {
|
|
135
|
+
control: v,
|
|
136
|
+
name: y,
|
|
137
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ h(c, { children: /* @__PURE__ */ g(l, { children: [
|
|
138
|
+
/* @__PURE__ */ h(u, {
|
|
139
|
+
required: x,
|
|
140
|
+
children: b
|
|
141
|
+
}),
|
|
142
|
+
S ? /* @__PURE__ */ g(r, {
|
|
143
|
+
multiple: !0,
|
|
144
|
+
value: ke,
|
|
145
|
+
items: Z.map((e) => e.id),
|
|
146
|
+
filter: () => !0,
|
|
147
|
+
onInputValueChange: (e) => U(e),
|
|
148
|
+
onValueChange: (e) => {
|
|
149
|
+
R(!0), U("");
|
|
150
|
+
let t = e.map((e) => Z.find((t) => t.id === e) || {
|
|
151
|
+
id: e,
|
|
152
|
+
label: Y
|
|
153
|
+
});
|
|
154
|
+
j(y, t);
|
|
155
|
+
},
|
|
156
|
+
disabled: C || De,
|
|
157
|
+
children: [/* @__PURE__ */ g(ne, {
|
|
158
|
+
ref: K,
|
|
159
|
+
"aria-invalid": !!t || void 0,
|
|
160
|
+
children: [ke.map((e) => {
|
|
161
|
+
let t = Z.find((t) => t.id === e);
|
|
162
|
+
return /* @__PURE__ */ h(te, { children: t?.label ?? "" }, e);
|
|
163
|
+
}), /* @__PURE__ */ h(re, {})]
|
|
164
|
+
}), /* @__PURE__ */ g(i, {
|
|
165
|
+
anchor: K,
|
|
166
|
+
container: N.current,
|
|
167
|
+
children: [/* @__PURE__ */ h("div", {
|
|
168
|
+
className: "ttw:px-1 ttw:pt-1",
|
|
169
|
+
children: /* @__PURE__ */ g(n, {
|
|
170
|
+
variant: "ghost",
|
|
171
|
+
size: "sm",
|
|
172
|
+
type: "button",
|
|
173
|
+
className: "ttw:w-full ttw:justify-start ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary",
|
|
174
|
+
onClick: () => P(!0),
|
|
175
|
+
children: [/* @__PURE__ */ h(m, {}), Oe]
|
|
176
|
+
})
|
|
177
|
+
}), /* @__PURE__ */ h(o, { children: (() => {
|
|
178
|
+
let e = Te.toLowerCase().trim(), t = e ? Z.filter((t) => t.label.toLowerCase().includes(e)) : Z;
|
|
179
|
+
return t.length === 0 ? /* @__PURE__ */ h(s, {
|
|
180
|
+
variant: "body2",
|
|
181
|
+
color: "muted",
|
|
182
|
+
className: "ttw:flex ttw:w-full ttw:justify-center ttw:py-2 ttw:text-center",
|
|
183
|
+
children: A._("No {customerType} found", { customerType: w === "vendor" ? "vendors" : "customers" })
|
|
184
|
+
}) : t.map((e) => /* @__PURE__ */ h(a, {
|
|
185
|
+
value: e.id,
|
|
186
|
+
children: e.label
|
|
187
|
+
}, e.id));
|
|
188
|
+
})() })]
|
|
189
|
+
})]
|
|
190
|
+
}) : /* @__PURE__ */ g(r, {
|
|
191
|
+
value: e.value || null,
|
|
192
|
+
onValueChange: (e) => {
|
|
193
|
+
if (e === _) {
|
|
194
|
+
P(!0);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
R(!0), H(""), j(y, e ?? "", { shouldValidate: !0 });
|
|
198
|
+
},
|
|
199
|
+
inputValue: Ae,
|
|
200
|
+
onInputValueChange: (t) => {
|
|
201
|
+
t !== _ && (Z.some((e) => e.id === t) || (H(t), e.value && j(y, "")));
|
|
202
|
+
},
|
|
203
|
+
filter: () => !0,
|
|
204
|
+
open: W,
|
|
205
|
+
onOpenChange: Ee,
|
|
206
|
+
disabled: C,
|
|
207
|
+
children: [/* @__PURE__ */ g("div", {
|
|
208
|
+
className: "ttw:relative",
|
|
209
|
+
children: [/* @__PURE__ */ h(ae, {
|
|
210
|
+
className: "ttw:w-full",
|
|
211
|
+
"aria-invalid": !!t || void 0,
|
|
212
|
+
showClear: W && (!!Q || !!V),
|
|
213
|
+
disabled: C
|
|
214
|
+
}), !W && Q && xe && k && e.value && /* @__PURE__ */ h("div", {
|
|
215
|
+
className: "ttw:pointer-events-none ttw:absolute ttw:inset-y-0 ttw:right-8 ttw:flex ttw:items-center",
|
|
216
|
+
children: /* @__PURE__ */ h(n, {
|
|
217
|
+
type: "button",
|
|
218
|
+
variant: "ghost",
|
|
219
|
+
size: "sm",
|
|
220
|
+
className: "ttw:pointer-events-auto ttw:min-w-0 ttw:px-1",
|
|
221
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
222
|
+
onClick: (e) => {
|
|
223
|
+
e.preventDefault(), k(!0);
|
|
224
|
+
},
|
|
225
|
+
children: A._("Edit")
|
|
226
|
+
})
|
|
227
|
+
})]
|
|
228
|
+
}), /* @__PURE__ */ h(i, {
|
|
229
|
+
container: N.current,
|
|
230
|
+
children: /* @__PURE__ */ g(o, { children: [/* @__PURE__ */ g(a, {
|
|
231
|
+
value: _,
|
|
232
|
+
className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary",
|
|
233
|
+
children: [/* @__PURE__ */ h(m, {}), Oe]
|
|
234
|
+
}), $.length === 0 ? /* @__PURE__ */ h(ie, { children: A._("No {customerType} found", { customerType: w === "vendor" ? "vendors" : "customers" }) }) : $.map((e) => /* @__PURE__ */ h(a, {
|
|
235
|
+
value: e.id,
|
|
236
|
+
children: e.label
|
|
237
|
+
}, e.id))] })
|
|
238
|
+
})]
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ h(le, { errors: [t] })
|
|
241
|
+
] }) })
|
|
242
|
+
}),
|
|
243
|
+
D && J === D.id && /* @__PURE__ */ g(de, {
|
|
244
|
+
variant: "info",
|
|
245
|
+
className: "ttw:mt-2",
|
|
246
|
+
icon: /* @__PURE__ */ h(he, {}),
|
|
247
|
+
children: [/* @__PURE__ */ h(pe, { children: A._("Vendor auto-matched by AI") }), /* @__PURE__ */ h(fe, { children: A._("The vendor name on the bill doesn't exactly match the saved vendor, so AI selected the closest option.") })]
|
|
248
|
+
}),
|
|
249
|
+
!D && !E && T && !J && !S && /* @__PURE__ */ g(s, {
|
|
250
|
+
variant: "body2",
|
|
251
|
+
color: "muted",
|
|
252
|
+
className: "ttw:mt-1",
|
|
253
|
+
children: [
|
|
254
|
+
A._("The specified vendor has not been saved yet."),
|
|
255
|
+
" ",
|
|
256
|
+
A._("Create new vendor:"),
|
|
257
|
+
/* @__PURE__ */ h(n, {
|
|
258
|
+
variant: "link",
|
|
259
|
+
size: "sm",
|
|
260
|
+
className: "ttw:ml-0.5 ttw:p-0 ttw:h-auto ttw:text-xs ttw:underline",
|
|
261
|
+
onClick: (e) => {
|
|
262
|
+
e.preventDefault(), F(!0), P(!0);
|
|
263
|
+
},
|
|
264
|
+
children: T
|
|
265
|
+
})
|
|
266
|
+
]
|
|
267
|
+
}),
|
|
268
|
+
!D && E && J == E.id && !S && k && /* @__PURE__ */ h(de, {
|
|
269
|
+
variant: "warning",
|
|
270
|
+
className: "ttw:mt-2",
|
|
271
|
+
children: /* @__PURE__ */ g(fe, { children: [
|
|
272
|
+
A._("The vendor details in the bill don't fully match the saved vendor. Consider editing the saved vendor or creating a new one."),
|
|
273
|
+
/* @__PURE__ */ h("br", {}),
|
|
274
|
+
/* @__PURE__ */ h(n, {
|
|
275
|
+
variant: "link",
|
|
276
|
+
size: "sm",
|
|
277
|
+
className: "ttw:mr-1 ttw:p-0 ttw:h-auto ttw:font-medium ttw:text-inherit ttw:underline",
|
|
278
|
+
onClick: (e) => {
|
|
279
|
+
e.preventDefault(), k(!0);
|
|
280
|
+
},
|
|
281
|
+
children: `${A._("Edit")} ${t(E)}`
|
|
282
|
+
}),
|
|
283
|
+
A._(" or "),
|
|
284
|
+
/* @__PURE__ */ h(n, {
|
|
285
|
+
variant: "link",
|
|
286
|
+
size: "sm",
|
|
287
|
+
className: "ttw:ml-1 ttw:p-0 ttw:h-auto ttw:font-medium ttw:text-inherit ttw:underline",
|
|
288
|
+
onClick: (e) => {
|
|
289
|
+
e.preventDefault(), F(!0), P(!0);
|
|
290
|
+
},
|
|
291
|
+
children: A._("Create new vendor")
|
|
292
|
+
})
|
|
293
|
+
] })
|
|
294
|
+
})
|
|
295
|
+
]
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
//#endregion
|
|
299
|
+
export { v as CounterpartAutocomplete };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { r as LoadingPage };
|
|
1
|
+
import "./index53.js";
|
|
2
|
+
import "./index229.js";
|
|
3
|
+
import "./index242.js";
|
|
4
|
+
import "./index243.js";
|
|
5
|
+
import "./index245.js";
|
|
6
|
+
import "./index247.js";
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { CenteredContentBox as e } from "./index203.js";
|
|
2
|
+
import "./index204.js";
|
|
3
|
+
import { LoadingSpinner as t } from "./index51.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js
|
|
6
|
+
var r = () => /* @__PURE__ */ n(e, { children: /* @__PURE__ */ n(t, {}) });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as LoadingPage };
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import * as n from "@radix-ui/react-avatar";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js
|
|
6
|
-
function r({ className: r, ...i }) {
|
|
7
|
-
return /* @__PURE__ */ t(n.Root, {
|
|
8
|
-
"data-slot": "avatar",
|
|
9
|
-
className: e("ttw:relative ttw:flex ttw:size-8 ttw:shrink-0 ttw:overflow-hidden ttw:rounded-full", r),
|
|
10
|
-
...i
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function i({ className: r, ...i }) {
|
|
14
|
-
return /* @__PURE__ */ t(n.Fallback, {
|
|
15
|
-
"data-slot": "avatar-fallback",
|
|
16
|
-
className: e("ttw:bg-muted ttw:flex ttw:size-full ttw:items-center ttw:justify-center ttw:rounded-full", r),
|
|
17
|
-
...i
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { r as Avatar, i as AvatarFallback };
|
|
1
|
+
import "./index249.js";
|
|
@@ -1,72 +1,21 @@
|
|
|
1
|
+
import { cn as e } from "./index49.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import * as n from "@radix-ui/react-avatar";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
className: t,
|
|
9
|
-
showAvatar: !1,
|
|
10
|
-
showIcon: !1
|
|
11
|
-
} : {
|
|
12
|
-
useBadge: !0,
|
|
13
|
-
badgeVariant: "outline",
|
|
14
|
-
className: t,
|
|
15
|
-
showAvatar: !1,
|
|
16
|
-
showIcon: !1
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
return i === "user" ? t(e, a, o, s) : n(e, s);
|
|
20
|
-
};
|
|
21
|
-
function t(e, t, n, r) {
|
|
22
|
-
switch (e) {
|
|
23
|
-
case "badge": return {
|
|
24
|
-
useBadge: !0,
|
|
25
|
-
badgeVariant: "secondary",
|
|
26
|
-
className: `ttw:gap-1 ttw:px-2 ttw:py-1 ${r}`,
|
|
27
|
-
showAvatar: t,
|
|
28
|
-
showIcon: !1
|
|
29
|
-
};
|
|
30
|
-
case "cell": return {
|
|
31
|
-
useBadge: !1,
|
|
32
|
-
badgeVariant: "secondary",
|
|
33
|
-
className: `ttw:text-sm ttw:font-medium ttw:text-foreground ttw:overflow-hidden ttw:text-ellipsis ttw:whitespace-nowrap ttw:block ${n ? "ttw:text-blue-600" : ""} ${r}`,
|
|
34
|
-
showAvatar: !1,
|
|
35
|
-
showIcon: !1
|
|
36
|
-
};
|
|
37
|
-
default: return {
|
|
38
|
-
useBadge: !1,
|
|
39
|
-
badgeVariant: "secondary",
|
|
40
|
-
className: `ttw:text-sm ttw:font-medium ttw:text-foreground ${r}`,
|
|
41
|
-
showAvatar: !1,
|
|
42
|
-
showIcon: !1
|
|
43
|
-
};
|
|
44
|
-
}
|
|
6
|
+
function r({ className: r, ...i }) {
|
|
7
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
8
|
+
"data-slot": "avatar",
|
|
9
|
+
className: e("ttw:relative ttw:flex ttw:size-8 ttw:shrink-0 ttw:overflow-hidden ttw:rounded-full", r),
|
|
10
|
+
...i
|
|
11
|
+
});
|
|
45
12
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
showAvatar: !1,
|
|
53
|
-
showIcon: !1
|
|
54
|
-
};
|
|
55
|
-
case "outlined": return {
|
|
56
|
-
useBadge: !0,
|
|
57
|
-
badgeVariant: "outline",
|
|
58
|
-
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:text-sm ttw:font-medium ttw:whitespace-nowrap ttw:rounded ttw:px-2 ttw:py-1 ttw:gap-1 ${t}`,
|
|
59
|
-
showAvatar: !1,
|
|
60
|
-
showIcon: !0
|
|
61
|
-
};
|
|
62
|
-
default: return {
|
|
63
|
-
useBadge: !0,
|
|
64
|
-
badgeVariant: "secondary",
|
|
65
|
-
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:h-8 ttw:bg-[rgb(248,248,255)] ttw:text-[rgb(55,55,255)] ttw:text-sm ttw:leading-4 ttw:font-medium ttw:whitespace-nowrap ttw:border-0 ttw:rounded-[7.98px] ttw:px-2 ttw:py-[7px] ttw:gap-2 ttw:transition-colors ${t}`,
|
|
66
|
-
showAvatar: !1,
|
|
67
|
-
showIcon: !0
|
|
68
|
-
};
|
|
69
|
-
}
|
|
13
|
+
function i({ className: r, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ t(n.Fallback, {
|
|
15
|
+
"data-slot": "avatar-fallback",
|
|
16
|
+
className: e("ttw:bg-muted ttw:flex ttw:size-full ttw:items-center ttw:justify-center ttw:rounded-full", r),
|
|
17
|
+
...i
|
|
18
|
+
});
|
|
70
19
|
}
|
|
71
20
|
//#endregion
|
|
72
|
-
export {
|
|
21
|
+
export { r as Avatar, i as AvatarFallback };
|
|
@@ -1,54 +1,72 @@
|
|
|
1
|
-
import { useEntityUserById as e } from "./index129.js";
|
|
2
|
-
import "./index138.js";
|
|
3
|
-
import { Skeleton as t } from "./index54.js";
|
|
4
|
-
import { Badge as n } from "./index195.js";
|
|
5
|
-
import { Avatar as r, AvatarFallback as i } from "./index250.js";
|
|
6
|
-
import { getVariantProps as a } from "./index251.js";
|
|
7
|
-
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
});
|
|
2
|
+
var e = ({ variant: e, isError: r = !1, componentType: i, showAvatar: a = !1, showUsersAsEmail: o = !1, className: s = "" }) => {
|
|
3
|
+
if (r) {
|
|
4
|
+
let t = `ttw:text-muted-foreground ${s}`;
|
|
5
|
+
return i === "user" && e !== "badge" ? {
|
|
6
|
+
useBadge: !1,
|
|
7
|
+
badgeVariant: "outline",
|
|
8
|
+
className: t,
|
|
9
|
+
showAvatar: !1,
|
|
10
|
+
showIcon: !1
|
|
11
|
+
} : {
|
|
12
|
+
useBadge: !0,
|
|
13
|
+
badgeVariant: "outline",
|
|
14
|
+
className: t,
|
|
15
|
+
showAvatar: !1,
|
|
16
|
+
showIcon: !1
|
|
17
|
+
};
|
|
26
18
|
}
|
|
27
|
-
|
|
28
|
-
let v = _ ? `${_.first_name ?? ""} ${_.last_name ?? ""}`.trim() : "", y = _ ? `${_.first_name?.[0] ?? ""}${_.last_name?.[0] ?? ""}`.toUpperCase() : "", b = d && _?.email ? _.email : v || _?.email || "";
|
|
29
|
-
if (h) return /* @__PURE__ */ o(t, { className: "ttw:h-4 ttw:w-20" });
|
|
30
|
-
let { useBadge: x, badgeVariant: S, className: C, showAvatar: w } = a({
|
|
31
|
-
variant: u,
|
|
32
|
-
isError: !1,
|
|
33
|
-
componentType: "user",
|
|
34
|
-
showAvatar: f,
|
|
35
|
-
showUsersAsEmail: d,
|
|
36
|
-
className: p
|
|
37
|
-
});
|
|
38
|
-
return x ? /* @__PURE__ */ s(n, {
|
|
39
|
-
variant: S,
|
|
40
|
-
className: C,
|
|
41
|
-
children: [w && /* @__PURE__ */ o(r, {
|
|
42
|
-
className: "ttw:w-4 ttw:h-4",
|
|
43
|
-
children: /* @__PURE__ */ o(i, {
|
|
44
|
-
className: "ttw:text-xs ttw:font-medium",
|
|
45
|
-
children: y
|
|
46
|
-
})
|
|
47
|
-
}), b]
|
|
48
|
-
}) : /* @__PURE__ */ o("span", {
|
|
49
|
-
className: C,
|
|
50
|
-
children: b
|
|
51
|
-
});
|
|
19
|
+
return i === "user" ? t(e, a, o, s) : n(e, s);
|
|
52
20
|
};
|
|
21
|
+
function t(e, t, n, r) {
|
|
22
|
+
switch (e) {
|
|
23
|
+
case "badge": return {
|
|
24
|
+
useBadge: !0,
|
|
25
|
+
badgeVariant: "secondary",
|
|
26
|
+
className: `ttw:gap-1 ttw:px-2 ttw:py-1 ${r}`,
|
|
27
|
+
showAvatar: t,
|
|
28
|
+
showIcon: !1
|
|
29
|
+
};
|
|
30
|
+
case "cell": return {
|
|
31
|
+
useBadge: !1,
|
|
32
|
+
badgeVariant: "secondary",
|
|
33
|
+
className: `ttw:text-sm ttw:font-medium ttw:text-foreground ttw:overflow-hidden ttw:text-ellipsis ttw:whitespace-nowrap ttw:block ${n ? "ttw:text-blue-600" : ""} ${r}`,
|
|
34
|
+
showAvatar: !1,
|
|
35
|
+
showIcon: !1
|
|
36
|
+
};
|
|
37
|
+
default: return {
|
|
38
|
+
useBadge: !1,
|
|
39
|
+
badgeVariant: "secondary",
|
|
40
|
+
className: `ttw:text-sm ttw:font-medium ttw:text-foreground ${r}`,
|
|
41
|
+
showAvatar: !1,
|
|
42
|
+
showIcon: !1
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function n(e, t) {
|
|
47
|
+
switch (e) {
|
|
48
|
+
case "filled": return {
|
|
49
|
+
useBadge: !0,
|
|
50
|
+
badgeVariant: "secondary",
|
|
51
|
+
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:h-8 ttw:bg-gray-100 ttw:text-gray-800 ttw:text-sm ttw:leading-4 ttw:font-medium ttw:whitespace-nowrap ttw:border-0 ttw:rounded-lg ttw:px-4 ttw:py-1 ${t}`,
|
|
52
|
+
showAvatar: !1,
|
|
53
|
+
showIcon: !1
|
|
54
|
+
};
|
|
55
|
+
case "outlined": return {
|
|
56
|
+
useBadge: !0,
|
|
57
|
+
badgeVariant: "outline",
|
|
58
|
+
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:text-sm ttw:font-medium ttw:whitespace-nowrap ttw:rounded ttw:px-2 ttw:py-1 ttw:gap-1 ${t}`,
|
|
59
|
+
showAvatar: !1,
|
|
60
|
+
showIcon: !0
|
|
61
|
+
};
|
|
62
|
+
default: return {
|
|
63
|
+
useBadge: !0,
|
|
64
|
+
badgeVariant: "secondary",
|
|
65
|
+
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:h-8 ttw:bg-[rgb(248,248,255)] ttw:text-[rgb(55,55,255)] ttw:text-sm ttw:leading-4 ttw:font-medium ttw:whitespace-nowrap ttw:border-0 ttw:rounded-[7.98px] ttw:px-2 ttw:py-[7px] ttw:gap-2 ttw:transition-colors ${t}`,
|
|
66
|
+
showAvatar: !1,
|
|
67
|
+
showIcon: !0
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
53
71
|
//#endregion
|
|
54
|
-
export {
|
|
72
|
+
export { e as getVariantProps };
|
|
@@ -1 +1,54 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useEntityUserById as e } from "./index129.js";
|
|
2
|
+
import "./index138.js";
|
|
3
|
+
import { Skeleton as t } from "./index54.js";
|
|
4
|
+
import { Badge as n } from "./index195.js";
|
|
5
|
+
import { Avatar as r, AvatarFallback as i } from "./index251.js";
|
|
6
|
+
import { getVariantProps as a } from "./index252.js";
|
|
7
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js
|
|
9
|
+
var c = ({ userId: c, user: l, variant: u = "text", showUsersAsEmail: d = !1, showAvatar: f = !1, className: p = "" }) => {
|
|
10
|
+
let { data: m, isLoading: h, isError: g } = e(l ? void 0 : c), _ = l || m;
|
|
11
|
+
if (!_ && !h && g && c) {
|
|
12
|
+
let { useBadge: e, badgeVariant: t, className: r } = a({
|
|
13
|
+
variant: u,
|
|
14
|
+
isError: !0,
|
|
15
|
+
componentType: "user",
|
|
16
|
+
className: p
|
|
17
|
+
});
|
|
18
|
+
return e ? /* @__PURE__ */ o(n, {
|
|
19
|
+
variant: t,
|
|
20
|
+
className: r,
|
|
21
|
+
children: "N/A"
|
|
22
|
+
}) : /* @__PURE__ */ o("span", {
|
|
23
|
+
className: r,
|
|
24
|
+
children: "N/A"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
if (!_ && !h) return null;
|
|
28
|
+
let v = _ ? `${_.first_name ?? ""} ${_.last_name ?? ""}`.trim() : "", y = _ ? `${_.first_name?.[0] ?? ""}${_.last_name?.[0] ?? ""}`.toUpperCase() : "", b = d && _?.email ? _.email : v || _?.email || "";
|
|
29
|
+
if (h) return /* @__PURE__ */ o(t, { className: "ttw:h-4 ttw:w-20" });
|
|
30
|
+
let { useBadge: x, badgeVariant: S, className: C, showAvatar: w } = a({
|
|
31
|
+
variant: u,
|
|
32
|
+
isError: !1,
|
|
33
|
+
componentType: "user",
|
|
34
|
+
showAvatar: f,
|
|
35
|
+
showUsersAsEmail: d,
|
|
36
|
+
className: p
|
|
37
|
+
});
|
|
38
|
+
return x ? /* @__PURE__ */ s(n, {
|
|
39
|
+
variant: S,
|
|
40
|
+
className: C,
|
|
41
|
+
children: [w && /* @__PURE__ */ o(r, {
|
|
42
|
+
className: "ttw:w-4 ttw:h-4",
|
|
43
|
+
children: /* @__PURE__ */ o(i, {
|
|
44
|
+
className: "ttw:text-xs ttw:font-medium",
|
|
45
|
+
children: y
|
|
46
|
+
})
|
|
47
|
+
}), b]
|
|
48
|
+
}) : /* @__PURE__ */ o("span", {
|
|
49
|
+
className: C,
|
|
50
|
+
children: b
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { c as User };
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var e = {
|
|
3
|
-
WAS_CREATED_BY_USER_ID: "was_created_by_user_id",
|
|
4
|
-
COUNTERPART_ID: "counterpart_id",
|
|
5
|
-
TAGS: "tags.id",
|
|
6
|
-
AMOUNT: "amount",
|
|
7
|
-
CURRENCY: "currency"
|
|
8
|
-
}, t = (t) => Object.values(e).includes(t), n = {
|
|
9
|
-
IN: "in",
|
|
10
|
-
EQUALS: "==",
|
|
11
|
-
GREATER_THAN: ">",
|
|
12
|
-
LESS_THAN: "<",
|
|
13
|
-
GREATER_THAN_OR_EQUAL: ">=",
|
|
14
|
-
LESS_THAN_OR_EQUAL: "<=",
|
|
15
|
-
RANGE: "range"
|
|
16
|
-
}, r = (e) => Object.values(n).includes(e), i = (e) => e.replace("invoice.", ""), a = (e) => e.operator === n.IN && typeof e.left_operand == "string" && typeof e.right_operand == "object" && e.right_operand && "name" in e.right_operand, o = (e) => !!e.left_operand && typeof e.left_operand == "object" && "name" in e.left_operand, s = (e) => a(e) ? {
|
|
17
|
-
key: i(e.right_operand.name),
|
|
18
|
-
value: e.left_operand
|
|
19
|
-
} : o(e) ? {
|
|
20
|
-
key: i(e.left_operand?.name),
|
|
21
|
-
value: e.right_operand
|
|
22
|
-
} : {
|
|
23
|
-
key: null,
|
|
24
|
-
value: null
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { e as NAMED_VALUES, n as OPERATOR_OPERATIONS, i as extractFieldName, s as getTriggerKeyAndValue, r as isValidOperation, t as isValidTriggerKey };
|
|
1
|
+
import "./index253.js";
|