@tesouro/embedded-components-react 0.2.33 → 0.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -3
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -12
- 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 +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +1271 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +23 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -1271
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +10 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +76 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +31 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +9 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +14 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +121 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +44 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +13 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +147 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +53 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +71 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +3 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +61 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +37 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +79 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +99 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +57 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +88 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +101 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +15 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +12 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +27 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +109 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +68 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +41 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +73 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +54 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +196 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +79 -75
- 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 +28 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +41 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +246 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +178 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +13 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +113 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +103 -244
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +104 -177
- 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 +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +60 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +86 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +109 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +68 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +185 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +29 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +123 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +53 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +19 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +28 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +20 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +10 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +18 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +46 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +366 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +22 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +12 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -367
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +90 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +397 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +68 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +406 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.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 +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +32 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +47 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +74 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +32 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +142 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +86 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +183 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +17 -487
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +37 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +78 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +44 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +72 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +67 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +36 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +342 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +31 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +35 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +17 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +26 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +40 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +45 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +30 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +98 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +44 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +94 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +95 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +192 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +35 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +342 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +303 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +101 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +156 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +260 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +17 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +28 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +39 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +63 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +96 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +107 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +62 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +27 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +59 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +20 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +42 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +60 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +113 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +43 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +149 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +19 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +37 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +44 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +35 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +34 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +6 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +103 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +33 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +57 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +16 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +59 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +12 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +88 -339
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +121 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +16 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +37 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +40 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +16 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +17 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +170 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +133 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +161 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +9 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +18 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +61 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +64 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +60 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +11 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +57 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +22 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +63 -28
- 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 +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +65 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +43 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +23 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +185 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +98 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +81 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +289 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +43 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -49
- 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 +86 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +218 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +46 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +106 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +482 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +163 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +125 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +157 -61
- 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 +28 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +26 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +77 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +66 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +45 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +25 -14
- 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 +26 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +94 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +9 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +13 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +11 -69
- 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 +67 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +32 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +92 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +29 -16
- 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 +53 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +49 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +118 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -7
- 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 +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +68 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +63 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +9 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +36 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +65 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +2 -39
- 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 +59 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +95 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +112 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +71 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +39 -16
- 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 +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +37 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +9 -35
- 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 +17 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +31 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +92 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +74 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +9 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +69 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +21 -72
- 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 +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +34 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +48 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +59 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +33 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +82 -33
- 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 +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +39 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +48 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +71 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +82 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +55 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +52 -81
- 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 +54 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { useMoniteContext as o } from "./index59.js";
|
|
2
|
+
import { getAPIErrorMessage as n } from "./index125.js";
|
|
3
|
+
import { useLingui as p } from "@lingui/react";
|
|
4
|
+
import { toast as c } from "react-hot-toast";
|
|
5
|
+
const g = (e) => {
|
|
6
|
+
const {
|
|
7
|
+
api: r,
|
|
8
|
+
queryClient: i
|
|
9
|
+
} = o(), {
|
|
10
|
+
i18n: t
|
|
11
|
+
} = p();
|
|
12
|
+
return r.finops.putReceivablesIdLineItems.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
receivable_id: e
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: async () => {
|
|
18
|
+
await r.finops.getReceivablesId.invalidateQueries({
|
|
19
|
+
parameters: {
|
|
20
|
+
path: {
|
|
21
|
+
receivable_id: e
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, i);
|
|
25
|
+
},
|
|
26
|
+
onError: (s) => {
|
|
27
|
+
const a = n(t, s);
|
|
28
|
+
c.error(t._("Failed to update receivable line items: {errorMessage}", {
|
|
29
|
+
errorMessage: a
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
17
34
|
export {
|
|
18
|
-
|
|
35
|
+
g as useUpdateReceivableLineItems
|
|
19
36
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as n } from "./index59.js";
|
|
2
|
-
import { getAPIErrorMessage as p } from "./
|
|
2
|
+
import { getAPIErrorMessage as p } from "./index125.js";
|
|
3
3
|
import { useLingui as d } from "@lingui/react";
|
|
4
4
|
import { toast as s } from "react-hot-toast";
|
|
5
5
|
const b = (t, r) => {
|
|
@@ -1,63 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useCurrencies as x } from "./index60.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "./index94.js";
|
|
6
|
-
import { useLingui as v } from "@lingui/react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import { rateMinorToMajor as y } from "./index222.js";
|
|
10
|
-
import { twMerge as b } from "tailwind-merge";
|
|
11
|
-
import { useGetPaymentRecords as g } from "./index267.js";
|
|
12
|
-
import { useGetReceivables as h } from "./index149.js";
|
|
13
|
-
const r = ({
|
|
14
|
-
label: t,
|
|
15
|
-
value: a,
|
|
16
|
-
isBold: l
|
|
17
|
-
}) => /* @__PURE__ */ n("li", { className: b("ttw:w-full ttw:flex ttw:gap-4 ttw:justify-between ttw:text-neutral ttw:font-normal ttw:text-sm ttw:leading-5", l && "ttw:font-medium ttw:text-text"), children: [
|
|
18
|
-
/* @__PURE__ */ i("span", { children: t }),
|
|
19
|
-
/* @__PURE__ */ i("span", { children: a })
|
|
20
|
-
] }), S = ({
|
|
21
|
-
invoice: t
|
|
22
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as t } from "./index59.js";
|
|
2
|
+
const o = () => {
|
|
23
3
|
const {
|
|
24
|
-
|
|
25
|
-
} =
|
|
26
|
-
|
|
27
|
-
} = x(), {
|
|
28
|
-
locale: o
|
|
29
|
-
} = f(), {
|
|
30
|
-
data: s
|
|
31
|
-
} = g(t?.id), u = t?.type === "invoice" ? t?.related_documents?.credit_note_ids : void 0, {
|
|
32
|
-
data: m
|
|
33
|
-
} = h({
|
|
34
|
-
id__in: u,
|
|
35
|
-
type: "credit_note"
|
|
36
|
-
}, !!u?.length), d = t?.status === "paid", c = t?.status === "partially_paid", p = t?.status === "canceled", w = d || c || p;
|
|
37
|
-
return /* @__PURE__ */ n("ul", { className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
38
|
-
/* @__PURE__ */ i(r, { label: a._("Subtotal"), value: l(t?.subtotal ?? 0, t?.currency) }),
|
|
39
|
-
/* @__PURE__ */ i("li", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: t?.total_tax_amounts?.map((e) => /* @__PURE__ */ n("div", { className: "ttw:w-full ttw:flex ttw:gap-4 ttw:justify-between ttw:text-neutral ttw:font-normal ttw:text-sm ttw:leading-5", children: [
|
|
40
|
-
/* @__PURE__ */ i("span", { children: a._("Total tax ({rate}%)", {
|
|
41
|
-
rate: y(e?.value)
|
|
42
|
-
}) }),
|
|
43
|
-
/* @__PURE__ */ i("span", { children: l(e?.amount ?? 0, t?.currency) })
|
|
44
|
-
] }, e?.id)) }),
|
|
45
|
-
/* @__PURE__ */ i(r, { label: a._("Total ({invoice})", {
|
|
46
|
-
invoice: t?.currency
|
|
47
|
-
}), value: l(t?.total_amount ?? 0, t?.currency), isBold: !0 }),
|
|
48
|
-
w && /* @__PURE__ */ n(_, { children: [
|
|
49
|
-
s?.data?.map((e) => /* @__PURE__ */ i(r, { label: e?.paid_at ? a._("Amount paid on {i18nDate}", {
|
|
50
|
-
i18nDate: a.date(e?.paid_at, o.dateTimeFormat)
|
|
51
|
-
}) : a._("Amount paid"), value: l(e?.amount ?? 0, t?.currency) }, e?.id)),
|
|
52
|
-
m?.data?.map((e) => /* @__PURE__ */ i(r, { label: e?.issue_date ? a._("Credit applied on {i18nDate}", {
|
|
53
|
-
i18nDate: a.date(e?.issue_date, o.dateTimeFormat)
|
|
54
|
-
}) : a._("Credit applied"), value: l(e?.total_amount ?? 0, t?.currency) }, e?.id)),
|
|
55
|
-
/* @__PURE__ */ i(r, { label: a._("Amount due ({invoice})", {
|
|
56
|
-
invoice: t?.currency
|
|
57
|
-
}), value: l(t?.amount_due ?? 0, t?.currency), isBold: !0 })
|
|
58
|
-
] })
|
|
59
|
-
] });
|
|
4
|
+
api: e
|
|
5
|
+
} = t();
|
|
6
|
+
return e.finops.getPaymentTerms.useQuery();
|
|
60
7
|
};
|
|
61
8
|
export {
|
|
62
|
-
|
|
9
|
+
o as useGetPaymentTerms
|
|
63
10
|
};
|
|
@@ -1,15 +1,106 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as C } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Controller as c } from "react-hook-form";
|
|
3
|
+
import { DefaultEmail as v } from "./index443.js";
|
|
4
|
+
import { useRootElements as y } from "./index94.js";
|
|
5
|
+
import { useCounterpartById as S } from "./index72.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "./index59.js";
|
|
8
|
+
import { useCounterpartContactList as F } from "./index76.js";
|
|
9
|
+
import "date-fns";
|
|
10
|
+
import "react";
|
|
11
|
+
import "react-hot-toast";
|
|
12
|
+
import { useLingui as I } from "@lingui/react";
|
|
13
|
+
import { useGetReceivableById as N } from "./index84.js";
|
|
14
|
+
import { Card as u, CardContent as m, Stack as f, Typography as h, TextField as b, CircularProgress as M, FormControl as T, Select as B, MenuItem as L, FormHelperText as W } from "@mui/material";
|
|
15
|
+
import { getDefaultContact as _, getContactList as j } from "./index332.js";
|
|
16
|
+
const K = ({
|
|
17
|
+
formName: n,
|
|
18
|
+
style: t,
|
|
19
|
+
children: i,
|
|
20
|
+
handleIssueAndSend: a
|
|
21
|
+
}) => /* @__PURE__ */ e("form", { id: n, noValidate: !0, onSubmit: a, style: t, children: i }), k = ({
|
|
22
|
+
invoiceId: n,
|
|
23
|
+
control: t
|
|
24
|
+
}) => {
|
|
25
|
+
const {
|
|
26
|
+
data: i
|
|
27
|
+
} = N(n), {
|
|
28
|
+
data: a
|
|
29
|
+
} = S(i?.counterpart_id), {
|
|
30
|
+
data: r,
|
|
31
|
+
isLoading: o
|
|
32
|
+
} = F(i?.counterpart_id), {
|
|
33
|
+
root: x
|
|
34
|
+
} = y();
|
|
35
|
+
if (o) return /* @__PURE__ */ e(M, {});
|
|
36
|
+
const g = _(r, a);
|
|
37
|
+
return /* @__PURE__ */ e(c, { name: "to", control: t, render: ({
|
|
38
|
+
field: p,
|
|
39
|
+
fieldState: {
|
|
40
|
+
error: s
|
|
41
|
+
}
|
|
42
|
+
}) => /* @__PURE__ */ d(T, { variant: "standard", required: !0, fullWidth: !0, error: !!s, children: [
|
|
43
|
+
/* @__PURE__ */ e(B, { MenuProps: {
|
|
44
|
+
container: x
|
|
45
|
+
}, className: "Monite-NakedField Monite-RecipientSelector", "data-testid": `${p.name}-select`, ...p, children: j(r, g).map((l) => /* @__PURE__ */ e(L, { value: l.email, children: /* @__PURE__ */ e(v, { email: l.email ?? "", isDefault: l.is_default }) }, l.id)) }),
|
|
46
|
+
s && /* @__PURE__ */ e(W, { children: s.message })
|
|
47
|
+
] }) });
|
|
48
|
+
}, O = ({
|
|
49
|
+
invoiceId: n,
|
|
50
|
+
control: t,
|
|
51
|
+
isDisabled: i
|
|
52
|
+
}) => {
|
|
53
|
+
const {
|
|
54
|
+
i18n: a
|
|
55
|
+
} = I();
|
|
56
|
+
return /* @__PURE__ */ d(C, { children: [
|
|
57
|
+
/* @__PURE__ */ e(u, { sx: {
|
|
58
|
+
mb: 3
|
|
59
|
+
}, children: /* @__PURE__ */ e(m, { sx: {
|
|
60
|
+
px: 3,
|
|
61
|
+
pt: 1,
|
|
62
|
+
pb: 1,
|
|
63
|
+
"&:last-child": {
|
|
64
|
+
pb: 1
|
|
65
|
+
}
|
|
66
|
+
// last-child is necessary to override default style of the MUI theme
|
|
67
|
+
}, children: /* @__PURE__ */ d(f, { spacing: 2, direction: "row", alignItems: "center", children: [
|
|
68
|
+
/* @__PURE__ */ e(h, { variant: "body2", sx: {
|
|
69
|
+
minWidth: "52px"
|
|
70
|
+
}, children: a._("To") }),
|
|
71
|
+
/* @__PURE__ */ e(k, { invoiceId: n, control: t })
|
|
72
|
+
] }) }) }),
|
|
73
|
+
/* @__PURE__ */ d(u, { children: [
|
|
74
|
+
/* @__PURE__ */ e(m, { sx: {
|
|
75
|
+
px: 3,
|
|
76
|
+
py: 1,
|
|
77
|
+
borderBottomWidth: "1px",
|
|
78
|
+
borderBottomStyle: "solid",
|
|
79
|
+
borderBottomColor: "divider"
|
|
80
|
+
}, children: /* @__PURE__ */ d(f, { spacing: 2, direction: "row", alignItems: "center", children: [
|
|
81
|
+
/* @__PURE__ */ e(h, { variant: "body2", children: a._("Subject") }),
|
|
82
|
+
/* @__PURE__ */ e(c, { name: "subject", control: t, render: ({
|
|
83
|
+
field: r,
|
|
84
|
+
fieldState: {
|
|
85
|
+
error: o
|
|
86
|
+
}
|
|
87
|
+
}) => /* @__PURE__ */ e(b, { id: r.name, "data-testid": `${r.name}-input`, variant: "standard", className: "Monite-NakedField", fullWidth: !0, error: !!o, helperText: o?.message, required: !0, ...r, disabled: i }) })
|
|
88
|
+
] }) }),
|
|
89
|
+
/* @__PURE__ */ e(m, { sx: {
|
|
90
|
+
pl: 3,
|
|
91
|
+
pr: 3,
|
|
92
|
+
pb: 3,
|
|
93
|
+
pt: 1
|
|
94
|
+
}, children: /* @__PURE__ */ e(c, { name: "body", control: t, render: ({
|
|
95
|
+
field: r,
|
|
96
|
+
fieldState: {
|
|
97
|
+
error: o
|
|
98
|
+
}
|
|
99
|
+
}) => /* @__PURE__ */ e(b, { id: r.name, "data-testid": `${r.name}-input`, variant: "standard", className: "Monite-NakedField", fullWidth: !0, error: !!o, helperText: o?.message, required: !0, multiline: !0, rows: 8, ...r, disabled: i }) }) })
|
|
100
|
+
] })
|
|
101
|
+
] });
|
|
12
102
|
};
|
|
13
103
|
export {
|
|
14
|
-
|
|
104
|
+
K as Form,
|
|
105
|
+
O as FormContent
|
|
15
106
|
};
|
|
@@ -1,96 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
isCreatedFromRecurrence: i
|
|
21
|
-
}) => {
|
|
22
|
-
const {
|
|
23
|
-
i18n: e
|
|
24
|
-
} = k(), [m, s] = q(!1), u = new Date(t?.start_date).getDate(), h = B(() => t?.iterations?.filter((a) => a.status === "completed"), [t]), {
|
|
25
|
-
mutateAsync: w,
|
|
26
|
-
isPending: p
|
|
27
|
-
} = x(t?.id, t?.invoice_id), d = "edit-recurrence-form", f = T({
|
|
28
|
-
// See the identical cast in CreateReceivables.tsx — `zodResolver`'s
|
|
29
|
-
// inferred `Resolver` and react-hook-form's own `Resolver` type are
|
|
30
|
-
// structurally "unrelated" to `tsc --build` for this schema shape.
|
|
31
|
-
resolver: $(b(e)),
|
|
32
|
-
defaultValues: {
|
|
33
|
-
frequency: t?.frequency,
|
|
34
|
-
recurrence_max_occurrences: t?.max_occurrences ?? 1,
|
|
35
|
-
recurrence_start_date: new Date(t?.start_date),
|
|
36
|
-
recurrence_end_date: t?.end_date ? new Date(t?.end_date) : void 0,
|
|
37
|
-
recurrence_issue_mode: u === 1 ? "first_day" : "last_day",
|
|
38
|
-
recurrence_subject_text: t?.subject_text ?? e._("Recurrent invoice"),
|
|
39
|
-
recurrence_body_text: t?.body_text ?? e._("This invoice was generated from a recurrence. Please find the details of the recurrence in the invoice details section.")
|
|
40
|
-
}
|
|
41
|
-
}), v = async (a) => {
|
|
42
|
-
await w({
|
|
43
|
-
end_date: a.recurrence_end_date ? E(new Date(a.recurrence_end_date), "yyyy-MM-dd") : void 0,
|
|
44
|
-
subject_text: a.recurrence_subject_text || void 0,
|
|
45
|
-
body_text: a.recurrence_body_text || void 0
|
|
46
|
-
}), s(!1);
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ n(g, { children: [
|
|
49
|
-
m && /* @__PURE__ */ r(C, { open: m, onOpenChange: s, children: /* @__PURE__ */ r(N, { ...f, children: /* @__PURE__ */ r("form", { id: d, name: d, onSubmit: f.handleSubmit(v), children: /* @__PURE__ */ n(j, { className: "ttw:gap-0", showCloseButton: !1, children: [
|
|
50
|
-
/* @__PURE__ */ n(D, { className: "ttw:border-b ttw:border-border", children: [
|
|
51
|
-
/* @__PURE__ */ r(R, { children: e._("Edit recurrence settings") }),
|
|
52
|
-
/* @__PURE__ */ r(F, { hidden: !0, children: e._("Edit the settings for this recurring invoice") })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ n("div", { className: "ttw:p-8 ttw:flex ttw:flex-col ttw:gap-10", children: [
|
|
55
|
-
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-foreground", children: e._("You can set a different period length and the date of issuance. The starting date cannot be updated.") }),
|
|
56
|
-
/* @__PURE__ */ r(S, { isUpdate: !0 })
|
|
57
|
-
] }),
|
|
58
|
-
/* @__PURE__ */ n(I, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: [
|
|
59
|
-
/* @__PURE__ */ r(o, { variant: "outline", size: "sm", onClick: () => s(!1), children: e._("Cancel") }),
|
|
60
|
-
/* @__PURE__ */ r(o, { size: "sm", type: "submit", form: d, disabled: p, children: e._("Save") })
|
|
61
|
-
] })
|
|
62
|
-
] }) }) }) }),
|
|
63
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
64
|
-
i ? /* @__PURE__ */ n("div", { className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4", children: [
|
|
65
|
-
/* @__PURE__ */ r("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: e._("Created from recurrence") }),
|
|
66
|
-
/* @__PURE__ */ r(y, { status: t?.status })
|
|
67
|
-
] }) : /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
68
|
-
/* @__PURE__ */ r("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: e._("Recurrence") }),
|
|
69
|
-
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-muted-foreground", children: e._("All future invoices will be issued based on this invoice") })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ n("div", { className: "ttw:grid ttw:grid-cols-2 ttw:gap-4", children: [
|
|
72
|
-
/* @__PURE__ */ r(c, { label: e._("Start"), value: t?.start_date ? e.date(t?.start_date, {
|
|
73
|
-
month: "long",
|
|
74
|
-
year: "numeric"
|
|
75
|
-
}) : "-" }),
|
|
76
|
-
/* @__PURE__ */ r(c, { label: e._("End"), value: t?.end_date ? e.date(t?.end_date, {
|
|
77
|
-
month: "long",
|
|
78
|
-
year: "numeric"
|
|
79
|
-
}) : "-" }),
|
|
80
|
-
/* @__PURE__ */ r(c, { label: e._("Frequency"), value: u === 1 ? e._("Every first day of month") : e._("Every last day of month") }),
|
|
81
|
-
/* @__PURE__ */ r(c, { label: e._("Issued documents"), value: `${h.length} / ${t?.iterations.length} ${e._("issued")}`, onClick: () => {
|
|
82
|
-
i && l?.(t?.invoice_id), _("scheduled-invoices");
|
|
83
|
-
} })
|
|
84
|
-
] }),
|
|
85
|
-
i && /* @__PURE__ */ r(o, { variant: "outline", size: "sm", className: "ttw:w-fit", onClick: () => l?.(t?.invoice_id), children: e._("View recurrence") }),
|
|
86
|
-
!i && t?.status !== "canceled" && /* @__PURE__ */ n(o, { variant: "outline", size: "sm", className: "ttw:w-fit", onClick: () => s(!0), children: [
|
|
87
|
-
/* @__PURE__ */ r(z, {}),
|
|
88
|
-
" ",
|
|
89
|
-
e._("Edit settings")
|
|
90
|
-
] })
|
|
91
|
-
] })
|
|
92
|
-
] });
|
|
93
|
-
};
|
|
1
|
+
import { isOrganizationCounterpart as e, getCounterpartName as o } from "./index7.js";
|
|
2
|
+
const i = (r, t) => {
|
|
3
|
+
if (r && r.length)
|
|
4
|
+
return r.find((n) => n.is_default) ?? r[0];
|
|
5
|
+
if (!t || !e(t))
|
|
6
|
+
return;
|
|
7
|
+
const a = t.organization?.email;
|
|
8
|
+
if (a)
|
|
9
|
+
return {
|
|
10
|
+
id: "organization",
|
|
11
|
+
counterpart_id: t.id,
|
|
12
|
+
email: a,
|
|
13
|
+
is_default: !0,
|
|
14
|
+
first_name: o(t),
|
|
15
|
+
last_name: "",
|
|
16
|
+
is_customer: t.is_customer,
|
|
17
|
+
is_vendor: t.is_vendor
|
|
18
|
+
};
|
|
19
|
+
}, u = (r, t) => r?.length ? r : t ? [t] : [];
|
|
94
20
|
export {
|
|
95
|
-
|
|
21
|
+
u as getContactList,
|
|
22
|
+
i as getDefaultContact
|
|
96
23
|
};
|
|
@@ -1,130 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { useLingui as f } from "@lingui/react";
|
|
6
|
-
import { Calendar as N, Bell as R } from "lucide-react";
|
|
7
|
-
import { twMerge as j } from "tailwind-merge";
|
|
8
|
-
import "react-hot-toast";
|
|
9
|
-
import "./index59.js";
|
|
10
|
-
import { useState as I } from "react";
|
|
11
|
-
import "date-fns";
|
|
12
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
13
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
14
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
15
|
-
import "@tanstack/react-query";
|
|
16
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
17
|
-
import "clsx";
|
|
18
|
-
import "@radix-ui/react-dropdown-menu";
|
|
19
|
-
import { useGetPaymentReminderById as C } from "./index407.js";
|
|
20
|
-
import { useGetOverdueReminderById as D } from "./index410.js";
|
|
21
|
-
import "./index94.js";
|
|
22
|
-
import "react-dom";
|
|
23
|
-
import "@mui/x-data-grid";
|
|
24
|
-
import "react-hook-form";
|
|
25
|
-
import { PreviewEmail as T } from "./index327.js";
|
|
26
|
-
import { Dialog as B, DialogContent as L, DialogDescription as $ } from "./index207.js";
|
|
27
|
-
import { getDefaultContact as k } from "./index325.js";
|
|
28
|
-
import { useCounterpartById as O } from "./index72.js";
|
|
29
|
-
import { useCounterpartContactList as S } from "./index76.js";
|
|
30
|
-
const p = ({
|
|
31
|
-
term: a,
|
|
32
|
-
isLastTerm: o,
|
|
33
|
-
invoiceId: c
|
|
34
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as n } from "./index59.js";
|
|
2
|
+
import { useLingui as o } from "@lingui/react";
|
|
3
|
+
import { toast as r } from "react-hot-toast";
|
|
4
|
+
const l = (i) => {
|
|
35
5
|
const {
|
|
36
|
-
i18n:
|
|
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
|
-
} = O(d), {
|
|
65
|
-
data: t
|
|
66
|
-
} = C(a), {
|
|
67
|
-
data: y
|
|
68
|
-
} = D(o), _ = k(w, u), s = [...t?.term_1_reminder ? [{
|
|
69
|
-
body: t?.term_1_reminder?.body,
|
|
70
|
-
subject: t?.term_1_reminder?.subject,
|
|
71
|
-
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
72
|
-
paymentReminder: t?.term_1_reminder.days_before,
|
|
73
|
-
paymentReminder1: t?.term_1_reminder?.days_before === 1 ? "day" : "days"
|
|
74
|
-
}),
|
|
75
|
-
id: "payment-1"
|
|
76
|
-
}] : [], ...t?.term_2_reminder ? [{
|
|
77
|
-
body: t?.term_2_reminder?.body,
|
|
78
|
-
subject: t?.term_2_reminder?.subject,
|
|
79
|
-
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
80
|
-
paymentReminder: t?.term_2_reminder.days_before,
|
|
81
|
-
paymentReminder1: t?.term_2_reminder?.days_before === 1 ? "day" : "days"
|
|
82
|
-
}),
|
|
83
|
-
id: "payment-2"
|
|
84
|
-
}] : [], ...t?.term_final_reminder ? [{
|
|
85
|
-
body: t?.term_final_reminder?.body,
|
|
86
|
-
subject: t?.term_final_reminder?.subject,
|
|
87
|
-
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
88
|
-
paymentReminder: t?.term_final_reminder.days_before,
|
|
89
|
-
paymentReminder1: t?.term_final_reminder?.days_before === 1 ? "day" : "days"
|
|
90
|
-
}),
|
|
91
|
-
id: "payment-3"
|
|
92
|
-
}] : []], m = y?.terms?.map((n, l) => ({
|
|
93
|
-
body: n?.body,
|
|
94
|
-
subject: n?.subject,
|
|
95
|
-
reminderTerm: i._("{termDays_after} {term} after", {
|
|
96
|
-
termDays_after: n.days_after,
|
|
97
|
-
term: n?.days_after === 1 ? "day" : "days"
|
|
98
|
-
}),
|
|
99
|
-
id: `overdue-${l + 1}`
|
|
100
|
-
})) ?? [];
|
|
101
|
-
return /* @__PURE__ */ r(h, { children: [
|
|
102
|
-
/* @__PURE__ */ e(g, { className: "ttw:hover:no-underline ttw:group", children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
103
|
-
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: i._("Reminder emails") }),
|
|
104
|
-
s?.length + m?.length > 0 && /* @__PURE__ */ e(b, { variant: "secondary", className: "ttw:h-5 ttw:min-w-5 ttw:rounded-full ttw:px-1 ttw:tabular-nums", children: s?.length + m?.length })
|
|
105
|
-
] }) }),
|
|
106
|
-
/* @__PURE__ */ r(x, { className: "ttw:flex ttw:gap-6", children: [
|
|
107
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5 ttw:flex-1", children: [
|
|
108
|
-
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: i._("Recipients") }),
|
|
109
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: _?.email ?? "-" })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:flex-1", children: [
|
|
112
|
-
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: i._("Scheduled reminders") }),
|
|
113
|
-
/* @__PURE__ */ r("ul", { children: [
|
|
114
|
-
s?.length > 0 && s.map((n, l) => /* @__PURE__ */ e(p, { term: n, isLastTerm: m.length > 0 ? !1 : l === s.length - 1, invoiceId: c }, n.id)),
|
|
115
|
-
m.length > 0 && /* @__PURE__ */ e("li", { className: "ttw:flex ttw:gap-1 ttw:items-center ttw:justify-between", children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
116
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:justify-end ttw:items-center ttw:gap-1 ttw:pt-2", children: [
|
|
117
|
-
/* @__PURE__ */ e(N, { className: "ttw:size-4 ttw:text-neutral" }),
|
|
118
|
-
/* @__PURE__ */ e("div", { className: "ttw:w-px ttw:h-1.5 ttw:bg-neutral" })
|
|
119
|
-
] }),
|
|
120
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-neutral ttw:text-sm ttw:font-normal ttw:leading-5", children: i._("Due date") })
|
|
121
|
-
] }) }),
|
|
122
|
-
m?.length > 0 && m.map((n, l) => /* @__PURE__ */ e(p, { term: n, isLastTerm: l === m.length - 1, invoiceId: c }, n.id))
|
|
123
|
-
] })
|
|
124
|
-
] })
|
|
125
|
-
] })
|
|
126
|
-
] });
|
|
6
|
+
i18n: a
|
|
7
|
+
} = o(), {
|
|
8
|
+
api: e,
|
|
9
|
+
queryClient: t
|
|
10
|
+
} = n();
|
|
11
|
+
return e.finops.postReceivablesIdSend.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
receivable_id: i
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await Promise.all([e.finops.getReceivables.invalidateQueries(t), e.finops.getReceivablesId.invalidateQueries({
|
|
18
|
+
parameters: {
|
|
19
|
+
path: {
|
|
20
|
+
receivable_id: i
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, t)]);
|
|
24
|
+
const s = e.finops.getReceivablesId.getQueryData({
|
|
25
|
+
path: {
|
|
26
|
+
receivable_id: i
|
|
27
|
+
}
|
|
28
|
+
}, t);
|
|
29
|
+
r.success(a._("This {type} has been sent", {
|
|
30
|
+
type: s?.type === "credit_note" ? "credit memo" : s?.type
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
127
34
|
};
|
|
128
35
|
export {
|
|
129
|
-
|
|
36
|
+
l as useSendReceivableById
|
|
130
37
|
};
|
|
@@ -1,18 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import { jsx as t, Fragment as v, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as b } from "@lingui/react";
|
|
3
|
+
import { useState as y, useEffect as N } from "react";
|
|
4
|
+
import { useCreateInvoiceEmailPreview as j } from "./index434.js";
|
|
5
|
+
import { LanguageCodeEnum as C } from "./index256.js";
|
|
6
|
+
import { CenteredContentBox as s } from "./index244.js";
|
|
7
|
+
import { Button as _ } from "./index86.js";
|
|
8
|
+
import { CircleAlert as E, RefreshCcw as P } from "lucide-react";
|
|
9
|
+
import { LoadingSpinner as B } from "./index133.js";
|
|
10
|
+
const q = ({
|
|
11
|
+
invoiceId: l,
|
|
12
|
+
body: c,
|
|
13
|
+
subject: m
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
i18n: e
|
|
17
|
+
} = b(), [a, d] = y(0), {
|
|
18
|
+
data: w,
|
|
19
|
+
mutateAsync: f,
|
|
20
|
+
isPending: p,
|
|
21
|
+
error: u
|
|
22
|
+
} = j(l), x = () => {
|
|
23
|
+
d(a + 1);
|
|
24
|
+
}, h = (r) => Object.values(C).includes(r), g = () => {
|
|
25
|
+
const r = e.locale, o = r.indexOf("-"), n = o >= 0 ? r.substring(0, o) : r;
|
|
26
|
+
return h(n) ? n : "en";
|
|
27
|
+
};
|
|
28
|
+
return N(() => {
|
|
29
|
+
f({
|
|
30
|
+
body_text: c,
|
|
31
|
+
subject_text: m,
|
|
32
|
+
language: g(),
|
|
33
|
+
type: "receivable"
|
|
34
|
+
});
|
|
35
|
+
}, [a]), /* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-col ttw:min-h-0 ttw:overflow-hidden ttw:flex-1", children: p ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(B, {}) }) : /* @__PURE__ */ t(v, { children: u ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-4", children: [
|
|
36
|
+
/* @__PURE__ */ t(E, { className: "ttw:text-red-500" }),
|
|
37
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:justify-center ttw:text-center ttw:gap-1 ttw:items-center", children: [
|
|
38
|
+
/* @__PURE__ */ t("h2", { className: "ttw:font-bold ttw:text-base", children: e._("Failed to generate email preview") }),
|
|
39
|
+
/* @__PURE__ */ i("div", { className: "ttw:items-center", children: [
|
|
40
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: e._("Please try to reload.") }),
|
|
41
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: e._("If the error recurs, contact support, please.") })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ i(_, { variant: "ghost", onClick: x, "data-testid": "reload-preview-button", children: [
|
|
44
|
+
/* @__PURE__ */ t(P, {}),
|
|
45
|
+
e._("Reload")
|
|
46
|
+
] })
|
|
47
|
+
] })
|
|
48
|
+
] }) }) : /* @__PURE__ */ t("iframe", { srcDoc: w?.body_preview, style: {
|
|
49
|
+
width: "100%",
|
|
50
|
+
height: "100%",
|
|
51
|
+
marginBottom: "-16px",
|
|
52
|
+
// Margin is necessary to avoid vertical scrollbar on the iframe container element. It's not clear why, but it helps.
|
|
53
|
+
border: 0,
|
|
54
|
+
flex: 1
|
|
55
|
+
} }) }) });
|
|
56
|
+
};
|
|
15
57
|
export {
|
|
16
|
-
|
|
17
|
-
n as CardContent
|
|
58
|
+
q as PreviewEmail
|
|
18
59
|
};
|