@tesouro/embedded-components-react 0.2.129 → 0.2.131
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/README.md +10 -0
- package/dist/index.d.ts +48 -31
- package/dist/index.js +104 -100
- package/dist/lib/AcceptDisclosuresWidget.d.ts +587 -0
- package/dist/lib/AcceptDisclosuresWidget.js +7 -0
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index2.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index2.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index3.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- 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/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- 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/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/index118.js +35 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +4 -9
- 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 +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1269 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +9 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +76 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +29 -15
- 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 +9 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +116 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +217 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -37
- 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 +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +49 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +152 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +23 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +62 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +29 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +81 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +99 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +75 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +55 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +78 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +27 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +38 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +111 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +70 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +187 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +30 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +109 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +132 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +20 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +19 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +20 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +183 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +50 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +4 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +5 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +88 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +35 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +41 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +48 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +201 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +430 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +21 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +24 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +93 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +98 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +14 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +101 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +6 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +10 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +213 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +7 -205
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +32 -432
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +13 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +20 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +117 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +137 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +34 -20
- 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 +66 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +345 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +13 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +32 -15
- 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 +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +245 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +26 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +58 -17
- 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 +49 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +97 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +43 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +143 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +101 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +41 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +5 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +73 -43
- 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 +32 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +60 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +92 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +108 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +86 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +66 -18
- 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 +62 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +72 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +92 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +96 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +213 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +54 -18
- 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 +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +60 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +14 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +40 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +343 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +301 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +103 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +156 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +264 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +23 -58
- 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 +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +25 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +122 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +158 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +27 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +27 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +78 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +61 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +41 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +21 -21
- 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 +139 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +112 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +81 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +282 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +47 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +15 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +85 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +222 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +39 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +11 -29
- 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 +11 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +149 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +82 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +82 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +17 -88
- 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 +45 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +12 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +48 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +480 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +166 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +38 -281
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +57 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +113 -85
- 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 +21 -224
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +41 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +57 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +170 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +134 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +162 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +61 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +66 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +57 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +7 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +10 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +57 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +59 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +14 -17
- 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 +19 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +37 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +74 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +76 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +42 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +32 -125
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +31 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +53 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +42 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +96 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +33 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +33 -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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +7 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +28 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +33 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +17 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +62 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +19 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +18 -36
- 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 +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +64 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +2 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +12 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +9 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +32 -28
- 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 +85 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +24 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +95 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +112 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +23 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +5 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +123 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +71 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +16 -14
- 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 +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +40 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +16 -75
- 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 +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +46 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +55 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +33 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +21 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +55 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +69 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +70 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +67 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +49 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +29 -54
- 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 +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +50 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +38 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -48
- 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 +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +20 -48
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- 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 +10 -10
- 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 +12 -12
- 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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +2 -2
|
@@ -1,33 +1,437 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as me } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { MoniteScopedProviders as Me } from "./index83.js";
|
|
3
|
+
import { useMoniteContext as Be } from "./index57.js";
|
|
4
|
+
import { useCurrencies as ze } from "./index58.js";
|
|
5
|
+
import { useState as m, useMemo as Fe, useCallback as f } from "react";
|
|
6
|
+
import "./index92.js";
|
|
7
|
+
import { useLingui as Ee } from "@lingui/react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "@mui/x-data-grid";
|
|
10
|
+
import { useComponentSettings as je } from "./index67.js";
|
|
11
|
+
import { useGetReceivableById as He } from "./index82.js";
|
|
12
|
+
import { useUserPermissions as Ue } from "./index146.js";
|
|
13
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
14
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
15
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
16
|
+
import "@tanstack/react-query";
|
|
17
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
18
|
+
import { Scope as D } from "../../shared/data-access/dist/lib/scopes.js";
|
|
19
|
+
import { AccessRestriction as Ge } from "./index157.js";
|
|
20
|
+
import { Accordion as Ve, AccordionItem as T, AccordionTrigger as A, AccordionContent as P } from "./index237.js";
|
|
21
|
+
import { Badge as b } from "./index238.js";
|
|
22
|
+
import { Button as S } from "./index84.js";
|
|
23
|
+
import { DialogTitle as y } from "./index194.js";
|
|
24
|
+
import { Sheet as qe, SheetContent as Ye, SheetDescription as We, SheetHeader as Je, SheetTitle as Ke } from "./index135.js";
|
|
25
|
+
import { TooltipProvider as Qe, Tooltip as ue, TooltipTrigger as pe, TooltipContent as we } from "./index239.js";
|
|
26
|
+
import { Typography as o } from "./index85.js";
|
|
27
|
+
import { cn as k } from "./index100.js";
|
|
28
|
+
import { LoadingSpinner as he } from "./index136.js";
|
|
29
|
+
import { NotFound as ve } from "./index154.js";
|
|
30
|
+
import { ChevronLeft as Xe, Eye as Ze, Repeat as fe, CircleAlert as et } from "lucide-react";
|
|
31
|
+
import { toast as $ } from "react-hot-toast";
|
|
32
|
+
import { headerIconButtonClass as g, STATUS_ICON as tt, HEADER_TOOLTIP_DELAY as rt, amountValueToneClass as nt, ACTION_ICON as at } from "./index240.js";
|
|
33
|
+
import { buildInvoiceDetailsView as it } from "./index241.js";
|
|
34
|
+
import { preventTooltipFocusOpen as be } from "./index242.js";
|
|
35
|
+
import { useDuplicateInvoice as ot } from "./index243.js";
|
|
36
|
+
import { useGetOverdueReminderById as st } from "./index244.js";
|
|
37
|
+
import { useGetPaymentRecords as lt } from "./index245.js";
|
|
38
|
+
import { useGetPaymentReminderById as ct } from "./index246.js";
|
|
39
|
+
import { useGetRecurrenceById as dt } from "./index247.js";
|
|
40
|
+
import { useGetReceivablePDFById as mt } from "./index248.js";
|
|
41
|
+
import { useIssueReceivableById as ut } from "./index187.js";
|
|
42
|
+
import { usePauseRecurrence as pt } from "./index249.js";
|
|
43
|
+
import { useResumeRecurrence as wt } from "./index250.js";
|
|
44
|
+
import { InvoiceDetailsAmountCell as ht } from "./index251.js";
|
|
45
|
+
import { InvoiceDetailsAttachments as vt } from "./index252.js";
|
|
46
|
+
import { InvoiceDetailsCloseButton as ye } from "./index253.js";
|
|
47
|
+
import { ActionsModal as ft } from "./index201.js";
|
|
48
|
+
import { EditInvoiceDetails as bt } from "./index254.js";
|
|
49
|
+
import { InvoiceDetailsInfoRow as ge } from "./index255.js";
|
|
50
|
+
import { InvoiceDetailsCustomerRow as yt } from "./index256.js";
|
|
51
|
+
import { CounterpartDetails as gt } from "./index2.js";
|
|
52
|
+
import { InvoiceCancelModal as xt } from "./index257.js";
|
|
53
|
+
import { InvoiceDeleteModal as Nt } from "./index258.js";
|
|
54
|
+
import { InvoiceDetailsTabScheduledInvoices as _t } from "./index259.js";
|
|
55
|
+
import { InvoiceRecurrenceStatusChip as It } from "./index169.js";
|
|
56
|
+
import { InvoiceStatusChip as Ct } from "./index55.js";
|
|
57
|
+
import { MarkAsUncollectibleModal as Rt } from "./index260.js";
|
|
58
|
+
import { InvoiceDetailsOverflowMenu as Lt } from "./index261.js";
|
|
59
|
+
import { RecordManualPaymentModal as Dt } from "./index262.js";
|
|
60
|
+
import { RecurrenceCancelModal as Tt } from "./index263.js";
|
|
61
|
+
const Br = (s) => /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(At, { ...s }) }), At = ({
|
|
62
|
+
invoiceId: s,
|
|
63
|
+
open: xe,
|
|
64
|
+
onCloseInvoiceDetails: p,
|
|
65
|
+
onDuplicate: Ne,
|
|
66
|
+
openInvoiceDetails: x
|
|
67
|
+
}) => {
|
|
68
|
+
const {
|
|
69
|
+
i18n: t
|
|
70
|
+
} = Ee(), {
|
|
71
|
+
locale: O
|
|
72
|
+
} = Be(), {
|
|
73
|
+
formatCurrencyToDisplay: M
|
|
74
|
+
} = ze(), {
|
|
75
|
+
receivablesCallbacks: _e
|
|
76
|
+
} = je(), {
|
|
77
|
+
data: i,
|
|
78
|
+
isLoading: B
|
|
79
|
+
} = He(s, !0), {
|
|
80
|
+
data: Ie
|
|
81
|
+
} = mt(s, i?.type === "invoice"), z = Ie?.file_url, {
|
|
82
|
+
data: u,
|
|
83
|
+
isLoading: F
|
|
84
|
+
} = dt(i?.type === "invoice" ? i?.recurrence_id : void 0), {
|
|
85
|
+
data: E,
|
|
86
|
+
isLoading: j
|
|
87
|
+
} = lt(i?.id), {
|
|
88
|
+
data: H
|
|
89
|
+
} = ct(i?.type === "invoice" ? i?.payment_reminder_id : void 0), {
|
|
90
|
+
data: U
|
|
91
|
+
} = st(i?.type === "invoice" ? i?.overdue_reminder_id : void 0), [N, _] = m(!1), [w, I] = m(null), [G, V] = m(!1), [q, Y] = m(!1), [W, J] = m(!1), [K, Q] = m(!1), [X, Z] = m(!1), C = Ue(), ee = C.has(D.InvoiceReadOrg), te = C.has(D.InvoiceWriteOrg), re = C.has(D.CounterpartReadOrg), {
|
|
92
|
+
mutateAsync: h,
|
|
93
|
+
isPending: Ce
|
|
94
|
+
} = ut(), {
|
|
95
|
+
mutate: ne,
|
|
96
|
+
isPending: Re
|
|
97
|
+
} = ot(Ne), {
|
|
98
|
+
mutate: ae,
|
|
99
|
+
isPending: Le
|
|
100
|
+
} = pt(u?.id ?? "", s), {
|
|
101
|
+
mutate: ie,
|
|
102
|
+
isPending: De
|
|
103
|
+
} = wt(u?.id ?? "", s), Te = xe && !N, Ae = ee && !B && !F && !!i && i.type === "invoice", n = Fe(() => {
|
|
104
|
+
if (!(!i || i.type !== "invoice"))
|
|
105
|
+
return it(i, u, E?.data ?? [], {
|
|
106
|
+
i18n: t,
|
|
107
|
+
formatCurrencyToDisplay: M,
|
|
108
|
+
locale: O
|
|
109
|
+
}, j, {
|
|
110
|
+
paymentReminder: H,
|
|
111
|
+
overdueReminder: U
|
|
112
|
+
});
|
|
113
|
+
}, [i, u, E, j, H, U, t, M, O]), R = (c) => {
|
|
114
|
+
switch (c) {
|
|
115
|
+
case "edit":
|
|
116
|
+
return t._("Edit");
|
|
117
|
+
case "issue":
|
|
118
|
+
return t._("Issue");
|
|
119
|
+
case "issueAndSend":
|
|
120
|
+
return t._("Issue and send");
|
|
121
|
+
case "recordPayment":
|
|
122
|
+
return t._("Record payment");
|
|
123
|
+
case "send":
|
|
124
|
+
return t._("Resend to customer");
|
|
125
|
+
case "clone":
|
|
126
|
+
return t._("Duplicate");
|
|
127
|
+
case "cancel":
|
|
128
|
+
return t._("Cancel invoice");
|
|
129
|
+
case "delete":
|
|
130
|
+
return t._("Delete");
|
|
131
|
+
case "markUncollectible":
|
|
132
|
+
return t._("Mark as uncollectible");
|
|
133
|
+
case "pauseRecurrence":
|
|
134
|
+
return t._("Pause series");
|
|
135
|
+
case "resumeRecurrence":
|
|
136
|
+
return t._("Resume series");
|
|
137
|
+
case "cancelRecurrence":
|
|
138
|
+
return t._("Cancel series");
|
|
12
139
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
140
|
+
}, l = f((c) => {
|
|
141
|
+
te ? c() : $.error(t._("You don't have permission to update this document. Please, contact your system administrator for details."));
|
|
142
|
+
}, [te, t]), oe = f(async () => {
|
|
143
|
+
try {
|
|
144
|
+
await h({
|
|
145
|
+
path: {
|
|
146
|
+
receivable_id: s
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
} catch {
|
|
150
|
+
$.error(t._("Something went wrong while issuing the invoice."));
|
|
18
151
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
152
|
+
}, [h, s, t]), se = f(async () => {
|
|
153
|
+
if (i?.counterpart_id) {
|
|
154
|
+
try {
|
|
155
|
+
await h({
|
|
156
|
+
path: {
|
|
157
|
+
receivable_id: s
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
} catch {
|
|
161
|
+
$.error(t._("Something went wrong while issuing the invoice."));
|
|
162
|
+
return;
|
|
23
163
|
}
|
|
164
|
+
I({
|
|
165
|
+
receivableId: s,
|
|
166
|
+
counterpartId: i.counterpart_id,
|
|
167
|
+
// Just issued now — present it like the create flow ("Invoice issued").
|
|
168
|
+
isEditFlow: !1
|
|
169
|
+
});
|
|
24
170
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
171
|
+
}, [i?.counterpart_id, h, s, t]), le = f((c) => {
|
|
172
|
+
switch (c) {
|
|
173
|
+
case "edit":
|
|
174
|
+
return l(() => _(!0));
|
|
175
|
+
case "issue":
|
|
176
|
+
return l(oe);
|
|
177
|
+
case "issueAndSend":
|
|
178
|
+
return l(se);
|
|
179
|
+
case "send":
|
|
180
|
+
return l(() => {
|
|
181
|
+
i?.counterpart_id && I({
|
|
182
|
+
receivableId: s,
|
|
183
|
+
counterpartId: i.counterpart_id,
|
|
184
|
+
// Already issued — a plain resend, not a fresh issue.
|
|
185
|
+
isEditFlow: !0
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
case "clone":
|
|
189
|
+
return l(() => ne({
|
|
190
|
+
path: {
|
|
191
|
+
receivable_id: s
|
|
192
|
+
}
|
|
193
|
+
}));
|
|
194
|
+
case "cancel":
|
|
195
|
+
return l(() => V(!0));
|
|
196
|
+
case "delete":
|
|
197
|
+
return l(() => Y(!0));
|
|
198
|
+
case "markUncollectible":
|
|
199
|
+
return l(() => J(!0));
|
|
200
|
+
case "pauseRecurrence":
|
|
201
|
+
return l(() => ae(void 0));
|
|
202
|
+
case "resumeRecurrence":
|
|
203
|
+
return l(() => ie(void 0));
|
|
204
|
+
case "cancelRecurrence":
|
|
205
|
+
return l(() => Q(!0));
|
|
206
|
+
case "recordPayment":
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
}, [l, oe, se, i?.counterpart_id, ne, s, ae, ie]), Pe = () => {
|
|
210
|
+
if (B || F)
|
|
211
|
+
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:h-full", children: [
|
|
212
|
+
/* @__PURE__ */ e(y, { hidden: !0, children: t._("Loading invoice details") }),
|
|
213
|
+
/* @__PURE__ */ e(he, {})
|
|
214
|
+
] });
|
|
215
|
+
if (!ee)
|
|
216
|
+
return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
|
|
217
|
+
/* @__PURE__ */ e(y, { hidden: !0, children: t._("Access restricted") }),
|
|
218
|
+
/* @__PURE__ */ e(Ge, {})
|
|
219
|
+
] });
|
|
220
|
+
if (i && i.type !== "invoice")
|
|
221
|
+
return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
|
|
222
|
+
/* @__PURE__ */ e(y, { hidden: !0, children: t._("Receivable type not supported") }),
|
|
223
|
+
/* @__PURE__ */ e(ve, { title: t._("Receivable type not supported"), description: t._("Receivable type {type} is not supported. Only invoice is supported.", {
|
|
224
|
+
type: i.type
|
|
225
|
+
}) })
|
|
226
|
+
] });
|
|
227
|
+
if (!i || !n)
|
|
228
|
+
return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
|
|
229
|
+
/* @__PURE__ */ e(y, { hidden: !0, children: t._("Invoice not found") }),
|
|
230
|
+
/* @__PURE__ */ e(ve, { title: t._("Invoice not found"), description: t._("There is no invoice for the provided id: {invoiceId}", {
|
|
231
|
+
invoiceId: s
|
|
232
|
+
}) })
|
|
233
|
+
] });
|
|
234
|
+
const c = tt[n.status], Se = n.amountTone === "danger", d = n.recurringSeries, v = !!d, L = i.counterpart_name, ke = i.counterpart_id && re ? () => Z(!0) : void 0;
|
|
235
|
+
return /* @__PURE__ */ r(me, { children: [
|
|
236
|
+
n.seriesLink ? /* @__PURE__ */ e("div", { className: "ttw:border-b ttw:border-border ttw:px-6 ttw:py-3", children: /* @__PURE__ */ r("button", { type: "button", onClick: () => n.seriesLink && x?.(n.seriesLink.invoiceId), className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-primary ttw:hover:underline", children: [
|
|
237
|
+
/* @__PURE__ */ e(Xe, { className: "ttw:size-4", "aria-hidden": "true" }),
|
|
238
|
+
t._("Back to {title} recurring series", {
|
|
239
|
+
title: n.seriesLink.title
|
|
240
|
+
})
|
|
241
|
+
] }) }) : null,
|
|
242
|
+
/* @__PURE__ */ r(Je, { className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4", children: [
|
|
243
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
244
|
+
/* @__PURE__ */ e(Ke, { className: "ttw:text-xl ttw:font-semibold ttw:text-foreground", children: n.title }),
|
|
245
|
+
n.subtitle ? /* @__PURE__ */ e(o, { variant: "body2", color: "muted", children: n.subtitle }) : null
|
|
246
|
+
] }),
|
|
247
|
+
/* @__PURE__ */ e(Qe, { delayDuration: rt, children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-1.5", children: [
|
|
248
|
+
z ? /* @__PURE__ */ r(ue, { children: [
|
|
249
|
+
/* @__PURE__ */ e(pe, { asChild: !0, onFocus: be, children: /* @__PURE__ */ e(S, { asChild: !0, variant: "ghost", size: "icon", className: g, children: /* @__PURE__ */ e("a", { href: z, target: "_blank", rel: "noreferrer", "aria-label": t._("View PDF"), children: /* @__PURE__ */ e(Ze, { className: "ttw:size-4" }) }) }) }),
|
|
250
|
+
/* @__PURE__ */ e(we, { children: t._("View PDF") })
|
|
251
|
+
] }) : null,
|
|
252
|
+
n.overflowActions.length > 0 ? /* @__PURE__ */ e(Lt, { actions: n.overflowActions, triggerLabel: t._("More actions"), getActionLabel: R, onSelect: le, isActionDisabled: (a) => a === "clone" && Re || a === "pauseRecurrence" && Le || a === "resumeRecurrence" && De, className: g }) : null,
|
|
253
|
+
/* @__PURE__ */ r(ue, { children: [
|
|
254
|
+
/* @__PURE__ */ e(pe, { asChild: !0, onFocus: be, children: /* @__PURE__ */ e(ye, { label: t._("Close"), onClose: p, className: g }) }),
|
|
255
|
+
/* @__PURE__ */ e(we, { children: t._("Close") })
|
|
256
|
+
] })
|
|
257
|
+
] }) })
|
|
258
|
+
] }),
|
|
259
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
260
|
+
/* @__PURE__ */ e("div", { className: "ttw:px-6", children: v && d ? (
|
|
261
|
+
// Recurring series master: recurring amount + series status +
|
|
262
|
+
// start/end, in place of the per-invoice amount rows. The card
|
|
263
|
+
// takes a violet tint (vs the neutral invoice card) to signal a
|
|
264
|
+
// recurrence, matching the Recurring badge.
|
|
265
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-violet-50 ttw:p-4", children: [
|
|
266
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
267
|
+
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", children: t._("Recurring amount") }),
|
|
268
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-baseline ttw:gap-1.5", children: [
|
|
269
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "h3", className: nt[n.amountTone], children: d.amountLabel }),
|
|
270
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", color: "muted", children: d.amountPeriodLabel })
|
|
271
|
+
] })
|
|
272
|
+
] }),
|
|
273
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
274
|
+
/* @__PURE__ */ r(b, { variant: "outline", className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700", children: [
|
|
275
|
+
/* @__PURE__ */ e(fe, { className: "ttw:size-3" }),
|
|
276
|
+
t._("Recurring")
|
|
277
|
+
] }),
|
|
278
|
+
/* @__PURE__ */ e(It, { status: d.status, showIcon: !0 })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-12", children: [
|
|
281
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
282
|
+
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", children: t._("Starts on") }),
|
|
283
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: d.startsOnLabel })
|
|
284
|
+
] }),
|
|
285
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
286
|
+
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", children: t._("Ends on") }),
|
|
287
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: d.endsOnLabel })
|
|
288
|
+
] })
|
|
289
|
+
] })
|
|
290
|
+
] })
|
|
291
|
+
) : /* @__PURE__ */ r("div", { className: k("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", Se && "ttw:border ttw:border-red-200"), children: [
|
|
292
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2", children: n.amountRows.map((a) => /* @__PURE__ */ e(ht, { row: a, defaultTone: n.amountTone }, a.label)) }),
|
|
293
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
294
|
+
n.overdueLabel ? /* @__PURE__ */ r("span", { className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700", children: [
|
|
295
|
+
/* @__PURE__ */ e(et, { className: "ttw:size-3" }),
|
|
296
|
+
n.overdueLabel
|
|
297
|
+
] }) : /* @__PURE__ */ e(Ct, { status: n.status, variant: "outline", label: n.statusLabel, icon: c ? /* @__PURE__ */ e(c, { className: "ttw:size-3" }) : void 0 }),
|
|
298
|
+
n.recurring ? /* @__PURE__ */ r(b, { variant: "outline", className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700", children: [
|
|
299
|
+
/* @__PURE__ */ e(fe, { className: "ttw:size-3" }),
|
|
300
|
+
t._("Recurring")
|
|
301
|
+
] }) : null
|
|
302
|
+
] }),
|
|
303
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-12", children: [
|
|
304
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
305
|
+
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", children: t._("Invoice date") }),
|
|
306
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: n.invoiceDateLabel })
|
|
307
|
+
] }),
|
|
308
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
309
|
+
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", children: n.dueDateCaption }),
|
|
310
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: n.dueDateLabel })
|
|
311
|
+
] })
|
|
312
|
+
] }),
|
|
313
|
+
n.primaryActions.length > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3", children: n.primaryActions.map((a, $e) => {
|
|
314
|
+
const ce = at[a], de = $e === n.primaryActions.length - 1 ? "default" : "outline";
|
|
315
|
+
return a === "recordPayment" && i.type === "invoice" ? /* @__PURE__ */ e(Dt, { invoice: i, children: ({
|
|
316
|
+
openModal: Oe
|
|
317
|
+
}) => /* @__PURE__ */ r(S, { type: "button", size: "sm", variant: de, onClick: () => l(Oe), children: [
|
|
318
|
+
/* @__PURE__ */ e(ce, { className: "ttw:size-4" }),
|
|
319
|
+
R(a)
|
|
320
|
+
] }) }, a) : /* @__PURE__ */ r(S, { type: "button", size: "sm", variant: de, disabled: a === "issue" && Ce, onClick: () => le(a), children: [
|
|
321
|
+
/* @__PURE__ */ e(ce, { className: "ttw:size-4" }),
|
|
322
|
+
R(a)
|
|
323
|
+
] }, a);
|
|
324
|
+
}) }) : null
|
|
325
|
+
] }) }),
|
|
326
|
+
/* @__PURE__ */ r("div", { className: "ttw:px-6", children: [
|
|
327
|
+
n.paymentHistory ? /* @__PURE__ */ r("section", { "aria-label": t._("Payment history"), className: "ttw:border-b ttw:border-border ttw:py-4", children: [
|
|
328
|
+
/* @__PURE__ */ e(o, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: t._("Payment history") }),
|
|
329
|
+
n.paymentHistory.loading ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:py-2", children: /* @__PURE__ */ e(he, { className: "ttw:h-5 ttw:w-5 ttw:border-2" }) }) : n.paymentHistory.rows.length === 0 ? /* @__PURE__ */ e(o, { variant: "body2", className: n.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground", children: t._("You've received no payments yet.") }) : /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
330
|
+
n.paymentHistory.rows.map((a) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2", children: [
|
|
331
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: a.dateLabel }),
|
|
332
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: a.amountLabel })
|
|
333
|
+
] }, a.id)),
|
|
334
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium", children: [
|
|
335
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: t._("Total received") }),
|
|
336
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: n.paymentHistory.totalLabel })
|
|
337
|
+
] })
|
|
338
|
+
] })
|
|
339
|
+
] }) : null,
|
|
340
|
+
L || n.customerContact.length > 0 ? /* @__PURE__ */ r("section", { "aria-label": t._("Customer details"), className: "ttw:border-b ttw:border-border ttw:py-4", children: [
|
|
341
|
+
/* @__PURE__ */ e(o, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: t._("Customer details") }),
|
|
342
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
343
|
+
L ? /* @__PURE__ */ e(yt, { label: t._("Name"), name: L, onOpenCounterpart: ke }) : null,
|
|
344
|
+
n.customerContact.map((a) => /* @__PURE__ */ e(ge, { ...a }, a.label))
|
|
345
|
+
] })
|
|
346
|
+
] }) : null,
|
|
347
|
+
/* @__PURE__ */ r(Ve, { type: "multiple", defaultValue: ["attachments"], className: "ttw:w-full", children: [
|
|
348
|
+
/* @__PURE__ */ r(T, { value: "billing", children: [
|
|
349
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Billing details") }) }),
|
|
350
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
351
|
+
n.billingItems.map((a) => /* @__PURE__ */ e(ge, { ...a }, a.label)),
|
|
352
|
+
n.seriesLink ? /* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
|
|
353
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: t._("Recurring series") }),
|
|
354
|
+
/* @__PURE__ */ e("button", { type: "button", onClick: () => n.seriesLink && x?.(n.seriesLink.invoiceId), className: "ttw:text-left ttw:text-primary ttw:hover:underline", children: n.seriesLink.title })
|
|
355
|
+
] }) : null
|
|
356
|
+
] }) })
|
|
357
|
+
] }),
|
|
358
|
+
v ? null : /* @__PURE__ */ r(T, { value: "line-items", children: [
|
|
359
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
360
|
+
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Line items") }),
|
|
361
|
+
/* @__PURE__ */ e(b, { variant: "secondary", className: "ttw:rounded-full", children: n.lineItems.length })
|
|
362
|
+
] }) }),
|
|
363
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
364
|
+
n.lineItems.length === 0 ? /* @__PURE__ */ e(o, { variant: "body2", color: "muted", className: "ttw:py-3", children: t._("No line items.") }) : n.lineItems.map((a) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3", children: [
|
|
365
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
366
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", className: "ttw:font-medium", children: a.name }),
|
|
367
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", color: "muted", children: t._("{quantity} x {price} ea", {
|
|
368
|
+
quantity: a.quantityLabel,
|
|
369
|
+
price: a.unitPriceLabel
|
|
370
|
+
}) })
|
|
371
|
+
] }),
|
|
372
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: a.totalLabel })
|
|
373
|
+
] }, a.id)),
|
|
374
|
+
n.lineItemTotals.length > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3", children: n.lineItemTotals.map((a) => /* @__PURE__ */ r("div", { className: k("ttw:flex ttw:justify-between", a.emphasis && "ttw:font-medium"), children: [
|
|
375
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: a.label }),
|
|
376
|
+
/* @__PURE__ */ e(o, { component: "span", variant: "body2", children: a.value })
|
|
377
|
+
] }, a.label)) }) : null
|
|
378
|
+
] }) })
|
|
379
|
+
] }),
|
|
380
|
+
!v && n.notes ? /* @__PURE__ */ r(T, { value: "notes", children: [
|
|
381
|
+
/* @__PURE__ */ e(A, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
382
|
+
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Notes") }),
|
|
383
|
+
/* @__PURE__ */ e(b, { variant: "secondary", className: "ttw:rounded-full", children: [n.notes.opening, n.notes.closing].filter(Boolean).length })
|
|
384
|
+
] }) }),
|
|
385
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [{
|
|
386
|
+
label: t._("Opening note to customer"),
|
|
387
|
+
text: n.notes.opening
|
|
388
|
+
}, {
|
|
389
|
+
label: t._("Closing note to customer"),
|
|
390
|
+
text: n.notes.closing
|
|
391
|
+
}].filter((a) => a.text).map((a) => /* @__PURE__ */ r("div", { children: [
|
|
392
|
+
/* @__PURE__ */ e(o, { variant: "body2", className: "ttw:mb-1 ttw:font-medium", children: a.label }),
|
|
393
|
+
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", children: a.text })
|
|
394
|
+
] }, a.label)) }) })
|
|
395
|
+
] }) : null,
|
|
396
|
+
/* @__PURE__ */ e(vt, { attachments: i.attachments ?? [] })
|
|
397
|
+
] }),
|
|
398
|
+
v && d && u ? /* @__PURE__ */ r("section", { "aria-label": d.scheduleTitle, className: "ttw:border-t ttw:border-border ttw:py-4", children: [
|
|
399
|
+
/* @__PURE__ */ e(o, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: d.scheduleTitle }),
|
|
400
|
+
/* @__PURE__ */ e(_t, { invoice: i, recurrence: u, openInvoiceDetails: x })
|
|
401
|
+
] }) : null
|
|
402
|
+
] })
|
|
403
|
+
] })
|
|
404
|
+
] });
|
|
27
405
|
};
|
|
28
|
-
|
|
406
|
+
return /* @__PURE__ */ r(me, { children: [
|
|
407
|
+
N && i && /* @__PURE__ */ e(bt, { isOpen: N, invoice: i, onUpdated: (c) => {
|
|
408
|
+
_(!1), _e?.onUpdate?.(c.id, c);
|
|
409
|
+
}, onCancel: () => _(!1) }),
|
|
410
|
+
/* @__PURE__ */ e(qe, { open: Te, modal: !1, onOpenChange: p, children: /* @__PURE__ */ r(Ye, { showCloseButton: !1, className: "ttw:overflow-y-auto ttw:p-0", children: [
|
|
411
|
+
/* @__PURE__ */ e(We, { hidden: !0, children: t._("Invoice details") }),
|
|
412
|
+
Ae ? null : /* @__PURE__ */ e(ye, { label: t._("Close"), onClose: p, className: k(g, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10") }),
|
|
413
|
+
Pe(),
|
|
414
|
+
G && /* @__PURE__ */ e(xt, { invoiceId: i?.id ?? "", open: G, onClose: () => V(!1) }),
|
|
415
|
+
q && /* @__PURE__ */ e(Nt, { open: q, onClose: () => Y(!1), invoiceId: i?.id ?? "", documentId: i?.type === "invoice" ? i?.document_id : void 0, onDelete: p }),
|
|
416
|
+
W && /* @__PURE__ */ e(Rt, { invoiceId: i?.id ?? "", open: W, onClose: () => J(!1) }),
|
|
417
|
+
K && i?.type === "invoice" && /* @__PURE__ */ e(Tt, { invoice: i, open: K, onClose: () => Q(!1) }),
|
|
418
|
+
X && i?.counterpart_id && re && /* @__PURE__ */ e(
|
|
419
|
+
gt,
|
|
420
|
+
{
|
|
421
|
+
counterpartId: i.counterpart_id,
|
|
422
|
+
open: X,
|
|
423
|
+
onClose: () => Z(!1),
|
|
424
|
+
showActionsMenu: !1,
|
|
425
|
+
customerType: "customer"
|
|
426
|
+
}
|
|
427
|
+
),
|
|
428
|
+
w && /* @__PURE__ */ e(ft, { open: !0, isEditFlow: w.isEditFlow, action: "issue", issue: {
|
|
429
|
+
receivableId: w.receivableId,
|
|
430
|
+
counterpartId: w.counterpartId
|
|
431
|
+
}, inlineLineItems: [], onClose: () => I(null) })
|
|
432
|
+
] }) })
|
|
433
|
+
] });
|
|
434
|
+
};
|
|
29
435
|
export {
|
|
30
|
-
|
|
31
|
-
a as RECEIPT_DUE_PAYMENT_TERM,
|
|
32
|
-
n as buildPaymentTermsPayload
|
|
436
|
+
Br as InvoiceDetailsPanel
|
|
33
437
|
};
|
|
@@ -1,113 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "./index57.js";
|
|
15
|
-
import { useSelectableBankAccounts as I } from "./index210.js";
|
|
16
|
-
import "date-fns";
|
|
17
|
-
import "clsx";
|
|
18
|
-
import "tailwind-merge";
|
|
19
|
-
import "@radix-ui/react-dropdown-menu";
|
|
20
|
-
import "./index84.js";
|
|
21
|
-
import "./index92.js";
|
|
22
|
-
import "react-dom";
|
|
23
|
-
import "@mui/x-data-grid";
|
|
24
|
-
import { Badge as W } from "./index244.js";
|
|
25
|
-
import { Field as q, FieldContent as z, FieldError as K } from "./index182.js";
|
|
26
|
-
import { Select as O, SelectTrigger as R, SelectValue as U, SelectContent as G, SelectItem as y, SelectSeparator as H } from "./index295.js";
|
|
27
|
-
import { Typography as d } from "./index85.js";
|
|
28
|
-
import { BankAccountSectionForm as J } from "./index358.js";
|
|
29
|
-
import { Alert as M, AlertTitle as Q, AlertDescription as X } from "./index181.js";
|
|
30
|
-
import { Skeleton as Y } from "./index160.js";
|
|
31
|
-
import { getSourceLabel as g, getLineLabel as x } from "./index359.js";
|
|
32
|
-
const $t = ({
|
|
33
|
-
disabled: v,
|
|
34
|
-
embeddedBankName: p
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import { useLingui as w } from "@lingui/react";
|
|
4
|
+
import { Dialog as I, DialogContent as v } from "./index194.js";
|
|
5
|
+
import { ActionsModalIssueStep as b } from "./index264.js";
|
|
6
|
+
import { ActionsModalProductsStep as h } from "./index265.js";
|
|
7
|
+
const L = ({
|
|
8
|
+
open: u,
|
|
9
|
+
onClose: i,
|
|
10
|
+
action: d,
|
|
11
|
+
inlineLineItems: r,
|
|
12
|
+
issue: e,
|
|
13
|
+
isEditFlow: m = !1
|
|
35
14
|
}) => {
|
|
36
15
|
const {
|
|
37
|
-
i18n:
|
|
38
|
-
} =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
bankAccounts: o,
|
|
45
|
-
isLoading: l
|
|
46
|
-
} = I(), b = S("bank_account_id");
|
|
47
|
-
return $(() => {
|
|
48
|
-
if (o.length === 1 && !l && !w.current) {
|
|
49
|
-
const r = o[0];
|
|
50
|
-
i("bank_account_id", r.id), i("bank_account_type", r.bank_account_type), w.current = !0;
|
|
51
|
-
}
|
|
52
|
-
}, [i, o, l]), /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
53
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
|
|
54
|
-
/* @__PURE__ */ t(d, { variant: "h4", children: e._("Payment instructions") }),
|
|
55
|
-
/* @__PURE__ */ t(d, { variant: "body2", color: "muted", className: "ttw:font-medium", children: e._("Tells the customer how they can pay you. We'll include the selected info on the invoice") })
|
|
56
|
-
] }),
|
|
57
|
-
l || o.length > 0 && !A ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
58
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
59
|
-
/* @__PURE__ */ t(d, { variant: "body2", children: e._("Bank account") }),
|
|
60
|
-
/* @__PURE__ */ t(d, { variant: "caption", color: "muted", children: e._("Display your bank account number and routing number") })
|
|
61
|
-
] }),
|
|
62
|
-
l ? /* @__PURE__ */ t(Y, { className: "ttw:w-full ttw:h-9 ttw:rounded-md" }) : /* @__PURE__ */ t(L, { name: "bank_account_id", control: N, render: ({
|
|
63
|
-
field: r,
|
|
64
|
-
fieldState: {
|
|
65
|
-
error: u
|
|
66
|
-
}
|
|
67
|
-
}) => {
|
|
68
|
-
const s = o.find((n) => n.id === r.value), _ = s ? g(s.bank_account_type, p, e) : null;
|
|
69
|
-
return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ a(z, { children: [
|
|
70
|
-
/* @__PURE__ */ t("div", { className: "ttw:relative", children: /* @__PURE__ */ a(O, { ...r, disabled: v, value: r.value, onValueChange: (n) => {
|
|
71
|
-
if (n === "add_new")
|
|
72
|
-
m(!0);
|
|
73
|
-
else {
|
|
74
|
-
r.onChange(n);
|
|
75
|
-
const c = o.find((C) => C.id === n);
|
|
76
|
-
c && i("bank_account_type", c.bank_account_type), b?.invalid && f("bank_account_id");
|
|
77
|
-
}
|
|
78
|
-
}, children: [
|
|
79
|
-
/* @__PURE__ */ t(R, { id: "bank_account_id", className: "ttw:w-full", "aria-label": e._("Bank account selector"), "aria-invalid": !!u, children: /* @__PURE__ */ t(U, { placeholder: e._("Select bank account"), children: s && /* @__PURE__ */ a("span", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
80
|
-
/* @__PURE__ */ t("span", { className: "ttw:truncate", children: x(s, e) }),
|
|
81
|
-
_ && /* @__PURE__ */ t(W, { variant: "secondary", className: "ttw:shrink-0", children: _ })
|
|
82
|
-
] }) }) }),
|
|
83
|
-
/* @__PURE__ */ a(G, { children: [
|
|
84
|
-
o.map((n) => {
|
|
85
|
-
const c = g(n.bank_account_type, p, e);
|
|
86
|
-
return /* @__PURE__ */ t(y, { value: n.id, children: /* @__PURE__ */ a("span", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
87
|
-
/* @__PURE__ */ t("span", { className: "ttw:truncate", children: x(n, e) }),
|
|
88
|
-
c && /* @__PURE__ */ t("span", { className: "ttw:shrink-0 ttw:text-muted-foreground", children: c })
|
|
89
|
-
] }) }, n.id);
|
|
90
|
-
}),
|
|
91
|
-
h && /* @__PURE__ */ a(k, { children: [
|
|
92
|
-
/* @__PURE__ */ t(H, {}),
|
|
93
|
-
/* @__PURE__ */ a(y, { value: "add_new", className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary", children: [
|
|
94
|
-
/* @__PURE__ */ t(P, { className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary" }),
|
|
95
|
-
e._("Add a new account")
|
|
96
|
-
] })
|
|
97
|
-
] })
|
|
98
|
-
] })
|
|
99
|
-
] }) }),
|
|
100
|
-
/* @__PURE__ */ t(K, { errors: u ? [u] : [] })
|
|
101
|
-
] }) });
|
|
102
|
-
} })
|
|
103
|
-
] }) : /* @__PURE__ */ t(k, { children: h ? /* @__PURE__ */ t(J, { bankAccountsLength: o.length, onCreate: (r) => {
|
|
104
|
-
m(!1), i("bank_account_id", r), i("bank_account_type", "BANK_DETAILS"), b?.invalid && f("bank_account_id");
|
|
105
|
-
}, onCancel: () => m(!1) }) : /* @__PURE__ */ a(M, { enableClose: !1, variant: "warning", icon: /* @__PURE__ */ t(V, {}), children: [
|
|
106
|
-
/* @__PURE__ */ t(Q, { children: e._("There are no bank accounts on file for this account") }),
|
|
107
|
-
/* @__PURE__ */ t(X, { children: e._("A bank account is required in order to issue invoices. Contact your company admin to set one up.") })
|
|
108
|
-
] }) })
|
|
109
|
-
] });
|
|
16
|
+
i18n: s
|
|
17
|
+
} = w(), [a, p] = c(e ? "issue" : "products"), [l, f] = c(null), o = (n) => {
|
|
18
|
+
f(n), r.length > 0 ? p("products") : i();
|
|
19
|
+
}, g = l === "sent" ? s._("Invoice sent") : l === "issued" ? s._("Invoice issued") : d === "recurrence" ? s._("Recurring billing activated") : s._("Draft saved");
|
|
20
|
+
return /* @__PURE__ */ t(I, { open: u, onOpenChange: (n) => {
|
|
21
|
+
n || (a === "issue" ? o("issued") : i());
|
|
22
|
+
}, children: /* @__PURE__ */ t(v, { showCloseButton: !1, className: "ttw:gap-0 ttw:p-0 ttw:max-w-178 ttw:sm:max-w-178", children: a === "issue" && e ? /* @__PURE__ */ t(b, { receivableId: e.receivableId, counterpartId: e.counterpartId, isEditFlow: m, onSkip: () => o("issued"), onSent: () => o("sent") }) : /* @__PURE__ */ t(h, { inlineLineItems: r, title: g, onClose: i }) }) });
|
|
110
23
|
};
|
|
111
24
|
export {
|
|
112
|
-
|
|
25
|
+
L as ActionsModal
|
|
113
26
|
};
|