@tesouro/embedded-components-react 0.2.45 → 0.2.48
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 +26 -24
- package/dist/index.d.ts +23 -3
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/lib/WidgetProvider.d.ts +23 -3
- package/dist/libs/embedded-banking/shared/util/dist/index3.js +24 -22
- 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 +25 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -24
- 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 +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1271 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +10 -2
- 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 +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +60 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +69 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +407 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +73 -9
- 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 +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +44 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +45 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +11 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +144 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +68 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +3 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +62 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +37 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +80 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +46 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +196 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +14 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +76 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +28 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +40 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +7 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +250 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +175 -242
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +115 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +77 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +95 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +88 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +49 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +61 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +88 -64
- 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 +40 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +115 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +68 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +186 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +30 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +123 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +53 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +20 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +13 -21
- 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 +12 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +18 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +4 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +45 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +44 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +388 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -391
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +13 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +90 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +23 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +27 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +117 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +62 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +100 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +13 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +10 -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 +214 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +141 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +86 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +19 -25
- 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 +183 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +23 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +36 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +34 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +54 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +344 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +2 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +14 -36
- 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 +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +31 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +19 -21
- 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 +24 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +38 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +50 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +98 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +41 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +27 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +5 -52
- 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 +75 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +486 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +159 -336
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +39 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +58 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +29 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +113 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +21 -24
- 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 +42 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +57 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +38 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +45 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +40 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +34 -149
- 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 +8 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +104 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +34 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +54 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +61 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +90 -30
- 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 +126 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +16 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +38 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +40 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +18 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +62 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +76 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +73 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +39 -95
- 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 +343 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +303 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +100 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +160 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +264 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +23 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +10 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +95 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +93 -59
- 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 +191 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +55 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +28 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +56 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +44 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +29 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +38 -155
- 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 +63 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +93 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +112 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +83 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +20 -489
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +15 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +166 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +132 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +161 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +59 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +66 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +60 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +6 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +58 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +21 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +60 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +14 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +21 -287
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +31 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +159 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +27 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +27 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +78 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +26 -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 +127 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +149 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +62 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +43 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +23 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +189 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +102 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +80 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +282 -86
- 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 +42 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +85 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +223 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +28 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +15 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +72 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +94 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +35 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +255 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +120 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +14 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +70 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +8 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +94 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +32 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +56 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +104 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +112 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +53 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +31 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +24 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +66 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +17 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +15 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +20 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +67 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +2 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +7 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +51 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +15 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +31 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +4 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +126 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +65 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +44 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +38 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +33 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +85 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +23 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +69 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +51 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +17 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +82 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +74 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +84 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +55 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +49 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +50 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +55 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +69 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +39 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +33 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +19 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +93 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +75 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +20 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +9 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +41 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +35 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +49 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +55 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +33 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +52 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +41 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +47 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +106 -98
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/package.json +2 -1
|
@@ -1,22 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import { useEntityUserById as e } from "./index77.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "react-hot-toast";
|
|
8
|
-
import "@lingui/react";
|
|
9
|
-
import { UserAvatar as m } from "./index410.js";
|
|
10
|
-
import { Chip as i, Skeleton as n } from "@mui/material";
|
|
11
|
-
const y = ({
|
|
12
|
-
entityUserId: o
|
|
13
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as c } from "./index59.js";
|
|
2
|
+
import { useLingui as d } from "@lingui/react";
|
|
3
|
+
import { toast as u } from "react-hot-toast";
|
|
4
|
+
const v = () => {
|
|
14
5
|
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} =
|
|
18
|
-
|
|
6
|
+
api: e,
|
|
7
|
+
entityId: i
|
|
8
|
+
} = c(), {
|
|
9
|
+
i18n: o
|
|
10
|
+
} = d(), {
|
|
11
|
+
data: n
|
|
12
|
+
} = e.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
13
|
+
path: {
|
|
14
|
+
entity_id: i
|
|
15
|
+
}
|
|
16
|
+
}), {
|
|
17
|
+
mutateAsync: s,
|
|
18
|
+
isPending: r
|
|
19
|
+
} = e.finops.postPaymentLinks.useMutation({});
|
|
20
|
+
async function y(m) {
|
|
21
|
+
const a = n ? n.data.filter(({
|
|
22
|
+
status: t,
|
|
23
|
+
direction: p
|
|
24
|
+
}) => t === "active" && p === "receive") : [];
|
|
25
|
+
a.length === 0 ? u.error(o._("You haven't onboarded for any payment method. Invoice is issued without a payment link.")) : await s({
|
|
26
|
+
recipient: {
|
|
27
|
+
id: i,
|
|
28
|
+
type: "entity"
|
|
29
|
+
},
|
|
30
|
+
payment_methods: a.map((t) => t.type),
|
|
31
|
+
object: {
|
|
32
|
+
id: m,
|
|
33
|
+
type: "receivable"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
createPaymentLink: y,
|
|
39
|
+
isCreatingPaymentLink: r
|
|
40
|
+
};
|
|
19
41
|
};
|
|
20
42
|
export {
|
|
21
|
-
|
|
43
|
+
v as useCreateReceivablePaymentLink
|
|
22
44
|
};
|
|
@@ -1,46 +1,19 @@
|
|
|
1
|
-
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...a
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ e("tbody", { "data-slot": "table-body", className: l("ttw:[&_tr:last-child]:border-0", t), ...a });
|
|
20
|
-
}
|
|
21
|
-
function n({
|
|
22
|
-
className: t,
|
|
23
|
-
...a
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ e("tr", { "data-slot": "table-row", className: l("ttw:border-b ttw:transition-colors ttw:hover:bg-muted/50 ttw:data-[state=selected]:bg-muted", t), ...a });
|
|
26
|
-
}
|
|
27
|
-
function d({
|
|
28
|
-
className: t,
|
|
29
|
-
...a
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ e("th", { "data-slot": "table-head", className: l("ttw:h-10 ttw:px-2 ttw:text-left ttw:align-middle ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
32
|
-
}
|
|
33
|
-
function b({
|
|
34
|
-
className: t,
|
|
35
|
-
...a
|
|
36
|
-
}) {
|
|
37
|
-
return /* @__PURE__ */ e("td", { "data-slot": "table-cell", className: l("ttw:p-2 ttw:align-middle ttw:whitespace-nowrap ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
38
|
-
}
|
|
1
|
+
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as r } from "./index86.js";
|
|
3
|
+
import { ArrowUpRight as s } from "lucide-react";
|
|
4
|
+
import { twMerge as w } from "tailwind-merge";
|
|
5
|
+
const d = ({
|
|
6
|
+
label: o,
|
|
7
|
+
value: a,
|
|
8
|
+
status: t,
|
|
9
|
+
onClick: l
|
|
10
|
+
}) => /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
11
|
+
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: o }),
|
|
12
|
+
l ? /* @__PURE__ */ n(r, { variant: "link", onClick: l, className: "ttw:w-fit ttw:gap-1 ttw:h-5 ttw:hover:no-underline ttw:text-text ttw:font-normal ttw:p-0 ttw:has-[>svg]:px-0", children: [
|
|
13
|
+
/* @__PURE__ */ e("span", { className: "ttw:underline", children: a }),
|
|
14
|
+
/* @__PURE__ */ e(s, {})
|
|
15
|
+
] }) : /* @__PURE__ */ e("p", { className: w("ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-text", t && t === "overdue" && "ttw:text-danger", t && t === "draft" && "ttw:text-neutral"), children: a })
|
|
16
|
+
] });
|
|
39
17
|
export {
|
|
40
|
-
|
|
41
|
-
c as TableBody,
|
|
42
|
-
b as TableCell,
|
|
43
|
-
d as TableHead,
|
|
44
|
-
w as TableHeader,
|
|
45
|
-
n as TableRow
|
|
18
|
+
d as InvoiceDetailsInfoBlock
|
|
46
19
|
};
|
|
@@ -1,14 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { jsxs as n, jsx as i, Fragment as _ } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMoniteContext as f } from "./index59.js";
|
|
3
|
+
import { useCurrencies as x } from "./index60.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./index94.js";
|
|
6
|
+
import { useLingui as v } from "@lingui/react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "@mui/x-data-grid";
|
|
9
|
+
import { rateMinorToMajor as y } from "./index203.js";
|
|
10
|
+
import { twMerge as b } from "tailwind-merge";
|
|
11
|
+
import { useGetPaymentRecords as g } from "./index260.js";
|
|
12
|
+
import { useGetReceivables as h } from "./index150.js";
|
|
13
|
+
const r = ({
|
|
14
|
+
label: t,
|
|
15
|
+
value: a,
|
|
16
|
+
isBold: l
|
|
17
|
+
}) => /* @__PURE__ */ n("li", { className: b("ttw:w-full ttw:flex ttw:gap-4 ttw:justify-between ttw:text-neutral ttw:font-normal ttw:text-sm ttw:leading-5", l && "ttw:font-medium ttw:text-text"), children: [
|
|
18
|
+
/* @__PURE__ */ i("span", { children: t }),
|
|
19
|
+
/* @__PURE__ */ i("span", { children: a })
|
|
20
|
+
] }), S = ({
|
|
21
|
+
invoice: t
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
i18n: a
|
|
25
|
+
} = v(), {
|
|
26
|
+
formatCurrencyToDisplay: l
|
|
27
|
+
} = x(), {
|
|
28
|
+
locale: o
|
|
29
|
+
} = f(), {
|
|
30
|
+
data: s
|
|
31
|
+
} = g(t?.id), u = t?.type === "invoice" ? t?.related_documents?.credit_note_ids : void 0, {
|
|
32
|
+
data: m
|
|
33
|
+
} = h({
|
|
34
|
+
id__in: u,
|
|
35
|
+
type: "credit_note"
|
|
36
|
+
}, !!u?.length), d = t?.status === "paid", c = t?.status === "partially_paid", p = t?.status === "canceled", w = d || c || p;
|
|
37
|
+
return /* @__PURE__ */ n("ul", { className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
38
|
+
/* @__PURE__ */ i(r, { label: a._("Subtotal"), value: l(t?.subtotal ?? 0, t?.currency) }),
|
|
39
|
+
/* @__PURE__ */ i("li", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: t?.total_tax_amounts?.map((e) => /* @__PURE__ */ n("div", { className: "ttw:w-full ttw:flex ttw:gap-4 ttw:justify-between ttw:text-neutral ttw:font-normal ttw:text-sm ttw:leading-5", children: [
|
|
40
|
+
/* @__PURE__ */ i("span", { children: a._("Total tax ({rate}%)", {
|
|
41
|
+
rate: y(e?.value)
|
|
42
|
+
}) }),
|
|
43
|
+
/* @__PURE__ */ i("span", { children: l(e?.amount ?? 0, t?.currency) })
|
|
44
|
+
] }, e?.id)) }),
|
|
45
|
+
/* @__PURE__ */ i(r, { label: a._("Total ({invoice})", {
|
|
46
|
+
invoice: t?.currency
|
|
47
|
+
}), value: l(t?.total_amount ?? 0, t?.currency), isBold: !0 }),
|
|
48
|
+
w && /* @__PURE__ */ n(_, { children: [
|
|
49
|
+
s?.data?.map((e) => /* @__PURE__ */ i(r, { label: e?.paid_at ? a._("Amount paid on {i18nDate}", {
|
|
50
|
+
i18nDate: a.date(e?.paid_at, o.dateTimeFormat)
|
|
51
|
+
}) : a._("Amount paid"), value: l(e?.amount ?? 0, t?.currency) }, e?.id)),
|
|
52
|
+
m?.data?.map((e) => /* @__PURE__ */ i(r, { label: e?.issue_date ? a._("Credit applied on {i18nDate}", {
|
|
53
|
+
i18nDate: a.date(e?.issue_date, o.dateTimeFormat)
|
|
54
|
+
}) : a._("Credit applied"), value: l(e?.total_amount ?? 0, t?.currency) }, e?.id)),
|
|
55
|
+
/* @__PURE__ */ i(r, { label: a._("Amount due ({invoice})", {
|
|
56
|
+
invoice: t?.currency
|
|
57
|
+
}), value: l(t?.amount_due ?? 0, t?.currency), isBold: !0 })
|
|
58
|
+
] })
|
|
59
|
+
] });
|
|
60
|
+
};
|
|
11
61
|
export {
|
|
12
|
-
|
|
13
|
-
o as prepareBankAccountUpdatePayload
|
|
62
|
+
S as InvoiceDetailsSummary
|
|
14
63
|
};
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
path: {
|
|
13
|
-
product_id: r
|
|
14
|
-
}
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: async () => {
|
|
17
|
-
await t.finops.getProducts.invalidateQueries(i), o.success(e._("Product was deleted.")), s?.();
|
|
18
|
-
},
|
|
19
|
-
onError: () => {
|
|
20
|
-
o.error(e._("Failed to delete product."));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
1
|
+
const r = (e, t) => {
|
|
2
|
+
switch (t) {
|
|
3
|
+
case "invoice":
|
|
4
|
+
return e._("Invoice");
|
|
5
|
+
case "credit_note":
|
|
6
|
+
return e._("Credit memo");
|
|
7
|
+
case "quote":
|
|
8
|
+
return e._("Quote");
|
|
9
|
+
default:
|
|
10
|
+
return e._("Receivable");
|
|
11
|
+
}
|
|
23
12
|
};
|
|
24
13
|
export {
|
|
25
|
-
|
|
14
|
+
r as getTypeLabel
|
|
26
15
|
};
|
|
@@ -1,36 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as n, Fragment as g, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { getCreateRecurrenceValidationSchema as b } from "./index193.js";
|
|
3
|
+
import { useUpdateRecurrenceById as x } from "./index418.js";
|
|
4
|
+
import { InvoiceDetailsInfoBlock as c } from "./index306.js";
|
|
5
|
+
import { InvoiceRecurrenceStatusChip as y } from "./index170.js";
|
|
6
|
+
import { RecurrenceFormContent as S } from "./index419.js";
|
|
7
|
+
import { Button as o } from "./index86.js";
|
|
8
|
+
import { Form as N } from "./index316.js";
|
|
9
|
+
import { Sheet as C, SheetContent as j, SheetHeader as D, SheetTitle as R, SheetDescription as F, SheetFooter as I } from "./index139.js";
|
|
10
|
+
import { zodResolver as $ } from "@hookform/resolvers/zod";
|
|
11
|
+
import { useLingui as k } from "@lingui/react";
|
|
12
|
+
import { format as E } from "date-fns";
|
|
13
|
+
import { SquarePen as z } from "lucide-react";
|
|
14
|
+
import { useState as q, useMemo as B } from "react";
|
|
15
|
+
import { useForm as T } from "react-hook-form";
|
|
16
|
+
const X = ({
|
|
17
|
+
recurrence: t,
|
|
18
|
+
handleTabChange: _,
|
|
19
|
+
openInvoiceDetails: l,
|
|
20
|
+
isCreatedFromRecurrence: i
|
|
21
|
+
}) => {
|
|
5
22
|
const {
|
|
6
23
|
i18n: e
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
24
|
+
} = k(), [m, s] = q(!1), u = new Date(t?.start_date).getDate(), h = B(() => t?.iterations?.filter((a) => a.status === "completed"), [t]), {
|
|
25
|
+
mutateAsync: w,
|
|
26
|
+
isPending: p
|
|
27
|
+
} = x(t?.id, t?.invoice_id), d = "edit-recurrence-form", f = T({
|
|
28
|
+
// See the identical cast in CreateReceivables.tsx — `zodResolver`'s
|
|
29
|
+
// inferred `Resolver` and react-hook-form's own `Resolver` type are
|
|
30
|
+
// structurally "unrelated" to `tsc --build` for this schema shape.
|
|
31
|
+
resolver: $(b(e)),
|
|
32
|
+
defaultValues: {
|
|
33
|
+
frequency: t?.frequency,
|
|
34
|
+
recurrence_max_occurrences: t?.max_occurrences ?? 1,
|
|
35
|
+
recurrence_start_date: new Date(t?.start_date),
|
|
36
|
+
recurrence_end_date: t?.end_date ? new Date(t?.end_date) : void 0,
|
|
37
|
+
recurrence_issue_mode: u === 1 ? "first_day" : "last_day",
|
|
38
|
+
recurrence_subject_text: t?.subject_text ?? e._("Recurrent invoice"),
|
|
39
|
+
recurrence_body_text: t?.body_text ?? e._("This invoice was generated from a recurrence. Please find the details of the recurrence in the invoice details section.")
|
|
14
40
|
}
|
|
15
|
-
}, {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
}), v = async (a) => {
|
|
42
|
+
await w({
|
|
43
|
+
end_date: a.recurrence_end_date ? E(new Date(a.recurrence_end_date), "yyyy-MM-dd") : void 0,
|
|
44
|
+
subject_text: a.recurrence_subject_text || void 0,
|
|
45
|
+
body_text: a.recurrence_body_text || void 0
|
|
46
|
+
}), s(!1);
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ n(g, { children: [
|
|
49
|
+
m && /* @__PURE__ */ r(C, { open: m, onOpenChange: s, children: /* @__PURE__ */ r(N, { ...f, children: /* @__PURE__ */ r("form", { id: d, name: d, onSubmit: f.handleSubmit(v), children: /* @__PURE__ */ n(j, { className: "ttw:gap-0", showCloseButton: !1, children: [
|
|
50
|
+
/* @__PURE__ */ n(D, { className: "ttw:border-b ttw:border-border", children: [
|
|
51
|
+
/* @__PURE__ */ r(R, { children: e._("Edit recurrence settings") }),
|
|
52
|
+
/* @__PURE__ */ r(F, { hidden: !0, children: e._("Edit the settings for this recurring invoice") })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ n("div", { className: "ttw:p-8 ttw:flex ttw:flex-col ttw:gap-10", children: [
|
|
55
|
+
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-foreground", children: e._("You can set a different period length and the date of issuance. The starting date cannot be updated.") }),
|
|
56
|
+
/* @__PURE__ */ r(S, { isUpdate: !0 })
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ n(I, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: [
|
|
59
|
+
/* @__PURE__ */ r(o, { variant: "outline", size: "sm", onClick: () => s(!1), children: e._("Cancel") }),
|
|
60
|
+
/* @__PURE__ */ r(o, { size: "sm", type: "submit", form: d, disabled: p, children: e._("Save") })
|
|
61
|
+
] })
|
|
62
|
+
] }) }) }) }),
|
|
63
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
64
|
+
i ? /* @__PURE__ */ n("div", { className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4", children: [
|
|
65
|
+
/* @__PURE__ */ r("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: e._("Created from recurrence") }),
|
|
66
|
+
/* @__PURE__ */ r(y, { status: t?.status })
|
|
67
|
+
] }) : /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
68
|
+
/* @__PURE__ */ r("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: e._("Recurrence") }),
|
|
69
|
+
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5 ttw:text-muted-foreground", children: e._("All future invoices will be issued based on this invoice") })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ n("div", { className: "ttw:grid ttw:grid-cols-2 ttw:gap-4", children: [
|
|
72
|
+
/* @__PURE__ */ r(c, { label: e._("Start"), value: t?.start_date ? e.date(t?.start_date, {
|
|
73
|
+
month: "long",
|
|
74
|
+
year: "numeric"
|
|
75
|
+
}) : "-" }),
|
|
76
|
+
/* @__PURE__ */ r(c, { label: e._("End"), value: t?.end_date ? e.date(t?.end_date, {
|
|
77
|
+
month: "long",
|
|
78
|
+
year: "numeric"
|
|
79
|
+
}) : "-" }),
|
|
80
|
+
/* @__PURE__ */ r(c, { label: e._("Frequency"), value: u === 1 ? e._("Every first day of month") : e._("Every last day of month") }),
|
|
81
|
+
/* @__PURE__ */ r(c, { label: e._("Issued documents"), value: `${h.length} / ${t?.iterations.length} ${e._("issued")}`, onClick: () => {
|
|
82
|
+
i && l?.(t?.invoice_id), _("scheduled-invoices");
|
|
83
|
+
} })
|
|
84
|
+
] }),
|
|
85
|
+
i && /* @__PURE__ */ r(o, { variant: "outline", size: "sm", className: "ttw:w-fit", onClick: () => l?.(t?.invoice_id), children: e._("View recurrence") }),
|
|
86
|
+
!i && t?.status !== "canceled" && /* @__PURE__ */ n(o, { variant: "outline", size: "sm", className: "ttw:w-fit", onClick: () => s(!0), children: [
|
|
87
|
+
/* @__PURE__ */ r(z, {}),
|
|
88
|
+
" ",
|
|
89
|
+
e._("Edit settings")
|
|
90
|
+
] })
|
|
91
|
+
] })
|
|
92
|
+
] });
|
|
33
93
|
};
|
|
34
94
|
export {
|
|
35
|
-
|
|
95
|
+
X as InvoiceDetailsOverviewRecurrenceSection
|
|
36
96
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as n } from "./index59.js";
|
|
2
|
-
import { getAPIErrorMessage as d } from "./
|
|
2
|
+
import { getAPIErrorMessage as d } from "./index122.js";
|
|
3
3
|
import { useLingui as p } from "@lingui/react";
|
|
4
4
|
import { toast as r } from "react-hot-toast";
|
|
5
5
|
const f = (s, i) => {
|
|
@@ -1,22 +1,130 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as r, Fragment as h, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { AccordionTrigger as g, AccordionContent as x } from "./index252.js";
|
|
3
|
+
import { Badge as b } from "./index253.js";
|
|
4
|
+
import { Button as v } from "./index86.js";
|
|
5
|
+
import { useLingui as f } from "@lingui/react";
|
|
6
|
+
import { Calendar as N, Bell as R } from "lucide-react";
|
|
7
|
+
import { twMerge as j } from "tailwind-merge";
|
|
8
|
+
import "react-hot-toast";
|
|
9
|
+
import "./index59.js";
|
|
10
|
+
import { useState as I } from "react";
|
|
11
|
+
import "date-fns";
|
|
12
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
13
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
14
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
15
|
+
import "@tanstack/react-query";
|
|
16
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
17
|
+
import "clsx";
|
|
18
|
+
import "@radix-ui/react-dropdown-menu";
|
|
19
|
+
import { useGetPaymentReminderById as C } from "./index261.js";
|
|
20
|
+
import { useGetOverdueReminderById as D } from "./index259.js";
|
|
21
|
+
import "./index94.js";
|
|
22
|
+
import "react-dom";
|
|
23
|
+
import "@mui/x-data-grid";
|
|
24
|
+
import "react-hook-form";
|
|
25
|
+
import { PreviewEmail as T } from "./index304.js";
|
|
26
|
+
import { Dialog as B, DialogContent as L, DialogDescription as $ } from "./index189.js";
|
|
27
|
+
import { getDefaultContact as k } from "./index302.js";
|
|
28
|
+
import { useCounterpartById as O } from "./index72.js";
|
|
29
|
+
import { useCounterpartContactList as S } from "./index76.js";
|
|
30
|
+
const p = ({
|
|
31
|
+
term: a,
|
|
32
|
+
isLastTerm: o,
|
|
33
|
+
invoiceId: c
|
|
34
|
+
}) => {
|
|
5
35
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
36
|
+
i18n: d
|
|
37
|
+
} = f(), [i, w] = I(!1);
|
|
38
|
+
return /* @__PURE__ */ r("li", { className: "ttw:flex ttw:gap-1 ttw:items-center ttw:justify-between", children: [
|
|
39
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
40
|
+
/* @__PURE__ */ r("div", { className: j("ttw:flex ttw:flex-col ttw:gap-1", o ? "ttw:pt-0" : "ttw:pt-2 ttw:justify-end ttw:items-center"), children: [
|
|
41
|
+
/* @__PURE__ */ e(R, { className: "ttw:size-4" }),
|
|
42
|
+
!o && /* @__PURE__ */ e("div", { className: "ttw:w-px ttw:h-1.5 ttw:bg-neutral" })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ e("span", { className: "ttw:text-text ttw:text-sm ttw:font-normal ttw:leading-5", children: a.reminderTerm })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ e(v, { variant: "link", onClick: () => w(!0), children: d._("View email") }),
|
|
47
|
+
i && /* @__PURE__ */ e(B, { open: i, onOpenChange: w, children: /* @__PURE__ */ r(L, { fullScreen: !0, children: [
|
|
48
|
+
/* @__PURE__ */ e(T, { invoiceId: c, body: a.body, subject: a.subject }),
|
|
49
|
+
/* @__PURE__ */ e($, { hidden: !0, children: d._("Email preview") })
|
|
50
|
+
] }) })
|
|
51
|
+
] });
|
|
52
|
+
}, ce = ({
|
|
53
|
+
paymentReminderId: a,
|
|
54
|
+
overdueReminderId: o,
|
|
55
|
+
invoiceId: c,
|
|
56
|
+
counterpartId: d
|
|
57
|
+
}) => {
|
|
58
|
+
const {
|
|
59
|
+
i18n: i
|
|
60
|
+
} = f(), {
|
|
61
|
+
data: w
|
|
62
|
+
} = S(d), {
|
|
63
|
+
data: u
|
|
64
|
+
} = O(d), {
|
|
65
|
+
data: t
|
|
66
|
+
} = C(a), {
|
|
67
|
+
data: y
|
|
68
|
+
} = D(o), _ = k(w, u), s = [...t?.term_1_reminder ? [{
|
|
69
|
+
body: t?.term_1_reminder?.body,
|
|
70
|
+
subject: t?.term_1_reminder?.subject,
|
|
71
|
+
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
72
|
+
paymentReminder: t?.term_1_reminder.days_before,
|
|
73
|
+
paymentReminder1: t?.term_1_reminder?.days_before === 1 ? "day" : "days"
|
|
74
|
+
}),
|
|
75
|
+
id: "payment-1"
|
|
76
|
+
}] : [], ...t?.term_2_reminder ? [{
|
|
77
|
+
body: t?.term_2_reminder?.body,
|
|
78
|
+
subject: t?.term_2_reminder?.subject,
|
|
79
|
+
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
80
|
+
paymentReminder: t?.term_2_reminder.days_before,
|
|
81
|
+
paymentReminder1: t?.term_2_reminder?.days_before === 1 ? "day" : "days"
|
|
82
|
+
}),
|
|
83
|
+
id: "payment-2"
|
|
84
|
+
}] : [], ...t?.term_final_reminder ? [{
|
|
85
|
+
body: t?.term_final_reminder?.body,
|
|
86
|
+
subject: t?.term_final_reminder?.subject,
|
|
87
|
+
reminderTerm: i._("{paymentReminder} {paymentReminder1} before", {
|
|
88
|
+
paymentReminder: t?.term_final_reminder.days_before,
|
|
89
|
+
paymentReminder1: t?.term_final_reminder?.days_before === 1 ? "day" : "days"
|
|
90
|
+
}),
|
|
91
|
+
id: "payment-3"
|
|
92
|
+
}] : []], m = y?.terms?.map((n, l) => ({
|
|
93
|
+
body: n?.body,
|
|
94
|
+
subject: n?.subject,
|
|
95
|
+
reminderTerm: i._("{termDays_after} {term} after", {
|
|
96
|
+
termDays_after: n.days_after,
|
|
97
|
+
term: n?.days_after === 1 ? "day" : "days"
|
|
98
|
+
}),
|
|
99
|
+
id: `overdue-${l + 1}`
|
|
100
|
+
})) ?? [];
|
|
101
|
+
return /* @__PURE__ */ r(h, { children: [
|
|
102
|
+
/* @__PURE__ */ e(g, { className: "ttw:hover:no-underline ttw:group", children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
103
|
+
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: i._("Reminder emails") }),
|
|
104
|
+
s?.length + m?.length > 0 && /* @__PURE__ */ e(b, { variant: "secondary", className: "ttw:h-5 ttw:min-w-5 ttw:rounded-full ttw:px-1 ttw:tabular-nums", children: s?.length + m?.length })
|
|
105
|
+
] }) }),
|
|
106
|
+
/* @__PURE__ */ r(x, { className: "ttw:flex ttw:gap-6", children: [
|
|
107
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5 ttw:flex-1", children: [
|
|
108
|
+
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: i._("Recipients") }),
|
|
109
|
+
/* @__PURE__ */ e("span", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: _?.email ?? "-" })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:flex-1", children: [
|
|
112
|
+
/* @__PURE__ */ e("h3", { className: "ttw:text-text ttw:text-sm ttw:font-medium ttw:leading-5", children: i._("Scheduled reminders") }),
|
|
113
|
+
/* @__PURE__ */ r("ul", { children: [
|
|
114
|
+
s?.length > 0 && s.map((n, l) => /* @__PURE__ */ e(p, { term: n, isLastTerm: m.length > 0 ? !1 : l === s.length - 1, invoiceId: c }, n.id)),
|
|
115
|
+
m.length > 0 && /* @__PURE__ */ e("li", { className: "ttw:flex ttw:gap-1 ttw:items-center ttw:justify-between", children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
116
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:justify-end ttw:items-center ttw:gap-1 ttw:pt-2", children: [
|
|
117
|
+
/* @__PURE__ */ e(N, { className: "ttw:size-4 ttw:text-neutral" }),
|
|
118
|
+
/* @__PURE__ */ e("div", { className: "ttw:w-px ttw:h-1.5 ttw:bg-neutral" })
|
|
119
|
+
] }),
|
|
120
|
+
/* @__PURE__ */ e("span", { className: "ttw:text-neutral ttw:text-sm ttw:font-normal ttw:leading-5", children: i._("Due date") })
|
|
121
|
+
] }) }),
|
|
122
|
+
m?.length > 0 && m.map((n, l) => /* @__PURE__ */ e(p, { term: n, isLastTerm: l === m.length - 1, invoiceId: c }, n.id))
|
|
123
|
+
] })
|
|
124
|
+
] })
|
|
125
|
+
] })
|
|
126
|
+
] });
|
|
19
127
|
};
|
|
20
128
|
export {
|
|
21
|
-
|
|
129
|
+
ce as InvoiceDetailsOverviewReminders
|
|
22
130
|
};
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "./index102.js";
|
|
3
|
+
function e({
|
|
4
|
+
className: t,
|
|
5
|
+
...a
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ r("div", { "data-slot": "card", className: o("ttw:bg-card ttw:text-card-foreground ttw:flex ttw:flex-col ttw:gap-6 ttw:rounded-xl ttw:border ttw:py-6 ttw:shadow-sm", t), ...a });
|
|
8
|
+
}
|
|
9
|
+
function n({
|
|
10
|
+
className: t,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ r("div", { "data-slot": "card-content", className: o("ttw:px-6", t), ...a });
|
|
14
|
+
}
|
|
30
15
|
export {
|
|
31
|
-
|
|
16
|
+
e as Card,
|
|
17
|
+
n as CardContent
|
|
32
18
|
};
|