@tesouro/embedded-components-react 0.2.72 → 0.2.74
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 +6 -10
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +5 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +32 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +10 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +15 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +11 -15
- 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 +152 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +24 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +13 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +9 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +21 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +108 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +69 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +9 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +44 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +75 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +58 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +195 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +14 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +77 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +41 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +7 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +115 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +68 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +190 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +31 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +111 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +134 -85
- 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 +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +26 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +19 -390
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +183 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +49 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -12
- 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 +87 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +6 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +47 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +37 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +386 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +99 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +398 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +69 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +406 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +100 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +25 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +214 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +10 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +34 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +141 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +86 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +72 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +44 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +29 -50
- 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 +42 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +94 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +112 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +86 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +62 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +54 -21
- 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 +344 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +11 -247
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +33 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +35 -24
- 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 +35 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +17 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +249 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +178 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +18 -490
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +23 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +54 -53
- 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 +50 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +30 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +94 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +42 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +41 -339
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +22 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +5 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +72 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +32 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +19 -24
- 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 +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +37 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +13 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +70 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +2 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +96 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +96 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +190 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +20 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +14 -59
- 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 +17 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +168 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +130 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +158 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +9 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +62 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +67 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +57 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +6 -55
- 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 +10 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +60 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +61 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +76 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +39 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +39 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +344 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +302 -62
- 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 +99 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +154 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +265 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +18 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +64 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +157 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +78 -80
- 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 +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +22 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +60 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +149 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +480 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +163 -60
- 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 +41 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +59 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +29 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +111 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +21 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +40 -281
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +53 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +65 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +42 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +22 -222
- 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 +184 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +81 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +282 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +48 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +15 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +221 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +26 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +127 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +92 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +16 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +73 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +16 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +46 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +34 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +255 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +53 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +22 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +38 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +99 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +33 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +52 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +40 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +65 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +94 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +27 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +24 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +48 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +32 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +124 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +20 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +10 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +63 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +69 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +47 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +5 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +32 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +85 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +103 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +110 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +120 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +69 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +68 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +38 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +7 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +29 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +38 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +20 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +29 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +39 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +42 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +35 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +13 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +92 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +22 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +57 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +57 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +81 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +50 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +36 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +45 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +69 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +80 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +53 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +50 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +52 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index2.js +55 -34
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/package.json +1 -1
|
@@ -1,22 +1,100 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "./
|
|
1
|
+
import { jsxs as o, Fragment as _, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ManualPaymentRecordDetails as k } from "./index377.js";
|
|
3
|
+
import { PaymentRecordForm as E } from "./index378.js";
|
|
4
|
+
import { useMoniteContext as $ } from "./index57.js";
|
|
5
|
+
import { useRootElements as B } from "./index92.js";
|
|
3
6
|
import "@tanstack/react-query";
|
|
7
|
+
import { fromMinorUnits as F, toMinorUnits as H } from "./index120.js";
|
|
4
8
|
import "date-fns";
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import "react
|
|
8
|
-
import "@
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
import { useEntityUserByAuthToken as L } from "./index75.js";
|
|
10
|
+
import { useCreatePaymentRecord as U } from "./index79.js";
|
|
11
|
+
import { useLingui as A } from "@lingui/react";
|
|
12
|
+
import { Dialog as I, DialogContent as Q, DialogActions as W, Button as m, Box as q } from "@mui/material";
|
|
13
|
+
import { useState as l } from "react";
|
|
14
|
+
const g = {
|
|
15
|
+
amount: 0,
|
|
16
|
+
payment_date: /* @__PURE__ */ new Date(),
|
|
17
|
+
payment_time: /* @__PURE__ */ new Date(),
|
|
18
|
+
created_by: ""
|
|
19
|
+
}, ie = ({
|
|
20
|
+
children: b,
|
|
21
|
+
invoice: t
|
|
13
22
|
}) => {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
const [h, c] = l(!1), [C, r] = l(!1), [e, u] = l(g), {
|
|
24
|
+
i18n: s
|
|
25
|
+
} = A(), {
|
|
26
|
+
root: x
|
|
27
|
+
} = B(), v = () => c(!0), n = () => c(!1), {
|
|
28
|
+
api: p,
|
|
29
|
+
queryClient: y
|
|
30
|
+
} = $(), {
|
|
31
|
+
mutate: D,
|
|
32
|
+
isPending: M
|
|
33
|
+
} = U(), {
|
|
34
|
+
data: f,
|
|
35
|
+
isLoading: R
|
|
36
|
+
} = L(), w = (a) => {
|
|
37
|
+
u({
|
|
38
|
+
...a,
|
|
39
|
+
amount: H(a?.amount ?? 0),
|
|
40
|
+
created_by: f?.id ?? ""
|
|
41
|
+
}), r(!0);
|
|
42
|
+
}, P = () => {
|
|
43
|
+
r(!1), u(g);
|
|
44
|
+
}, S = () => {
|
|
45
|
+
const a = new Date(e.payment_date).setHours(e.payment_time.getHours(), e.payment_time.getMinutes()), j = new Date(a);
|
|
46
|
+
D({
|
|
47
|
+
amount: e?.amount ?? 0,
|
|
48
|
+
currency: t.currency,
|
|
49
|
+
paid_at: j.toISOString(),
|
|
50
|
+
object: {
|
|
51
|
+
id: t.id,
|
|
52
|
+
type: "receivable"
|
|
53
|
+
},
|
|
54
|
+
payment_intent_id: t.id,
|
|
55
|
+
entity_user_id: f?.id,
|
|
56
|
+
status: "succeeded"
|
|
57
|
+
}, {
|
|
58
|
+
onSuccess: () => {
|
|
59
|
+
p.finops.getReceivablesId.invalidateQueries({
|
|
60
|
+
parameters: {
|
|
61
|
+
path: {
|
|
62
|
+
receivable_id: t.id
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, y), p.finops.getReceivables.invalidateQueries(y), n(), P();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}, d = M || R;
|
|
69
|
+
return ["draft", "paid", "canceled", "deleted", "accepted", "recurring", "expired", "declined", "uncollectible"].includes(t.status) ? null : /* @__PURE__ */ o(_, { children: [
|
|
70
|
+
b({
|
|
71
|
+
openModal: v
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ i(I, { open: h, onClose: n, container: x, "aria-labelledby": "dialog-title", fullWidth: !0, maxWidth: "sm", children: C ? /* @__PURE__ */ o(_, { children: [
|
|
74
|
+
/* @__PURE__ */ i(Q, { sx: {
|
|
75
|
+
p: 4
|
|
76
|
+
}, children: /* @__PURE__ */ i(k, { invoice: t, paymentRecords: e }) }),
|
|
77
|
+
/* @__PURE__ */ o(W, { sx: {
|
|
78
|
+
px: 4,
|
|
79
|
+
pb: 4,
|
|
80
|
+
justifyContent: "space-between"
|
|
81
|
+
}, children: [
|
|
82
|
+
/* @__PURE__ */ i(m, { onClick: n, children: s._("Cancel") }),
|
|
83
|
+
/* @__PURE__ */ o(q, { sx: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
gap: 2
|
|
86
|
+
}, children: [
|
|
87
|
+
/* @__PURE__ */ i(m, { variant: "outlined", disabled: d, onClick: () => r(!1), children: s._("Edit record") }),
|
|
88
|
+
/* @__PURE__ */ i(m, { variant: "contained", disabled: d, onClick: S, children: s._("Confirm") })
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
] }) : /* @__PURE__ */ i(E, { invoice: t, initialValues: {
|
|
92
|
+
amount: e.amount ? F(e.amount) : 0,
|
|
93
|
+
payment_date: e.payment_date,
|
|
94
|
+
payment_time: e.payment_time
|
|
95
|
+
}, isLoading: d, onCancel: n, onSubmit: w }) })
|
|
96
|
+
] });
|
|
19
97
|
};
|
|
20
98
|
export {
|
|
21
|
-
|
|
99
|
+
ie as RecordManualPaymentModal
|
|
22
100
|
};
|
|
@@ -1,43 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as f, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCancelRecurrence as v } from "./index379.js";
|
|
3
|
+
import { useGetRecurrenceById as _ } from "./index256.js";
|
|
4
|
+
import { useCurrencies as C } from "./index58.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./index92.js";
|
|
7
|
+
import { useLingui as g, Trans as h } from "@lingui/react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "./index57.js";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { ConfirmationModal as b } from "./index238.js";
|
|
12
|
+
import w from "deep-eql";
|
|
13
|
+
import { usePreviousDistinct as y } from "react-use";
|
|
14
|
+
const $ = ({
|
|
15
|
+
invoice: i,
|
|
5
16
|
open: a,
|
|
6
|
-
|
|
7
|
-
onClose: i,
|
|
8
|
-
onConfirm: c
|
|
17
|
+
onClose: r
|
|
9
18
|
}) => {
|
|
10
19
|
const {
|
|
11
|
-
i18n:
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, children: o._("Cancel") }),
|
|
37
|
-
/* @__PURE__ */ e(l, { onClick: c, variant: "contained", color: r ? "primary" : "error", children: r ? o._("Force Approve") : o._("Force Reject") })
|
|
38
|
-
] })
|
|
20
|
+
i18n: e
|
|
21
|
+
} = g(), {
|
|
22
|
+
formatCurrencyToDisplay: l
|
|
23
|
+
} = C(), c = i?.recurrence_id ?? "", {
|
|
24
|
+
mutate: m,
|
|
25
|
+
isPending: u
|
|
26
|
+
} = v(c, i.id), {
|
|
27
|
+
data: t
|
|
28
|
+
} = _(c), s = y(t, w), o = (s?.status === "active" && t?.status === "canceled" ? s : t)?.iterations?.filter(({
|
|
29
|
+
status: p
|
|
30
|
+
}) => p === "pending")?.length ?? 0, d = i && o !== void 0 ? l(i.total_amount_with_credit_notes * o, i.currency) : void 0;
|
|
31
|
+
return /* @__PURE__ */ f(b, { open: a && !!i.id, title: e._("Cancel Recurring Invoice"), confirmLabel: e._("Cancel recurrence"), cancelLabel: e._("Close"), onClose: r, onConfirm: () => m(void 0, {
|
|
32
|
+
onSuccess: r
|
|
33
|
+
}), isLoading: u, children: [
|
|
34
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("Are you sure you want to cancel this recurring invoice?") }),
|
|
35
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("All future iterations of this invoice will be canceled.") }),
|
|
36
|
+
i && o !== void 0 && /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: /* @__PURE__ */ n(h, { id: "ZYrFPL", values: {
|
|
37
|
+
0: o === 1 ? e._("invoice") : e._("invoices"),
|
|
38
|
+
totalPendingInvoices: o,
|
|
39
|
+
pendingInvoicesTotalAmountWithCreditNotes: d
|
|
40
|
+
}, components: {
|
|
41
|
+
0: /* @__PURE__ */ n("strong", {}),
|
|
42
|
+
1: /* @__PURE__ */ n("strong", {})
|
|
43
|
+
} }) }),
|
|
44
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("This action can't be undone.") })
|
|
39
45
|
] });
|
|
40
46
|
};
|
|
41
47
|
export {
|
|
42
|
-
|
|
48
|
+
$ as RecurrenceCancelModal
|
|
43
49
|
};
|
|
@@ -1,347 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "@tanstack/react-query";
|
|
11
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
|
-
import { Scope as ke } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
-
import { useLingui as Ne } from "@lingui/react";
|
|
14
|
-
import "react-hot-toast";
|
|
15
|
-
import { PayableLineItemsForm as Ve } from "./index451.js";
|
|
16
|
-
import { prepareDefaultValues as H, calculateTotalsForPayable as Re, findDefaultBankAccount as Me, isFieldRequired as p, prepareSubmit as qe } from "./index355.js";
|
|
17
|
-
import { usePayableDetailsForm as Ge } from "./index452.js";
|
|
18
|
-
import { getPayableDetailsFormSchema as We, isFieldRequiredByValidations as I } from "./index453.js";
|
|
19
|
-
import { ScopedCssBaselineContainerClassName as Oe } from "./index104.js";
|
|
20
|
-
import { CounterpartDetails as je } from "./index2.js";
|
|
21
|
-
import { CounterpartAutocomplete as Le } from "./index4.js";
|
|
22
|
-
import "./index84.js";
|
|
23
|
-
import "clsx";
|
|
24
|
-
import "tailwind-merge";
|
|
25
|
-
import "@radix-ui/react-dialog";
|
|
26
|
-
import "lucide-react";
|
|
27
|
-
import "./index153.js";
|
|
28
|
-
import "@radix-ui/react-label";
|
|
29
|
-
import "@radix-ui/react-radio-group";
|
|
30
|
-
import "./index85.js";
|
|
31
|
-
import { useForm as Ue, useFormState as Ee, FormProvider as Qe, Controller as x } from "react-hook-form";
|
|
32
|
-
import "@hookform/resolvers/zod";
|
|
33
|
-
import "zod";
|
|
34
|
-
import "./index324.js";
|
|
35
|
-
import "date-fns";
|
|
36
|
-
import "@radix-ui/react-checkbox";
|
|
37
|
-
import "@radix-ui/react-select";
|
|
38
|
-
import "./index90.js";
|
|
39
|
-
import "./index50.js";
|
|
40
|
-
import "@mui/icons-material/ArrowBack";
|
|
41
|
-
import "@mui/icons-material/Close";
|
|
42
|
-
import "@mui/material/IconButton";
|
|
43
|
-
import "@mui/material/Tooltip";
|
|
44
|
-
import { useCurrencies as ze } from "./index58.js";
|
|
45
|
-
import { MoniteScopedProviders as He } from "./index83.js";
|
|
46
|
-
import { Box as M, Grid as S, Paper as q, Typography as P, Stack as Je, TextField as J, FormControl as Ke, InputLabel as Ze, Select as Xe, Button as K, MenuItem as Ye, FormHelperText as $e, Table as et, TableBody as tt, TableRow as A, TableCell as c, IconButton as rt } from "@mui/material";
|
|
47
|
-
import "@radix-ui/react-dropdown-menu";
|
|
48
|
-
import "@tanstack/react-table";
|
|
49
|
-
import { useRootElements as at } from "./index92.js";
|
|
50
|
-
import { useOptionalFields as ot } from "./index59.js";
|
|
51
|
-
import { useProductCurrencyGroups as it } from "./index454.js";
|
|
52
|
-
import { getBankAccountName as nt } from "./index455.js";
|
|
53
|
-
import { safeZodResolver as st } from "./index234.js";
|
|
54
|
-
import { MoniteCurrency as lt } from "./index456.js";
|
|
55
|
-
import "react-dom";
|
|
56
|
-
import "@mui/x-data-grid";
|
|
57
|
-
import "./index101.js";
|
|
58
|
-
import "./index457.js";
|
|
59
|
-
import { TagsAutocompleteInput as dt } from "./index458.js";
|
|
60
|
-
import { classNames as ct } from "./index172.js";
|
|
61
|
-
import Z from "@mui/icons-material/Add";
|
|
62
|
-
import ut from "@mui/icons-material/DeleteForever";
|
|
63
|
-
import { DatePicker as X } from "@mui/x-date-pickers";
|
|
64
|
-
const xr = ({
|
|
65
|
-
ref: r,
|
|
66
|
-
...D
|
|
67
|
-
}) => /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(mt, { ref: r, ...D }) }), mt = ({
|
|
68
|
-
payable: r,
|
|
69
|
-
savePayable: D,
|
|
70
|
-
createPayable: G,
|
|
71
|
-
lineItems: T,
|
|
72
|
-
payableDetailsFormId: Y,
|
|
73
|
-
enableGLCodes: $,
|
|
74
|
-
hideAddDiscountButton: ee,
|
|
75
|
-
hideAddBankAccountButton: te,
|
|
76
|
-
ref: re,
|
|
77
|
-
...W
|
|
1
|
+
import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as m, Controller as w } from "react-hook-form";
|
|
3
|
+
import { Typography as n } from "./index85.js";
|
|
4
|
+
import { useLingui as u } from "@lingui/react";
|
|
5
|
+
import { Switch as i } from "./index385.js";
|
|
6
|
+
import { twMerge as h } from "tailwind-merge";
|
|
7
|
+
const x = ({
|
|
8
|
+
control: l,
|
|
9
|
+
isDialog: r
|
|
78
10
|
}) => {
|
|
79
11
|
const {
|
|
80
|
-
i18n:
|
|
81
|
-
} =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
} = ae.finops.getPayablesValidations.useQuery(), se = Be(() => H(w, r, T), [w, r, T]), B = Ue({
|
|
96
|
-
resolver: st(We(a, g)),
|
|
97
|
-
defaultValues: se,
|
|
98
|
-
mode: "onTouched"
|
|
99
|
-
}), {
|
|
100
|
-
control: s,
|
|
101
|
-
handleSubmit: le,
|
|
102
|
-
watch: u,
|
|
103
|
-
reset: O,
|
|
104
|
-
trigger: j,
|
|
105
|
-
setValue: h,
|
|
106
|
-
getValues: L,
|
|
107
|
-
getFieldState: U
|
|
108
|
-
} = B, {
|
|
109
|
-
dirtyFields: de
|
|
110
|
-
} = Ee({
|
|
111
|
-
control: s
|
|
112
|
-
}), _ = u("counterpart"), E = u("counterpartBankAccount"), ce = u("invoiceDate"), ue = u("dueDate"), n = u("currency"), me = u("lineItems"), N = u("discount"), f = Re(me, N), [pe, V] = Ie(!1), {
|
|
113
|
-
counterpartQuery: he,
|
|
114
|
-
counterpartBankAccountQuery: d
|
|
115
|
-
} = Ge({
|
|
116
|
-
currentCounterpartId: _
|
|
117
|
-
}), {
|
|
118
|
-
ocrRequiredFields: m,
|
|
119
|
-
optionalFields: fe
|
|
120
|
-
} = z(W), {
|
|
121
|
-
showInvoiceDate: ye,
|
|
122
|
-
showTags: be
|
|
123
|
-
} = ot(fe, {
|
|
124
|
-
showInvoiceDate: !0,
|
|
125
|
-
showTags: !0
|
|
126
|
-
}), ge = Ae().has(ke.AccountingConfigReadOrg), Q = Se(!1), {
|
|
127
|
-
counterpart: C,
|
|
128
|
-
counterpartRawName: _e,
|
|
129
|
-
isCounterpartAIMatched: Ce,
|
|
130
|
-
isCounterpartMatchingToOCRFound: R,
|
|
131
|
-
isCounterpartLoading: ve
|
|
132
|
-
} = Fe({
|
|
133
|
-
payable: r
|
|
134
|
-
});
|
|
135
|
-
v(() => {
|
|
136
|
-
O(H(w, r, T));
|
|
137
|
-
}, [r, w, O, T]), v(() => {
|
|
138
|
-
!_ && E && h("counterpartBankAccount", "", {
|
|
139
|
-
shouldValidate: !0
|
|
140
|
-
});
|
|
141
|
-
}, [_, E, h]), v(() => {
|
|
142
|
-
!R || !C || U("counterpart").isTouched || h("counterpart", C.id);
|
|
143
|
-
}, [C, U, R, h]), v(() => {
|
|
144
|
-
if (d.isSuccess && d.data?.data) {
|
|
145
|
-
const t = Me(d.data.data, n);
|
|
146
|
-
L("counterpartBankAccount") !== t && h("counterpartBankAccount", t, {
|
|
147
|
-
shouldDirty: !0,
|
|
148
|
-
shouldTouch: !0,
|
|
149
|
-
shouldValidate: !0
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}, [d.data, d.isSuccess, n, L, h]), v(() => {
|
|
153
|
-
r?.id && j();
|
|
154
|
-
}, [j, r?.id]);
|
|
155
|
-
const {
|
|
156
|
-
currencyGroups: xe,
|
|
157
|
-
isLoadingCurrencyGroups: De
|
|
158
|
-
} = it();
|
|
159
|
-
return /* @__PURE__ */ i(we, { children: [
|
|
160
|
-
/* @__PURE__ */ e(M, { className: ct(Oe, l), sx: {
|
|
161
|
-
pb: 6,
|
|
162
|
-
display: "flex",
|
|
163
|
-
flex: "1 1 auto",
|
|
164
|
-
overflow: "auto",
|
|
165
|
-
width: "100%",
|
|
166
|
-
height: 0
|
|
167
|
-
}, children: /* @__PURE__ */ e(Qe, { ...B, children: /* @__PURE__ */ e("form", { style: {
|
|
168
|
-
width: "100%"
|
|
169
|
-
}, ref: re, id: Y, noValidate: !0, onBlur: () => {
|
|
170
|
-
Q.current = !1;
|
|
171
|
-
}, onKeyDown: (t) => {
|
|
172
|
-
Q.current = t.key === "Enter";
|
|
173
|
-
}, onSubmit: le(async (t) => {
|
|
174
|
-
const o = {
|
|
175
|
-
...t,
|
|
176
|
-
currency: t.currency,
|
|
177
|
-
counterpartAddressId: he.data?.data?.find(({
|
|
178
|
-
id: Te
|
|
179
|
-
}) => Te === t.counterpart)?.default_billing_address_id
|
|
180
|
-
}, y = qe(o, F);
|
|
181
|
-
r ? D && D(r.id, y, t.lineItems, de) : G && G(y, t.lineItems);
|
|
182
|
-
}), children: /* @__PURE__ */ i(S, { container: !0, spacing: 3, children: [
|
|
183
|
-
/* @__PURE__ */ e(S, { item: !0, xs: 12, children: /* @__PURE__ */ i(q, { variant: "outlined", sx: {
|
|
184
|
-
p: 3
|
|
185
|
-
}, className: l + "-Details", children: [
|
|
186
|
-
/* @__PURE__ */ e(P, { variant: "subtitle2", mb: 2, children: a._("Details") }),
|
|
187
|
-
/* @__PURE__ */ i(Je, { spacing: 3, children: [
|
|
188
|
-
/* @__PURE__ */ e(x, { name: "invoiceNumber", control: s, render: ({
|
|
189
|
-
field: t,
|
|
190
|
-
fieldState: {
|
|
191
|
-
error: o
|
|
192
|
-
}
|
|
193
|
-
}) => /* @__PURE__ */ e(J, { ...t, id: t.name, label: a._("Number"), variant: "standard", fullWidth: !0, error: !!o, helperText: o?.message, required: p("invoiceNumber", m) }) }),
|
|
194
|
-
/* @__PURE__ */ e(Le, { control: s, disabled: ve, name: "counterpart", label: a._("Vendor"), customerType: "vendor", required: p("counterpart", m) || I("counterpart_id", g), getCounterpartDefaultValues: (t) => ({
|
|
195
|
-
tax_id: "",
|
|
196
|
-
counterpart: {
|
|
197
|
-
email: r?.counterpart_raw_data?.email ?? "",
|
|
198
|
-
phone: r?.counterpart_raw_data?.phone ?? "",
|
|
199
|
-
isCustomer: !1,
|
|
200
|
-
isVendor: !0,
|
|
201
|
-
line1: r?.counterpart_raw_data?.address?.line1 ?? "",
|
|
202
|
-
line2: r?.counterpart_raw_data?.address?.line2 ?? "",
|
|
203
|
-
city: r?.counterpart_raw_data?.address?.city ?? "",
|
|
204
|
-
state: r?.counterpart_raw_data?.address?.state ?? "",
|
|
205
|
-
postalCode: r?.counterpart_raw_data?.address?.postal_code ?? "",
|
|
206
|
-
country: "US",
|
|
207
|
-
...t === "individual" && {
|
|
208
|
-
firstName: r?.counterpart_raw_data?.name ?? ""
|
|
209
|
-
},
|
|
210
|
-
...t === "individual" && {
|
|
211
|
-
lastName: ""
|
|
212
|
-
},
|
|
213
|
-
...t === "organization" && {
|
|
214
|
-
companyName: r?.counterpart_raw_data?.name ?? ""
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}), counterpartMatchingToOCR: R ? C : void 0, counterpartRawName: _e, showEditCounterpartButton: !0, setShowEditCounterpartDialog: V, counterpartAISuggested: Ce ? C : void 0 }),
|
|
218
|
-
/* @__PURE__ */ e(x, { name: "counterpartBankAccount", control: s, render: ({
|
|
219
|
-
field: t,
|
|
220
|
-
fieldState: {
|
|
221
|
-
error: o
|
|
222
|
-
}
|
|
223
|
-
}) => /* @__PURE__ */ i(Ke, { variant: "standard", fullWidth: !0, error: !!o, required: p("counterpartBankAccount", m) || I("counterpart_bank_account_id", g), children: [
|
|
224
|
-
/* @__PURE__ */ e(Ze, { htmlFor: t.name, children: a._("Bank account") }),
|
|
225
|
-
/* @__PURE__ */ i(Xe, { ...t, id: t.name, labelId: t.name, label: a._("Bank Account"), MenuProps: {
|
|
226
|
-
container: b
|
|
227
|
-
}, disabled: !d?.data || d?.data?.data.length === 0, children: [
|
|
228
|
-
!te && /* @__PURE__ */ e(K, { variant: "text", startIcon: /* @__PURE__ */ e(Z, {}), fullWidth: !0, sx: {
|
|
229
|
-
justifyContent: "flex-start",
|
|
230
|
-
px: 2,
|
|
231
|
-
py: 1
|
|
232
|
-
}, onClick: () => V(!0), children: a._("Add new bank account") }),
|
|
233
|
-
d?.data?.data.map((y) => /* @__PURE__ */ e(Ye, { value: y.id, children: nt(a, y) }, y.id))
|
|
234
|
-
] }),
|
|
235
|
-
o && /* @__PURE__ */ e($e, { children: o.message })
|
|
236
|
-
] }) }),
|
|
237
|
-
ye && /* @__PURE__ */ e(x, { name: "invoiceDate", control: s, render: ({
|
|
238
|
-
field: t,
|
|
239
|
-
fieldState: {
|
|
240
|
-
error: o
|
|
241
|
-
}
|
|
242
|
-
}) => /* @__PURE__ */ e(X, { maxDate: ue, slotProps: {
|
|
243
|
-
popper: {
|
|
244
|
-
container: b
|
|
245
|
-
},
|
|
246
|
-
dialog: {
|
|
247
|
-
container: b
|
|
248
|
-
},
|
|
249
|
-
actionBar: {
|
|
250
|
-
actions: ["clear", "today"]
|
|
251
|
-
},
|
|
252
|
-
textField: {
|
|
253
|
-
id: t.name,
|
|
254
|
-
variant: "outlined",
|
|
255
|
-
fullWidth: !0,
|
|
256
|
-
error: !!o,
|
|
257
|
-
helperText: o?.message,
|
|
258
|
-
required: p("invoiceDate", m) || I("issued_at", g)
|
|
259
|
-
}
|
|
260
|
-
}, ...t, label: a._("Issue date"), views: ["year", "month", "day"] }) }),
|
|
261
|
-
/* @__PURE__ */ e(x, { name: "dueDate", control: s, render: ({
|
|
262
|
-
field: t,
|
|
263
|
-
fieldState: {
|
|
264
|
-
error: o
|
|
265
|
-
}
|
|
266
|
-
}) => /* @__PURE__ */ e(X, { minDate: ce, slotProps: {
|
|
267
|
-
popper: {
|
|
268
|
-
container: b
|
|
269
|
-
},
|
|
270
|
-
dialog: {
|
|
271
|
-
container: b
|
|
272
|
-
},
|
|
273
|
-
actionBar: {
|
|
274
|
-
actions: ["clear", "today"]
|
|
275
|
-
},
|
|
276
|
-
textField: {
|
|
277
|
-
id: t.name,
|
|
278
|
-
variant: "outlined",
|
|
279
|
-
fullWidth: !0,
|
|
280
|
-
error: !!o,
|
|
281
|
-
helperText: o?.message,
|
|
282
|
-
required: p("dueDate", m)
|
|
283
|
-
}
|
|
284
|
-
}, ...t, label: a._("Due date"), views: ["year", "month", "day"] }) }),
|
|
285
|
-
/* @__PURE__ */ e(lt, { name: "currency", control: s, required: p("currency", m) || I("currency", g), groups: xe, disabled: De, allowedCurrencies: oe?.payables?.availableCurrencies }),
|
|
286
|
-
be && /* @__PURE__ */ e(dt, { control: s, name: "tags", label: a._("Tags"), variant: "standard", disabled: ne || !ge, required: p("tags", m) })
|
|
287
|
-
] })
|
|
288
|
-
] }) }),
|
|
289
|
-
/* @__PURE__ */ e(S, { item: !0, xs: 12, children: /* @__PURE__ */ i(q, { variant: "outlined", sx: {
|
|
290
|
-
p: 3
|
|
291
|
-
}, className: l + "-Items", children: [
|
|
292
|
-
/* @__PURE__ */ e(P, { variant: "subtitle2", mb: 2, children: a._("Items") }),
|
|
293
|
-
/* @__PURE__ */ e(Ve, { enableGLCodes: $ })
|
|
294
|
-
] }) }),
|
|
295
|
-
/* @__PURE__ */ e(S, { item: !0, xs: 12, className: l + "-Totals", children: /* @__PURE__ */ e(q, { variant: "outlined", children: /* @__PURE__ */ e(et, { children: /* @__PURE__ */ i(tt, { children: [
|
|
296
|
-
/* @__PURE__ */ i(A, { className: l + "-Totals-Subtotal", children: [
|
|
297
|
-
/* @__PURE__ */ e(c, { children: a._("Subtotal") }),
|
|
298
|
-
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ i(M, { gap: 0.5, alignItems: "center", justifyContent: "flex-end", display: "flex", children: [
|
|
299
|
-
N === null && !ee && /* @__PURE__ */ e(K, { variant: "text", startIcon: /* @__PURE__ */ e(Z, {}), size: "small", sx: {
|
|
300
|
-
pl: 1.25,
|
|
301
|
-
pr: 2,
|
|
302
|
-
py: 0
|
|
303
|
-
}, onClick: () => {
|
|
304
|
-
const t = B.setValue;
|
|
305
|
-
t("discount", 0);
|
|
306
|
-
}, children: a._("Add Discount") }),
|
|
307
|
-
f.subtotal && n ? k(F(f.subtotal, n) || 0, n) : "—"
|
|
308
|
-
] }) })
|
|
309
|
-
] }),
|
|
310
|
-
N !== null && /* @__PURE__ */ i(A, { className: l + "-Totals-Discount", children: [
|
|
311
|
-
/* @__PURE__ */ e(c, { children: a._("Discount") }),
|
|
312
|
-
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ i(M, { gap: 0.5, alignItems: "center", justifyContent: "flex-end", display: "flex", children: [
|
|
313
|
-
/* @__PURE__ */ e(rt, { "aria-label": "delete", onClick: () => {
|
|
314
|
-
const t = B.setValue;
|
|
315
|
-
t("discount", null);
|
|
316
|
-
}, children: /* @__PURE__ */ e(ut, {}) }),
|
|
317
|
-
/* @__PURE__ */ e(x, { name: "discount", control: s, render: ({
|
|
318
|
-
field: t,
|
|
319
|
-
fieldState: {
|
|
320
|
-
error: o
|
|
321
|
-
}
|
|
322
|
-
}) => /* @__PURE__ */ e(J, { ...t, id: t.name, variant: "standard", type: "number", inputProps: {
|
|
323
|
-
min: 0,
|
|
324
|
-
step: 0.01
|
|
325
|
-
}, error: !!o, sx: {
|
|
326
|
-
width: 150
|
|
327
|
-
}, InputProps: {
|
|
328
|
-
endAdornment: ie(n)
|
|
329
|
-
} }) })
|
|
330
|
-
] }) })
|
|
12
|
+
i18n: e
|
|
13
|
+
} = u(), {
|
|
14
|
+
watch: c,
|
|
15
|
+
setValue: d
|
|
16
|
+
} = m(), s = c("invoice_bank_display");
|
|
17
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
18
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
19
|
+
/* @__PURE__ */ t(n, { variant: "h3", children: e._("PDF settings") }),
|
|
20
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("Invoices are generated as PDFs") })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ a("div", { className: h("ttw:flex ttw:flex-col ttw:gap-2.5 ttw:p-4 ttw:rounded-lg", r ? "ttw:bg-zinc-100" : "ttw:bg-white"), children: [
|
|
23
|
+
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
24
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
25
|
+
/* @__PURE__ */ t(n, { variant: "body1", className: "ttw:font-medium", children: e._("Display your bank account details on the PDF") }),
|
|
26
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("Shows your bank account number, routing number, and account holder name so that customers can pay using an ACH bank transfer. Should only be used with accounts that have a debit block.") })
|
|
331
27
|
] }),
|
|
332
|
-
/* @__PURE__ */ i
|
|
333
|
-
|
|
334
|
-
|
|
28
|
+
/* @__PURE__ */ t(i, { checked: s, onCheckedChange: (o) => {
|
|
29
|
+
d("invoice_bank_display", o, {
|
|
30
|
+
shouldDirty: !0
|
|
31
|
+
});
|
|
32
|
+
}, "aria-label": e._("Display bank display options") })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
35
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
36
|
+
/* @__PURE__ */ t(n, { variant: "body1", className: "ttw:font-medium", children: e._("Update PDF files for paid invoices") }),
|
|
37
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("PDF invoice files will be regenerated to reflect payments made and any remaining amount due. Once a PDF has been updated, you won't be able to revert it.") }),
|
|
38
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", className: "ttw:font-medium", children: e._("Once updated, you won't be able to revert the PDFs.") })
|
|
335
39
|
] }),
|
|
336
|
-
/* @__PURE__ */
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
] }) }) }) }),
|
|
342
|
-
_ && /* @__PURE__ */ e(je, { counterpartId: _, open: pe, onClose: () => V(!1), customerType: "vendor" })
|
|
40
|
+
/* @__PURE__ */ t(w, { name: "update_paid_invoices", control: l, render: ({
|
|
41
|
+
field: o
|
|
42
|
+
}) => /* @__PURE__ */ t(i, { checked: o.value, onCheckedChange: o.onChange, "aria-label": e._("Enable update paid invoices pdf") }) })
|
|
43
|
+
] })
|
|
44
|
+
] })
|
|
343
45
|
] });
|
|
344
46
|
};
|
|
345
47
|
export {
|
|
346
|
-
|
|
48
|
+
x as PDFSettings
|
|
347
49
|
};
|