@tesouro/embedded-components-react 0.5.159 → 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/bank-accounts-widget/account-details/feature/dist/index8.js +106 -105
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +19 -18
- 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,19 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCurrencies as e } from "./index62.js";
|
|
2
|
+
import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index109.js";
|
|
3
|
+
import "./index223.js";
|
|
4
|
+
import { formatMinorToMajorCurrency as i, parseMajorToMinorCurrency as a } from "./index99.js";
|
|
5
|
+
import { useEffect as o, useMemo as s, useState as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useLingui as d } from "@lingui/react";
|
|
3
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
var f = ({ value: f, error: p = !1, currency: m, disabled: h = !1, onChange: g, locale: _ }) => {
|
|
10
|
+
let { getSymbolFromCurrency: v } = e(), { i18n: y } = d(), b = _ ?? y.locale, x = s(() => new Intl.NumberFormat(b, {
|
|
11
|
+
minimumFractionDigits: 2,
|
|
12
|
+
maximumFractionDigits: 2
|
|
13
|
+
}), [b]), { decimalSeparator: S, groupSeparator: C } = s(() => {
|
|
14
|
+
let e = new Intl.NumberFormat(b).formatToParts(12345.67);
|
|
15
|
+
return {
|
|
16
|
+
decimalSeparator: e.find((e) => e.type === "decimal")?.value || ".",
|
|
17
|
+
groupSeparator: e.find((e) => e.type === "group")?.value || ""
|
|
18
|
+
};
|
|
19
|
+
}, [b]), [w, T] = c(i(f, x)), [E, D] = c(!1);
|
|
20
|
+
return o(() => {
|
|
21
|
+
if (!E) {
|
|
22
|
+
let e = i(f, x);
|
|
23
|
+
e !== w && T(e);
|
|
24
|
+
}
|
|
25
|
+
}, [
|
|
26
|
+
f,
|
|
27
|
+
E,
|
|
28
|
+
b,
|
|
29
|
+
x,
|
|
30
|
+
w
|
|
31
|
+
]), /* @__PURE__ */ u(t, {
|
|
32
|
+
className: "ttw:max-w-41 ttw:w-full ttw:min-w-29",
|
|
33
|
+
children: [/* @__PURE__ */ l(n, {
|
|
34
|
+
align: "inline-start",
|
|
35
|
+
children: v(m) || m
|
|
36
|
+
}), /* @__PURE__ */ l(r, {
|
|
37
|
+
type: "text",
|
|
38
|
+
inputMode: "decimal",
|
|
39
|
+
className: "ttw:text-right",
|
|
40
|
+
"aria-invalid": p || void 0,
|
|
41
|
+
disabled: h,
|
|
42
|
+
value: w,
|
|
43
|
+
onChange: (e) => {
|
|
44
|
+
let t = e.target.value;
|
|
45
|
+
T(t);
|
|
46
|
+
},
|
|
47
|
+
onFocus: () => {
|
|
48
|
+
D(!0);
|
|
49
|
+
},
|
|
50
|
+
onBlur: (e) => {
|
|
51
|
+
D(!1);
|
|
52
|
+
let t = e.target.value.trim();
|
|
53
|
+
if (t === "") {
|
|
54
|
+
T(i(0, x)), g(0);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
let n = a(t, S, C);
|
|
58
|
+
T(i(n, x)), g(n);
|
|
59
|
+
}
|
|
60
|
+
})]
|
|
16
61
|
});
|
|
17
|
-
}
|
|
62
|
+
};
|
|
18
63
|
//#endregion
|
|
19
|
-
export {
|
|
64
|
+
export { f as PriceField };
|
|
@@ -1,24 +1,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupButton as n, InputGroupInput as r } from "./index109.js";
|
|
2
|
+
import { useEffect as i, useState as a } from "react";
|
|
3
|
+
import { Minus as o, Plus as s } from "lucide-react";
|
|
4
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { Controller as u } from "react-hook-form";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
o?.(n);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
r.error(n);
|
|
7
|
+
var d = (e) => Math.round(e * 100) / 100, f = (e) => {
|
|
8
|
+
let t = e.replace(/[^0-9.]/g, ""), n = t.indexOf(".");
|
|
9
|
+
return n !== -1 && (t = t.slice(0, n + 1) + t.slice(n + 1).replace(/\./g, ""), t = t.slice(0, n + 3)), t;
|
|
10
|
+
}, p = ({ field: u, index: p, canRemove: m, hasProduct: h, hasQuantityError: g, onLineItemValueChange: _, onRemoveItem: v }) => {
|
|
11
|
+
let y = Math.max(0, Number(u.value) || 0), b = +!m, [x, S] = a(y === 0 ? "" : String(y)), [C, w] = a(!1);
|
|
12
|
+
i(() => {
|
|
13
|
+
if (!C) {
|
|
14
|
+
let e = y === 0 ? "" : String(y);
|
|
15
|
+
e !== x && S(e);
|
|
20
16
|
}
|
|
17
|
+
}, [
|
|
18
|
+
y,
|
|
19
|
+
C,
|
|
20
|
+
x
|
|
21
|
+
]);
|
|
22
|
+
let T = (e) => {
|
|
23
|
+
let t = d(e);
|
|
24
|
+
if (t <= 0 && m) {
|
|
25
|
+
v(p);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
_("quantity", Math.max(b, t), { shouldValidate: !0 });
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ l(e, {
|
|
31
|
+
className: "ttw:w-26 ttw:min-w-26 ttw:has-[>[data-align=inline-start]]:[&>input]:pl-0 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ c(t, {
|
|
34
|
+
align: "inline-start",
|
|
35
|
+
children: /* @__PURE__ */ c(n, {
|
|
36
|
+
type: "button",
|
|
37
|
+
size: "icon-xs",
|
|
38
|
+
disabled: !h || !m && y <= 1,
|
|
39
|
+
onClick: () => T(y - 1),
|
|
40
|
+
children: /* @__PURE__ */ c(o, {})
|
|
41
|
+
})
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ c(r, {
|
|
44
|
+
ref: u.ref,
|
|
45
|
+
name: u.name,
|
|
46
|
+
type: "text",
|
|
47
|
+
inputMode: "decimal",
|
|
48
|
+
"aria-invalid": g || void 0,
|
|
49
|
+
value: x,
|
|
50
|
+
className: "ttw:text-center ttw:px-0",
|
|
51
|
+
onFocus: () => w(!0),
|
|
52
|
+
onChange: (e) => {
|
|
53
|
+
let t = f(e.target.value);
|
|
54
|
+
S(t), _("quantity", t === "" || t === "." ? 0 : Number(t), { shouldValidate: !1 });
|
|
55
|
+
},
|
|
56
|
+
onBlur: (e) => {
|
|
57
|
+
w(!1);
|
|
58
|
+
let t = f(e.target.value), n = t === "" || t === "." ? 0 : d(Number(t));
|
|
59
|
+
n <= 0 ? m ? v(p) : (S("1"), _("quantity", 1, { shouldValidate: !0 })) : (S(String(n)), _("quantity", n, { shouldValidate: !0 })), u.onBlur();
|
|
60
|
+
}
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ c(t, {
|
|
63
|
+
align: "inline-end",
|
|
64
|
+
children: /* @__PURE__ */ c(n, {
|
|
65
|
+
type: "button",
|
|
66
|
+
size: "icon-xs",
|
|
67
|
+
disabled: !h,
|
|
68
|
+
onClick: () => T(y + 1),
|
|
69
|
+
children: /* @__PURE__ */ c(s, {})
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
]
|
|
21
73
|
});
|
|
22
|
-
}
|
|
74
|
+
}, m = ({ index: e, control: t, quantityError: n, canRemove: r, hasProduct: i, onLineItemValueChange: a, onRemoveItem: o }) => /* @__PURE__ */ c(u, {
|
|
75
|
+
name: `line_items.${e}.quantity`,
|
|
76
|
+
control: t,
|
|
77
|
+
render: ({ field: t }) => /* @__PURE__ */ c(p, {
|
|
78
|
+
field: t,
|
|
79
|
+
index: e,
|
|
80
|
+
canRemove: r,
|
|
81
|
+
hasProduct: i,
|
|
82
|
+
hasQuantityError: n,
|
|
83
|
+
onLineItemValueChange: a,
|
|
84
|
+
onRemoveItem: o
|
|
85
|
+
})
|
|
86
|
+
});
|
|
23
87
|
//#endregion
|
|
24
|
-
export {
|
|
88
|
+
export { m as QuantityField };
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { messageWithTruncatedName as n } from "./index471.js";
|
|
4
|
-
import { toast as r } from "react-hot-toast";
|
|
5
|
-
import { useLingui as i } from "@lingui/react";
|
|
1
|
+
import { CurrencyEnumSchema as e } from "./index93.js";
|
|
2
|
+
import { z as t } from "zod";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
r.error(n);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
};
|
|
4
|
+
var n = (n) => t.object({
|
|
5
|
+
name: t.string().trim().min(1, n._("Product name is required")).max(100, n._("Product name must be 100 characters or less")).meta({ title: n._("Product Name") }),
|
|
6
|
+
type: t.enum(["product", "service"], n._("Product type is required")).meta({ title: n._("Type") }),
|
|
7
|
+
pricePerUnit: t.number().min(0, n._("Price per unit must be 0 or greater")).meta({ title: n._("Price Per Unit") }),
|
|
8
|
+
currency: e.meta({ title: n._("Currency") }),
|
|
9
|
+
description: t.string().trim().max(255, n._("Description must be 255 characters or less")).optional().meta({ title: n._("Description") }),
|
|
10
|
+
measureUnitId: t.string().optional().meta({ title: n._("Unit") })
|
|
11
|
+
}), r = (e) => t.object({
|
|
12
|
+
name: t.string().trim().min(1, e._("Unit label is required")),
|
|
13
|
+
description: t.string().trim().optional()
|
|
14
|
+
});
|
|
23
15
|
//#endregion
|
|
24
|
-
export {
|
|
16
|
+
export { r as getMeasureUnitValidationSchema, n as getProductValidationSchema };
|
|
@@ -1,102 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { TableCell as n, TableRow as r } from "./index254.js";
|
|
4
|
-
import { getMeasureUnitValidationSchema as i } from "./index470.js";
|
|
5
|
-
import { useCreateMeasureUnit as a } from "./index472.js";
|
|
6
|
-
import { useUpdateMeasureUnit as o } from "./index473.js";
|
|
7
|
-
import { Check as s, X as c } from "lucide-react";
|
|
8
|
-
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { useLingui as d } from "@lingui/react";
|
|
10
|
-
import { Controller as f, useForm as p } from "react-hook-form";
|
|
11
|
-
import { zodResolver as m } from "@hookform/resolvers/zod";
|
|
1
|
+
import { Fragment as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
12
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
message: e
|
|
26
|
-
})), k = (e) => {
|
|
27
|
-
if (!_ || !g) {
|
|
28
|
-
console.error("handleEdit called without valid id or edit mode");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
O.mutate(e);
|
|
32
|
-
}, A = (e) => {
|
|
33
|
-
D.mutate(e);
|
|
34
|
-
}, j = D.isPending || O.isPending;
|
|
35
|
-
return /* @__PURE__ */ l(r, {
|
|
36
|
-
className: "ttw:border-border ttw:hover:bg-transparent",
|
|
37
|
-
children: /* @__PURE__ */ l(n, {
|
|
38
|
-
colSpan: 3,
|
|
39
|
-
className: "ttw:w-full ttw:whitespace-normal",
|
|
40
|
-
children: /* @__PURE__ */ u("div", {
|
|
41
|
-
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start",
|
|
42
|
-
children: [
|
|
43
|
-
/* @__PURE__ */ l(f, {
|
|
44
|
-
name: "name",
|
|
45
|
-
control: w,
|
|
46
|
-
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ u("div", {
|
|
47
|
-
className: "ttw:w-[35%]",
|
|
48
|
-
children: [/* @__PURE__ */ l(t, {
|
|
49
|
-
...e,
|
|
50
|
-
disabled: j,
|
|
51
|
-
"aria-invalid": !!n || void 0,
|
|
52
|
-
className: "ttw:h-8"
|
|
53
|
-
}), n && /* @__PURE__ */ l("p", {
|
|
54
|
-
className: "ttw:text-xs ttw:text-destructive ttw:mt-1",
|
|
55
|
-
children: n.message
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
}),
|
|
59
|
-
/* @__PURE__ */ l(f, {
|
|
60
|
-
name: "description",
|
|
61
|
-
control: w,
|
|
62
|
-
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ l("div", {
|
|
63
|
-
className: "ttw:w-[55%]",
|
|
64
|
-
children: /* @__PURE__ */ l(t, {
|
|
65
|
-
...e,
|
|
66
|
-
id: e.name,
|
|
67
|
-
disabled: j,
|
|
68
|
-
"aria-invalid": !!n || void 0,
|
|
69
|
-
className: "ttw:h-8"
|
|
70
|
-
})
|
|
71
|
-
})
|
|
72
|
-
}),
|
|
73
|
-
_ ? /* @__PURE__ */ u("div", {
|
|
74
|
-
className: "ttw:flex ttw:justify-center ttw:gap-1",
|
|
75
|
-
children: [/* @__PURE__ */ l(e, {
|
|
76
|
-
variant: "outline",
|
|
77
|
-
size: "icon",
|
|
78
|
-
className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
|
|
79
|
-
disabled: O.isPending,
|
|
80
|
-
onClick: C(k),
|
|
81
|
-
children: /* @__PURE__ */ l(s, { className: "ttw:size-4" })
|
|
82
|
-
}), /* @__PURE__ */ l(e, {
|
|
83
|
-
variant: "outline",
|
|
84
|
-
size: "icon",
|
|
85
|
-
className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
|
|
86
|
-
onClick: y,
|
|
87
|
-
children: /* @__PURE__ */ l(c, { className: "ttw:size-4" })
|
|
88
|
-
})]
|
|
89
|
-
}) : /* @__PURE__ */ l(e, {
|
|
90
|
-
variant: "outline",
|
|
91
|
-
size: "sm",
|
|
92
|
-
className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
|
|
93
|
-
onClick: C(A),
|
|
94
|
-
children: x._("Add")
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
})
|
|
98
|
-
})
|
|
4
|
+
function r(r, i) {
|
|
5
|
+
let a = r.split("\0");
|
|
6
|
+
return a.length === 1 ? /* @__PURE__ */ t("span", { children: r }) : /* @__PURE__ */ t("span", {
|
|
7
|
+
className: "ttw:flex ttw:min-w-0",
|
|
8
|
+
children: a.map((r, o) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
9
|
+
className: "ttw:whitespace-pre-wrap",
|
|
10
|
+
children: r
|
|
11
|
+
}), o < a.length - 1 && /* @__PURE__ */ t("span", {
|
|
12
|
+
className: "ttw:min-w-[4ch] ttw:shrink-[9999] ttw:truncate",
|
|
13
|
+
title: i,
|
|
14
|
+
children: i
|
|
15
|
+
})] }, o))
|
|
99
16
|
});
|
|
100
|
-
}
|
|
17
|
+
}
|
|
101
18
|
//#endregion
|
|
102
|
-
export {
|
|
19
|
+
export { r as messageWithTruncatedName };
|
|
@@ -1,46 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import { Table as r, TableBody as i, TableCell as a, TableRow as o } from "./index254.js";
|
|
7
|
-
import { useGetProducts as s } from "./index380.js";
|
|
8
|
-
import { Loader2 as c } from "lucide-react";
|
|
9
|
-
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
10
|
-
import { useLingui as f } from "@lingui/react";
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index27.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index474.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
11
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js
|
|
12
|
-
var
|
|
13
|
-
let {
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
/* @__PURE__ */ u(n, { children: y._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
|
|
27
|
-
/* @__PURE__ */ u(n, {
|
|
28
|
-
color: "muted",
|
|
29
|
-
children: y._("Previously issued invoices will not be impacted.")
|
|
30
|
-
}),
|
|
31
|
-
S && /* @__PURE__ */ u(c, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
|
|
32
|
-
!S && /* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(i, { children: x?.data.map((e) => /* @__PURE__ */ d(o, {
|
|
33
|
-
className: "ttw:border-border ttw:hover:bg-transparent",
|
|
34
|
-
children: [/* @__PURE__ */ u(a, {
|
|
35
|
-
className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium",
|
|
36
|
-
children: e.name
|
|
37
|
-
}), /* @__PURE__ */ u(a, {
|
|
38
|
-
className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium",
|
|
39
|
-
children: e.price && b(e.price?.value, e.price?.currency)
|
|
40
|
-
})]
|
|
41
|
-
}, e.id)) }) })
|
|
42
|
-
] })
|
|
7
|
+
var a = (a, o) => {
|
|
8
|
+
let { api: s, queryClient: c } = t(), { i18n: l } = i();
|
|
9
|
+
return s.finops.postMeasureUnits.useMutation({}, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await s.finops.getMeasureUnits.invalidateQueries(c), r.success(n(l._("Unit {name} was added to the list", { name: "\0" }), e.name)), a?.();
|
|
12
|
+
},
|
|
13
|
+
onError: async (t) => {
|
|
14
|
+
let n = e(l, t);
|
|
15
|
+
if (n.includes("already exists")) {
|
|
16
|
+
o?.(n);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
r.error(n);
|
|
20
|
+
}
|
|
43
21
|
});
|
|
44
22
|
};
|
|
45
23
|
//#endregion
|
|
46
|
-
export {
|
|
24
|
+
export { a as useCreateMeasureUnit };
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useLingui as
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index27.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index474.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js
|
|
7
|
-
var
|
|
8
|
-
let { i18n:
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}), p.isDeleteAllowed && /* @__PURE__ */ l(r, {
|
|
23
|
-
onClick: f,
|
|
24
|
-
variant: "destructive",
|
|
25
|
-
children: [/* @__PURE__ */ c(s, {}), m._("Delete")]
|
|
26
|
-
})]
|
|
27
|
-
})] }) : null;
|
|
7
|
+
var a = (a, o, s) => {
|
|
8
|
+
let { api: c, queryClient: l } = t(), { i18n: u } = i();
|
|
9
|
+
return c.finops.patchMeasureUnitsId.useMutation({ path: { unit_id: a } }, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await Promise.all([c.finops.getMeasureUnits.invalidateQueries(l), c.finops.getMeasureUnitsId.invalidateQueries({ parameters: { path: { unit_id: a } } }, l)]), r.success(n(u._("Unit {name} was updated", { name: "\0" }), e.name)), o?.();
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(u, t);
|
|
15
|
+
if (n.includes("already exists")) {
|
|
16
|
+
s?.(n);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
r.error(n);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
28
22
|
};
|
|
29
23
|
//#endregion
|
|
30
|
-
export {
|
|
24
|
+
export { a as useUpdateMeasureUnit };
|
|
@@ -1 +1,102 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { Input as t } from "./index88.js";
|
|
3
|
+
import { TableCell as n, TableRow as r } from "./index255.js";
|
|
4
|
+
import { getMeasureUnitValidationSchema as i } from "./index473.js";
|
|
5
|
+
import { useCreateMeasureUnit as a } from "./index475.js";
|
|
6
|
+
import { useUpdateMeasureUnit as o } from "./index476.js";
|
|
7
|
+
import { Check as s, X as c } from "lucide-react";
|
|
8
|
+
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { useLingui as d } from "@lingui/react";
|
|
10
|
+
import { Controller as f, useForm as p } from "react-hook-form";
|
|
11
|
+
import { zodResolver as m } from "@hookform/resolvers/zod";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js
|
|
13
|
+
var h = {
|
|
14
|
+
name: "",
|
|
15
|
+
description: ""
|
|
16
|
+
}, g = ({ id: g, isEditMode: _, initialValues: v = h, onCancel: y, onEdit: b }) => {
|
|
17
|
+
let { i18n: x } = d(), S = i(x), { handleSubmit: C, control: w, reset: T, setError: E } = p({
|
|
18
|
+
defaultValues: v,
|
|
19
|
+
resolver: m(S)
|
|
20
|
+
}), D = a(() => T(), (e) => E("name", {
|
|
21
|
+
type: "custom",
|
|
22
|
+
message: e
|
|
23
|
+
})), O = o(g ?? "", () => b?.(), (e) => E("name", {
|
|
24
|
+
type: "custom",
|
|
25
|
+
message: e
|
|
26
|
+
})), k = (e) => {
|
|
27
|
+
if (!_ || !g) {
|
|
28
|
+
console.error("handleEdit called without valid id or edit mode");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
O.mutate(e);
|
|
32
|
+
}, A = (e) => {
|
|
33
|
+
D.mutate(e);
|
|
34
|
+
}, j = D.isPending || O.isPending;
|
|
35
|
+
return /* @__PURE__ */ l(r, {
|
|
36
|
+
className: "ttw:border-border ttw:hover:bg-transparent",
|
|
37
|
+
children: /* @__PURE__ */ l(n, {
|
|
38
|
+
colSpan: 3,
|
|
39
|
+
className: "ttw:w-full ttw:whitespace-normal",
|
|
40
|
+
children: /* @__PURE__ */ u("div", {
|
|
41
|
+
className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ l(f, {
|
|
44
|
+
name: "name",
|
|
45
|
+
control: w,
|
|
46
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ u("div", {
|
|
47
|
+
className: "ttw:w-[35%]",
|
|
48
|
+
children: [/* @__PURE__ */ l(t, {
|
|
49
|
+
...e,
|
|
50
|
+
disabled: j,
|
|
51
|
+
"aria-invalid": !!n || void 0,
|
|
52
|
+
className: "ttw:h-8"
|
|
53
|
+
}), n && /* @__PURE__ */ l("p", {
|
|
54
|
+
className: "ttw:text-xs ttw:text-destructive ttw:mt-1",
|
|
55
|
+
children: n.message
|
|
56
|
+
})]
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ l(f, {
|
|
60
|
+
name: "description",
|
|
61
|
+
control: w,
|
|
62
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ l("div", {
|
|
63
|
+
className: "ttw:w-[55%]",
|
|
64
|
+
children: /* @__PURE__ */ l(t, {
|
|
65
|
+
...e,
|
|
66
|
+
id: e.name,
|
|
67
|
+
disabled: j,
|
|
68
|
+
"aria-invalid": !!n || void 0,
|
|
69
|
+
className: "ttw:h-8"
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
}),
|
|
73
|
+
_ ? /* @__PURE__ */ u("div", {
|
|
74
|
+
className: "ttw:flex ttw:justify-center ttw:gap-1",
|
|
75
|
+
children: [/* @__PURE__ */ l(e, {
|
|
76
|
+
variant: "outline",
|
|
77
|
+
size: "icon",
|
|
78
|
+
className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
|
|
79
|
+
disabled: O.isPending,
|
|
80
|
+
onClick: C(k),
|
|
81
|
+
children: /* @__PURE__ */ l(s, { className: "ttw:size-4" })
|
|
82
|
+
}), /* @__PURE__ */ l(e, {
|
|
83
|
+
variant: "outline",
|
|
84
|
+
size: "icon",
|
|
85
|
+
className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
|
|
86
|
+
onClick: y,
|
|
87
|
+
children: /* @__PURE__ */ l(c, { className: "ttw:size-4" })
|
|
88
|
+
})]
|
|
89
|
+
}) : /* @__PURE__ */ l(e, {
|
|
90
|
+
variant: "outline",
|
|
91
|
+
size: "sm",
|
|
92
|
+
className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
|
|
93
|
+
onClick: C(A),
|
|
94
|
+
children: x._("Add")
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
export { g as MeasureUnitsFormRow };
|
|
@@ -1,20 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { useCurrencies as e } from "./index62.js";
|
|
2
|
+
import "./index223.js";
|
|
3
|
+
import { ConfirmationModal as t } from "./index58.js";
|
|
4
|
+
import "./index59.js";
|
|
5
|
+
import { Typography as n } from "./index61.js";
|
|
6
|
+
import { Table as r, TableBody as i, TableCell as a, TableRow as o } from "./index255.js";
|
|
7
|
+
import { useGetProducts as s } from "./index381.js";
|
|
8
|
+
import { Loader2 as c } from "lucide-react";
|
|
9
|
+
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { useLingui as f } from "@lingui/react";
|
|
6
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js
|
|
7
|
-
var
|
|
8
|
-
let {
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
var p = ({ onClose: p, onDelete: m, name: h, isLoading: g, open: _, id: v }) => {
|
|
13
|
+
let { i18n: y } = f(), { formatCurrencyToDisplay: b } = e(), { data: x, isLoading: S } = s({ measure_unit_id: v ?? "" }, !!v), C = x?.data.length === 0;
|
|
14
|
+
return /* @__PURE__ */ u(t, {
|
|
15
|
+
open: _,
|
|
16
|
+
title: y._("Delete \"{name}\"?", { name: h }),
|
|
17
|
+
confirmLabel: y._("Delete"),
|
|
18
|
+
cancelLabel: y._("Cancel"),
|
|
19
|
+
onClose: p,
|
|
20
|
+
onConfirm: m,
|
|
21
|
+
isLoading: g || S,
|
|
22
|
+
children: C ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(n, { children: y._("There are no items created with this measure unit.") }), /* @__PURE__ */ u(n, {
|
|
23
|
+
color: "muted",
|
|
24
|
+
children: y._("Deleting it won't affect your items.")
|
|
25
|
+
})] }) : /* @__PURE__ */ d(l, { children: [
|
|
26
|
+
/* @__PURE__ */ u(n, { children: y._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
|
|
27
|
+
/* @__PURE__ */ u(n, {
|
|
28
|
+
color: "muted",
|
|
29
|
+
children: y._("Previously issued invoices will not be impacted.")
|
|
30
|
+
}),
|
|
31
|
+
S && /* @__PURE__ */ u(c, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
|
|
32
|
+
!S && /* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(i, { children: x?.data.map((e) => /* @__PURE__ */ d(o, {
|
|
33
|
+
className: "ttw:border-border ttw:hover:bg-transparent",
|
|
34
|
+
children: [/* @__PURE__ */ u(a, {
|
|
35
|
+
className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium",
|
|
36
|
+
children: e.name
|
|
37
|
+
}), /* @__PURE__ */ u(a, {
|
|
38
|
+
className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium",
|
|
39
|
+
children: e.price && b(e.price?.value, e.price?.currency)
|
|
40
|
+
})]
|
|
41
|
+
}, e.id)) }) })
|
|
42
|
+
] })
|
|
17
43
|
});
|
|
18
44
|
};
|
|
19
45
|
//#endregion
|
|
20
|
-
export {
|
|
46
|
+
export { p as ConfirmDeleteMeasureUnitDialog };
|