@tesouro/embedded-components-react 0.2.198 → 0.2.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -2
- package/dist/lib/InvoicingWidget.d.ts +3 -2
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/lib/monite-sdk.d.ts +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +13 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +17 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +18 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +21 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +77 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -9
- 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 +27 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +111 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +33 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +12 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +30 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +10 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +12 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +118 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +217 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +10 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +46 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +46 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +150 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +55 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +3 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +58 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +281 -273
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +82 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +361 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +117 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +6 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +20 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +13 -355
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +21 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +53 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +31 -8
- 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 +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +107 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +26 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +59 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +47 -103
- 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 +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +97 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +43 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +143 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +31 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +51 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +26 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +69 -139
- 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 +32 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +66 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +149 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +6 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +44 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +72 -111
- 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 +31 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +53 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +27 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +58 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +37 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +344 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +299 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +100 -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 +162 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +263 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +20 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +5 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +93 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +96 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +212 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +61 -60
- 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 +159 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +27 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +28 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +78 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +59 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +92 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +107 -298
- 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 +83 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +25 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +119 -258
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +47 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +117 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +111 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +43 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +197 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +68 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +16 -106
- 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 +38 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +14 -205
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +76 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +77 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +41 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +16 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +17 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +163 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +132 -10
- 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 +161 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +66 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +58 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +6 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +53 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +24 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +63 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +489 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +165 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +59 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +30 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +118 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +22 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +41 -29
- 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 +55 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +127 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +4 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +34 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +30 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +33 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +32 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +11 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +255 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +45 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +44 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +49 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +45 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +26 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +43 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +25 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +94 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +9 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +10 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +45 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +26 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +94 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +29 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +30 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +126 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +54 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +34 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +53 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +36 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +21 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +65 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +14 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +14 -16
- 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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +118 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +81 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +2 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +7 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +9 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +86 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +269 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +35 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +65 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +42 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +21 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +138 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +91 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +11 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +2 -25
- 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 +276 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +46 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +123 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +15 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +71 -44
- 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 +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +3 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +20 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +29 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -18
- 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 +43 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +35 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +13 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +51 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +92 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +75 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +9 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +54 -44
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +50 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +56 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +32 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +8 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +81 -79
- 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 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +100 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +108 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +72 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +66 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +36 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +28 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +37 -37
- 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 +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +74 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +84 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +51 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +49 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +49 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +30 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +35 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +52 -28
- 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 +81 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +20 -48
- 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 +3 -3
- 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 +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/package.json +1 -1
|
@@ -1,72 +1,66 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import { useLingui as g } from "@lingui/react";
|
|
6
|
-
import "react-dom";
|
|
1
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { getCounterpartName as m } from "./index7.js";
|
|
3
|
+
import { useCounterpartById as p } from "./index70.js";
|
|
4
|
+
import "@tanstack/react-query";
|
|
7
5
|
import "./index57.js";
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import { useLingui as u } from "@lingui/react";
|
|
9
|
+
import { Skeleton as s, Stack as c, Avatar as x, Typography as d } from "@mui/material";
|
|
10
|
+
const f = (e) => {
|
|
11
|
+
let t = 0;
|
|
12
|
+
for (let r = e.length - 1; r >= 0; r--)
|
|
13
|
+
t += e.charCodeAt(r);
|
|
14
|
+
return t % 5;
|
|
15
|
+
}, k = ({
|
|
16
|
+
name: e,
|
|
17
|
+
country: t,
|
|
18
|
+
city: r,
|
|
19
|
+
isLoading: i
|
|
20
20
|
}) => {
|
|
21
21
|
const {
|
|
22
|
-
i18n:
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
description: e.description,
|
|
49
|
-
...e.measureUnitId ? {
|
|
50
|
-
measure_unit_id: e.measureUnitId
|
|
51
|
-
} : {}
|
|
52
|
-
}, {
|
|
53
|
-
onSuccess: (b) => {
|
|
54
|
-
d?.(b);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
})(a);
|
|
58
|
-
}, [p, m, d, t.handleSubmit]);
|
|
59
|
-
return /* @__PURE__ */ i(C, { ...t, children: /* @__PURE__ */ c("form", { id: f, onSubmit: y, 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: [
|
|
60
|
-
/* @__PURE__ */ i(I, { isLoading: n, isProduct: r?.type === "product", isEditMode: !0 }),
|
|
61
|
-
/* @__PURE__ */ c("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
62
|
-
/* @__PURE__ */ i(u, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", onClick: l, children: o._("Cancel") }),
|
|
63
|
-
/* @__PURE__ */ c(u, { type: "submit", className: "ttw:flex-1", disabled: n || !t.formState.isDirty, children: [
|
|
64
|
-
n && /* @__PURE__ */ i(S, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
65
|
-
o._("Save")
|
|
22
|
+
i18n: h
|
|
23
|
+
} = u();
|
|
24
|
+
!e && !i && (e = h._("Unspecified"));
|
|
25
|
+
const n = e.split(" "), l = (n.length >= 2 ? n[0][0] + n[n.length - 1][0] : e[0] || "").toUpperCase();
|
|
26
|
+
return /* @__PURE__ */ o(c, { className: "Monite-CounterpartCell", direction: "row", alignItems: "center", spacing: 1.5, justifyContent: "stretch", sx: {
|
|
27
|
+
maxWidth: "100%",
|
|
28
|
+
overflow: "hidden"
|
|
29
|
+
}, children: [
|
|
30
|
+
i ? /* @__PURE__ */ a(s, { animation: "wave", variant: "circular", width: 40, height: 40, sx: {
|
|
31
|
+
flexShrink: 0
|
|
32
|
+
} }) : /* @__PURE__ */ a(x, { className: "MuiAvatar-colored MuiAvatar-" + f(l), children: l }),
|
|
33
|
+
i || !e ? /* @__PURE__ */ a(s, { animation: "wave", height: 10, width: "100%", sx: {
|
|
34
|
+
flexShrink: 0,
|
|
35
|
+
minWidth: "4em"
|
|
36
|
+
} }) : /* @__PURE__ */ o(c, { direction: "column", alignItems: "stretch", gap: 0, sx: {
|
|
37
|
+
maxWidth: "100%",
|
|
38
|
+
flexBasis: 0,
|
|
39
|
+
flexShrink: 2,
|
|
40
|
+
flexGrow: 2,
|
|
41
|
+
overflow: "hidden"
|
|
42
|
+
}, children: [
|
|
43
|
+
/* @__PURE__ */ a(d, { variant: "body1", className: "Monite-TextOverflowContainer", children: e }),
|
|
44
|
+
t && r && /* @__PURE__ */ o(d, { variant: "body2", className: "Monite-TextOverflowContainer", children: [
|
|
45
|
+
t,
|
|
46
|
+
" • ",
|
|
47
|
+
r
|
|
66
48
|
] })
|
|
67
49
|
] })
|
|
68
|
-
] })
|
|
50
|
+
] });
|
|
51
|
+
}, A = ({
|
|
52
|
+
counterpartId: e
|
|
53
|
+
}) => {
|
|
54
|
+
const {
|
|
55
|
+
data: t,
|
|
56
|
+
isLoading: r
|
|
57
|
+
} = p(e), i = t ? m(t) : "";
|
|
58
|
+
return r ? /* @__PURE__ */ a(s, { animation: "wave", height: 26, width: "100%" }) : i ? /* @__PURE__ */ a("span", { children: i }) : /* @__PURE__ */ a("span", { style: {
|
|
59
|
+
opacity: 0.4
|
|
60
|
+
}, children: "-" });
|
|
69
61
|
};
|
|
70
62
|
export {
|
|
71
|
-
|
|
63
|
+
k as CounterPartCellByData,
|
|
64
|
+
A as CounterpartNameCellById,
|
|
65
|
+
f as calculateAvatarColorIndex
|
|
72
66
|
};
|
|
@@ -1,16 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as t, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as f } from "react";
|
|
3
|
+
import { toast as n } from "react-hot-toast";
|
|
4
|
+
import "./index57.js";
|
|
5
|
+
import { useLingui as _ } from "@lingui/react";
|
|
6
|
+
import "./index92.js";
|
|
7
|
+
import { useFileInput as z } from "./index61.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "@mui/x-data-grid";
|
|
10
|
+
import { Button as s } from "./index84.js";
|
|
11
|
+
import { Popover as D, PopoverTrigger as P, PopoverContent as k } from "./index351.js";
|
|
12
|
+
import { cn as F } from "./index100.js";
|
|
13
|
+
import { ChevronUpIcon as I, ChevronDownIcon as U, CloudUpload as j, Copy as A, Plus as E } from "lucide-react";
|
|
14
|
+
const K = ({
|
|
15
|
+
isCreateAllowed: u,
|
|
16
|
+
onCreateInvoice: h,
|
|
17
|
+
handleFileUpload: w
|
|
18
|
+
}) => {
|
|
3
19
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
20
|
+
i18n: e
|
|
21
|
+
} = _(), [c, a] = f(!1), {
|
|
22
|
+
FileInput: x,
|
|
23
|
+
openFileInput: b,
|
|
24
|
+
checkFileError: y
|
|
25
|
+
} = z(), [g, i] = f(!1), v = (l) => {
|
|
26
|
+
l.preventDefault(), i(!0);
|
|
27
|
+
}, N = (l) => {
|
|
28
|
+
l.preventDefault(), i(!1);
|
|
29
|
+
}, d = 10, C = (l) => {
|
|
30
|
+
l.preventDefault(), i(!1);
|
|
31
|
+
const o = Array.from(l.dataTransfer.files);
|
|
32
|
+
if (o.length > d) {
|
|
33
|
+
n.error(e._("You can only upload up to {fileCount} files at a time", {
|
|
34
|
+
fileCount: d
|
|
35
|
+
})), a(!1);
|
|
36
|
+
return;
|
|
9
37
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
38
|
+
o.forEach((m) => {
|
|
39
|
+
const p = y(m);
|
|
40
|
+
if (p) {
|
|
41
|
+
n.error(p);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
w(m);
|
|
45
|
+
}), a(!1);
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ t("div", { className: "Monite-Payables", children: /* @__PURE__ */ r(D, { open: c, onOpenChange: a, children: [
|
|
48
|
+
/* @__PURE__ */ t(P, { asChild: !0, children: /* @__PURE__ */ r(s, { size: "lg", disabled: !u, children: [
|
|
49
|
+
e._("Add new bill"),
|
|
50
|
+
c ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(U, {})
|
|
51
|
+
] }) }),
|
|
52
|
+
/* @__PURE__ */ r(k, { align: "end", className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6", children: [
|
|
53
|
+
/* @__PURE__ */ r("div", { className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4", onClick: (l) => {
|
|
54
|
+
l.preventDefault(), l.stopPropagation();
|
|
55
|
+
}, children: [
|
|
56
|
+
/* @__PURE__ */ r("div", { children: [
|
|
57
|
+
/* @__PURE__ */ t("h3", { className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950", children: e._("Upload bills") }),
|
|
58
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500", children: e._("Upload your bills and we'll automatically pull the details so you can review and approve.") })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ t("div", { className: F("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", g && "ttw:bg-transparent"), onDragOver: v, onDragLeave: N, onDrop: C, onClick: b, children: /* @__PURE__ */ r("div", { className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2", children: [
|
|
61
|
+
/* @__PURE__ */ t("div", { className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(j, { className: "ttw:text-white ttw:size-5" }) }),
|
|
62
|
+
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950", children: [
|
|
63
|
+
e._("Drop your files here, or"),
|
|
64
|
+
" ",
|
|
65
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline", children: e._("click to browse") })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500", children: e._("PDF, PNG or JPG (max. 20MB)") })
|
|
68
|
+
] }) }),
|
|
69
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
70
|
+
/* @__PURE__ */ t("h3", { className: "ttw:text-primary ttw:text-sm ttw:font-semibold", children: e._("Send via email") }),
|
|
71
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm", children: e._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.") })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ r("div", { className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6", children: [
|
|
74
|
+
/* @__PURE__ */ t("span", { children: e._("bills@business-banking.com") }),
|
|
75
|
+
/* @__PURE__ */ r(s, { type: "button", variant: "ghost", size: "sm", className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary", onClick: () => {
|
|
76
|
+
navigator.clipboard.writeText("bills@business-banking.com"), n.success(e._("Email address copied to clipboard"));
|
|
77
|
+
}, children: [
|
|
78
|
+
/* @__PURE__ */ t(A, {}),
|
|
79
|
+
e._("Copy")
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
83
|
+
/* @__PURE__ */ t("h3", { className: "ttw:text-sm ttw:font-semibold ttw:text-primary", children: e._("Or add bill manually") }),
|
|
84
|
+
/* @__PURE__ */ r(s, { onClick: () => {
|
|
85
|
+
a(!1), h();
|
|
86
|
+
}, className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary", children: [
|
|
87
|
+
/* @__PURE__ */ t(E, {}),
|
|
88
|
+
e._("Add new bill")
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ t(x, { "aria-label": e._("Upload payable files"), multiple: !0, onChange: (l) => {
|
|
93
|
+
const o = l.target.files;
|
|
94
|
+
o && w(o), a(!1);
|
|
95
|
+
} })
|
|
96
|
+
] })
|
|
97
|
+
] }) });
|
|
13
98
|
};
|
|
14
99
|
export {
|
|
15
|
-
|
|
100
|
+
K as CreatePayableMenu
|
|
16
101
|
};
|
|
@@ -1,14 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
function d(o) {
|
|
2
|
+
return /gradient\(/.test(o);
|
|
3
|
+
}
|
|
4
|
+
function u(o, n) {
|
|
5
|
+
o.background && (d(o.background) ? (n.backgroundImage = o.background, n.background = o.background) : (n.background = o.background, n.backgroundImage = "none"));
|
|
6
|
+
}
|
|
7
|
+
function c(o, n) {
|
|
8
|
+
o.color && (n.color = o.color);
|
|
9
|
+
}
|
|
10
|
+
function b(o, n) {
|
|
11
|
+
o.border && (n.border = o.border), o.borderRadius !== void 0 && (n.borderRadius = typeof o.borderRadius == "number" ? `${o.borderRadius}px` : o.borderRadius);
|
|
12
|
+
}
|
|
13
|
+
function g(o, n) {
|
|
14
|
+
o.fontWeight !== void 0 && (n.fontWeight = o.fontWeight);
|
|
15
|
+
}
|
|
16
|
+
function p(o, n) {
|
|
17
|
+
o.boxShadow !== void 0 && (n.boxShadow = o.boxShadow);
|
|
18
|
+
}
|
|
19
|
+
function l(o, n) {
|
|
20
|
+
if (!o.transitionDuration && !o.transitionTimingFunction && !o.transitionProperty)
|
|
21
|
+
return;
|
|
22
|
+
const a = [], t = o.transitionProperty || "all";
|
|
23
|
+
a.push(t), o.transitionDuration && a.push(o.transitionDuration), o.transitionTimingFunction && a.push(o.transitionTimingFunction), n.transition = a.join(" ");
|
|
24
|
+
}
|
|
25
|
+
function y(o) {
|
|
26
|
+
if (!o) return {};
|
|
27
|
+
const n = {};
|
|
28
|
+
return u(o, n), c(o, n), b(o, n), g(o, n), p(o, n), l(o, n), n;
|
|
29
|
+
}
|
|
30
|
+
function f(o, n) {
|
|
31
|
+
return !n || !n[o] ? {} : y(n[o]);
|
|
32
|
+
}
|
|
33
|
+
function h(o) {
|
|
34
|
+
if (!o) return {};
|
|
35
|
+
const n = {};
|
|
36
|
+
return ["primary", "secondary", "tertiary", "destructive"].forEach((a) => {
|
|
37
|
+
const t = o[a];
|
|
38
|
+
if (!t) return;
|
|
39
|
+
const i = `--ttw-btn-payables-${a}`;
|
|
40
|
+
t.background && (n[`${i}-bg`] = t.background), t.color && (n[`${i}-color`] = t.color), t.border && (n[`${i}-border`] = t.border), t.borderRadius !== void 0 && (n[`${i}-radius`] = typeof t.borderRadius == "number" ? `${t.borderRadius}px` : t.borderRadius), t.fontWeight !== void 0 && (n[`${i}-weight`] = String(t.fontWeight)), t.boxShadow && (n[`${i}-shadow`] = t.boxShadow), t.transitionProperty && (n[`${i}-transition-property`] = t.transitionProperty), t.transitionDuration && (n[`${i}-transition-duration`] = t.transitionDuration), t.transitionTimingFunction && (n[`${i}-transition-timing`] = t.transitionTimingFunction), ["hover", "active", "focus", "disabled"].forEach((s) => {
|
|
41
|
+
const r = t[s];
|
|
42
|
+
if (!r) return;
|
|
43
|
+
const e = `${i}-${s}`;
|
|
44
|
+
r.background && (n[`${e}-bg`] = r.background), r.color && (n[`${e}-color`] = r.color), r.border && (n[`${e}-border`] = r.border), r.boxShadow && (n[`${e}-shadow`] = r.boxShadow);
|
|
45
|
+
});
|
|
46
|
+
}), n;
|
|
47
|
+
}
|
|
12
48
|
export {
|
|
13
|
-
|
|
49
|
+
u as applyBackgroundStyles,
|
|
50
|
+
b as applyBorderStyles,
|
|
51
|
+
c as applyColorStyles,
|
|
52
|
+
p as applyShadowStyles,
|
|
53
|
+
l as applyTransitionStyles,
|
|
54
|
+
g as applyTypographyStyles,
|
|
55
|
+
h as generatePayablesButtonCssVars,
|
|
56
|
+
f as getButtonStateStyles,
|
|
57
|
+
y as getButtonStyles,
|
|
58
|
+
d as isGradient
|
|
14
59
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as w, jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { RECURRENCE_STATUS_ICON as g } from "./
|
|
3
|
-
import { getCommonRecurrenceStatusLabel as m } from "./
|
|
2
|
+
import { RECURRENCE_STATUS_ICON as g } from "./index224.js";
|
|
3
|
+
import { getCommonRecurrenceStatusLabel as m } from "./index289.js";
|
|
4
4
|
import "date-fns";
|
|
5
|
-
import { Badge as l } from "./
|
|
5
|
+
import { Badge as l } from "./index221.js";
|
|
6
6
|
import { cn as p } from "./index100.js";
|
|
7
7
|
import { useLingui as u } from "@lingui/react";
|
|
8
8
|
import { cva as b } from "class-variance-authority";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { InvoiceStatusChip as y } from "./index55.js";
|
|
3
|
-
import { useGetReceivablesAnalytics as c } from "./
|
|
3
|
+
import { useGetReceivablesAnalytics as c } from "./index167.js";
|
|
4
4
|
import { useCurrencies as S } from "./index58.js";
|
|
5
|
-
import { Skeleton as A } from "./
|
|
6
|
-
import { StatusCard as d } from "./
|
|
5
|
+
import { Skeleton as A } from "./index154.js";
|
|
6
|
+
import { StatusCard as d } from "./index341.js";
|
|
7
7
|
import { useLingui as b } from "@lingui/react";
|
|
8
8
|
import { useMemo as f } from "react";
|
|
9
9
|
const p = ["draft", "issued", "overdue", "partially_paid", "paid", "recurring", "canceled", "uncollectible"], M = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { getInvoiceOverdueDays as l } from "./
|
|
2
|
+
import { getInvoiceOverdueDays as l } from "./index407.js";
|
|
3
3
|
import { useMoniteContext as d } from "./index57.js";
|
|
4
4
|
import { dateStringToLocalDate as m } from "./index96.js";
|
|
5
5
|
import { useLingui as c } from "@lingui/react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { counterpartsToSelect as p } from "./
|
|
2
|
+
import { counterpartsToSelect as p } from "./index290.js";
|
|
3
3
|
import { useMoniteContext as m } from "./index57.js";
|
|
4
4
|
import { useRootElements as u } from "./index92.js";
|
|
5
|
-
import { FilterContainer as f } from "./
|
|
6
|
-
import { SearchField as v } from "./
|
|
5
|
+
import { FilterContainer as f } from "./index291.js";
|
|
6
|
+
import { SearchField as v } from "./index292.js";
|
|
7
7
|
import { useLingui as _ } from "@lingui/react";
|
|
8
8
|
import h from "@mui/icons-material/CalendarToday";
|
|
9
9
|
import { FormControl as C, Select as F, MenuItem as s } from "@mui/material";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { CenteredContentBox as p } from "./
|
|
3
|
-
import { DropdownMenu as d, DropdownMenuTrigger as h, DropdownMenuContent as u, DropdownMenuItem as f } from "./
|
|
2
|
+
import { CenteredContentBox as p } from "./index202.js";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as h, DropdownMenuContent as u, DropdownMenuItem as f } from "./index153.js";
|
|
4
4
|
import { Button as l } from "./index84.js";
|
|
5
5
|
import { RefreshCw as s, ChevronDown as w } from "lucide-react";
|
|
6
6
|
import { Typography as m } from "./index85.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as p } from "react";
|
|
2
|
-
import { useUserPermissions as y } from "./
|
|
2
|
+
import { useUserPermissions as y } from "./index135.js";
|
|
3
3
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
4
4
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
5
5
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toMinorUnits as l } from "./
|
|
2
|
-
import { CurrencyEnumSchema as p } from "./
|
|
1
|
+
import { toMinorUnits as l } from "./index124.js";
|
|
2
|
+
import { CurrencyEnumSchema as p } from "./index263.js";
|
|
3
3
|
import { z as e } from "zod";
|
|
4
4
|
const s = (r) => p, x = (r) => e.object({
|
|
5
5
|
account_holder_name: e.string().trim().min(1, r._("Account holder name is required")).max(255, r._("Account holder name must be 255 characters or less")),
|
|
@@ -2,12 +2,12 @@ import { useState as U, useRef as ee, useId as ut, useMemo as ct } from "react";
|
|
|
2
2
|
import { useLingui as mt } from "@lingui/react";
|
|
3
3
|
import { format as te } from "date-fns";
|
|
4
4
|
import { toast as o } from "react-hot-toast";
|
|
5
|
-
import { buildPaymentTermsPayload as ae } from "./
|
|
5
|
+
import { buildPaymentTermsPayload as ae } from "./index343.js";
|
|
6
6
|
import { getCounterpartEmail as _t } from "./index7.js";
|
|
7
7
|
import { LanguageCodeEnum as lt } from "./index218.js";
|
|
8
|
-
import { rateMajorToMinor as ne } from "./
|
|
8
|
+
import { rateMajorToMinor as ne } from "./index344.js";
|
|
9
9
|
import { useMoniteContext as pt } from "./index57.js";
|
|
10
|
-
import { useUserPermissions as ft } from "./
|
|
10
|
+
import { useUserPermissions as ft } from "./index135.js";
|
|
11
11
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
12
12
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
13
13
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -17,17 +17,17 @@ import { Scope as yt } from "../../shared/data-access/dist/lib/scopes.js";
|
|
|
17
17
|
import { useCounterpartById as gt } from "./index70.js";
|
|
18
18
|
import { useCounterpartAddresses as vt } from "./index72.js";
|
|
19
19
|
import { useMyEntity as bt } from "./index78.js";
|
|
20
|
-
import { useCreateReceivable as ht } from "./
|
|
20
|
+
import { useCreateReceivable as ht } from "./index345.js";
|
|
21
21
|
import { useCreateCounterpart as xt } from "./index217.js";
|
|
22
|
-
import { useUpdateReceivable as Ct } from "./
|
|
23
|
-
import { useUpdateReceivableLineItems as It } from "./
|
|
24
|
-
import { useCreateRecurrence as wt } from "./
|
|
25
|
-
import { useUpdateRecurrence as Pt } from "./
|
|
26
|
-
import { useIssueReceivableById as Rt } from "./
|
|
27
|
-
import { useGetInvoiceRequiredFields as kt } from "./
|
|
28
|
-
import { useSelectableBankAccounts as At } from "./
|
|
29
|
-
import { useLineItemSubmitCleanup as Lt } from "./
|
|
30
|
-
import { useGetMeasureUnits as St } from "./
|
|
22
|
+
import { useUpdateReceivable as Ct } from "./index346.js";
|
|
23
|
+
import { useUpdateReceivableLineItems as It } from "./index347.js";
|
|
24
|
+
import { useCreateRecurrence as wt } from "./index348.js";
|
|
25
|
+
import { useUpdateRecurrence as Pt } from "./index349.js";
|
|
26
|
+
import { useIssueReceivableById as Rt } from "./index237.js";
|
|
27
|
+
import { useGetInvoiceRequiredFields as kt } from "./index235.js";
|
|
28
|
+
import { useSelectableBankAccounts as At } from "./index236.js";
|
|
29
|
+
import { useLineItemSubmitCleanup as Lt } from "./index350.js";
|
|
30
|
+
import { useGetMeasureUnits as St } from "./index266.js";
|
|
31
31
|
const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t, i) => ({
|
|
32
32
|
// Callers only reach this in `invoice` mode (the guard runs earlier).
|
|
33
33
|
type: t.type,
|
|
@@ -203,10 +203,10 @@ const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t
|
|
|
203
203
|
})
|
|
204
204
|
), N = n?.id ?? x?.id ?? "", {
|
|
205
205
|
mutateAsync: G,
|
|
206
|
-
isPending:
|
|
206
|
+
isPending: De
|
|
207
207
|
} = Ct(N), {
|
|
208
208
|
mutateAsync: H,
|
|
209
|
-
isPending:
|
|
209
|
+
isPending: Fe
|
|
210
210
|
} = It(N), {
|
|
211
211
|
mutateAsync: Ue,
|
|
212
212
|
isPending: $e
|
|
@@ -216,7 +216,7 @@ const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t
|
|
|
216
216
|
} = Pt(), {
|
|
217
217
|
mutateAsync: Te,
|
|
218
218
|
isPending: je
|
|
219
|
-
} = Rt(), O = Se || Me ||
|
|
219
|
+
} = Rt(), O = Se || Me || De || Fe || $e || Be || je, ze = O || j || z, Q = ee(null), V = () => {
|
|
220
220
|
requestAnimationFrame(() => {
|
|
221
221
|
const e = Q.current, u = e?.querySelector('[aria-invalid="true"]');
|
|
222
222
|
if (!e || !u) return;
|
|
@@ -297,27 +297,27 @@ const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t
|
|
|
297
297
|
} catch {
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
|
-
const at = e.default_shipping_address_id, nt = L?.data?.find((m) => m.id === at), ot = e.line_items.filter((m) => !m.product_id && !!m.product?.name?.trim()),
|
|
301
|
-
let f, s,
|
|
300
|
+
const at = e.default_shipping_address_id, nt = L?.data?.find((m) => m.id === at), ot = e.line_items.filter((m) => !m.product_id && !!m.product?.name?.trim()), D = he?.data ?? [];
|
|
301
|
+
let f, s, F = null;
|
|
302
302
|
try {
|
|
303
303
|
if (t === "create")
|
|
304
|
-
x ? (f = x.id, await H(re(e,
|
|
304
|
+
x ? (f = x.id, await H(re(e, D)), s = await G(ie(e, {
|
|
305
305
|
resolvedCounterpartId: p,
|
|
306
306
|
currency: r
|
|
307
307
|
}))) : (s = await Le(qt(e, {
|
|
308
308
|
resolvedCounterpartId: p,
|
|
309
309
|
billingAddressId: S?.id,
|
|
310
310
|
shippingAddressId: nt?.id,
|
|
311
|
-
measureUnits:
|
|
311
|
+
measureUnits: D,
|
|
312
312
|
currency: r
|
|
313
313
|
}), {
|
|
314
314
|
onSuccess: async () => {
|
|
315
315
|
await B.finops.getReceivables.invalidateQueries(T);
|
|
316
316
|
}
|
|
317
|
-
}), f = s.id,
|
|
317
|
+
}), f = s.id, F = s, l && Y(p));
|
|
318
318
|
else {
|
|
319
319
|
if (!n) return;
|
|
320
|
-
await H(re(e,
|
|
320
|
+
await H(re(e, D)), s = await G(ie(e, {
|
|
321
321
|
resolvedCounterpartId: p,
|
|
322
322
|
currency: r
|
|
323
323
|
})), f = n.id;
|
|
@@ -377,7 +377,7 @@ const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t
|
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
} catch {
|
|
380
|
-
!x &&
|
|
380
|
+
!x && F && b(F);
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
b(null);
|
|
@@ -4,30 +4,30 @@ import { FormProvider as Y } from "react-hook-form";
|
|
|
4
4
|
import { useLingui as J } from "@lingui/react";
|
|
5
5
|
import { X as K } from "lucide-react";
|
|
6
6
|
import "date-fns";
|
|
7
|
-
import { buildInvoicePreviewData as Z } from "./
|
|
7
|
+
import { buildInvoicePreviewData as Z } from "./index301.js";
|
|
8
8
|
import { useCounterpartById as tt } from "./index70.js";
|
|
9
9
|
import "@tanstack/react-query";
|
|
10
10
|
import { useMoniteContext as et } from "./index57.js";
|
|
11
11
|
import { useCounterpartAddresses as ot } from "./index72.js";
|
|
12
12
|
import { useMyEntity as at } from "./index78.js";
|
|
13
13
|
import "react-hot-toast";
|
|
14
|
-
import { useUserPermissions as rt } from "./
|
|
14
|
+
import { useUserPermissions as rt } from "./index135.js";
|
|
15
15
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
16
16
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
17
17
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
18
18
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
19
19
|
import { Scope as it } from "../../shared/data-access/dist/lib/scopes.js";
|
|
20
|
-
import { Dialog as nt, DialogContent as st, DialogHeader as mt, DialogTitle as lt, DialogDescription as dt, DialogFooter as ct } from "./
|
|
20
|
+
import { Dialog as nt, DialogContent as st, DialogHeader as mt, DialogTitle as lt, DialogDescription as dt, DialogFooter as ct } from "./index222.js";
|
|
21
21
|
import { Button as pt } from "./index84.js";
|
|
22
|
-
import { ConfirmationModal as ut } from "./
|
|
23
|
-
import { LoadingPage as wt } from "./
|
|
24
|
-
import { CustomerSection as ft } from "./
|
|
25
|
-
import { BillingSection as ht } from "./
|
|
26
|
-
import { ItemsSection as gt } from "./
|
|
27
|
-
import { BankAccountSection as bt } from "./
|
|
28
|
-
import { NotesSection as yt } from "./
|
|
29
|
-
import { AttachmentSection as vt } from "./
|
|
30
|
-
import { InvoicePreview as xt } from "./
|
|
22
|
+
import { ConfirmationModal as ut } from "./index255.js";
|
|
23
|
+
import { LoadingPage as wt } from "./index284.js";
|
|
24
|
+
import { CustomerSection as ft } from "./index302.js";
|
|
25
|
+
import { BillingSection as ht } from "./index303.js";
|
|
26
|
+
import { ItemsSection as gt } from "./index304.js";
|
|
27
|
+
import { BankAccountSection as bt } from "./index305.js";
|
|
28
|
+
import { NotesSection as yt } from "./index306.js";
|
|
29
|
+
import { AttachmentSection as vt } from "./index307.js";
|
|
30
|
+
import { InvoicePreview as xt } from "./index308.js";
|
|
31
31
|
const Kt = ({
|
|
32
32
|
open: h,
|
|
33
33
|
onRequestClose: s,
|