@tesouro/embedded-components-react 0.2.19 → 0.2.20
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 +26 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- 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 +25 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.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/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1269 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +22 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +98 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +56 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +76 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +33 -26
- 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 +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +152 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +53 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +71 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +60 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +76 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +4 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +24 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +20 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +19 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +27 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +117 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +65 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +42 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +73 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +195 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +29 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +7 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +248 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +182 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +13 -30
- 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 +108 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +81 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +107 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +63 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +47 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +37 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +116 -5
- 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 +69 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +186 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +27 -366
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +121 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +366 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +17 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +93 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +345 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +297 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +103 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +158 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +267 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +96 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +97 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +184 -337
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +33 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +144 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +85 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +183 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +18 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +47 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +74 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +32 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +483 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +164 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +59 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +114 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +21 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +44 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +38 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +14 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +76 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +35 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +50 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +33 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +344 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +9 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +16 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +34 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +15 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +22 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +40 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +49 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +29 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +97 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +47 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +22 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +32 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +54 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +28 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +54 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +77 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +44 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +73 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +149 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +12 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +45 -289
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +37 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +34 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +6 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +97 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +35 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +57 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +37 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +17 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +58 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +91 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +126 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +16 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +38 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +39 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +62 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +157 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +27 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +26 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +78 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +126 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +28 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +42 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +60 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +92 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +112 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +82 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +20 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +15 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +19 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +160 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +128 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +154 -259
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +18 -19
- 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 +62 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +65 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +56 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +8 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +6 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +61 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +22 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +60 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +60 -99
- 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 +44 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +185 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +102 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +281 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +48 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +15 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +80 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +221 -16
- 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 +49 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +48 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +111 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +18 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +70 -94
- 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 +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +14 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +31 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +126 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- 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 +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +255 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +19 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +72 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +94 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +7 -38
- 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 +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +16 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +10 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +13 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +38 -16
- 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 +100 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +112 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +57 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +69 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +44 -51
- 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 +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +13 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +64 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +20 -11
- 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 +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +34 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +54 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +31 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +23 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +70 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +12 -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 +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +85 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +38 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +74 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +81 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +50 -37
- 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 +53 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +30 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +55 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +36 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +56 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +71 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +21 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +39 -85
- 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 +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +92 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +75 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +19 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +81 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +41 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -18
- 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 +14 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +48 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +29 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +69 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +40 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +47 -39
- 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 +2 -2
- 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 +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/index80.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 +26 -26
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +50 -50
- package/package.json +1 -1
|
@@ -1,50 +1,31 @@
|
|
|
1
|
-
import {
|
|
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
|
-
variant: t
|
|
30
|
-
}), a), ...n });
|
|
31
|
-
}
|
|
32
|
-
function c({
|
|
33
|
-
className: a,
|
|
34
|
-
...t
|
|
35
|
-
}) {
|
|
36
|
-
return /* @__PURE__ */ e(r.Trigger, { "data-slot": "tabs-trigger", className: i("ttw:relative ttw:inline-flex ttw:h-[calc(100%-1px)] ttw:flex-1 ttw:items-center ttw:justify-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-transparent ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground/60 ttw:transition-all ttw:group-data-[orientation=vertical]/tabs:w-full ttw:group-data-[orientation=vertical]/tabs:justify-start ttw:hover:text-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:focus-visible:outline-1 ttw:focus-visible:outline-ring ttw:disabled:pointer-events-none ttw:disabled:opacity-50 ttw:group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm ttw:group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none ttw:dark:text-muted-foreground ttw:dark:hover:text-foreground ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", "ttw:group-data-[variant=line]/tabs-list:bg-transparent ttw:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent ttw:dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent ttw:dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "ttw:data-[state=active]:bg-background ttw:data-[state=active]:text-foreground ttw:dark:data-[state=active]:border-input ttw:dark:data-[state=active]:bg-input/30 ttw:dark:data-[state=active]:text-foreground", "ttw:after:absolute ttw:after:bg-foreground ttw:after:opacity-0 ttw:after:transition-opacity ttw:group-data-[orientation=horizontal]/tabs:after:inset-x-0 ttw:group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] ttw:group-data-[orientation=horizontal]/tabs:after:h-0.5 ttw:group-data-[orientation=vertical]/tabs:after:inset-y-0 ttw:group-data-[orientation=vertical]/tabs:after:-right-1 ttw:group-data-[orientation=vertical]/tabs:after:w-0.5 ttw:group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", a), ...t });
|
|
37
|
-
}
|
|
38
|
-
function f({
|
|
39
|
-
className: a,
|
|
40
|
-
...t
|
|
41
|
-
}) {
|
|
42
|
-
return /* @__PURE__ */ e(r.Content, { "data-slot": "tabs-content", className: i("ttw:flex-1 ttw:outline-none", a), ...t });
|
|
43
|
-
}
|
|
1
|
+
import { useState as d, useCallback as c, useMemo as n } from "react";
|
|
2
|
+
const f = (a, e) => {
|
|
3
|
+
const [i, r] = d(e ?? {}), l = c((t, s) => {
|
|
4
|
+
r((u) => ({
|
|
5
|
+
...u,
|
|
6
|
+
[t]: s
|
|
7
|
+
}));
|
|
8
|
+
}, []);
|
|
9
|
+
return {
|
|
10
|
+
filtersQuery: i,
|
|
11
|
+
filters: n(() => a.map((t) => t === "status" ? {
|
|
12
|
+
field: t,
|
|
13
|
+
value: i[t],
|
|
14
|
+
options: e?.type ? o(e.type, e?.status__in) : []
|
|
15
|
+
} : {
|
|
16
|
+
field: t,
|
|
17
|
+
value: i[t]
|
|
18
|
+
}), [a, i, e]),
|
|
19
|
+
onChangeFilter: l
|
|
20
|
+
};
|
|
21
|
+
}, o = (a, e) => {
|
|
22
|
+
const i = {
|
|
23
|
+
invoice: ["recurring", "draft", "issued", "partially_paid", "paid", "overdue", "canceled", "uncollectible"],
|
|
24
|
+
quote: ["draft", "issued", "accepted", "expired", "declined"],
|
|
25
|
+
credit_note: ["draft", "issued"]
|
|
26
|
+
};
|
|
27
|
+
return e ? i[a].filter((r) => e.includes(r)) : i[a];
|
|
28
|
+
};
|
|
44
29
|
export {
|
|
45
|
-
|
|
46
|
-
f as TabsContent,
|
|
47
|
-
b as TabsList,
|
|
48
|
-
c as TabsTrigger,
|
|
49
|
-
s as tabsListVariants
|
|
30
|
+
f as useReceivablesFilters
|
|
50
31
|
};
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as t, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CenteredContentBox as p } from "./index256.js";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as u, DropdownMenuContent as h, DropdownMenuItem as f } from "./index139.js";
|
|
4
|
+
import { Button as l } from "./index86.js";
|
|
5
|
+
import { RefreshCw as s, ChevronDown as w } from "lucide-react";
|
|
6
|
+
import { Typography as m } from "./index87.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
title: r,
|
|
9
|
+
descriptionLine1: o,
|
|
10
|
+
onAction: e,
|
|
11
|
+
actionButtonLabel: i,
|
|
12
|
+
actionOptions: a = [],
|
|
13
|
+
type: n
|
|
14
|
+
}) => /* @__PURE__ */ t(p, { className: "ttw:min-h-48", children: /* @__PURE__ */ c("div", { className: "ttw:flex ttw:flex-col ttw:flex-1 ttw:items-center ttw:gap-3", children: [
|
|
15
|
+
/* @__PURE__ */ t(m, { variant: "h2", className: "ttw:font-medium", children: r }),
|
|
16
|
+
/* @__PURE__ */ t(m, { variant: "body1", color: "muted", className: "ttw:font-normal", children: o }),
|
|
17
|
+
/* @__PURE__ */ t(C, { onAction: e, actionButtonLabel: i, actionOptions: a, type: n })
|
|
18
|
+
] }) }), C = ({
|
|
19
|
+
onAction: r,
|
|
20
|
+
actionButtonLabel: o,
|
|
21
|
+
actionOptions: e = [],
|
|
22
|
+
type: i
|
|
8
23
|
}) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ e(n, { name: "footer", control: l, render: ({
|
|
26
|
-
field: r,
|
|
27
|
-
fieldState: {
|
|
28
|
-
error: o
|
|
29
|
-
}
|
|
30
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ i(s, { children: [
|
|
31
|
-
/* @__PURE__ */ e(m, { htmlFor: r.name, children: t._("Note to customer") }),
|
|
32
|
-
/* @__PURE__ */ e(h, { ...r, id: r.name, disabled: a, placeholder: t._("Add a note to be displayed below the line items"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!o }),
|
|
33
|
-
/* @__PURE__ */ e(c, { errors: o ? [o] : [] })
|
|
34
|
-
] }) }) })
|
|
24
|
+
if (!o) return null;
|
|
25
|
+
const a = (n) => {
|
|
26
|
+
r && r(n);
|
|
27
|
+
};
|
|
28
|
+
return e.length > 1 ? /* @__PURE__ */ c(d, { children: [
|
|
29
|
+
/* @__PURE__ */ t(u, { asChild: !0, children: /* @__PURE__ */ c(l, { type: "button", children: [
|
|
30
|
+
i === "error" ? /* @__PURE__ */ t(s, {}) : void 0,
|
|
31
|
+
o,
|
|
32
|
+
/* @__PURE__ */ t(w, {})
|
|
33
|
+
] }) }),
|
|
34
|
+
/* @__PURE__ */ t(h, { align: "end", children: e.map((n) => /* @__PURE__ */ t(f, { onClick: () => a(n), children: n }, n)) })
|
|
35
|
+
] }) : /* @__PURE__ */ c(l, { onClick: (n) => {
|
|
36
|
+
n.preventDefault(), a(e?.[0]);
|
|
37
|
+
}, children: [
|
|
38
|
+
i === "error" ? /* @__PURE__ */ t(s, {}) : void 0,
|
|
39
|
+
o
|
|
35
40
|
] });
|
|
36
41
|
};
|
|
37
42
|
export {
|
|
38
|
-
|
|
43
|
+
B as DataGridEmptyState
|
|
39
44
|
};
|
|
@@ -1,118 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { useLingui as O } from "@lingui/react";
|
|
8
|
-
import { Button as W } from "./index86.js";
|
|
9
|
-
import { Field as H, FieldContent as Q, FieldLabel as Y } from "./index155.js";
|
|
10
|
-
import { Typography as m } from "./index87.js";
|
|
11
|
-
import { Plus as J } from "lucide-react";
|
|
12
|
-
import { useCallback as f, useEffect as K, useRef as X } from "react";
|
|
13
|
-
import { useFormContext as Z, Controller as tt } from "react-hook-form";
|
|
14
|
-
import { LoadingSpinner as et } from "./index133.js";
|
|
15
|
-
import { useGetMeasureUnits as it } from "./index200.js";
|
|
16
|
-
import { InputGroup as rt, InputGroupInput as nt, InputGroupAddon as at } from "./index103.js";
|
|
17
|
-
import { sanitizeTaxRateInput as ot } from "./index319.js";
|
|
18
|
-
import { Separator as st } from "./index137.js";
|
|
19
|
-
const Ct = ({
|
|
20
|
-
defaultCurrency: d = "USD",
|
|
21
|
-
registerLineItemCleanupFn: u,
|
|
22
|
-
handleOpenCreateProductDialog: I
|
|
23
|
-
}) => {
|
|
24
|
-
const {
|
|
25
|
-
i18n: n
|
|
26
|
-
} = O(), {
|
|
27
|
-
control: h,
|
|
28
|
-
formState: _,
|
|
29
|
-
getValues: c,
|
|
30
|
-
watch: $,
|
|
31
|
-
trigger: g
|
|
32
|
-
} = Z(), N = $("tax_mode") === "inclusive", {
|
|
33
|
-
data: b,
|
|
34
|
-
isLoading: C
|
|
35
|
-
} = it(), {
|
|
36
|
-
fields: w,
|
|
37
|
-
subtotalPrice: L,
|
|
38
|
-
totalPrice: P,
|
|
39
|
-
totalTaxes: F,
|
|
40
|
-
lineItemErrors: R,
|
|
41
|
-
handleAddRow: U,
|
|
42
|
-
handleRemoveItem: E,
|
|
43
|
-
setValueWithValidationLocal: p,
|
|
44
|
-
cleanUpLineItemsForSubmission: v
|
|
45
|
-
} = B({
|
|
46
|
-
defaultCurrency: d,
|
|
47
|
-
isInclusivePricing: N
|
|
48
|
-
}), r = f((t, e) => {
|
|
49
|
-
p(t, e, {
|
|
50
|
-
shouldValidate: !1
|
|
51
|
-
});
|
|
52
|
-
}, [p]);
|
|
53
|
-
K(() => (u?.(v), () => u?.(null)), [u, v]);
|
|
54
|
-
const x = X(null), {
|
|
55
|
-
generalError: T,
|
|
56
|
-
fieldErrors: S
|
|
57
|
-
} = M(R), y = f((t, e, a) => {
|
|
58
|
-
const s = e.measureUnit?.id, o = e.measureUnit?.name;
|
|
59
|
-
o && !s ? (r(`line_items.${t}.product.measure_unit_id`, ""), r(`line_items.${t}.product.measure_unit_name`, o), r(`line_items.${t}.measure_unit`, {
|
|
60
|
-
name: o,
|
|
61
|
-
id: null
|
|
62
|
-
})) : (s || a) && (r(`line_items.${t}.product.measure_unit_id`, s || a), r(`line_items.${t}.product.measure_unit_name`, void 0), r(`line_items.${t}.measure_unit`, void 0));
|
|
63
|
-
}, [r]), A = f((t, e, a) => {
|
|
64
|
-
const s = e.label ?? "";
|
|
65
|
-
if (r(`line_items.${t}.product.name`, s), e.id !== "" && e.id !== z && a) {
|
|
66
|
-
r(`line_items.${t}.product.price.value`, e.price?.value ?? 0), r(`line_items.${t}.product.price.currency`, d);
|
|
67
|
-
const o = c(`line_items.${t}.product.measure_unit_id`);
|
|
68
|
-
y(t, e, o), r(`line_items.${t}.quantity`, e.smallestAmount ?? 1), r(`line_items.${t}.product.smallest_amount`, e.smallestAmount), r(`line_items.${t}.product.type`, "product"), r(`line_items.${t}.product.description`, e.description ?? ""), g(`line_items.${t}`);
|
|
69
|
-
}
|
|
70
|
-
}, [d, c, r, y, g]);
|
|
71
|
-
return /* @__PURE__ */ l("div", { ref: x, className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
72
|
-
/* @__PURE__ */ l("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
73
|
-
/* @__PURE__ */ i(m, { variant: "h4", children: n._("Products and services") }),
|
|
74
|
-
/* @__PURE__ */ i(m, { variant: "body2", color: "muted", className: "ttw:font-medium", children: n._("Add the products and services on this invoice. You'll have the option to save new items to your inventory.") })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ i(q, { generalError: _?.errors?.line_items?.root?.message ?? T, fieldErrors: S }),
|
|
77
|
-
/* @__PURE__ */ l("ul", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
78
|
-
/* @__PURE__ */ l("li", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-5", children: [
|
|
79
|
-
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:min-w-30 ttw:whitespace-nowrap ttw:inline-flex ttw:flex-1", children: n._("Item name") }),
|
|
80
|
-
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-24 ttw:min-w-24", children: n._("Quantity") }),
|
|
81
|
-
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-20.5 ttw:min-w-20.5", children: n._("Units") }),
|
|
82
|
-
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:max-w-41 ttw:w-full ttw:min-w-29", children: n._("Price") }),
|
|
83
|
-
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-12 ttw:min-w-12", children: n._("Taxable") }),
|
|
84
|
-
w.length > 1 && /* @__PURE__ */ i("div", { className: "ttw:w-10 ttw:min-w-10" })
|
|
85
|
-
] }),
|
|
86
|
-
C ? /* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-center ttw:justify-center ttw:h-9", children: /* @__PURE__ */ i(et, { className: "ttw:w-5 ttw:h-5" }) }) : w.map((t, e) => {
|
|
87
|
-
const a = (o) => c(`line_items.${e}.${o}`), s = (o, D, V) => {
|
|
88
|
-
const j = `line_items.${e}.${o}`;
|
|
89
|
-
p(j, D, V);
|
|
90
|
-
};
|
|
91
|
-
return /* @__PURE__ */ i(G, { field: t, index: e, control: h, errors: _.errors, defaultCurrency: d, measureUnitsData: b, onRequestLineItemValue: a, onLineItemValueChange: s, onRequestOpenCreateProductDialog: I, canRemove: w.length > 1, onUpdateItem: A, onRemoveItem: E, container: x }, t.id);
|
|
92
|
-
})
|
|
93
|
-
] }),
|
|
94
|
-
/* @__PURE__ */ l(W, { type: "button", variant: "ghost", onClick: U, className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit", children: [
|
|
95
|
-
/* @__PURE__ */ i(J, { className: "ttw:size-5 ttw:text-primary" }),
|
|
96
|
-
n._("Add item")
|
|
97
|
-
] }),
|
|
98
|
-
/* @__PURE__ */ i(tt, { name: "tax_rate", control: h, render: ({
|
|
99
|
-
field: t
|
|
100
|
-
}) => /* @__PURE__ */ i(H, { children: /* @__PURE__ */ l(Q, { className: "ttw:flex-row ttw:justify-end", children: [
|
|
101
|
-
/* @__PURE__ */ i(Y, { htmlFor: t.name, children: n._("Tax rate") }),
|
|
102
|
-
/* @__PURE__ */ l(rt, { className: "ttw:w-28 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0", children: [
|
|
103
|
-
/* @__PURE__ */ i(nt, { ...t, value: t.value ?? "", id: t.name, className: "ttw:text-right", placeholder: n._("e.g. 6.25"), type: "text", inputMode: "decimal", onChange: (e) => {
|
|
104
|
-
t.onChange(ot(e.target.value));
|
|
105
|
-
}, onBlur: (e) => {
|
|
106
|
-
const a = e.target.value;
|
|
107
|
-
t.onChange(a.endsWith(".") ? a.slice(0, -1) : a), t.onBlur();
|
|
108
|
-
} }),
|
|
109
|
-
/* @__PURE__ */ i(at, { align: "inline-end", children: "%" })
|
|
110
|
-
] })
|
|
111
|
-
] }) }) }),
|
|
112
|
-
/* @__PURE__ */ i(st, {}),
|
|
113
|
-
/* @__PURE__ */ i(k, { subtotalPrice: L, totalTaxes: F, totalPrice: P })
|
|
114
|
-
] });
|
|
115
|
-
};
|
|
1
|
+
function s(...r) {
|
|
2
|
+
let o = "";
|
|
3
|
+
for (const t of r)
|
|
4
|
+
t && (o += t + " ");
|
|
5
|
+
return o;
|
|
6
|
+
}
|
|
116
7
|
export {
|
|
117
|
-
|
|
8
|
+
s as classNames
|
|
118
9
|
};
|
|
@@ -1,72 +1,252 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as re } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { EntitySection as ie } from "./index198.js";
|
|
3
|
+
import { ItemsSection as ne } from "./index199.js";
|
|
4
|
+
import { getUpdateInvoiceValidationSchema as oe } from "./index201.js";
|
|
5
|
+
import { RemindersSection as de } from "./index319.js";
|
|
6
|
+
import { INVOICE_DOCUMENT_AUTO_ID as se } from "./index286.js";
|
|
7
|
+
import { useMeasureUnitsMapping as me } from "./index320.js";
|
|
8
|
+
import { useUpdateReceivable as ue } from "./index321.js";
|
|
9
|
+
import { useUpdateReceivableLineItems as _e } from "./index322.js";
|
|
10
|
+
import { useLineItemSubmitCleanup as le } from "./index208.js";
|
|
11
|
+
import { useCounterpartById as ce } from "./index72.js";
|
|
12
|
+
import "@tanstack/react-query";
|
|
13
|
+
import "./index59.js";
|
|
14
|
+
import { useCounterpartAddresses as pe } from "./index74.js";
|
|
15
|
+
import { parseISO as fe } from "date-fns";
|
|
16
|
+
import { useMyEntity as ye } from "./index80.js";
|
|
17
|
+
import { useMemo as I, useState as M, useCallback as ve, useId as be } from "react";
|
|
18
|
+
import "react-hot-toast";
|
|
19
|
+
import { useLingui as xe } from "@lingui/react";
|
|
20
|
+
import { rateMinorToMajor as N, rateMajorToMinor as ge } from "./index211.js";
|
|
21
|
+
import { ConfirmationModal as he } from "./index263.js";
|
|
22
|
+
import { Dialog as we, DialogContent as Ce, DialogHeader as De, DialogTitle as $e, DialogDescription as Ie, DialogClose as Me } from "./index196.js";
|
|
23
|
+
import { Button as S } from "./index86.js";
|
|
24
|
+
import { zodResolver as Ne } from "@hookform/resolvers/zod";
|
|
25
|
+
import { useForm as Se, FormProvider as Te } from "react-hook-form";
|
|
26
|
+
import { X as Ee } from "lucide-react";
|
|
27
|
+
import { InvoicePreview as ke } from "./index200.js";
|
|
28
|
+
import { useGetPaymentTerms as Pe } from "./index323.js";
|
|
29
|
+
import { useGetMeasureUnits as Ue } from "./index213.js";
|
|
30
|
+
import { CreateProduct as Le } from "./index46.js";
|
|
31
|
+
import { buildPaymentTermsPayload as Fe, CUSTOM_DATE_PAYMENT_TERM as Oe, RECEIPT_DUE_PAYMENT_TERM as Re } from "./index202.js";
|
|
32
|
+
const Ve = (e) => {
|
|
33
|
+
if (e?.id)
|
|
34
|
+
return {
|
|
35
|
+
payment_terms_id: e.id,
|
|
36
|
+
payment_terms_custom_date: null
|
|
37
|
+
};
|
|
38
|
+
const m = e?.term_final?.end_date;
|
|
39
|
+
return m ? {
|
|
40
|
+
payment_terms_id: Oe,
|
|
41
|
+
payment_terms_custom_date: fe(m)
|
|
42
|
+
} : e?.term_final?.number_of_days === 0 ? {
|
|
43
|
+
payment_terms_id: Re,
|
|
44
|
+
payment_terms_custom_date: null
|
|
45
|
+
} : {
|
|
46
|
+
payment_terms_id: "",
|
|
47
|
+
payment_terms_custom_date: null
|
|
32
48
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
}, bt = (e) => /* @__PURE__ */ r(je, { ...e }), je = ({
|
|
50
|
+
invoice: e,
|
|
51
|
+
onCancel: m,
|
|
52
|
+
onUpdated: T,
|
|
53
|
+
isOpen: E
|
|
54
|
+
}) => {
|
|
55
|
+
const {
|
|
56
|
+
i18n: n
|
|
57
|
+
} = xe(), {
|
|
58
|
+
data: k,
|
|
59
|
+
isLoading: P
|
|
60
|
+
} = ye(), {
|
|
61
|
+
data: U
|
|
62
|
+
} = Pe(), {
|
|
63
|
+
data: f,
|
|
64
|
+
isLoading: L
|
|
65
|
+
} = Ue(), F = I(() => ({
|
|
66
|
+
/** Customer section */
|
|
67
|
+
counterpart_id: e.counterpart_id,
|
|
68
|
+
default_shipping_address_id: e.counterpart_shipping_address?.id ?? "",
|
|
69
|
+
default_billing_address_id: e.counterpart_billing_address?.id ?? "",
|
|
70
|
+
/** Entity section */
|
|
71
|
+
purchase_order: e.purchase_order ?? "",
|
|
72
|
+
footer: e.footer ?? "",
|
|
73
|
+
/** Items section */
|
|
74
|
+
tax_rate: (() => {
|
|
75
|
+
const t = e.line_items.find((a) => a.product.tax_rate?.value !== void 0);
|
|
76
|
+
return t ? String(N(t.product.tax_rate.value ?? 0)) : void 0;
|
|
77
|
+
})(),
|
|
78
|
+
line_items: e.line_items.map((t) => {
|
|
79
|
+
const a = t.product.measure_unit?.name, d = t.product.measure_unit?.id;
|
|
80
|
+
return {
|
|
81
|
+
quantity: t.quantity,
|
|
82
|
+
product_id: t.product.id,
|
|
83
|
+
taxable: t.tax_status === "taxable",
|
|
84
|
+
product: {
|
|
85
|
+
name: t.product.name,
|
|
86
|
+
price: e.tax_mode === "inclusive" ? t.product.price_after_tax : t.product.price,
|
|
87
|
+
// Get measure_unit_id directly from the API response if available
|
|
88
|
+
measure_unit_id: d && d !== "" ? d : void 0,
|
|
89
|
+
// Store the measure unit name separately for custom units
|
|
90
|
+
measure_unit_name: !d && a ? a : void 0,
|
|
91
|
+
type: t.product.type || "product"
|
|
92
|
+
},
|
|
93
|
+
// For custom measure units that don't have an ID but have a name
|
|
94
|
+
measure_unit: !d && a ? {
|
|
95
|
+
name: a,
|
|
96
|
+
id: null
|
|
97
|
+
} : void 0,
|
|
98
|
+
tax_rate_value: t.product.tax_rate.value !== void 0 ? N(t.product.tax_rate.value) : void 0
|
|
99
|
+
};
|
|
100
|
+
}),
|
|
101
|
+
memo: e.memo ?? "",
|
|
102
|
+
/** Payment section */
|
|
103
|
+
bank_account_id: e.bank_account_id ?? "",
|
|
104
|
+
...Ve(e.payment_terms),
|
|
105
|
+
/** Reminders section */
|
|
106
|
+
payment_reminder_id: e.payment_reminder_id ?? "",
|
|
107
|
+
overdue_reminder_id: e.overdue_reminder_id ?? "",
|
|
108
|
+
tax_mode: e.tax_mode ?? "exclusive"
|
|
109
|
+
}), [e]), y = Se({
|
|
110
|
+
resolver: Ne(oe(n)),
|
|
111
|
+
defaultValues: F
|
|
112
|
+
}), c = e.currency, {
|
|
113
|
+
handleSubmit: O,
|
|
114
|
+
formState: {
|
|
115
|
+
isDirty: v
|
|
116
|
+
},
|
|
117
|
+
getValues: R,
|
|
118
|
+
reset: V,
|
|
119
|
+
watch: o
|
|
120
|
+
} = y, {
|
|
121
|
+
registerLineItemCleanupFn: j,
|
|
122
|
+
runLineItemCleanup: A
|
|
123
|
+
} = le();
|
|
124
|
+
me(f, R, V);
|
|
125
|
+
const [q, b] = M(!1), [x, p] = M(!1), B = ve(() => {
|
|
126
|
+
if (!v) {
|
|
127
|
+
m();
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
b(!0);
|
|
131
|
+
}, [v, m]), g = _e(e.id), h = ue(e.id), Y = o("line_items"), z = o("payment_terms_id"), G = o("memo"), H = o("footer"), X = o("purchase_order"), J = o("bank_account_id"), K = o("tax_mode"), Q = o("tax_rate"), w = o("counterpart_id"), C = o("default_billing_address_id"), {
|
|
132
|
+
data: W
|
|
133
|
+
} = ce(w), {
|
|
134
|
+
data: D
|
|
135
|
+
} = pe(w), Z = I(() => D?.data?.find((t) => t.id === C), [C, D?.data]), _ = g.isPending || h.isPending || P || L, $ = `Monite-Form-receivablesDetailsForm-${be()}`;
|
|
136
|
+
return /* @__PURE__ */ s(re, { children: [
|
|
137
|
+
/* @__PURE__ */ r(we, { open: E, modal: !1, children: /* @__PURE__ */ s(Ce, { fullScreen: !0, showCloseButton: !1, className: "ttw:flex", onInteractOutside: (t) => t.preventDefault(), children: [
|
|
138
|
+
/* @__PURE__ */ s("div", { className: "ttw:flex-1/2 ttw:overflow-y-auto ttw:pr-14", children: [
|
|
139
|
+
/* @__PURE__ */ s(De, { className: "ttw:flex-row ttw:justify-between ttw:bg-white ttw:pb-4 ttw:sticky ttw:top-0 ttw:z-9999", children: [
|
|
140
|
+
/* @__PURE__ */ r($e, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
141
|
+
/* @__PURE__ */ r(Ie, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
142
|
+
/* @__PURE__ */ r(Me, { asChild: !0, children: /* @__PURE__ */ r(S, { variant: "ghost", onClick: B, disabled: _, "aria-label": n._("Close"), children: /* @__PURE__ */ r(Ee, {}) }) }),
|
|
143
|
+
/* @__PURE__ */ r(S, { type: "submit", form: $, disabled: _, children: n._("Update") })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ r(Te, { ...y, children: /* @__PURE__ */ r("form", { id: $, noValidate: !0, onSubmit: async (t) => {
|
|
146
|
+
t.preventDefault(), A(), await O((a) => {
|
|
147
|
+
const d = {
|
|
148
|
+
data: a.line_items.filter((i) => !!i.product?.name?.trim()).map((i) => {
|
|
149
|
+
const u = i;
|
|
150
|
+
let l;
|
|
151
|
+
if (u.product.measure_unit_id) {
|
|
152
|
+
const te = u.product.measure_unit_id;
|
|
153
|
+
l = f?.data?.find((ae) => ae.id === te)?.name;
|
|
154
|
+
} else (u.product.measure_unit_name || u.measure_unit?.name) && (l = u.product.measure_unit_name || u.measure_unit?.name);
|
|
155
|
+
return {
|
|
156
|
+
quantity: i.quantity,
|
|
157
|
+
tax_status: i.taxable ? "taxable" : "non_taxable",
|
|
158
|
+
product: {
|
|
159
|
+
name: i.product.name,
|
|
160
|
+
type: i.product.type,
|
|
161
|
+
measure_unit: l ? {
|
|
162
|
+
name: l
|
|
163
|
+
} : void 0,
|
|
164
|
+
price: i.product.price ? {
|
|
165
|
+
currency: i.product.price.currency ?? "USD",
|
|
166
|
+
value: Math.round(i.product.price.value ?? 0)
|
|
167
|
+
} : void 0
|
|
168
|
+
},
|
|
169
|
+
tax_rate_value: i.taxable && a.tax_rate !== void 0 ? ge(Number(a.tax_rate)) : void 0
|
|
170
|
+
};
|
|
171
|
+
})
|
|
172
|
+
}, ee = {
|
|
173
|
+
invoice: {
|
|
174
|
+
/** Customer section */
|
|
175
|
+
counterpart_id: a.counterpart_id,
|
|
176
|
+
currency: c,
|
|
177
|
+
memo: a.memo,
|
|
178
|
+
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
179
|
+
counterpart_shipping_address_id: a?.default_shipping_address_id || null,
|
|
180
|
+
counterpart_billing_address_id: a?.default_billing_address_id,
|
|
181
|
+
/** We shouldn't send an empty string to the server if the value is not set */
|
|
182
|
+
bank_account_id: e.bank_account_id,
|
|
183
|
+
bank_account_type: e.bank_account_type,
|
|
184
|
+
/**
|
|
185
|
+
* Payment terms aren't editable here — rebuild the
|
|
186
|
+
* request payload from the seeded form values (a saved
|
|
187
|
+
* `payment_terms_id`, or an inline `payment_terms`
|
|
188
|
+
* object for "Custom date" / "Due on receipt") so the
|
|
189
|
+
* backend keeps the same due date. Reusing the shared
|
|
190
|
+
* builder guarantees a request-shaped
|
|
191
|
+
* `InlinePaymentTermsRequestPayload` rather than the
|
|
192
|
+
* response object, which carries id/name/description
|
|
193
|
+
* that the request type rejects.
|
|
194
|
+
*/
|
|
195
|
+
...Fe({
|
|
196
|
+
paymentTermId: a.payment_terms_id,
|
|
197
|
+
customDueDate: a.payment_terms_custom_date
|
|
198
|
+
}),
|
|
199
|
+
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
200
|
+
payment_reminder_id: a.payment_reminder_id || null,
|
|
201
|
+
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
202
|
+
overdue_reminder_id: a.overdue_reminder_id || null
|
|
203
|
+
/** !!! Note !!! Backend is not supported to edit `purchase_order` so we have to remove it */
|
|
204
|
+
// purchase_order: values.purchase_order || undefined,
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
g.mutate(d, {
|
|
208
|
+
onSuccess: () => {
|
|
209
|
+
h.mutate(ee, {
|
|
210
|
+
onSuccess: (i) => {
|
|
211
|
+
T(i);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
})(t);
|
|
217
|
+
}, className: "ttw:mb-14", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-8", children: [
|
|
218
|
+
/* @__PURE__ */ s("h1", { className: "ttw:text-2xl ttw:font-bold", children: [
|
|
219
|
+
n._("Invoice"),
|
|
220
|
+
" ",
|
|
221
|
+
/* @__PURE__ */ s("span", { className: "ttw:text-gray-500", children: [
|
|
222
|
+
"#",
|
|
223
|
+
e.document_id ?? se
|
|
224
|
+
] })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ r(ne, { defaultCurrency: c, registerLineItemCleanupFn: j, handleOpenCreateProductDialog: () => p(!0) }),
|
|
227
|
+
/* @__PURE__ */ r(ie, { disabled: _ }),
|
|
228
|
+
/* @__PURE__ */ r(de, { disabled: _ })
|
|
229
|
+
] }) }) })
|
|
230
|
+
] }),
|
|
231
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex-1/2 ttw:w-1/2", children: /* @__PURE__ */ r(ke, { invoiceData: {
|
|
232
|
+
payment_terms_id: z,
|
|
233
|
+
line_items: (Y || []).map((t) => ({
|
|
234
|
+
...t,
|
|
235
|
+
id: t.id || `temp-${Math.random().toString(36).substr(2, 9)}`
|
|
236
|
+
})),
|
|
237
|
+
memo: G,
|
|
238
|
+
footer: H,
|
|
239
|
+
bank_account_id: J,
|
|
240
|
+
bank_account_type: e.bank_account_type,
|
|
241
|
+
tax_mode: K,
|
|
242
|
+
purchase_order: X || void 0,
|
|
243
|
+
tax_rate: Q
|
|
244
|
+
}, counterpart: W, currency: c, entityData: k, address: Z, paymentTerms: U }) })
|
|
245
|
+
] }) }),
|
|
246
|
+
x && /* @__PURE__ */ r(Le, { open: x, onClose: () => p(!1), onCreated: () => p(!1) }),
|
|
247
|
+
/* @__PURE__ */ r(he, { open: q, title: n._("Cancel without saving?"), message: n._("There are unsaved changes. If you leave, they will be lost."), confirmLabel: n._("Yes"), cancelLabel: n._("No"), onClose: () => b(!1), onConfirm: m })
|
|
248
|
+
] });
|
|
69
249
|
};
|
|
70
250
|
export {
|
|
71
|
-
|
|
251
|
+
bt as EditInvoiceDetails
|
|
72
252
|
};
|