@tesouro/embedded-components-react 0.2.81 → 0.2.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -18
- package/dist/index.d.ts +18 -0
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/lib/SettingsWidget.d.ts +7 -0
- package/dist/lib/TeamWidget.d.ts +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +12 -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 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +33 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +47 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +49 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +11 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +40 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +152 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +71 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +3 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +62 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +97 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +24 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +10 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +10 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +21 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +117 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +64 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +43 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +75 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +196 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +76 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +39 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +6 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +116 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +190 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +30 -28
- 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 +108 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +137 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +28 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +22 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +183 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -136
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +48 -27
- 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 +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +88 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +394 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +94 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +99 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +14 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -391
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +60 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +398 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +68 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +2 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +182 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +7 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +100 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +141 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +86 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +41 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +56 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +31 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +36 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +49 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +54 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +343 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +20 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +14 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +9 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +9 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +9 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +30 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +36 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +245 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +183 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +12 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +18 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +26 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +56 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +49 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +28 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +92 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +43 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +18 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +29 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +38 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +59 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +89 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +108 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +83 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +62 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +76 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +158 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +28 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +76 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +6 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +24 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +31 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +73 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +44 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +486 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +162 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +342 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +299 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +95 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +158 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +264 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +2 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +92 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +191 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +149 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +61 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +43 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +24 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +183 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +101 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +81 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +284 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +49 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +15 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +85 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +220 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +36 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +19 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +169 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +132 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +156 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +59 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +66 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +59 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +6 -283
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +62 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +58 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +14 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +40 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +60 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +110 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +21 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +40 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +55 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +53 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +28 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +18 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +77 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +93 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +16 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +76 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +17 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +49 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +10 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +50 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +63 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +126 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +40 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +27 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +99 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +34 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +57 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +40 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +71 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +88 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +34 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +255 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +9 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +47 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +26 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +31 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +4 -25
- 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 +127 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +93 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +19 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +85 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +24 -28
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +102 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +110 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +9 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +74 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +67 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +37 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +64 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +66 -20
- 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 +29 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +17 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +19 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +12 -41
- 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 +21 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +115 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +69 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -33
- 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 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +7 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +50 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +46 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +15 -81
- 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 +29 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +39 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +92 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +15 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +74 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +20 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +9 -55
- 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 +56 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +32 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +74 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +84 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +55 -9
- 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 +52 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +51 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +48 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +31 -67
- 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 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +82 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +39 -16
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +43 -48
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- 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/settings-widget/feature/dist/index2.js +105 -104
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +67 -59
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index16.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +183 -180
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +58 -53
- package/package.json +1 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { useMoniteContext as D } from "./index57.js";
|
|
5
|
-
import "react-hot-toast";
|
|
6
|
-
import { useLingui as F } from "@lingui/react";
|
|
7
|
-
import "./index56.js";
|
|
8
|
-
import { useCurrencies as b } from "./index58.js";
|
|
9
|
-
import { useState as I } from "react";
|
|
10
|
-
import "./index92.js";
|
|
11
|
-
import "react-dom";
|
|
12
|
-
import "@mui/x-data-grid";
|
|
1
|
+
import { jsxs as d, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import "./index57.js";
|
|
13
4
|
import "@tanstack/react-query";
|
|
14
5
|
import "date-fns";
|
|
15
|
-
import "
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
import { useEntityUserByAuthToken as p } from "./index75.js";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import { useLingui as s } from "@lingui/react";
|
|
9
|
+
import u from "@mui/icons-material/CheckCircleOutlineRounded";
|
|
10
|
+
import f from "@mui/icons-material/HighlightOffRounded";
|
|
11
|
+
import { Stack as m, IconButton as a } from "@mui/material";
|
|
12
|
+
const C = ({
|
|
13
|
+
id: o,
|
|
14
|
+
onClick: t
|
|
22
15
|
}) => {
|
|
23
16
|
const {
|
|
24
|
-
i18n:
|
|
25
|
-
} =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
17
|
+
i18n: r
|
|
18
|
+
} = s(), [i, n] = c(!1);
|
|
19
|
+
return /* @__PURE__ */ e(a, { "aria-label": r._("Approve request"), color: "success", disabled: i, onClick: (l) => {
|
|
20
|
+
l.preventDefault(), n(!0), t({
|
|
21
|
+
id: o,
|
|
22
|
+
action: "approve"
|
|
23
|
+
})?.finally(() => n(!1));
|
|
24
|
+
}, children: /* @__PURE__ */ e(u, {}) });
|
|
25
|
+
}, k = ({
|
|
26
|
+
id: o,
|
|
27
|
+
onClick: t
|
|
28
|
+
}) => {
|
|
29
|
+
const {
|
|
30
|
+
i18n: r
|
|
31
|
+
} = s(), [i, n] = c(!1);
|
|
32
|
+
return /* @__PURE__ */ e(a, { "aria-label": r._("Reject request"), color: "error", disabled: i, onClick: (l) => {
|
|
33
|
+
l.preventDefault(), n(!0), t({
|
|
34
|
+
id: o,
|
|
35
|
+
action: "reject"
|
|
36
|
+
})?.finally(() => n(!1));
|
|
37
|
+
}, children: /* @__PURE__ */ e(f, {}) });
|
|
38
|
+
}, q = (o) => {
|
|
39
|
+
const {
|
|
40
|
+
i18n: t
|
|
41
|
+
} = s(), {
|
|
42
|
+
data: r
|
|
43
|
+
} = p();
|
|
44
|
+
if ("onRowActionClick" in o && o.onRowActionClick)
|
|
45
|
+
return {
|
|
46
|
+
field: "actions",
|
|
47
|
+
headerName: t._("Actions"),
|
|
48
|
+
sortable: !1,
|
|
41
49
|
display: "flex",
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ e(m, { variant: "body1", children: i._("Repayment on {repaymentDate}", {
|
|
52
|
-
repaymentDate: v
|
|
53
|
-
}) })
|
|
54
|
-
] }),
|
|
55
|
-
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(C, { icon: !0, status: g ?? "DEFAULTED" }) })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ e(j, { open: d, onClose: () => a(!1), alignDialog: "right", children: /* @__PURE__ */ e(_, { invoice: r, offers: s?.offers, financedInvoice: t }) })
|
|
58
|
-
] });
|
|
50
|
+
align: "right",
|
|
51
|
+
renderCell: (i) => {
|
|
52
|
+
if (i.row.status === "waiting" && r?.id && i.row.user_ids.includes(r.id) && !i.row.approved_by?.includes(r.id))
|
|
53
|
+
return /* @__PURE__ */ d(m, { direction: "row", children: [
|
|
54
|
+
/* @__PURE__ */ e(C, { id: i.row.id, onClick: o.onRowActionClick }),
|
|
55
|
+
/* @__PURE__ */ e(k, { id: i.row.id, onClick: o.onRowActionClick })
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
q as useApprovalRequestActionsCell
|
|
62
62
|
};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "./index57.js";
|
|
3
|
+
import "@tanstack/react-query";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { useEntityUserById as e } from "./index75.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import "@lingui/react";
|
|
9
|
+
import { UserAvatar as m } from "./index434.js";
|
|
10
|
+
import { Chip as i, Skeleton as n } from "@mui/material";
|
|
11
|
+
const y = ({
|
|
12
|
+
entityUserId: o
|
|
13
|
+
}) => {
|
|
3
14
|
const {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
15
|
+
data: r,
|
|
16
|
+
isLoading: a
|
|
17
|
+
} = e(o);
|
|
18
|
+
return r ? a ? /* @__PURE__ */ t(i, { label: /* @__PURE__ */ t(n, { variant: "rounded", height: "50%", width: 100, animation: "wave" }) }) : /* @__PURE__ */ t(i, { avatar: /* @__PURE__ */ t(m, { fileId: r.userpic_file_id }), label: `${r.first_name ?? ""} ${r.last_name ?? ""}`.trim() || "—", variant: "outlined", color: "secondary" }) : null;
|
|
7
19
|
};
|
|
8
20
|
export {
|
|
9
|
-
|
|
21
|
+
y as UserCell
|
|
10
22
|
};
|
|
@@ -1,13 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { FormProvider as f, Controller as u, useFormContext as F, useFormState as I } from "react-hook-form";
|
|
4
|
+
import { Label as p } from "./index285.js";
|
|
5
|
+
import { cn as i } from "./index100.js";
|
|
6
|
+
import { Slot as g } from "@radix-ui/react-slot";
|
|
7
|
+
const b = f, l = a.createContext({}), C = ({
|
|
8
|
+
...r
|
|
9
|
+
}) => /* @__PURE__ */ m(l.Provider, { value: {
|
|
10
|
+
name: r.name
|
|
11
|
+
}, children: /* @__PURE__ */ m(u, { ...r }) }), d = () => {
|
|
12
|
+
const r = a.useContext(l), e = a.useContext(c), {
|
|
13
|
+
getFieldState: t
|
|
14
|
+
} = F(), o = I({
|
|
15
|
+
name: r.name
|
|
16
|
+
}), s = t(r.name, o);
|
|
17
|
+
if (!r)
|
|
18
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
19
|
+
const {
|
|
20
|
+
id: n
|
|
21
|
+
} = e;
|
|
22
|
+
return {
|
|
23
|
+
id: n,
|
|
24
|
+
name: r.name,
|
|
25
|
+
formItemId: `${n}-form-item`,
|
|
26
|
+
formDescriptionId: `${n}-form-item-description`,
|
|
27
|
+
formMessageId: `${n}-form-item-message`,
|
|
28
|
+
...s
|
|
29
|
+
};
|
|
30
|
+
}, c = a.createContext({});
|
|
31
|
+
function N({
|
|
32
|
+
className: r,
|
|
33
|
+
...e
|
|
34
|
+
}) {
|
|
35
|
+
const t = a.useId();
|
|
36
|
+
return /* @__PURE__ */ m(c.Provider, { value: {
|
|
37
|
+
id: t
|
|
38
|
+
}, children: /* @__PURE__ */ m("div", { "data-slot": "form-item", className: i("ttw:grid ttw:gap-2", r), ...e }) });
|
|
39
|
+
}
|
|
40
|
+
function M({
|
|
41
|
+
className: r,
|
|
42
|
+
...e
|
|
43
|
+
}) {
|
|
44
|
+
const {
|
|
45
|
+
error: t,
|
|
46
|
+
formItemId: o
|
|
47
|
+
} = d();
|
|
48
|
+
return /* @__PURE__ */ m(p, { "data-slot": "form-label", "data-error": !!t, className: i("ttw:data-[error=true]:text-destructive", r), htmlFor: o, ...e });
|
|
49
|
+
}
|
|
50
|
+
function S({
|
|
51
|
+
...r
|
|
52
|
+
}) {
|
|
53
|
+
const {
|
|
54
|
+
error: e,
|
|
55
|
+
formItemId: t,
|
|
56
|
+
formDescriptionId: o,
|
|
57
|
+
formMessageId: s
|
|
58
|
+
} = d();
|
|
59
|
+
return /* @__PURE__ */ m(g, { "data-slot": "form-control", id: t, "aria-describedby": e ? `${o} ${s}` : `${o}`, "aria-invalid": !!e, ...r });
|
|
60
|
+
}
|
|
61
|
+
function P({
|
|
62
|
+
className: r,
|
|
63
|
+
...e
|
|
64
|
+
}) {
|
|
65
|
+
const {
|
|
66
|
+
error: t,
|
|
67
|
+
formMessageId: o
|
|
68
|
+
} = d(), s = t ? String(t?.message ?? "") : e.children;
|
|
69
|
+
return s ? /* @__PURE__ */ m("p", { "data-slot": "form-message", id: o, className: i("ttw:text-destructive ttw:text-sm", r), ...e, children: s }) : null;
|
|
70
|
+
}
|
|
11
71
|
export {
|
|
12
|
-
|
|
72
|
+
b as Form,
|
|
73
|
+
S as FormControl,
|
|
74
|
+
C as FormField,
|
|
75
|
+
N as FormItem,
|
|
76
|
+
M as FormLabel,
|
|
77
|
+
P as FormMessage,
|
|
78
|
+
d as useFormField
|
|
13
79
|
};
|
|
@@ -1,64 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const P = ({
|
|
14
|
-
offers: i = []
|
|
1
|
+
import { jsxs as l, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import * as w from "react";
|
|
3
|
+
import { Badge as d } from "./index242.js";
|
|
4
|
+
import { Button as m } from "./index84.js";
|
|
5
|
+
import { cn as p } from "./index100.js";
|
|
6
|
+
import { XIcon as h } from "lucide-react";
|
|
7
|
+
const g = ({
|
|
8
|
+
className: i,
|
|
9
|
+
value: e,
|
|
10
|
+
onChange: a,
|
|
11
|
+
ref: c,
|
|
12
|
+
...f
|
|
15
13
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return n._("Financing is not available for your business anymore. Please, contact the provider for further details.");
|
|
28
|
-
case "LATE":
|
|
29
|
-
return n._("Due to late payment your financing is currently on hold. Please, contact the provider for further details.");
|
|
30
|
-
default:
|
|
31
|
-
return n._("Your amount available for financing additional invoices.");
|
|
14
|
+
const [r, n] = w.useState("");
|
|
15
|
+
w.useEffect(() => {
|
|
16
|
+
if (r.includes(",")) {
|
|
17
|
+
const t = /* @__PURE__ */ new Set([...e, ...r.split(",").map((s) => s.trim())]);
|
|
18
|
+
a(Array.from(t)), n("");
|
|
19
|
+
}
|
|
20
|
+
}, [r, a, e]);
|
|
21
|
+
const u = () => {
|
|
22
|
+
if (r) {
|
|
23
|
+
const t = /* @__PURE__ */ new Set([...e, r]);
|
|
24
|
+
a(Array.from(t)), n("");
|
|
32
25
|
}
|
|
33
26
|
};
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */ t(r, { component: "span", variant: "subtitle1", fontSize: 18, color: u.palette.grey[400], children: [
|
|
49
|
-
"/ ",
|
|
50
|
-
o(s, "USD")
|
|
51
|
-
] })
|
|
52
|
-
] })
|
|
53
|
-
] }) : /* @__PURE__ */ e(r, { variant: "h2", fontSize: 24, children: n._("Not available") }) }),
|
|
54
|
-
/* @__PURE__ */ t(a, { display: "flex", flexDirection: "column", gap: 1.5, children: [
|
|
55
|
-
c && /* @__PURE__ */ e(y, { progress: p }),
|
|
56
|
-
/* @__PURE__ */ e(r, { variant: "body1", fontSize: 14, lineHeight: "22px", fontWeight: 400, children: d() })
|
|
57
|
-
] }),
|
|
58
|
-
m?.financing?.enableFinanceWidgetButton && /* @__PURE__ */ e(g, {})
|
|
59
|
-
] }) })
|
|
27
|
+
return /* @__PURE__ */ l("div", { className: p(
|
|
28
|
+
// caveat: :has() variant requires tailwind v3.4 or above: https://tailwindcss.com/blog/tailwindcss-v3-4#new-has-variant
|
|
29
|
+
"ttw:has-[:focus-visible]:ttw:outline-none ttw:has-[:focus-visible]:ttw:ring-2 ttw:has-[:focus-visible]:ttw:ring-neutral-950 ttw:has-[:focus-visible]:ttw:ring-offset-2 dark:ttw:has-[:focus-visible]:ttw:ring-neutral-300 ttw:min-h-10 ttw:flex ttw:w-full ttw:flex-wrap ttw:gap-2 ttw:rounded-md ttw:border ttw:border-neutral-200 ttw:bg-white ttw:px-3 ttw:py-2 ttw:text-sm ttw:ring-offset-white ttw:disabled:ttw:cursor-not-allowed ttw:disabled:ttw:opacity-50 dark:ttw:border-neutral-800 dark:ttw:bg-neutral-950 dark:ttw:ring-offset-neutral-950",
|
|
30
|
+
i
|
|
31
|
+
), children: [
|
|
32
|
+
e.map((t) => /* @__PURE__ */ l(d, { variant: "secondary", children: [
|
|
33
|
+
t,
|
|
34
|
+
/* @__PURE__ */ o(m, { variant: "ghost", size: "icon", className: "ttw:ml-2 ttw:h-3 ttw:w-3", onClick: () => {
|
|
35
|
+
a(e.filter((s) => s !== t));
|
|
36
|
+
}, children: /* @__PURE__ */ o(h, { className: "ttw:w-3" }) })
|
|
37
|
+
] }, t)),
|
|
38
|
+
/* @__PURE__ */ o("input", { className: "ttw:flex-1 ttw:outline-none ttw:placeholder:ttw:text-neutral-500 dark:ttw:placeholder:ttw:text-neutral-400", value: r, onChange: (t) => n(t.target.value), onKeyDown: (t) => {
|
|
39
|
+
t.key === "Enter" || t.key === "," ? (t.preventDefault(), u()) : t.key === "Backspace" && r.length === 0 && e.length > 0 && (t.preventDefault(), a(e.slice(0, -1)));
|
|
40
|
+
}, ...f, ref: c })
|
|
60
41
|
] });
|
|
61
42
|
};
|
|
43
|
+
g.displayName = "InputTags";
|
|
62
44
|
export {
|
|
63
|
-
|
|
45
|
+
g as InputTags
|
|
64
46
|
};
|
|
@@ -1,26 +1,98 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useForm as y, Controller as i } from "react-hook-form";
|
|
3
|
+
import { prepareBankAccountCreatePayload as k } from "./index438.js";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { getCreateBankAccountSchema as x } from "./index188.js";
|
|
6
|
+
import { safeZodResolver as C } from "./index237.js";
|
|
7
|
+
import { useLingui as S } from "@lingui/react";
|
|
8
|
+
import { Field as d, FieldContent as c, FieldLabel as m, FieldError as u } from "./index153.js";
|
|
9
|
+
import { Input as s } from "./index117.js";
|
|
10
|
+
import { Typography as h } from "./index85.js";
|
|
11
|
+
import { useCreateEntityBankAccount as F } from "./index413.js";
|
|
12
|
+
import { Button as p } from "./index84.js";
|
|
13
|
+
const J = ({
|
|
14
|
+
bankAccountsLength: b,
|
|
15
|
+
onCreate: _,
|
|
16
|
+
onCancel: f
|
|
17
|
+
}) => {
|
|
9
18
|
const {
|
|
10
|
-
i18n:
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
i18n: a
|
|
20
|
+
} = S(), {
|
|
21
|
+
mutate: v,
|
|
22
|
+
isPending: o
|
|
23
|
+
} = F(_), {
|
|
24
|
+
control: l,
|
|
25
|
+
handleSubmit: g
|
|
26
|
+
} = y({
|
|
27
|
+
mode: "onSubmit",
|
|
28
|
+
reValidateMode: "onSubmit",
|
|
29
|
+
resolver: C(x(a)),
|
|
30
|
+
defaultValues: {
|
|
31
|
+
display_name: "",
|
|
32
|
+
account_holder_name: "",
|
|
33
|
+
account_number: "",
|
|
34
|
+
routing_number: ""
|
|
35
|
+
}
|
|
36
|
+
}), w = (t) => {
|
|
37
|
+
v({
|
|
38
|
+
body: k(t)
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
42
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: /* @__PURE__ */ e(h, { variant: "body2", children: a._("Add a bank account") }) }),
|
|
43
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
44
|
+
/* @__PURE__ */ e(i, { name: "routing_number", control: l, render: ({
|
|
45
|
+
field: t,
|
|
46
|
+
fieldState: {
|
|
47
|
+
error: r
|
|
48
|
+
}
|
|
49
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
50
|
+
/* @__PURE__ */ e(m, { htmlFor: "routing_number", children: a._("Routing number") }),
|
|
51
|
+
/* @__PURE__ */ e(s, { ...t, id: "routing_number", placeholder: a._("e.g. 123456789"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
52
|
+
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
53
|
+
] }) }) }),
|
|
54
|
+
/* @__PURE__ */ e(i, { name: "account_number", control: l, render: ({
|
|
55
|
+
field: t,
|
|
56
|
+
fieldState: {
|
|
57
|
+
error: r
|
|
58
|
+
}
|
|
59
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
60
|
+
/* @__PURE__ */ e(m, { htmlFor: "account_number", children: a._("Account number") }),
|
|
61
|
+
/* @__PURE__ */ e(s, { ...t, id: "account_number", placeholder: a._("e.g. 123456789"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
62
|
+
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
63
|
+
] }) }) })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
66
|
+
/* @__PURE__ */ e(i, { name: "account_holder_name", control: l, render: ({
|
|
67
|
+
field: t,
|
|
68
|
+
fieldState: {
|
|
69
|
+
error: r
|
|
70
|
+
}
|
|
71
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
72
|
+
/* @__PURE__ */ e(m, { htmlFor: "account_holder_name", children: a._("Account holder name") }),
|
|
73
|
+
/* @__PURE__ */ e(s, { ...t, id: "account_holder_name", placeholder: a._("e.g. James Smith"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
74
|
+
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
75
|
+
] }) }) }),
|
|
76
|
+
/* @__PURE__ */ e(i, { name: "display_name", control: l, render: ({
|
|
77
|
+
field: t,
|
|
78
|
+
fieldState: {
|
|
79
|
+
error: r
|
|
80
|
+
}
|
|
81
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
82
|
+
/* @__PURE__ */ n(m, { htmlFor: "display_name", className: "ttw:gap-1", children: [
|
|
83
|
+
a._("Account nickname"),
|
|
84
|
+
/* @__PURE__ */ e(h, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: a._("(optional)") })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ e(s, { ...t, id: "display_name", placeholder: a._("e.g. Empire Bank Checking"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
87
|
+
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
88
|
+
] }) }) })
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
91
|
+
b !== 0 && /* @__PURE__ */ e(p, { type: "button", variant: "outline", className: "ttw:border-border", disabled: o, onClick: f, children: a._("Cancel") }),
|
|
92
|
+
/* @__PURE__ */ e(p, { type: "button", disabled: o, onClick: g(w), children: a._("Save account") })
|
|
93
|
+
] })
|
|
22
94
|
] });
|
|
23
95
|
};
|
|
24
96
|
export {
|
|
25
|
-
|
|
97
|
+
J as BankAccountSectionForm
|
|
26
98
|
};
|
|
@@ -1,65 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
display: "inline-block"
|
|
16
|
-
}, children: t._("Current offer") }),
|
|
17
|
-
/* @__PURE__ */ e(i, { sx: {
|
|
18
|
-
display: "flex",
|
|
19
|
-
gap: 2,
|
|
20
|
-
flexWrap: "wrap"
|
|
21
|
-
}, children: p.map((o, c) => o?.pricing_plans?.map((r, s) => /* @__PURE__ */ a(i, { width: 232, height: 148, px: 3, py: 2.5, sx: {
|
|
22
|
-
backgroundColor: d.palette.background.paper,
|
|
23
|
-
borderRadius: "16px",
|
|
24
|
-
border: `1px solid ${d.palette.divider}`
|
|
25
|
-
}, children: [
|
|
26
|
-
/* @__PURE__ */ a(i, { sx: {
|
|
27
|
-
display: "flex",
|
|
28
|
-
alignItems: "center",
|
|
29
|
-
gap: 1,
|
|
30
|
-
mb: 2
|
|
31
|
-
}, children: [
|
|
32
|
-
/* @__PURE__ */ e(_, { sx: {
|
|
33
|
-
fontSize: 24,
|
|
34
|
-
color: f(d.palette.primary.main, 0.6)
|
|
35
|
-
} }),
|
|
36
|
-
/* @__PURE__ */ e(n, { variant: "body1", fontWeight: 500, sx: {
|
|
37
|
-
flex: "1 1 0%",
|
|
38
|
-
width: "100%"
|
|
39
|
-
}, children: t._("Financing plan") })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ e(x, { sx: {
|
|
42
|
-
p: 0
|
|
43
|
-
}, children: /* @__PURE__ */ a(m, { children: [
|
|
44
|
-
/* @__PURE__ */ e(l, { sx: {
|
|
45
|
-
p: 0
|
|
46
|
-
}, children: /* @__PURE__ */ e(n, { variant: "body1", fontWeight: 400, children: t._("{itemAdvance_rate_percentage}% advance rate", {
|
|
47
|
-
itemAdvance_rate_percentage: r.advance_rate_percentage / 100
|
|
48
|
-
}) }) }),
|
|
49
|
-
/* @__PURE__ */ e(l, { sx: {
|
|
50
|
-
p: 0
|
|
51
|
-
}, children: /* @__PURE__ */ e(n, { variant: "body1", fontWeight: 400, children: t._("Pay in {itemRepayment_duration_days} days", {
|
|
52
|
-
itemRepayment_duration_days: r.repayment_duration_days
|
|
53
|
-
}) }) }),
|
|
54
|
-
/* @__PURE__ */ e(l, { sx: {
|
|
55
|
-
p: 0
|
|
56
|
-
}, children: /* @__PURE__ */ e(n, { variant: "body1", fontWeight: 400, children: t._("{itemFee_percentage}% fee", {
|
|
57
|
-
itemFee_percentage: r.fee_percentage / 100
|
|
58
|
-
}) }) })
|
|
59
|
-
] }, r.advance_rate_percentage) })
|
|
60
|
-
] }, `${o.available_amount}-${c}-${o.total_amount}-${s}`))) })
|
|
61
|
-
] });
|
|
1
|
+
const t = (e, n, a) => {
|
|
2
|
+
switch (e) {
|
|
3
|
+
case "INTERNAL":
|
|
4
|
+
return n ? a._("Powered by {embeddedBankName}", {
|
|
5
|
+
embeddedBankName: n
|
|
6
|
+
}) : null;
|
|
7
|
+
case "EXTERNAL":
|
|
8
|
+
return a._("Linked account");
|
|
9
|
+
default:
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}, c = (e, n) => {
|
|
13
|
+
const a = e.account_number?.slice(-4) ?? e.account_number_last4;
|
|
14
|
+
return [e.display_name || n._("Bank Account"), a].filter(Boolean).join(" - ");
|
|
62
15
|
};
|
|
63
16
|
export {
|
|
64
|
-
|
|
17
|
+
c as getLineLabel,
|
|
18
|
+
t as getSourceLabel
|
|
65
19
|
};
|
|
@@ -1,16 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as t, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as N, useMemo as d } from "react";
|
|
3
|
+
import { useFormContext as F, Controller as S } from "react-hook-form";
|
|
4
|
+
import { getCounterpartEmail as E, getCounterpartName as V } from "./index7.js";
|
|
5
|
+
import { useRootElements as I } from "./index92.js";
|
|
6
|
+
import "./index57.js";
|
|
7
|
+
import { useCounterpartList as j } from "./index71.js";
|
|
8
|
+
import "react-hot-toast";
|
|
9
|
+
import { useLingui as z } from "@lingui/react";
|
|
10
|
+
import { Combobox as D, ComboboxInput as k, ComboboxContent as A, ComboboxList as q, ComboboxEmpty as B, ComboboxItem as G } from "./index90.js";
|
|
11
|
+
import { Field as K, FieldContent as M, FieldLabel as O, FieldDescription as P, FieldError as R } from "./index153.js";
|
|
12
|
+
import { InputGroupAddon as $ } from "./index101.js";
|
|
13
|
+
import { Loader2 as H, Search as J } from "lucide-react";
|
|
14
|
+
const ie = ({
|
|
15
|
+
disabled: h,
|
|
16
|
+
canCreateCounterpart: n = !0
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
i18n: o
|
|
20
|
+
} = z(), {
|
|
21
|
+
root: f
|
|
22
|
+
} = I(), {
|
|
23
|
+
control: C,
|
|
24
|
+
setValue: i,
|
|
25
|
+
watch: w,
|
|
26
|
+
clearErrors: p
|
|
27
|
+
} = F(), {
|
|
28
|
+
data: s,
|
|
29
|
+
isLoading: _
|
|
30
|
+
} = j({
|
|
31
|
+
query: {
|
|
32
|
+
is_customer: !0
|
|
33
|
+
}
|
|
34
|
+
}), [b, g] = N(!1), l = w("counterpart_name") ?? "", u = d(() => s ? s.data.map((e) => ({
|
|
35
|
+
id: e.id,
|
|
36
|
+
name: V(e),
|
|
37
|
+
email: E(e)
|
|
38
|
+
})) : [], [s]), c = d(() => {
|
|
39
|
+
const e = l.toLowerCase().trim();
|
|
40
|
+
return e ? u.filter((a) => a.name.toLowerCase().includes(e) || a.email.toLowerCase().includes(e)) : u;
|
|
41
|
+
}, [u, l]), x = d(() => c.map((e) => e.id), [c]);
|
|
42
|
+
return /* @__PURE__ */ t(S, { name: "counterpart_id", control: C, render: ({
|
|
43
|
+
field: e,
|
|
44
|
+
fieldState: {
|
|
45
|
+
error: a
|
|
46
|
+
}
|
|
47
|
+
}) => {
|
|
48
|
+
const v = (r) => {
|
|
49
|
+
i("counterpart_name", ""), i("counterpart_email", ""), p(["counterpart_id", "counterpart_email"]), e.onChange(r ?? "");
|
|
50
|
+
}, y = (r, L) => {
|
|
51
|
+
if (L.reason !== "input-change") {
|
|
52
|
+
n || i("counterpart_name", "");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
i("counterpart_name", r), e.value && e.onChange(""), n && r.trim() && p("counterpart_id");
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ t(K, { children: /* @__PURE__ */ m(M, { children: [
|
|
58
|
+
/* @__PURE__ */ t(O, { htmlFor: "counterpart_id", children: o._("Name") }),
|
|
59
|
+
/* @__PURE__ */ m(D, { value: e.value || null, onValueChange: v, inputValue: l, onInputValueChange: y, items: x, filter: () => !0, disabled: h, open: b, onOpenChange: g, children: [
|
|
60
|
+
/* @__PURE__ */ t(k, { id: "counterpart_id", placeholder: n ? o._("Search or type to add a customer") : o._("Search for a customer"), "aria-invalid": !!a, onKeyDown: (r) => {
|
|
61
|
+
r.key === "Enter" && r.preventDefault();
|
|
62
|
+
}, children: /* @__PURE__ */ t($, { align: "inline-start", children: _ ? /* @__PURE__ */ t(H, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ t(J, { className: "ttw:size-4 ttw:text-muted-foreground" }) }) }),
|
|
63
|
+
/* @__PURE__ */ t(A, { container: f, children: /* @__PURE__ */ m(q, { children: [
|
|
64
|
+
/* @__PURE__ */ t(B, { children: n ? o._("No customers found - type to add a customer") : o._("No customers found") }),
|
|
65
|
+
c.map((r) => /* @__PURE__ */ t(G, { value: r.id, children: /* @__PURE__ */ m("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
66
|
+
/* @__PURE__ */ t("span", { children: r.name }),
|
|
67
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-muted-foreground", children: r.email })
|
|
68
|
+
] }) }, r.id))
|
|
69
|
+
] }) })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ t(P, { children: n ? o._("Search by customer name or email. New customers will be saved when saving the invoice.") : o._("Search by customer name or email.") }),
|
|
72
|
+
/* @__PURE__ */ t(R, { errors: a ? [a] : [] })
|
|
73
|
+
] }) });
|
|
74
|
+
} });
|
|
75
|
+
};
|
|
14
76
|
export {
|
|
15
|
-
|
|
77
|
+
ie as CounterpartSelector
|
|
16
78
|
};
|