@tesouro/embedded-components-react 0.2.168 → 0.2.170
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/lib/ReceivablesWidget.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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 +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -9
- 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 +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1269 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +78 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +3 -73
- 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 +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +32 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +217 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -119
- 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 +11 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +39 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +152 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +71 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +55 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +78 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +5 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +93 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +56 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +94 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +97 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +18 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +115 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +67 -55
- 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 +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +9 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +75 -41
- 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 +58 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +14 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +23 -466
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +74 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +27 -535
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +40 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +6 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +220 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +458 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +106 -14
- 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 +534 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +11 -9
- 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 +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +32 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +53 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +74 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +32 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +19 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +142 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +86 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +23 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +183 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +36 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +51 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +81 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +32 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +66 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +346 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +116 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +17 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +11 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +14 -5
- 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 +21 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +21 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +14 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +16 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +104 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +12 -14
- 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 +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +38 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +57 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +49 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +30 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +96 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +45 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +145 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +104 -25
- 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 +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +481 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +167 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +42 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +58 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +29 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +118 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +22 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +54 -95
- 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 +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +36 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +57 -485
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +87 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +112 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +85 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +63 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +10 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +38 -17
- 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 +343 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +300 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +100 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +160 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +266 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +23 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +18 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +94 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +97 -19
- 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 +206 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +20 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +15 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +18 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +170 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +129 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +156 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +10 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +18 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +61 -9
- 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 +60 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +6 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +62 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +63 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +25 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +124 -20
- 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 +49 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +117 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +106 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +49 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +203 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +70 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +72 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +42 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +149 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +27 -124
- 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 +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +17 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +34 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +29 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +29 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +14 -38
- 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 +75 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +76 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +42 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +157 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +27 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +78 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +19 -96
- 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 +22 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +54 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +55 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +19 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +34 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +26 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +40 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +96 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +34 -43
- 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 +32 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +21 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +48 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +11 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +122 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +17 -31
- 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 +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +66 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +3 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +11 -16
- 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 +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +85 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +264 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +43 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +138 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +108 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +80 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +95 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +16 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +282 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +47 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +15 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +19 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +11 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +64 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +17 -83
- 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 +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +14 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +18 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +62 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +89 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +35 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -11
- 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 +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +4 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +126 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +7 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +42 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +26 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +18 -39
- 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 +81 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +50 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +37 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +43 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +72 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +84 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +51 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +51 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +30 -16
- 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 +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +69 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +71 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +65 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +38 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +33 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +85 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +23 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +105 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +110 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +23 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +19 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +37 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +15 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +91 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +75 -29
- 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 +21 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +9 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +41 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +34 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +13 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +50 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +49 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +56 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +30 -51
- 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 +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2544 -2476
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/package.json +1 -1
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMemo as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Price as v } from "./index415.js";
|
|
2
|
+
import { useMemo as m } from "react";
|
|
3
|
+
const w = ({
|
|
4
|
+
lineItems: c,
|
|
5
|
+
isInclusivePricing: o,
|
|
6
|
+
actualCurrency: p,
|
|
7
|
+
formatCurrencyToDisplay: i,
|
|
8
|
+
taxRate: n
|
|
9
9
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
-
mt: e ? 1 : 0
|
|
27
|
-
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
-
sx: {
|
|
29
|
-
color: "inherit"
|
|
10
|
+
const b = (e) => {
|
|
11
|
+
const a = e.product?.price?.value ?? e.price?.value ?? 0, r = e.quantity ?? 1;
|
|
12
|
+
return {
|
|
13
|
+
price: a,
|
|
14
|
+
quantity: r
|
|
15
|
+
};
|
|
16
|
+
}, s = m(() => {
|
|
17
|
+
const e = n !== void 0 ? (n ?? 0) / 100 : void 0, a = c.reduce((t, f) => {
|
|
18
|
+
const {
|
|
19
|
+
price: l,
|
|
20
|
+
quantity: u
|
|
21
|
+
} = b(f);
|
|
22
|
+
if (o && e && f.taxable) {
|
|
23
|
+
const d = l * u / (1 + e);
|
|
24
|
+
return t + d;
|
|
30
25
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
26
|
+
return t + l * u;
|
|
27
|
+
}, 0), r = p ?? c.find((t) => !!t.product?.price?.currency)?.product?.price?.currency ?? c.find((t) => !!t.price?.currency)?.price?.currency;
|
|
28
|
+
if (r)
|
|
29
|
+
return new v({
|
|
30
|
+
value: a,
|
|
31
|
+
currency: r,
|
|
32
|
+
formatter: i
|
|
33
|
+
});
|
|
34
|
+
}, [c, i, p, o, n]), y = m(() => {
|
|
35
|
+
const e = p ?? c.find((r) => !!r.product?.price?.currency)?.product?.price?.currency ?? c.find((r) => !!r.price?.currency)?.price?.currency;
|
|
36
|
+
if (!e)
|
|
37
|
+
return;
|
|
38
|
+
if (!n)
|
|
39
|
+
return new v({
|
|
40
|
+
value: 0,
|
|
41
|
+
currency: e,
|
|
42
|
+
formatter: i
|
|
43
|
+
});
|
|
44
|
+
const a = c.reduce((r, t) => {
|
|
45
|
+
if (!t.taxable) return r;
|
|
46
|
+
const {
|
|
47
|
+
price: f,
|
|
48
|
+
quantity: l
|
|
49
|
+
} = b(t), u = n / 100, d = f * l;
|
|
50
|
+
return o ? r + d * u / (1 + u) : r + d * u;
|
|
51
|
+
}, 0);
|
|
52
|
+
return new v({
|
|
53
|
+
value: a,
|
|
54
|
+
currency: e,
|
|
55
|
+
formatter: i
|
|
56
|
+
});
|
|
57
|
+
}, [c, i, p, n, o]), x = m(() => {
|
|
58
|
+
if (!(!s || !y))
|
|
59
|
+
return s.add(y);
|
|
60
|
+
}, [s, y]);
|
|
51
61
|
return {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
quantity: l,
|
|
56
|
-
price: m,
|
|
57
|
-
tax: c,
|
|
58
|
-
measureUnit: p,
|
|
59
|
-
productType: d
|
|
60
|
-
},
|
|
61
|
-
hasErrors: !!(y || s || l || m || c || p || d)
|
|
62
|
+
subtotalPrice: s,
|
|
63
|
+
totalTaxes: y,
|
|
64
|
+
totalPrice: x
|
|
62
65
|
};
|
|
63
66
|
};
|
|
64
67
|
export {
|
|
65
|
-
|
|
66
|
-
C as useFormErrors
|
|
68
|
+
w as useCreateInvoiceProductsTable
|
|
67
69
|
};
|
|
@@ -1,45 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
canRemove: u
|
|
22
|
-
}) => {
|
|
23
|
-
const h = !!a.line_items?.[t]?.product?.name, w = !!a.line_items?.[t]?.quantity, v = !!a.line_items?.[t]?.product?.price?.value, d = n("product.name"), f = !!(d && d.trim()), x = a.line_items?.[t]?.product?.measure_unit_id;
|
|
24
|
-
return /* @__PURE__ */ C("li", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-9", children: [
|
|
25
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex-1 ttw:min-w-30", children: /* @__PURE__ */ e(U, { onChange: (r, g) => p(t, r, g), fieldName: n("product.name") || "", index: t, error: h, defaultCurrency: i, measureUnits: m, container: c }) }),
|
|
26
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(N, { index: t, control: l, quantityError: w, canRemove: u, hasProduct: f, onLineItemValueChange: o, onRemoveItem: s }) }),
|
|
27
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(V, { value: n("product.measure_unit_id"), onChange: (r) => {
|
|
28
|
-
o("product.measure_unit_id", r, {
|
|
29
|
-
shouldValidate: !0
|
|
30
|
-
});
|
|
31
|
-
}, availableMeasureUnits: m?.data || [], fieldError: x }) }),
|
|
32
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(R, { error: v, currency: i, value: n("product.price.value"), onChange: (r) => {
|
|
33
|
-
o("product.price.value", r, {
|
|
34
|
-
shouldValidate: !0
|
|
35
|
-
});
|
|
36
|
-
} }) }),
|
|
37
|
-
/* @__PURE__ */ e("div", { className: "ttw:w-12 ttw:min-w-12 ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ e(y, { checked: n("taxable") ?? !1, onCheckedChange: (r) => {
|
|
38
|
-
o("taxable", r === !0);
|
|
39
|
-
} }) }),
|
|
40
|
-
u && /* @__PURE__ */ e(b, { type: "button", variant: "ghost", size: "sm", className: "ttw:w-10 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:border-l ttw:border-border ttw:pl-4 ttw:rounded-none ttw:has-[>svg]:pr-0", onClick: () => s(t), children: /* @__PURE__ */ e(I, {}) })
|
|
41
|
-
] });
|
|
42
|
-
}, S = _(k);
|
|
1
|
+
class t {
|
|
2
|
+
value;
|
|
3
|
+
currency;
|
|
4
|
+
formatter;
|
|
5
|
+
constructor(r) {
|
|
6
|
+
this.value = r.value, this.currency = r.currency, this.formatter = r.formatter;
|
|
7
|
+
}
|
|
8
|
+
add(r) {
|
|
9
|
+
if (this.currency !== r.currency)
|
|
10
|
+
throw new Error("Currencies must match");
|
|
11
|
+
return new t({
|
|
12
|
+
value: Number(this.value) + Number(r.value),
|
|
13
|
+
currency: this.currency,
|
|
14
|
+
formatter: this.formatter
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return this.formatter(this.value, this.currency) ?? "";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
43
21
|
export {
|
|
44
|
-
|
|
22
|
+
t as Price
|
|
45
23
|
};
|
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { useLingui as r } from "@lingui/react";
|
|
3
|
-
import { twMerge as i } from "tailwind-merge";
|
|
4
|
-
const o = ({
|
|
5
|
-
label: e,
|
|
6
|
-
value: l,
|
|
7
|
-
className: a
|
|
8
|
-
}) => /* @__PURE__ */ n("li", { className: i("ttw:flex ttw:justify-between ttw:items-center", a), children: [
|
|
9
|
-
/* @__PURE__ */ t("span", { children: e }),
|
|
10
|
-
/* @__PURE__ */ t("span", { children: l?.toString() })
|
|
11
|
-
] }), u = ({
|
|
12
|
-
subtotalPrice: e,
|
|
13
|
-
totalTaxes: l,
|
|
14
|
-
totalPrice: a
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
17
|
-
i18n: s
|
|
18
|
-
} = r();
|
|
19
|
-
return /* @__PURE__ */ n("ul", { className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-1.5 ttw:list-none", children: [
|
|
20
|
-
/* @__PURE__ */ t(o, { label: s._("Subtotal"), value: e, className: "ttw:text-sm ttw:font-normal" }),
|
|
21
|
-
/* @__PURE__ */ t(o, { label: s._("Tax"), value: l, className: "ttw:text-sm ttw:font-normal" }),
|
|
22
|
-
/* @__PURE__ */ t(o, { label: s._("Total"), value: a, className: "ttw:text-lg ttw:font-medium" })
|
|
23
|
-
] });
|
|
24
|
-
};
|
|
1
|
+
const t = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 9)}`;
|
|
25
2
|
export {
|
|
26
|
-
|
|
3
|
+
t as generateUniqueId
|
|
27
4
|
};
|
|
@@ -1,143 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import { useLingui as Y } from "@lingui/react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import { useUserPermissions as Z } from "./index136.js";
|
|
10
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
11
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
12
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
1
|
+
import { jsx as n, jsxs as I } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as w } from "react";
|
|
3
|
+
import { toast as c } from "react-hot-toast";
|
|
4
|
+
import { useRootElements as S } from "./index92.js";
|
|
5
|
+
import "./index57.js";
|
|
13
6
|
import "@tanstack/react-query";
|
|
14
|
-
import "
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
const
|
|
20
|
-
fieldName: a,
|
|
21
|
-
error: V,
|
|
22
|
-
disabled: j,
|
|
23
|
-
index: B = 0,
|
|
24
|
-
defaultCurrency: D,
|
|
25
|
-
measureUnits: C,
|
|
26
|
-
container: E,
|
|
27
|
-
onChange: l
|
|
28
|
-
}) => {
|
|
7
|
+
import "date-fns";
|
|
8
|
+
import { useLingui as R } from "@lingui/react";
|
|
9
|
+
import { usePaymentIntentById as $ } from "./index80.js";
|
|
10
|
+
import { useCreatePayablePaymentLink as v, usePaymentLinkById as B } from "./index480.js";
|
|
11
|
+
import { Modal as j, Box as x, CircularProgress as D } from "@mui/material";
|
|
12
|
+
const G = (r, d, f, i) => {
|
|
29
13
|
const {
|
|
30
|
-
i18n:
|
|
31
|
-
} = Y(), k = D, [g, m] = x(""), [b, I] = x(!1), [q, y] = x(null), [_, u] = x(!1), {
|
|
32
|
-
api: z
|
|
14
|
+
i18n: t
|
|
33
15
|
} = R(), {
|
|
34
|
-
|
|
35
|
-
} =
|
|
36
|
-
data:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
16
|
+
root: k
|
|
17
|
+
} = S(), b = v(), [L, m] = l(!1), [u, o] = l(null), [g, p] = l(null), [_, P] = l(!1), {
|
|
18
|
+
data: s,
|
|
19
|
+
isSuccess: h
|
|
20
|
+
} = $(i ?? "");
|
|
21
|
+
w(() => {
|
|
22
|
+
h && s?.payment_link_id && i && p(s.payment_link_id);
|
|
23
|
+
}, [h, s, i]);
|
|
24
|
+
const {
|
|
25
|
+
data: e,
|
|
26
|
+
refetch: C,
|
|
27
|
+
isSuccess: y,
|
|
28
|
+
isLoading: E
|
|
29
|
+
} = B(g ?? "");
|
|
30
|
+
return w(() => {
|
|
31
|
+
y && e?.payment_intent?.status === "processing" && f?.(r ?? "", e?.payment_intent?.status ?? "");
|
|
32
|
+
}, [e, y, f, r]), {
|
|
33
|
+
handlePay: async () => {
|
|
34
|
+
if (!d) {
|
|
35
|
+
c.error(t._("Vendor not found. Please create a vendor first."));
|
|
36
|
+
return;
|
|
50
37
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
pagination_token: e.next_pagination_token
|
|
38
|
+
if (!_)
|
|
39
|
+
try {
|
|
40
|
+
if (E) {
|
|
41
|
+
c.error(t._("Payment link is still loading. Please wait a moment and try again."));
|
|
42
|
+
return;
|
|
57
43
|
}
|
|
58
|
-
|
|
44
|
+
if (!g || y && e?.payment_intent?.status !== "created") {
|
|
45
|
+
if (P(!0), !r) throw new Error("Payable ID is undefined");
|
|
46
|
+
const a = await b(
|
|
47
|
+
r,
|
|
48
|
+
d,
|
|
49
|
+
["sepa_credit"],
|
|
50
|
+
60
|
|
51
|
+
// 60 days from now
|
|
52
|
+
);
|
|
53
|
+
if (a.payment_page_url)
|
|
54
|
+
p(a.id), o(a.payment_page_url);
|
|
55
|
+
else
|
|
56
|
+
throw p(null), o(null), new Error("No payment page URL in response");
|
|
57
|
+
} else if (e?.payment_page_url)
|
|
58
|
+
o(e.payment_page_url);
|
|
59
|
+
else
|
|
60
|
+
throw new Error("No payment page URL in existing payment link");
|
|
61
|
+
m(!0);
|
|
62
|
+
} catch (a) {
|
|
63
|
+
console.error("Payment link creation/retrieval error:", a), c.error(i && s?.status === "created" ? t._("Failed to retrieve payment link. Please try again.") : t._("Failed to create payment link. Please try again.")), m(!1);
|
|
64
|
+
} finally {
|
|
65
|
+
P(!1);
|
|
66
|
+
}
|
|
59
67
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
const O = n ? n.id : null, h = n ? n.name : g, s = w(() => {
|
|
88
|
-
const e = h.toLowerCase().trim();
|
|
89
|
-
return !e || n && n.name.toLowerCase() === e ? c : c.filter((t) => t.label.toLowerCase().includes(e));
|
|
90
|
-
}, [h, c, n]), W = w(() => s.map((e) => e.id), [s]), G = p(() => {
|
|
91
|
-
I(!0), u(!0);
|
|
92
|
-
}, []), K = p(() => {
|
|
93
|
-
I(!1);
|
|
94
|
-
}, []), U = p((e) => {
|
|
95
|
-
if (!e) {
|
|
96
|
-
y(null), m(""), l({
|
|
97
|
-
id: "",
|
|
98
|
-
label: ""
|
|
99
|
-
}, !1);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
const t = c.find((r) => r.id === e);
|
|
103
|
-
t && (y(t.id), m(""), l(t, !0));
|
|
104
|
-
}, [c, l]), Q = p((e, t) => {
|
|
105
|
-
if (t.reason !== "input-change") {
|
|
106
|
-
d || m("");
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
m(e), y(null), d && l(e.trim() ? {
|
|
110
|
-
id: se,
|
|
111
|
-
label: e
|
|
112
|
-
} : {
|
|
113
|
-
id: "",
|
|
114
|
-
label: ""
|
|
115
|
-
}, !1);
|
|
116
|
-
}, [d, l]);
|
|
117
|
-
return /* @__PURE__ */ P(ee, { value: O, onValueChange: U, inputValue: h, onInputValueChange: Q, items: W, filter: () => !0, disabled: j, open: _, onOpenChange: u, children: [
|
|
118
|
-
/* @__PURE__ */ i(te, { id: `item-selector-${B}`, placeholder: d ? f._("e.g., The machine that goes ping") : f._("Search for an item"), "aria-invalid": V || void 0, maxLength: 100, onFocus: G, onBlur: K, onClick: () => {
|
|
119
|
-
_ || u(!0);
|
|
120
|
-
}, onKeyDown: (e) => {
|
|
121
|
-
if (e.key === "Enter")
|
|
122
|
-
e.preventDefault(), u(!1);
|
|
123
|
-
else if (e.key === "Tab" && _) {
|
|
124
|
-
const t = h.toLowerCase().trim();
|
|
125
|
-
if (!t) return;
|
|
126
|
-
const r = s.find((L) => L.label.toLowerCase() === t) ?? (s.length === 1 ? s[0] : void 0);
|
|
127
|
-
r && (U(r.id), u(!1));
|
|
128
|
-
}
|
|
129
|
-
}, className: "ttw:w-full", children: F && /* @__PURE__ */ i(re, { align: "inline-start", children: /* @__PURE__ */ i(M, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) }) }),
|
|
130
|
-
/* @__PURE__ */ i(ne, { container: E, className: "ttw:min-w-138", children: /* @__PURE__ */ P(ie, { onScroll: H, children: [
|
|
131
|
-
/* @__PURE__ */ i(ae, { children: d ? f._("No saved items found - type to add an item") : f._("No saved items found") }),
|
|
132
|
-
s.map((e) => /* @__PURE__ */ P(oe, { value: e.id, children: [
|
|
133
|
-
/* @__PURE__ */ i("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
134
|
-
/* @__PURE__ */ i("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [e.price && A(e.price.value, e.price.currency), e.measureUnit?.name].filter(Boolean).join(" ") })
|
|
135
|
-
] }, e.id)),
|
|
136
|
-
v && /* @__PURE__ */ i("div", { className: "ttw:flex ttw:justify-center ttw:py-1", children: /* @__PURE__ */ i(M, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) })
|
|
137
|
-
] }) })
|
|
138
|
-
] });
|
|
68
|
+
isCreatingPaymentLink: _,
|
|
69
|
+
modalComponent: /* @__PURE__ */ n(j, { open: L, onClose: async () => {
|
|
70
|
+
await C(), m(!1), o(null);
|
|
71
|
+
}, container: k, children: /* @__PURE__ */ n(x, { sx: {
|
|
72
|
+
position: "absolute",
|
|
73
|
+
top: "50%",
|
|
74
|
+
left: "50%",
|
|
75
|
+
transform: "translate(-50%, -50%)",
|
|
76
|
+
width: "80%",
|
|
77
|
+
maxWidth: 600,
|
|
78
|
+
bgcolor: "background.paper",
|
|
79
|
+
boxShadow: 24,
|
|
80
|
+
p: 4,
|
|
81
|
+
borderRadius: 2
|
|
82
|
+
}, children: u ? /* @__PURE__ */ n("iframe", { src: u, title: "Payment Page", width: "100%", height: "400px", style: {
|
|
83
|
+
border: "none"
|
|
84
|
+
} }) : /* @__PURE__ */ I(x, { sx: {
|
|
85
|
+
display: "flex",
|
|
86
|
+
flexDirection: "column",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
gap: 2,
|
|
89
|
+
py: 4
|
|
90
|
+
}, children: [
|
|
91
|
+
/* @__PURE__ */ n(D, {}),
|
|
92
|
+
/* @__PURE__ */ n("p", { children: t._("Loading payment page...") })
|
|
93
|
+
] }) }) })
|
|
94
|
+
};
|
|
139
95
|
};
|
|
140
96
|
export {
|
|
141
|
-
|
|
142
|
-
Pe as ItemSelector
|
|
97
|
+
G as usePaymentHandler
|
|
143
98
|
};
|
|
@@ -1,98 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
import { safeZodResolver as C } from "./index223.js";
|
|
7
|
-
import { useLingui as S } from "@lingui/react";
|
|
8
|
-
import { Field as d, FieldContent as c, FieldLabel as m, FieldError as u } from "./index161.js";
|
|
9
|
-
import { Input as s } from "./index119.js";
|
|
10
|
-
import { Typography as h } from "./index85.js";
|
|
11
|
-
import { useCreateEntityBankAccount as F } from "./index391.js";
|
|
12
|
-
import { Button as p } from "./index84.js";
|
|
13
|
-
const I = ({
|
|
14
|
-
bankAccountsLength: b,
|
|
15
|
-
onCreate: _,
|
|
16
|
-
onCancel: f
|
|
17
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as u } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as l } from "./index121.js";
|
|
3
|
+
import { useLingui as m } from "@lingui/react";
|
|
4
|
+
import { toast as a } from "react-hot-toast";
|
|
5
|
+
const v = (i, n, s, p) => {
|
|
18
6
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
mode: "onSubmit",
|
|
28
|
-
reValidateMode: "onSubmit",
|
|
29
|
-
resolver: C(x(a)),
|
|
30
|
-
defaultValues: {
|
|
31
|
-
display_name: "",
|
|
32
|
-
account_holder_name: "",
|
|
33
|
-
account_number: "",
|
|
34
|
-
routing_number: ""
|
|
7
|
+
api: e,
|
|
8
|
+
queryClient: t
|
|
9
|
+
} = u(), {
|
|
10
|
+
i18n: o
|
|
11
|
+
} = m();
|
|
12
|
+
return e.finops.postApprovalRequestsIdReject.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
approval_request_id: i
|
|
35
15
|
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
error: r
|
|
58
|
-
}
|
|
59
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
60
|
-
/* @__PURE__ */ e(m, { htmlFor: "account_number", children: a._("Account number") }),
|
|
61
|
-
/* @__PURE__ */ e(s, { ...t, id: "account_number", placeholder: a._("e.g. 123456789"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
62
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
63
|
-
] }) }) })
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
66
|
-
/* @__PURE__ */ e(i, { name: "account_holder_name", control: l, render: ({
|
|
67
|
-
field: t,
|
|
68
|
-
fieldState: {
|
|
69
|
-
error: r
|
|
70
|
-
}
|
|
71
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
72
|
-
/* @__PURE__ */ e(m, { htmlFor: "account_holder_name", children: a._("Account holder name") }),
|
|
73
|
-
/* @__PURE__ */ e(s, { ...t, id: "account_holder_name", placeholder: a._("e.g. James Smith"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
74
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
75
|
-
] }) }) }),
|
|
76
|
-
/* @__PURE__ */ e(i, { name: "display_name", control: l, render: ({
|
|
77
|
-
field: t,
|
|
78
|
-
fieldState: {
|
|
79
|
-
error: r
|
|
80
|
-
}
|
|
81
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
82
|
-
/* @__PURE__ */ n(m, { htmlFor: "display_name", className: "ttw:gap-1", children: [
|
|
83
|
-
a._("Account nickname"),
|
|
84
|
-
/* @__PURE__ */ e(h, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: a._("(optional)") })
|
|
85
|
-
] }),
|
|
86
|
-
/* @__PURE__ */ e(s, { ...t, id: "display_name", placeholder: a._("e.g. Empire Bank Checking"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
87
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
88
|
-
] }) }) })
|
|
89
|
-
] }),
|
|
90
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
91
|
-
b !== 0 && /* @__PURE__ */ e(p, { type: "button", variant: "outline", className: "ttw:border-border", disabled: o, onClick: f, children: a._("Cancel") }),
|
|
92
|
-
/* @__PURE__ */ e(p, { type: "button", disabled: o, onClick: g(w), children: a._("Save account") })
|
|
93
|
-
] })
|
|
94
|
-
] });
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: () => {
|
|
18
|
+
if (e.finops.getApprovalRequests.invalidateQueries(t), a.success(o._("Payable “{document_id}” has been rejected", {
|
|
19
|
+
document_id: p
|
|
20
|
+
})), !!s)
|
|
21
|
+
return n?.(s ?? ""), new Promise((r) => {
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
24
|
+
parameters: {
|
|
25
|
+
path: {
|
|
26
|
+
payable_id: s ?? ""
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, t), e.finops.getPayables.invalidateQueries(t)]).then(() => r());
|
|
30
|
+
}, 500);
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
onError: (r) => {
|
|
34
|
+
a.error(l(o, r));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
95
37
|
};
|
|
96
38
|
export {
|
|
97
|
-
|
|
39
|
+
v as useRejectApprovalRequest
|
|
98
40
|
};
|
|
@@ -1,14 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useMoniteContext as u } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as m } from "./index121.js";
|
|
3
|
+
import { useLingui as d } from "@lingui/react";
|
|
4
|
+
import { toast as a } from "react-hot-toast";
|
|
5
|
+
const g = (i, p, t, n) => {
|
|
6
|
+
const {
|
|
7
|
+
api: e,
|
|
8
|
+
queryClient: o
|
|
9
|
+
} = u(), {
|
|
10
|
+
i18n: r
|
|
11
|
+
} = d();
|
|
12
|
+
return e.finops.postApprovalRequestsIdApprove.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
approval_request_id: i
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: () => (e.finops.getApprovalRequests.invalidateQueries(o), a.success(r._('Payable "{document_id}" has been approved', {
|
|
18
|
+
document_id: n ?? "document id is unknown"
|
|
19
|
+
})), p?.(t ?? ""), new Promise((s) => {
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
22
|
+
parameters: {
|
|
23
|
+
path: {
|
|
24
|
+
payable_id: t ?? ""
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, o), e.finops.getPayables.invalidateQueries(o)]).then(() => s());
|
|
28
|
+
}, 500);
|
|
29
|
+
})),
|
|
30
|
+
onError: (s) => {
|
|
31
|
+
a.error(m(r, s));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
11
34
|
};
|
|
12
35
|
export {
|
|
13
|
-
|
|
36
|
+
g as useApproveApprovalRequest
|
|
14
37
|
};
|