@tesouro/embedded-components-react 0.5.160 → 0.5.162
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/index68.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/index182.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +33 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +1 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +51 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +0 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +38 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +59 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +21 -11
- 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 +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +11 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +117 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +8 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +48 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +15 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +0 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +24 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +20 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +445 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +38 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +76 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +46 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +122 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +5 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +99 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +206 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +155 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +51 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +299 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +23 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +69 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +82 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +13 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +577 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +2 -2
- 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 +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +16 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +77 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +62 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +120 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +6 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +7 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +54 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +28 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +28 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +7 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -2
- 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 +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +3 -3
- 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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +4 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +115 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +38 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +5 -410
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +412 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +2 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +179 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +53 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +21 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +1 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +160 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +32 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +35 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +153 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +68 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +215 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +82 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +110 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +163 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +5 -384
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +407 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +83 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +199 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +55 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +42 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +29 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +83 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +133 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +37 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +54 -549
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +59 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +137 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +534 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +141 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +143 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +36 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +59 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +66 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +149 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +61 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +84 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +16 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +20 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +21 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +42 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +27 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +13 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +9 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +101 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +34 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +43 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +64 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +98 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +43 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +173 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +129 -235
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +131 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +79 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +232 -385
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +8 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +6 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +399 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +45 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +14 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +138 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +113 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +40 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +30 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +22 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +22 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +71 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +71 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +16 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +175 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +142 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +31 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +116 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +45 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +15 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +22 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +26 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +38 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +71 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +49 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +87 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +37 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +128 -783
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +104 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +51 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +791 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +89 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +102 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +8 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +23 -208
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +14 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +171 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +199 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +73 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +100 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +43 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +4 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +74 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +133 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +5 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +211 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +11 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +173 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +201 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +92 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +57 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +51 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +87 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +41 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +76 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +87 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +3 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +60 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +34 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +29 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +10 -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,555 +1,60 @@
|
|
|
1
1
|
import { cn as e } from "./index48.js";
|
|
2
2
|
import { Button as t } from "./index55.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { RECURRENCE_CREATION_MODES as ee, RECURRENCE_EMAIL_FIELD_NAMES as te } from "./index92.js";
|
|
8
|
-
import { Select as c, SelectContent as l, SelectItem as u, SelectSeparator as d, SelectTrigger as f, SelectValue as p } from "./index107.js";
|
|
9
|
-
import { isRecurrenceEmailComplete as ne } from "./index168.js";
|
|
10
|
-
import { RECEIPT_DUE_PAYMENT_TERM as re } from "./index176.js";
|
|
11
|
-
import { DatePicker as m } from "./index456.js";
|
|
12
|
-
import { useRecurrenceSectionLabels as h } from "./index458.js";
|
|
13
|
-
import { RecurrenceEmailModal as g } from "./index459.js";
|
|
14
|
-
import { useState as ie } from "react";
|
|
15
|
-
import { Fragment as _, jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { useLingui as ae } from "@lingui/react";
|
|
17
|
-
import { Controller as b, useFormContext as oe } from "react-hook-form";
|
|
3
|
+
import { Badge as n } from "./index229.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { XIcon as i } from "lucide-react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
18
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js
|
|
19
|
-
var
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"month"
|
|
23
|
-
], C = (e) => {
|
|
24
|
-
(e.key === "." || e.key === ",") && e.preventDefault();
|
|
25
|
-
}, w = (e) => {
|
|
26
|
-
let t = [
|
|
27
|
-
"th",
|
|
28
|
-
"st",
|
|
29
|
-
"nd",
|
|
30
|
-
"rd"
|
|
31
|
-
], n = e % 100;
|
|
32
|
-
return `${e}${t[(n - 20) % 10] ?? t[n] ?? t[0]}`;
|
|
33
|
-
}, T = Array.from({ length: 31 }, (e, t) => t + 1), E = [
|
|
34
|
-
"recurrence_start_date",
|
|
35
|
-
"recurrence_end_date",
|
|
36
|
-
"recurrence_issue_mode",
|
|
37
|
-
"recurrence_days_of_week",
|
|
38
|
-
"recurrence_end_mode",
|
|
39
|
-
"recurrence_max_occurrences"
|
|
40
|
-
], D = {
|
|
41
|
-
su: 0,
|
|
42
|
-
mo: 1,
|
|
43
|
-
tu: 2,
|
|
44
|
-
we: 3,
|
|
45
|
-
th: 4,
|
|
46
|
-
fr: 5,
|
|
47
|
-
sa: 6
|
|
48
|
-
}, O = () => {
|
|
49
|
-
let e = /* @__PURE__ */ new Date();
|
|
50
|
-
return e.setHours(0, 0, 0, 0), e;
|
|
51
|
-
}, se = () => {
|
|
52
|
-
let e = O();
|
|
53
|
-
return e.setDate(e.getDate() + 1), e;
|
|
54
|
-
}, ce = (e) => {
|
|
55
|
-
let t = O(), n = (D[e] - t.getDay() + 7) % 7 || 7, r = new Date(t);
|
|
56
|
-
return r.setDate(t.getDate() + n), r;
|
|
57
|
-
}, k = ({ lockSchedule: O = !1, labels: k, emailModalLabels: ue }) => {
|
|
58
|
-
let { i18n: A } = ae(), j = h(k), { control: M, watch: N, clearErrors: P, getValues: F, setValue: I, formState: { errors: L } } = oe(), R = N("frequency"), z = N("payment_terms_id"), B = N("recurrence_issue_mode"), V = N("recurrence_end_mode"), H = N("recurrence_days_of_week"), de = N("recurrence_max_occurrences"), U = Number(de) === 1, W = N("recurrence_start_date"), G = W ? new Date(W) : void 0, K = N("recurrence_end_date"), q = K ? new Date(K) : void 0, [fe, J] = ie(!1), Y = N("recurrence_automation_level") ?? "issue", X = Y === "issue_and_send", Z = N("recurrence_recipients_to"), pe = Z?.length ? Z.join(", ") : j.noRecipients, Q = te.map((e) => L[e]).find(Boolean), $ = (e) => {
|
|
59
|
-
if (e < se()) return !0;
|
|
60
|
-
if (R === "week") return H ? e.getDay() !== D[H] : !1;
|
|
61
|
-
if (R !== "month" || !B) return !1;
|
|
62
|
-
let t = e.getDate(), n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
63
|
-
if (B === "first_day") return t !== 1;
|
|
64
|
-
if (B === "last_day") return t !== n;
|
|
65
|
-
let r = Number(B);
|
|
66
|
-
return !Number.isNaN(r) && t !== Math.min(r, n);
|
|
67
|
-
}, me = (e) => {
|
|
68
|
-
if ($(e)) return !0;
|
|
69
|
-
if (!G) return !1;
|
|
70
|
-
let t = new Date(G);
|
|
71
|
-
return t.setHours(0, 0, 0, 0), e < t;
|
|
72
|
-
}, he = (e) => {
|
|
73
|
-
if ($(e)) return !0;
|
|
74
|
-
if (!q) return !1;
|
|
75
|
-
let t = new Date(q);
|
|
76
|
-
return t.setHours(0, 0, 0, 0), e > t;
|
|
8
|
+
var s = ({ className: s, value: c, onChange: l, onPendingChange: u, ref: d, ...f }) => {
|
|
9
|
+
let [p, m] = r.useState(""), h = (e) => {
|
|
10
|
+
m(e), u?.(e);
|
|
77
11
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ v(u, {
|
|
123
|
-
value: "month",
|
|
124
|
-
children: A._("Monthly")
|
|
125
|
-
}),
|
|
126
|
-
/* @__PURE__ */ v(u, {
|
|
127
|
-
value: "quarter",
|
|
128
|
-
children: A._("Quarterly")
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ v(u, {
|
|
131
|
-
value: "year",
|
|
132
|
-
children: A._("Annually")
|
|
133
|
-
})
|
|
134
|
-
] })]
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
}),
|
|
139
|
-
(() => {
|
|
140
|
-
switch (R) {
|
|
141
|
-
case "once":
|
|
142
|
-
case "day":
|
|
143
|
-
case "quarter":
|
|
144
|
-
case "year":
|
|
145
|
-
default: return null;
|
|
146
|
-
case "month": return /* @__PURE__ */ y(_, { children: [
|
|
147
|
-
/* @__PURE__ */ v(r, {
|
|
148
|
-
variant: "body2",
|
|
149
|
-
color: "muted",
|
|
150
|
-
className: "ttw:text-nowrap",
|
|
151
|
-
children: A._("on the")
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ v(b, {
|
|
154
|
-
name: "recurrence_issue_mode",
|
|
155
|
-
control: M,
|
|
156
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ v(a, {
|
|
157
|
-
className: "ttw:w-fit",
|
|
158
|
-
children: /* @__PURE__ */ v(o, {
|
|
159
|
-
className: "ttw:grow-0",
|
|
160
|
-
children: /* @__PURE__ */ y(c, {
|
|
161
|
-
value: e.value,
|
|
162
|
-
disabled: O,
|
|
163
|
-
onValueChange: (t) => {
|
|
164
|
-
e.onChange(t), P("recurrence_issue_mode"), O || I("recurrence_start_date", void 0, { shouldDirty: !1 });
|
|
165
|
-
},
|
|
166
|
-
children: [/* @__PURE__ */ v(f, {
|
|
167
|
-
id: "recurrence_issue_mode",
|
|
168
|
-
className: "ttw:min-w-21 ttw:w-fit",
|
|
169
|
-
"aria-invalid": !!t,
|
|
170
|
-
children: /* @__PURE__ */ v(p, {})
|
|
171
|
-
}), /* @__PURE__ */ y(l, { children: [
|
|
172
|
-
/* @__PURE__ */ v(u, {
|
|
173
|
-
value: "first_day",
|
|
174
|
-
children: A._("First day")
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ v(u, {
|
|
177
|
-
value: "last_day",
|
|
178
|
-
children: A._("Last day")
|
|
179
|
-
}),
|
|
180
|
-
/* @__PURE__ */ v(d, {}),
|
|
181
|
-
T.map((e) => /* @__PURE__ */ v(u, {
|
|
182
|
-
value: String(e),
|
|
183
|
-
children: w(e)
|
|
184
|
-
}, e))
|
|
185
|
-
] })]
|
|
186
|
-
})
|
|
187
|
-
})
|
|
188
|
-
})
|
|
189
|
-
}),
|
|
190
|
-
/* @__PURE__ */ v(r, {
|
|
191
|
-
variant: "body2",
|
|
192
|
-
color: "muted",
|
|
193
|
-
className: "ttw:text-nowrap",
|
|
194
|
-
children: A._("day of every month")
|
|
195
|
-
})
|
|
196
|
-
] });
|
|
197
|
-
case "week": return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(r, {
|
|
198
|
-
variant: "body2",
|
|
199
|
-
color: "muted",
|
|
200
|
-
children: A._("on")
|
|
201
|
-
}), /* @__PURE__ */ v(b, {
|
|
202
|
-
name: "recurrence_days_of_week",
|
|
203
|
-
control: M,
|
|
204
|
-
render: ({ field: t, fieldState: { error: n } }) => {
|
|
205
|
-
let r = t.value, i = (e) => {
|
|
206
|
-
O || r === e || (t.onChange(e), I("recurrence_start_date", ce(e), { shouldDirty: !0 }), P("recurrence_start_date"));
|
|
207
|
-
};
|
|
208
|
-
return /* @__PURE__ */ v(a, {
|
|
209
|
-
className: "ttw:w-fit",
|
|
210
|
-
children: /* @__PURE__ */ v(o, {
|
|
211
|
-
className: "ttw:grow-0",
|
|
212
|
-
children: /* @__PURE__ */ y("div", {
|
|
213
|
-
"aria-invalid": !!n,
|
|
214
|
-
"aria-disabled": O || void 0,
|
|
215
|
-
className: e("ttw:flex ttw:border ttw:border-border ttw:rounded-md ttw:h-8 ttw:w-56 ttw:aria-invalid:border-destructive", O && "ttw:opacity-50 ttw:pointer-events-none"),
|
|
216
|
-
children: [
|
|
217
|
-
/* @__PURE__ */ v("button", {
|
|
218
|
-
type: "button",
|
|
219
|
-
disabled: O,
|
|
220
|
-
"aria-pressed": r === "mo",
|
|
221
|
-
"data-active": r === "mo",
|
|
222
|
-
onClick: () => i("mo"),
|
|
223
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:border-r ttw:border-border ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
224
|
-
children: A._("Mo")
|
|
225
|
-
}),
|
|
226
|
-
/* @__PURE__ */ v("button", {
|
|
227
|
-
type: "button",
|
|
228
|
-
disabled: O,
|
|
229
|
-
"aria-pressed": r === "tu",
|
|
230
|
-
"data-active": r === "tu",
|
|
231
|
-
onClick: () => i("tu"),
|
|
232
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:border-r ttw:border-border ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
233
|
-
children: A._("Tu")
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ v("button", {
|
|
236
|
-
type: "button",
|
|
237
|
-
disabled: O,
|
|
238
|
-
"aria-pressed": r === "we",
|
|
239
|
-
"data-active": r === "we",
|
|
240
|
-
onClick: () => i("we"),
|
|
241
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:border-r ttw:border-border ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
242
|
-
children: A._("We")
|
|
243
|
-
}),
|
|
244
|
-
/* @__PURE__ */ v("button", {
|
|
245
|
-
type: "button",
|
|
246
|
-
disabled: O,
|
|
247
|
-
"aria-pressed": r === "th",
|
|
248
|
-
"data-active": r === "th",
|
|
249
|
-
onClick: () => i("th"),
|
|
250
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:border-r ttw:border-border ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
251
|
-
children: A._("Th")
|
|
252
|
-
}),
|
|
253
|
-
/* @__PURE__ */ v("button", {
|
|
254
|
-
type: "button",
|
|
255
|
-
disabled: O,
|
|
256
|
-
"aria-pressed": r === "fr",
|
|
257
|
-
"data-active": r === "fr",
|
|
258
|
-
onClick: () => i("fr"),
|
|
259
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:border-r ttw:border-border ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
260
|
-
children: A._("Fr")
|
|
261
|
-
}),
|
|
262
|
-
/* @__PURE__ */ v("button", {
|
|
263
|
-
type: "button",
|
|
264
|
-
disabled: O,
|
|
265
|
-
"aria-pressed": r === "sa",
|
|
266
|
-
"data-active": r === "sa",
|
|
267
|
-
onClick: () => i("sa"),
|
|
268
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:border-r ttw:border-border ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
269
|
-
children: A._("Sa")
|
|
270
|
-
}),
|
|
271
|
-
/* @__PURE__ */ v("button", {
|
|
272
|
-
type: "button",
|
|
273
|
-
disabled: O,
|
|
274
|
-
"aria-pressed": r === "su",
|
|
275
|
-
"data-active": r === "su",
|
|
276
|
-
onClick: () => i("su"),
|
|
277
|
-
className: "ttw:hover:cursor-pointer ttw:transition-colors ttw:hover:bg-muted ttw:data-[active=true]:bg-muted ttw:text-sm ttw:font-medium ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center",
|
|
278
|
-
children: A._("Su")
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
})
|
|
282
|
-
})
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
})] });
|
|
286
|
-
}
|
|
287
|
-
})()
|
|
288
|
-
]
|
|
289
|
-
}),
|
|
290
|
-
R !== "once" && /* @__PURE__ */ y("div", {
|
|
291
|
-
className: "ttw:flex ttw:items-center ttw:gap-2.5",
|
|
292
|
-
children: [
|
|
293
|
-
/* @__PURE__ */ v(r, {
|
|
294
|
-
variant: "body2",
|
|
295
|
-
color: "muted",
|
|
296
|
-
className: "ttw:text-nowrap",
|
|
297
|
-
children: A._("Start on")
|
|
298
|
-
}),
|
|
299
|
-
/* @__PURE__ */ v(b, {
|
|
300
|
-
control: M,
|
|
301
|
-
name: "recurrence_start_date",
|
|
302
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ v(a, {
|
|
303
|
-
className: "ttw:grow-0 ttw:w-44",
|
|
304
|
-
children: /* @__PURE__ */ v(o, { children: /* @__PURE__ */ v(m, {
|
|
305
|
-
...e,
|
|
306
|
-
selected: e.value ? new Date(e.value) : void 0,
|
|
307
|
-
onSelect: e.onChange,
|
|
308
|
-
showOutsideDays: !1,
|
|
309
|
-
shouldDisableButton: O || R === "week" && !H,
|
|
310
|
-
disabled: he,
|
|
311
|
-
"aria-invalid": !!t,
|
|
312
|
-
startMonth: /* @__PURE__ */ new Date(),
|
|
313
|
-
endMonth: q ? new Date(q.getFullYear(), q.getMonth(), 1) : new Date(2050, 11)
|
|
314
|
-
}) })
|
|
315
|
-
})
|
|
316
|
-
}),
|
|
317
|
-
(() => {
|
|
318
|
-
switch (R) {
|
|
319
|
-
case "once":
|
|
320
|
-
default: return null;
|
|
321
|
-
case "day": return /* @__PURE__ */ y(_, { children: [
|
|
322
|
-
/* @__PURE__ */ v(r, {
|
|
323
|
-
variant: "body2",
|
|
324
|
-
color: "muted",
|
|
325
|
-
className: "ttw:text-nowrap",
|
|
326
|
-
children: A._("and end")
|
|
327
|
-
}),
|
|
328
|
-
/* @__PURE__ */ v(b, {
|
|
329
|
-
name: "recurrence_end_mode",
|
|
330
|
-
control: M,
|
|
331
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ v(a, {
|
|
332
|
-
className: "ttw:w-fit",
|
|
333
|
-
children: /* @__PURE__ */ v(o, {
|
|
334
|
-
className: "ttw:grow-0",
|
|
335
|
-
children: /* @__PURE__ */ y(c, {
|
|
336
|
-
value: e.value,
|
|
337
|
-
onValueChange: (t) => {
|
|
338
|
-
e.onChange(t), I(t === "after" ? "recurrence_end_date" : "recurrence_max_occurrences", void 0, { shouldDirty: !1 });
|
|
339
|
-
},
|
|
340
|
-
children: [/* @__PURE__ */ v(f, {
|
|
341
|
-
id: "recurrence_end_mode",
|
|
342
|
-
className: "ttw:w-21",
|
|
343
|
-
"aria-invalid": !!t,
|
|
344
|
-
children: /* @__PURE__ */ v(p, {})
|
|
345
|
-
}), /* @__PURE__ */ y(l, { children: [/* @__PURE__ */ v(u, {
|
|
346
|
-
value: "after",
|
|
347
|
-
children: A._("After")
|
|
348
|
-
}), /* @__PURE__ */ v(u, {
|
|
349
|
-
value: "on",
|
|
350
|
-
children: A._("On")
|
|
351
|
-
})] })]
|
|
352
|
-
})
|
|
353
|
-
})
|
|
354
|
-
})
|
|
355
|
-
}),
|
|
356
|
-
V === "on" ? /* @__PURE__ */ v(b, {
|
|
357
|
-
control: M,
|
|
358
|
-
name: "recurrence_end_date",
|
|
359
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ v(a, {
|
|
360
|
-
className: "ttw:grow-0 ttw:w-44",
|
|
361
|
-
children: /* @__PURE__ */ v(o, { children: /* @__PURE__ */ v(m, {
|
|
362
|
-
...e,
|
|
363
|
-
selected: e.value ? new Date(e.value) : void 0,
|
|
364
|
-
onSelect: e.onChange,
|
|
365
|
-
showOutsideDays: !1,
|
|
366
|
-
disabled: me,
|
|
367
|
-
"aria-invalid": !!t,
|
|
368
|
-
startMonth: G ? new Date(G.getFullYear(), G.getMonth(), 1) : /* @__PURE__ */ new Date(),
|
|
369
|
-
endMonth: new Date(2050, 11)
|
|
370
|
-
}) })
|
|
371
|
-
})
|
|
372
|
-
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(b, {
|
|
373
|
-
name: "recurrence_max_occurrences",
|
|
374
|
-
control: M,
|
|
375
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ v(a, {
|
|
376
|
-
className: "ttw:w-fit",
|
|
377
|
-
children: /* @__PURE__ */ v(o, {
|
|
378
|
-
className: "ttw:grow-0",
|
|
379
|
-
children: /* @__PURE__ */ v(n, {
|
|
380
|
-
...e,
|
|
381
|
-
className: "ttw:w-16",
|
|
382
|
-
value: e.value ?? "",
|
|
383
|
-
type: "number",
|
|
384
|
-
min: 0,
|
|
385
|
-
max: 1e3,
|
|
386
|
-
onKeyDown: C,
|
|
387
|
-
"aria-invalid": !!t
|
|
388
|
-
})
|
|
389
|
-
})
|
|
390
|
-
})
|
|
391
|
-
}), /* @__PURE__ */ v(r, {
|
|
392
|
-
variant: "body2",
|
|
393
|
-
color: "muted",
|
|
394
|
-
className: "ttw:text-nowrap",
|
|
395
|
-
children: U ? A._("day") : A._("days")
|
|
396
|
-
})] })
|
|
397
|
-
] });
|
|
398
|
-
case "month":
|
|
399
|
-
case "quarter":
|
|
400
|
-
case "year":
|
|
401
|
-
case "week": return /* @__PURE__ */ y(_, { children: [
|
|
402
|
-
/* @__PURE__ */ v(r, {
|
|
403
|
-
variant: "body2",
|
|
404
|
-
color: "muted",
|
|
405
|
-
className: "ttw:text-nowrap",
|
|
406
|
-
children: A._("and end after")
|
|
407
|
-
}),
|
|
408
|
-
/* @__PURE__ */ v(b, {
|
|
409
|
-
name: "recurrence_max_occurrences",
|
|
410
|
-
control: M,
|
|
411
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ v(a, {
|
|
412
|
-
className: "ttw:w-fit",
|
|
413
|
-
children: /* @__PURE__ */ v(o, {
|
|
414
|
-
className: "ttw:grow-0",
|
|
415
|
-
children: /* @__PURE__ */ v(n, {
|
|
416
|
-
...e,
|
|
417
|
-
className: "ttw:w-16",
|
|
418
|
-
value: e.value ?? "",
|
|
419
|
-
type: "number",
|
|
420
|
-
min: 0,
|
|
421
|
-
max: 1e3,
|
|
422
|
-
onKeyDown: C,
|
|
423
|
-
"aria-invalid": !!t
|
|
424
|
-
})
|
|
425
|
-
})
|
|
426
|
-
})
|
|
427
|
-
}),
|
|
428
|
-
/* @__PURE__ */ y(r, {
|
|
429
|
-
variant: "body2",
|
|
430
|
-
color: "muted",
|
|
431
|
-
className: "ttw:text-nowrap",
|
|
432
|
-
children: [
|
|
433
|
-
R === "month" && (U ? A._("month") : A._("months")),
|
|
434
|
-
R === "quarter" && (U ? A._("quarter") : A._("quarters")),
|
|
435
|
-
R === "week" && (U ? A._("week") : A._("weeks")),
|
|
436
|
-
R === "year" && (U ? A._("year") : A._("years"))
|
|
437
|
-
]
|
|
438
|
-
})
|
|
439
|
-
] });
|
|
440
|
-
}
|
|
441
|
-
})()
|
|
442
|
-
]
|
|
443
|
-
}),
|
|
444
|
-
L.recurrence_max_occurrences && /* @__PURE__ */ v(s, { errors: [L.recurrence_max_occurrences] }),
|
|
445
|
-
/* @__PURE__ */ v(g, {
|
|
446
|
-
open: fe,
|
|
447
|
-
onOpenChange: J,
|
|
448
|
-
labels: ue
|
|
449
|
-
}),
|
|
450
|
-
[
|
|
451
|
-
"month",
|
|
452
|
-
"quarter",
|
|
453
|
-
"year"
|
|
454
|
-
].includes(R) && /* @__PURE__ */ v(r, {
|
|
455
|
-
variant: "caption",
|
|
456
|
-
color: "muted",
|
|
457
|
-
children: A._("If the issue day doesn't exist in a given month, e.g., the 31st, then the invoice will be sent on the last day of that month.")
|
|
458
|
-
}),
|
|
459
|
-
R !== "once" && /* @__PURE__ */ y("div", {
|
|
460
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:pt-1.5",
|
|
461
|
-
children: [
|
|
462
|
-
/* @__PURE__ */ v(i, {
|
|
463
|
-
htmlFor: "recurrence_automation_level",
|
|
464
|
-
children: /* @__PURE__ */ y(r, {
|
|
465
|
-
variant: "body2",
|
|
466
|
-
component: "span",
|
|
467
|
-
className: "ttw:block",
|
|
468
|
-
children: [
|
|
469
|
-
j.creationModeQuestion,
|
|
470
|
-
" ",
|
|
471
|
-
/* @__PURE__ */ v(r, {
|
|
472
|
-
variant: "body2",
|
|
473
|
-
component: "span",
|
|
474
|
-
color: "muted",
|
|
475
|
-
children: j.creationModeHint
|
|
476
|
-
})
|
|
477
|
-
]
|
|
478
|
-
})
|
|
479
|
-
}),
|
|
480
|
-
/* @__PURE__ */ v(b, {
|
|
481
|
-
name: "recurrence_automation_level",
|
|
482
|
-
control: M,
|
|
483
|
-
render: ({ field: e }) => /* @__PURE__ */ y(c, {
|
|
484
|
-
value: Y,
|
|
485
|
-
onValueChange: (t) => {
|
|
486
|
-
e.onChange(t);
|
|
487
|
-
let [n, r, i, a, o] = F([
|
|
488
|
-
"recurrence_subject_text",
|
|
489
|
-
"recurrence_body_text",
|
|
490
|
-
"recurrence_recipients_to",
|
|
491
|
-
"recurrence_recipients_cc",
|
|
492
|
-
"recurrence_recipients_bcc"
|
|
493
|
-
]);
|
|
494
|
-
t === "issue_and_send" && !ne({
|
|
495
|
-
to: i,
|
|
496
|
-
cc: a,
|
|
497
|
-
bcc: o,
|
|
498
|
-
subject: n,
|
|
499
|
-
body: r
|
|
500
|
-
}) && J(!0);
|
|
501
|
-
},
|
|
502
|
-
children: [/* @__PURE__ */ v(f, {
|
|
503
|
-
id: "recurrence_automation_level",
|
|
504
|
-
"aria-invalid": !!Q,
|
|
505
|
-
"aria-describedby": Q ? x : void 0,
|
|
506
|
-
className: "ttw:h-auto! ttw:w-full ttw:py-2.5 ttw:*:data-[slot=select-value]:line-clamp-none",
|
|
507
|
-
children: /* @__PURE__ */ v(p, {})
|
|
508
|
-
}), /* @__PURE__ */ v(l, { children: ee.map(({ value: e, Icon: t }) => /* @__PURE__ */ v(u, {
|
|
509
|
-
value: e,
|
|
510
|
-
children: /* @__PURE__ */ v(le, {
|
|
511
|
-
Icon: t,
|
|
512
|
-
...j.creationModes[e]
|
|
513
|
-
})
|
|
514
|
-
}, e)) })]
|
|
515
|
-
})
|
|
516
|
-
}),
|
|
517
|
-
X && /* @__PURE__ */ y("div", {
|
|
518
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
519
|
-
children: [/* @__PURE__ */ v(r, {
|
|
520
|
-
variant: "body2",
|
|
521
|
-
color: "muted",
|
|
522
|
-
className: "ttw:truncate",
|
|
523
|
-
children: pe
|
|
524
|
-
}), /* @__PURE__ */ v(t, {
|
|
525
|
-
type: "button",
|
|
526
|
-
variant: "link",
|
|
527
|
-
className: "ttw:h-auto ttw:p-0",
|
|
528
|
-
onClick: () => J(!0),
|
|
529
|
-
children: j.setUpEmail
|
|
530
|
-
})]
|
|
531
|
-
}),
|
|
532
|
-
Q && /* @__PURE__ */ v(s, {
|
|
533
|
-
id: x,
|
|
534
|
-
errors: [Q]
|
|
535
|
-
})
|
|
536
|
-
]
|
|
537
|
-
})
|
|
538
|
-
]
|
|
539
|
-
});
|
|
540
|
-
}, le = ({ Icon: e, title: t, description: n }) => /* @__PURE__ */ y("div", {
|
|
541
|
-
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
542
|
-
children: [/* @__PURE__ */ v(e, { className: "ttw:size-5 ttw:shrink-0 ttw:text-muted-foreground" }), /* @__PURE__ */ y("div", {
|
|
543
|
-
className: "ttw:flex ttw:flex-col ttw:text-left",
|
|
544
|
-
children: [/* @__PURE__ */ v(r, {
|
|
545
|
-
variant: "body2",
|
|
546
|
-
children: t
|
|
547
|
-
}), /* @__PURE__ */ v(r, {
|
|
548
|
-
variant: "body2",
|
|
549
|
-
color: "muted",
|
|
550
|
-
children: n
|
|
12
|
+
r.useEffect(() => {
|
|
13
|
+
if (p.includes(",")) {
|
|
14
|
+
let e = /* @__PURE__ */ new Set([...c, ...p.split(",").map((e) => e.trim())]);
|
|
15
|
+
l(Array.from(e)), m(""), u?.("");
|
|
16
|
+
}
|
|
17
|
+
}, [
|
|
18
|
+
p,
|
|
19
|
+
l,
|
|
20
|
+
u,
|
|
21
|
+
c
|
|
22
|
+
]);
|
|
23
|
+
let g = () => {
|
|
24
|
+
let e = p.trim();
|
|
25
|
+
if (e) {
|
|
26
|
+
let t = /* @__PURE__ */ new Set([...c, e]);
|
|
27
|
+
l(Array.from(t)), h("");
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ o("div", {
|
|
31
|
+
className: e("ttw:has-[:focus-visible]:ttw:outline-none ttw:has-[:focus-visible]:ttw:ring-2 ttw:has-[:focus-visible]:ttw:ring-neutral-950 ttw:has-[:focus-visible]:ttw:ring-offset-2 dark:ttw:has-[:focus-visible]:ttw:ring-neutral-300 ttw:min-h-10 ttw:flex ttw:w-full ttw:flex-wrap ttw:gap-2 ttw:rounded-md ttw:border ttw:border-neutral-200 ttw:bg-white ttw:px-3 ttw:py-2 ttw:text-sm ttw:ring-offset-white ttw:disabled:ttw:cursor-not-allowed ttw:disabled:ttw:opacity-50 dark:ttw:border-neutral-800 dark:ttw:bg-neutral-950 dark:ttw:ring-offset-neutral-950", s),
|
|
32
|
+
children: [c.map((e) => /* @__PURE__ */ o(n, {
|
|
33
|
+
variant: "secondary",
|
|
34
|
+
children: [e, /* @__PURE__ */ a(t, {
|
|
35
|
+
variant: "ghost",
|
|
36
|
+
size: "icon",
|
|
37
|
+
className: "ttw:ml-2 ttw:h-3 ttw:w-3",
|
|
38
|
+
onClick: () => {
|
|
39
|
+
l(c.filter((t) => t !== e));
|
|
40
|
+
},
|
|
41
|
+
children: /* @__PURE__ */ a(i, { className: "ttw:w-3" })
|
|
42
|
+
})]
|
|
43
|
+
}, e)), /* @__PURE__ */ a("input", {
|
|
44
|
+
className: "ttw:flex-1 ttw:outline-none ttw:placeholder:ttw:text-neutral-500 dark:ttw:placeholder:ttw:text-neutral-400",
|
|
45
|
+
value: p,
|
|
46
|
+
onChange: (e) => h(e.target.value),
|
|
47
|
+
onKeyDown: (e) => {
|
|
48
|
+
e.key === "Enter" || e.key === "," ? (e.preventDefault(), g()) : e.key === "Backspace" && p.length === 0 && c.length > 0 && (e.preventDefault(), l(c.slice(0, -1)));
|
|
49
|
+
},
|
|
50
|
+
...f,
|
|
51
|
+
onBlur: (e) => {
|
|
52
|
+
g(), f.onBlur?.(e);
|
|
53
|
+
},
|
|
54
|
+
ref: d
|
|
551
55
|
})]
|
|
552
|
-
})
|
|
553
|
-
}
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
s.displayName = "InputTags";
|
|
554
59
|
//#endregion
|
|
555
|
-
export {
|
|
60
|
+
export { s as InputTags };
|