@tesouro/embedded-components-react 0.2.79 → 0.2.81
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 +12 -12
- package/dist/index.css +13 -0
- package/dist/index.d.ts +16 -0
- package/dist/lib/BankAccountsWidget.d.ts +16 -0
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +37 -20
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index2.js +199 -133
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +29 -49
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index6.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index7.js +13 -17
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index8.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +156 -116
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +93 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +69 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index4.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index6.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- 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/index103.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/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +7 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +13 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +17 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +18 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +2 -12
- 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 +10 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +21 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +76 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +20 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +27 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +114 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +64 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +15 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +32 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +24 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +121 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +11 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +45 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +148 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +54 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +71 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +26 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +3 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +59 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +57 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +25 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +94 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +96 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +13 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +46 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +75 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +195 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +28 -7
- 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 +39 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +7 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +109 -387
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +67 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +190 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +31 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +108 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +134 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +25 -8
- 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 +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +183 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +19 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +48 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +88 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +7 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +49 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +392 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +59 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +397 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +65 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +407 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +32 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +47 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +5 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +71 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +125 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +85 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +149 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +8 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +15 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +67 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +21 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +51 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +44 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +73 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +29 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +486 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +163 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +59 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +30 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +113 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +52 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +2 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +192 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +17 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +28 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +39 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +61 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +90 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +108 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +86 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +62 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +37 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +341 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +296 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +99 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +157 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +267 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +23 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +20 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +22 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +56 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +27 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +53 -338
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +18 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +36 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +34 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +54 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +345 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +13 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +13 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +19 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +31 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +35 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +35 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +15 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +241 -482
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +174 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +38 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +53 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +47 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +29 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +25 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +126 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +14 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +78 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +77 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +40 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +159 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +29 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +76 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +65 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +43 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +22 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +182 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +105 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +80 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +280 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +86 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +221 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +14 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +169 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +119 -270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +157 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +58 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +63 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +57 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +6 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +60 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +60 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +21 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +31 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +4 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +127 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +47 -32
- 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 +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +66 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +45 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +32 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +71 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +11 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +53 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +21 -91
- 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 +7 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +14 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- 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 +22 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +35 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +45 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +37 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +21 -28
- 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 +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +35 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +104 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +21 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +34 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +56 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +33 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +40 -72
- 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 +72 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +94 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +10 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +10 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +64 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +35 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +33 -16
- 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 +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +105 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +107 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +83 -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 +39 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +17 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +50 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +72 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +84 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +51 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +51 -30
- 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 +29 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +69 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +20 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +9 -43
- 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 +41 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +35 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +17 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +49 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +56 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +29 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +30 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +40 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +15 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +12 -49
- 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 +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +52 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +41 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +47 -55
- 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 +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +38 -18
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- 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/settings-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +207 -191
- 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 +26 -26
- package/dist/packages/shared-ui-shadcn/dist/index.js +15 -13
- package/package.json +1 -1
|
@@ -1,170 +1,185 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useLingui as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as z } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as Q, useEffect as J, useState as U, useId as W, useCallback as Y } from "react";
|
|
3
|
+
import { useForm as X } from "react-hook-form";
|
|
4
|
+
import { toast as Z } from "react-hot-toast";
|
|
5
|
+
import { useMoniteContext as ee } from "./index57.js";
|
|
6
|
+
import { MoniteScopedProviders as te } from "./index83.js";
|
|
7
|
+
import { useCounterpartById as ie } from "./index70.js";
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import { useCounterpartContactList as oe } from "./index74.js";
|
|
10
|
+
import { useMe as ne, useMyEntity as ae } from "./index78.js";
|
|
11
|
+
import { useLingui as R } from "@lingui/react";
|
|
12
|
+
import { useGetReceivableById as se } from "./index82.js";
|
|
13
|
+
import { CenteredContentBox as re } from "./index214.js";
|
|
14
|
+
import { IconWrapper as de } from "./index215.js";
|
|
15
|
+
import { zodResolver as me } from "@hookform/resolvers/zod";
|
|
16
|
+
import ce from "@mui/icons-material/ArrowBack";
|
|
17
|
+
import le from "@mui/icons-material/Close";
|
|
18
|
+
import { Dialog as ue } from "./index50.js";
|
|
19
|
+
import { DialogTitle as pe, Toolbar as fe, Grid as D, Stack as $, Button as j, Typography as ye, DialogContent as he, CircularProgress as ve } from "@mui/material";
|
|
20
|
+
import { getEmailInvoiceDetailsSchema as be } from "./index194.js";
|
|
21
|
+
import { Form as ge, FormContent as Ie } from "./index414.js";
|
|
22
|
+
import { getDefaultContact as _e } from "./index415.js";
|
|
23
|
+
import { useIssueReceivableById as Ce } from "./index295.js";
|
|
24
|
+
import { useSendReceivableById as xe } from "./index416.js";
|
|
25
|
+
import { PreviewEmail as Ee } from "./index417.js";
|
|
26
|
+
const Ye = (t) => {
|
|
27
|
+
const {
|
|
28
|
+
i18n: n
|
|
29
|
+
} = R(), {
|
|
30
|
+
data: a,
|
|
31
|
+
isLoading: m
|
|
32
|
+
} = ne(), {
|
|
33
|
+
data: o,
|
|
34
|
+
isLoading: b
|
|
35
|
+
} = se(t.invoiceId), {
|
|
36
|
+
entityName: s,
|
|
37
|
+
isLoading: l
|
|
38
|
+
} = ae(), {
|
|
39
|
+
data: g,
|
|
40
|
+
isLoading: i
|
|
41
|
+
} = oe(o?.counterpart_id), {
|
|
42
|
+
data: u
|
|
43
|
+
} = ie(o?.counterpart_id), r = _e(g, u), I = r?.email ?? "", p = r && a ? n._(`Hi {firstName},
|
|
44
|
+
|
|
45
|
+
Please find the invoice attached as discussed.
|
|
46
|
+
|
|
47
|
+
Kind Regards,
|
|
48
|
+
{senderName}`, {
|
|
49
|
+
firstName: r.first_name,
|
|
50
|
+
senderName: a.first_name
|
|
51
|
+
}) : n._(`Please find the invoice attached as discussed.
|
|
52
|
+
|
|
53
|
+
Kind Regards,
|
|
54
|
+
{senderName}`, {
|
|
55
|
+
senderName: a?.first_name ?? ""
|
|
56
|
+
}), _ = o && s ? o.document_id ? n._("Invoice {documentId} from {entityName}", {
|
|
57
|
+
documentId: o.document_id,
|
|
58
|
+
entityName: s
|
|
59
|
+
}) : n._("Invoice from {entityName}", {
|
|
60
|
+
entityName: s
|
|
61
|
+
}) : "";
|
|
62
|
+
return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(Pe, { ...t, to: I, body: p, subject: _, isLoading: i || b || m || l, isIssued: o?.status !== "draft", isOpen: t.isOpen }) });
|
|
63
|
+
}, d = {
|
|
64
|
+
Edit: "form",
|
|
65
|
+
Preview: "preview"
|
|
66
|
+
}, Pe = ({
|
|
67
|
+
invoiceId: t,
|
|
68
|
+
subject: n,
|
|
69
|
+
body: a,
|
|
70
|
+
to: m,
|
|
71
|
+
isLoading: o,
|
|
72
|
+
isIssued: b,
|
|
73
|
+
onClose: s,
|
|
74
|
+
onSendEmail: l,
|
|
75
|
+
isOpen: g
|
|
17
76
|
}) => {
|
|
18
77
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
api:
|
|
22
|
-
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} = h.finops.getTags.useQuery({
|
|
37
|
-
query: {
|
|
38
|
-
id__in: Array.isArray(i?.tags) ? i.tags : []
|
|
39
|
-
}
|
|
40
|
-
}, {
|
|
41
|
-
enabled: !!i?.tags?.length
|
|
78
|
+
i18n: i
|
|
79
|
+
} = R(), {
|
|
80
|
+
api: u,
|
|
81
|
+
entityId: r
|
|
82
|
+
} = ee(), {
|
|
83
|
+
control: I,
|
|
84
|
+
handleSubmit: p,
|
|
85
|
+
getValues: _,
|
|
86
|
+
trigger: A,
|
|
87
|
+
reset: S
|
|
88
|
+
} = X({
|
|
89
|
+
resolver: me(be(i)),
|
|
90
|
+
defaultValues: Q(() => ({
|
|
91
|
+
subject: n,
|
|
92
|
+
body: a,
|
|
93
|
+
to: m
|
|
94
|
+
}), [n, a, m])
|
|
42
95
|
}), {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
96
|
+
subject: F,
|
|
97
|
+
body: T
|
|
98
|
+
} = _();
|
|
99
|
+
J(() => {
|
|
100
|
+
S({
|
|
101
|
+
subject: n,
|
|
102
|
+
body: a,
|
|
103
|
+
to: m
|
|
104
|
+
});
|
|
105
|
+
}, [a, S, n, m]);
|
|
106
|
+
const C = xe(t), x = Ce(t), E = u.finops.postPaymentLinks.useMutation({}), {
|
|
107
|
+
data: P
|
|
108
|
+
} = u.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
109
|
+
path: {
|
|
110
|
+
entity_id: r
|
|
47
111
|
}
|
|
48
|
-
}, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
112
|
+
}), [f, k] = U(d.Edit), w = `Monite-Form-emailInvoiceDetails-${W()}`, O = Y((L) => {
|
|
113
|
+
L.preventDefault();
|
|
114
|
+
const G = E.mutateAsync, H = x.mutateAsync, K = C.mutate;
|
|
115
|
+
p(async (v) => {
|
|
116
|
+
const M = P ? P.data.filter(({
|
|
117
|
+
status: N,
|
|
118
|
+
direction: q
|
|
119
|
+
}) => N === "active" && q === "receive") : [];
|
|
120
|
+
M.length === 0 ? Z.error(i._("You haven't onboarded for any payment method. Invoice is issued without a payment link.")) : (await H(void 0), await G({
|
|
121
|
+
recipient: {
|
|
122
|
+
id: r,
|
|
123
|
+
type: "entity"
|
|
124
|
+
},
|
|
125
|
+
payment_methods: M.map((N) => N.type),
|
|
126
|
+
object: {
|
|
127
|
+
id: t,
|
|
128
|
+
type: "receivable"
|
|
57
129
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
p = r;
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
label: l,
|
|
88
|
-
value: p
|
|
89
|
-
};
|
|
90
|
-
}), v = t && Object.keys(t)?.map((r) => {
|
|
91
|
-
if (!t[r]) return null;
|
|
92
|
-
switch (r) {
|
|
93
|
-
case "single_user":
|
|
94
|
-
return {
|
|
95
|
-
label: b(r),
|
|
96
|
-
value: /* @__PURE__ */ e(g, { userId: t[r].userId })
|
|
97
|
-
};
|
|
98
|
-
case "users_from_list":
|
|
99
|
-
return {
|
|
100
|
-
label: b(r, t[r].count),
|
|
101
|
-
value: /* @__PURE__ */ e(c, { direction: "column", gap: 1, sx: {
|
|
102
|
-
flexWrap: "wrap"
|
|
103
|
-
}, children: t[r].userIds?.map((l) => /* @__PURE__ */ e(g, { userId: l }, l)) })
|
|
104
|
-
};
|
|
105
|
-
case "roles_from_list":
|
|
106
|
-
return {
|
|
107
|
-
label: b(r),
|
|
108
|
-
value: /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
109
|
-
flexWrap: "wrap"
|
|
110
|
-
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
-
};
|
|
112
|
-
case "approval_chain":
|
|
113
|
-
return {
|
|
114
|
-
label: b(r),
|
|
115
|
-
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
-
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
-
/* @__PURE__ */ s(F, { children: [
|
|
122
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
-
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
-
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
-
} }) }),
|
|
128
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
-
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
-
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
-
] }) }),
|
|
133
|
-
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
-
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
-
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
-
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
130
|
+
}));
|
|
131
|
+
const V = {
|
|
132
|
+
body_text: v.body,
|
|
133
|
+
subject_text: v.subject,
|
|
134
|
+
recipients: v.to ? {
|
|
135
|
+
to: [v.to]
|
|
136
|
+
} : void 0
|
|
137
|
+
};
|
|
138
|
+
K(V, {
|
|
139
|
+
onSuccess: () => {
|
|
140
|
+
l?.(t), s();
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
})(L);
|
|
144
|
+
}, [E.mutateAsync, x.mutateAsync, p, i, t, r, s, l, P, C.mutate]), y = x.isPending || C.isPending || E.isPending, B = "Monite-EmailInvoiceDetails", h = f == d.Preview;
|
|
145
|
+
return /* @__PURE__ */ c(ue, { open: g, fullScreen: !0, onClose: s, children: [
|
|
146
|
+
/* @__PURE__ */ e(pe, { className: B + "-Title", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ c(D, { container: !0, children: [
|
|
147
|
+
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
148
|
+
f == d.Edit && /* @__PURE__ */ c(z, { children: [
|
|
149
|
+
/* @__PURE__ */ e(j, { variant: "text", color: "primary", onClick: s, startIcon: /* @__PURE__ */ e(ce, {}), disabled: y, "data-testid": "back-button", children: i._("Back") }),
|
|
150
|
+
/* @__PURE__ */ e(ye, { variant: "h3", children: i._("Compose email") })
|
|
151
|
+
] }),
|
|
152
|
+
h && /* @__PURE__ */ e(de, { edge: "start", color: "inherit", onClick: () => {
|
|
153
|
+
k(d.Edit);
|
|
154
|
+
}, "aria-label": i._("Back to edit"), "data-testid": "close-preview-button", children: /* @__PURE__ */ e(le, {}) })
|
|
137
155
|
] }) }),
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
-
] }) }),
|
|
145
|
-
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
-
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
-
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
-
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
156
|
+
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", justifyContent: "end", spacing: 2, children: [
|
|
157
|
+
f == d.Edit && /* @__PURE__ */ e(j, { variant: "outlined", color: "primary", type: "button", form: w, disabled: y || o, onClick: async () => {
|
|
158
|
+
await A() && k(d.Preview);
|
|
159
|
+
}, "data-testid": "preview-button", children: i._("Preview email") }),
|
|
160
|
+
/* @__PURE__ */ e(j, { variant: "contained", color: "primary", type: "submit", form: w, disabled: y || o, "data-testid": "issue-and-send-button", children: b ? i._("Send") : i._("Issue and Send") })
|
|
149
161
|
] }) })
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ e(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
] }) }) }),
|
|
163
|
+
/* @__PURE__ */ e(he, { className: B + "-Content", sx: {
|
|
164
|
+
mt: h ? 0 : 4,
|
|
165
|
+
p: h ? 0 : "0 32px 32px 32px",
|
|
166
|
+
height: "100%",
|
|
167
|
+
width: "100%",
|
|
168
|
+
display: "flex",
|
|
169
|
+
flexDirection: "column"
|
|
170
|
+
}, children: /* @__PURE__ */ c(ge, { formName: w, handleIssueAndSend: O, style: {
|
|
171
|
+
display: "flex",
|
|
172
|
+
flexDirection: "column",
|
|
173
|
+
flex: 1,
|
|
174
|
+
minHeight: 0,
|
|
175
|
+
width: "100%"
|
|
176
|
+
}, children: [
|
|
177
|
+
o ? /* @__PURE__ */ e(re, { className: "Monite-LoadingPage", children: /* @__PURE__ */ e(ve, {}) }) : f == d.Edit && /* @__PURE__ */ e(Ie, { invoiceId: t, control: I, isDisabled: y }),
|
|
178
|
+
h && /* @__PURE__ */ e(Ee, { invoiceId: t, body: T, subject: F })
|
|
179
|
+
] }) })
|
|
166
180
|
] });
|
|
167
181
|
};
|
|
168
182
|
export {
|
|
169
|
-
|
|
183
|
+
Ye as EmailInvoiceDetails,
|
|
184
|
+
Pe as EmailInvoiceDetailsBase
|
|
170
185
|
};
|
|
@@ -1,69 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "react-hot-toast";
|
|
11
|
-
import { useGetMeasureUnits as _ } from "./index189.js";
|
|
12
|
-
import { useDeleteMeasureUnit as y } from "./index410.js";
|
|
13
|
-
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index101.js";
|
|
14
|
-
import { useDebounceCallback as R } from "./index65.js";
|
|
15
|
-
const at = () => {
|
|
16
|
-
const {
|
|
17
|
-
i18n: i
|
|
18
|
-
} = I(), [g, s] = m(null), [a, c] = m(null), x = !!a, [u, N] = m(""), {
|
|
19
|
-
data: C,
|
|
20
|
-
isLoading: M
|
|
21
|
-
} = _(), n = y(a?.name), $ = R((t) => {
|
|
22
|
-
N(t);
|
|
23
|
-
}, 500), D = C?.data?.filter((t) => t.name.toLowerCase().includes(u.toLowerCase()) || t.description && t.description.toLowerCase().includes(u.toLowerCase())) || [], L = w((t) => {
|
|
24
|
-
c(t);
|
|
25
|
-
}, []), o = w(() => {
|
|
26
|
-
c(null);
|
|
27
|
-
}, []), U = w(() => {
|
|
28
|
-
a && n.mutate({
|
|
29
|
-
path: {
|
|
30
|
-
unit_id: a.id
|
|
31
|
-
}
|
|
32
|
-
}, {
|
|
33
|
-
onSuccess: () => o()
|
|
34
|
-
});
|
|
35
|
-
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
-
s(null);
|
|
37
|
-
};
|
|
38
|
-
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
-
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
-
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
-
/* @__PURE__ */ r(F, { children: [
|
|
42
|
-
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
-
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
-
] }),
|
|
45
|
-
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
-
] }) }),
|
|
51
|
-
/* @__PURE__ */ r(G, { children: [
|
|
52
|
-
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
-
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
-
isUpdateAllowed: !0,
|
|
58
|
-
isDeleteAllowed: !0
|
|
59
|
-
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
-
] }, t.id))
|
|
61
|
-
] })
|
|
62
|
-
] })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
1
|
+
import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as e } from "./index85.js";
|
|
3
|
+
function i({
|
|
4
|
+
label: r,
|
|
5
|
+
value: o
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
|
|
8
|
+
/* @__PURE__ */ t(e, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: r }),
|
|
9
|
+
/* @__PURE__ */ t(e, { component: "span", variant: "body2", className: "ttw:whitespace-pre-line", children: o })
|
|
65
10
|
] });
|
|
66
|
-
}
|
|
11
|
+
}
|
|
67
12
|
export {
|
|
68
|
-
|
|
13
|
+
i as InvoiceDetailsInfoRow
|
|
69
14
|
};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
border: r ? "none" : `1px solid ${e.palette.divider}`
|
|
20
|
-
}, children: a });
|
|
21
|
-
};
|
|
1
|
+
import { jsxs as i, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as r } from "./index85.js";
|
|
3
|
+
import { ChevronRight as s } from "lucide-react";
|
|
4
|
+
function d({
|
|
5
|
+
label: e,
|
|
6
|
+
name: o,
|
|
7
|
+
onOpenCounterpart: n
|
|
8
|
+
}) {
|
|
9
|
+
const a = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
|
|
10
|
+
return n ? /* @__PURE__ */ i("button", { type: "button", onClick: n, "aria-haspopup": "dialog", className: `ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-ring/50 ttw:focus-visible:ring-[3px] ${a}`, children: [
|
|
11
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: e }),
|
|
12
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "primary", className: "ttw:underline-offset-4 ttw:group-hover:underline", children: o }),
|
|
13
|
+
/* @__PURE__ */ t(s, { className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground", "aria-hidden": "true" })
|
|
14
|
+
] }) : /* @__PURE__ */ i("div", { className: a, children: [
|
|
15
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: e }),
|
|
16
|
+
/* @__PURE__ */ t(r, { component: "span", variant: "body2", children: o })
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
22
19
|
export {
|
|
23
|
-
d as
|
|
20
|
+
d as InvoiceDetailsCustomerRow
|
|
24
21
|
};
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useGetReceivableById as r } from "./index82.js";
|
|
3
|
+
import { useCancelReceivableById as m } from "./index418.js";
|
|
4
|
+
import { ConfirmationModal as d } from "./index231.js";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
6
|
+
const v = ({
|
|
7
|
+
invoiceId: o,
|
|
8
|
+
open: c,
|
|
9
|
+
onClose: i
|
|
7
10
|
}) => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const {
|
|
12
|
+
i18n: e
|
|
13
|
+
} = u(), {
|
|
14
|
+
data: n,
|
|
15
|
+
isLoading: t
|
|
16
|
+
} = r(o), a = m(o);
|
|
17
|
+
if (!n)
|
|
18
|
+
return null;
|
|
19
|
+
const l = n.document_id ? e._("Cancel receivable") + ` "${n?.document_id}"?` : e._("Cancel receivable?");
|
|
20
|
+
return /* @__PURE__ */ s(d, { open: c && !!o, title: l, message: e._("This action can't be undone."), confirmLabel: e._("Cancel"), cancelLabel: e._("Close"), onClose: i, onConfirm: () => {
|
|
21
|
+
a.mutate(void 0, {
|
|
22
|
+
onSuccess: i
|
|
23
|
+
});
|
|
24
|
+
}, isLoading: a.isPending || t });
|
|
17
25
|
};
|
|
18
26
|
export {
|
|
19
|
-
|
|
27
|
+
v as InvoiceCancelModal
|
|
20
28
|
};
|
|
@@ -1,21 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDeleteReceivableById as u } from "./index399.js";
|
|
3
|
+
import { useComponentSettings as f } from "./index67.js";
|
|
4
|
+
import { useUserPermissions as v } from "./index130.js";
|
|
5
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
6
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
10
|
+
import { Scope as b } from "../../shared/data-access/dist/lib/scopes.js";
|
|
11
|
+
import "react";
|
|
12
|
+
import { ConfirmationModal as C } from "./index231.js";
|
|
13
|
+
import { useLingui as D } from "@lingui/react";
|
|
14
|
+
import { toast as I } from "react-hot-toast";
|
|
15
|
+
const H = ({
|
|
16
|
+
open: r,
|
|
17
|
+
onClose: o,
|
|
18
|
+
invoiceId: t,
|
|
19
|
+
onDelete: n,
|
|
20
|
+
documentId: i
|
|
5
21
|
}) => {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
const {
|
|
23
|
+
i18n: e
|
|
24
|
+
} = D(), {
|
|
25
|
+
receivablesCallbacks: s
|
|
26
|
+
} = f(), {
|
|
27
|
+
mutate: m,
|
|
28
|
+
isPending: a
|
|
29
|
+
} = u(t), l = v().has(b.InvoiceWriteOrg), c = () => {
|
|
30
|
+
l ? m(void 0, {
|
|
31
|
+
onSuccess: () => {
|
|
32
|
+
s?.onDelete?.(t), n?.(), o();
|
|
33
|
+
}
|
|
34
|
+
}) : I.error(e._("You don't have permission to delete this document. Please, contact your system administrator for details."));
|
|
35
|
+
}, p = i ? e._("Delete receivable “{documentId}”?", {
|
|
36
|
+
documentId: i
|
|
37
|
+
}) : e._("Delete receivable?");
|
|
38
|
+
return /* @__PURE__ */ d(C, { open: r, title: p, message: e._("This action can't be undone."), confirmLabel: e._("Delete"), cancelLabel: e._("Cancel"), onClose: o, onConfirm: c, isLoading: a });
|
|
18
39
|
};
|
|
19
40
|
export {
|
|
20
|
-
|
|
41
|
+
H as InvoiceDeleteModal
|
|
21
42
|
};
|