@tesouro/embedded-components-react 0.5.178 → 0.5.179
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 +64 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/customers-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 +67 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +7 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +13 -348
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +347 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +6 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +112 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +33 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +51 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +0 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +38 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +59 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +11 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +117 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +48 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +15 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +24 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +20 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +445 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +38 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +76 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +46 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +122 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +99 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +206 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +155 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +51 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +299 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +23 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +69 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +82 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +13 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +577 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +2 -2
- 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 +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +77 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +62 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +120 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +6 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +7 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +54 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +28 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +18 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +28 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +7 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +4 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +115 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +38 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +5 -410
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +412 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +179 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +53 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +21 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +160 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +32 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +35 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +153 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +68 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +215 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +82 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +110 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +163 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +5 -408
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +407 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +83 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +199 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +59 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +43 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +28 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +84 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +132 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +37 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +53 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +59 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +135 -549
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +551 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +16 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +79 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +142 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +34 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +62 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +67 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +141 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +58 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +85 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +72 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +99 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +35 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +172 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +5 -400
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +408 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +22 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +14 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +45 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +14 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +40 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +137 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +114 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +40 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +22 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +19 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +72 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +18 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +177 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +137 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +114 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +45 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +20 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +26 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +78 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +50 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +35 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +92 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +36 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +106 -785
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +50 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +783 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +92 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +102 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +23 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +14 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +166 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +210 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +82 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +17 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +154 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +104 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +4 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +73 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +8 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +5 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +219 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +11 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +169 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +198 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +97 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +63 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +54 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +88 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +37 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +83 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +23 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +60 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +29 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +33 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +29 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +97 -0
- 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
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +0 -25
|
@@ -1,202 +1,93 @@
|
|
|
1
1
|
import { getCounterpartEmail as e, getCounterpartName as t } from "./index52.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { InputGroupAddon as n } from "./index109.js";
|
|
3
|
+
import { Combobox as r, ComboboxContent as i, ComboboxEmpty as a, ComboboxInput as o, ComboboxItem as s, ComboboxList as c } from "./index110.js";
|
|
4
|
+
import { useCounterpartList as l } from "./index131.js";
|
|
5
5
|
import "./index144.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 "./index213.js";
|
|
7
|
+
import "./index214.js";
|
|
8
|
+
import { Field as d, FieldContent as f, FieldDescription as p, FieldError as m, FieldLabel as h } from "./index87.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/index453.js
|
|
19
|
-
var
|
|
20
|
-
let { i18n:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
postalCode: "",
|
|
35
|
-
country: "US"
|
|
36
|
-
};
|
|
37
|
-
if (e === "individual") {
|
|
38
|
-
let e = Y.trim(), n = e.indexOf(" "), r = n === -1 ? e : e.slice(0, n), i = n === -1 ? "" : e.slice(n + 1);
|
|
39
|
-
return {
|
|
40
|
-
tax_id: "",
|
|
41
|
-
counterpart: {
|
|
42
|
-
...t,
|
|
43
|
-
firstName: r,
|
|
44
|
-
lastName: i
|
|
45
|
-
}
|
|
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 ?? "");
|
|
46
30
|
};
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
88
|
-
children: [/* @__PURE__ */ S(a, {
|
|
89
|
-
variant: "h4",
|
|
90
|
-
children: M._("Customer details")
|
|
91
|
-
}), /* @__PURE__ */ S(a, {
|
|
92
|
-
variant: "body2",
|
|
93
|
-
color: "muted",
|
|
94
|
-
className: "ttw:font-medium",
|
|
95
|
-
children: M._("Who are you billing?")
|
|
96
|
-
})]
|
|
97
|
-
}),
|
|
98
|
-
G ? /* @__PURE__ */ C("div", {
|
|
99
|
-
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl",
|
|
100
|
-
children: [/* @__PURE__ */ C("div", {
|
|
101
|
-
className: "ttw:flex ttw:items-center ttw:gap-5",
|
|
102
|
-
children: [/* @__PURE__ */ S(p, {
|
|
103
|
-
className: "ttw:size-16",
|
|
104
|
-
children: /* @__PURE__ */ S(m, {
|
|
105
|
-
className: "ttw:text-sm ttw:font-normal",
|
|
106
|
-
children: J
|
|
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, { shouldDirty: E }), 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" })
|
|
107
71
|
})
|
|
108
|
-
}), /* @__PURE__ */
|
|
109
|
-
|
|
110
|
-
children: [/* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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))] })
|
|
119
84
|
})]
|
|
120
|
-
}), /* @__PURE__ */ C("div", {
|
|
121
|
-
className: "ttw:flex ttw:items-center",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ S(n, {
|
|
124
|
-
type: "button",
|
|
125
|
-
variant: "ghost",
|
|
126
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
127
|
-
disabled: D,
|
|
128
|
-
onClick: () => H(!0),
|
|
129
|
-
children: M._("View details")
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ S(o, {
|
|
132
|
-
orientation: "vertical",
|
|
133
|
-
className: "ttw:h-6!"
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ S(n, {
|
|
136
|
-
type: "button",
|
|
137
|
-
variant: "ghost",
|
|
138
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
139
|
-
disabled: D,
|
|
140
|
-
onClick: te,
|
|
141
|
-
children: M._("Clear")
|
|
142
|
-
})
|
|
143
|
-
]
|
|
144
|
-
})]
|
|
145
|
-
}) : /* @__PURE__ */ C(x, { children: [
|
|
146
|
-
/* @__PURE__ */ S(h, {
|
|
147
|
-
disabled: D,
|
|
148
|
-
canCreateCounterpart: O
|
|
149
|
-
}),
|
|
150
|
-
O && /* @__PURE__ */ S(T, {
|
|
151
|
-
name: "counterpart_email",
|
|
152
|
-
control: ee,
|
|
153
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, { children: [
|
|
154
|
-
/* @__PURE__ */ S(u, {
|
|
155
|
-
htmlFor: e.name,
|
|
156
|
-
children: M._("Email")
|
|
157
|
-
}),
|
|
158
|
-
/* @__PURE__ */ S(r, {
|
|
159
|
-
...e,
|
|
160
|
-
id: e.name,
|
|
161
|
-
type: "email",
|
|
162
|
-
disabled: D,
|
|
163
|
-
"aria-invalid": !!t
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ S(l, { errors: t ? [t] : [] })
|
|
166
|
-
] }) })
|
|
167
85
|
}),
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
disabled: D,
|
|
173
|
-
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
174
|
-
children: [/* @__PURE__ */ S(b, {}), M._("Add more details including address, phone, etc.")]
|
|
175
|
-
})
|
|
176
|
-
] }),
|
|
177
|
-
U && /* @__PURE__ */ S(f, {
|
|
178
|
-
open: U,
|
|
179
|
-
onClose: () => {
|
|
180
|
-
W(!1);
|
|
181
|
-
},
|
|
182
|
-
onCreate: (e) => {
|
|
183
|
-
W(!1), P("counterpart_id", e, { shouldDirty: !0 }), P("counterpart_name", "", { shouldDirty: !0 }), P("counterpart_email", "", { shouldDirty: !0 }), F(["counterpart_id", "counterpart_email"]);
|
|
184
|
-
},
|
|
185
|
-
getCounterpartDefaultValues: ne,
|
|
186
|
-
customerType: "customer"
|
|
187
|
-
}),
|
|
188
|
-
(k || V) && /* @__PURE__ */ S(d, {
|
|
189
|
-
counterpartId: j?.id || "",
|
|
190
|
-
open: k || V,
|
|
191
|
-
onClose: () => {
|
|
192
|
-
k && A(!1), H(!1);
|
|
193
|
-
},
|
|
194
|
-
isEditMode: k,
|
|
195
|
-
showActionsMenu: !1,
|
|
196
|
-
customerType: "customer"
|
|
197
|
-
})
|
|
198
|
-
]
|
|
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
|
+
}
|
|
199
90
|
});
|
|
200
91
|
};
|
|
201
92
|
//#endregion
|
|
202
|
-
export {
|
|
93
|
+
export { T as CounterpartSelector };
|
|
@@ -1,62 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index55.js";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { getCounterpartEmail as e, getCounterpartName as t } from "./index52.js";
|
|
2
|
+
import { Button as n } from "./index55.js";
|
|
3
|
+
import { Input as r } from "./index88.js";
|
|
4
|
+
import { useCounterpartAddresses as i } from "./index132.js";
|
|
5
|
+
import "./index144.js";
|
|
6
|
+
import { Typography as a } from "./index61.js";
|
|
7
|
+
import { Separator as o } from "./index63.js";
|
|
8
|
+
import { Field as s, FieldContent as c, FieldError as l, FieldLabel as u } from "./index87.js";
|
|
9
|
+
import { CounterpartDetails as d } from "./index246.js";
|
|
10
|
+
import { CreateCounterpartDialog as f } from "./index261.js";
|
|
11
|
+
import { Avatar as p, AvatarFallback as m } from "./index268.js";
|
|
12
|
+
import { CounterpartSelector as h } from "./index453.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";
|
|
6
18
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
19
|
+
var D = ({ disabled: D, canCreateCounterpart: O, isEditCustomerOpen: k, handleOpenEditCustomer: A, counterpart: j }) => {
|
|
20
|
+
let { i18n: M } = w(), { watch: N, setValue: P, control: ee, clearErrors: F } = E(), I = N("counterpart_id"), L = v(I), R = N("default_billing_address_id"), z = N("default_shipping_address_id"), { data: B } = i(j?.id), [V, H] = y(!1), [U, W] = y(!1), G = !!I, K = t(j), q = e(j), J = K ? Array.from(K)[0]?.toUpperCase() ?? "?" : "?", Y = N("counterpart_name") ?? "", X = N("counterpart_email") ?? "", Z = X.trim() || q, Q = v(Z), $ = g(() => {
|
|
21
|
+
P("recurrence_recipients_to", void 0, { shouldDirty: !0 }), P("recurrence_recipients_cc", void 0, { shouldDirty: !0 }), P("recurrence_recipients_bcc", void 0, { shouldDirty: !0 });
|
|
22
|
+
}, [P]), te = () => {
|
|
23
|
+
P("counterpart_id", "", { shouldDirty: !0 }), P("counterpart_name", "", { shouldDirty: !0 }), P("counterpart_email", "", { shouldDirty: !0 });
|
|
24
|
+
}, ne = g((e) => {
|
|
25
|
+
let t = {
|
|
26
|
+
email: X,
|
|
27
|
+
phone: "",
|
|
28
|
+
isCustomer: !0,
|
|
29
|
+
isVendor: !1,
|
|
30
|
+
line1: "",
|
|
31
|
+
line2: "",
|
|
32
|
+
city: "",
|
|
33
|
+
state: "",
|
|
34
|
+
postalCode: "",
|
|
35
|
+
country: "US"
|
|
36
|
+
};
|
|
37
|
+
if (e === "individual") {
|
|
38
|
+
let e = Y.trim(), n = e.indexOf(" "), r = n === -1 ? e : e.slice(0, n), i = n === -1 ? "" : e.slice(n + 1);
|
|
39
|
+
return {
|
|
40
|
+
tax_id: "",
|
|
41
|
+
counterpart: {
|
|
42
|
+
...t,
|
|
43
|
+
firstName: r,
|
|
44
|
+
lastName: i
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
tax_id: "",
|
|
50
|
+
counterpart: {
|
|
51
|
+
...t,
|
|
52
|
+
companyName: Y
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}, [Y, X]);
|
|
56
|
+
return _(() => {
|
|
57
|
+
L.current !== I && (L.current = I, P("default_billing_address_id", ""), P("default_shipping_address_id", ""), $());
|
|
58
|
+
}, [
|
|
59
|
+
I,
|
|
60
|
+
P,
|
|
61
|
+
$
|
|
62
|
+
]), _(() => {
|
|
63
|
+
let e = Q.current;
|
|
64
|
+
e !== Z && (Q.current = Z, e && $());
|
|
65
|
+
}, [Z, $]), _(() => {
|
|
66
|
+
if (B?.data?.length && j && j.id === I) {
|
|
67
|
+
if (!R) {
|
|
68
|
+
let e = j.default_billing_address_id || (B.data.length === 1 ? B.data[0].id : "");
|
|
69
|
+
P("default_billing_address_id", e);
|
|
70
|
+
}
|
|
71
|
+
if (!z) {
|
|
72
|
+
let e = j.default_shipping_address_id || "";
|
|
73
|
+
P("default_shipping_address_id", e);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, [
|
|
77
|
+
B,
|
|
78
|
+
P,
|
|
79
|
+
j,
|
|
80
|
+
I,
|
|
81
|
+
R,
|
|
82
|
+
z
|
|
83
|
+
]), /* @__PURE__ */ C("div", {
|
|
84
|
+
className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ C("div", {
|
|
87
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
88
|
+
children: [/* @__PURE__ */ S(a, {
|
|
89
|
+
variant: "h4",
|
|
90
|
+
children: M._("Customer details")
|
|
91
|
+
}), /* @__PURE__ */ S(a, {
|
|
92
|
+
variant: "body2",
|
|
93
|
+
color: "muted",
|
|
94
|
+
className: "ttw:font-medium",
|
|
95
|
+
children: M._("Who are you billing?")
|
|
96
|
+
})]
|
|
97
|
+
}),
|
|
98
|
+
G ? /* @__PURE__ */ C("div", {
|
|
99
|
+
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl",
|
|
100
|
+
children: [/* @__PURE__ */ C("div", {
|
|
101
|
+
className: "ttw:flex ttw:items-center ttw:gap-5",
|
|
102
|
+
children: [/* @__PURE__ */ S(p, {
|
|
103
|
+
className: "ttw:size-16",
|
|
104
|
+
children: /* @__PURE__ */ S(m, {
|
|
105
|
+
className: "ttw:text-sm ttw:font-normal",
|
|
106
|
+
children: J
|
|
107
|
+
})
|
|
108
|
+
}), /* @__PURE__ */ C("div", {
|
|
109
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
110
|
+
children: [/* @__PURE__ */ S(a, {
|
|
111
|
+
variant: "body1",
|
|
112
|
+
className: "ttw:font-medium",
|
|
113
|
+
children: K
|
|
114
|
+
}), /* @__PURE__ */ S(a, {
|
|
115
|
+
variant: "body2",
|
|
116
|
+
color: "muted",
|
|
117
|
+
children: q
|
|
118
|
+
})]
|
|
119
|
+
})]
|
|
120
|
+
}), /* @__PURE__ */ C("div", {
|
|
121
|
+
className: "ttw:flex ttw:items-center",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ S(n, {
|
|
124
|
+
type: "button",
|
|
125
|
+
variant: "ghost",
|
|
126
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
127
|
+
disabled: D,
|
|
128
|
+
onClick: () => H(!0),
|
|
129
|
+
children: M._("View details")
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ S(o, {
|
|
132
|
+
orientation: "vertical",
|
|
133
|
+
className: "ttw:h-6!"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ S(n, {
|
|
136
|
+
type: "button",
|
|
137
|
+
variant: "ghost",
|
|
138
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
139
|
+
disabled: D,
|
|
140
|
+
onClick: te,
|
|
141
|
+
children: M._("Clear")
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
})]
|
|
145
|
+
}) : /* @__PURE__ */ C(x, { children: [
|
|
146
|
+
/* @__PURE__ */ S(h, {
|
|
147
|
+
disabled: D,
|
|
148
|
+
canCreateCounterpart: O
|
|
149
|
+
}),
|
|
150
|
+
O && /* @__PURE__ */ S(T, {
|
|
151
|
+
name: "counterpart_email",
|
|
152
|
+
control: ee,
|
|
153
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, { children: [
|
|
154
|
+
/* @__PURE__ */ S(u, {
|
|
155
|
+
htmlFor: e.name,
|
|
156
|
+
children: M._("Email")
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ S(r, {
|
|
159
|
+
...e,
|
|
160
|
+
id: e.name,
|
|
161
|
+
type: "email",
|
|
162
|
+
disabled: D,
|
|
163
|
+
"aria-invalid": !!t
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ S(l, { errors: t ? [t] : [] })
|
|
166
|
+
] }) })
|
|
167
|
+
}),
|
|
168
|
+
O && /* @__PURE__ */ C(n, {
|
|
169
|
+
onClick: () => W(!0),
|
|
170
|
+
type: "button",
|
|
171
|
+
variant: "ghost",
|
|
172
|
+
disabled: D,
|
|
173
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
|
|
174
|
+
children: [/* @__PURE__ */ S(b, {}), M._("Add more details including address, phone, etc.")]
|
|
175
|
+
})
|
|
176
|
+
] }),
|
|
177
|
+
U && /* @__PURE__ */ S(f, {
|
|
178
|
+
open: U,
|
|
179
|
+
onClose: () => {
|
|
180
|
+
W(!1);
|
|
181
|
+
},
|
|
182
|
+
onCreate: (e) => {
|
|
183
|
+
W(!1), P("counterpart_id", e, { shouldDirty: !0 }), P("counterpart_name", "", { shouldDirty: !0 }), P("counterpart_email", "", { shouldDirty: !0 }), F(["counterpart_id", "counterpart_email"]);
|
|
184
|
+
},
|
|
185
|
+
getCounterpartDefaultValues: ne,
|
|
186
|
+
customerType: "customer"
|
|
187
|
+
}),
|
|
188
|
+
(k || V) && /* @__PURE__ */ S(d, {
|
|
189
|
+
counterpartId: j?.id || "",
|
|
190
|
+
open: k || V,
|
|
191
|
+
onClose: () => {
|
|
192
|
+
k && A(!1), H(!1);
|
|
193
|
+
},
|
|
194
|
+
isEditMode: k,
|
|
195
|
+
showActionsMenu: !1,
|
|
196
|
+
customerType: "customer"
|
|
197
|
+
})
|
|
198
|
+
]
|
|
11
199
|
});
|
|
12
|
-
}
|
|
13
|
-
function a({ ...e }) {
|
|
14
|
-
return /* @__PURE__ */ t(r.Portal, {
|
|
15
|
-
"data-slot": "alert-dialog-portal",
|
|
16
|
-
...e
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function o({ className: n, ...i }) {
|
|
20
|
-
return /* @__PURE__ */ t(r.Overlay, {
|
|
21
|
-
"data-slot": "alert-dialog-overlay",
|
|
22
|
-
className: e("ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:fixed ttw:inset-0 ttw:z-1300 ttw:bg-black/50", n),
|
|
23
|
-
...i
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function s({ className: i, ...s }) {
|
|
27
|
-
return /* @__PURE__ */ n(a, { children: [/* @__PURE__ */ t(o, {}), /* @__PURE__ */ t(r.Content, {
|
|
28
|
-
"data-slot": "alert-dialog-content",
|
|
29
|
-
className: e("ttw:bg-background ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:fixed ttw:top-[50%] ttw:left-[50%] ttw:z-1300 ttw:grid ttw:w-full ttw:max-w-[calc(100%-2rem)] ttw:translate-x-[-50%] ttw:translate-y-[-50%] ttw:gap-4 ttw:rounded-lg ttw:border ttw:p-6 ttw:shadow-lg ttw:duration-200 ttw:sm:max-w-lg", i),
|
|
30
|
-
...s
|
|
31
|
-
})] });
|
|
32
|
-
}
|
|
33
|
-
function c({ className: n, ...r }) {
|
|
34
|
-
return /* @__PURE__ */ t("div", {
|
|
35
|
-
"data-slot": "alert-dialog-header",
|
|
36
|
-
className: e("ttw:flex ttw:flex-col ttw:gap-2 ttw:text-center ttw:sm:text-left", n),
|
|
37
|
-
...r
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function l({ className: n, ...r }) {
|
|
41
|
-
return /* @__PURE__ */ t("div", {
|
|
42
|
-
"data-slot": "alert-dialog-footer",
|
|
43
|
-
className: e("ttw:flex ttw:flex-col-reverse ttw:gap-2 ttw:sm:flex-row ttw:sm:justify-end", n),
|
|
44
|
-
...r
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function u({ className: n, ...i }) {
|
|
48
|
-
return /* @__PURE__ */ t(r.Title, {
|
|
49
|
-
"data-slot": "alert-dialog-title",
|
|
50
|
-
className: e("ttw:text-lg ttw:font-semibold", n),
|
|
51
|
-
...i
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function d({ className: n, ...i }) {
|
|
55
|
-
return /* @__PURE__ */ t(r.Description, {
|
|
56
|
-
"data-slot": "alert-dialog-description",
|
|
57
|
-
className: e("ttw:text-muted-foreground ttw:text-sm", n),
|
|
58
|
-
...i
|
|
59
|
-
});
|
|
60
|
-
}
|
|
200
|
+
};
|
|
61
201
|
//#endregion
|
|
62
|
-
export {
|
|
202
|
+
export { D as CustomerSection };
|
|
@@ -1,46 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
1
|
+
import { cn as e } from "./index48.js";
|
|
2
|
+
import "./index55.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import * as r from "@radix-ui/react-alert-dialog";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onOpenChange: (e) => {
|
|
12
|
-
!e && !g && h();
|
|
13
|
-
},
|
|
14
|
-
children: /* @__PURE__ */ u(n, {
|
|
15
|
-
className: "ttw:border-border",
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ u("button", {
|
|
18
|
-
type: "button",
|
|
19
|
-
onClick: h,
|
|
20
|
-
disabled: g,
|
|
21
|
-
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
22
|
-
children: [/* @__PURE__ */ l(c, { className: "ttw:size-4" }), /* @__PURE__ */ l("span", {
|
|
23
|
-
className: "ttw:sr-only",
|
|
24
|
-
children: v._("Close")
|
|
25
|
-
})]
|
|
26
|
-
}),
|
|
27
|
-
/* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, { children: v._("Save this invoice as a draft?") }), /* @__PURE__ */ l(r, { children: v._("This invoice has changes that have not been saved. Save it as a draft to finish later, or discard the changes.") })] }),
|
|
28
|
-
/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(e, {
|
|
29
|
-
type: "button",
|
|
30
|
-
variant: "outline",
|
|
31
|
-
onClick: m,
|
|
32
|
-
disabled: g,
|
|
33
|
-
children: v._("Discard changes")
|
|
34
|
-
}), /* @__PURE__ */ u(e, {
|
|
35
|
-
type: "button",
|
|
36
|
-
variant: "default",
|
|
37
|
-
disabled: g || _,
|
|
38
|
-
onClick: p,
|
|
39
|
-
children: [g && /* @__PURE__ */ l(s, { className: "ttw:animate-spin" }), v._("Save as draft")]
|
|
40
|
-
})] })
|
|
41
|
-
]
|
|
42
|
-
})
|
|
7
|
+
function i({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ t(r.Root, {
|
|
9
|
+
"data-slot": "alert-dialog",
|
|
10
|
+
...e
|
|
43
11
|
});
|
|
44
|
-
}
|
|
12
|
+
}
|
|
13
|
+
function a({ ...e }) {
|
|
14
|
+
return /* @__PURE__ */ t(r.Portal, {
|
|
15
|
+
"data-slot": "alert-dialog-portal",
|
|
16
|
+
...e
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function o({ className: n, ...i }) {
|
|
20
|
+
return /* @__PURE__ */ t(r.Overlay, {
|
|
21
|
+
"data-slot": "alert-dialog-overlay",
|
|
22
|
+
className: e("ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:fixed ttw:inset-0 ttw:z-1300 ttw:bg-black/50", n),
|
|
23
|
+
...i
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function s({ className: i, ...s }) {
|
|
27
|
+
return /* @__PURE__ */ n(a, { children: [/* @__PURE__ */ t(o, {}), /* @__PURE__ */ t(r.Content, {
|
|
28
|
+
"data-slot": "alert-dialog-content",
|
|
29
|
+
className: e("ttw:bg-background ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:fixed ttw:top-[50%] ttw:left-[50%] ttw:z-1300 ttw:grid ttw:w-full ttw:max-w-[calc(100%-2rem)] ttw:translate-x-[-50%] ttw:translate-y-[-50%] ttw:gap-4 ttw:rounded-lg ttw:border ttw:p-6 ttw:shadow-lg ttw:duration-200 ttw:sm:max-w-lg", i),
|
|
30
|
+
...s
|
|
31
|
+
})] });
|
|
32
|
+
}
|
|
33
|
+
function c({ className: n, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ t("div", {
|
|
35
|
+
"data-slot": "alert-dialog-header",
|
|
36
|
+
className: e("ttw:flex ttw:flex-col ttw:gap-2 ttw:text-center ttw:sm:text-left", n),
|
|
37
|
+
...r
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function l({ className: n, ...r }) {
|
|
41
|
+
return /* @__PURE__ */ t("div", {
|
|
42
|
+
"data-slot": "alert-dialog-footer",
|
|
43
|
+
className: e("ttw:flex ttw:flex-col-reverse ttw:gap-2 ttw:sm:flex-row ttw:sm:justify-end", n),
|
|
44
|
+
...r
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function u({ className: n, ...i }) {
|
|
48
|
+
return /* @__PURE__ */ t(r.Title, {
|
|
49
|
+
"data-slot": "alert-dialog-title",
|
|
50
|
+
className: e("ttw:text-lg ttw:font-semibold", n),
|
|
51
|
+
...i
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function d({ className: n, ...i }) {
|
|
55
|
+
return /* @__PURE__ */ t(r.Description, {
|
|
56
|
+
"data-slot": "alert-dialog-description",
|
|
57
|
+
className: e("ttw:text-muted-foreground ttw:text-sm", n),
|
|
58
|
+
...i
|
|
59
|
+
});
|
|
60
|
+
}
|
|
45
61
|
//#endregion
|
|
46
|
-
export {
|
|
62
|
+
export { i as AlertDialog, s as AlertDialogContent, d as AlertDialogDescription, l as AlertDialogFooter, c as AlertDialogHeader, o as AlertDialogOverlay, a as AlertDialogPortal, u as AlertDialogTitle };
|