@tesouro/embedded-components-react 0.2.38 → 0.2.39
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/ReceivablesWidget.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +7 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +99 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +56 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +76 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +33 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +152 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +53 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +71 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +60 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +81 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +5 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +43 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +38 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +247 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +183 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +113 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +83 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +108 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +110 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +59 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +88 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +48 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +116 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +68 -248
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +185 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +115 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +53 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +18 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +26 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +12 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +12 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +21 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +4 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +8 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +46 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +379 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +20 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +17 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +88 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +18 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +18 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +10 -383
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +114 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +67 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +491 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +165 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +29 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +60 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +342 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +294 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +96 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +158 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +266 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +25 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +93 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +96 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +190 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +42 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +29 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +113 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +41 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +57 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +72 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +34 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +29 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +38 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +62 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +96 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +107 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +44 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +5 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +77 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +49 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +63 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +36 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +31 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +54 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +344 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +15 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +28 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +31 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +33 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +15 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +17 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +11 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +19 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +22 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +38 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +50 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +30 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +96 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +42 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +36 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +43 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +8 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +98 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +21 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +27 -295
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +51 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +38 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +17 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +59 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +124 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +15 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +39 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +41 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +27 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +76 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +18 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +169 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +125 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +152 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +59 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +65 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +53 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +57 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +23 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +61 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +38 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +71 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +75 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +127 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +66 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +22 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +64 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +43 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +187 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +105 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +79 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +284 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +47 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +15 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +225 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +149 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +19 -225
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +32 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +49 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +89 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +123 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +126 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +72 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +32 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +25 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +72 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +93 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +31 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +103 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +107 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +10 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +23 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +14 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +49 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +66 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +45 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +20 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +26 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +36 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +28 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +23 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +31 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +84 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +70 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +96 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +15 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +75 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +21 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +69 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +21 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +41 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +35 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +57 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +28 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +33 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +30 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +52 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +38 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +70 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +85 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +54 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +55 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +56 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +67 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +17 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +81 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/posthog.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,15 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { MeasureUnitsFormRow as f } from "./index441.js";
|
|
3
|
+
import { ConfirmDeleteMeasureUnitDialog as j } from "./index442.js";
|
|
4
|
+
import { TableActions as z } from "./index443.js";
|
|
5
|
+
import { Table as A, TableHeader as E, TableRow as h, TableHead as l, TableBody as G, TableCell as d } from "./index278.js";
|
|
6
|
+
import { useLingui as I } from "@lingui/react";
|
|
7
|
+
import { Loader2 as b, Search as S } from "lucide-react";
|
|
8
|
+
import { useState as m, useCallback as w } from "react";
|
|
9
|
+
import "./index59.js";
|
|
10
|
+
import "react-hot-toast";
|
|
11
|
+
import { useGetMeasureUnits as _ } from "./index204.js";
|
|
12
|
+
import { useDeleteMeasureUnit as y } from "./index444.js";
|
|
13
|
+
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index103.js";
|
|
14
|
+
import { useDebounceCallback as R } from "./index67.js";
|
|
15
|
+
const at = () => {
|
|
16
|
+
const {
|
|
17
|
+
i18n: i
|
|
18
|
+
} = I(), [g, s] = m(null), [a, c] = m(null), x = !!a, [u, N] = m(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: M
|
|
21
|
+
} = _(), n = y(a?.name), $ = R((t) => {
|
|
22
|
+
N(t);
|
|
23
|
+
}, 500), D = C?.data?.filter((t) => t.name.toLowerCase().includes(u.toLowerCase()) || t.description && t.description.toLowerCase().includes(u.toLowerCase())) || [], L = w((t) => {
|
|
24
|
+
c(t);
|
|
25
|
+
}, []), o = w(() => {
|
|
26
|
+
c(null);
|
|
27
|
+
}, []), U = w(() => {
|
|
28
|
+
a && n.mutate({
|
|
29
|
+
path: {
|
|
30
|
+
unit_id: a.id
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
onSuccess: () => o()
|
|
34
|
+
});
|
|
35
|
+
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
+
s(null);
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
+
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
+
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
+
/* @__PURE__ */ r(F, { children: [
|
|
42
|
+
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
+
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
+
] }) }),
|
|
51
|
+
/* @__PURE__ */ r(G, { children: [
|
|
52
|
+
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
+
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
+
isUpdateAllowed: !0,
|
|
58
|
+
isDeleteAllowed: !0
|
|
59
|
+
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
+
] }, t.id))
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
65
|
+
] });
|
|
12
66
|
};
|
|
13
67
|
export {
|
|
14
|
-
|
|
68
|
+
at as ManageMeasureUnitsForm
|
|
15
69
|
};
|
|
@@ -1,96 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { useLingui as k } from "@lingui/react";
|
|
12
|
-
import { format as E } from "date-fns";
|
|
13
|
-
import { SquarePen as z } from "lucide-react";
|
|
14
|
-
import { useState as q, useMemo as B } from "react";
|
|
15
|
-
import { useForm as T } from "react-hook-form";
|
|
16
|
-
const X = ({
|
|
17
|
-
recurrence: t,
|
|
18
|
-
handleTabChange: _,
|
|
19
|
-
openInvoiceDetails: l,
|
|
20
|
-
isCreatedFromRecurrence: i
|
|
21
|
-
}) => {
|
|
22
|
-
const {
|
|
23
|
-
i18n: e
|
|
24
|
-
} = k(), [m, s] = q(!1), u = new Date(t?.start_date).getDate(), h = B(() => t?.iterations?.filter((a) => a.status === "completed"), [t]), {
|
|
25
|
-
mutateAsync: w,
|
|
26
|
-
isPending: p
|
|
27
|
-
} = x(t?.id, t?.invoice_id), d = "edit-recurrence-form", f = T({
|
|
28
|
-
// See the identical cast in CreateReceivables.tsx — `zodResolver`'s
|
|
29
|
-
// inferred `Resolver` and react-hook-form's own `Resolver` type are
|
|
30
|
-
// structurally "unrelated" to `tsc --build` for this schema shape.
|
|
31
|
-
resolver: $(b(e)),
|
|
32
|
-
defaultValues: {
|
|
33
|
-
frequency: t?.frequency,
|
|
34
|
-
recurrence_max_occurrences: t?.max_occurrences ?? 1,
|
|
35
|
-
recurrence_start_date: new Date(t?.start_date),
|
|
36
|
-
recurrence_end_date: t?.end_date ? new Date(t?.end_date) : void 0,
|
|
37
|
-
recurrence_issue_mode: u === 1 ? "first_day" : "last_day",
|
|
38
|
-
recurrence_subject_text: t?.subject_text ?? e._("Recurrent invoice"),
|
|
39
|
-
recurrence_body_text: t?.body_text ?? e._("This invoice was generated from a recurrence. Please find the details of the recurrence in the invoice details section.")
|
|
40
|
-
}
|
|
41
|
-
}), v = async (a) => {
|
|
42
|
-
await w({
|
|
43
|
-
end_date: a.recurrence_end_date ? E(new Date(a.recurrence_end_date), "yyyy-MM-dd") : void 0,
|
|
44
|
-
subject_text: a.recurrence_subject_text || void 0,
|
|
45
|
-
body_text: a.recurrence_body_text || void 0
|
|
46
|
-
}), s(!1);
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ n(g, { children: [
|
|
49
|
-
m && /* @__PURE__ */ r(C, { open: m, onOpenChange: s, children: /* @__PURE__ */ r(N, { ...f, children: /* @__PURE__ */ r("form", { id: d, name: d, onSubmit: f.handleSubmit(v), children: /* @__PURE__ */ n(j, { className: "ttw:gap-0", showCloseButton: !1, children: [
|
|
50
|
-
/* @__PURE__ */ n(D, { className: "ttw:border-b ttw:border-border", children: [
|
|
51
|
-
/* @__PURE__ */ r(R, { children: e._("Edit recurrence settings") }),
|
|
52
|
-
/* @__PURE__ */ r(F, { hidden: !0, children: e._("Edit the settings for this recurring invoice") })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ n("div", { className: "ttw:p-8 ttw:flex ttw:flex-col ttw:gap-10", children: [
|
|
55
|
-
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-foreground", children: e._("You can set a different period length and the date of issuance. The starting date cannot be updated.") }),
|
|
56
|
-
/* @__PURE__ */ r(S, { isUpdate: !0 })
|
|
57
|
-
] }),
|
|
58
|
-
/* @__PURE__ */ n(I, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: [
|
|
59
|
-
/* @__PURE__ */ r(o, { variant: "outline", size: "sm", onClick: () => s(!1), children: e._("Cancel") }),
|
|
60
|
-
/* @__PURE__ */ r(o, { size: "sm", type: "submit", form: d, disabled: p, children: e._("Save") })
|
|
61
|
-
] })
|
|
62
|
-
] }) }) }) }),
|
|
63
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
64
|
-
i ? /* @__PURE__ */ n("div", { className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4", children: [
|
|
65
|
-
/* @__PURE__ */ r("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: e._("Created from recurrence") }),
|
|
66
|
-
/* @__PURE__ */ r(y, { status: t?.status })
|
|
67
|
-
] }) : /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
68
|
-
/* @__PURE__ */ r("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: e._("Recurrence") }),
|
|
69
|
-
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-muted-foreground", children: e._("All future invoices will be issued based on this invoice") })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ n("div", { className: "ttw:grid ttw:grid-cols-2 ttw:gap-4", children: [
|
|
72
|
-
/* @__PURE__ */ r(c, { label: e._("Start"), value: t?.start_date ? e.date(t?.start_date, {
|
|
73
|
-
month: "long",
|
|
74
|
-
year: "numeric"
|
|
75
|
-
}) : "-" }),
|
|
76
|
-
/* @__PURE__ */ r(c, { label: e._("End"), value: t?.end_date ? e.date(t?.end_date, {
|
|
77
|
-
month: "long",
|
|
78
|
-
year: "numeric"
|
|
79
|
-
}) : "-" }),
|
|
80
|
-
/* @__PURE__ */ r(c, { label: e._("Frequency"), value: u === 1 ? e._("Every first day of month") : e._("Every last day of month") }),
|
|
81
|
-
/* @__PURE__ */ r(c, { label: e._("Issued documents"), value: `${h.length} / ${t?.iterations.length} ${e._("issued")}`, onClick: () => {
|
|
82
|
-
i && l?.(t?.invoice_id), _("scheduled-invoices");
|
|
83
|
-
} })
|
|
84
|
-
] }),
|
|
85
|
-
i && /* @__PURE__ */ r(o, { variant: "outline", size: "sm", className: "ttw:w-fit", onClick: () => l?.(t?.invoice_id), children: e._("View recurrence") }),
|
|
86
|
-
!i && t?.status !== "canceled" && /* @__PURE__ */ n(o, { variant: "outline", size: "sm", className: "ttw:w-fit", onClick: () => s(!0), children: [
|
|
87
|
-
/* @__PURE__ */ r(z, {}),
|
|
88
|
-
" ",
|
|
89
|
-
e._("Edit settings")
|
|
90
|
-
] })
|
|
91
|
-
] })
|
|
92
|
-
] });
|
|
93
|
-
};
|
|
1
|
+
const e = (a) => ({
|
|
2
|
+
bank_name: a?.bank_name || void 0,
|
|
3
|
+
display_name: a?.display_name || void 0,
|
|
4
|
+
account_holder_name: a?.account_holder_name || void 0,
|
|
5
|
+
account_number: a?.account_number || void 0,
|
|
6
|
+
routing_number: a?.routing_number || void 0
|
|
7
|
+
}), o = (a) => ({
|
|
8
|
+
display_name: a?.display_name || void 0,
|
|
9
|
+
account_holder_name: a?.account_holder_name || void 0
|
|
10
|
+
});
|
|
94
11
|
export {
|
|
95
|
-
|
|
12
|
+
e as prepareBankAccountCreatePayload,
|
|
13
|
+
o as prepareBankAccountUpdatePayload
|
|
96
14
|
};
|
|
@@ -1,130 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { useLingui as f } from "@lingui/react";
|
|
6
|
-
import { Calendar as N, Bell as R } from "lucide-react";
|
|
7
|
-
import { twMerge as j } from "tailwind-merge";
|
|
8
|
-
import "react-hot-toast";
|
|
9
|
-
import "./index59.js";
|
|
10
|
-
import { useState as I } from "react";
|
|
11
|
-
import "date-fns";
|
|
12
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
13
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
14
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
15
|
-
import "@tanstack/react-query";
|
|
16
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
17
|
-
import "clsx";
|
|
18
|
-
import "@radix-ui/react-dropdown-menu";
|
|
19
|
-
import { useGetPaymentReminderById as C } from "./index413.js";
|
|
20
|
-
import { useGetOverdueReminderById as D } from "./index416.js";
|
|
21
|
-
import "./index94.js";
|
|
22
|
-
import "react-dom";
|
|
23
|
-
import "@mui/x-data-grid";
|
|
24
|
-
import "react-hook-form";
|
|
25
|
-
import { PreviewEmail as T } from "./index360.js";
|
|
26
|
-
import { Dialog as B, DialogContent as L, DialogDescription as $ } from "./index200.js";
|
|
27
|
-
import { getDefaultContact as k } from "./index358.js";
|
|
28
|
-
import { useCounterpartById as O } from "./index72.js";
|
|
29
|
-
import { useCounterpartContactList as S } from "./index76.js";
|
|
30
|
-
const p = ({
|
|
31
|
-
term: a,
|
|
32
|
-
isLastTerm: o,
|
|
33
|
-
invoiceId: c
|
|
34
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as u } from "./index59.js";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { toast as o } from "react-hot-toast";
|
|
4
|
+
const p = (r, s) => {
|
|
35
5
|
const {
|
|
36
|
-
i18n:
|
|
37
|
-
} =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
paymentReminderId: a,
|
|
54
|
-
overdueReminderId: o,
|
|
55
|
-
invoiceId: c,
|
|
56
|
-
counterpartId: d
|
|
57
|
-
}) => {
|
|
58
|
-
const {
|
|
59
|
-
i18n: i
|
|
60
|
-
} = f(), {
|
|
61
|
-
data: w
|
|
62
|
-
} = S(d), {
|
|
63
|
-
data: u
|
|
64
|
-
} = O(d), {
|
|
65
|
-
data: t
|
|
66
|
-
} = C(a), {
|
|
67
|
-
data: y
|
|
68
|
-
} = D(o), _ = k(w, u), s = [...t?.term_1_reminder ? [{
|
|
69
|
-
body: t?.term_1_reminder?.body,
|
|
70
|
-
subject: t?.term_1_reminder?.subject,
|
|
71
|
-
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
72
|
-
paymentReminder: t?.term_1_reminder.days_before,
|
|
73
|
-
paymentReminder1: t?.term_1_reminder?.days_before === 1 ? "day" : "days"
|
|
74
|
-
}),
|
|
75
|
-
id: "payment-1"
|
|
76
|
-
}] : [], ...t?.term_2_reminder ? [{
|
|
77
|
-
body: t?.term_2_reminder?.body,
|
|
78
|
-
subject: t?.term_2_reminder?.subject,
|
|
79
|
-
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
80
|
-
paymentReminder: t?.term_2_reminder.days_before,
|
|
81
|
-
paymentReminder1: t?.term_2_reminder?.days_before === 1 ? "day" : "days"
|
|
82
|
-
}),
|
|
83
|
-
id: "payment-2"
|
|
84
|
-
}] : [], ...t?.term_final_reminder ? [{
|
|
85
|
-
body: t?.term_final_reminder?.body,
|
|
86
|
-
subject: t?.term_final_reminder?.subject,
|
|
87
|
-
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
88
|
-
paymentReminder: t?.term_final_reminder.days_before,
|
|
89
|
-
paymentReminder1: t?.term_final_reminder?.days_before === 1 ? "day" : "days"
|
|
90
|
-
}),
|
|
91
|
-
id: "payment-3"
|
|
92
|
-
}] : []], m = y?.terms?.map((n, l) => ({
|
|
93
|
-
body: n?.body,
|
|
94
|
-
subject: n?.subject,
|
|
95
|
-
reminderTerm: i._("{termDays_after} {term} after", {
|
|
96
|
-
termDays_after: n.days_after,
|
|
97
|
-
term: n?.days_after === 1 ? "day" : "days"
|
|
98
|
-
}),
|
|
99
|
-
id: `overdue-${l + 1}`
|
|
100
|
-
})) ?? [];
|
|
101
|
-
return /* @__PURE__ */ r(h, { children: [
|
|
102
|
-
/* @__PURE__ */ e(g, { className: "ttw:hover:no-underline ttw:group", children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
103
|
-
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: i._("Reminder emails") }),
|
|
104
|
-
s?.length + m?.length > 0 && /* @__PURE__ */ e(b, { variant: "secondary", className: "ttw:h-5 ttw:min-w-5 ttw:rounded-full ttw:px-1 ttw:tabular-nums", children: s?.length + m?.length })
|
|
105
|
-
] }) }),
|
|
106
|
-
/* @__PURE__ */ r(x, { className: "ttw:flex ttw:gap-6", children: [
|
|
107
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5 ttw:flex-1", children: [
|
|
108
|
-
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: i._("Recipients") }),
|
|
109
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: _?.email ?? "-" })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:flex-1", children: [
|
|
112
|
-
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: i._("Scheduled reminders") }),
|
|
113
|
-
/* @__PURE__ */ r("ul", { children: [
|
|
114
|
-
s?.length > 0 && s.map((n, l) => /* @__PURE__ */ e(p, { term: n, isLastTerm: m.length > 0 ? !1 : l === s.length - 1, invoiceId: c }, n.id)),
|
|
115
|
-
m.length > 0 && /* @__PURE__ */ e("li", { className: "ttw:flex ttw:gap-1 ttw:items-center ttw:justify-between", children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
116
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:justify-end ttw:items-center ttw:gap-1 ttw:pt-2", children: [
|
|
117
|
-
/* @__PURE__ */ e(N, { className: "ttw:size-4 ttw:text-neutral" }),
|
|
118
|
-
/* @__PURE__ */ e("div", { className: "ttw:w-px ttw:h-1.5 ttw:bg-neutral" })
|
|
119
|
-
] }),
|
|
120
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-neutral ttw:text-sm ttw:font-normal ttw:leading-5", children: i._("Due date") })
|
|
121
|
-
] }) }),
|
|
122
|
-
m?.length > 0 && m.map((n, l) => /* @__PURE__ */ e(p, { term: n, isLastTerm: l === m.length - 1, invoiceId: c }, n.id))
|
|
123
|
-
] })
|
|
124
|
-
] })
|
|
125
|
-
] })
|
|
126
|
-
] });
|
|
6
|
+
i18n: e
|
|
7
|
+
} = n(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: i
|
|
10
|
+
} = u();
|
|
11
|
+
return t.finops.deleteProductsId.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
product_id: r
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await t.finops.getProducts.invalidateQueries(i), o.success(e._("Product was deleted.")), s?.();
|
|
18
|
+
},
|
|
19
|
+
onError: () => {
|
|
20
|
+
o.error(e._("Failed to delete product."));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
127
23
|
};
|
|
128
24
|
export {
|
|
129
|
-
|
|
25
|
+
p as useDeleteProduct
|
|
130
26
|
};
|
|
@@ -1,18 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import { useMoniteContext as s } from "./index59.js";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { toast as r } from "react-hot-toast";
|
|
4
|
+
const c = (i) => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: e
|
|
7
|
+
} = n(), {
|
|
8
|
+
api: a,
|
|
9
|
+
queryClient: o
|
|
10
|
+
} = s();
|
|
11
|
+
return a.finops.patchProductsId.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
product_id: i
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async (t) => {
|
|
17
|
+
await a.finops.getProducts.invalidateQueries(o), await a.finops.getProductsId.invalidateQueries({
|
|
18
|
+
parameters: {
|
|
19
|
+
path: {
|
|
20
|
+
product_id: t.id
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, o), r.success(t.type === "product" ? e._("Product {name} was updated.", {
|
|
24
|
+
name: t.name
|
|
25
|
+
}) : e._("Service {name} was updated.", {
|
|
26
|
+
name: t.name
|
|
27
|
+
}));
|
|
28
|
+
},
|
|
29
|
+
onError: () => {
|
|
30
|
+
r.error(e._("Failed to update"));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
15
34
|
export {
|
|
16
|
-
|
|
17
|
-
n as CardContent
|
|
35
|
+
c as useUpdateProduct
|
|
18
36
|
};
|
|
@@ -1,41 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
37
|
-
|
|
1
|
+
import { jsx as a, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as o, useCallback as x } from "react";
|
|
3
|
+
import { getLineItemErrorMessage as b } from "./index373.js";
|
|
4
|
+
import { useLingui as E } from "@lingui/react";
|
|
5
|
+
import { Collapse as _, Alert as j, List as v, ListItem as L, ListItemText as A } from "@mui/material";
|
|
6
|
+
const q = ({
|
|
7
|
+
generalError: e,
|
|
8
|
+
fieldErrors: n
|
|
9
|
+
}) => {
|
|
10
|
+
const t = o(() => {
|
|
11
|
+
for (const r of Object.values(n))
|
|
12
|
+
if (r) return !0;
|
|
13
|
+
return !1;
|
|
14
|
+
}, [n]);
|
|
15
|
+
return e || t ? /* @__PURE__ */ a(_, { in: !0, sx: {
|
|
16
|
+
":not(.MuiCollapse-hidden)": {
|
|
17
|
+
marginBottom: 1
|
|
18
|
+
}
|
|
19
|
+
}, children: /* @__PURE__ */ g(j, { severity: "error", sx: {
|
|
20
|
+
"& .MuiAlert-icon": {
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
}
|
|
23
|
+
}, children: [
|
|
24
|
+
e && /* @__PURE__ */ a("div", { children: e }),
|
|
25
|
+
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
+
mt: e ? 1 : 0
|
|
27
|
+
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
+
sx: {
|
|
29
|
+
color: "inherit"
|
|
30
|
+
}
|
|
31
|
+
} }) }, r) : null) })
|
|
32
|
+
] }) }) : null;
|
|
33
|
+
}, C = (e) => {
|
|
34
|
+
const {
|
|
35
|
+
i18n: n
|
|
36
|
+
} = E(), t = o(() => Array.isArray(e) ? e : e ? [e] : [], [e]), r = x((i) => {
|
|
37
|
+
for (let u = 0; u < t.length; u++) {
|
|
38
|
+
const f = t[u];
|
|
39
|
+
if (typeof f == "object") {
|
|
40
|
+
const h = b(f, i);
|
|
41
|
+
if (h)
|
|
42
|
+
return h;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}, [t]), s = o(() => r("product.name") ?? r("name"), [r]), l = o(() => r("quantity"), [r]), m = o(() => r("price") ?? r("product.price.value") ?? r("product.price.currency"), [r]), c = o(() => r("tax_rate_value"), [r]), p = o(() => r("product.measure_unit_id") ?? r("product.measure_unit_name") ?? r("measure_unit"), [r]), d = o(() => r("product.type"), [r]), y = o(() => t.length === 0 || (s || l || m || c || p || d) ? void 0 : t.some((i) => {
|
|
47
|
+
if (!i || typeof i != "object") return !1;
|
|
48
|
+
const u = Object.keys(i);
|
|
49
|
+
return u.length > 0 && u.some((f) => i[f] != null);
|
|
50
|
+
}) ? n._("Please check the form for errors") : void 0, [t, s, l, m, c, p, d, n]);
|
|
51
|
+
return {
|
|
52
|
+
generalError: y,
|
|
53
|
+
fieldErrors: {
|
|
54
|
+
name: s,
|
|
55
|
+
quantity: l,
|
|
56
|
+
price: m,
|
|
57
|
+
tax: c,
|
|
58
|
+
measureUnit: p,
|
|
59
|
+
productType: d
|
|
60
|
+
},
|
|
61
|
+
hasErrors: !!(y || s || l || m || c || p || d)
|
|
62
|
+
};
|
|
38
63
|
};
|
|
39
64
|
export {
|
|
40
|
-
|
|
65
|
+
q as FormErrorDisplay,
|
|
66
|
+
C as useFormErrors
|
|
41
67
|
};
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
send_failed: "ttw:border-red-100 ttw:bg-red-700",
|
|
24
|
-
completed: "ttw:border-green-100 ttw:bg-green-700"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}), z = ({
|
|
28
|
-
status: t,
|
|
29
|
-
className: o,
|
|
30
|
-
showBadgeBackground: e = !0,
|
|
31
|
-
dotSize: d,
|
|
32
|
-
ref: a
|
|
1
|
+
import { jsxs as _, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { memo as b } from "react";
|
|
3
|
+
import { Button as I } from "./index86.js";
|
|
4
|
+
import { Checkbox as y } from "./index384.js";
|
|
5
|
+
import { Trash2 as R } from "lucide-react";
|
|
6
|
+
import { ItemSelector as U } from "./index371.js";
|
|
7
|
+
import { PriceField as N } from "./index454.js";
|
|
8
|
+
import { QuantityField as V } from "./index455.js";
|
|
9
|
+
import { MeasureUnitField as j } from "./index456.js";
|
|
10
|
+
const k = ({
|
|
11
|
+
index: t,
|
|
12
|
+
control: l,
|
|
13
|
+
errors: a,
|
|
14
|
+
defaultCurrency: i = "USD",
|
|
15
|
+
measureUnitsData: m,
|
|
16
|
+
container: c,
|
|
17
|
+
onRequestLineItemValue: n,
|
|
18
|
+
onLineItemValueChange: o,
|
|
19
|
+
onRequestOpenCreateProductDialog: p,
|
|
20
|
+
onUpdateItem: h,
|
|
21
|
+
onRemoveItem: s,
|
|
22
|
+
canRemove: u
|
|
33
23
|
}) => {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
24
|
+
const w = !!a.line_items?.[t]?.product?.name, v = !!a.line_items?.[t]?.quantity, f = !!a.line_items?.[t]?.product?.price?.value, d = n("product.name"), x = !!(d && d.trim()), C = a.line_items?.[t]?.product?.measure_unit_id;
|
|
25
|
+
return /* @__PURE__ */ _("li", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-9", children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex-1 ttw:min-w-30", children: /* @__PURE__ */ e(U, { onCreateItem: p, onChange: (r, g) => h(t, r, g), fieldName: n("product.name") || "", index: t, error: w, defaultCurrency: i, measureUnits: m, container: c }) }),
|
|
27
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(V, { index: t, control: l, quantityError: v, canRemove: u, hasProduct: x, onLineItemValueChange: o, onRemoveItem: s }) }),
|
|
28
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(j, { value: n("product.measure_unit_id"), onChange: (r) => {
|
|
29
|
+
o("product.measure_unit_id", r, {
|
|
30
|
+
shouldValidate: !0
|
|
31
|
+
});
|
|
32
|
+
}, availableMeasureUnits: m?.data || [], fieldError: C }) }),
|
|
33
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(N, { error: f, currency: i, value: n("product.price.value"), onChange: (r) => {
|
|
34
|
+
o("product.price.value", r, {
|
|
35
|
+
shouldValidate: !0
|
|
36
|
+
});
|
|
37
|
+
} }) }),
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "ttw:w-12 ttw:min-w-12 ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ e(y, { checked: n("taxable") ?? !1, onCheckedChange: (r) => {
|
|
39
|
+
o("taxable", r === !0);
|
|
40
|
+
} }) }),
|
|
41
|
+
u && /* @__PURE__ */ e(I, { type: "button", variant: "ghost", size: "sm", 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", onClick: () => s(t), children: /* @__PURE__ */ e(R, {}) })
|
|
42
|
+
] });
|
|
43
|
+
}, S = b(k);
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
S as InvoiceItemRow
|
|
45
46
|
};
|