@tesouro/embedded-components-react 0.2.241 → 0.2.242
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/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 +1 -1
|
@@ -1,193 +1,93 @@
|
|
|
1
1
|
import { getCounterpartEmail as e, getCounterpartName as t } from "./index53.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { InputGroupAddon as n } from "./index103.js";
|
|
3
|
+
import { Combobox as r, ComboboxContent as i, ComboboxEmpty as a, ComboboxInput as o, ComboboxItem as s, ComboboxList as c } from "./index104.js";
|
|
4
|
+
import { useCounterpartList as l } from "./index125.js";
|
|
5
5
|
import "./index138.js";
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { Field as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { Plus as b } from "lucide-react";
|
|
15
|
-
import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { useLingui as w } from "@lingui/react";
|
|
17
|
-
import { Controller as T, useFormContext as E } from "react-hook-form";
|
|
6
|
+
import { useRootElements as u } from "./index178.js";
|
|
7
|
+
import "./index179.js";
|
|
8
|
+
import { Field as d, FieldContent as f, FieldDescription as p, FieldError as m, FieldLabel as h } from "./index88.js";
|
|
9
|
+
import { useMemo as g, useState as _ } from "react";
|
|
10
|
+
import { Loader2 as v, Search as y } from "lucide-react";
|
|
11
|
+
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { useLingui as S } from "@lingui/react";
|
|
13
|
+
import { Controller as C, useFormContext as w } from "react-hook-form";
|
|
18
14
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js
|
|
19
|
-
var
|
|
20
|
-
let { i18n:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
if (e === "individual") {
|
|
36
|
-
let e = X.trim(), n = e.indexOf(" "), r = n === -1 ? e : e.slice(0, n), i = n === -1 ? "" : e.slice(n + 1);
|
|
37
|
-
return {
|
|
38
|
-
tax_id: "",
|
|
39
|
-
counterpart: {
|
|
40
|
-
...t,
|
|
41
|
-
firstName: r,
|
|
42
|
-
lastName: i
|
|
43
|
-
}
|
|
15
|
+
var T = ({ disabled: T, canCreateCounterpart: E = !0 }) => {
|
|
16
|
+
let { i18n: D } = S(), { root: O } = u(), { control: k, setValue: A, watch: j, clearErrors: M } = w(), { data: N, isLoading: P } = l({ query: { is_customer: !0 } }), [F, I] = _(!1), L = j("counterpart_name") ?? "", R = g(() => N ? N.data.map((n) => ({
|
|
17
|
+
id: n.id,
|
|
18
|
+
name: t(n),
|
|
19
|
+
email: e(n)
|
|
20
|
+
})) : [], [N]), z = g(() => {
|
|
21
|
+
let e = L.toLowerCase().trim();
|
|
22
|
+
return e ? R.filter((t) => t.name.toLowerCase().includes(e) || t.email.toLowerCase().includes(e)) : R;
|
|
23
|
+
}, [R, L]), B = g(() => z.map((e) => e.id), [z]);
|
|
24
|
+
return /* @__PURE__ */ b(C, {
|
|
25
|
+
name: "counterpart_id",
|
|
26
|
+
control: k,
|
|
27
|
+
render: ({ field: e, fieldState: { error: t } }) => {
|
|
28
|
+
let l = (t) => {
|
|
29
|
+
A("counterpart_name", ""), A("counterpart_email", ""), M(["counterpart_id", "counterpart_email"]), e.onChange(t ?? "");
|
|
44
30
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
className: "ttw:font-medium",
|
|
86
|
-
children: M._("Who are you billing?")
|
|
87
|
-
})]
|
|
88
|
-
}),
|
|
89
|
-
K ? /* @__PURE__ */ C("div", {
|
|
90
|
-
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl",
|
|
91
|
-
children: [/* @__PURE__ */ C("div", {
|
|
92
|
-
className: "ttw:flex ttw:items-center ttw:gap-5",
|
|
93
|
-
children: [/* @__PURE__ */ S(p, {
|
|
94
|
-
className: "ttw:size-16",
|
|
95
|
-
children: /* @__PURE__ */ S(m, {
|
|
96
|
-
className: "ttw:text-sm ttw:font-normal",
|
|
97
|
-
children: Y
|
|
31
|
+
return /* @__PURE__ */ b(d, { children: /* @__PURE__ */ x(f, { children: [
|
|
32
|
+
/* @__PURE__ */ b(h, {
|
|
33
|
+
htmlFor: "counterpart_id",
|
|
34
|
+
children: D._("Name")
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ x(r, {
|
|
37
|
+
value: e.value || null,
|
|
38
|
+
onValueChange: l,
|
|
39
|
+
inputValue: L,
|
|
40
|
+
onInputValueChange: (t, n) => {
|
|
41
|
+
if (n.reason !== "input-change") {
|
|
42
|
+
E || A("counterpart_name", "");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
A("counterpart_name", t), e.value && e.onChange(""), E && t.trim() && M("counterpart_id");
|
|
46
|
+
},
|
|
47
|
+
items: B,
|
|
48
|
+
filter: () => !0,
|
|
49
|
+
disabled: T,
|
|
50
|
+
open: F,
|
|
51
|
+
onOpenChange: I,
|
|
52
|
+
children: [/* @__PURE__ */ b(o, {
|
|
53
|
+
id: "counterpart_id",
|
|
54
|
+
placeholder: E ? D._("Search or type to add a customer") : D._("Search for a customer"),
|
|
55
|
+
"aria-invalid": !!t,
|
|
56
|
+
onKeyDown: (e) => {
|
|
57
|
+
if (e.key === "Enter") {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (e.key === "Tab" && F) {
|
|
62
|
+
let e = L.toLowerCase().trim();
|
|
63
|
+
if (!e) return;
|
|
64
|
+
let t = z.find((t) => t.name.toLowerCase() === e) ?? (z.length === 1 ? z[0] : void 0);
|
|
65
|
+
t && (l(t.id), I(!1));
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ b(n, {
|
|
69
|
+
align: "inline-start",
|
|
70
|
+
children: P ? /* @__PURE__ */ b(v, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ b(y, { className: "ttw:size-4 ttw:text-muted-foreground" })
|
|
98
71
|
})
|
|
99
|
-
}), /* @__PURE__ */
|
|
100
|
-
|
|
101
|
-
children: [/* @__PURE__ */
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
72
|
+
}), /* @__PURE__ */ b(i, {
|
|
73
|
+
container: O,
|
|
74
|
+
children: /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(a, { children: E ? D._("No customers found - type to add a customer") : D._("No customers found") }), z.map((e) => /* @__PURE__ */ b(s, {
|
|
75
|
+
value: e.id,
|
|
76
|
+
children: /* @__PURE__ */ x("div", {
|
|
77
|
+
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
78
|
+
children: [/* @__PURE__ */ b("span", { children: e.name }), /* @__PURE__ */ b("span", {
|
|
79
|
+
className: "ttw:text-muted-foreground",
|
|
80
|
+
children: e.email
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
83
|
+
}, e.id))] })
|
|
110
84
|
})]
|
|
111
|
-
}), /* @__PURE__ */ C("div", {
|
|
112
|
-
className: "ttw:flex ttw:items-center",
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ S(n, {
|
|
115
|
-
type: "button",
|
|
116
|
-
variant: "ghost",
|
|
117
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
118
|
-
disabled: D,
|
|
119
|
-
onClick: () => U(!0),
|
|
120
|
-
children: M._("View details")
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ S(o, {
|
|
123
|
-
orientation: "vertical",
|
|
124
|
-
className: "ttw:h-6!"
|
|
125
|
-
}),
|
|
126
|
-
/* @__PURE__ */ S(n, {
|
|
127
|
-
type: "button",
|
|
128
|
-
variant: "ghost",
|
|
129
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
130
|
-
disabled: D,
|
|
131
|
-
onClick: Q,
|
|
132
|
-
children: M._("Clear")
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
})]
|
|
136
|
-
}) : /* @__PURE__ */ C(x, { children: [
|
|
137
|
-
/* @__PURE__ */ S(h, {
|
|
138
|
-
disabled: D,
|
|
139
|
-
canCreateCounterpart: O
|
|
140
|
-
}),
|
|
141
|
-
O && /* @__PURE__ */ S(T, {
|
|
142
|
-
name: "counterpart_email",
|
|
143
|
-
control: F,
|
|
144
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, { children: [
|
|
145
|
-
/* @__PURE__ */ S(u, {
|
|
146
|
-
htmlFor: e.name,
|
|
147
|
-
children: M._("Email")
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ S(r, {
|
|
150
|
-
...e,
|
|
151
|
-
id: e.name,
|
|
152
|
-
type: "email",
|
|
153
|
-
disabled: D,
|
|
154
|
-
"aria-invalid": !!t
|
|
155
|
-
}),
|
|
156
|
-
/* @__PURE__ */ S(l, { errors: t ? [t] : [] })
|
|
157
|
-
] }) })
|
|
158
85
|
}),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
disabled: D,
|
|
164
|
-
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
165
|
-
children: [/* @__PURE__ */ S(b, {}), M._("Add more details including address, phone, etc.")]
|
|
166
|
-
})
|
|
167
|
-
] }),
|
|
168
|
-
W && /* @__PURE__ */ S(f, {
|
|
169
|
-
open: W,
|
|
170
|
-
onClose: () => {
|
|
171
|
-
G(!1);
|
|
172
|
-
},
|
|
173
|
-
onCreate: (e) => {
|
|
174
|
-
G(!1), P("counterpart_id", e), P("counterpart_name", ""), P("counterpart_email", ""), I(["counterpart_id", "counterpart_email"]);
|
|
175
|
-
},
|
|
176
|
-
getCounterpartDefaultValues: $,
|
|
177
|
-
customerType: "customer"
|
|
178
|
-
}),
|
|
179
|
-
(k || H) && /* @__PURE__ */ S(d, {
|
|
180
|
-
counterpartId: j?.id || "",
|
|
181
|
-
open: k || H,
|
|
182
|
-
onClose: () => {
|
|
183
|
-
k && A(!1), U(!1);
|
|
184
|
-
},
|
|
185
|
-
isEditMode: k,
|
|
186
|
-
showActionsMenu: !1,
|
|
187
|
-
customerType: "customer"
|
|
188
|
-
})
|
|
189
|
-
]
|
|
86
|
+
/* @__PURE__ */ b(p, { children: E ? D._("Search by customer name or email. New customers will be saved when saving the invoice.") : D._("Search by customer name or email.") }),
|
|
87
|
+
/* @__PURE__ */ b(m, { errors: t ? [t] : [] })
|
|
88
|
+
] }) });
|
|
89
|
+
}
|
|
190
90
|
});
|
|
191
91
|
};
|
|
192
92
|
//#endregion
|
|
193
|
-
export {
|
|
93
|
+
export { T as CounterpartSelector };
|
|
@@ -1,33 +1,193 @@
|
|
|
1
|
+
import { getCounterpartEmail as e, getCounterpartName as t } from "./index53.js";
|
|
2
|
+
import { Button as n } from "./index56.js";
|
|
3
|
+
import { Input as r } from "./index89.js";
|
|
4
|
+
import { useCounterpartAddresses as i } from "./index126.js";
|
|
5
|
+
import "./index138.js";
|
|
6
|
+
import { Typography as a } from "./index62.js";
|
|
7
|
+
import { Separator as o } from "./index64.js";
|
|
8
|
+
import { Field as s, FieldContent as c, FieldError as l, FieldLabel as u } from "./index88.js";
|
|
9
|
+
import { CounterpartDetails as d } from "./index229.js";
|
|
10
|
+
import { CreateCounterpartDialog as f } from "./index244.js";
|
|
11
|
+
import { Avatar as p, AvatarFallback as m } from "./index251.js";
|
|
12
|
+
import { CounterpartSelector as h } from "./index449.js";
|
|
13
|
+
import { useCallback as g, useEffect as _, useRef as v, useState as y } from "react";
|
|
14
|
+
import { Plus as b } from "lucide-react";
|
|
15
|
+
import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { useLingui as w } from "@lingui/react";
|
|
17
|
+
import { Controller as T, useFormContext as E } from "react-hook-form";
|
|
1
18
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
var D = ({ disabled: D, canCreateCounterpart: O, isEditCustomerOpen: k, handleOpenEditCustomer: A, counterpart: j }) => {
|
|
20
|
+
let { i18n: M } = w(), { watch: N, setValue: P, control: F, clearErrors: I } = E(), L = N("counterpart_id"), R = v(L), z = N("default_billing_address_id"), B = N("default_shipping_address_id"), { data: V } = i(j?.id), [H, U] = y(!1), [W, G] = y(!1), K = !!L, q = t(j), J = e(j), Y = q ? Array.from(q)[0]?.toUpperCase() ?? "?" : "?", X = N("counterpart_name") ?? "", Z = N("counterpart_email") ?? "", Q = () => {
|
|
21
|
+
P("counterpart_id", ""), P("counterpart_name", ""), P("counterpart_email", "");
|
|
22
|
+
}, $ = g((e) => {
|
|
23
|
+
let t = {
|
|
24
|
+
email: Z,
|
|
25
|
+
phone: "",
|
|
26
|
+
isCustomer: !0,
|
|
27
|
+
isVendor: !1,
|
|
28
|
+
line1: "",
|
|
29
|
+
line2: "",
|
|
30
|
+
city: "",
|
|
31
|
+
state: "",
|
|
32
|
+
postalCode: "",
|
|
33
|
+
country: "US"
|
|
34
|
+
};
|
|
35
|
+
if (e === "individual") {
|
|
36
|
+
let e = X.trim(), n = e.indexOf(" "), r = n === -1 ? e : e.slice(0, n), i = n === -1 ? "" : e.slice(n + 1);
|
|
37
|
+
return {
|
|
38
|
+
tax_id: "",
|
|
39
|
+
counterpart: {
|
|
40
|
+
...t,
|
|
41
|
+
firstName: r,
|
|
42
|
+
lastName: i
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
tax_id: "",
|
|
48
|
+
counterpart: {
|
|
49
|
+
...t,
|
|
50
|
+
companyName: X
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}, [X, Z]);
|
|
54
|
+
return _(() => {
|
|
55
|
+
R.current !== L && (R.current = L, P("default_billing_address_id", ""), P("default_shipping_address_id", ""));
|
|
56
|
+
}, [L, P]), _(() => {
|
|
57
|
+
if (V?.data?.length && !(!j || j.id !== L)) {
|
|
58
|
+
if (!z) {
|
|
59
|
+
let e = j.default_billing_address_id || (V.data.length === 1 ? V.data[0].id : "");
|
|
60
|
+
P("default_billing_address_id", e);
|
|
61
|
+
}
|
|
62
|
+
if (!B) {
|
|
63
|
+
let e = j.default_shipping_address_id || "";
|
|
64
|
+
P("default_shipping_address_id", e);
|
|
65
|
+
}
|
|
24
66
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
67
|
+
}, [
|
|
68
|
+
V,
|
|
69
|
+
P,
|
|
70
|
+
j,
|
|
71
|
+
L,
|
|
72
|
+
z,
|
|
73
|
+
B
|
|
74
|
+
]), /* @__PURE__ */ C("div", {
|
|
75
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ C("div", {
|
|
78
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
79
|
+
children: [/* @__PURE__ */ S(a, {
|
|
80
|
+
variant: "h4",
|
|
81
|
+
children: M._("Customer details")
|
|
82
|
+
}), /* @__PURE__ */ S(a, {
|
|
83
|
+
variant: "body2",
|
|
84
|
+
color: "muted",
|
|
85
|
+
className: "ttw:font-medium",
|
|
86
|
+
children: M._("Who are you billing?")
|
|
87
|
+
})]
|
|
88
|
+
}),
|
|
89
|
+
K ? /* @__PURE__ */ C("div", {
|
|
90
|
+
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl",
|
|
91
|
+
children: [/* @__PURE__ */ C("div", {
|
|
92
|
+
className: "ttw:flex ttw:items-center ttw:gap-5",
|
|
93
|
+
children: [/* @__PURE__ */ S(p, {
|
|
94
|
+
className: "ttw:size-16",
|
|
95
|
+
children: /* @__PURE__ */ S(m, {
|
|
96
|
+
className: "ttw:text-sm ttw:font-normal",
|
|
97
|
+
children: Y
|
|
98
|
+
})
|
|
99
|
+
}), /* @__PURE__ */ C("div", {
|
|
100
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
101
|
+
children: [/* @__PURE__ */ S(a, {
|
|
102
|
+
variant: "body1",
|
|
103
|
+
className: "ttw:font-medium",
|
|
104
|
+
children: q
|
|
105
|
+
}), /* @__PURE__ */ S(a, {
|
|
106
|
+
variant: "body2",
|
|
107
|
+
color: "muted",
|
|
108
|
+
children: J
|
|
109
|
+
})]
|
|
110
|
+
})]
|
|
111
|
+
}), /* @__PURE__ */ C("div", {
|
|
112
|
+
className: "ttw:flex ttw:items-center",
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ S(n, {
|
|
115
|
+
type: "button",
|
|
116
|
+
variant: "ghost",
|
|
117
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
118
|
+
disabled: D,
|
|
119
|
+
onClick: () => U(!0),
|
|
120
|
+
children: M._("View details")
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ S(o, {
|
|
123
|
+
orientation: "vertical",
|
|
124
|
+
className: "ttw:h-6!"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ S(n, {
|
|
127
|
+
type: "button",
|
|
128
|
+
variant: "ghost",
|
|
129
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
130
|
+
disabled: D,
|
|
131
|
+
onClick: Q,
|
|
132
|
+
children: M._("Clear")
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
})]
|
|
136
|
+
}) : /* @__PURE__ */ C(x, { children: [
|
|
137
|
+
/* @__PURE__ */ S(h, {
|
|
138
|
+
disabled: D,
|
|
139
|
+
canCreateCounterpart: O
|
|
140
|
+
}),
|
|
141
|
+
O && /* @__PURE__ */ S(T, {
|
|
142
|
+
name: "counterpart_email",
|
|
143
|
+
control: F,
|
|
144
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, { children: [
|
|
145
|
+
/* @__PURE__ */ S(u, {
|
|
146
|
+
htmlFor: e.name,
|
|
147
|
+
children: M._("Email")
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ S(r, {
|
|
150
|
+
...e,
|
|
151
|
+
id: e.name,
|
|
152
|
+
type: "email",
|
|
153
|
+
disabled: D,
|
|
154
|
+
"aria-invalid": !!t
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ S(l, { errors: t ? [t] : [] })
|
|
157
|
+
] }) })
|
|
158
|
+
}),
|
|
159
|
+
O && /* @__PURE__ */ C(n, {
|
|
160
|
+
onClick: () => G(!0),
|
|
161
|
+
type: "button",
|
|
162
|
+
variant: "ghost",
|
|
163
|
+
disabled: D,
|
|
164
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
165
|
+
children: [/* @__PURE__ */ S(b, {}), M._("Add more details including address, phone, etc.")]
|
|
166
|
+
})
|
|
167
|
+
] }),
|
|
168
|
+
W && /* @__PURE__ */ S(f, {
|
|
169
|
+
open: W,
|
|
170
|
+
onClose: () => {
|
|
171
|
+
G(!1);
|
|
172
|
+
},
|
|
173
|
+
onCreate: (e) => {
|
|
174
|
+
G(!1), P("counterpart_id", e), P("counterpart_name", ""), P("counterpart_email", ""), I(["counterpart_id", "counterpart_email"]);
|
|
175
|
+
},
|
|
176
|
+
getCounterpartDefaultValues: $,
|
|
177
|
+
customerType: "customer"
|
|
178
|
+
}),
|
|
179
|
+
(k || H) && /* @__PURE__ */ S(d, {
|
|
180
|
+
counterpartId: j?.id || "",
|
|
181
|
+
open: k || H,
|
|
182
|
+
onClose: () => {
|
|
183
|
+
k && A(!1), U(!1);
|
|
184
|
+
},
|
|
185
|
+
isEditMode: k,
|
|
186
|
+
showActionsMenu: !1,
|
|
187
|
+
customerType: "customer"
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
});
|
|
191
|
+
};
|
|
32
192
|
//#endregion
|
|
33
|
-
export {
|
|
193
|
+
export { D as CustomerSection };
|
|
@@ -1,88 +1,33 @@
|
|
|
1
|
-
import { cn as e } from "./index49.js";
|
|
2
|
-
import { Button as t, buttonVariants as n } from "./index56.js";
|
|
3
|
-
import * as r from "react";
|
|
4
|
-
import { ChevronDownIcon as i, ChevronLeftIcon as a, ChevronRightIcon as o } from "lucide-react";
|
|
5
|
-
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { DayPicker as c, getDefaultClassNames as l } from "react-day-picker";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
captionLayout: f,
|
|
14
|
-
formatters: {
|
|
15
|
-
formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
|
|
16
|
-
...m
|
|
17
|
-
},
|
|
18
|
-
classNames: {
|
|
19
|
-
root: e("ttw:w-fit", _.root),
|
|
20
|
-
months: e("ttw:flex ttw:gap-4 ttw:flex-col ttw:md:flex-row ttw:relative", _.months),
|
|
21
|
-
month: e("ttw:flex ttw:flex-col ttw:w-full ttw:gap-4", _.month),
|
|
22
|
-
nav: e("ttw:flex ttw:items-center ttw:gap-1 ttw:w-full ttw:absolute ttw:top-0 ttw:inset-x-0 ttw:justify-between", _.nav),
|
|
23
|
-
button_previous: e(n({ variant: p }), "ttw:size-(--cell-size) ttw:aria-disabled:opacity-50 ttw:p-0 ttw:select-none", _.button_previous),
|
|
24
|
-
button_next: e(n({ variant: p }), "ttw:size-(--cell-size) ttw:aria-disabled:opacity-50 ttw:p-0 ttw:select-none", _.button_next),
|
|
25
|
-
month_caption: e("ttw:flex ttw:items-center ttw:justify-center ttw:h-(--cell-size) ttw:w-full ttw:px-(--cell-size)", _.month_caption),
|
|
26
|
-
dropdowns: e("ttw:w-full ttw:flex ttw:items-center ttw:text-sm ttw:font-medium ttw:justify-center ttw:h-(--cell-size) ttw:gap-1.5", _.dropdowns),
|
|
27
|
-
dropdown_root: e("ttw:relative ttw:has-focus:border-ring ttw:border ttw:border-input ttw:shadow-xs ttw:has-focus:ring-ring/50 ttw:has-focus:ring-[3px] ttw:rounded-md", _.dropdown_root),
|
|
28
|
-
dropdown: e("ttw:absolute ttw:bg-popover ttw:inset-0 ttw:opacity-0", _.dropdown),
|
|
29
|
-
caption_label: e("ttw:select-none ttw:font-medium", f === "label" ? "ttw:text-sm" : "ttw:rounded-md ttw:pl-2 ttw:pr-1 ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:h-8 ttw:[&>svg]:text-muted-foreground ttw:[&>svg]:size-3.5", _.caption_label),
|
|
30
|
-
table: "ttw:w-full ttw:border-collapse",
|
|
31
|
-
weekdays: e("ttw:flex", _.weekdays),
|
|
32
|
-
weekday: e("ttw:text-muted-foreground ttw:rounded-md ttw:flex-1 ttw:font-normal ttw:text-[0.8rem] ttw:select-none", _.weekday),
|
|
33
|
-
week: e("ttw:flex ttw:w-full ttw:mt-2", _.week),
|
|
34
|
-
week_number_header: e("ttw:select-none ttw:w-(--cell-size)", _.week_number_header),
|
|
35
|
-
week_number: e("ttw:text-[0.8rem] ttw:select-none ttw:text-muted-foreground", _.week_number),
|
|
36
|
-
day: e("ttw:relative ttw:w-full ttw:h-full ttw:p-0 ttw:text-center ttw:[&:first-child[data-selected=true]_button]:rounded-l-md ttw:[&:last-child[data-selected=true]_button]:rounded-r-md ttw:group/day ttw:aspect-square ttw:select-none", _.day),
|
|
37
|
-
range_start: e("ttw:rounded-l-md ttw:bg-accent", _.range_start),
|
|
38
|
-
range_middle: e("ttw:rounded-none", _.range_middle),
|
|
39
|
-
range_end: e("ttw:rounded-r-md ttw:bg-accent", _.range_end),
|
|
40
|
-
today: e("ttw:bg-accent ttw:text-accent-foreground ttw:rounded-md ttw:data-[selected=true]:rounded-none", _.today),
|
|
41
|
-
outside: e("ttw:text-muted-foreground ttw:aria-selected:text-muted-foreground", _.outside),
|
|
42
|
-
disabled: e("ttw:text-muted-foreground ttw:opacity-50", _.disabled),
|
|
43
|
-
hidden: e("ttw:invisible", _.hidden),
|
|
44
|
-
...r
|
|
45
|
-
},
|
|
46
|
-
components: {
|
|
47
|
-
Root: ({ className: t, rootRef: n, ...r }) => /* @__PURE__ */ s("div", {
|
|
48
|
-
"data-slot": "calendar",
|
|
49
|
-
ref: n,
|
|
50
|
-
className: e(t),
|
|
51
|
-
...r
|
|
52
|
-
}),
|
|
53
|
-
Chevron: ({ className: t, orientation: n, ...r }) => s(n === "left" ? a : n === "right" ? o : i, {
|
|
54
|
-
className: e("ttw:size-4", t),
|
|
55
|
-
...r
|
|
56
|
-
}),
|
|
57
|
-
DayButton: d,
|
|
58
|
-
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ s("td", {
|
|
59
|
-
...t,
|
|
60
|
-
children: /* @__PURE__ */ s("div", {
|
|
61
|
-
className: "ttw:flex ttw:size-(--cell-size) ttw:items-center ttw:justify-center ttw:text-center",
|
|
62
|
-
children: e
|
|
63
|
-
})
|
|
64
|
-
}),
|
|
65
|
-
...h
|
|
66
|
-
},
|
|
67
|
-
...g
|
|
68
|
-
});
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e ? {
|
|
4
|
+
number_of_days: e.number_of_days ?? null,
|
|
5
|
+
discount: e.discount ?? null
|
|
6
|
+
} : null;
|
|
69
7
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
size: "icon",
|
|
78
|
-
"data-day": i.date.toLocaleDateString(),
|
|
79
|
-
"data-selected-single": a.selected && !a.range_start && !a.range_end && !a.range_middle,
|
|
80
|
-
"data-range-start": a.range_start,
|
|
81
|
-
"data-range-end": a.range_end,
|
|
82
|
-
"data-range-middle": a.range_middle,
|
|
83
|
-
className: e("ttw:data-[selected-single=true]:bg-primary ttw:data-[selected-single=true]:text-primary-foreground ttw:data-[range-middle=true]:bg-accent ttw:data-[range-middle=true]:text-accent-foreground ttw:data-[range-start=true]:bg-primary ttw:data-[range-start=true]:text-primary-foreground ttw:data-[range-end=true]:bg-primary ttw:data-[range-end=true]:text-primary-foreground ttw:group-data-[focused=true]/day:border-ring ttw:group-data-[focused=true]/day:ring-ring/50 ttw:dark:hover:text-accent-foreground ttw:flex ttw:aspect-square ttw:size-auto ttw:w-full ttw:min-w-(--cell-size) ttw:flex-col ttw:gap-1 ttw:leading-none ttw:font-normal ttw:group-data-[focused=true]/day:relative ttw:group-data-[focused=true]/day:z-1300 ttw:group-data-[focused=true]/day:ring-[3px] ttw:data-[range-end=true]:rounded-md ttw:data-[range-end=true]:rounded-r-md ttw:data-[range-middle=true]:rounded-none ttw:data-[range-start=true]:rounded-md ttw:data-[range-start=true]:rounded-l-md ttw:[&>span]:text-xs ttw:[&>span]:opacity-70", c.day, n),
|
|
84
|
-
...o
|
|
8
|
+
function t(t) {
|
|
9
|
+
return JSON.stringify({
|
|
10
|
+
name: t.name,
|
|
11
|
+
description: t.description ?? null,
|
|
12
|
+
term_final: { number_of_days: t.term_final?.number_of_days ?? null },
|
|
13
|
+
term_1: e(t.term_1),
|
|
14
|
+
term_2: e(t.term_2)
|
|
85
15
|
});
|
|
86
16
|
}
|
|
17
|
+
function n(e) {
|
|
18
|
+
let n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Map();
|
|
19
|
+
for (let a of e) {
|
|
20
|
+
let e = t(a), o = n.get(e);
|
|
21
|
+
if (!o) {
|
|
22
|
+
n.set(e, a.id), r.push(a);
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
i.set(a.id, o);
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
dedupedTerms: r,
|
|
29
|
+
duplicateIdMap: i
|
|
30
|
+
};
|
|
31
|
+
}
|
|
87
32
|
//#endregion
|
|
88
|
-
export {
|
|
33
|
+
export { n as dedupePaymentTermsByContent };
|