@tesouro/embedded-components-react 0.2.5 → 0.2.7
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 +46 -28
- 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/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 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1269 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +9 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +98 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +57 -99
- 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 +26 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +76 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +6 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +9 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +33 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +12 -12
- 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 +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +14 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +119 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +46 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +49 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +149 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +71 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +27 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +62 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +36 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +30 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +72 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +196 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +22 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +77 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +29 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +39 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +245 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +180 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +13 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +113 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +86 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +109 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +106 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +51 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +63 -28
- 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 +87 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +47 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +20 -252
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +54 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +115 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +67 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +68 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +224 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +107 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +32 -53
- 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 +55 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +34 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +28 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +27 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +18 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +11 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +11 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +21 -235
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +49 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +5 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +20 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +89 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +11 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +114 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +65 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +12 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +92 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +13 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +2 -146
- 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 +96 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +96 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +192 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +38 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +342 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +302 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +99 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +162 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +262 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +25 -32
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +137 -482
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +85 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +20 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +183 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +25 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +22 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +56 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +27 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +55 -52
- 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 +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +44 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +27 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +5 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +73 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +32 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +17 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +14 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +76 -263
- 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 +86 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +42 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +73 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +10 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +62 -86
- 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 +94 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +111 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +87 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +61 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +51 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +28 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +126 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +41 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +56 -26
- 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 +9 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +61 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +45 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +189 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +102 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +79 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +77 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +22 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +293 -73
- 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 +49 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +15 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +255 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +149 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +50 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +50 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +201 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +156 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +105 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +46 -155
- 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 +68 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +108 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +35 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +155 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +28 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +78 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +478 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +162 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -96
- 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 +20 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +16 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +167 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +131 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +161 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +60 -5
- 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 +64 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +60 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +6 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +7 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +61 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +21 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +32 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +61 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +45 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +35 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +34 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +6 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +103 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +21 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +31 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +57 -37
- 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 +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +13 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +23 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +37 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +52 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +97 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +45 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +56 -166
- 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 +12 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +85 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +126 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +37 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +10 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +38 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +39 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +58 -58
- 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 +30 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +41 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +90 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +38 -18
- 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 +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +18 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +14 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +50 -16
- 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 +175 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +138 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +8 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +19 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +80 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +63 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +47 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +17 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +94 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +28 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +12 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +11 -94
- 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 +9 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +34 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +32 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +26 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +35 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +25 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +34 -9
- 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 +120 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +18 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +70 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +16 -67
- 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 +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +94 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +15 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +74 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +71 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +21 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +18 -35
- 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 +51 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +59 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +29 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +33 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +37 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +49 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +65 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +16 -27
- 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 +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +63 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +21 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +54 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +35 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +33 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +33 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +29 -47
- 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 +22 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +85 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +70 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +37 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +19 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +15 -50
- 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 +67 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +57 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +39 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +83 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +35 -25
- 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 +71 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +83 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +50 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +50 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +68 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +134 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +16 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +61 -16
- 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/index500.js +50 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +55 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +40 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +47 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +39 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +75 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +4 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +7 -19
- 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 +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +24 -24
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +0 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +0 -10
|
@@ -1,258 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { INVOICE_DOCUMENT_AUTO_ID as ge } from "./index335.js";
|
|
9
|
-
import { useInvoiceReminderDialogs as he } from "./index220.js";
|
|
10
|
-
import { useMeasureUnitsMapping as be } from "./index336.js";
|
|
11
|
-
import { useUpdateReceivable as xe } from "./index337.js";
|
|
12
|
-
import { useUpdateReceivableLineItems as we } from "./index338.js";
|
|
13
|
-
import { useLineItemSubmitCleanup as Ce } from "./index217.js";
|
|
14
|
-
import { useCounterpartById as De } from "./index72.js";
|
|
15
|
-
import "@tanstack/react-query";
|
|
16
|
-
import "./index59.js";
|
|
17
|
-
import { useCounterpartAddresses as Ie } from "./index74.js";
|
|
18
|
-
import { format as Se } from "date-fns";
|
|
19
|
-
import { useMyEntity as Re } from "./index80.js";
|
|
20
|
-
import { useMemo as U, useState as $, useCallback as Ne, useId as Me } from "react";
|
|
21
|
-
import "react-hot-toast";
|
|
22
|
-
import { useLingui as Te } from "@lingui/react";
|
|
23
|
-
import { rateMinorToMajor as Ue, rateMajorToMinor as $e } from "./index221.js";
|
|
24
|
-
import { ConfirmationModal as ke } from "./index254.js";
|
|
25
|
-
import { Dialog as Ve, DialogContent as Ee, DialogHeader as Fe, DialogTitle as Le, DialogDescription as Oe, DialogClose as Pe } from "./index201.js";
|
|
26
|
-
import { Button as k } from "./index86.js";
|
|
27
|
-
import { zodResolver as je } from "@hookform/resolvers/zod";
|
|
28
|
-
import { useForm as qe, FormProvider as Ae } from "react-hook-form";
|
|
29
|
-
import { X as Be } from "lucide-react";
|
|
30
|
-
import { InvoicePreview as ze } from "./index207.js";
|
|
31
|
-
import { useGetPaymentTerms as Ge } from "./index339.js";
|
|
32
|
-
import { useGetMeasureUnits as He } from "./index223.js";
|
|
33
|
-
import { CreateProduct as Xe } from "./index46.js";
|
|
34
|
-
const Nt = (e) => /* @__PURE__ */ r(Je, { ...e }), Je = ({
|
|
35
|
-
invoice: e,
|
|
36
|
-
onCancel: c,
|
|
37
|
-
onUpdated: V,
|
|
38
|
-
isOpen: E
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RecurrenceFormContent as c } from "./index299.js";
|
|
3
|
+
import { useLingui as o } from "@lingui/react";
|
|
4
|
+
import { Switch as s } from "./index300.js";
|
|
5
|
+
const u = ({
|
|
6
|
+
isRecurrenceEnabled: r,
|
|
7
|
+
toggleRecurrence: i
|
|
39
8
|
}) => {
|
|
40
9
|
const {
|
|
41
|
-
i18n:
|
|
42
|
-
} =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
counterpart_id: e.counterpart_id,
|
|
54
|
-
default_shipping_address_id: e.counterpart_shipping_address?.id ?? "",
|
|
55
|
-
default_billing_address_id: e.counterpart_billing_address?.id ?? "",
|
|
56
|
-
/** Entity section */
|
|
57
|
-
fulfillment_date: e.fulfillment_date ? new Date(e.fulfillment_date) : null,
|
|
58
|
-
purchase_order: e.purchase_order ?? "",
|
|
59
|
-
footer: e.footer ?? "",
|
|
60
|
-
/** Items section */
|
|
61
|
-
line_items: e.line_items.map((t) => {
|
|
62
|
-
const a = t.product.measure_unit?.name, d = t.product.measure_unit?.id;
|
|
63
|
-
return {
|
|
64
|
-
quantity: t.quantity,
|
|
65
|
-
product_id: t.product.id,
|
|
66
|
-
tax_rate_id: t.product.tax_rate.id ?? void 0,
|
|
67
|
-
vat_rate_value: t.product.tax_rate.value,
|
|
68
|
-
product: {
|
|
69
|
-
name: t.product.name,
|
|
70
|
-
price: e.tax_mode === "inclusive" ? t.product.price_after_tax : t.product.price,
|
|
71
|
-
// Get measure_unit_id directly from the API response if available
|
|
72
|
-
measure_unit_id: d && d !== "" ? d : void 0,
|
|
73
|
-
// Store the measure unit name separately for custom units
|
|
74
|
-
measure_unit_name: !d && a ? a : void 0,
|
|
75
|
-
type: t.product.type || "product"
|
|
76
|
-
},
|
|
77
|
-
// For custom measure units that don't have an ID but have a name
|
|
78
|
-
measure_unit: !d && a ? {
|
|
79
|
-
name: a,
|
|
80
|
-
id: null
|
|
81
|
-
} : void 0,
|
|
82
|
-
tax_rate_value: s && t.product.tax_rate.value !== void 0 ? Ue(t.product.tax_rate.value) : void 0
|
|
83
|
-
};
|
|
84
|
-
}),
|
|
85
|
-
tax_exemption_rationale: e.tax_exemption_rationale ?? "",
|
|
86
|
-
memo: e.memo ?? "",
|
|
87
|
-
/** Payment section */
|
|
88
|
-
bank_account_id: e.bank_account_id ?? "",
|
|
89
|
-
payment_terms_id: e.payment_terms?.id ?? "",
|
|
90
|
-
/** Reminders section */
|
|
91
|
-
payment_reminder_id: e.payment_reminder_id ?? "",
|
|
92
|
-
overdue_reminder_id: e.overdue_reminder_id ?? "",
|
|
93
|
-
tax_mode: e.tax_mode ?? "exclusive"
|
|
94
|
-
}), [e, s]), g = qe({
|
|
95
|
-
resolver: je(ce(n, s)),
|
|
96
|
-
defaultValues: j
|
|
97
|
-
}), f = e.currency, {
|
|
98
|
-
handleSubmit: q,
|
|
99
|
-
formState: {
|
|
100
|
-
isDirty: h
|
|
101
|
-
},
|
|
102
|
-
getValues: b,
|
|
103
|
-
setValue: x,
|
|
104
|
-
reset: A,
|
|
105
|
-
watch: o
|
|
106
|
-
} = g, {
|
|
107
|
-
registerLineItemCleanupFn: B,
|
|
108
|
-
runLineItemCleanup: z
|
|
109
|
-
} = Ce();
|
|
110
|
-
be(y, b, A);
|
|
111
|
-
const [G, w] = $(!1), [C, v] = $(!1), H = Ne(() => {
|
|
112
|
-
if (!h) {
|
|
113
|
-
c();
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
w(!0);
|
|
117
|
-
}, [h, c]), D = we(e.id), I = xe(e.id), X = o("line_items"), J = o("payment_terms_id"), Y = o("fulfillment_date"), K = o("memo"), Q = o("footer"), W = o("purchase_order"), Z = o("bank_account_id"), ee = o("tax_mode"), S = o("counterpart_id"), R = o("default_billing_address_id"), {
|
|
118
|
-
data: te
|
|
119
|
-
} = De(S), {
|
|
120
|
-
data: N
|
|
121
|
-
} = Ie(S), ae = U(() => N?.data?.find((t) => t.id === R), [R, N?.data]), l = D.isPending || I.isPending || L || P, M = `Monite-Form-receivablesDetailsForm-${Me()}`, {
|
|
122
|
-
createReminderDialog: T,
|
|
123
|
-
editReminderDialog: p,
|
|
124
|
-
onCreateReminder: re,
|
|
125
|
-
onEditOverdueReminder: ie,
|
|
126
|
-
onEditPaymentReminder: ne,
|
|
127
|
-
closeCreateReminderDialog: oe,
|
|
128
|
-
closeUpdateReminderDialog: de
|
|
129
|
-
} = he({
|
|
130
|
-
getValues: b
|
|
131
|
-
});
|
|
132
|
-
return /* @__PURE__ */ m(le, { children: [
|
|
133
|
-
/* @__PURE__ */ r(Ve, { open: E, modal: !1, children: /* @__PURE__ */ m(Ee, { fullScreen: !0, showCloseButton: !1, className: "ttw:flex", onInteractOutside: (t) => t.preventDefault(), children: [
|
|
134
|
-
/* @__PURE__ */ m("div", { className: "ttw:flex-1/2 ttw:overflow-y-auto ttw:pr-14", children: [
|
|
135
|
-
/* @__PURE__ */ m(Fe, { className: "ttw:flex-row ttw:justify-between ttw:bg-white ttw:pb-4 ttw:sticky ttw:top-0 ttw:z-9999", children: [
|
|
136
|
-
/* @__PURE__ */ r(Le, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
137
|
-
/* @__PURE__ */ r(Oe, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
138
|
-
/* @__PURE__ */ r(Pe, { asChild: !0, children: /* @__PURE__ */ r(k, { variant: "ghost", onClick: H, disabled: l, "aria-label": n._("Close"), children: /* @__PURE__ */ r(Be, {}) }) }),
|
|
139
|
-
/* @__PURE__ */ r(k, { type: "submit", form: M, disabled: l, children: n._("Update") })
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */ r(Ae, { ...g, children: /* @__PURE__ */ r("form", { id: M, noValidate: !0, onSubmit: async (t) => {
|
|
142
|
-
t.preventDefault(), z(), await q((a) => {
|
|
143
|
-
const d = {
|
|
144
|
-
data: a.line_items.map((i) => {
|
|
145
|
-
const u = i;
|
|
146
|
-
let _;
|
|
147
|
-
if (u.product.measure_unit_id) {
|
|
148
|
-
const se = u.product.measure_unit_id;
|
|
149
|
-
_ = y?.data?.find((ue) => ue.id === se)?.name;
|
|
150
|
-
} else (u.product.measure_unit_name || u.measure_unit?.name) && (_ = u.product.measure_unit_name || u.measure_unit?.name);
|
|
151
|
-
return {
|
|
152
|
-
quantity: i.quantity,
|
|
153
|
-
tax_status: "taxable",
|
|
154
|
-
product: {
|
|
155
|
-
name: i.product.name,
|
|
156
|
-
type: i.product.type,
|
|
157
|
-
measure_unit: _ ? {
|
|
158
|
-
name: _
|
|
159
|
-
} : void 0,
|
|
160
|
-
price: i.product.price ? {
|
|
161
|
-
currency: i.product.price.currency ?? "USD",
|
|
162
|
-
value: Math.round(i.product.price.value ?? 0)
|
|
163
|
-
} : void 0
|
|
164
|
-
},
|
|
165
|
-
// For non-VAT supported regions, use tax_rate_value
|
|
166
|
-
...s ? {
|
|
167
|
-
tax_rate_value: i.tax_rate_value !== void 0 ? $e(i.tax_rate_value) : void 0
|
|
168
|
-
} : {
|
|
169
|
-
vat_rate_id: i.vat_rate_id
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
})
|
|
173
|
-
}, me = {
|
|
174
|
-
invoice: {
|
|
175
|
-
/** Customer section */
|
|
176
|
-
counterpart_id: a.counterpart_id,
|
|
177
|
-
currency: f,
|
|
178
|
-
memo: a.memo,
|
|
179
|
-
tax_exemption_rationale: a.tax_exemption_rationale,
|
|
180
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
181
|
-
counterpart_shipping_address_id: a?.default_shipping_address_id || null,
|
|
182
|
-
counterpart_billing_address_id: a?.default_billing_address_id,
|
|
183
|
-
/** We shouldn't send an empty string to the server if the value is not set */
|
|
184
|
-
bank_account_id: e.bank_account_id,
|
|
185
|
-
bank_account_type: e.bank_account_type,
|
|
186
|
-
payment_terms_id: a.payment_terms_id,
|
|
187
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
188
|
-
fulfillment_date: a.fulfillment_date ? (
|
|
189
|
-
/**
|
|
190
|
-
* We have to change the date as Backend accepts it.
|
|
191
|
-
* There is no `time` in request, only year, month and date
|
|
192
|
-
*/
|
|
193
|
-
Se(a.fulfillment_date, "yyyy-MM-dd")
|
|
194
|
-
) : null,
|
|
195
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
196
|
-
payment_reminder_id: a.payment_reminder_id || null,
|
|
197
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
198
|
-
overdue_reminder_id: a.overdue_reminder_id || null
|
|
199
|
-
/** !!! Note !!! Backend is not supported to edit `purchase_order` so we have to remove it */
|
|
200
|
-
// purchase_order: values.purchase_order || undefined,
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
D.mutate(d, {
|
|
204
|
-
onSuccess: () => {
|
|
205
|
-
I.mutate(me, {
|
|
206
|
-
onSuccess: (i) => {
|
|
207
|
-
V(i);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
})(t);
|
|
213
|
-
}, className: "ttw:mb-14", children: /* @__PURE__ */ m("div", { className: "ttw:flex ttw:flex-col ttw:gap-8", children: [
|
|
214
|
-
/* @__PURE__ */ m("h1", { className: "ttw:text-2xl ttw:font-bold", children: [
|
|
215
|
-
n._("Invoice"),
|
|
216
|
-
" ",
|
|
217
|
-
/* @__PURE__ */ m("span", { className: "ttw:text-gray-500", children: [
|
|
218
|
-
"#",
|
|
219
|
-
e.document_id ?? ge
|
|
220
|
-
] })
|
|
221
|
-
] }),
|
|
222
|
-
/* @__PURE__ */ r(_e, { isNonVatSupported: s, actualCurrency: f, isVatSelectionDisabled: !0, shouldOverrideVatRateDefaults: !0, registerLineItemCleanupFn: B, handleOpenCreateProductDialog: () => v(!0) }),
|
|
223
|
-
/* @__PURE__ */ r(pe, { disabled: l, hidden: ["purchase_order"], visibleFields: {
|
|
224
|
-
isFooterShown: typeof e.footer == "string" && e.footer?.trim() !== "",
|
|
225
|
-
isPurchaseOrderShown: typeof e.purchase_order == "string" && e.purchase_order?.trim() !== ""
|
|
226
|
-
} }),
|
|
227
|
-
/* @__PURE__ */ r(ye, { disabled: l, onUpdateOverdueReminder: ie, onUpdatePaymentReminder: ne, onCreateReminder: re })
|
|
228
|
-
] }) }) })
|
|
229
|
-
] }),
|
|
230
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex-1/2 ttw:w-1/2", children: /* @__PURE__ */ r(ze, { invoiceData: {
|
|
231
|
-
payment_terms_id: J,
|
|
232
|
-
line_items: (X || []).map((t) => ({
|
|
233
|
-
...t,
|
|
234
|
-
id: t.id || `temp-${Math.random().toString(36).substr(2, 9)}`
|
|
235
|
-
})),
|
|
236
|
-
fulfillment_date: Y,
|
|
237
|
-
memo: K,
|
|
238
|
-
footer: Q,
|
|
239
|
-
bank_account_id: Z,
|
|
240
|
-
bank_account_type: e.bank_account_type,
|
|
241
|
-
tax_mode: ee,
|
|
242
|
-
purchase_order: W || void 0
|
|
243
|
-
}, counterpart: te, currency: f, isNonVatSupported: s, entityData: F, address: ae, paymentTerms: O }) })
|
|
244
|
-
] }) }),
|
|
245
|
-
C && /* @__PURE__ */ r(Xe, { open: C, onClose: () => v(!1), onCreated: () => v(!1) }),
|
|
246
|
-
/* @__PURE__ */ r(ke, { open: G, 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: () => w(!1), onConfirm: c }),
|
|
247
|
-
/* @__PURE__ */ r(fe, { open: T.open, reminderType: T.reminderType, onClose: oe, onCreate: ({
|
|
248
|
-
reminderId: t,
|
|
249
|
-
reminderType: a
|
|
250
|
-
}) => {
|
|
251
|
-
a === "payment" ? x("payment_reminder_id", t) : a === "overdue" && x("overdue_reminder_id", t);
|
|
252
|
-
} }),
|
|
253
|
-
p.reminderId && /* @__PURE__ */ r(ve, { open: p.open, reminderId: p.reminderId, reminderType: p.reminderType, onClose: de })
|
|
10
|
+
i18n: t
|
|
11
|
+
} = o();
|
|
12
|
+
return /* @__PURE__ */ n("section", { className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:pb-10", children: [
|
|
13
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
14
|
+
/* @__PURE__ */ e("h3", { className: "ttw:text-base ttw:font-medium", children: t._("Make recurring") }),
|
|
15
|
+
/* @__PURE__ */ e(s, { checked: r, onCheckedChange: i, "aria-label": t._("Make recurring") })
|
|
16
|
+
] }),
|
|
17
|
+
r && /* @__PURE__ */ n(a, { children: [
|
|
18
|
+
/* @__PURE__ */ e("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-foreground", children: t._("When you set up the recurrence all future invoices will be issued based on this invoice template. After that you won't be able to change the invoice template.") }),
|
|
19
|
+
/* @__PURE__ */ e(c, {}),
|
|
20
|
+
/* @__PURE__ */ e("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-muted-foreground", children: t._("The first invoice is to be issued on the nearest date that matches the settings.") })
|
|
21
|
+
] })
|
|
254
22
|
] });
|
|
255
23
|
};
|
|
256
24
|
export {
|
|
257
|
-
|
|
25
|
+
u as RecurrenceSection
|
|
258
26
|
};
|
|
@@ -1,185 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { useMe as ne, useMyEntity as ae } from "./index80.js";
|
|
11
|
-
import { useLingui as $ } from "@lingui/react";
|
|
12
|
-
import { useGetReceivableById as se } from "./index84.js";
|
|
13
|
-
import { CenteredContentBox as re } from "./index246.js";
|
|
14
|
-
import { IconWrapper as de } from "./index247.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 "./index52.js";
|
|
19
|
-
import { DialogTitle as pe, Toolbar as fe, Grid as D, Stack as R, Button as j, Typography as ye, DialogContent as he, CircularProgress as ve } from "@mui/material";
|
|
20
|
-
import { getEmailInvoiceDetailsSchema as be } from "./index208.js";
|
|
21
|
-
import { Form as ge, FormContent as Ie } from "./index340.js";
|
|
22
|
-
import { getDefaultContact as _e } from "./index341.js";
|
|
23
|
-
import { useIssueReceivableById as Ce } from "./index342.js";
|
|
24
|
-
import { useSendReceivableById as xe } from "./index343.js";
|
|
25
|
-
import { PreviewEmail as Ee } from "./index344.js";
|
|
26
|
-
const Ye = (t) => {
|
|
27
|
-
const {
|
|
28
|
-
i18n: n
|
|
29
|
-
} = $(), {
|
|
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
|
|
1
|
+
import { jsxs as o, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as p } from "@lingui/react";
|
|
3
|
+
import { useFormContext as u, Controller as n } from "react-hook-form";
|
|
4
|
+
import { Field as t, FieldContent as s, FieldLabel as m, FieldError as c } from "./index164.js";
|
|
5
|
+
import { Input as w } from "./index130.js";
|
|
6
|
+
import { Textarea as f } from "./index131.js";
|
|
7
|
+
const N = ({
|
|
8
|
+
disabled: a,
|
|
9
|
+
visibleFields: h
|
|
76
10
|
}) => {
|
|
77
11
|
const {
|
|
78
|
-
i18n:
|
|
79
|
-
} =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
control:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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: z
|
|
119
|
-
}) => N === "active" && z === "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(R, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
148
|
-
f == d.Edit && /* @__PURE__ */ c(Q, { 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(R, { 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
|
-
] }) })
|
|
12
|
+
i18n: d
|
|
13
|
+
} = p(), {
|
|
14
|
+
control: l
|
|
15
|
+
} = u();
|
|
16
|
+
return /* @__PURE__ */ o("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
17
|
+
/* @__PURE__ */ e(n, { name: "memo", control: l, render: ({
|
|
18
|
+
field: r,
|
|
19
|
+
fieldState: {
|
|
20
|
+
error: i
|
|
21
|
+
}
|
|
22
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
23
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, required: !0, children: d._("Memo") }),
|
|
24
|
+
/* @__PURE__ */ e(f, { ...r, id: r.name, disabled: a, placeholder: d._("Dear client, as discussed, please find attached our invoice:"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!i }),
|
|
25
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
26
|
+
] }) }) }),
|
|
27
|
+
h?.isFooterShown && /* @__PURE__ */ e(n, { name: "footer", control: l, render: ({
|
|
28
|
+
field: r,
|
|
29
|
+
fieldState: {
|
|
30
|
+
error: i
|
|
31
|
+
}
|
|
32
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
33
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, children: d._("Note to customer") }),
|
|
34
|
+
/* @__PURE__ */ e(f, { ...r, id: r.name, disabled: a, placeholder: d._("Add a note to be displayed below the line items"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!i }),
|
|
35
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
36
|
+
] }) }) }),
|
|
37
|
+
h?.isPurchaseOrderShown && /* @__PURE__ */ e(n, { name: "purchase_order", control: l, render: ({
|
|
38
|
+
field: r,
|
|
39
|
+
fieldState: {
|
|
40
|
+
error: i
|
|
41
|
+
}
|
|
42
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
43
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, children: d._("Purchase order") }),
|
|
44
|
+
/* @__PURE__ */ e(w, { ...r, id: r.name, disabled: a, placeholder: d._("Add number"), "aria-invalid": !!i }),
|
|
45
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
162
46
|
] }) }) }),
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
] }) })
|
|
47
|
+
h?.isTermsAndConditionsShown && /* @__PURE__ */ e(n, { name: "terms_and_conditions", control: l, render: ({
|
|
48
|
+
field: r,
|
|
49
|
+
fieldState: {
|
|
50
|
+
error: i
|
|
51
|
+
}
|
|
52
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
53
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, required: !0, children: d._("Terms and conditions") }),
|
|
54
|
+
/* @__PURE__ */ e(f, { ...r, id: r.name, disabled: a, placeholder: d._("Add text"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!i }),
|
|
55
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
56
|
+
] }) }) })
|
|
180
57
|
] });
|
|
181
58
|
};
|
|
182
59
|
export {
|
|
183
|
-
|
|
184
|
-
Pe as EmailInvoiceDetailsBase
|
|
60
|
+
N as EntitySection
|
|
185
61
|
};
|
|
@@ -1,16 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsxs as s, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormErrors as M, FormErrorDisplay as q } from "./index301.js";
|
|
3
|
+
import { InvoiceItemRow as k } from "./index302.js";
|
|
4
|
+
import { InvoiceTotals as B } from "./index303.js";
|
|
5
|
+
import { CUSTOM_ID as O } from "./index304.js";
|
|
6
|
+
import { useLineItemManagement as z } from "./index305.js";
|
|
7
|
+
import { useLingui as W } from "@lingui/react";
|
|
8
|
+
import { Button as J } from "./index86.js";
|
|
9
|
+
import { Field as Q, FieldContent as Y, FieldLabel as H } from "./index164.js";
|
|
10
|
+
import { Typography as m } from "./index87.js";
|
|
11
|
+
import { Plus as K } from "lucide-react";
|
|
12
|
+
import { useCallback as h, useEffect as X, useRef as Z } from "react";
|
|
13
|
+
import { useFormContext as tt, Controller as et } from "react-hook-form";
|
|
14
|
+
import { LoadingSpinner as it } from "./index144.js";
|
|
15
|
+
import { useGetMeasureUnits as rt } from "./index212.js";
|
|
16
|
+
import { InputGroup as at, InputGroupInput as nt, InputGroupAddon as ot } from "./index103.js";
|
|
17
|
+
import { sanitizeTaxRateInput as lt } from "./index306.js";
|
|
18
|
+
import { Separator as st } from "./index148.js";
|
|
19
|
+
const Lt = ({
|
|
20
|
+
defaultCurrency: d = "USD",
|
|
21
|
+
actualCurrency: u = d,
|
|
22
|
+
registerLineItemCleanupFn: c,
|
|
23
|
+
handleOpenCreateProductDialog: I
|
|
24
|
+
}) => {
|
|
3
25
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
26
|
+
i18n: a
|
|
27
|
+
} = W(), {
|
|
28
|
+
control: _,
|
|
29
|
+
formState: g,
|
|
30
|
+
getValues: w,
|
|
31
|
+
watch: $,
|
|
32
|
+
trigger: v
|
|
33
|
+
} = tt(), N = $("tax_mode") === "inclusive", {
|
|
34
|
+
data: b,
|
|
35
|
+
isLoading: L
|
|
36
|
+
} = rt(), {
|
|
37
|
+
fields: p,
|
|
38
|
+
subtotalPrice: P,
|
|
39
|
+
totalPrice: R,
|
|
40
|
+
totalTaxes: F,
|
|
41
|
+
lineItemErrors: T,
|
|
42
|
+
handleAddRow: U,
|
|
43
|
+
handleRemoveItem: E,
|
|
44
|
+
setValueWithValidationLocal: f,
|
|
45
|
+
cleanUpLineItemsForSubmission: x
|
|
46
|
+
} = z({
|
|
47
|
+
actualCurrency: u,
|
|
48
|
+
defaultCurrency: d,
|
|
49
|
+
isInclusivePricing: N
|
|
50
|
+
}), r = h((t, e) => {
|
|
51
|
+
f(t, e, {
|
|
52
|
+
shouldValidate: !1
|
|
53
|
+
});
|
|
54
|
+
}, [f]);
|
|
55
|
+
X(() => (c?.(x), () => c?.(null)), [c, x]);
|
|
56
|
+
const y = Z(null), {
|
|
57
|
+
generalError: S,
|
|
58
|
+
fieldErrors: A
|
|
59
|
+
} = M(T), C = h((t, e, n) => {
|
|
60
|
+
const l = e.measureUnit?.id, o = e.measureUnit?.name;
|
|
61
|
+
o && !l ? (r(`line_items.${t}.product.measure_unit_id`, ""), r(`line_items.${t}.product.measure_unit_name`, o), r(`line_items.${t}.measure_unit`, {
|
|
62
|
+
name: o,
|
|
63
|
+
id: null
|
|
64
|
+
})) : (l || n) && (r(`line_items.${t}.product.measure_unit_id`, l || n), r(`line_items.${t}.product.measure_unit_name`, void 0), r(`line_items.${t}.measure_unit`, void 0));
|
|
65
|
+
}, [r]), V = h((t, e, n) => {
|
|
66
|
+
const l = e.label ?? "";
|
|
67
|
+
if (r(`line_items.${t}.product.name`, l), e.id !== "" && e.id !== O && n) {
|
|
68
|
+
r(`line_items.${t}.product.price.value`, e.price?.value ?? 0), r(`line_items.${t}.product.price.currency`, u);
|
|
69
|
+
const o = w(`line_items.${t}.product.measure_unit_id`);
|
|
70
|
+
C(t, e, o), r(`line_items.${t}.quantity`, e.smallestAmount ?? 1), r(`line_items.${t}.product.smallest_amount`, e.smallestAmount), r(`line_items.${t}.product.type`, "product"), r(`line_items.${t}.product.description`, e.description ?? ""), v(`line_items.${t}`);
|
|
9
71
|
}
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
72
|
+
}, [u, w, r, C, v]);
|
|
73
|
+
return /* @__PURE__ */ s("div", { ref: y, className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
74
|
+
/* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
75
|
+
/* @__PURE__ */ i(m, { variant: "h4", children: a._("Products and services") }),
|
|
76
|
+
/* @__PURE__ */ i(m, { variant: "body2", color: "muted", className: "ttw:font-medium", children: a._("Add the products and services on this invoice. You'll have the option to save new items to your inventory.") })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ i(q, { generalError: g?.errors?.line_items?.root?.message ?? S, fieldErrors: A }),
|
|
79
|
+
/* @__PURE__ */ s("ul", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
80
|
+
/* @__PURE__ */ s("li", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-5", children: [
|
|
81
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:min-w-30 ttw:whitespace-nowrap ttw:inline-flex ttw:flex-1", children: a._("Item name") }),
|
|
82
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-24 ttw:min-w-24", children: a._("Quantity") }),
|
|
83
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-20.5 ttw:min-w-20.5", children: a._("Units") }),
|
|
84
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:max-w-41 ttw:w-full ttw:min-w-29", children: a._("Price") }),
|
|
85
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-12 ttw:min-w-12", children: a._("Taxable") }),
|
|
86
|
+
p.length > 1 && /* @__PURE__ */ i("div", { className: "ttw:w-10 ttw:min-w-10" })
|
|
87
|
+
] }),
|
|
88
|
+
L ? /* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-center ttw:justify-center ttw:h-9", children: /* @__PURE__ */ i(it, { className: "ttw:w-5 ttw:h-5" }) }) : p.map((t, e) => {
|
|
89
|
+
const n = (o) => w(`line_items.${e}.${o}`), l = (o, j, D) => {
|
|
90
|
+
const G = `line_items.${e}.${o}`;
|
|
91
|
+
f(G, j, D);
|
|
92
|
+
};
|
|
93
|
+
return /* @__PURE__ */ i(k, { field: t, index: e, control: _, errors: g.errors, actualCurrency: u, defaultCurrency: d, measureUnitsData: b, onRequestLineItemValue: n, onLineItemValueChange: l, onRequestOpenCreateProductDialog: I, canRemove: p.length > 1, onUpdateItem: V, onRemoveItem: E, container: y }, t.id);
|
|
94
|
+
})
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ s(J, { type: "button", variant: "ghost", onClick: U, className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit", children: [
|
|
97
|
+
/* @__PURE__ */ i(K, { className: "ttw:size-5 ttw:text-primary" }),
|
|
98
|
+
a._("Add item")
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ i(et, { name: "tax_rate", control: _, render: ({
|
|
101
|
+
field: t
|
|
102
|
+
}) => /* @__PURE__ */ i(Q, { children: /* @__PURE__ */ s(Y, { className: "ttw:flex-row ttw:justify-end", children: [
|
|
103
|
+
/* @__PURE__ */ i(H, { htmlFor: t.name, children: a._("Tax rate") }),
|
|
104
|
+
/* @__PURE__ */ s(at, { className: "ttw:w-28 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0", children: [
|
|
105
|
+
/* @__PURE__ */ i(nt, { ...t, value: t.value ?? "", id: t.name, className: "ttw:text-right", placeholder: a._("e.g. 6.25"), type: "text", inputMode: "decimal", onChange: (e) => {
|
|
106
|
+
t.onChange(lt(e.target.value));
|
|
107
|
+
}, onBlur: (e) => {
|
|
108
|
+
const n = e.target.value;
|
|
109
|
+
t.onChange(n.endsWith(".") ? n.slice(0, -1) : n), t.onBlur();
|
|
110
|
+
} }),
|
|
111
|
+
/* @__PURE__ */ i(ot, { align: "inline-end", children: "%" })
|
|
112
|
+
] })
|
|
113
|
+
] }) }) }),
|
|
114
|
+
/* @__PURE__ */ i(st, {}),
|
|
115
|
+
/* @__PURE__ */ i(B, { subtotalPrice: P, totalTaxes: F, totalPrice: R, actualCurrency: u, defaultCurrency: d })
|
|
116
|
+
] });
|
|
13
117
|
};
|
|
14
118
|
export {
|
|
15
|
-
|
|
119
|
+
Lt as ItemsSection
|
|
16
120
|
};
|