@tesouro/embedded-components-react 0.2.91 → 0.2.93
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.css +6 -0
- package/dist/lib/ReceivablesWidget.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -24
- 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 +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +35 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +4 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1269 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +13 -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 +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +76 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +24 -44
- 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 +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +100 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +11 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +48 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +43 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +41 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +10 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +152 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +57 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +70 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +64 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +39 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +79 -1268
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +43 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +38 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +113 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +199 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +30 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +111 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +133 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +21 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +27 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +20 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +183 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +12 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +5 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +88 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +7 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +47 -31
- 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 +43 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +189 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +390 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +57 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +27 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +20 -49
- 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 +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +21 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +27 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +104 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +62 -386
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +92 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +13 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +361 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +29 -358
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +407 -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 +26 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +6 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +12 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +211 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +146 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +85 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +36 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +50 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +66 -214
- 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 +346 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +14 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +20 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +33 -59
- 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 +31 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +14 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +17 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +250 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +181 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +24 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -73
- 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 +52 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +98 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +488 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +158 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +55 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +29 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +112 -101
- 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 +21 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +41 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +80 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +76 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +43 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +73 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +41 -36
- 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 +347 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +303 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +100 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +162 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +265 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +62 -20
- 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 +156 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +27 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +28 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +76 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +2 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +92 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +191 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +149 -26
- 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 +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +127 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +34 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +40 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +63 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +96 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +110 -22
- 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 +85 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +24 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +23 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +22 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +54 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +27 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +59 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +61 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +44 -105
- 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 +27 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +4 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +75 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +19 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +61 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +42 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +182 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +103 -91
- 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 +80 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +280 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +49 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +15 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +84 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +221 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +37 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +10 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +12 -78
- 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 +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +16 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +17 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +163 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +132 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +161 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +66 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +58 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +6 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +53 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +24 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +63 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +14 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +92 -24
- 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 +16 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +69 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +255 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +34 -16
- 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 +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +104 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +54 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +41 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +72 -19
- 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 +94 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +118 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +188 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +71 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +96 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +35 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -31
- 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 +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +67 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +14 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +66 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +20 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +2 -74
- 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 +5 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +31 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +127 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +35 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +49 -19
- 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 +15 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +9 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +66 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +28 -12
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +74 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +106 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +68 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +28 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +22 -72
- 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 +37 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +8 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +20 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +49 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +70 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +84 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +49 -67
- 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 +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +72 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +82 -33
- 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 +39 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +28 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +66 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +33 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +40 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +36 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +49 -18
- 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 +57 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +31 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +92 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +75 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +18 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +19 -19
- 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 +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +19 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -1
- 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/settings-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/interceptor.js +56 -44
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/traceId.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +28 -28
- package/package.json +1 -1
|
@@ -1,101 +1,203 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { toMinorUnits as u } from "./index117.js";
|
|
2
|
+
import { CurrencyEnumSchema as m } from "./index299.js";
|
|
3
|
+
import { z as e } from "zod";
|
|
4
|
+
const d = (t) => m, h = (t) => e.object({
|
|
5
|
+
account_holder_name: e.string().trim().min(1, t._("Account holder name is required")).max(255, t._("Account holder name must be 255 characters or less")),
|
|
6
|
+
account_number: e.string().trim().min(1, t._("Account number is required")).regex(/^\d+$/, t._("Account number must contain only digits")).min(4, t._("Account number must be at least 4 digits")).max(17, t._("Account number must be at most 17 digits")),
|
|
7
|
+
bank_name: e.string().optional(),
|
|
8
|
+
routing_number: e.string().trim().min(1, t._("Routing number is required")).regex(/^\d{9}$/, t._("Routing number must be 9 digits")),
|
|
9
|
+
display_name: e.string().max(200, t._("Display name must be 200 characters or less")).optional()
|
|
10
|
+
}), f = (t, r) => e.object({
|
|
11
|
+
amount: e.coerce.number({
|
|
12
|
+
error: t._("Amount is required")
|
|
13
|
+
}).meta({
|
|
14
|
+
title: t._("Amount")
|
|
15
|
+
}).min(0, t._("Can't be a negative number")).refine((a) => u(a) <= r, {
|
|
16
|
+
message: t._("Can't be more than the amount due")
|
|
17
|
+
}),
|
|
18
|
+
payment_date: e.date({
|
|
19
|
+
error: t._("Date is required")
|
|
20
|
+
}).meta({
|
|
21
|
+
title: t._("Date")
|
|
22
|
+
}),
|
|
23
|
+
payment_time: e.date({
|
|
24
|
+
error: t._("Time is required")
|
|
25
|
+
}).meta({
|
|
26
|
+
title: t._("Time")
|
|
27
|
+
})
|
|
28
|
+
}), q = (t) => e.object({
|
|
29
|
+
to: e.email().min(1, t._("To is required")).meta({
|
|
30
|
+
title: t._("To")
|
|
31
|
+
}),
|
|
32
|
+
subject: e.string().min(1, t._("Subject is required")).meta({
|
|
33
|
+
title: t._("Subject")
|
|
34
|
+
}),
|
|
35
|
+
body: e.string().min(1, t._("Body is required")).meta({
|
|
36
|
+
title: t._("Body")
|
|
37
|
+
})
|
|
38
|
+
}), _ = (t) => {
|
|
39
|
+
const r = e.object({
|
|
40
|
+
id: e.string().optional(),
|
|
41
|
+
quantity: e.number().min(0.1, t._("Quantity is a required field")),
|
|
42
|
+
product_id: e.string().optional(),
|
|
43
|
+
taxable: e.boolean().optional(),
|
|
44
|
+
product: e.object({
|
|
45
|
+
name: e.string().min(1, t._("Name is a required field")).max(100, t._("Product name must be 100 characters or less")),
|
|
46
|
+
description: e.string().optional(),
|
|
47
|
+
price: e.object({
|
|
48
|
+
currency: d(),
|
|
49
|
+
value: e.number()
|
|
50
|
+
}),
|
|
51
|
+
measure_unit_id: e.string().optional(),
|
|
52
|
+
type: e.enum(["product", "service"])
|
|
53
|
+
}),
|
|
54
|
+
tax_rate_value: e.number().min(0, t._("Tax rate must be 0 or greater")).max(100, t._("Tax rate must be 100 or less")).optional()
|
|
55
|
+
});
|
|
56
|
+
return e.array(r).min(1, t._("Please, add at least 1 item to proceed with this invoice"));
|
|
57
|
+
}, o = (t) => e.object({
|
|
58
|
+
// Required via `refineCounterpartRequired` — either a selected
|
|
59
|
+
// `counterpart_id` or a typed `counterpart_name` satisfies it.
|
|
60
|
+
counterpart_id: e.string().optional(),
|
|
61
|
+
counterpart_name: e.string().optional(),
|
|
62
|
+
counterpart_email: e.email({
|
|
63
|
+
message: t._("Please enter a valid email address")
|
|
64
|
+
}).or(e.literal("")).optional(),
|
|
65
|
+
entity_vat_id_id: e.string().optional(),
|
|
66
|
+
purchase_order: e.string().optional(),
|
|
67
|
+
terms_and_conditions: e.string().optional(),
|
|
68
|
+
default_billing_address_id: e.string().optional(),
|
|
69
|
+
default_shipping_address_id: e.string().optional(),
|
|
70
|
+
tax_rate: e.string().optional(),
|
|
71
|
+
memo: e.string().optional(),
|
|
72
|
+
payment_terms_id: e.string().min(1, t._("Payment terms is a required field")),
|
|
73
|
+
payment_terms_custom_date: e.date().nullable().optional(),
|
|
74
|
+
footer: e.string().optional(),
|
|
75
|
+
line_items: _(t),
|
|
76
|
+
overdue_reminder_id: e.string().nullable().optional(),
|
|
77
|
+
payment_reminder_id: e.string().nullable().optional(),
|
|
78
|
+
tax_mode: e.enum(["exclusive", "inclusive"])
|
|
79
|
+
}), x = (t, r, a = !0) => o(t).extend({
|
|
80
|
+
type: e.string(),
|
|
81
|
+
bank_account_id: r ? e.string().min(1, t._("Choose how to get paid.")) : e.string().optional(),
|
|
82
|
+
bank_account_type: e.enum(["INTERNAL", "EXTERNAL", "BANK_DETAILS"]).optional(),
|
|
83
|
+
// Files uploaded on-drop during create (EMBD-3617). Only uploaded files
|
|
84
|
+
// (with a `file.id`) land here; `id` + `include_in_email` ride the single
|
|
85
|
+
// `POST /receivables`, `name`/`size` are for the file-list row only.
|
|
86
|
+
// Create-only — the edit schema does not carry attachments.
|
|
87
|
+
attachments: e.array(e.object({
|
|
88
|
+
id: e.string(),
|
|
89
|
+
include_in_email: e.boolean(),
|
|
90
|
+
name: e.string(),
|
|
91
|
+
size: e.number()
|
|
92
|
+
})).default([]),
|
|
93
|
+
...l().shape
|
|
94
|
+
}).superRefine((n, i) => {
|
|
95
|
+
p(n, i, t), s(n, i, t, a);
|
|
96
|
+
}), k = (t) => o(t).extend({
|
|
97
|
+
bank_account_id: e.string().optional(),
|
|
98
|
+
// The edit form renders no payment-term picker — terms are fixed at
|
|
99
|
+
// creation and echoed back unchanged. Invoices created with an inline
|
|
100
|
+
// term (e.g. "Due on receipt") carry no saved `payment_terms_id`, so the
|
|
101
|
+
// base schema's `min(1)` requirement would make them fail every later
|
|
102
|
+
// edit. Relax it to optional here.
|
|
103
|
+
payment_terms_id: e.string().optional()
|
|
104
|
+
}).superRefine((r, a) => s(r, a, t)), l = () => e.object({
|
|
105
|
+
// `once` isn't part of the API's `RecurrenceFrequency` enum ('day' |
|
|
106
|
+
// 'week' | 'month' | 'quarter' | 'year') — it represents not creating a
|
|
107
|
+
// recurrence at all. The other recurrence fields are optional here and
|
|
108
|
+
// only required (via `refineRecurrenceFields` below) when frequency
|
|
109
|
+
// isn't `once`.
|
|
110
|
+
frequency: e.enum(["once", "day", "week", "month", "quarter", "year"]),
|
|
111
|
+
recurrence_start_date: e.date().optional(),
|
|
112
|
+
recurrence_end_date: e.date().optional(),
|
|
113
|
+
// Holds the deprecated `first_day`/`last_day` values as well as a plain
|
|
114
|
+
// day-of-month string ('1'..'31') from the monthly day-of-month picker —
|
|
115
|
+
// the API's `day_of_month` enum only covers the first two.
|
|
116
|
+
recurrence_issue_mode: e.string().optional(),
|
|
117
|
+
// Day of week selected for a weekly recurrence — only one can be active
|
|
118
|
+
// at a time. Note: the Monite `CreateRecurrencePayload` has no field for
|
|
119
|
+
// this — a weekly recurrence's day is derived from `start_date` alone.
|
|
120
|
+
// This is captured for now so the selection isn't lost; how it maps to
|
|
121
|
+
// the request body still needs to be decided.
|
|
122
|
+
recurrence_days_of_week: e.enum(["mo", "tu", "we", "th", "fr", "sa", "su"]).optional(),
|
|
123
|
+
// Which mutually-exclusive end condition is active — maps to the API's
|
|
124
|
+
// `end_date` vs `max_occurrences`.
|
|
125
|
+
recurrence_end_mode: e.enum(["after", "on"]).optional(),
|
|
126
|
+
recurrence_max_occurrences: e.coerce.number().int().min(1).max(1e3).optional(),
|
|
127
|
+
recurrence_subject_text: e.string().optional(),
|
|
128
|
+
recurrence_body_text: e.string().optional()
|
|
129
|
+
}), s = (t, r, a, n = !0) => {
|
|
130
|
+
const i = !!t.counterpart_id?.trim(), c = n && !!t.counterpart_name?.trim();
|
|
131
|
+
!i && !c && r.addIssue({
|
|
132
|
+
code: "custom",
|
|
133
|
+
message: a._("Customer is a required field"),
|
|
134
|
+
path: ["counterpart_id"]
|
|
135
|
+
});
|
|
136
|
+
}, p = (t, r, a) => {
|
|
137
|
+
if (!(!t.frequency || t.frequency === "once"))
|
|
138
|
+
switch (t.recurrence_start_date || r.addIssue({
|
|
139
|
+
code: "custom",
|
|
140
|
+
message: a._("Start date is required"),
|
|
141
|
+
path: ["recurrence_start_date"]
|
|
142
|
+
}), t.frequency) {
|
|
143
|
+
case "month":
|
|
144
|
+
t.recurrence_issue_mode || r.addIssue({
|
|
145
|
+
code: "custom",
|
|
146
|
+
message: a._("Day of month is required"),
|
|
147
|
+
path: ["recurrence_issue_mode"]
|
|
148
|
+
}), t.recurrence_max_occurrences || r.addIssue({
|
|
149
|
+
code: "custom",
|
|
150
|
+
message: a._("Number of months is required"),
|
|
151
|
+
path: ["recurrence_max_occurrences"]
|
|
152
|
+
});
|
|
153
|
+
break;
|
|
154
|
+
case "week":
|
|
155
|
+
t.recurrence_days_of_week || r.addIssue({
|
|
156
|
+
code: "custom",
|
|
157
|
+
message: a._("Day of week is required"),
|
|
158
|
+
path: ["recurrence_days_of_week"]
|
|
159
|
+
}), t.recurrence_max_occurrences || r.addIssue({
|
|
160
|
+
code: "custom",
|
|
161
|
+
message: a._("Number of weeks is required"),
|
|
162
|
+
path: ["recurrence_max_occurrences"]
|
|
163
|
+
});
|
|
164
|
+
break;
|
|
165
|
+
case "quarter":
|
|
166
|
+
t.recurrence_max_occurrences || r.addIssue({
|
|
167
|
+
code: "custom",
|
|
168
|
+
message: a._("Number of quarters is required"),
|
|
169
|
+
path: ["recurrence_max_occurrences"]
|
|
170
|
+
});
|
|
171
|
+
break;
|
|
172
|
+
case "year":
|
|
173
|
+
t.recurrence_max_occurrences || r.addIssue({
|
|
174
|
+
code: "custom",
|
|
175
|
+
message: a._("Number of years is required"),
|
|
176
|
+
path: ["recurrence_max_occurrences"]
|
|
177
|
+
});
|
|
178
|
+
break;
|
|
179
|
+
case "day":
|
|
180
|
+
t.recurrence_end_mode ? t.recurrence_end_mode === "after" && !t.recurrence_max_occurrences ? r.addIssue({
|
|
181
|
+
code: "custom",
|
|
182
|
+
message: a._("Number of days is required"),
|
|
183
|
+
path: ["recurrence_max_occurrences"]
|
|
184
|
+
}) : t.recurrence_end_mode === "on" && !t.recurrence_end_date && r.addIssue({
|
|
185
|
+
code: "custom",
|
|
186
|
+
message: a._("End date is required"),
|
|
187
|
+
path: ["recurrence_end_date"]
|
|
188
|
+
}) : r.addIssue({
|
|
189
|
+
code: "custom",
|
|
190
|
+
message: a._("End condition is required"),
|
|
191
|
+
path: ["recurrence_end_mode"]
|
|
192
|
+
});
|
|
193
|
+
break;
|
|
37
194
|
}
|
|
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
|
-
] }) });
|
|
98
195
|
};
|
|
99
196
|
export {
|
|
100
|
-
|
|
197
|
+
h as getCreateBankAccountSchema,
|
|
198
|
+
x as getCreateInvoiceValidationSchema,
|
|
199
|
+
d as getCurrencyEnum,
|
|
200
|
+
q as getEmailInvoiceDetailsSchema,
|
|
201
|
+
k as getUpdateInvoiceValidationSchema,
|
|
202
|
+
f as manualPaymentRecordValidationSchema
|
|
101
203
|
};
|
|
@@ -1,59 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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;
|
|
1
|
+
import { format as t } from "date-fns";
|
|
2
|
+
const a = "receipt_due", _ = "custom";
|
|
3
|
+
function n({
|
|
4
|
+
paymentTermId: e,
|
|
5
|
+
customDueDate: m
|
|
6
|
+
}) {
|
|
7
|
+
return e === _ ? m ? {
|
|
8
|
+
payment_terms: {
|
|
9
|
+
term_final: {
|
|
10
|
+
end_date: t(m, "yyyy-MM-dd")
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
} : {
|
|
14
|
+
payment_terms: {
|
|
15
|
+
term_final: {
|
|
16
|
+
number_of_days: 0
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
} : e === a ? {
|
|
20
|
+
payment_terms: {
|
|
21
|
+
term_final: {
|
|
22
|
+
number_of_days: 0
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
} : {
|
|
26
|
+
payment_terms_id: e
|
|
27
|
+
};
|
|
47
28
|
}
|
|
48
29
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
30
|
+
_ as CUSTOM_DATE_PAYMENT_TERM,
|
|
31
|
+
a as RECEIPT_DUE_PAYMENT_TERM,
|
|
32
|
+
n as buildPaymentTermsPayload
|
|
59
33
|
};
|
|
@@ -1,11 +1,113 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as a, jsx as t, Fragment as k } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as B, useState as T, useEffect as $ } from "react";
|
|
3
|
+
import { useFormContext as F, Controller as L } from "react-hook-form";
|
|
4
|
+
import { useUserPermissions as j } from "./index130.js";
|
|
5
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
6
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
10
|
+
import { Scope as E } from "../../shared/data-access/dist/lib/scopes.js";
|
|
11
|
+
import { useLingui as D } from "@lingui/react";
|
|
12
|
+
import { Plus as P, TriangleAlert as V } from "lucide-react";
|
|
13
|
+
import "react-hot-toast";
|
|
14
|
+
import "./index57.js";
|
|
15
|
+
import { useSelectableBankAccounts as I } from "./index184.js";
|
|
16
|
+
import "date-fns";
|
|
17
|
+
import "clsx";
|
|
18
|
+
import "tailwind-merge";
|
|
19
|
+
import "@radix-ui/react-dropdown-menu";
|
|
20
|
+
import "./index84.js";
|
|
21
|
+
import "./index92.js";
|
|
22
|
+
import "react-dom";
|
|
23
|
+
import "@mui/x-data-grid";
|
|
24
|
+
import { Badge as W } from "./index237.js";
|
|
25
|
+
import { Field as q, FieldContent as z, FieldError as K } from "./index153.js";
|
|
26
|
+
import { Select as O, SelectTrigger as R, SelectValue as U, SelectContent as G, SelectItem as y, SelectSeparator as H } from "./index277.js";
|
|
27
|
+
import { Typography as d } from "./index85.js";
|
|
28
|
+
import { BankAccountSectionForm as J } from "./index359.js";
|
|
29
|
+
import { Alert as M, AlertTitle as Q, AlertDescription as X } from "./index152.js";
|
|
30
|
+
import { Skeleton as Y } from "./index134.js";
|
|
31
|
+
import { getSourceLabel as g, getLineLabel as x } from "./index360.js";
|
|
32
|
+
const $t = ({
|
|
33
|
+
disabled: v,
|
|
34
|
+
embeddedBankName: p
|
|
35
|
+
}) => {
|
|
36
|
+
const {
|
|
37
|
+
i18n: e
|
|
38
|
+
} = D(), w = B(!1), {
|
|
39
|
+
control: N,
|
|
40
|
+
setValue: i,
|
|
41
|
+
getFieldState: S,
|
|
42
|
+
clearErrors: f
|
|
43
|
+
} = F(), [A, m] = T(!1), h = j().has(E.BankAccountWriteOrg), {
|
|
44
|
+
bankAccounts: o,
|
|
45
|
+
isLoading: l
|
|
46
|
+
} = I(), b = S("bank_account_id");
|
|
47
|
+
return $(() => {
|
|
48
|
+
if (o.length === 1 && !l && !w.current) {
|
|
49
|
+
const r = o[0];
|
|
50
|
+
i("bank_account_id", r.id), i("bank_account_type", r.bank_account_type), w.current = !0;
|
|
51
|
+
}
|
|
52
|
+
}, [i, o, l]), /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
53
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
|
|
54
|
+
/* @__PURE__ */ t(d, { variant: "h4", children: e._("Payment instructions") }),
|
|
55
|
+
/* @__PURE__ */ t(d, { variant: "body2", color: "muted", className: "ttw:font-medium", children: e._("Tells the customer how they can pay you. We'll include the selected info on the invoice") })
|
|
56
|
+
] }),
|
|
57
|
+
l || o.length > 0 && !A ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
58
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
59
|
+
/* @__PURE__ */ t(d, { variant: "body2", children: e._("Bank account") }),
|
|
60
|
+
/* @__PURE__ */ t(d, { variant: "caption", color: "muted", children: e._("Display your bank account number and routing number") })
|
|
61
|
+
] }),
|
|
62
|
+
l ? /* @__PURE__ */ t(Y, { className: "ttw:w-full ttw:h-9 ttw:rounded-md" }) : /* @__PURE__ */ t(L, { name: "bank_account_id", control: N, render: ({
|
|
63
|
+
field: r,
|
|
64
|
+
fieldState: {
|
|
65
|
+
error: u
|
|
66
|
+
}
|
|
67
|
+
}) => {
|
|
68
|
+
const s = o.find((n) => n.id === r.value), _ = s ? g(s.bank_account_type, p, e) : null;
|
|
69
|
+
return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ a(z, { children: [
|
|
70
|
+
/* @__PURE__ */ t("div", { className: "ttw:relative", children: /* @__PURE__ */ a(O, { ...r, disabled: v, value: r.value, onValueChange: (n) => {
|
|
71
|
+
if (n === "add_new")
|
|
72
|
+
m(!0);
|
|
73
|
+
else {
|
|
74
|
+
r.onChange(n);
|
|
75
|
+
const c = o.find((C) => C.id === n);
|
|
76
|
+
c && i("bank_account_type", c.bank_account_type), b?.invalid && f("bank_account_id");
|
|
77
|
+
}
|
|
78
|
+
}, children: [
|
|
79
|
+
/* @__PURE__ */ t(R, { id: "bank_account_id", className: "ttw:w-full", "aria-label": e._("Bank account selector"), "aria-invalid": !!u, children: /* @__PURE__ */ t(U, { placeholder: e._("Select bank account"), children: s && /* @__PURE__ */ a("span", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
80
|
+
/* @__PURE__ */ t("span", { className: "ttw:truncate", children: x(s, e) }),
|
|
81
|
+
_ && /* @__PURE__ */ t(W, { variant: "secondary", className: "ttw:shrink-0", children: _ })
|
|
82
|
+
] }) }) }),
|
|
83
|
+
/* @__PURE__ */ a(G, { children: [
|
|
84
|
+
o.map((n) => {
|
|
85
|
+
const c = g(n.bank_account_type, p, e);
|
|
86
|
+
return /* @__PURE__ */ t(y, { value: n.id, children: /* @__PURE__ */ a("span", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
87
|
+
/* @__PURE__ */ t("span", { className: "ttw:truncate", children: x(n, e) }),
|
|
88
|
+
c && /* @__PURE__ */ t("span", { className: "ttw:shrink-0 ttw:text-muted-foreground", children: c })
|
|
89
|
+
] }) }, n.id);
|
|
90
|
+
}),
|
|
91
|
+
h && /* @__PURE__ */ a(k, { children: [
|
|
92
|
+
/* @__PURE__ */ t(H, {}),
|
|
93
|
+
/* @__PURE__ */ a(y, { value: "add_new", className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary", children: [
|
|
94
|
+
/* @__PURE__ */ t(P, { className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary" }),
|
|
95
|
+
e._("Add a new account")
|
|
96
|
+
] })
|
|
97
|
+
] })
|
|
98
|
+
] })
|
|
99
|
+
] }) }),
|
|
100
|
+
/* @__PURE__ */ t(K, { errors: u ? [u] : [] })
|
|
101
|
+
] }) });
|
|
102
|
+
} })
|
|
103
|
+
] }) : /* @__PURE__ */ t(k, { children: h ? /* @__PURE__ */ t(J, { bankAccountsLength: o.length, onCreate: (r) => {
|
|
104
|
+
m(!1), i("bank_account_id", r), i("bank_account_type", "BANK_DETAILS"), b?.invalid && f("bank_account_id");
|
|
105
|
+
}, onCancel: () => m(!1) }) : /* @__PURE__ */ a(M, { enableClose: !1, variant: "warning", icon: /* @__PURE__ */ t(V, {}), children: [
|
|
106
|
+
/* @__PURE__ */ t(Q, { children: e._("There are no bank accounts on file for this account") }),
|
|
107
|
+
/* @__PURE__ */ t(X, { children: e._("A bank account is required in order to issue invoices. Contact your company admin to set one up.") })
|
|
108
|
+
] }) })
|
|
109
|
+
] });
|
|
110
|
+
};
|
|
9
111
|
export {
|
|
10
|
-
|
|
112
|
+
$t as BankAccountSection
|
|
11
113
|
};
|