@tesouro/embedded-components-react 0.2.86 → 0.2.87
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/index.d.ts +4 -0
- package/dist/lib/BillPayWidget.d.ts +4 -0
- package/dist/lib/ReceivablesWidget.js +22 -22
- package/dist/lib/monite-sdk.d.ts +19 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.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/index117.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +80 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +107 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +13 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +9 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +21 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +108 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +69 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +94 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +57 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +45 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +75 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +54 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +196 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +29 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +114 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +70 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +29 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +109 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +131 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +25 -390
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +183 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +13 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +118 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +4 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +88 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +6 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +43 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +48 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +394 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +99 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +25 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +7 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +214 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +18 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +32 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +42 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +50 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +96 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +111 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +79 -482
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +48 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +63 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +488 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +168 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +149 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +9 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +59 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +113 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +54 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +64 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +22 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +56 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +29 -17
- 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 +55 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +16 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +346 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +301 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +98 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +158 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +262 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +25 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +18 -96
- 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 +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +34 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +92 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +96 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +191 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +40 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +25 -84
- 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 +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +72 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +37 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +14 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +69 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +36 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +34 -162
- 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 +54 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +345 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +13 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +13 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +18 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +32 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +26 -25
- 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 +36 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +36 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +15 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +249 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +180 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +11 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +17 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +23 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +37 -21
- 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 +55 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +52 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +94 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +42 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +23 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +187 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +105 -26
- 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 +80 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +282 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +49 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +15 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +81 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +222 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +89 -278
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +16 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +76 -15
- 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 +17 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +46 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +47 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +158 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +28 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +78 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +26 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +127 -134
- 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 +18 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +169 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +125 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +152 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +59 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +65 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +53 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +8 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +61 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +21 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +63 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +41 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +32 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +33 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +24 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +117 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +36 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +70 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +15 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +65 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +15 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +19 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +29 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +44 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +7 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +27 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +7 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +67 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +21 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +69 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +152 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +51 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +4 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +127 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +12 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +48 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +101 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +19 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +42 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +74 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +70 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +34 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +83 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +23 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +103 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +80 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +9 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +10 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +23 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +38 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +29 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +80 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +44 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +73 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +51 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +49 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +53 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +68 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +96 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +15 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +75 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +59 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +29 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +41 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +33 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +22 -22
- 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 +22 -22
- package/package.json +1 -1
|
@@ -1,82 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 "./index84.js";
|
|
4
|
+
import { Checkbox as y } from "./index359.js";
|
|
5
|
+
import { Trash2 as R } from "lucide-react";
|
|
6
|
+
import { ItemSelector as U } from "./index318.js";
|
|
7
|
+
import { PriceField as N } from "./index422.js";
|
|
8
|
+
import { QuantityField as V } from "./index423.js";
|
|
9
|
+
import { MeasureUnitField as j } from "./index424.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
|
|
13
23
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = T(), {
|
|
22
|
-
mutateAsync: f
|
|
23
|
-
} = w(), r = a?.payables_ocr_auto_tagging || [], g = i.finops.postTags.useMutation({}, {
|
|
24
|
-
onSuccess: () => i.finops.getTags.invalidateQueries(o),
|
|
25
|
-
onError: (e) => {
|
|
26
|
-
const t = d(n, e);
|
|
27
|
-
t === "This tag already exists." ? l?.(t) : u.error(t);
|
|
28
|
-
}
|
|
29
|
-
}), _ = i.finops.patchTagsId.useMutation(void 0, {
|
|
30
|
-
onSuccess: (e) => {
|
|
31
|
-
Promise.all([i.finops.getTags.invalidateQueries(o), i.finops.getTagsId.invalidateQueries({
|
|
32
|
-
parameters: {
|
|
33
|
-
path: {
|
|
34
|
-
tag_id: e.id
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}, o)]), m?.(e);
|
|
38
|
-
},
|
|
39
|
-
onError: (e) => {
|
|
40
|
-
u.error(d(n, e));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
tagsWithKeywords: Object.fromEntries(r.map((e) => [e.tag_id, e.keywords])),
|
|
45
|
-
inProgress: g.isPending || _.isPending,
|
|
46
|
-
createTag: (e) => g.mutateAsync({
|
|
47
|
-
...e
|
|
48
|
-
}, {
|
|
49
|
-
onSuccess: (t) => c?.(t)
|
|
50
|
-
}),
|
|
51
|
-
updateTag: (e, t) => _.mutateAsync({
|
|
52
|
-
path: {
|
|
53
|
-
tag_id: e
|
|
54
|
-
},
|
|
55
|
-
body: t
|
|
56
|
-
}),
|
|
57
|
-
updateOcrAutoTagging: (e, t = []) => {
|
|
58
|
-
const s = r.filter((y) => y.tag_id !== e);
|
|
59
|
-
if (s.length === r.length && !t.length)
|
|
60
|
-
return;
|
|
61
|
-
const p = t.length ? [...s, {
|
|
62
|
-
tag_id: e,
|
|
63
|
-
keywords: [...new Set(t)],
|
|
64
|
-
enabled: !0
|
|
65
|
-
}] : s;
|
|
66
|
-
p.length && f({
|
|
67
|
-
tax_mode: a.tax_mode,
|
|
68
|
-
payment_priority: a.payment_priority,
|
|
69
|
-
quote_signature_required: a.quote_signature_required,
|
|
70
|
-
receivable_edit_flow: a.receivable_edit_flow,
|
|
71
|
-
allow_purchase_order_autolinking: a.allow_purchase_order_autolinking,
|
|
72
|
-
generate_paid_invoice_pdf: a.generate_paid_invoice_pdf,
|
|
73
|
-
payables_ocr_auto_tagging: p,
|
|
74
|
-
payables_skip_approval_flow: a.payables_skip_approval_flow,
|
|
75
|
-
tax_inclusive_discount_mode: a.tax_inclusive_discount_mode
|
|
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
|
|
76
31
|
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
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);
|
|
80
44
|
export {
|
|
81
|
-
|
|
45
|
+
S as InvoiceItemRow
|
|
82
46
|
};
|
|
@@ -1,161 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
invoiceNumber: "",
|
|
18
|
-
counterpart: "",
|
|
19
|
-
counterpartBankAccount: "",
|
|
20
|
-
invoiceDate: void 0,
|
|
21
|
-
dueDate: void 0,
|
|
22
|
-
currency: "USD",
|
|
23
|
-
tags: [],
|
|
24
|
-
discount: null,
|
|
25
|
-
lineItems: [{
|
|
26
|
-
id: "",
|
|
27
|
-
name: "",
|
|
28
|
-
quantity: 1,
|
|
29
|
-
price: 0,
|
|
30
|
-
tax: 0
|
|
31
|
-
}]
|
|
32
|
-
};
|
|
1
|
+
import { jsxs as n, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as r } from "@lingui/react";
|
|
3
|
+
import { twMerge as i } from "tailwind-merge";
|
|
4
|
+
const o = ({
|
|
5
|
+
label: e,
|
|
6
|
+
value: l,
|
|
7
|
+
className: a
|
|
8
|
+
}) => /* @__PURE__ */ n("li", { className: i("ttw:flex ttw:justify-between ttw:items-center", a), children: [
|
|
9
|
+
/* @__PURE__ */ t("span", { children: e }),
|
|
10
|
+
/* @__PURE__ */ t("span", { children: l?.toString() })
|
|
11
|
+
] }), u = ({
|
|
12
|
+
subtotalPrice: e,
|
|
13
|
+
totalTaxes: l,
|
|
14
|
+
totalPrice: a
|
|
15
|
+
}) => {
|
|
33
16
|
const {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
discount: d
|
|
42
|
-
} = e;
|
|
43
|
-
return {
|
|
44
|
-
invoiceNumber: r ?? "",
|
|
45
|
-
counterpart: i ?? "",
|
|
46
|
-
counterpartBankAccount: o ?? "",
|
|
47
|
-
invoiceDate: u ? p(u) : void 0,
|
|
48
|
-
dueDate: c ? p(c) : void 0,
|
|
49
|
-
currency: n ?? "USD",
|
|
50
|
-
tags: l ?? [],
|
|
51
|
-
discount: d && n ? t(d, n) : null,
|
|
52
|
-
lineItems: (a || []).map((s) => ({
|
|
53
|
-
id: s.id ?? "",
|
|
54
|
-
name: s.name ?? "",
|
|
55
|
-
quantity: s.quantity ?? 1,
|
|
56
|
-
price: s.unit_price && n ? t(s.unit_price, n) ?? 0 : 0,
|
|
57
|
-
tax: s.tax ? I(s.tax) : 0,
|
|
58
|
-
ledger_account_id: s.ledger_account_id
|
|
59
|
-
}))
|
|
60
|
-
};
|
|
61
|
-
}, T = ({
|
|
62
|
-
discount: t,
|
|
63
|
-
invoiceNumber: e,
|
|
64
|
-
counterpart: a,
|
|
65
|
-
counterpartBankAccount: r,
|
|
66
|
-
invoiceDate: i,
|
|
67
|
-
dueDate: o,
|
|
68
|
-
currency: u,
|
|
69
|
-
tags: c,
|
|
70
|
-
counterpartAddressId: n
|
|
71
|
-
}, l) => ({
|
|
72
|
-
document_id: e,
|
|
73
|
-
discount: t && u ? l(t, u) ?? 0 : 0,
|
|
74
|
-
counterpart_id: a || void 0,
|
|
75
|
-
counterpart_bank_account_id: r || void 0,
|
|
76
|
-
issued_at: i instanceof Date ? m(i) : void 0,
|
|
77
|
-
due_date: o instanceof Date ? m(o) : void 0,
|
|
78
|
-
currency: u,
|
|
79
|
-
tag_ids: c.map((d) => d.id),
|
|
80
|
-
counterpart_address_id: n
|
|
81
|
-
}), _ = (t, e) => {
|
|
82
|
-
const a = t * e;
|
|
83
|
-
return parseFloat(a.toFixed(2));
|
|
84
|
-
}, f = (t, e) => {
|
|
85
|
-
const a = t + e * t / 100;
|
|
86
|
-
return parseFloat(a.toFixed(2));
|
|
87
|
-
}, w = (t) => {
|
|
88
|
-
const {
|
|
89
|
-
price: e,
|
|
90
|
-
quantity: a,
|
|
91
|
-
tax: r
|
|
92
|
-
} = t;
|
|
93
|
-
if (!e || !a) return 0;
|
|
94
|
-
const i = _(e, a);
|
|
95
|
-
return f(i, r || 0);
|
|
96
|
-
}, z = (t, e) => {
|
|
97
|
-
const {
|
|
98
|
-
subtotal: a,
|
|
99
|
-
taxes: r,
|
|
100
|
-
total: i
|
|
101
|
-
} = t.reduce((o, u) => {
|
|
102
|
-
const c = _(u.price, u.quantity), n = f(c, u.tax || 0);
|
|
103
|
-
return {
|
|
104
|
-
subtotal: o.subtotal + c,
|
|
105
|
-
taxes: o.taxes + (n - c),
|
|
106
|
-
total: o.total + n
|
|
107
|
-
};
|
|
108
|
-
}, {
|
|
109
|
-
subtotal: 0,
|
|
110
|
-
taxes: 0,
|
|
111
|
-
total: 0
|
|
112
|
-
});
|
|
113
|
-
return {
|
|
114
|
-
subtotal: a,
|
|
115
|
-
taxes: r,
|
|
116
|
-
total: i - (e ?? 0)
|
|
117
|
-
};
|
|
118
|
-
}, C = (t, e, a, r) => {
|
|
119
|
-
const {
|
|
120
|
-
name: i,
|
|
121
|
-
quantity: o,
|
|
122
|
-
price: u,
|
|
123
|
-
tax: c,
|
|
124
|
-
ledger_account_id: n
|
|
125
|
-
} = e, l = r?.allowLedgerUpdate ? q(n, r?.previous) : n, d = {
|
|
126
|
-
name: i,
|
|
127
|
-
quantity: o,
|
|
128
|
-
tax: F(c),
|
|
129
|
-
unit_price: a(u, t) ?? 0
|
|
130
|
-
};
|
|
131
|
-
return l !== void 0 && (d.ledger_account_id = l), d;
|
|
17
|
+
i18n: s
|
|
18
|
+
} = r();
|
|
19
|
+
return /* @__PURE__ */ n("ul", { className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-1.5 ttw:list-none", children: [
|
|
20
|
+
/* @__PURE__ */ t(o, { label: s._("Subtotal"), value: e, className: "ttw:text-sm ttw:font-normal" }),
|
|
21
|
+
/* @__PURE__ */ t(o, { label: s._("Tax"), value: l, className: "ttw:text-sm ttw:font-normal" }),
|
|
22
|
+
/* @__PURE__ */ t(o, { label: s._("Total"), value: a, className: "ttw:text-lg ttw:font-medium" })
|
|
23
|
+
] });
|
|
132
24
|
};
|
|
133
|
-
function F(t) {
|
|
134
|
-
return g(t);
|
|
135
|
-
}
|
|
136
|
-
function I(t) {
|
|
137
|
-
return b(t);
|
|
138
|
-
}
|
|
139
|
-
const L = (t, e, a) => {
|
|
140
|
-
const r = {
|
|
141
|
-
invoiceNumber: !0,
|
|
142
|
-
dueDate: !0,
|
|
143
|
-
tags: !0,
|
|
144
|
-
currency: !0
|
|
145
|
-
};
|
|
146
|
-
if (a)
|
|
147
|
-
return !1;
|
|
148
|
-
const i = r[t] ?? !1, o = e?.[t] ?? !1;
|
|
149
|
-
return i || o;
|
|
150
|
-
}, O = (t, e) => t.find((a) => a.currency === e && a.is_default_for_currency)?.id || "";
|
|
151
25
|
export {
|
|
152
|
-
|
|
153
|
-
z as calculateTotalsForPayable,
|
|
154
|
-
B as counterpartsToSelect,
|
|
155
|
-
m as dateToString,
|
|
156
|
-
O as findDefaultBankAccount,
|
|
157
|
-
L as isFieldRequired,
|
|
158
|
-
M as prepareDefaultValues,
|
|
159
|
-
C as prepareLineItemSubmit,
|
|
160
|
-
T as prepareSubmit
|
|
26
|
+
u as InvoiceTotals
|
|
161
27
|
};
|
|
@@ -1,30 +1,191 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as c, jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as te, useCallback as f, useMemo as C, useEffect as ne } from "react";
|
|
3
|
+
import { useMoniteContext as ae } from "./index57.js";
|
|
4
|
+
import { useCurrencies as re } from "./index58.js";
|
|
5
|
+
import "./index92.js";
|
|
6
|
+
import { useLingui as ie } from "@lingui/react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "@mui/x-data-grid";
|
|
9
|
+
import { Combobox as se, ComboboxInput as oe, ComboboxContent as le, ComboboxList as me, ComboboxItem as b, ComboboxSeparator as ue } from "./index90.js";
|
|
10
|
+
import { InputGroupAddon as ce } from "./index101.js";
|
|
11
|
+
import { Loader2 as E, Plus as de } from "lucide-react";
|
|
12
|
+
const y = "__create-new__", u = "custom", Ne = ({
|
|
13
|
+
fieldName: i,
|
|
14
|
+
error: F,
|
|
15
|
+
disabled: z,
|
|
16
|
+
index: B = 0,
|
|
17
|
+
defaultCurrency: G,
|
|
18
|
+
measureUnits: _,
|
|
19
|
+
container: H,
|
|
20
|
+
onCreateItem: M,
|
|
21
|
+
onChange: o
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
i18n: A
|
|
25
|
+
} = ie(), D = G, [t, h] = x(""), [v, O] = x(!1), [K, N] = x(null), [I, d] = x(!1), w = te(!1), {
|
|
26
|
+
api: Q
|
|
27
|
+
} = ae(), {
|
|
28
|
+
formatCurrencyToDisplay: T
|
|
29
|
+
} = re(), {
|
|
30
|
+
data: P,
|
|
31
|
+
isLoading: R,
|
|
32
|
+
fetchNextPage: U,
|
|
33
|
+
hasNextPage: j,
|
|
34
|
+
isFetchingNextPage: k
|
|
35
|
+
} = Q.finops.getProducts.useInfiniteQuery({
|
|
36
|
+
query: {
|
|
37
|
+
limit: 20,
|
|
38
|
+
currency: D
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
initialPageParam: {
|
|
42
|
+
query: {
|
|
43
|
+
pagination_token: void 0
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
getNextPageParam: (e) => {
|
|
47
|
+
if (e.next_pagination_token)
|
|
48
|
+
return {
|
|
49
|
+
query: {
|
|
50
|
+
pagination_token: e.next_pagination_token
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
enabled: !!D
|
|
55
|
+
}), W = f((e) => {
|
|
56
|
+
const {
|
|
57
|
+
scrollTop: n,
|
|
58
|
+
scrollHeight: m,
|
|
59
|
+
clientHeight: $
|
|
60
|
+
} = e.currentTarget;
|
|
61
|
+
m - n - $ < 100 && j && !k && U();
|
|
62
|
+
}, [U, j, k]), l = C(() => P ? P.pages.flatMap((e) => e.data).sort((e, n) => (e.name ?? "").localeCompare(n.name ?? "")) : [], [P]), r = C(() => !l || l.length === 0 ? [] : l.map((e) => {
|
|
63
|
+
const n = _ ? _.data.find((m) => m.id === e.measure_unit_id) : void 0;
|
|
64
|
+
return {
|
|
65
|
+
id: e.id,
|
|
66
|
+
label: e.name,
|
|
67
|
+
description: e.description,
|
|
68
|
+
price: e.price,
|
|
69
|
+
smallestAmount: e.smallest_amount,
|
|
70
|
+
measureUnit: n
|
|
71
|
+
};
|
|
72
|
+
}), [l, _, i]);
|
|
73
|
+
ne(() => {
|
|
74
|
+
!v && i && i.length > 0 && !t.length && (l?.find((e) => e?.name === i) || h(i));
|
|
75
|
+
}, [i, v, l, t]);
|
|
76
|
+
const J = f(() => {
|
|
77
|
+
O(!0), d(!0);
|
|
78
|
+
}, []), X = f(() => {
|
|
79
|
+
O(!1), t && t.trim() !== "" && !r.some((e) => e.label === t) && o({
|
|
80
|
+
id: u,
|
|
81
|
+
label: t
|
|
82
|
+
}, !1);
|
|
83
|
+
}, [t, r, o]);
|
|
84
|
+
let s = l?.find((e) => e?.id === K);
|
|
85
|
+
if (!v && i && i.length > 0 && !t.length && !s) {
|
|
86
|
+
const e = l?.find(
|
|
87
|
+
(n) => n?.name === i
|
|
88
|
+
// potentially item?.product.name, double check
|
|
89
|
+
);
|
|
90
|
+
e && (s = e);
|
|
17
91
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
92
|
+
const Y = s ? s.id : t ? u : null, L = s ? s.name : t, {
|
|
93
|
+
matchingItems: g,
|
|
94
|
+
nonMatchingItems: q,
|
|
95
|
+
showCustomOption: S
|
|
96
|
+
} = C(() => {
|
|
97
|
+
const e = L.toLowerCase().trim();
|
|
98
|
+
if (!e || s && s.name.toLowerCase() === e)
|
|
99
|
+
return {
|
|
100
|
+
matchingItems: r,
|
|
101
|
+
nonMatchingItems: [],
|
|
102
|
+
showCustomOption: !1
|
|
103
|
+
};
|
|
104
|
+
const n = [], m = [];
|
|
105
|
+
for (const p of r)
|
|
106
|
+
p.label.toLowerCase().includes(e) ? n.push(p) : m.push(p);
|
|
107
|
+
const $ = n.some((p) => p.label.toLowerCase() === e);
|
|
108
|
+
return {
|
|
109
|
+
matchingItems: n,
|
|
110
|
+
nonMatchingItems: m,
|
|
111
|
+
showCustomOption: !$ && !!t.trim()
|
|
112
|
+
};
|
|
113
|
+
}, [L, r, s, t]), Z = C(() => [
|
|
114
|
+
y,
|
|
115
|
+
...r.map((e) => e.id),
|
|
116
|
+
// Always include CUSTOM_ID when there's a custom name so Base UI tracks
|
|
117
|
+
// it as the selected value and shows the clear button. The visible
|
|
118
|
+
// ComboboxItem is still gated by showCustomOption.
|
|
119
|
+
...t ? [u] : []
|
|
120
|
+
], [r, t]), V = f((e) => {
|
|
121
|
+
if (!e) {
|
|
122
|
+
N(null), h(""), o({
|
|
123
|
+
id: "",
|
|
124
|
+
label: ""
|
|
125
|
+
}, !1);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (e === y) {
|
|
129
|
+
M();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (e === u) {
|
|
133
|
+
w.current = !0, o({
|
|
134
|
+
id: u,
|
|
135
|
+
label: t
|
|
136
|
+
}, !1);
|
|
137
|
+
return;
|
|
25
138
|
}
|
|
26
|
-
|
|
27
|
-
|
|
139
|
+
const n = r.find((m) => m.id === e);
|
|
140
|
+
n && (N(n.id), h(""), o(n, !0));
|
|
141
|
+
}, [t, r, o, M]), ee = f((e) => {
|
|
142
|
+
if (e !== y && e !== u && !r.some((n) => n.id === e)) {
|
|
143
|
+
if (!e && w.current) {
|
|
144
|
+
w.current = !1;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
h(e), N(null), e.trim() && o({
|
|
148
|
+
id: u,
|
|
149
|
+
label: e
|
|
150
|
+
}, !1);
|
|
151
|
+
}
|
|
152
|
+
}, [r, o]);
|
|
153
|
+
return /* @__PURE__ */ c(se, { value: Y, onValueChange: V, inputValue: L, onInputValueChange: ee, items: Z, filter: () => !0, disabled: z, open: I, onOpenChange: d, children: [
|
|
154
|
+
/* @__PURE__ */ a(oe, { id: `item-selector-${B}`, placeholder: A._("e.g., office supplies"), "aria-invalid": F || void 0, maxLength: 100, onFocus: J, onBlur: X, onClick: () => {
|
|
155
|
+
I || d(!0);
|
|
156
|
+
}, onKeyDown: (e) => {
|
|
157
|
+
e.key === "Enter" ? (e.preventDefault(), t.trim() && (w.current = !0), d(!1)) : e.key === "Tab" && I && g.length === 1 && (V(g[0].id), d(!1));
|
|
158
|
+
}, showClear: !0, className: "ttw:w-full", children: R && /* @__PURE__ */ a(ce, { align: "inline-start", children: /* @__PURE__ */ a(E, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) }) }),
|
|
159
|
+
/* @__PURE__ */ a(le, { container: H, className: "ttw:min-w-138", children: /* @__PURE__ */ c(me, { onScroll: W, children: [
|
|
160
|
+
/* @__PURE__ */ c(b, { value: y, className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary", children: [
|
|
161
|
+
/* @__PURE__ */ a(de, {}),
|
|
162
|
+
A._("Create new item")
|
|
163
|
+
] }),
|
|
164
|
+
g.map((e) => /* @__PURE__ */ c(b, { value: e.id, children: [
|
|
165
|
+
/* @__PURE__ */ a("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
166
|
+
/* @__PURE__ */ c("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [
|
|
167
|
+
e.smallestAmount,
|
|
168
|
+
" ",
|
|
169
|
+
e.measureUnit?.description,
|
|
170
|
+
e.price && ` / ${T(e.price.value, e.price.currency)}`
|
|
171
|
+
] })
|
|
172
|
+
] }, e.id)),
|
|
173
|
+
S && /* @__PURE__ */ a(b, { value: u, children: /* @__PURE__ */ a("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: t }) }),
|
|
174
|
+
(g.length > 0 || S) && q.length > 0 && /* @__PURE__ */ a(ue, {}),
|
|
175
|
+
q.map((e) => /* @__PURE__ */ c(b, { value: e.id, children: [
|
|
176
|
+
/* @__PURE__ */ a("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
177
|
+
/* @__PURE__ */ c("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [
|
|
178
|
+
e.smallestAmount,
|
|
179
|
+
" ",
|
|
180
|
+
e.measureUnit?.description,
|
|
181
|
+
e.price && ` / ${T(e.price.value, e.price.currency)}`
|
|
182
|
+
] })
|
|
183
|
+
] }, e.id)),
|
|
184
|
+
k && /* @__PURE__ */ a("div", { className: "ttw:flex ttw:justify-center ttw:py-1", children: /* @__PURE__ */ a(E, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) })
|
|
185
|
+
] }) })
|
|
186
|
+
] });
|
|
187
|
+
};
|
|
28
188
|
export {
|
|
29
|
-
|
|
189
|
+
u as CUSTOM_ID,
|
|
190
|
+
Ne as ItemSelector
|
|
30
191
|
};
|
|
@@ -1,31 +1,110 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useCreateInvoiceProductsTable as $ } from "./index395.js";
|
|
2
|
+
import { sanitizeLineItems as N } from "./index320.js";
|
|
3
|
+
import { useCurrencies as W } from "./index58.js";
|
|
4
|
+
import { useRef as k, useState as z, useCallback as u, useEffect as I, useMemo as J } from "react";
|
|
5
|
+
import "./index92.js";
|
|
6
|
+
import "@emotion/react/jsx-runtime";
|
|
7
|
+
import "@lingui/react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "./index57.js";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { useIsMounted as O } from "./index68.js";
|
|
12
|
+
import { generateUniqueId as j } from "./index397.js";
|
|
13
|
+
import { useFormContext as B, useFieldArray as G } from "react-hook-form";
|
|
14
|
+
const ue = ({
|
|
15
|
+
defaultCurrency: f,
|
|
16
|
+
isInclusivePricing: x
|
|
10
17
|
}) => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const {
|
|
19
|
+
control: C,
|
|
20
|
+
formState: {
|
|
21
|
+
errors: o
|
|
22
|
+
},
|
|
23
|
+
setValue: l,
|
|
24
|
+
getValues: r,
|
|
25
|
+
watch: h,
|
|
26
|
+
clearErrors: m,
|
|
27
|
+
trigger: g
|
|
28
|
+
} = B(), {
|
|
29
|
+
fields: a,
|
|
30
|
+
append: c,
|
|
31
|
+
remove: y
|
|
32
|
+
} = G({
|
|
33
|
+
control: C,
|
|
34
|
+
name: "line_items",
|
|
35
|
+
shouldUnregister: !1
|
|
36
|
+
}), d = O(), i = k(!1), [v, P] = z(!1), b = h("line_items"), V = h("tax_rate"), T = N(b), {
|
|
37
|
+
formatCurrencyToDisplay: A
|
|
38
|
+
} = W(), {
|
|
39
|
+
subtotalPrice: D,
|
|
40
|
+
totalPrice: L,
|
|
41
|
+
totalTaxes: R
|
|
42
|
+
} = $({
|
|
43
|
+
lineItems: T,
|
|
44
|
+
actualCurrency: f,
|
|
45
|
+
isInclusivePricing: x,
|
|
46
|
+
formatCurrencyToDisplay: A,
|
|
47
|
+
taxRate: Number(V) || void 0
|
|
48
|
+
}), n = u((e) => {
|
|
49
|
+
const t = {
|
|
50
|
+
name: e?.product?.name || "",
|
|
51
|
+
price: {
|
|
52
|
+
currency: f,
|
|
53
|
+
value: e?.product?.price?.value || 0
|
|
20
54
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
55
|
+
measure_unit_id: e?.product?.measure_unit_id || "",
|
|
56
|
+
type: e?.product?.type || "product"
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
id: e?.id ?? j(),
|
|
60
|
+
product_id: e?.product_id || "",
|
|
61
|
+
product: t,
|
|
62
|
+
quantity: e?.quantity ?? 1,
|
|
63
|
+
tax_rate_value: e?.tax_rate_value ? e?.tax_rate_value ?? 0 : void 0,
|
|
64
|
+
...e?.measure_unit ? {
|
|
65
|
+
measure_unit: e.measure_unit
|
|
66
|
+
} : {},
|
|
67
|
+
taxable: !0
|
|
68
|
+
};
|
|
69
|
+
}, [f]), S = u(() => {
|
|
70
|
+
if (i.current) return;
|
|
71
|
+
i.current = !0, c(n());
|
|
72
|
+
const e = r("line_items");
|
|
73
|
+
e && e.length > 0 && m(`line_items.${e.length - 1}`);
|
|
74
|
+
}, [c, n, r, m]);
|
|
75
|
+
I(() => {
|
|
76
|
+
i.current && Promise.resolve().then(() => {
|
|
77
|
+
d.current && (i.current = !1);
|
|
78
|
+
});
|
|
79
|
+
}, [a.length, d]), I(() => {
|
|
80
|
+
!d.current || v || !r("line_items")?.length && !i.current && (i.current = !0, c(n()), P(!0));
|
|
81
|
+
}, [d, v, r, c, n]);
|
|
82
|
+
const q = u((e) => y(e), [y, r]), E = u(() => {
|
|
83
|
+
const e = r("line_items");
|
|
84
|
+
if (!e?.length) return;
|
|
85
|
+
const t = e.filter((s) => !!s?.product?.name?.trim()), p = e.find((s) => !s?.product?.name?.trim()), _ = t.length > 0 ? t : e.length > 0 ? [n(p || void 0)] : [];
|
|
86
|
+
(_.length !== e.length || !_.every((s, U) => s.id === e[U]?.id)) && (m("line_items"), l("line_items", _, {
|
|
87
|
+
shouldValidate: !1,
|
|
88
|
+
shouldDirty: !0
|
|
89
|
+
}));
|
|
90
|
+
}, [r, l, m, n]), F = u((e, t, p) => {
|
|
91
|
+
l(e, t, {
|
|
92
|
+
shouldDirty: !0,
|
|
93
|
+
...p
|
|
94
|
+
}), p?.shouldValidate && g(e);
|
|
95
|
+
}, [l, g]), M = JSON.stringify(o.line_items), w = J(() => Array.isArray(o.line_items) ? a.map((e, t) => o.line_items?.[t] ?? {}) : a.map(() => ({})), [o.line_items, M, a]);
|
|
96
|
+
return {
|
|
97
|
+
fields: a,
|
|
98
|
+
subtotalPrice: D,
|
|
99
|
+
totalPrice: L,
|
|
100
|
+
totalTaxes: R,
|
|
101
|
+
lineItemErrors: w,
|
|
102
|
+
handleAddRow: S,
|
|
103
|
+
handleRemoveItem: q,
|
|
104
|
+
setValueWithValidationLocal: F,
|
|
105
|
+
cleanUpLineItemsForSubmission: E
|
|
106
|
+
};
|
|
27
107
|
};
|
|
28
108
|
export {
|
|
29
|
-
|
|
30
|
-
x as SearchField
|
|
109
|
+
ue as useLineItemManagement
|
|
31
110
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as p } from "./
|
|
2
|
+
import { getAPIErrorMessage as p } from "./index124.js";
|
|
3
3
|
import { useLingui as d } from "@lingui/react";
|
|
4
4
|
import { toast as t } from "react-hot-toast";
|
|
5
5
|
const f = (i, s) => {
|