@tesouro/embedded-components-react 0.2.74 → 0.2.75
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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- 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 +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.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/index117.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +5 -5
- 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 +7 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +72 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -11
- 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 +11 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +150 -24
- 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 +1 -1
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +43 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +38 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +113 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +191 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +30 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +110 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +133 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +22 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +21 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +183 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +11 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +48 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +5 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +86 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +6 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +41 -131
- 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 +45 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +390 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +57 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +26 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +95 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +97 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +14 -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 +2 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +397 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +68 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +2 -394
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +407 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +18 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +18 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +27 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +116 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +69 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +12 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +4 -4
- 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 +32 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +48 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +54 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +345 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +15 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +12 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +20 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +32 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +15 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +17 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +250 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +180 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +38 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +30 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +96 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +42 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +57 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +28 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +114 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +53 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +14 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +74 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +75 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +41 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +72 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +485 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +160 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +65 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +42 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +25 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +104 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +81 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +284 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +46 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +83 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +223 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +39 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +149 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +93 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +68 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +17 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +46 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +49 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +17 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +34 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +28 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +38 -4
- 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 +61 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +93 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +109 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +85 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +94 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +96 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +191 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +62 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +8 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +44 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +25 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +127 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +156 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +28 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +29 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +41 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +342 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +303 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +98 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +160 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +260 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +20 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +18 -480
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +74 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +32 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +20 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +22 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +56 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +27 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +55 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +17 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +17 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +161 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +133 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +155 -278
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +60 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +64 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +56 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +59 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +20 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +28 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +65 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +45 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +38 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +102 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +21 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +55 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +31 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +41 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +23 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +94 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +34 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +119 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +70 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +73 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +67 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +37 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +85 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +100 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +105 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +37 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +54 -33
- 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 +36 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +26 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +30 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +4 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +124 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +4 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +10 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +34 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +33 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +7 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +54 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +15 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +49 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +21 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +26 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +66 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +46 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +28 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +70 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +84 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +51 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +51 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +40 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +46 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +49 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +82 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +93 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +16 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +75 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +20 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +9 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +13 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +17 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +49 -53
- 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 +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +30 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +15 -39
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- 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/index6.js +4 -4
- 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 +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- 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 +24 -24
- package/package.json +1 -1
|
@@ -1,4 +1,252 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as re } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ItemsSection as ie } from "./index171.js";
|
|
3
|
+
import { getUpdateInvoiceValidationSchema as ne } from "./index173.js";
|
|
4
|
+
import { RemindersSection as oe } from "./index287.js";
|
|
5
|
+
import { INVOICE_DOCUMENT_AUTO_ID as de } from "./index237.js";
|
|
6
|
+
import { useMeasureUnitsMapping as se } from "./index361.js";
|
|
7
|
+
import { useUpdateReceivable as me } from "./index362.js";
|
|
8
|
+
import { useUpdateReceivableLineItems as ue } from "./index363.js";
|
|
9
|
+
import { useLineItemSubmitCleanup as _e } from "./index182.js";
|
|
10
|
+
import { useCounterpartById as le } from "./index70.js";
|
|
11
|
+
import "@tanstack/react-query";
|
|
12
|
+
import "./index57.js";
|
|
13
|
+
import { useCounterpartAddresses as ce } from "./index72.js";
|
|
14
|
+
import { parseISO as pe } from "date-fns";
|
|
15
|
+
import { useMyEntity as fe } from "./index78.js";
|
|
16
|
+
import { useMemo as M, useState as I, useCallback as ye, useId as ve } from "react";
|
|
17
|
+
import "react-hot-toast";
|
|
18
|
+
import { useLingui as be } from "@lingui/react";
|
|
19
|
+
import { rateMinorToMajor as N, rateMajorToMinor as xe } from "./index185.js";
|
|
20
|
+
import { ConfirmationModal as ge } from "./index297.js";
|
|
21
|
+
import { Dialog as he, DialogContent as we, DialogHeader as Ce, DialogTitle as De, DialogDescription as $e, DialogClose as Me } from "./index187.js";
|
|
22
|
+
import { Button as S } from "./index84.js";
|
|
23
|
+
import { zodResolver as Ie } from "@hookform/resolvers/zod";
|
|
24
|
+
import { useForm as Ne, FormProvider as Se } from "react-hook-form";
|
|
25
|
+
import { X as Te } from "lucide-react";
|
|
26
|
+
import { InvoicePreview as ke } from "./index172.js";
|
|
27
|
+
import { useGetPaymentTerms as Ee } from "./index364.js";
|
|
28
|
+
import { useGetMeasureUnits as Pe } from "./index188.js";
|
|
29
|
+
import { CreateProduct as Ue } from "./index44.js";
|
|
30
|
+
import { buildPaymentTermsPayload as Le, CUSTOM_DATE_PAYMENT_TERM as Fe, RECEIPT_DUE_PAYMENT_TERM as Oe } from "./index174.js";
|
|
31
|
+
import { NotesSection as Re } from "./index190.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: Fe,
|
|
41
|
+
payment_terms_custom_date: pe(m)
|
|
42
|
+
} : e?.term_final?.number_of_days === 0 ? {
|
|
43
|
+
payment_terms_id: Oe,
|
|
44
|
+
payment_terms_custom_date: null
|
|
45
|
+
} : {
|
|
46
|
+
payment_terms_id: "",
|
|
47
|
+
payment_terms_custom_date: null
|
|
48
|
+
};
|
|
49
|
+
}, bt = (e) => /* @__PURE__ */ r(je, { ...e }), je = ({
|
|
50
|
+
invoice: e,
|
|
51
|
+
onCancel: m,
|
|
52
|
+
onUpdated: T,
|
|
53
|
+
isOpen: k
|
|
54
|
+
}) => {
|
|
55
|
+
const {
|
|
56
|
+
i18n: n
|
|
57
|
+
} = be(), {
|
|
58
|
+
data: E,
|
|
59
|
+
isLoading: P
|
|
60
|
+
} = fe(), {
|
|
61
|
+
data: U
|
|
62
|
+
} = Ee(), {
|
|
63
|
+
data: f,
|
|
64
|
+
isLoading: L
|
|
65
|
+
} = Pe(), F = M(() => ({
|
|
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 = Ne({
|
|
110
|
+
resolver: Ie(ne(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
|
+
} = _e();
|
|
124
|
+
se(f, R, V);
|
|
125
|
+
const [q, b] = I(!1), [x, p] = I(!1), B = ye(() => {
|
|
126
|
+
if (!v) {
|
|
127
|
+
m();
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
b(!0);
|
|
131
|
+
}, [v, m]), g = ue(e.id), h = me(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
|
+
} = le(w), {
|
|
134
|
+
data: D
|
|
135
|
+
} = ce(w), Z = M(() => D?.data?.find((t) => t.id === C), [C, D?.data]), _ = g.isPending || h.isPending || P || L, $ = `Monite-Form-receivablesDetailsForm-${ve()}`;
|
|
136
|
+
return /* @__PURE__ */ s(re, { children: [
|
|
137
|
+
/* @__PURE__ */ r(he, { open: k, modal: !1, children: /* @__PURE__ */ s(we, { 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(Ce, { 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(De, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
141
|
+
/* @__PURE__ */ r($e, { 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(Te, {}) }) }),
|
|
143
|
+
/* @__PURE__ */ r(S, { type: "submit", form: $, disabled: _, children: n._("Update") })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ r(Se, { ...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 ? xe(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
|
+
...Le({
|
|
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 ?? de
|
|
224
|
+
] })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ r(ie, { defaultCurrency: c, registerLineItemCleanupFn: j, handleOpenCreateProductDialog: () => p(!0) }),
|
|
227
|
+
/* @__PURE__ */ r(Re, { disabled: _ }),
|
|
228
|
+
/* @__PURE__ */ r(oe, { 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: E, address: Z, paymentTerms: U }) })
|
|
245
|
+
] }) }),
|
|
246
|
+
x && /* @__PURE__ */ r(Ue, { open: x, onClose: () => p(!1), onCreated: () => p(!1) }),
|
|
247
|
+
/* @__PURE__ */ r(ge, { 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
|
+
] });
|
|
249
|
+
};
|
|
2
250
|
export {
|
|
3
|
-
|
|
251
|
+
bt as EditInvoiceDetails
|
|
4
252
|
};
|
|
@@ -1,22 +1,185 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as z } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as Q, useEffect as J, useState as U, useId as W, useCallback as Y } from "react";
|
|
3
|
+
import { useForm as X } from "react-hook-form";
|
|
4
|
+
import { toast as Z } from "react-hot-toast";
|
|
5
|
+
import { useMoniteContext as ee } from "./index57.js";
|
|
6
|
+
import { MoniteScopedProviders as te } from "./index83.js";
|
|
7
|
+
import { useCounterpartById as ie } from "./index70.js";
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import { useCounterpartContactList as oe } from "./index74.js";
|
|
10
|
+
import { useMe as ne, useMyEntity as ae } from "./index78.js";
|
|
11
|
+
import { useLingui as R } from "@lingui/react";
|
|
12
|
+
import { useGetReceivableById as se } from "./index82.js";
|
|
13
|
+
import { CenteredContentBox as re } from "./index229.js";
|
|
14
|
+
import { IconWrapper as de } from "./index230.js";
|
|
15
|
+
import { zodResolver as me } from "@hookform/resolvers/zod";
|
|
16
|
+
import ce from "@mui/icons-material/ArrowBack";
|
|
17
|
+
import le from "@mui/icons-material/Close";
|
|
18
|
+
import { Dialog as ue } from "./index50.js";
|
|
19
|
+
import { DialogTitle as pe, Toolbar as fe, Grid as D, Stack as $, Button as j, Typography as ye, DialogContent as he, CircularProgress as ve } from "@mui/material";
|
|
20
|
+
import { getEmailInvoiceDetailsSchema as be } from "./index173.js";
|
|
21
|
+
import { Form as ge, FormContent as Ie } from "./index365.js";
|
|
22
|
+
import { getDefaultContact as _e } from "./index366.js";
|
|
23
|
+
import { useIssueReceivableById as Ce } from "./index246.js";
|
|
24
|
+
import { useSendReceivableById as xe } from "./index367.js";
|
|
25
|
+
import { PreviewEmail as Ee } from "./index368.js";
|
|
26
|
+
const Ye = (t) => {
|
|
5
27
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
i18n: n
|
|
29
|
+
} = R(), {
|
|
30
|
+
data: a,
|
|
31
|
+
isLoading: m
|
|
32
|
+
} = ne(), {
|
|
33
|
+
data: o,
|
|
34
|
+
isLoading: b
|
|
35
|
+
} = se(t.invoiceId), {
|
|
36
|
+
entityName: s,
|
|
37
|
+
isLoading: l
|
|
38
|
+
} = ae(), {
|
|
39
|
+
data: g,
|
|
40
|
+
isLoading: i
|
|
41
|
+
} = oe(o?.counterpart_id), {
|
|
42
|
+
data: u
|
|
43
|
+
} = ie(o?.counterpart_id), r = _e(g, u), I = r?.email ?? "", p = r && a ? n._(`Hi {firstName},
|
|
44
|
+
|
|
45
|
+
Please find the invoice attached as discussed.
|
|
46
|
+
|
|
47
|
+
Kind Regards,
|
|
48
|
+
{senderName}`, {
|
|
49
|
+
firstName: r.first_name,
|
|
50
|
+
senderName: a.first_name
|
|
51
|
+
}) : n._(`Please find the invoice attached as discussed.
|
|
52
|
+
|
|
53
|
+
Kind Regards,
|
|
54
|
+
{senderName}`, {
|
|
55
|
+
senderName: a?.first_name ?? ""
|
|
56
|
+
}), _ = o && s ? o.document_id ? n._("Invoice {documentId} from {entityName}", {
|
|
57
|
+
documentId: o.document_id,
|
|
58
|
+
entityName: s
|
|
59
|
+
}) : n._("Invoice from {entityName}", {
|
|
60
|
+
entityName: s
|
|
61
|
+
}) : "";
|
|
62
|
+
return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(Pe, { ...t, to: I, body: p, subject: _, isLoading: i || b || m || l, isIssued: o?.status !== "draft", isOpen: t.isOpen }) });
|
|
63
|
+
}, d = {
|
|
64
|
+
Edit: "form",
|
|
65
|
+
Preview: "preview"
|
|
66
|
+
}, Pe = ({
|
|
67
|
+
invoiceId: t,
|
|
68
|
+
subject: n,
|
|
69
|
+
body: a,
|
|
70
|
+
to: m,
|
|
71
|
+
isLoading: o,
|
|
72
|
+
isIssued: b,
|
|
73
|
+
onClose: s,
|
|
74
|
+
onSendEmail: l,
|
|
75
|
+
isOpen: g
|
|
76
|
+
}) => {
|
|
77
|
+
const {
|
|
78
|
+
i18n: i
|
|
79
|
+
} = R(), {
|
|
80
|
+
api: u,
|
|
81
|
+
entityId: r
|
|
82
|
+
} = ee(), {
|
|
83
|
+
control: I,
|
|
84
|
+
handleSubmit: p,
|
|
85
|
+
getValues: _,
|
|
86
|
+
trigger: A,
|
|
87
|
+
reset: S
|
|
88
|
+
} = X({
|
|
89
|
+
resolver: me(be(i)),
|
|
90
|
+
defaultValues: Q(() => ({
|
|
91
|
+
subject: n,
|
|
92
|
+
body: a,
|
|
93
|
+
to: m
|
|
94
|
+
}), [n, a, m])
|
|
95
|
+
}), {
|
|
96
|
+
subject: F,
|
|
97
|
+
body: T
|
|
98
|
+
} = _();
|
|
99
|
+
J(() => {
|
|
100
|
+
S({
|
|
101
|
+
subject: n,
|
|
102
|
+
body: a,
|
|
103
|
+
to: m
|
|
104
|
+
});
|
|
105
|
+
}, [a, S, n, m]);
|
|
106
|
+
const C = xe(t), x = Ce(t), E = u.finops.postPaymentLinks.useMutation({}), {
|
|
107
|
+
data: P
|
|
108
|
+
} = u.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
109
|
+
path: {
|
|
110
|
+
entity_id: r
|
|
17
111
|
}
|
|
18
|
-
})
|
|
112
|
+
}), [f, k] = U(d.Edit), w = `Monite-Form-emailInvoiceDetails-${W()}`, O = Y((L) => {
|
|
113
|
+
L.preventDefault();
|
|
114
|
+
const G = E.mutateAsync, H = x.mutateAsync, K = C.mutate;
|
|
115
|
+
p(async (v) => {
|
|
116
|
+
const M = P ? P.data.filter(({
|
|
117
|
+
status: N,
|
|
118
|
+
direction: q
|
|
119
|
+
}) => N === "active" && q === "receive") : [];
|
|
120
|
+
M.length === 0 ? Z.error(i._("You haven't onboarded for any payment method. Invoice is issued without a payment link.")) : (await H(void 0), await G({
|
|
121
|
+
recipient: {
|
|
122
|
+
id: r,
|
|
123
|
+
type: "entity"
|
|
124
|
+
},
|
|
125
|
+
payment_methods: M.map((N) => N.type),
|
|
126
|
+
object: {
|
|
127
|
+
id: t,
|
|
128
|
+
type: "receivable"
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
131
|
+
const V = {
|
|
132
|
+
body_text: v.body,
|
|
133
|
+
subject_text: v.subject,
|
|
134
|
+
recipients: v.to ? {
|
|
135
|
+
to: [v.to]
|
|
136
|
+
} : void 0
|
|
137
|
+
};
|
|
138
|
+
K(V, {
|
|
139
|
+
onSuccess: () => {
|
|
140
|
+
l?.(t), s();
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
})(L);
|
|
144
|
+
}, [E.mutateAsync, x.mutateAsync, p, i, t, r, s, l, P, C.mutate]), y = x.isPending || C.isPending || E.isPending, B = "Monite-EmailInvoiceDetails", h = f == d.Preview;
|
|
145
|
+
return /* @__PURE__ */ c(ue, { open: g, fullScreen: !0, onClose: s, children: [
|
|
146
|
+
/* @__PURE__ */ e(pe, { className: B + "-Title", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ c(D, { container: !0, children: [
|
|
147
|
+
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
148
|
+
f == d.Edit && /* @__PURE__ */ c(z, { children: [
|
|
149
|
+
/* @__PURE__ */ e(j, { variant: "text", color: "primary", onClick: s, startIcon: /* @__PURE__ */ e(ce, {}), disabled: y, "data-testid": "back-button", children: i._("Back") }),
|
|
150
|
+
/* @__PURE__ */ e(ye, { variant: "h3", children: i._("Compose email") })
|
|
151
|
+
] }),
|
|
152
|
+
h && /* @__PURE__ */ e(de, { edge: "start", color: "inherit", onClick: () => {
|
|
153
|
+
k(d.Edit);
|
|
154
|
+
}, "aria-label": i._("Back to edit"), "data-testid": "close-preview-button", children: /* @__PURE__ */ e(le, {}) })
|
|
155
|
+
] }) }),
|
|
156
|
+
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", justifyContent: "end", spacing: 2, children: [
|
|
157
|
+
f == d.Edit && /* @__PURE__ */ e(j, { variant: "outlined", color: "primary", type: "button", form: w, disabled: y || o, onClick: async () => {
|
|
158
|
+
await A() && k(d.Preview);
|
|
159
|
+
}, "data-testid": "preview-button", children: i._("Preview email") }),
|
|
160
|
+
/* @__PURE__ */ e(j, { variant: "contained", color: "primary", type: "submit", form: w, disabled: y || o, "data-testid": "issue-and-send-button", children: b ? i._("Send") : i._("Issue and Send") })
|
|
161
|
+
] }) })
|
|
162
|
+
] }) }) }),
|
|
163
|
+
/* @__PURE__ */ e(he, { className: B + "-Content", sx: {
|
|
164
|
+
mt: h ? 0 : 4,
|
|
165
|
+
p: h ? 0 : "0 32px 32px 32px",
|
|
166
|
+
height: "100%",
|
|
167
|
+
width: "100%",
|
|
168
|
+
display: "flex",
|
|
169
|
+
flexDirection: "column"
|
|
170
|
+
}, children: /* @__PURE__ */ c(ge, { formName: w, handleIssueAndSend: O, style: {
|
|
171
|
+
display: "flex",
|
|
172
|
+
flexDirection: "column",
|
|
173
|
+
flex: 1,
|
|
174
|
+
minHeight: 0,
|
|
175
|
+
width: "100%"
|
|
176
|
+
}, children: [
|
|
177
|
+
o ? /* @__PURE__ */ e(re, { className: "Monite-LoadingPage", children: /* @__PURE__ */ e(ve, {}) }) : f == d.Edit && /* @__PURE__ */ e(Ie, { invoiceId: t, control: I, isDisabled: y }),
|
|
178
|
+
h && /* @__PURE__ */ e(Ee, { invoiceId: t, body: T, subject: F })
|
|
179
|
+
] }) })
|
|
180
|
+
] });
|
|
19
181
|
};
|
|
20
182
|
export {
|
|
21
|
-
|
|
183
|
+
Ye as EmailInvoiceDetails,
|
|
184
|
+
Pe as EmailInvoiceDetailsBase
|
|
22
185
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
};
|
|
1
|
+
import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as e } from "./index85.js";
|
|
3
|
+
function i({
|
|
4
|
+
label: r,
|
|
5
|
+
value: o
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
|
|
8
|
+
/* @__PURE__ */ t(e, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: r }),
|
|
9
|
+
/* @__PURE__ */ t(e, { component: "span", variant: "body2", className: "ttw:whitespace-pre-line", children: o })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
i as InvoiceDetailsInfoRow
|
|
16
14
|
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
1
|
+
import { jsxs as i, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as r } from "./index85.js";
|
|
3
|
+
import { ChevronRight as s } from "lucide-react";
|
|
4
|
+
function d({
|
|
5
|
+
label: e,
|
|
6
|
+
name: o,
|
|
7
|
+
onOpenCounterpart: n
|
|
8
|
+
}) {
|
|
9
|
+
const a = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
|
|
10
|
+
return n ? /* @__PURE__ */ i("button", { type: "button", onClick: n, "aria-haspopup": "dialog", className: `ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-ring/50 ttw:focus-visible:ring-[3px] ${a}`, children: [
|
|
11
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: e }),
|
|
12
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "primary", className: "ttw:underline-offset-4 ttw:group-hover:underline", children: o }),
|
|
13
|
+
/* @__PURE__ */ t(s, { className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground", "aria-hidden": "true" })
|
|
14
|
+
] }) : /* @__PURE__ */ i("div", { className: a, children: [
|
|
15
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: e }),
|
|
16
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", children: o })
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
14
19
|
export {
|
|
15
|
-
|
|
20
|
+
d as InvoiceDetailsCustomerRow
|
|
16
21
|
};
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useGetReceivableById as r } from "./index82.js";
|
|
3
|
+
import { useCancelReceivableById as m } from "./index369.js";
|
|
4
|
+
import { ConfirmationModal as d } from "./index297.js";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
6
|
+
const v = ({
|
|
7
|
+
invoiceId: o,
|
|
8
|
+
open: c,
|
|
9
|
+
onClose: i
|
|
10
|
+
}) => {
|
|
3
11
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
i18n: e
|
|
13
|
+
} = u(), {
|
|
14
|
+
data: n,
|
|
15
|
+
isLoading: t
|
|
16
|
+
} = r(o), a = m(o);
|
|
17
|
+
if (!n)
|
|
18
|
+
return null;
|
|
19
|
+
const l = n.document_id ? e._("Cancel receivable") + ` "${n?.document_id}"?` : e._("Cancel receivable?");
|
|
20
|
+
return /* @__PURE__ */ s(d, { open: c && !!o, title: l, message: e._("This action can't be undone."), confirmLabel: e._("Cancel"), cancelLabel: e._("Close"), onClose: i, onConfirm: () => {
|
|
21
|
+
a.mutate(void 0, {
|
|
22
|
+
onSuccess: i
|
|
23
|
+
});
|
|
24
|
+
}, isLoading: a.isPending || t });
|
|
13
25
|
};
|
|
14
26
|
export {
|
|
15
|
-
|
|
27
|
+
v as InvoiceCancelModal
|
|
16
28
|
};
|
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDeleteReceivableById as u } from "./index370.js";
|
|
3
|
+
import { useComponentSettings as f } from "./index67.js";
|
|
4
|
+
import { useUserPermissions as v } from "./index130.js";
|
|
5
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
6
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
10
|
+
import { Scope as b } from "../../shared/data-access/dist/lib/scopes.js";
|
|
11
|
+
import "react";
|
|
12
|
+
import { ConfirmationModal as C } from "./index297.js";
|
|
13
|
+
import { useLingui as D } from "@lingui/react";
|
|
14
|
+
import { toast as I } from "react-hot-toast";
|
|
15
|
+
const H = ({
|
|
16
|
+
open: r,
|
|
17
|
+
onClose: o,
|
|
18
|
+
invoiceId: t,
|
|
19
|
+
onDelete: n,
|
|
20
|
+
documentId: i
|
|
21
|
+
}) => {
|
|
3
22
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, {
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
i18n: e
|
|
24
|
+
} = D(), {
|
|
25
|
+
receivablesCallbacks: s
|
|
26
|
+
} = f(), {
|
|
27
|
+
mutate: m,
|
|
28
|
+
isPending: a
|
|
29
|
+
} = u(t), l = v().has(b.InvoiceWriteOrg), c = () => {
|
|
30
|
+
l ? m(void 0, {
|
|
31
|
+
onSuccess: () => {
|
|
32
|
+
s?.onDelete?.(t), n?.(), o();
|
|
33
|
+
}
|
|
34
|
+
}) : I.error(e._("You don't have permission to delete this document. Please, contact your system administrator for details."));
|
|
35
|
+
}, p = i ? e._("Delete receivable “{documentId}”?", {
|
|
36
|
+
documentId: i
|
|
37
|
+
}) : e._("Delete receivable?");
|
|
38
|
+
return /* @__PURE__ */ d(C, { open: r, title: p, message: e._("This action can't be undone."), confirmLabel: e._("Delete"), cancelLabel: e._("Cancel"), onClose: o, onConfirm: c, isLoading: a });
|
|
13
39
|
};
|
|
14
40
|
export {
|
|
15
|
-
|
|
41
|
+
H as InvoiceDeleteModal
|
|
16
42
|
};
|