@tesouro/embedded-components-react 0.2.170 → 0.2.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +50 -3
- package/dist/index.d.ts +109 -13
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +78 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +3 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +32 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +216 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +11 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +152 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +24 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +11 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +114 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +70 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +46 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +74 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +55 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +80 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +41 -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 +7 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +228 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +467 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +104 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +529 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +24 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +94 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +90 -458
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +14 -106
- 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 +11 -534
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +99 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +25 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +7 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +214 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +141 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +86 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +183 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +23 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +37 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +52 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +5 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +75 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +32 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +22 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +17 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +19 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +171 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +134 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +66 -348
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +162 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +12 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +61 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +64 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +58 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +6 -12
- 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 +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +22 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +61 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +93 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +97 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +211 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +34 -10
- 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 +48 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +82 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +34 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +355 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +117 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +6 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +10 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +11 -106
- 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 +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +9 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +16 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +24 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +36 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +15 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +17 -57
- 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 +105 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +19 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +23 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +34 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +55 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +46 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +98 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +42 -36
- 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 +138 -338
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +101 -295
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +36 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +339 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +295 -259
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +93 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +160 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +267 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +23 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -97
- 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 +5 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +53 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +54 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +16 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +474 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +164 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +60 -61
- 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 +30 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +118 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +52 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +14 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +77 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +77 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +72 -127
- 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 +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +39 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +25 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +121 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +41 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +117 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +110 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +50 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +205 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +70 -31
- 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 +44 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +149 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +29 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +4 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +31 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +29 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +30 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +50 -14
- 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 +10 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +7 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +26 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +126 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +10 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +17 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +67 -19
- 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 +160 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +28 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +76 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +58 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +92 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +112 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +88 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +11 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +255 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +31 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +125 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +22 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +45 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +45 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +32 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +89 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +37 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +85 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +83 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +268 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +35 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +62 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +43 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +25 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +138 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +112 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +81 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +91 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +8 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +2 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +278 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +48 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +120 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +72 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +3 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +11 -19
- 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 +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +46 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +29 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +20 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +12 -31
- 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 +53 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +68 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +47 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +24 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +64 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +17 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +66 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +21 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +17 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +57 -8
- 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 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +8 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +50 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +32 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +85 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +24 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +111 -29
- 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 +28 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +23 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +38 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +29 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +70 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +80 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +53 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +43 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +39 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +37 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +15 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +95 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +75 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +9 -75
- 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 +55 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +72 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +83 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +52 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +48 -30
- 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 +57 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +65 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +48 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- 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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +0 -1
- 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 +23 -23
- package/dist/pending-feature-style-sources.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
approvalPolicy: o
|
|
1
|
+
import { jsxs as r, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { AccordionItem as c, AccordionTrigger as i, AccordionContent as o } from "./index249.js";
|
|
3
|
+
import { Badge as s } from "./index250.js";
|
|
4
|
+
import { Typography as n } from "./index85.js";
|
|
5
|
+
import { useLingui as d } from "@lingui/react";
|
|
6
|
+
import { Check as m } from "lucide-react";
|
|
7
|
+
const N = ({
|
|
8
|
+
attachments: l
|
|
10
9
|
}) => {
|
|
11
10
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return /* @__PURE__ */ t("li", { children: [
|
|
31
|
-
/* @__PURE__ */ i(n, { width: 18 }),
|
|
32
|
-
e(r)
|
|
33
|
-
] }, r);
|
|
34
|
-
case "tags":
|
|
35
|
-
return /* @__PURE__ */ t("li", { children: [
|
|
36
|
-
/* @__PURE__ */ i(c, { width: 18 }),
|
|
37
|
-
e(r)
|
|
38
|
-
] }, r);
|
|
39
|
-
default:
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
}) }) : null;
|
|
11
|
+
i18n: e
|
|
12
|
+
} = d();
|
|
13
|
+
return /* @__PURE__ */ r(c, { value: "attachments", children: [
|
|
14
|
+
/* @__PURE__ */ t(i, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
15
|
+
/* @__PURE__ */ t("span", { className: "ttw:group-hover:underline", children: e._("Attachments") }),
|
|
16
|
+
/* @__PURE__ */ t(s, { variant: "secondary", className: "ttw:rounded-full", children: l.length })
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ t(o, { children: l.length === 0 ? /* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("No attached files") }) : /* @__PURE__ */ r("table", { className: "ttw:w-full ttw:border-collapse", children: [
|
|
19
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ r("tr", { className: "ttw:border-b ttw:border-border", children: [
|
|
20
|
+
/* @__PURE__ */ t("th", { scope: "col", className: "ttw:py-2 ttw:text-left", children: /* @__PURE__ */ t(n, { component: "span", variant: "caption", color: "muted", children: e._("File") }) }),
|
|
21
|
+
/* @__PURE__ */ t("th", { scope: "col", className: "ttw:py-2 ttw:text-right", children: /* @__PURE__ */ t(n, { component: "span", variant: "caption", color: "muted", children: e._("Emailed") }) })
|
|
22
|
+
] }) }),
|
|
23
|
+
/* @__PURE__ */ t("tbody", { children: l.map((a) => /* @__PURE__ */ r("tr", { className: "ttw:border-b ttw:border-border ttw:last:border-b-0", children: [
|
|
24
|
+
/* @__PURE__ */ t("td", { className: "ttw:py-3", children: /* @__PURE__ */ t("a", { href: a.url, target: "_blank", rel: "noreferrer", className: "ttw:text-primary ttw:hover:underline", children: a.name }) }),
|
|
25
|
+
/* @__PURE__ */ t("td", { className: "ttw:py-3 ttw:text-right ttw:align-middle", children: a.include_in_email ? /* @__PURE__ */ t(m, { role: "img", "aria-label": e._("Included in email"), className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600" }) : /* @__PURE__ */ t("span", { className: "ttw:sr-only", children: e._("Not included in email") }) })
|
|
26
|
+
] }, a.id)) })
|
|
27
|
+
] }) })
|
|
28
|
+
] });
|
|
43
29
|
};
|
|
44
30
|
export {
|
|
45
|
-
|
|
31
|
+
N as InvoiceDetailsAttachments
|
|
46
32
|
};
|
|
@@ -1,59 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
i18n: e
|
|
18
|
-
} = v(), {
|
|
19
|
-
api: n
|
|
20
|
-
} = y(), [r, l] = c(null), [m, a] = c(""), b = N(m, C), {
|
|
21
|
-
data: w
|
|
22
|
-
} = n.finops.getEntityUsers.useQuery({
|
|
23
|
-
query: {
|
|
24
|
-
name__istartswith: b || void 0
|
|
25
|
-
}
|
|
26
|
-
}), d = u(() => w?.data ?? [], [w]), i = u(() => d.map((o) => ({
|
|
27
|
-
value: o.id,
|
|
28
|
-
label: F(o)
|
|
29
|
-
})), [d]), p = u(() => !r || i.some((o) => o.value === r.value) ? i : [r, ...i], [i, r]);
|
|
30
|
-
return /* @__PURE__ */ s(R, { items: p, value: r?.value ?? "", placeholder: e._("Added by"), emptyMessage: e._("No users found"), clearAriaLabel: e._("Clear selection"), onQueryChange: a, onValueChange: (o) => {
|
|
31
|
-
const h = Array.isArray(o) ? o[0] ?? "" : o ?? "";
|
|
32
|
-
l(p.find((g) => g.value === h) ?? null), t(h || void 0);
|
|
33
|
-
} });
|
|
34
|
-
}, q = ({
|
|
35
|
-
onChangeFilter: t
|
|
36
|
-
}) => {
|
|
37
|
-
const {
|
|
38
|
-
i18n: e
|
|
39
|
-
} = v(), {
|
|
40
|
-
root: n
|
|
41
|
-
} = E(), [r, l] = c(void 0), m = x((a) => {
|
|
42
|
-
t(k, a.trim() ? a : null);
|
|
43
|
-
}, C);
|
|
44
|
-
return /* @__PURE__ */ _("div", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2", children: [
|
|
45
|
-
/* @__PURE__ */ s("div", { className: "ttw:flex-1", children: /* @__PURE__ */ s(A, { placeholder: e._("Search"), className: "ttw:h-9 ttw:w-full", onChange: (a) => m(a.target.value) }) }),
|
|
46
|
-
/* @__PURE__ */ s("div", { className: "ttw:w-48 ttw:shrink-0", children: /* @__PURE__ */ s(L, { onChange: (a) => t(D, a ?? null) }) }),
|
|
47
|
-
/* @__PURE__ */ _("div", { className: "ttw:relative ttw:w-44 ttw:shrink-0", children: [
|
|
48
|
-
/* @__PURE__ */ s($, { value: r, placeholder: e._("Created at"), className: `ttw:h-9 ttw:border-border${r ? " ttw:pr-8" : ""}`, container: n, onChange: (a) => {
|
|
49
|
-
l(a), t(f, a ?? null);
|
|
50
|
-
} }),
|
|
51
|
-
r ? /* @__PURE__ */ s("button", { type: "button", "aria-label": e._("Clear created at filter"), className: "ttw:absolute ttw:right-2 ttw:top-1/2 ttw:inline-flex ttw:size-4 ttw:-translate-y-1/2 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 hover:ttw:opacity-100", onClick: () => {
|
|
52
|
-
l(void 0), t(f, null);
|
|
53
|
-
}, children: /* @__PURE__ */ s(T, { className: "ttw:size-3.5" }) }) : null
|
|
54
|
-
] })
|
|
55
|
-
] });
|
|
56
|
-
};
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as c } from "./index84.js";
|
|
3
|
+
import { XIcon as m } from "lucide-react";
|
|
4
|
+
import { forwardRef as f } from "react";
|
|
5
|
+
const v = f(function({
|
|
6
|
+
label: r,
|
|
7
|
+
onClose: t,
|
|
8
|
+
variant: i = "ghost",
|
|
9
|
+
size: e = "icon",
|
|
10
|
+
onClick: n,
|
|
11
|
+
...a
|
|
12
|
+
}, s) {
|
|
13
|
+
return /* @__PURE__ */ o(c, { ref: s, variant: i, size: e, ...a, "aria-label": r, onClick: (l) => {
|
|
14
|
+
n?.(l), t();
|
|
15
|
+
}, children: /* @__PURE__ */ o(m, { className: "ttw:size-4" }) });
|
|
16
|
+
});
|
|
57
17
|
export {
|
|
58
|
-
|
|
18
|
+
v as InvoiceDetailsCloseButton
|
|
59
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as s } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as i } from "./
|
|
2
|
+
import { getAPIErrorMessage as i } from "./index122.js";
|
|
3
3
|
import { useLingui as n } from "@lingui/react";
|
|
4
4
|
import { toast as p } from "react-hot-toast";
|
|
5
5
|
const c = (t) => {
|
|
@@ -1,22 +1,110 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as s, jsxs as F, Fragment as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { getDraftInvoiceValidationSchema as N, getInvoiceValidationSchema as V } from "./index191.js";
|
|
3
|
+
import { useMeasureUnitsMapping as q } from "./index362.js";
|
|
4
|
+
import { useGetRecurrenceById as A } from "./index261.js";
|
|
5
|
+
import { useReceivableSubmit as B } from "./index192.js";
|
|
6
|
+
import { useMoniteContext as P } from "./index57.js";
|
|
7
|
+
import { useUserPermissions as D } from "./index146.js";
|
|
8
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
9
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
11
|
+
import "@tanstack/react-query";
|
|
12
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
13
|
+
import { Scope as G } from "../../shared/data-access/dist/lib/scopes.js";
|
|
14
|
+
import { useRef as O, useMemo as c, useCallback as j, useEffect as w } from "react";
|
|
15
|
+
import { Button as l } from "./index84.js";
|
|
16
|
+
import { LoadingPage as z } from "./index290.js";
|
|
17
|
+
import { zodResolver as C } from "@hookform/resolvers/zod";
|
|
18
|
+
import { useLingui as T } from "@lingui/react";
|
|
19
|
+
import { useForm as W } from "react-hook-form";
|
|
20
|
+
import { useGetMeasureUnits as H } from "./index331.js";
|
|
21
|
+
import "date-fns";
|
|
22
|
+
import { buildEditInvoiceFormValues as J } from "./index255.js";
|
|
23
|
+
import { ReceivableFormLayout as K } from "./index193.js";
|
|
24
|
+
const Ce = (o) => {
|
|
5
25
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
data: m,
|
|
27
|
+
isLoading: d
|
|
28
|
+
} = A(o.invoice.recurrence_id);
|
|
29
|
+
return o.invoice.recurrence_id && d ? /* @__PURE__ */ s(z, {}) : /* @__PURE__ */ s(Q, { ...o, recurrence: m });
|
|
30
|
+
}, Q = ({
|
|
31
|
+
invoice: o,
|
|
32
|
+
onCancel: m,
|
|
33
|
+
onUpdated: d,
|
|
34
|
+
isOpen: R,
|
|
35
|
+
recurrence: t,
|
|
36
|
+
issueIntent: I
|
|
37
|
+
}) => {
|
|
38
|
+
const {
|
|
39
|
+
i18n: r
|
|
40
|
+
} = T(), {
|
|
41
|
+
componentSettings: L
|
|
42
|
+
} = P(), a = D().has(G.CounterpartWriteOrg), p = !!L?.receivables?.enableEntityBankAccount, f = O("draft"), {
|
|
43
|
+
data: S
|
|
44
|
+
} = H(), g = o.currency, _ = c(() => J(o, t), [o, t]), n = c(() => t?.iterations?.filter((i) => i.issued_invoice_id).length ?? 0, [t?.iterations]), h = c(() => C(N(r, a, n)), [r, a, n]), b = c(() => C(V(r, p, a, n)), [r, p, a, n]), E = j((i, M, k) => (f.current === "issue" || i.frequency !== "once" && n === 0 ? b : h)(i, M, k), [b, h, n]), u = W({
|
|
45
|
+
mode: "onBlur",
|
|
46
|
+
resolver: E,
|
|
47
|
+
defaultValues: _
|
|
48
|
+
}), {
|
|
49
|
+
getValues: U,
|
|
50
|
+
reset: y
|
|
51
|
+
} = u;
|
|
52
|
+
q(S, U, y);
|
|
53
|
+
const v = !!t?.iterations?.some((i) => i.issued_invoice_id), e = B({
|
|
54
|
+
mode: "edit",
|
|
55
|
+
methods: u,
|
|
56
|
+
currency: g,
|
|
57
|
+
invoice: o,
|
|
58
|
+
submitModeRef: f,
|
|
59
|
+
// When editing a series, switch the recurrence save to PATCH. `interval`
|
|
60
|
+
// isn't passed: the form has no interval control, and omitting it from the
|
|
61
|
+
// PATCH is what preserves the stored value.
|
|
62
|
+
existingRecurrence: t ? {
|
|
63
|
+
id: t.id,
|
|
64
|
+
scheduleLocked: v
|
|
65
|
+
} : void 0,
|
|
66
|
+
hasStartedRecurrence: n > 0,
|
|
67
|
+
onComplete: (i) => d(i.receivable, {
|
|
68
|
+
inlineLineItems: i.inlineLineItems,
|
|
69
|
+
activatedRecurrence: i.mode === "recurrence",
|
|
70
|
+
issued: i.mode === "issue",
|
|
71
|
+
counterpartId: i.counterpartId,
|
|
72
|
+
hasCustomerEmail: i.hasCustomerEmail
|
|
73
|
+
}),
|
|
74
|
+
onClose: m
|
|
18
75
|
});
|
|
76
|
+
return w(() => {
|
|
77
|
+
I && e.highlightForIssue();
|
|
78
|
+
}, []), /* @__PURE__ */ s(
|
|
79
|
+
K,
|
|
80
|
+
{
|
|
81
|
+
open: R,
|
|
82
|
+
onRequestClose: e.requestClose,
|
|
83
|
+
methods: u,
|
|
84
|
+
title: r._("Edit invoice"),
|
|
85
|
+
currency: g,
|
|
86
|
+
showPurchaseOrder: !1,
|
|
87
|
+
lockRecurrenceSchedule: v,
|
|
88
|
+
formName: e.formName,
|
|
89
|
+
onSubmit: e.onSubmit,
|
|
90
|
+
formScrollRef: e.formScrollRef,
|
|
91
|
+
registerLineItemCleanupFn: e.registerLineItemCleanupFn,
|
|
92
|
+
onAttachmentsUploadingChange: e.onAttachmentsUploadingChange,
|
|
93
|
+
disabled: e.isLoading,
|
|
94
|
+
closeDisabled: e.isSaving,
|
|
95
|
+
discardModal: e.discardModal,
|
|
96
|
+
footer: /* @__PURE__ */ F(x, { children: [
|
|
97
|
+
/* @__PURE__ */ s(l, { variant: "outline", className: "ttw:border-border", onClick: e.requestClose, disabled: e.isSaving || e.attachmentsUploading, children: r._("Cancel") }),
|
|
98
|
+
!e.isRecurrenceEnabled && /* @__PURE__ */ s(l, { variant: "secondary", type: "submit", form: e.formName, disabled: e.isLoading || e.attachmentsUploading, onClick: () => {
|
|
99
|
+
e.submitModeRef.current = "draft";
|
|
100
|
+
}, children: r._("Update draft") }),
|
|
101
|
+
/* @__PURE__ */ s(l, { type: "submit", form: e.formName, disabled: e.isLoading || e.attachmentsUploading || e.isIssuePreflightLoading || !e.isRecurrenceEnabled && e.isCustomerEmailLoading, onClick: () => {
|
|
102
|
+
e.submitModeRef.current = e.isRecurrenceEnabled ? "draft" : "issue";
|
|
103
|
+
}, children: e.isRecurrenceEnabled ? t ? r._("Update recurring billing schedule") : r._("Activate recurring billing schedule") : r._("Issue invoice") }, "next")
|
|
104
|
+
] })
|
|
105
|
+
}
|
|
106
|
+
);
|
|
19
107
|
};
|
|
20
108
|
export {
|
|
21
|
-
|
|
109
|
+
Ce as EditInvoiceDetails
|
|
22
110
|
};
|
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return t.finops.patchCounterpartsId.useMutation(void 0, {
|
|
13
|
-
onSuccess: async (e) => {
|
|
14
|
-
t.finops.getCounterpartsId.setQueryData({
|
|
15
|
-
path: {
|
|
16
|
-
counterpart_id: e.id
|
|
17
|
-
}
|
|
18
|
-
}, (n) => ({
|
|
19
|
-
...n,
|
|
20
|
-
...e
|
|
21
|
-
}), o), await t.finops.getCounterparts.invalidateQueries(o), a.success(r._("{name} has been updated.", {
|
|
22
|
-
name: p(e)
|
|
23
|
-
}));
|
|
24
|
-
},
|
|
25
|
-
onError: () => {
|
|
26
|
-
a.error(r._("Failed to update counterpart."));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
};
|
|
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 })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
30
12
|
export {
|
|
31
|
-
|
|
13
|
+
i as InvoiceDetailsInfoRow
|
|
32
14
|
};
|
|
@@ -1,44 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, {
|
|
20
|
-
onSuccess: async (d) => {
|
|
21
|
-
r.finops.getCounterpartsIdAddressesId.setQueryData({
|
|
22
|
-
path: {
|
|
23
|
-
counterpart_id: e,
|
|
24
|
-
address_id: t
|
|
25
|
-
}
|
|
26
|
-
}, (o) => ({
|
|
27
|
-
...o,
|
|
28
|
-
...d
|
|
29
|
-
}), s), await r.finops.getCounterpartsIdAddresses.invalidateQueries({
|
|
30
|
-
parameters: {
|
|
31
|
-
path: {
|
|
32
|
-
counterpart_id: e
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}, s);
|
|
36
|
-
},
|
|
37
|
-
onError: () => {
|
|
38
|
-
p.error(a._("Failed to update address."));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
};
|
|
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
|
+
}
|
|
42
19
|
export {
|
|
43
|
-
|
|
20
|
+
d as InvoiceDetailsCustomerRow
|
|
44
21
|
};
|
|
@@ -1,65 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
hasExistingBankAccount: a,
|
|
11
|
-
isLoading: o,
|
|
12
|
-
isStandalone: b,
|
|
13
|
-
handleCancel: v
|
|
1
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useGetReceivableById as r } from "./index82.js";
|
|
3
|
+
import { useCancelReceivableById as m } from "./index363.js";
|
|
4
|
+
import { ConfirmationModal as d } from "./index220.js";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
6
|
+
const v = ({
|
|
7
|
+
invoiceId: o,
|
|
8
|
+
open: c,
|
|
9
|
+
onClose: i
|
|
14
10
|
}) => {
|
|
15
11
|
const {
|
|
16
|
-
i18n:
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
field: r,
|
|
30
|
-
fieldState: {
|
|
31
|
-
error: i
|
|
32
|
-
}
|
|
33
|
-
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
34
|
-
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Account holder name") }),
|
|
35
|
-
/* @__PURE__ */ e(h, { id: r.name, ...r, className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
36
|
-
/* @__PURE__ */ e(u, { errors: [i] })
|
|
37
|
-
] }) }) }),
|
|
38
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
39
|
-
/* @__PURE__ */ e(w, { name: "routingNumber", control: d, render: ({
|
|
40
|
-
field: r,
|
|
41
|
-
fieldState: {
|
|
42
|
-
error: i
|
|
43
|
-
}
|
|
44
|
-
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
45
|
-
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Routing number") }),
|
|
46
|
-
/* @__PURE__ */ e(h, { id: r.name, ...r, placeholder: t._("e.g., 123456789"), className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
47
|
-
/* @__PURE__ */ e(u, { errors: [i] })
|
|
48
|
-
] }) }) }),
|
|
49
|
-
/* @__PURE__ */ e(w, { name: "accountNumber", control: d, render: ({
|
|
50
|
-
field: r,
|
|
51
|
-
fieldState: {
|
|
52
|
-
error: i
|
|
53
|
-
}
|
|
54
|
-
}) => /* @__PURE__ */ e(m, { "data-invalid": !!(!r.value && a), children: /* @__PURE__ */ n(c, { children: [
|
|
55
|
-
/* @__PURE__ */ e(s, { htmlFor: r.name, children: t._("Account number") }),
|
|
56
|
-
/* @__PURE__ */ e(h, { id: r.name, ...r, placeholder: t._("e.g., 12345678"), className: "ttw:bg-white", disabled: o, "aria-invalid": !!(!r.value && a) || !!i || void 0 }),
|
|
57
|
-
/* @__PURE__ */ e(u, { errors: [i] })
|
|
58
|
-
] }) }) })
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ e(p, { color: "muted", variant: "body2", children: t._("Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.") })
|
|
61
|
-
] });
|
|
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 });
|
|
62
25
|
};
|
|
63
26
|
export {
|
|
64
|
-
|
|
27
|
+
v as InvoiceCancelModal
|
|
65
28
|
};
|
|
@@ -1,98 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import "
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onUpdate: c,
|
|
22
|
-
onCreate: i
|
|
1
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDeleteReceivableById as u } from "./index364.js";
|
|
3
|
+
import { useComponentSettings as f } from "./index67.js";
|
|
4
|
+
import { useUserPermissions as v } from "./index146.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 "./index220.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
|
|
23
21
|
}) => {
|
|
24
22
|
const {
|
|
25
23
|
i18n: e
|
|
26
|
-
} = v(), h = `vendor-bank-form-${F()}`, N = !!t, {
|
|
27
|
-
mutate: f,
|
|
28
|
-
isPending: k
|
|
29
24
|
} = D(), {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...a
|
|
39
|
-
} = y({
|
|
40
|
-
resolver: P(U(e)),
|
|
41
|
-
defaultValues: S
|
|
42
|
-
}), x = H((m) => {
|
|
43
|
-
m.preventDefault(), m.stopPropagation(), a.handleSubmit((r) => {
|
|
44
|
-
if (t) {
|
|
45
|
-
const s = {
|
|
46
|
-
account_holder_name: r.accountHolderName,
|
|
47
|
-
account_number: r.accountNumber,
|
|
48
|
-
routing_number: r.routingNumber
|
|
49
|
-
};
|
|
50
|
-
return f({
|
|
51
|
-
path: {
|
|
52
|
-
counterpart_id: p,
|
|
53
|
-
bank_account_id: t?.id
|
|
54
|
-
},
|
|
55
|
-
body: s
|
|
56
|
-
}, {
|
|
57
|
-
onSuccess: () => {
|
|
58
|
-
l.success(e._("Bank account information has been updated.")), c && c();
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
const s = {
|
|
63
|
-
account_holder_name: r.accountHolderName,
|
|
64
|
-
account_number: r.accountNumber,
|
|
65
|
-
routing_number: r.routingNumber,
|
|
66
|
-
country: "US",
|
|
67
|
-
currency: "USD",
|
|
68
|
-
is_default_for_currency: !0
|
|
69
|
-
};
|
|
70
|
-
return _({
|
|
71
|
-
path: {
|
|
72
|
-
counterpart_id: p
|
|
73
|
-
},
|
|
74
|
-
body: s
|
|
75
|
-
}, {
|
|
76
|
-
onSuccess: () => {
|
|
77
|
-
l.success(e._("Bank Account has been added.")), i && i();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
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();
|
|
80
33
|
}
|
|
81
|
-
})(
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */ u(w, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
|
|
87
|
-
n("accountHolderName"), n("accountNumber"), n("routingNumber"), b();
|
|
88
|
-
}, children: e._("Cancel") }),
|
|
89
|
-
/* @__PURE__ */ d(w, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
|
|
90
|
-
o && /* @__PURE__ */ u(j, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
91
|
-
e._("Save")
|
|
92
|
-
] })
|
|
93
|
-
] })
|
|
94
|
-
] }) });
|
|
34
|
+
}) : I.error(e._("You don't have permission to delete this document. Please, contact your system administrator for details."));
|
|
35
|
+
}, d = i ? e._("Delete receivable “{documentId}”?", {
|
|
36
|
+
documentId: i
|
|
37
|
+
}) : e._("Delete receivable?");
|
|
38
|
+
return /* @__PURE__ */ p(C, { open: r, title: d, message: e._("This action can't be undone."), confirmLabel: e._("Delete"), cancelLabel: e._("Cancel"), onClose: o, onConfirm: c, isLoading: a });
|
|
95
39
|
};
|
|
96
40
|
export {
|
|
97
|
-
|
|
41
|
+
H as InvoiceDeleteModal
|
|
98
42
|
};
|