@tesouro/embedded-components-react 0.2.288 → 0.2.292
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.d.ts +1 -0
- package/dist/lib/ReceivablesWidget.d.ts +1 -0
- package/dist/lib/monite-sdk.d.ts +1 -1
- package/dist/lib/monite-sdk.js +55 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +189 -185
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +8 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +74 -444
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +443 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +40 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +81 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +58 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +31 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +43 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +4 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +2 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +49 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +118 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +5 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +181 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +209 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +157 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +57 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +60 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +297 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +17 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +72 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +51 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +24 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +88 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +3 -56
- 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 +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +55 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +49 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +40 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +74 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +7 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +74 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +1 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +20 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +48 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +63 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +53 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +162 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +25 -595
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +599 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +163 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +27 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +10 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +70 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +126 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +5 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +120 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +21 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +33 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +7 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +55 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +74 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +25 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +57 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +17 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +180 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +29 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +3 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +8 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +8 -34
- 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 +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +20 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +5 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +117 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +62 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +198 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +42 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +7 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +421 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +1 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +92 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +2 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +193 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +160 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +10 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +61 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +44 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +49 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +81 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +23 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +40 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +344 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +159 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +31 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +4 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +87 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +173 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +132 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -253
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +237 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +33 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +142 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +165 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +59 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +38 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +153 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +217 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +33 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +1 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +77 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +185 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +166 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +12 -310
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +9 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +5 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +312 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +90 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +182 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +29 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +82 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +133 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +37 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +434 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +141 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +143 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +36 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +59 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +66 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +149 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +59 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +84 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +14 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +19 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +42 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -8
- 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 +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +13 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +9 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +101 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +35 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +65 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +28 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +157 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +129 -235
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +131 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +68 -434
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +246 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +6 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +433 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +53 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +44 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +40 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +143 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +111 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +38 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +32 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +19 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +22 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +72 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +17 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +172 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +138 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +114 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +45 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +12 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +22 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +28 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +36 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +92 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +50 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +1 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +35 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +1 -785
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +132 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +104 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +54 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +781 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +89 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +103 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +24 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +12 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +2 -208
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +21 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +156 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +202 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +80 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +19 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +157 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +94 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +3 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +24 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +183 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +74 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +19 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +128 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +5 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +212 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +11 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +34 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +172 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +198 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +96 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +60 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +54 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +92 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +39 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +79 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +87 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +17 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +9 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +5 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +18 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +71 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +117 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +75 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +146 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +14 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +91 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +2 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +22 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +69 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +25 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +36 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +15 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.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 +1 -1
|
@@ -1,169 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Select as u, SelectContent as d, SelectItem as f, SelectTrigger as p, SelectValue as m } from "./index101.js";
|
|
8
|
-
import { getTagCategoryLabel as h, tagCategories as g } from "./index294.js";
|
|
9
|
-
import { useTags as _ } from "./index295.js";
|
|
10
|
-
import { Form as v, FormControl as y, FormField as b, FormItem as x, FormLabel as S, FormMessage as C } from "./index296.js";
|
|
11
|
-
import { InputTags as w } from "./index297.js";
|
|
12
|
-
import { useEffect as T, useId as E } from "react";
|
|
13
|
-
import { z as D } from "zod";
|
|
14
|
-
import { Fragment as O, jsx as k, jsxs as A } from "@emotion/react/jsx-runtime";
|
|
15
|
-
import { toast as j } from "react-hot-toast";
|
|
16
|
-
import { useLingui as M } from "@lingui/react";
|
|
17
|
-
import { useForm as N } from "react-hook-form";
|
|
18
|
-
import { zodResolver as P } from "@hookform/resolvers/zod";
|
|
1
|
+
import { cn as e } from "./index49.js";
|
|
2
|
+
import { Label as t } from "./index87.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
6
|
+
import { Controller as a, FormProvider as o, useFormContext as s, useFormState as c } from "react-hook-form";
|
|
19
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
type: "custom",
|
|
45
|
-
message: e
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
onTagCreated: (e) => {
|
|
49
|
-
j.success(V._("New tag “{createdTagName}” created", { createdTagName: e.name })), D?.(e), R?.(), K();
|
|
50
|
-
},
|
|
51
|
-
onTagUpdated: (e) => {
|
|
52
|
-
r && j.success(r.name === e.name ? V._("Tag “{tagName}” was updated”", { tagName: r.name }) : V._("Tag “{tagName}” renamed to “{updatedTagName}”", {
|
|
53
|
-
tagName: r.name,
|
|
54
|
-
updatedTagName: e.name
|
|
55
|
-
})), I?.(e), R?.(), K();
|
|
56
|
-
}
|
|
57
|
-
}), { root: Q } = n(), $ = `Monite-Form-tag-${E()}`;
|
|
58
|
-
return /* @__PURE__ */ k(O, { children: /* @__PURE__ */ k(i, {
|
|
59
|
-
open: z,
|
|
60
|
-
onOpenChange: R,
|
|
61
|
-
children: /* @__PURE__ */ A(a, {
|
|
62
|
-
container: Q,
|
|
63
|
-
className: "Monite-Payables ttw:w-[600px]",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ A(c, { children: [/* @__PURE__ */ k(l, { children: r ? V._("Edit tag ”{tagName}”", { tagName: r.name }) : V._("Create new tag") }), /* @__PURE__ */ k(o, {
|
|
66
|
-
className: "ttw:sr-only",
|
|
67
|
-
children: r ? V._("Edit tag ”{tagName}”", { tagName: r.name }) : V._("Create new tag")
|
|
68
|
-
})] }),
|
|
69
|
-
/* @__PURE__ */ k(v, {
|
|
70
|
-
...U,
|
|
71
|
-
children: /* @__PURE__ */ k("form", {
|
|
72
|
-
id: $,
|
|
73
|
-
name: $,
|
|
74
|
-
onSubmit: (e) => {
|
|
75
|
-
e.preventDefault(), e.stopPropagation(), G(async (e) => {
|
|
76
|
-
let { keywords: t, name: n, category: i } = e, a = {
|
|
77
|
-
name: n,
|
|
78
|
-
...i ? { category: i } : {}
|
|
79
|
-
}, o = await (r ? Y(r.id, a) : J(a));
|
|
80
|
-
Z(o.id, t);
|
|
81
|
-
})(e);
|
|
82
|
-
},
|
|
83
|
-
children: /* @__PURE__ */ A("div", {
|
|
84
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:pt-8 ttw:pb-6",
|
|
85
|
-
children: [
|
|
86
|
-
/* @__PURE__ */ k(b, {
|
|
87
|
-
name: "name",
|
|
88
|
-
control: W,
|
|
89
|
-
render: ({ field: e }) => /* @__PURE__ */ A(x, { children: [
|
|
90
|
-
/* @__PURE__ */ k(S, { children: V._("Name") }),
|
|
91
|
-
/* @__PURE__ */ k(y, { children: /* @__PURE__ */ k(t, {
|
|
92
|
-
autoFocus: !0,
|
|
93
|
-
...e
|
|
94
|
-
}) }),
|
|
95
|
-
/* @__PURE__ */ k(C, {})
|
|
96
|
-
] })
|
|
97
|
-
}),
|
|
98
|
-
/* @__PURE__ */ k(b, {
|
|
99
|
-
name: "category",
|
|
100
|
-
control: W,
|
|
101
|
-
render: ({ field: e }) => /* @__PURE__ */ A(x, { children: [
|
|
102
|
-
/* @__PURE__ */ k(S, { children: V._("Category") }),
|
|
103
|
-
/* @__PURE__ */ A(u, {
|
|
104
|
-
onValueChange: e.onChange,
|
|
105
|
-
defaultValue: e.value,
|
|
106
|
-
children: [/* @__PURE__ */ k(y, { children: /* @__PURE__ */ k(p, {
|
|
107
|
-
className: "ttw:w-full",
|
|
108
|
-
children: /* @__PURE__ */ k(m, { placeholder: V._("Not set") })
|
|
109
|
-
}) }), /* @__PURE__ */ k(d, { children: g.map((e) => /* @__PURE__ */ k(f, {
|
|
110
|
-
value: e,
|
|
111
|
-
children: h(e, V)
|
|
112
|
-
}, e)) })]
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ k(C, {})
|
|
115
|
-
] })
|
|
116
|
-
}),
|
|
117
|
-
/* @__PURE__ */ k(b, {
|
|
118
|
-
name: "keywords",
|
|
119
|
-
control: W,
|
|
120
|
-
render: ({ field: e }) => /* @__PURE__ */ A(x, {
|
|
121
|
-
className: "ttw:flex ttw:flex-col",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ k(S, { children: V._("Keywords") }),
|
|
124
|
-
/* @__PURE__ */ k(w, {
|
|
125
|
-
...e,
|
|
126
|
-
value: e.value ?? []
|
|
127
|
-
}),
|
|
128
|
-
/* @__PURE__ */ k(C, {})
|
|
129
|
-
]
|
|
130
|
-
})
|
|
131
|
-
})
|
|
132
|
-
]
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ A(s, {
|
|
137
|
-
className: "ttw:flex ttw:flex-row ttw:justify-end ttw:gap-2",
|
|
138
|
-
children: [
|
|
139
|
-
r && /* @__PURE__ */ k(e, {
|
|
140
|
-
className: "ttw:mr-auto",
|
|
141
|
-
variant: "destructive",
|
|
142
|
-
size: "lg",
|
|
143
|
-
onClick: () => {
|
|
144
|
-
L?.(r), R?.();
|
|
145
|
-
},
|
|
146
|
-
disabled: !B,
|
|
147
|
-
children: V._("Delete")
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ k(e, {
|
|
150
|
-
variant: "ghost",
|
|
151
|
-
size: "lg",
|
|
152
|
-
onClick: R,
|
|
153
|
-
children: V._("Cancel")
|
|
154
|
-
}),
|
|
155
|
-
/* @__PURE__ */ k(e, {
|
|
156
|
-
type: "submit",
|
|
157
|
-
form: $,
|
|
158
|
-
size: "lg",
|
|
159
|
-
disabled: X,
|
|
160
|
-
children: r ? V._("Save") : V._("Create")
|
|
161
|
-
})
|
|
162
|
-
]
|
|
163
|
-
})
|
|
164
|
-
]
|
|
8
|
+
var l = o, u = n.createContext({}), d = ({ ...e }) => /* @__PURE__ */ r(u.Provider, {
|
|
9
|
+
value: { name: e.name },
|
|
10
|
+
children: /* @__PURE__ */ r(a, { ...e })
|
|
11
|
+
}), f = () => {
|
|
12
|
+
let e = n.useContext(u), t = n.useContext(p), { getFieldState: r } = s(), i = c({ name: e.name }), a = r(e.name, i);
|
|
13
|
+
if (!e) throw Error("useFormField should be used within <FormField>");
|
|
14
|
+
let { id: o } = t;
|
|
15
|
+
return {
|
|
16
|
+
id: o,
|
|
17
|
+
name: e.name,
|
|
18
|
+
formItemId: `${o}-form-item`,
|
|
19
|
+
formDescriptionId: `${o}-form-item-description`,
|
|
20
|
+
formMessageId: `${o}-form-item-message`,
|
|
21
|
+
...a
|
|
22
|
+
};
|
|
23
|
+
}, p = n.createContext({});
|
|
24
|
+
function m({ className: t, ...i }) {
|
|
25
|
+
let a = n.useId();
|
|
26
|
+
return /* @__PURE__ */ r(p.Provider, {
|
|
27
|
+
value: { id: a },
|
|
28
|
+
children: /* @__PURE__ */ r("div", {
|
|
29
|
+
"data-slot": "form-item",
|
|
30
|
+
className: e("ttw:grid ttw:gap-2", t),
|
|
31
|
+
...i
|
|
165
32
|
})
|
|
166
|
-
})
|
|
167
|
-
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function h({ className: n, ...i }) {
|
|
36
|
+
let { error: a, formItemId: o } = f();
|
|
37
|
+
return /* @__PURE__ */ r(t, {
|
|
38
|
+
"data-slot": "form-label",
|
|
39
|
+
"data-error": !!a,
|
|
40
|
+
className: e("ttw:data-[error=true]:text-destructive", n),
|
|
41
|
+
htmlFor: o,
|
|
42
|
+
...i
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function g({ ...e }) {
|
|
46
|
+
let { error: t, formItemId: n, formDescriptionId: a, formMessageId: o } = f();
|
|
47
|
+
return /* @__PURE__ */ r(i, {
|
|
48
|
+
"data-slot": "form-control",
|
|
49
|
+
id: n,
|
|
50
|
+
"aria-describedby": t ? `${a} ${o}` : `${a}`,
|
|
51
|
+
"aria-invalid": !!t,
|
|
52
|
+
...e
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function _({ className: t, ...n }) {
|
|
56
|
+
let { error: i, formMessageId: a } = f(), o = i ? String(i?.message ?? "") : n.children;
|
|
57
|
+
return o ? /* @__PURE__ */ r("p", {
|
|
58
|
+
"data-slot": "form-message",
|
|
59
|
+
id: a,
|
|
60
|
+
className: e("ttw:text-destructive ttw:text-sm", t),
|
|
61
|
+
...n,
|
|
62
|
+
children: o
|
|
63
|
+
}) : null;
|
|
64
|
+
}
|
|
168
65
|
//#endregion
|
|
169
|
-
export {
|
|
66
|
+
export { l as Form, g as FormControl, d as FormField, m as FormItem, h as FormLabel, _ as FormMessage, f as useFormField };
|
|
@@ -1 +1,53 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { cn as e } from "./index49.js";
|
|
2
|
+
import { Button as t } from "./index56.js";
|
|
3
|
+
import { Badge as n } from "./index195.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { XIcon as i } from "lucide-react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js
|
|
8
|
+
var s = ({ className: s, value: c, onChange: l, ref: u, ...d }) => {
|
|
9
|
+
let [f, p] = r.useState("");
|
|
10
|
+
r.useEffect(() => {
|
|
11
|
+
if (f.includes(",")) {
|
|
12
|
+
let e = /* @__PURE__ */ new Set([...c, ...f.split(",").map((e) => e.trim())]);
|
|
13
|
+
l(Array.from(e)), p("");
|
|
14
|
+
}
|
|
15
|
+
}, [
|
|
16
|
+
f,
|
|
17
|
+
l,
|
|
18
|
+
c
|
|
19
|
+
]);
|
|
20
|
+
let m = () => {
|
|
21
|
+
if (f) {
|
|
22
|
+
let e = /* @__PURE__ */ new Set([...c, f]);
|
|
23
|
+
l(Array.from(e)), p("");
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ o("div", {
|
|
27
|
+
className: e("ttw:has-[:focus-visible]:ttw:outline-none ttw:has-[:focus-visible]:ttw:ring-2 ttw:has-[:focus-visible]:ttw:ring-neutral-950 ttw:has-[:focus-visible]:ttw:ring-offset-2 dark:ttw:has-[:focus-visible]:ttw:ring-neutral-300 ttw:min-h-10 ttw:flex ttw:w-full ttw:flex-wrap ttw:gap-2 ttw:rounded-md ttw:border ttw:border-neutral-200 ttw:bg-white ttw:px-3 ttw:py-2 ttw:text-sm ttw:ring-offset-white ttw:disabled:ttw:cursor-not-allowed ttw:disabled:ttw:opacity-50 dark:ttw:border-neutral-800 dark:ttw:bg-neutral-950 dark:ttw:ring-offset-neutral-950", s),
|
|
28
|
+
children: [c.map((e) => /* @__PURE__ */ o(n, {
|
|
29
|
+
variant: "secondary",
|
|
30
|
+
children: [e, /* @__PURE__ */ a(t, {
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
size: "icon",
|
|
33
|
+
className: "ttw:ml-2 ttw:h-3 ttw:w-3",
|
|
34
|
+
onClick: () => {
|
|
35
|
+
l(c.filter((t) => t !== e));
|
|
36
|
+
},
|
|
37
|
+
children: /* @__PURE__ */ a(i, { className: "ttw:w-3" })
|
|
38
|
+
})]
|
|
39
|
+
}, e)), /* @__PURE__ */ a("input", {
|
|
40
|
+
className: "ttw:flex-1 ttw:outline-none ttw:placeholder:ttw:text-neutral-500 dark:ttw:placeholder:ttw:text-neutral-400",
|
|
41
|
+
value: f,
|
|
42
|
+
onChange: (e) => p(e.target.value),
|
|
43
|
+
onKeyDown: (e) => {
|
|
44
|
+
e.key === "Enter" || e.key === "," ? (e.preventDefault(), m()) : e.key === "Backspace" && f.length === 0 && c.length > 0 && (e.preventDefault(), l(c.slice(0, -1)));
|
|
45
|
+
},
|
|
46
|
+
...d,
|
|
47
|
+
ref: u
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
s.displayName = "InputTags";
|
|
52
|
+
//#endregion
|
|
53
|
+
export { s as InputTags };
|
|
@@ -1,86 +1,169 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button as e } from "./index56.js";
|
|
2
|
+
import { Input as t } from "./index89.js";
|
|
3
|
+
import { useRootElements as n } from "./index178.js";
|
|
2
4
|
import "./index179.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
5
|
+
import { MoniteScopedProviders as r } from "./index209.js";
|
|
6
|
+
import { Sheet as i, SheetContent as a, SheetDescription as o, SheetFooter as s, SheetHeader as c, SheetTitle as l } from "./index50.js";
|
|
7
|
+
import { Select as u, SelectContent as d, SelectItem as f, SelectTrigger as p, SelectValue as m } from "./index101.js";
|
|
8
|
+
import { getTagCategoryLabel as h, tagCategories as g } from "./index296.js";
|
|
9
|
+
import { useTags as _ } from "./index297.js";
|
|
10
|
+
import { Form as v, FormControl as y, FormField as b, FormItem as x, FormLabel as S, FormMessage as C } from "./index298.js";
|
|
11
|
+
import { InputTags as w } from "./index299.js";
|
|
12
|
+
import { useEffect as T, useId as E } from "react";
|
|
13
|
+
import { z as D } from "zod";
|
|
14
|
+
import { Fragment as O, jsx as k, jsxs as A } from "@emotion/react/jsx-runtime";
|
|
15
|
+
import { toast as j } from "react-hot-toast";
|
|
16
|
+
import { useLingui as M } from "@lingui/react";
|
|
17
|
+
import { useForm as N } from "react-hook-form";
|
|
18
|
+
import { zodResolver as P } from "@hookform/resolvers/zod";
|
|
13
19
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
var F = (e) => D.object({
|
|
21
|
+
name: D.string().min(1, e._("Required")).max(255, e._("Value must be at most '255' characters")),
|
|
22
|
+
category: D.union([D.literal(""), D.enum(g)]),
|
|
23
|
+
keywords: D.array(D.string().min(2, e._("Keyword should be at least 2 characters long")).max(25, e._("Keyword should be at most 25 characters long")))
|
|
24
|
+
}), I = (e) => /* @__PURE__ */ k(r, { children: /* @__PURE__ */ k(L, { ...e }) }), L = ({ tag: r, onCreate: D, onUpdate: I, onDelete: L, onClose: R, open: z, isDeleteAllowed: B }) => {
|
|
25
|
+
let { i18n: V } = M(), H = F(V), U = N({
|
|
26
|
+
resolver: P(H),
|
|
27
|
+
defaultValues: {
|
|
28
|
+
name: "",
|
|
29
|
+
category: "",
|
|
30
|
+
keywords: []
|
|
31
|
+
}
|
|
32
|
+
}), { control: W, handleSubmit: G, reset: K, setError: q } = U;
|
|
33
|
+
T(() => {
|
|
34
|
+
let e = [];
|
|
35
|
+
r?.keywords && (Array.isArray(r.keywords) ? e = r.keywords : typeof r.keywords == "string" && (e = r.keywords.split(",").map((e) => e.trim()).filter(Boolean))), K({
|
|
36
|
+
name: r?.name || "",
|
|
37
|
+
category: r?.category || "",
|
|
38
|
+
keywords: e
|
|
39
|
+
});
|
|
40
|
+
}, [K, r]);
|
|
41
|
+
let { createTag: J, updateTag: Y, inProgress: X, updateOcrAutoTagging: Z } = _({
|
|
42
|
+
setNameError: (e) => {
|
|
43
|
+
q("name", {
|
|
44
|
+
type: "custom",
|
|
45
|
+
message: e
|
|
46
|
+
});
|
|
39
47
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
disabled: m,
|
|
43
|
-
multiple: !0,
|
|
44
|
-
filterSelectedOptions: !0,
|
|
45
|
-
getOptionLabel: (e) => e.label,
|
|
46
|
-
options: M,
|
|
47
|
-
slotProps: { popper: { container: D } },
|
|
48
|
-
isOptionEqualToValue: (e, t) => e.value === t.value,
|
|
49
|
-
value: j,
|
|
50
|
-
onChange: (e, t) => {
|
|
51
|
-
N(t || []);
|
|
48
|
+
onTagCreated: (e) => {
|
|
49
|
+
j.success(V._("New tag “{createdTagName}” created", { createdTagName: e.name })), D?.(e), R?.(), K();
|
|
52
50
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
51
|
+
onTagUpdated: (e) => {
|
|
52
|
+
r && j.success(r.name === e.name ? V._("Tag “{tagName}” was updated”", { tagName: r.name }) : V._("Tag “{tagName}” renamed to “{updatedTagName}”", {
|
|
53
|
+
tagName: r.name,
|
|
54
|
+
updatedTagName: e.name
|
|
55
|
+
})), I?.(e), R?.(), K();
|
|
56
|
+
}
|
|
57
|
+
}), { root: Q } = n(), $ = `Monite-Form-tag-${E()}`;
|
|
58
|
+
return /* @__PURE__ */ k(O, { children: /* @__PURE__ */ k(i, {
|
|
59
|
+
open: z,
|
|
60
|
+
onOpenChange: R,
|
|
61
|
+
children: /* @__PURE__ */ A(a, {
|
|
62
|
+
container: Q,
|
|
63
|
+
className: "Monite-Payables ttw:w-[600px]",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ A(c, { children: [/* @__PURE__ */ k(l, { children: r ? V._("Edit tag ”{tagName}”", { tagName: r.name }) : V._("Create new tag") }), /* @__PURE__ */ k(o, {
|
|
66
|
+
className: "ttw:sr-only",
|
|
67
|
+
children: r ? V._("Edit tag ”{tagName}”", { tagName: r.name }) : V._("Create new tag")
|
|
68
|
+
})] }),
|
|
69
|
+
/* @__PURE__ */ k(v, {
|
|
70
|
+
...U,
|
|
71
|
+
children: /* @__PURE__ */ k("form", {
|
|
72
|
+
id: $,
|
|
73
|
+
name: $,
|
|
74
|
+
onSubmit: (e) => {
|
|
75
|
+
e.preventDefault(), e.stopPropagation(), G(async (e) => {
|
|
76
|
+
let { keywords: t, name: n, category: i } = e, a = {
|
|
77
|
+
name: n,
|
|
78
|
+
...i ? { category: i } : {}
|
|
79
|
+
}, o = await (r ? Y(r.id, a) : J(a));
|
|
80
|
+
Z(o.id, t);
|
|
81
|
+
})(e);
|
|
82
|
+
},
|
|
83
|
+
children: /* @__PURE__ */ A("div", {
|
|
84
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:pt-8 ttw:pb-6",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ k(b, {
|
|
87
|
+
name: "name",
|
|
88
|
+
control: W,
|
|
89
|
+
render: ({ field: e }) => /* @__PURE__ */ A(x, { children: [
|
|
90
|
+
/* @__PURE__ */ k(S, { children: V._("Name") }),
|
|
91
|
+
/* @__PURE__ */ k(y, { children: /* @__PURE__ */ k(t, {
|
|
92
|
+
autoFocus: !0,
|
|
93
|
+
...e
|
|
94
|
+
}) }),
|
|
95
|
+
/* @__PURE__ */ k(C, {})
|
|
96
|
+
] })
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ k(b, {
|
|
99
|
+
name: "category",
|
|
100
|
+
control: W,
|
|
101
|
+
render: ({ field: e }) => /* @__PURE__ */ A(x, { children: [
|
|
102
|
+
/* @__PURE__ */ k(S, { children: V._("Category") }),
|
|
103
|
+
/* @__PURE__ */ A(u, {
|
|
104
|
+
onValueChange: e.onChange,
|
|
105
|
+
defaultValue: e.value,
|
|
106
|
+
children: [/* @__PURE__ */ k(y, { children: /* @__PURE__ */ k(p, {
|
|
107
|
+
className: "ttw:w-full",
|
|
108
|
+
children: /* @__PURE__ */ k(m, { placeholder: V._("Not set") })
|
|
109
|
+
}) }), /* @__PURE__ */ k(d, { children: g.map((e) => /* @__PURE__ */ k(f, {
|
|
110
|
+
value: e,
|
|
111
|
+
children: h(e, V)
|
|
112
|
+
}, e)) })]
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ k(C, {})
|
|
115
|
+
] })
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ k(b, {
|
|
118
|
+
name: "keywords",
|
|
119
|
+
control: W,
|
|
120
|
+
render: ({ field: e }) => /* @__PURE__ */ A(x, {
|
|
121
|
+
className: "ttw:flex ttw:flex-col",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ k(S, { children: V._("Keywords") }),
|
|
124
|
+
/* @__PURE__ */ k(w, {
|
|
125
|
+
...e,
|
|
126
|
+
value: e.value ?? []
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ k(C, {})
|
|
129
|
+
]
|
|
130
|
+
})
|
|
131
|
+
})
|
|
132
|
+
]
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ A(s, {
|
|
137
|
+
className: "ttw:flex ttw:flex-row ttw:justify-end ttw:gap-2",
|
|
138
|
+
children: [
|
|
139
|
+
r && /* @__PURE__ */ k(e, {
|
|
140
|
+
className: "ttw:mr-auto",
|
|
141
|
+
variant: "destructive",
|
|
142
|
+
size: "lg",
|
|
143
|
+
onClick: () => {
|
|
144
|
+
L?.(r), R?.();
|
|
145
|
+
},
|
|
146
|
+
disabled: !B,
|
|
147
|
+
children: V._("Delete")
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ k(e, {
|
|
150
|
+
variant: "ghost",
|
|
151
|
+
size: "lg",
|
|
152
|
+
onClick: R,
|
|
153
|
+
children: V._("Cancel")
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ k(e, {
|
|
156
|
+
type: "submit",
|
|
157
|
+
form: $,
|
|
158
|
+
size: "lg",
|
|
159
|
+
disabled: X,
|
|
160
|
+
children: r ? V._("Save") : V._("Create")
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
})
|
|
164
|
+
]
|
|
82
165
|
})
|
|
83
|
-
})
|
|
166
|
+
}) });
|
|
84
167
|
};
|
|
85
168
|
//#endregion
|
|
86
|
-
export {
|
|
169
|
+
export { I as TagFormModal };
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { FormControl as n } from "@mui/material";
|
|
4
|
-
import { Controller as r } from "react-hook-form";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js
|
|
6
|
-
var i = ({ control: i, name: a, label: o, variant: s = "filled", disabled: c = !1, required: l = !1, helperText: u }) => /* @__PURE__ */ t(r, {
|
|
7
|
-
name: a,
|
|
8
|
-
control: i,
|
|
9
|
-
render: ({ field: r, fieldState: { error: i } }) => /* @__PURE__ */ t(n, {
|
|
10
|
-
variant: s,
|
|
11
|
-
fullWidth: !0,
|
|
12
|
-
required: l,
|
|
13
|
-
error: !!i,
|
|
14
|
-
children: /* @__PURE__ */ t(e, {
|
|
15
|
-
disabled: c,
|
|
16
|
-
value: r.value || [],
|
|
17
|
-
onChange: (e) => {
|
|
18
|
-
r.onChange(e);
|
|
19
|
-
},
|
|
20
|
-
label: o,
|
|
21
|
-
variant: s,
|
|
22
|
-
error: !!i,
|
|
23
|
-
helperText: i?.message || u,
|
|
24
|
-
required: l
|
|
25
|
-
})
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
|
-
export { i as TagsAutocompleteInput };
|
|
1
|
+
import "./index300.js";
|
|
@@ -1,2 +1,86 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useRootElements as e } from "./index178.js";
|
|
2
|
+
import "./index179.js";
|
|
3
|
+
import { TagFormModal as t } from "./index300.js";
|
|
4
|
+
import { useTags as n } from "./index295.js";
|
|
2
5
|
import "./index301.js";
|
|
6
|
+
import { useMemo as r, useState as i } from "react";
|
|
7
|
+
import { Fragment as a, jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { Autocomplete as c, Button as l, TextField as u } from "@mui/material";
|
|
9
|
+
import { useLingui as d } from "@lingui/react";
|
|
10
|
+
import { createElement as f } from "@emotion/react";
|
|
11
|
+
import p from "@mui/icons-material/Add";
|
|
12
|
+
import { createFilterOptions as m } from "@mui/material/Autocomplete";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js
|
|
14
|
+
var h = (e) => e ? e.map(({ id: e, name: t }) => ({
|
|
15
|
+
value: e,
|
|
16
|
+
label: t
|
|
17
|
+
})) : [], g = "__create-new__";
|
|
18
|
+
function _(e) {
|
|
19
|
+
return e?.value === g;
|
|
20
|
+
}
|
|
21
|
+
var v = m(), y = ({ disabled: m, value: y, onChange: b, label: x, variant: S = "filled", error: C = !1, helperText: w, required: T = !1 }) => {
|
|
22
|
+
let { i18n: E } = d(), { root: D } = e(), { tagsQuery: O } = n(), [k, A] = i(!1), j = r(() => y ? h(y) : [], [y]), M = r(() => {
|
|
23
|
+
let e = O.data?.data || [], t = y || [], n = [...e];
|
|
24
|
+
return t.forEach((e) => {
|
|
25
|
+
n.find((t) => t.id === e.id) || n.push(e);
|
|
26
|
+
}), h(n);
|
|
27
|
+
}, [O.data?.data, y]), N = (e) => {
|
|
28
|
+
let t = e.map((e) => e.value), n = O.data?.data?.filter((e) => t.includes(e.id)) || [];
|
|
29
|
+
b?.(n);
|
|
30
|
+
}, P = () => {
|
|
31
|
+
A(!0);
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(t, {
|
|
34
|
+
open: k,
|
|
35
|
+
onClose: () => A(!1),
|
|
36
|
+
onCreate: (e) => {
|
|
37
|
+
let t = [...y || [], e];
|
|
38
|
+
b?.(t);
|
|
39
|
+
},
|
|
40
|
+
isDeleteAllowed: !1
|
|
41
|
+
}), /* @__PURE__ */ o(c, {
|
|
42
|
+
disabled: m,
|
|
43
|
+
multiple: !0,
|
|
44
|
+
filterSelectedOptions: !0,
|
|
45
|
+
getOptionLabel: (e) => e.label,
|
|
46
|
+
options: M,
|
|
47
|
+
slotProps: { popper: { container: D } },
|
|
48
|
+
isOptionEqualToValue: (e, t) => e.value === t.value,
|
|
49
|
+
value: j,
|
|
50
|
+
onChange: (e, t) => {
|
|
51
|
+
N(t || []);
|
|
52
|
+
},
|
|
53
|
+
filterOptions: (e, t) => {
|
|
54
|
+
let n = v(e, t);
|
|
55
|
+
return n.unshift({
|
|
56
|
+
value: g,
|
|
57
|
+
label: E._("Create new tag")
|
|
58
|
+
}), n;
|
|
59
|
+
},
|
|
60
|
+
renderOption: (e, t) => _(t) ? /* @__PURE__ */ o(l, {
|
|
61
|
+
variant: "text",
|
|
62
|
+
startIcon: /* @__PURE__ */ o(p, {}),
|
|
63
|
+
fullWidth: !0,
|
|
64
|
+
sx: {
|
|
65
|
+
justifyContent: "flex-start",
|
|
66
|
+
px: 2
|
|
67
|
+
},
|
|
68
|
+
onClick: P,
|
|
69
|
+
children: t.label
|
|
70
|
+
}, t.value) : /* @__PURE__ */ f("li", {
|
|
71
|
+
...e,
|
|
72
|
+
key: t.value
|
|
73
|
+
}, t.label),
|
|
74
|
+
renderInput: (e) => /* @__PURE__ */ o(u, {
|
|
75
|
+
...e,
|
|
76
|
+
label: x,
|
|
77
|
+
variant: S,
|
|
78
|
+
fullWidth: !0,
|
|
79
|
+
error: C,
|
|
80
|
+
helperText: w,
|
|
81
|
+
required: T
|
|
82
|
+
})
|
|
83
|
+
})] });
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
export { y as TagsAutocomplete, h as tagsToSelect };
|