@tesouro/embedded-components-react 0.2.82 → 0.2.83
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 +20 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +18 -18
- 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 +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1271 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +7 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +72 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +11 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +150 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +43 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +38 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +113 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +191 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +30 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +110 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +133 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +22 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +183 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +11 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +48 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +5 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +86 -29
- 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 +6 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +41 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +45 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +390 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +100 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +6 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +7 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +7 -47
- 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 +214 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +12 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +24 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +90 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +96 -389
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +11 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +11 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +19 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +21 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +2 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +21 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +27 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +116 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +70 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +58 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +398 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +69 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +407 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +50 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +34 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +54 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +344 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +2 -32
- 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 +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +14 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +14 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +20 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +15 -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 +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +247 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +179 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +40 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +58 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +49 -247
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +29 -182
- 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 +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +43 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +27 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +5 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +75 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +22 -20
- 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 +54 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +27 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +39 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +57 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +31 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +113 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +21 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +44 -14
- 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 +51 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +487 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +167 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +72 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +42 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +62 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +96 -44
- 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 +104 -483
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +83 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +8 -8
- 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 +63 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +17 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +41 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +13 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +80 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +39 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +120 -182
- 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 +2 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +95 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +94 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +191 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +159 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +27 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +27 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +78 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +63 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +42 -16
- 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 +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +178 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +102 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +80 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +282 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +48 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +15 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +81 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +221 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +37 -6
- 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 +149 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +90 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +72 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +9 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +21 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +17 -21
- 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 +17 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +168 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +134 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +157 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +18 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +67 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +57 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +6 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +57 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +22 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +32 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +32 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +43 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +32 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +6 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +104 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +21 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +33 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +55 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +23 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +66 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +93 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +11 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +255 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +7 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +50 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +71 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +34 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +94 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +14 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +21 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +11 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +65 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +14 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +20 -66
- 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 +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +65 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +21 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +4 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +126 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +9 -13
- 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 +31 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +85 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +105 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +112 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +66 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +39 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +65 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +44 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +25 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +20 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +38 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +80 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +1 -1
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +42 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +35 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +14 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +49 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +56 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +30 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +48 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +47 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +39 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +72 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +84 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +51 -30
- 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 +50 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +48 -35
- 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 +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2741 -2879
- 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 +20 -20
- package/package.json +1 -1
|
@@ -1,170 +1,90 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as d, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useForm as N, FormProvider as F } from "react-hook-form";
|
|
3
|
+
import { useLingui as I } from "@lingui/react";
|
|
4
|
+
import { useId as P, useMemo as z, useCallback as L } from "react";
|
|
5
|
+
import { zodResolver as U } from "@hookform/resolvers/zod";
|
|
6
|
+
import { Button as y } from "./index84.js";
|
|
7
|
+
import { getAddressValidationSchema as j } from "./index232.js";
|
|
8
|
+
import "./index57.js";
|
|
9
|
+
import { toast as p } from "react-hot-toast";
|
|
10
|
+
import "date-fns";
|
|
11
|
+
import { getCounterpartName as k } from "./index7.js";
|
|
12
|
+
import { useUpdateCounterpartAddress as D } from "./index287.js";
|
|
13
|
+
import { useCreateCounterpartAddress as T } from "./index396.js";
|
|
14
|
+
import { LoadingSpinner as V } from "./index133.js";
|
|
15
|
+
import { CounterpartAddressFormContent as B } from "./index290.js";
|
|
16
|
+
const tt = ({
|
|
17
|
+
counterpartId: c,
|
|
18
|
+
isStandalone: C,
|
|
19
|
+
address: t,
|
|
20
|
+
customerType: u,
|
|
21
|
+
handleClose: h,
|
|
22
|
+
onUpdate: i,
|
|
23
|
+
onCreate: n
|
|
17
24
|
}) => {
|
|
18
25
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
getAmountLabel: S
|
|
27
|
-
} = R({
|
|
28
|
-
approvalPolicy: d
|
|
26
|
+
i18n: r
|
|
27
|
+
} = I(), S = `counterpart-address-form-${P()}`, g = !!t, {
|
|
28
|
+
mutate: f,
|
|
29
|
+
isPending: x
|
|
30
|
+
} = D({
|
|
31
|
+
counterpartId: c,
|
|
32
|
+
addressId: t?.id ?? ""
|
|
29
33
|
}), {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
mutate: w,
|
|
35
|
+
isPending: A
|
|
36
|
+
} = T(), o = x || A, v = z(() => ({
|
|
37
|
+
line1: t?.line1 ?? "",
|
|
38
|
+
line2: t?.line2 ?? "",
|
|
39
|
+
city: t?.city ?? "",
|
|
40
|
+
state: t?.state ?? "",
|
|
41
|
+
country: t?.country ?? "US",
|
|
42
|
+
postalCode: t?.postal_code ?? ""
|
|
43
|
+
}), [t]), {
|
|
44
|
+
resetField: e,
|
|
45
|
+
...a
|
|
46
|
+
} = N({
|
|
47
|
+
resolver: U(j(r, u === "vendor")),
|
|
48
|
+
defaultValues: v
|
|
49
|
+
}), _ = L((l) => {
|
|
50
|
+
l.preventDefault(), l.stopPropagation(), a.handleSubmit((s) => {
|
|
51
|
+
const b = {
|
|
52
|
+
line1: s.line1 ?? "",
|
|
53
|
+
line2: s.line2,
|
|
54
|
+
city: s.city ?? "",
|
|
55
|
+
state: s.state ?? "",
|
|
56
|
+
country: s.country,
|
|
57
|
+
postal_code: s.postalCode ?? ""
|
|
58
|
+
};
|
|
59
|
+
return t ? f(b, {
|
|
60
|
+
onSuccess: () => {
|
|
61
|
+
p.success(r._("Address has been updated.")), i && i();
|
|
62
|
+
}
|
|
63
|
+
}) : w({
|
|
64
|
+
path: {
|
|
65
|
+
counterpart_id: c
|
|
66
|
+
},
|
|
67
|
+
body: b
|
|
68
|
+
}, {
|
|
69
|
+
onSuccess: () => {
|
|
70
|
+
p.success(r._("Address has been added.")), n && n();
|
|
57
71
|
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
break;
|
|
74
|
-
case "counterpart_id":
|
|
75
|
-
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
76
|
-
flexWrap: "wrap"
|
|
77
|
-
}, children: W?.data.map((n) => /* @__PURE__ */ e(w, { label: $(n) }, n.id)) });
|
|
78
|
-
break;
|
|
79
|
-
case "amount":
|
|
80
|
-
p = /* @__PURE__ */ e("p", { children: S(i.amount?.value ?? [], i.amount?.currency ?? "EUR") });
|
|
81
|
-
break;
|
|
82
|
-
default:
|
|
83
|
-
p = r;
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
label: l,
|
|
88
|
-
value: p
|
|
89
|
-
};
|
|
90
|
-
}), v = t && Object.keys(t)?.map((r) => {
|
|
91
|
-
if (!t[r]) return null;
|
|
92
|
-
switch (r) {
|
|
93
|
-
case "single_user":
|
|
94
|
-
return {
|
|
95
|
-
label: b(r),
|
|
96
|
-
value: /* @__PURE__ */ e(g, { userId: t[r].userId })
|
|
97
|
-
};
|
|
98
|
-
case "users_from_list":
|
|
99
|
-
return {
|
|
100
|
-
label: b(r, t[r].count),
|
|
101
|
-
value: /* @__PURE__ */ e(c, { direction: "column", gap: 1, sx: {
|
|
102
|
-
flexWrap: "wrap"
|
|
103
|
-
}, children: t[r].userIds?.map((l) => /* @__PURE__ */ e(g, { userId: l }, l)) })
|
|
104
|
-
};
|
|
105
|
-
case "roles_from_list":
|
|
106
|
-
return {
|
|
107
|
-
label: b(r),
|
|
108
|
-
value: /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
109
|
-
flexWrap: "wrap"
|
|
110
|
-
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
-
};
|
|
112
|
-
case "approval_chain":
|
|
113
|
-
return {
|
|
114
|
-
label: b(r),
|
|
115
|
-
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
-
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
-
/* @__PURE__ */ s(F, { children: [
|
|
122
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
-
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
-
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
-
} }) }),
|
|
128
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
-
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
-
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
-
] }) }),
|
|
133
|
-
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
-
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
-
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
-
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
137
|
-
] }) }),
|
|
138
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Approval flow") }),
|
|
139
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: a._("Who needs to approve the document and how:") }),
|
|
140
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
141
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
142
|
-
/* @__PURE__ */ e(o, { children: a._("Approval type") }),
|
|
143
|
-
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
-
] }) }),
|
|
145
|
-
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
-
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
-
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
-
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
149
|
-
] }) })
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ e(N, { primaryButton: {
|
|
152
|
-
label: a._("Edit"),
|
|
153
|
-
onClick: () => P(!0)
|
|
154
|
-
}, deleteButton: {
|
|
155
|
-
onClick: () => {
|
|
156
|
-
y.mutate({
|
|
157
|
-
path: {
|
|
158
|
-
approval_policy_id: d.id
|
|
159
|
-
}
|
|
160
|
-
}, {
|
|
161
|
-
onSuccess: () => T?.onClose?.()
|
|
162
|
-
});
|
|
163
|
-
},
|
|
164
|
-
isLoading: y.isPending
|
|
165
|
-
} })
|
|
166
|
-
] });
|
|
72
|
+
});
|
|
73
|
+
})(l);
|
|
74
|
+
}, [p, f, w, k, i, n, a.handleSubmit, r]);
|
|
75
|
+
return /* @__PURE__ */ d(F, { resetField: e, ...a, children: /* @__PURE__ */ m("form", { id: S, onSubmit: _, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
|
|
76
|
+
/* @__PURE__ */ d(B, { hasExistingAddress: g, isLoading: o, isStandalone: C, customerType: u }),
|
|
77
|
+
/* @__PURE__ */ m("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
78
|
+
/* @__PURE__ */ d(y, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
|
|
79
|
+
e("line1"), e("line2"), e("city"), e("state"), e("postalCode"), e("country"), h();
|
|
80
|
+
}, children: r._("Cancel") }),
|
|
81
|
+
/* @__PURE__ */ m(y, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
|
|
82
|
+
o && /* @__PURE__ */ d(V, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
83
|
+
r._("Save")
|
|
84
|
+
] })
|
|
85
|
+
] })
|
|
86
|
+
] }) });
|
|
167
87
|
};
|
|
168
88
|
export {
|
|
169
|
-
|
|
89
|
+
tt as CounterpartAddressForm
|
|
170
90
|
};
|
|
@@ -3,7 +3,7 @@ import { useGetPayableCounterpart as Fe } from "./index16.js";
|
|
|
3
3
|
import { usePayableDetailsThemeProps as z } from "./index17.js";
|
|
4
4
|
import { useMemo as Be, useState as Ie, useRef as Se, useEffect as v } from "react";
|
|
5
5
|
import { useMoniteContext as Pe } from "./index57.js";
|
|
6
|
-
import { useUserPermissions as Ae } from "./
|
|
6
|
+
import { useUserPermissions as Ae } from "./index130.js";
|
|
7
7
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
8
8
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
9
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -13,7 +13,7 @@ import { Scope as ke } from "../../shared/data-access/dist/lib/scopes.js";
|
|
|
13
13
|
import { useLingui as Ne } from "@lingui/react";
|
|
14
14
|
import "react-hot-toast";
|
|
15
15
|
import { PayableLineItemsForm as Ve } from "./index445.js";
|
|
16
|
-
import { prepareDefaultValues as H, calculateTotalsForPayable as Re, findDefaultBankAccount as Me, isFieldRequired as p, prepareSubmit as qe } from "./
|
|
16
|
+
import { prepareDefaultValues as H, calculateTotalsForPayable as Re, findDefaultBankAccount as Me, isFieldRequired as p, prepareSubmit as qe } from "./index314.js";
|
|
17
17
|
import { usePayableDetailsForm as Ge } from "./index446.js";
|
|
18
18
|
import { getPayableDetailsFormSchema as We, isFieldRequiredByValidations as I } from "./index447.js";
|
|
19
19
|
import { ScopedCssBaselineContainerClassName as Oe } from "./index104.js";
|
|
@@ -31,7 +31,7 @@ import "./index85.js";
|
|
|
31
31
|
import { useForm as Ue, useFormState as Ee, FormProvider as Qe, Controller as x } from "react-hook-form";
|
|
32
32
|
import "@hookform/resolvers/zod";
|
|
33
33
|
import "zod";
|
|
34
|
-
import "./
|
|
34
|
+
import "./index330.js";
|
|
35
35
|
import "date-fns";
|
|
36
36
|
import "@radix-ui/react-checkbox";
|
|
37
37
|
import "@radix-ui/react-select";
|
|
@@ -50,14 +50,14 @@ import { useRootElements as at } from "./index92.js";
|
|
|
50
50
|
import { useOptionalFields as ot } from "./index59.js";
|
|
51
51
|
import { useProductCurrencyGroups as it } from "./index448.js";
|
|
52
52
|
import { getBankAccountName as nt } from "./index449.js";
|
|
53
|
-
import { safeZodResolver as st } from "./
|
|
53
|
+
import { safeZodResolver as st } from "./index265.js";
|
|
54
54
|
import { MoniteCurrency as lt } from "./index450.js";
|
|
55
55
|
import "react-dom";
|
|
56
56
|
import "@mui/x-data-grid";
|
|
57
57
|
import "./index101.js";
|
|
58
58
|
import "./index451.js";
|
|
59
59
|
import { TagsAutocompleteInput as dt } from "./index452.js";
|
|
60
|
-
import { classNames as ct } from "./
|
|
60
|
+
import { classNames as ct } from "./index172.js";
|
|
61
61
|
import Z from "@mui/icons-material/Add";
|
|
62
62
|
import ut from "@mui/icons-material/DeleteForever";
|
|
63
63
|
import { DatePicker as X } from "@mui/x-date-pickers";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGetPayableCounterpart as Ge } from "./index16.js";
|
|
2
|
-
import { prepareLineItemSubmit as B } from "./
|
|
3
|
-
import { usePaymentHandler as Te } from "./
|
|
2
|
+
import { prepareLineItemSubmit as B } from "./index314.js";
|
|
3
|
+
import { usePaymentHandler as Te } from "./index397.js";
|
|
4
4
|
import { usePayButtonVisibility as Fe } from "./index19.js";
|
|
5
5
|
import { useGetPayableById as ke } from "./index21.js";
|
|
6
6
|
import { useGetPayableLineItems as xe } from "./index22.js";
|
|
@@ -16,9 +16,9 @@ import { useForceRejectPayable as Ze } from "./index31.js";
|
|
|
16
16
|
import { useForceApprovePayable as $e } from "./index32.js";
|
|
17
17
|
import { useReopenPayable as ea } from "./index33.js";
|
|
18
18
|
import { useDeletePayable as aa } from "./index34.js";
|
|
19
|
-
import { useRejectApprovalRequest as ta } from "./
|
|
20
|
-
import { useApproveApprovalRequest as ia } from "./
|
|
21
|
-
import { isPayableInOCRProcessing as ra } from "./
|
|
19
|
+
import { useRejectApprovalRequest as ta } from "./index398.js";
|
|
20
|
+
import { useApproveApprovalRequest as ia } from "./index399.js";
|
|
21
|
+
import { isPayableInOCRProcessing as ra } from "./index310.js";
|
|
22
22
|
import { useMoniteContext as sa } from "./index57.js";
|
|
23
23
|
import { useCurrencies as oa } from "./index58.js";
|
|
24
24
|
import { useState as na, useEffect as da, useCallback as X, useMemo as pa } from "react";
|
|
@@ -29,7 +29,7 @@ import "react-dom";
|
|
|
29
29
|
import "@mui/x-data-grid";
|
|
30
30
|
import { useEntityUserByAuthToken as ma } from "./index75.js";
|
|
31
31
|
import { usePayablePaymentIntentsAndRecords as ua } from "./index79.js";
|
|
32
|
-
import { useUserPermissions as la } from "./
|
|
32
|
+
import { useUserPermissions as la } from "./index130.js";
|
|
33
33
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
34
34
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
35
35
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -2,13 +2,13 @@ import { jsx as r, jsxs as f, Fragment as h } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import { useState as _, useMemo as A } from "react";
|
|
3
3
|
import { toast as s } from "react-hot-toast";
|
|
4
4
|
import { useMoniteContext as I } from "./index57.js";
|
|
5
|
-
import { getAPIErrorMessage as B } from "./
|
|
5
|
+
import { getAPIErrorMessage as B } from "./index118.js";
|
|
6
6
|
import { useLingui as S } from "@lingui/react";
|
|
7
7
|
import "./index92.js";
|
|
8
8
|
import { useFileInput as E } from "./index61.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "@mui/x-data-grid";
|
|
11
|
-
import { CenteredContentBox as M } from "./
|
|
11
|
+
import { CenteredContentBox as M } from "./index224.js";
|
|
12
12
|
import T from "@mui/icons-material/AttachFile";
|
|
13
13
|
import j from "@mui/icons-material/CloudUploadOutlined";
|
|
14
14
|
import { useTheme as k, alpha as $, CircularProgress as z, Box as g, Typography as a, Button as L } from "@mui/material";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r, Fragment as z } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as L } from "react";
|
|
3
3
|
import { getCounterpartName as T } from "./index7.js";
|
|
4
|
-
import { PayableStatusChip as h } from "./
|
|
4
|
+
import { PayableStatusChip as h } from "./index145.js";
|
|
5
5
|
import { useCounterpartById as W } from "./index70.js";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
7
|
import "./index57.js";
|
|
8
8
|
import "react-hot-toast";
|
|
9
9
|
import { useLingui as q } from "@lingui/react";
|
|
10
|
-
import { DropdownMenu as G } from "./
|
|
11
|
-
import { FullScreenModalHeader as J } from "./
|
|
10
|
+
import { DropdownMenu as G } from "./index453.js";
|
|
11
|
+
import { FullScreenModalHeader as J } from "./index454.js";
|
|
12
12
|
import { Box as K, Button as C } from "@mui/material";
|
|
13
13
|
import { Wallet as Q } from "lucide-react";
|
|
14
|
-
import { isPayableInOCRProcessing as U } from "./
|
|
15
|
-
import { PayableDetailsCancelModal as V } from "./
|
|
16
|
-
import { isBillOverdue as X } from "./
|
|
14
|
+
import { isPayableInOCRProcessing as U } from "./index310.js";
|
|
15
|
+
import { PayableDetailsCancelModal as V } from "./index455.js";
|
|
16
|
+
import { isBillOverdue as X } from "./index150.js";
|
|
17
17
|
const fe = ({
|
|
18
18
|
payable: o,
|
|
19
19
|
permissions: a,
|
|
@@ -11,13 +11,13 @@ import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
|
11
11
|
import { useLedgerAccounts as de } from "./index20.js";
|
|
12
12
|
import { useLingui as Q } from "@lingui/react";
|
|
13
13
|
import "react-hot-toast";
|
|
14
|
-
import { isPayableInOCRProcessing as ce } from "./
|
|
15
|
-
import { usePayableDetailsInfo as se } from "./
|
|
14
|
+
import { isPayableInOCRProcessing as ce } from "./index310.js";
|
|
15
|
+
import { usePayableDetailsInfo as se } from "./index456.js";
|
|
16
16
|
import { ScopedCssBaselineContainerClassName as M } from "./index104.js";
|
|
17
|
-
import { UserDisplayCell as ue } from "./
|
|
17
|
+
import { UserDisplayCell as ue } from "./index457.js";
|
|
18
18
|
import { getCounterpartName as he } from "./index7.js";
|
|
19
|
-
import { PayableApprovalFlowSection as me } from "./
|
|
20
|
-
import { isFieldRequired as c } from "./
|
|
19
|
+
import { PayableApprovalFlowSection as me } from "./index458.js";
|
|
20
|
+
import { isFieldRequired as c } from "./index314.js";
|
|
21
21
|
import { MoniteScopedProviders as pe } from "./index83.js";
|
|
22
22
|
import { useCurrencies as _e } from "./index58.js";
|
|
23
23
|
import { useOptionalFields as ye } from "./index59.js";
|
|
@@ -26,9 +26,9 @@ import { useEntityUserById as ge } from "./index75.js";
|
|
|
26
26
|
import { useApprovalPolicyById as be } from "./index76.js";
|
|
27
27
|
import { dateStringToLocalDate as k } from "./index96.js";
|
|
28
28
|
import { StyledLabelTableCell as s } from "./index440.js";
|
|
29
|
-
import { CenteredContentBox as ve } from "./
|
|
30
|
-
import { TagsModal as xe } from "./
|
|
31
|
-
import { classNames as O } from "./
|
|
29
|
+
import { CenteredContentBox as ve } from "./index224.js";
|
|
30
|
+
import { TagsModal as xe } from "./index459.js";
|
|
31
|
+
import { classNames as O } from "./index172.js";
|
|
32
32
|
import Ce from "@mui/icons-material/CachedOutlined";
|
|
33
33
|
import Te from "@mui/icons-material/Edit";
|
|
34
34
|
import we from "@mui/icons-material/WarningAmberRounded";
|
|
@@ -2,9 +2,9 @@ import { jsx as o, jsxs as h, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import { CounterpartDetails as b } from "./index2.js";
|
|
3
3
|
import { CustomersTable as k } from "./index6.js";
|
|
4
4
|
import { VendorsTable as v } from "./index5.js";
|
|
5
|
-
import { CreateCounterpartDialog as w } from "./
|
|
5
|
+
import { CreateCounterpartDialog as w } from "./index151.js";
|
|
6
6
|
import { MoniteScopedProviders as x } from "./index83.js";
|
|
7
|
-
import { useUserPermissions as M } from "./
|
|
7
|
+
import { useUserPermissions as M } from "./index130.js";
|
|
8
8
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
9
9
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
10
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -12,7 +12,7 @@ import "@tanstack/react-query";
|
|
|
12
12
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
13
13
|
import { Scope as l } from "../../shared/data-access/dist/lib/scopes.js";
|
|
14
14
|
import { useState as u, useCallback as c } from "react";
|
|
15
|
-
import { AccessRestriction as R } from "./
|
|
15
|
+
import { AccessRestriction as R } from "./index131.js";
|
|
16
16
|
import { Button as y } from "./index84.js";
|
|
17
17
|
import "clsx";
|
|
18
18
|
import "tailwind-merge";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMoniteContext as _ } from "./index57.js";
|
|
2
2
|
import { useLingui as l } from "@lingui/react";
|
|
3
|
-
import { getAPIErrorMessage as b } from "./
|
|
3
|
+
import { getAPIErrorMessage as b } from "./index118.js";
|
|
4
4
|
import { toast as s } from "react-hot-toast";
|
|
5
5
|
import { useUpdatePayable as m } from "./index25.js";
|
|
6
6
|
const A = ({
|
|
@@ -1,4 +1,65 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = (e, r) => {
|
|
2
|
+
switch (r) {
|
|
3
|
+
case "draft":
|
|
4
|
+
return e._("Draft");
|
|
5
|
+
case "issued":
|
|
6
|
+
return e._("Issued");
|
|
7
|
+
case "accepted":
|
|
8
|
+
return e._("Accepted");
|
|
9
|
+
case "expired":
|
|
10
|
+
return e._("Expired");
|
|
11
|
+
case "declined":
|
|
12
|
+
return e._("Declined");
|
|
13
|
+
case "recurring":
|
|
14
|
+
return e._("Recurring");
|
|
15
|
+
case "partially_paid":
|
|
16
|
+
return e._("Partially paid");
|
|
17
|
+
case "paid":
|
|
18
|
+
return e._("Paid");
|
|
19
|
+
case "overdue":
|
|
20
|
+
return e._("Overdue");
|
|
21
|
+
case "uncollectible":
|
|
22
|
+
return e._("Uncollectible");
|
|
23
|
+
case "canceled":
|
|
24
|
+
return e._("Canceled");
|
|
25
|
+
case "deleted":
|
|
26
|
+
return e._("Deleted");
|
|
27
|
+
default:
|
|
28
|
+
throw new Error(`Unknown status ${JSON.stringify(r)}`);
|
|
29
|
+
}
|
|
30
|
+
}, a = (e, r) => {
|
|
31
|
+
switch (r) {
|
|
32
|
+
case "active":
|
|
33
|
+
return e._("Active");
|
|
34
|
+
case "paused":
|
|
35
|
+
return e._("Paused");
|
|
36
|
+
case "canceled":
|
|
37
|
+
return e._("Cancelled");
|
|
38
|
+
case "completed":
|
|
39
|
+
return e._("Complete");
|
|
40
|
+
default:
|
|
41
|
+
throw new Error(`Unknown status ${JSON.stringify(r)}`);
|
|
42
|
+
}
|
|
43
|
+
}, n = (e, r) => {
|
|
44
|
+
switch (r) {
|
|
45
|
+
case "pending":
|
|
46
|
+
return e._("Scheduled");
|
|
47
|
+
case "skipped":
|
|
48
|
+
return e._("Skipped");
|
|
49
|
+
case "canceled":
|
|
50
|
+
return e._("Cancelled");
|
|
51
|
+
case "issue_failed":
|
|
52
|
+
return e._("Issue failed");
|
|
53
|
+
case "send_failed":
|
|
54
|
+
return e._("Send failed");
|
|
55
|
+
case "completed":
|
|
56
|
+
return e._("Complete");
|
|
57
|
+
default:
|
|
58
|
+
throw new Error(`Unknown status ${JSON.stringify(r)}`);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
2
61
|
export {
|
|
3
|
-
|
|
62
|
+
n as getCommonRecurrenceIterationStatusLabel,
|
|
63
|
+
a as getCommonRecurrenceStatusLabel,
|
|
64
|
+
t as getCommonStatusLabel
|
|
4
65
|
};
|
|
@@ -1,98 +1,23 @@
|
|
|
1
1
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
groupStatus: "all",
|
|
13
|
-
apiStatuses: [],
|
|
14
|
-
representativeStatus: null
|
|
15
|
-
}, {
|
|
16
|
-
groupStatus: "draft",
|
|
17
|
-
apiStatuses: ["draft", "new"],
|
|
18
|
-
representativeStatus: "draft"
|
|
19
|
-
}, {
|
|
20
|
-
groupStatus: "pending_approval",
|
|
21
|
-
apiStatuses: ["approve_in_progress"],
|
|
22
|
-
representativeStatus: "approve_in_progress"
|
|
23
|
-
}, {
|
|
24
|
-
groupStatus: "rejected",
|
|
25
|
-
apiStatuses: ["rejected"],
|
|
26
|
-
representativeStatus: "rejected"
|
|
27
|
-
}, {
|
|
28
|
-
groupStatus: "ready_to_pay",
|
|
29
|
-
apiStatuses: ["waiting_to_be_paid", "partially_paid"],
|
|
30
|
-
representativeStatus: "waiting_to_be_paid"
|
|
31
|
-
}, {
|
|
32
|
-
groupStatus: "paid",
|
|
33
|
-
apiStatuses: ["paid"],
|
|
34
|
-
representativeStatus: "paid"
|
|
35
|
-
}, {
|
|
36
|
-
groupStatus: "cancelled",
|
|
37
|
-
apiStatuses: ["canceled"],
|
|
38
|
-
representativeStatus: "canceled"
|
|
39
|
-
}], O = ({
|
|
40
|
-
onChangeFilter: o,
|
|
41
|
-
selectedStatus: s
|
|
2
|
+
import "./index57.js";
|
|
3
|
+
import "@tanstack/react-query";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { useEntityUserById as m } from "./index75.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import "@lingui/react";
|
|
9
|
+
import { Skeleton as e } from "@mui/material";
|
|
10
|
+
const u = ({
|
|
11
|
+
id: r
|
|
42
12
|
}) => {
|
|
43
13
|
const {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} = x(), {
|
|
51
|
-
containerRef: S,
|
|
52
|
-
handleMouseDown: f,
|
|
53
|
-
handleMouseLeave: v,
|
|
54
|
-
handleMouseUp: _,
|
|
55
|
-
handleMouseMove: g
|
|
56
|
-
} = b();
|
|
57
|
-
if (n)
|
|
58
|
-
return /* @__PURE__ */ i("div", { className: "ttw:flex ttw:gap-2", children: Array.from({
|
|
59
|
-
length: 6
|
|
60
|
-
}).map((t, u) => /* @__PURE__ */ i(A, { className: "ttw:h-16.5 ttw:w-42 ttw:rounded-xl ttw:animate-pulse" }, u)) });
|
|
61
|
-
const d = r?.data ?? [], w = c.map(({
|
|
62
|
-
groupStatus: t,
|
|
63
|
-
apiStatuses: u
|
|
64
|
-
}) => {
|
|
65
|
-
if (t === "all")
|
|
66
|
-
return {
|
|
67
|
-
status: "all",
|
|
68
|
-
count: d.reduce((e, a) => e + a.count, 0),
|
|
69
|
-
sum_total_amount: d.reduce((e, a) => e + (a.sum_total_amount ?? 0), 0)
|
|
70
|
-
};
|
|
71
|
-
const p = d.filter((e) => u.includes(e.status));
|
|
72
|
-
return {
|
|
73
|
-
status: t,
|
|
74
|
-
count: p.reduce((e, a) => e + a.count, 0),
|
|
75
|
-
sum_total_amount: p.reduce((e, a) => e + (a.sum_total_amount ?? 0), 0)
|
|
76
|
-
};
|
|
77
|
-
}).filter((t) => t.status === "all" || t.count > 0), h = (t) => {
|
|
78
|
-
o("status", t === "all" ? null : t);
|
|
79
|
-
}, y = (t) => m(t, "USD") ?? "—";
|
|
80
|
-
return /* @__PURE__ */ i("div", { ref: S, className: "ttw:flex ttw:gap-2 ttw:mb-6 ttw:overflow-x-auto ttw:[scrollbar-width:none] ttw:[&::-webkit-scrollbar]:hidden ttw:cursor-grab ttw:select-none", onMouseDown: f, onMouseLeave: v, onMouseUp: _, onMouseMove: g, children: w.map((t) => {
|
|
81
|
-
const u = c.find((p) => p.groupStatus === t.status);
|
|
82
|
-
return /* @__PURE__ */ i(D, { allItemsText: l._("All bills"), isAllStatus: t.status === "all", data: t.status === "all" ? t.count ?? 0 : t.sum_total_amount ?? 0, amountOfItems: t.status !== "all" ? t.count ?? 0 : void 0, selected: s === t.status, onClick: () => h(t.status), formatAmount: y, statusChip: u?.representativeStatus ? /* @__PURE__ */ i(C, { status: u.representativeStatus }) : void 0 }, t.status);
|
|
83
|
-
}) });
|
|
84
|
-
}, k = () => {
|
|
85
|
-
const {
|
|
86
|
-
api: o,
|
|
87
|
-
queryClient: s
|
|
88
|
-
} = M(), l = o.finops.getPayablesAnalytics.useQuery({}, {
|
|
89
|
-
enabled: !!s,
|
|
90
|
-
refetchInterval: 3e3
|
|
91
|
-
}), r = U(l.data?.data), n = L(void 0);
|
|
92
|
-
return P(() => {
|
|
93
|
-
r !== void 0 && n.current !== void 0 && r !== n.current && s && o.finops.getPayables.invalidateQueries(s), n.current = r;
|
|
94
|
-
}, [r, o, s]), l;
|
|
14
|
+
data: t,
|
|
15
|
+
isLoading: o
|
|
16
|
+
} = m(r);
|
|
17
|
+
return /* @__PURE__ */ i("span", { children: o ? /* @__PURE__ */ i(e, { animation: "wave", height: 10, width: "100%", sx: {
|
|
18
|
+
minWidth: "4em"
|
|
19
|
+
} }) : !!t && `${t?.first_name || ""} ${t?.last_name || ""}` });
|
|
95
20
|
};
|
|
96
21
|
export {
|
|
97
|
-
|
|
22
|
+
u as UserCell
|
|
98
23
|
};
|