@tesouro/embedded-components-react 0.5.80 → 0.5.83
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 +68 -68
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +33 -55
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +25 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +71 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +3 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +49 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +1 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +5 -21
- 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 +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +48 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +3 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +64 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +12 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +110 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +48 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +32 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +5 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +23 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +72 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +9 -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 +35 -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 +70 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +74 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +20 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +445 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +2 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +75 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +57 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +40 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +4 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +189 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +124 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +152 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +53 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +290 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +6 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +76 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +85 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +27 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +105 -0
- 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 +56 -1
- 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 +55 -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 +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +37 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +6 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +52 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +62 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +55 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +164 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +1 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +25 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +598 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +0 -598
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +168 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +10 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +73 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +21 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +70 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +25 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +181 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +1 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +64 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +31 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +120 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +62 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +6 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +423 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +1 -425
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +191 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +97 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +48 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +82 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +21 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +1 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +0 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +162 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +3 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +102 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +172 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +116 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +191 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +11 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +138 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +1 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +25 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +38 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +151 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +68 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +214 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +37 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +1 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +83 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +14 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +186 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +87 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +12 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +382 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +88 -324
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +192 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +30 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +83 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +132 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +37 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +59 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +139 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +549 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +15 -551
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +145 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +78 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +35 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +60 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +68 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +146 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +54 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +82 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +97 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +105 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +45 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +71 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +100 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +43 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +179 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +125 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +123 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +73 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +232 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +8 -248
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +396 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -396
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +144 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +112 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +39 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +25 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +22 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +72 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +66 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +17 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +178 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +119 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +30 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +115 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +19 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +77 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +50 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +33 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +89 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +48 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +135 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +103 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +50 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +786 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +87 -786
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +97 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +6 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +171 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +203 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +88 -208
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +17 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +88 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +24 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +4 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +24 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +11 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +181 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +189 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +113 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +64 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +138 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +28 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +87 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +3 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +67 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +32 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index624.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index625.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index626.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index627.js +97 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +37 -49
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1707 -1678
- 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/index628.js +0 -97
|
@@ -1,9 +1,106 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "./index109.js";
|
|
2
|
+
import { useDebounceCallback as r } from "./index217.js";
|
|
3
|
+
import { Table as i, TableBody as a, TableCell as o, TableHead as s, TableHeader as c, TableRow as l } from "./index253.js";
|
|
4
|
+
import { useGetMeasureUnits as u } from "./index461.js";
|
|
5
|
+
import { MeasureUnitsFormRow as d } from "./index485.js";
|
|
6
|
+
import { ConfirmDeleteMeasureUnitDialog as f } from "./index486.js";
|
|
7
|
+
import { TableActions as p } from "./index487.js";
|
|
8
|
+
import "./index488.js";
|
|
9
|
+
import { useDeleteMeasureUnit as m } from "./index490.js";
|
|
9
10
|
import "./index494.js";
|
|
11
|
+
import { useCallback as h, useState as g } from "react";
|
|
12
|
+
import { Loader2 as _, Search as v } from "lucide-react";
|
|
13
|
+
import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
14
|
+
import { useLingui as S } from "@lingui/react";
|
|
15
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js
|
|
16
|
+
var C = () => {
|
|
17
|
+
let { i18n: C } = S(), [w, T] = g(null), [E, D] = g(null), O = !!E, [k, A] = g(""), { data: j, isLoading: M } = u(), N = m(E?.name), P = r((e) => {
|
|
18
|
+
A(e);
|
|
19
|
+
}, 500), F = j?.data?.filter((e) => e.name.toLowerCase().includes(k.toLowerCase()) || e.description && e.description.toLowerCase().includes(k.toLowerCase())) || [], I = h((e) => {
|
|
20
|
+
D(e);
|
|
21
|
+
}, []), L = h(() => {
|
|
22
|
+
D(null);
|
|
23
|
+
}, []), R = h(() => {
|
|
24
|
+
E && N.mutate({ path: { unit_id: E.id } }, { onSuccess: () => L() });
|
|
25
|
+
}, [
|
|
26
|
+
N,
|
|
27
|
+
E,
|
|
28
|
+
L
|
|
29
|
+
]), z = N.isPending, B = () => {
|
|
30
|
+
T(null);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ x("div", {
|
|
33
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative",
|
|
34
|
+
children: [M ? /* @__PURE__ */ b("div", {
|
|
35
|
+
className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full",
|
|
36
|
+
children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
|
|
37
|
+
}) : /* @__PURE__ */ x(y, { children: [
|
|
38
|
+
z && /* @__PURE__ */ b("div", {
|
|
39
|
+
className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10",
|
|
40
|
+
children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(t, {
|
|
43
|
+
align: "inline-start",
|
|
44
|
+
children: /* @__PURE__ */ b(v, {})
|
|
45
|
+
}), /* @__PURE__ */ b(n, {
|
|
46
|
+
placeholder: C._("Search"),
|
|
47
|
+
onChange: (e) => P(e.target.value)
|
|
48
|
+
})] }),
|
|
49
|
+
/* @__PURE__ */ x(i, {
|
|
50
|
+
className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
|
|
51
|
+
children: [/* @__PURE__ */ b(c, { children: /* @__PURE__ */ x(l, {
|
|
52
|
+
className: "ttw:hover:bg-transparent ttw:border-border",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ b(s, {
|
|
55
|
+
className: "ttw:w-[35%]",
|
|
56
|
+
children: C._("Unit label")
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ b(s, {
|
|
59
|
+
className: "ttw:w-[55%]",
|
|
60
|
+
children: C._("Description (optional)")
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ b(s, { className: "ttw:w-[10%]" })
|
|
63
|
+
]
|
|
64
|
+
}) }), /* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(d, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(d, {
|
|
65
|
+
isEditMode: !0,
|
|
66
|
+
initialValues: e,
|
|
67
|
+
onCancel: B,
|
|
68
|
+
onEdit: () => T(null),
|
|
69
|
+
id: e.id
|
|
70
|
+
}, e.id) : /* @__PURE__ */ x(l, {
|
|
71
|
+
className: "ttw:border-border",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ b(o, {
|
|
74
|
+
className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
|
|
75
|
+
children: e.name
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ b(o, {
|
|
78
|
+
className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
|
|
79
|
+
children: e.description || "—"
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ b(o, {
|
|
82
|
+
className: "ttw:w-[10%]",
|
|
83
|
+
children: /* @__PURE__ */ b(p, {
|
|
84
|
+
permissions: {
|
|
85
|
+
isUpdateAllowed: !0,
|
|
86
|
+
isDeleteAllowed: !0
|
|
87
|
+
},
|
|
88
|
+
onEdit: () => T(e),
|
|
89
|
+
onDelete: () => I(e)
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
}, e.id))] })]
|
|
94
|
+
})
|
|
95
|
+
] }), /* @__PURE__ */ b(f, {
|
|
96
|
+
open: O,
|
|
97
|
+
id: E?.id,
|
|
98
|
+
name: E?.name || "",
|
|
99
|
+
isLoading: z,
|
|
100
|
+
onClose: L,
|
|
101
|
+
onDelete: R
|
|
102
|
+
})]
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { C as ManageMeasureUnitsForm };
|
|
@@ -1,106 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ConfirmDeleteMeasureUnitDialog as f } from "./index487.js";
|
|
7
|
-
import { TableActions as p } from "./index488.js";
|
|
8
|
-
import "./index489.js";
|
|
9
|
-
import { useDeleteMeasureUnit as m } from "./index491.js";
|
|
10
|
-
import "./index495.js";
|
|
11
|
-
import { useCallback as h, useState as g } from "react";
|
|
12
|
-
import { Loader2 as _, Search as v } from "lucide-react";
|
|
13
|
-
import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
14
|
-
import { useLingui as S } from "@lingui/react";
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index49.js";
|
|
3
|
+
import { ManageMeasureUnitsForm as s } from "./index495.js";
|
|
4
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
15
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js
|
|
16
|
-
var
|
|
17
|
-
let { i18n:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}), /* @__PURE__ */ b(n, {
|
|
46
|
-
placeholder: C._("Search"),
|
|
47
|
-
onChange: (e) => P(e.target.value)
|
|
48
|
-
})] }),
|
|
49
|
-
/* @__PURE__ */ x(i, {
|
|
50
|
-
className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
|
|
51
|
-
children: [/* @__PURE__ */ b(c, { children: /* @__PURE__ */ x(l, {
|
|
52
|
-
className: "ttw:hover:bg-transparent ttw:border-border",
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ b(s, {
|
|
55
|
-
className: "ttw:w-[35%]",
|
|
56
|
-
children: C._("Unit label")
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ b(s, {
|
|
59
|
-
className: "ttw:w-[55%]",
|
|
60
|
-
children: C._("Description (optional)")
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ b(s, { className: "ttw:w-[10%]" })
|
|
63
|
-
]
|
|
64
|
-
}) }), /* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(d, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(d, {
|
|
65
|
-
isEditMode: !0,
|
|
66
|
-
initialValues: e,
|
|
67
|
-
onCancel: B,
|
|
68
|
-
onEdit: () => T(null),
|
|
69
|
-
id: e.id
|
|
70
|
-
}, e.id) : /* @__PURE__ */ x(l, {
|
|
71
|
-
className: "ttw:border-border",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ b(o, {
|
|
74
|
-
className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
|
|
75
|
-
children: e.name
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ b(o, {
|
|
78
|
-
className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
|
|
79
|
-
children: e.description || "—"
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ b(o, {
|
|
82
|
-
className: "ttw:w-[10%]",
|
|
83
|
-
children: /* @__PURE__ */ b(p, {
|
|
84
|
-
permissions: {
|
|
85
|
-
isUpdateAllowed: !0,
|
|
86
|
-
isDeleteAllowed: !0
|
|
87
|
-
},
|
|
88
|
-
onEdit: () => T(e),
|
|
89
|
-
onDelete: () => I(e)
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
]
|
|
93
|
-
}, e.id))] })]
|
|
94
|
-
})
|
|
95
|
-
] }), /* @__PURE__ */ b(f, {
|
|
96
|
-
open: O,
|
|
97
|
-
id: E?.id,
|
|
98
|
-
name: E?.name || "",
|
|
99
|
-
isLoading: z,
|
|
100
|
-
onClose: L,
|
|
101
|
-
onDelete: R
|
|
102
|
-
})]
|
|
7
|
+
var d = ({ handleClose: d, open: f }) => {
|
|
8
|
+
let { i18n: p } = u();
|
|
9
|
+
return /* @__PURE__ */ c(t, {
|
|
10
|
+
open: f,
|
|
11
|
+
onOpenChange: d,
|
|
12
|
+
children: /* @__PURE__ */ l(n, {
|
|
13
|
+
side: "right",
|
|
14
|
+
className: "ttw:gap-0 ttw:p-0",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ l(a, {
|
|
17
|
+
className: "ttw:border-b ttw:border-border",
|
|
18
|
+
children: [/* @__PURE__ */ c(o, { children: p._("Manage measure units") }), /* @__PURE__ */ c(r, {
|
|
19
|
+
hidden: !0,
|
|
20
|
+
children: p._("Manage measure units")
|
|
21
|
+
})]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ c("div", {
|
|
24
|
+
className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4",
|
|
25
|
+
children: /* @__PURE__ */ c(s, {})
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ c(i, {
|
|
28
|
+
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
29
|
+
children: /* @__PURE__ */ c(e, {
|
|
30
|
+
onClick: d,
|
|
31
|
+
children: p._("Done")
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
})
|
|
103
36
|
});
|
|
104
37
|
};
|
|
105
38
|
//#endregion
|
|
106
|
-
export {
|
|
39
|
+
export { d as ManageMeasureUnits };
|
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Select as e, SelectContent as t, SelectItem as n, SelectTrigger as r, SelectValue as i } from "./index107.js";
|
|
2
|
+
import { ManageMeasureUnits as a } from "./index496.js";
|
|
3
|
+
import { useState as o } from "react";
|
|
4
|
+
import { Plus as s } from "lucide-react";
|
|
5
|
+
import { Fragment as c, jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useLingui as d } from "@lingui/react";
|
|
6
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js
|
|
7
|
-
var
|
|
8
|
-
let { i18n:
|
|
9
|
-
return /* @__PURE__ */ c(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
8
|
+
var f = "__none__", p = ({ value: p, availableMeasureUnits: m, error: h, fieldError: g, disabled: _ = !1, onChange: v }) => {
|
|
9
|
+
let { i18n: y } = d(), [b, x] = o(!1);
|
|
10
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ u(e, {
|
|
11
|
+
value: p || f,
|
|
12
|
+
onValueChange: (e) => {
|
|
13
|
+
if (e === "create") {
|
|
14
|
+
x(!0);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
v(e === f ? "" : e);
|
|
18
|
+
},
|
|
19
|
+
disabled: _,
|
|
20
|
+
children: [/* @__PURE__ */ l(r, {
|
|
21
|
+
"aria-invalid": h || !!g || void 0,
|
|
22
|
+
className: "ttw:w-22",
|
|
23
|
+
children: /* @__PURE__ */ l(i, {
|
|
24
|
+
className: "ttw:truncate",
|
|
25
|
+
placeholder: y._("Select")
|
|
26
|
+
})
|
|
27
|
+
}), /* @__PURE__ */ u(t, { children: [
|
|
28
|
+
/* @__PURE__ */ u(n, {
|
|
29
|
+
value: "create",
|
|
30
|
+
className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary",
|
|
31
|
+
children: [/* @__PURE__ */ l(s, { className: "ttw:text-primary" }), y._("Manage measure units")]
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ l(n, {
|
|
34
|
+
value: f,
|
|
35
|
+
children: y._("None")
|
|
36
|
+
}),
|
|
37
|
+
m?.map((e) => /* @__PURE__ */ l(n, {
|
|
38
|
+
value: e.id,
|
|
39
|
+
children: e.name
|
|
40
|
+
}, e.id))
|
|
41
|
+
] })]
|
|
42
|
+
}), b && /* @__PURE__ */ l(a, {
|
|
43
|
+
open: !0,
|
|
44
|
+
handleClose: () => x(!1)
|
|
45
|
+
})] });
|
|
37
46
|
};
|
|
38
47
|
//#endregion
|
|
39
|
-
export {
|
|
48
|
+
export { p as MeasureUnitField };
|
|
@@ -1,48 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { Checkbox as t } from "./index105.js";
|
|
3
|
+
import { ItemSelector as n } from "./index478.js";
|
|
4
|
+
import { PriceField as r } from "./index479.js";
|
|
5
|
+
import { QuantityField as i } from "./index480.js";
|
|
6
|
+
import { MeasureUnitField as a } from "./index497.js";
|
|
7
|
+
import { memo as o } from "react";
|
|
8
|
+
import { Trash2 as s } from "lucide-react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
7
10
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js
|
|
8
|
-
var
|
|
9
|
-
let
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
placeholder: y._("Select")
|
|
26
|
-
})
|
|
27
|
-
}), /* @__PURE__ */ u(t, { children: [
|
|
28
|
-
/* @__PURE__ */ u(n, {
|
|
29
|
-
value: "create",
|
|
30
|
-
className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary",
|
|
31
|
-
children: [/* @__PURE__ */ l(s, { className: "ttw:text-primary" }), y._("Manage measure units")]
|
|
11
|
+
var u = o(({ index: o, control: u, errors: d, defaultCurrency: f = "USD", measureUnitsData: p, container: m, onRequestLineItemValue: h, onLineItemValueChange: g, onUpdateItem: _, onRemoveItem: v, canRemove: y, autoFocusName: b = !1 }) => {
|
|
12
|
+
let x = !!d.line_items?.[o]?.product?.name, S = !!d.line_items?.[o]?.quantity, C = !!d.line_items?.[o]?.product?.price?.value, w = h("product.name"), T = !!(w && w.trim()), E = d.line_items?.[o]?.product?.measure_unit_id;
|
|
13
|
+
return /* @__PURE__ */ l("li", {
|
|
14
|
+
className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-9",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ c("div", {
|
|
17
|
+
className: "ttw:flex-1 ttw:min-w-30",
|
|
18
|
+
children: /* @__PURE__ */ c(n, {
|
|
19
|
+
onChange: (e, t) => _(o, e, t),
|
|
20
|
+
fieldName: h("product.name") || "",
|
|
21
|
+
index: o,
|
|
22
|
+
error: x,
|
|
23
|
+
autoFocus: b,
|
|
24
|
+
defaultCurrency: f,
|
|
25
|
+
measureUnits: p,
|
|
26
|
+
container: m
|
|
27
|
+
})
|
|
32
28
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(i, {
|
|
30
|
+
index: o,
|
|
31
|
+
control: u,
|
|
32
|
+
quantityError: S,
|
|
33
|
+
canRemove: y,
|
|
34
|
+
hasProduct: T,
|
|
35
|
+
onLineItemValueChange: g,
|
|
36
|
+
onRemoveItem: v
|
|
37
|
+
}) }),
|
|
38
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(a, {
|
|
39
|
+
value: h("product.measure_unit_id"),
|
|
40
|
+
onChange: (e) => {
|
|
41
|
+
g("product.measure_unit_id", e, { shouldValidate: !0 });
|
|
42
|
+
},
|
|
43
|
+
availableMeasureUnits: p?.data || [],
|
|
44
|
+
fieldError: E
|
|
45
|
+
}) }),
|
|
46
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(r, {
|
|
47
|
+
error: C,
|
|
48
|
+
currency: f,
|
|
49
|
+
value: h("product.price.value"),
|
|
50
|
+
onChange: (e) => {
|
|
51
|
+
g("product.price.value", e, { shouldValidate: !0 });
|
|
52
|
+
}
|
|
53
|
+
}) }),
|
|
54
|
+
/* @__PURE__ */ c("div", {
|
|
55
|
+
className: "ttw:w-12 ttw:min-w-12 ttw:flex ttw:items-center ttw:justify-center",
|
|
56
|
+
children: /* @__PURE__ */ c(t, {
|
|
57
|
+
checked: h("taxable") ?? !1,
|
|
58
|
+
onCheckedChange: (e) => {
|
|
59
|
+
g("taxable", e === !0);
|
|
60
|
+
}
|
|
61
|
+
})
|
|
36
62
|
}),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
63
|
+
y && /* @__PURE__ */ c(e, {
|
|
64
|
+
type: "button",
|
|
65
|
+
variant: "ghost",
|
|
66
|
+
size: "sm",
|
|
67
|
+
className: "ttw:w-10 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:border-l ttw:border-border ttw:pl-4 ttw:rounded-none ttw:has-[>svg]:pr-0",
|
|
68
|
+
onClick: () => v(o),
|
|
69
|
+
children: /* @__PURE__ */ c(s, {})
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
});
|
|
47
74
|
//#endregion
|
|
48
|
-
export {
|
|
75
|
+
export { u as InvoiceItemRow };
|
|
@@ -1,75 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { jsx as
|
|
1
|
+
import { useCurrencies as e } from "./index62.js";
|
|
2
|
+
import { cn as t } from "./index48.js";
|
|
3
|
+
import { InputGroup as n, InputGroupAddon as r, InputGroupInput as i } from "./index109.js";
|
|
4
|
+
import "./index221.js";
|
|
5
|
+
import { Field as a, FieldContent as o, FieldError as s, FieldLabel as c } from "./index87.js";
|
|
6
|
+
import { EMPTY_DISCOUNT as l } from "./index92.js";
|
|
7
|
+
import { formatMinorToMajorCurrency as u, getLocaleSeparators as d, parseMajorToMinorCurrency as f, sanitizeDecimalInput as p } from "./index99.js";
|
|
8
|
+
import { useEffect as m, useId as h, useMemo as g, useState as _ } from "react";
|
|
9
|
+
import { jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { useLingui as b } from "@lingui/react";
|
|
10
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js
|
|
11
|
-
var
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */ c
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
12
|
+
var x = ({ value: x, onChange: S, onBlur: C, currency: w, disabled: T = !1, errorMessage: E }) => {
|
|
13
|
+
let { i18n: D } = b(), { getSymbolFromCurrency: O } = e(), k = h(), A = x ?? l, j = g(() => new Intl.NumberFormat(D.locale, {
|
|
14
|
+
minimumFractionDigits: 2,
|
|
15
|
+
maximumFractionDigits: 2
|
|
16
|
+
}), [D.locale]), { decimal: M, group: N } = g(() => d(D.locale), [D.locale]), P = O(w) || w, F = (e) => A.type === "percentage" ? `${e}%` : `${P}${e}`, [I, L] = _(() => F(u(A.amount, j))), [R, z] = _(!1);
|
|
17
|
+
m(() => {
|
|
18
|
+
if (R) return;
|
|
19
|
+
let e = F(u(A.amount, j));
|
|
20
|
+
e !== I && L(e);
|
|
21
|
+
}, [
|
|
22
|
+
A.amount,
|
|
23
|
+
A.type,
|
|
24
|
+
R,
|
|
25
|
+
j,
|
|
26
|
+
I
|
|
27
|
+
]);
|
|
28
|
+
let B = (e) => f(e.trim(), M, N), V = (e) => p(e, {
|
|
29
|
+
decimalSeparator: M,
|
|
30
|
+
groupSeparator: N
|
|
31
|
+
}), H = (e) => S(e.type === l.type && e.amount === l.amount ? null : e), U = (e) => {
|
|
32
|
+
let t = V(e.target.value);
|
|
33
|
+
L(t), H({
|
|
34
|
+
...A,
|
|
35
|
+
amount: B(t)
|
|
36
|
+
});
|
|
37
|
+
}, W = (e) => {
|
|
38
|
+
z(!1);
|
|
39
|
+
let t = B(V(e.target.value));
|
|
40
|
+
L(F(u(t, j))), H({
|
|
41
|
+
...A,
|
|
42
|
+
amount: t
|
|
43
|
+
}), C?.();
|
|
44
|
+
}, G = [{
|
|
45
|
+
type: "amount",
|
|
46
|
+
label: P
|
|
47
|
+
}, {
|
|
48
|
+
type: "percentage",
|
|
49
|
+
label: "%"
|
|
50
|
+
}];
|
|
51
|
+
return /* @__PURE__ */ y(a, {
|
|
52
|
+
className: "ttw:flex-col",
|
|
53
|
+
children: [/* @__PURE__ */ y(o, {
|
|
54
|
+
className: "ttw:flex-row ttw:justify-end ttw:items-center",
|
|
55
|
+
children: [/* @__PURE__ */ v(c, {
|
|
56
|
+
htmlFor: k,
|
|
57
|
+
className: t(E && "ttw:text-destructive"),
|
|
58
|
+
children: D._("Discount")
|
|
59
|
+
}), /* @__PURE__ */ y(n, {
|
|
60
|
+
className: "ttw:w-40 ttw:overflow-hidden",
|
|
61
|
+
children: [/* @__PURE__ */ v(r, {
|
|
62
|
+
align: "inline-start",
|
|
63
|
+
className: "ttw:gap-0 ttw:self-stretch ttw:p-0 ttw:has-[>button]:ml-0",
|
|
64
|
+
children: G.map((e) => {
|
|
65
|
+
let n = A.type === e.type;
|
|
66
|
+
return /* @__PURE__ */ v("button", {
|
|
67
|
+
type: "button",
|
|
68
|
+
"aria-pressed": n,
|
|
69
|
+
"aria-label": e.label,
|
|
70
|
+
disabled: T,
|
|
71
|
+
className: t("ttw:h-full ttw:w-9 ttw:cursor-pointer ttw:border-r ttw:border-input ttw:text-sm ttw:transition-colors ttw:disabled:pointer-events-none ttw:disabled:opacity-50", n ? "ttw:bg-primary ttw:text-primary-foreground" : "ttw:text-muted-foreground ttw:hover:bg-muted ttw:hover:text-foreground"),
|
|
72
|
+
onClick: () => {
|
|
73
|
+
H({
|
|
74
|
+
...A,
|
|
75
|
+
type: e.type
|
|
76
|
+
}), C?.();
|
|
77
|
+
},
|
|
78
|
+
children: e.label
|
|
79
|
+
}, e.type);
|
|
80
|
+
})
|
|
81
|
+
}), /* @__PURE__ */ v(i, {
|
|
82
|
+
id: k,
|
|
83
|
+
type: "text",
|
|
84
|
+
inputMode: "decimal",
|
|
85
|
+
className: "ttw:text-right",
|
|
86
|
+
"aria-invalid": !!E || void 0,
|
|
87
|
+
disabled: T,
|
|
88
|
+
value: I,
|
|
89
|
+
onChange: U,
|
|
90
|
+
onFocus: (e) => {
|
|
91
|
+
z(!0), L(V(e.target.value));
|
|
92
|
+
},
|
|
93
|
+
onBlur: W
|
|
94
|
+
})]
|
|
95
|
+
})]
|
|
96
|
+
}), E && /* @__PURE__ */ v(s, {
|
|
97
|
+
className: "ttw:text-right",
|
|
98
|
+
children: E
|
|
99
|
+
})]
|
|
72
100
|
});
|
|
73
|
-
}
|
|
101
|
+
};
|
|
74
102
|
//#endregion
|
|
75
|
-
export {
|
|
103
|
+
export { x as InvoiceDiscountField };
|