@tesouro/embedded-components-react 0.2.110 → 0.2.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- 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/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/index117.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +5 -5
- 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 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +43 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +75 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +55 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +194 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +39 -5
- 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 +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +79 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +29 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +62 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +7 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +118 -33
- 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 +70 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +190 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +111 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +132 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +183 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +12 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +5 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +88 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +33 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +42 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +47 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +203 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +421 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +94 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +57 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +76 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +6 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +32 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +29 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +11 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +12 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +119 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +46 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +46 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +45 -30
- 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 +15 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +11 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +150 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +55 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +70 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +26 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +3 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +18 -48
- 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 +21 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +12 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +27 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +104 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +62 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +11 -424
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +1 -1
- 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 +7 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +34 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +25 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +6 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +214 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +58 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +398 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +69 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +407 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +36 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +50 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +34 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +345 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +18 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +14 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +34 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +17 -20
- 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 +245 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +38 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +56 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +50 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +98 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +42 -243
- 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 +146 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +108 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +143 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +86 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +24 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +41 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +73 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +491 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +168 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +41 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +346 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +301 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +99 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +159 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +262 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +23 -61
- 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 +18 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +62 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +158 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +28 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +28 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +78 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +92 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +96 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +187 -75
- 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 +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +31 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +61 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +39 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +24 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +128 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +106 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +81 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +283 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +48 -19
- 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 +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +83 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +223 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +39 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +11 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +7 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +11 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +7 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +2 -60
- 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 +22 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +54 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +28 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +60 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +149 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +73 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +93 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +76 -162
- 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 +17 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +46 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +49 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +25 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +126 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +65 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +27 -59
- 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 +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +96 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +108 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +87 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +1 -1
- 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 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +19 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +36 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +77 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +20 -283
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +17 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +168 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +128 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +158 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +61 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +67 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +59 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +8 -2
- 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 +8 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +61 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +21 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +63 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +14 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +41 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +46 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +37 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +21 -27
- 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 +6 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +17 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +41 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +23 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +72 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +89 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +33 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +10 -9
- 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 +255 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +96 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +5 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +126 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +64 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +66 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +33 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +85 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +23 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +98 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +110 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +23 -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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +38 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +73 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +68 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +35 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +8 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +19 -16
- 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 +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +13 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +20 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +49 -67
- 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 +20 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +26 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +39 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +22 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +31 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +26 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +123 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +18 -16
- 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 +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +33 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +16 -11
- 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 +11 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +71 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +82 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +52 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +52 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +52 -56
- 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 +29 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +45 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +69 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +92 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +75 -30
- 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 +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +9 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +48 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +29 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +42 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +32 -73
- 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 +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +82 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +36 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +35 -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 +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +6 -0
- 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/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/package.json +1 -1
|
@@ -1,154 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useLingui as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "@tanstack/react-query";
|
|
15
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
16
|
-
import { Scope as Q } from "../../shared/data-access/dist/lib/scopes.js";
|
|
17
|
-
import { AccessRestriction as X } from "./index132.js";
|
|
18
|
-
import { useCreateCounterpart as Y } from "./index194.js";
|
|
19
|
-
import { LanguageCodeEnum as Z } from "./index196.js";
|
|
20
|
-
import "./index57.js";
|
|
21
|
-
import "react-hot-toast";
|
|
22
|
-
import { useCreateCounterpartBank as ee } from "./index236.js";
|
|
23
|
-
import "date-fns";
|
|
24
|
-
import { LoadingSpinner as te } from "./index144.js";
|
|
25
|
-
const Te = ({
|
|
26
|
-
open: w,
|
|
27
|
-
onClose: _,
|
|
28
|
-
onCreate: u,
|
|
29
|
-
getCounterpartDefaultValues: S,
|
|
30
|
-
customerType: r
|
|
1
|
+
import { jsxs as e, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as l } from "./index85.js";
|
|
3
|
+
import { useLingui as m } from "@lingui/react";
|
|
4
|
+
import { PaymentSection as c } from "./index301.js";
|
|
5
|
+
import { useFormContext as p, Controller as w } from "react-hook-form";
|
|
6
|
+
import { Field as f, FieldContent as h, FieldLabel as u, FieldError as b } from "./index194.js";
|
|
7
|
+
import { Input as g } from "./index121.js";
|
|
8
|
+
import { RecurrenceSection as x } from "./index302.js";
|
|
9
|
+
import { RemindersSection as y } from "./index303.js";
|
|
10
|
+
const j = ({
|
|
11
|
+
paymentTerms: n,
|
|
12
|
+
disabled: i,
|
|
13
|
+
isPaymentTermsLoading: d
|
|
31
14
|
}) => {
|
|
32
15
|
const {
|
|
33
|
-
i18n:
|
|
34
|
-
} =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
remindersEnabled: r === "customer",
|
|
42
|
-
isCustomer: r === "customer",
|
|
43
|
-
isVendor: r === "vendor",
|
|
44
|
-
accountHolderName: "",
|
|
45
|
-
routingNumber: "",
|
|
46
|
-
accountNumber: "",
|
|
47
|
-
tax_id: t?.tax_id ?? "",
|
|
48
|
-
email: t?.counterpart?.email ?? "",
|
|
49
|
-
phone: t?.counterpart?.phone ?? "",
|
|
50
|
-
line1: t?.counterpart?.line1 ?? "",
|
|
51
|
-
line2: t?.counterpart?.line2 ?? "",
|
|
52
|
-
city: t?.counterpart?.city ?? "",
|
|
53
|
-
state: t?.counterpart.state ?? "",
|
|
54
|
-
country: t?.counterpart?.country ?? "US",
|
|
55
|
-
postalCode: t?.counterpart?.postalCode ?? "",
|
|
56
|
-
firstName: t && "firstName" in t.counterpart ? t.counterpart.firstName : "",
|
|
57
|
-
lastName: t && "lastName" in t.counterpart ? t.counterpart.lastName : "",
|
|
58
|
-
companyName: t && "companyName" in t.counterpart ? t.counterpart.companyName : ""
|
|
59
|
-
}), [r, t]), {
|
|
60
|
-
watch: o,
|
|
61
|
-
...h
|
|
62
|
-
} = W({
|
|
63
|
-
resolver: G(J(n, s ?? "organization", r)),
|
|
64
|
-
defaultValues: $
|
|
65
|
-
}), z = !!(o("companyName") || o("firstName") && o("lastName")) && !!o("email") && (r === "vendor" && !!o("line1") && !!o("city") && !!o("state") && !!o("postalCode") && !!o("country") || r === "customer"), D = I((m) => {
|
|
66
|
-
m.preventDefault(), m.stopPropagation(), h.handleSubmit(async (e) => {
|
|
67
|
-
const l = e.line1?.trim() && e.city?.trim() ? {
|
|
68
|
-
city: e.city ?? "",
|
|
69
|
-
country: e.country ?? "US",
|
|
70
|
-
line1: e.line1 ?? "",
|
|
71
|
-
line2: e.line2,
|
|
72
|
-
postal_code: e.postalCode ?? "",
|
|
73
|
-
state: e.state ?? ""
|
|
74
|
-
} : void 0, P = {
|
|
75
|
-
account_holder_name: e.accountHolderName,
|
|
76
|
-
routing_number: e.routingNumber,
|
|
77
|
-
account_number: e.accountNumber,
|
|
78
|
-
is_default_for_currency: !0,
|
|
79
|
-
country: "US",
|
|
80
|
-
currency: "USD"
|
|
81
|
-
}, F = !!e.accountHolderName || !!e.accountNumber || !!e.routingNumber, N = {
|
|
82
|
-
tax_id: e.tax_id,
|
|
83
|
-
is_customer: e.isCustomer,
|
|
84
|
-
is_vendor: e.isVendor,
|
|
85
|
-
language: Z.find((i) => i === n.locale.split("-")[0]) ?? "en",
|
|
86
|
-
reminders_enabled: e.remindersEnabled
|
|
87
|
-
}, C = s === "individual" ? {
|
|
88
|
-
...N,
|
|
89
|
-
type: "individual",
|
|
90
|
-
individual: {
|
|
91
|
-
first_name: e.firstName ?? "",
|
|
92
|
-
last_name: e.lastName ?? "",
|
|
93
|
-
phone: e.phone ?? "",
|
|
94
|
-
email: e.email ?? "",
|
|
95
|
-
...l ? {
|
|
96
|
-
address: l
|
|
97
|
-
} : {}
|
|
98
|
-
}
|
|
99
|
-
} : {
|
|
100
|
-
...N,
|
|
101
|
-
type: "organization",
|
|
102
|
-
organization: {
|
|
103
|
-
legal_name: e.companyName ?? "",
|
|
104
|
-
phone: e.phone ?? "",
|
|
105
|
-
email: e.email ?? "",
|
|
106
|
-
...l ? {
|
|
107
|
-
address: l
|
|
108
|
-
} : {}
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
if (F) {
|
|
112
|
-
const i = await d(C);
|
|
113
|
-
return y({
|
|
114
|
-
path: {
|
|
115
|
-
counterpart_id: i.id
|
|
116
|
-
},
|
|
117
|
-
body: P
|
|
118
|
-
}, {
|
|
119
|
-
onSuccess: () => {
|
|
120
|
-
u && u(i.id);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
} else
|
|
124
|
-
return d(C, {
|
|
125
|
-
onSuccess: ({
|
|
126
|
-
id: i
|
|
127
|
-
}) => {
|
|
128
|
-
u && u(i);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
})(m);
|
|
132
|
-
}, [d, s, y, h.handleSubmit, n]);
|
|
133
|
-
return /* @__PURE__ */ a(V, { open: w, onOpenChange: _, children: /* @__PURE__ */ p(A, { className: "ttw:gap-0", children: [
|
|
134
|
-
/* @__PURE__ */ p(H, { className: "ttw:border-b ttw:border-border", children: [
|
|
135
|
-
/* @__PURE__ */ a(L, { className: "ttw:text-2xl", children: n._("Add {customerType}", {
|
|
136
|
-
customerType: r
|
|
137
|
-
}) }),
|
|
138
|
-
/* @__PURE__ */ a(j, { className: "ttw:max-w-130", children: r === "vendor" ? n._("Save the people and businesses you pay so you can send payments when bills come in.") : n._("Save the people and businesses you sell to.") })
|
|
16
|
+
i18n: r
|
|
17
|
+
} = m(), {
|
|
18
|
+
control: s
|
|
19
|
+
} = p();
|
|
20
|
+
return /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
21
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
|
|
22
|
+
/* @__PURE__ */ t(l, { variant: "h4", children: r._("Billing details") }),
|
|
23
|
+
/* @__PURE__ */ t(l, { variant: "body2", color: "muted", className: "ttw:font-medium", children: r._("What are the billing terms?") })
|
|
139
24
|
] }),
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
25
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-6", children: [
|
|
26
|
+
/* @__PURE__ */ t(x, {}),
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-start ttw:gap-2.5 ttw:w-full", children: [
|
|
28
|
+
/* @__PURE__ */ t(c, { paymentTerms: n, disabled: i, isLoading: d }),
|
|
29
|
+
/* @__PURE__ */ t(w, { name: "purchase_order", control: s, render: ({
|
|
30
|
+
field: a,
|
|
31
|
+
fieldState: {
|
|
32
|
+
error: o
|
|
33
|
+
}
|
|
34
|
+
}) => /* @__PURE__ */ t(f, { children: /* @__PURE__ */ e(h, { children: [
|
|
35
|
+
/* @__PURE__ */ e(u, { htmlFor: a.name, className: "ttw:text-nowrap", children: [
|
|
36
|
+
r._("PO Number"),
|
|
37
|
+
/* @__PURE__ */ t(l, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: r._("(optional)") })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ t(g, { ...a, id: a.name, disabled: i, "aria-invalid": !!o }),
|
|
40
|
+
/* @__PURE__ */ t(b, { errors: o ? [o] : [] })
|
|
41
|
+
] }) }) })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ t(y, { disabled: i })
|
|
149
44
|
] })
|
|
150
|
-
] })
|
|
45
|
+
] });
|
|
151
46
|
};
|
|
152
47
|
export {
|
|
153
|
-
|
|
48
|
+
j as BillingSection
|
|
154
49
|
};
|
|
@@ -1,59 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
variant: {
|
|
10
|
-
default: "ttw:bg-background ttw:text-foreground",
|
|
11
|
-
info: "ttw:bg-blue-50 ttw:text-blue-900 ttw:dark:bg-blue-950 ttw:dark:text-blue-100",
|
|
12
|
-
warning: "ttw:bg-yellow-50 ttw:text-yellow-900 ttw:dark:bg-yellow-950 ttw:dark:text-yellow-100",
|
|
13
|
-
error: "ttw:bg-red-50 ttw:text-red-900 ttw:dark:bg-red-950 ttw:dark:text-red-100",
|
|
14
|
-
success: "ttw:bg-green-50 ttw:text-green-900 ttw:dark:bg-green-950 ttw:dark:text-green-100"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
defaultVariants: {
|
|
18
|
-
variant: "default"
|
|
19
|
-
}
|
|
20
|
-
}), x = ({
|
|
21
|
-
className: r,
|
|
22
|
-
variant: a,
|
|
23
|
-
icon: t,
|
|
24
|
-
children: w,
|
|
25
|
-
ref: n,
|
|
26
|
-
onClose: s,
|
|
27
|
-
enableClose: i = !0,
|
|
28
|
-
...o
|
|
1
|
+
import { jsxs as a, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "./index85.js";
|
|
3
|
+
import { useLingui as w } from "@lingui/react";
|
|
4
|
+
import { useFormContext as f, Controller as s } from "react-hook-form";
|
|
5
|
+
import { Field as d, FieldContent as c, FieldLabel as m, FieldDescription as h, FieldError as p } from "./index194.js";
|
|
6
|
+
import { Textarea as u } from "./index122.js";
|
|
7
|
+
const _ = ({
|
|
8
|
+
disabled: n
|
|
29
9
|
}) => {
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
const {
|
|
11
|
+
i18n: t
|
|
12
|
+
} = w(), {
|
|
13
|
+
control: l
|
|
14
|
+
} = f();
|
|
15
|
+
return /* @__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: [
|
|
16
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
|
|
17
|
+
/* @__PURE__ */ e(i, { variant: "h4", children: t._("Notes") }),
|
|
18
|
+
/* @__PURE__ */ e(i, { variant: "body2", color: "muted", className: "ttw:font-medium", children: t._("Provide additional information for your customer.") })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ e(s, { name: "memo", control: l, render: ({
|
|
21
|
+
field: r,
|
|
22
|
+
fieldState: {
|
|
23
|
+
error: o
|
|
24
|
+
}
|
|
25
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ a(c, { children: [
|
|
26
|
+
/* @__PURE__ */ a(m, { htmlFor: r.name, className: "ttw:text-nowrap", children: [
|
|
27
|
+
t._("Opening note to the customer"),
|
|
28
|
+
/* @__PURE__ */ e(i, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: t._("(optional)") })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ e(u, { ...r, id: r.name, disabled: n, placeholder: t._("e.g., As discussed on our call, please find the attached invoice."), className: "ttw:h-26 ttw:resize-none", "aria-invalid": !!o }),
|
|
31
|
+
/* @__PURE__ */ e(h, { children: t._("Appears above your line items. Use it to reference a discussion, agreement, or project.") }),
|
|
32
|
+
/* @__PURE__ */ e(p, { errors: o ? [o] : [] })
|
|
33
|
+
] }) }) }),
|
|
34
|
+
/* @__PURE__ */ e(s, { name: "footer", control: l, render: ({
|
|
35
|
+
field: r,
|
|
36
|
+
fieldState: {
|
|
37
|
+
error: o
|
|
38
|
+
}
|
|
39
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ a(c, { children: [
|
|
40
|
+
/* @__PURE__ */ a(m, { htmlFor: r.name, className: "ttw:text-nowrap", children: [
|
|
41
|
+
t._("Closing note to the customer"),
|
|
42
|
+
/* @__PURE__ */ e(i, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: t._("(optional)") })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ e(u, { ...r, id: r.name, disabled: n, placeholder: t._("e.g., Thank you for your business!"), className: "ttw:h-26 ttw:resize-none", "aria-invalid": !!o }),
|
|
45
|
+
/* @__PURE__ */ e(h, { children: t._("Appears below your line items. Commonly used for thank you messages or payment instructions.") }),
|
|
46
|
+
/* @__PURE__ */ e(p, { errors: o ? [o] : [] })
|
|
47
|
+
] }) }) })
|
|
39
48
|
] });
|
|
40
49
|
};
|
|
41
|
-
x.displayName = "Alert";
|
|
42
|
-
const h = ({
|
|
43
|
-
className: r,
|
|
44
|
-
ref: a,
|
|
45
|
-
...t
|
|
46
|
-
}) => /* @__PURE__ */ e("h3", { ref: a, className: l("ttw:mb-1 ttw:font-medium ttw:leading-none ttw:tracking-tight", r), ...t });
|
|
47
|
-
h.displayName = "AlertTitle";
|
|
48
|
-
const k = ({
|
|
49
|
-
className: r,
|
|
50
|
-
ref: a,
|
|
51
|
-
...t
|
|
52
|
-
}) => /* @__PURE__ */ e("p", { ref: a, className: l("ttw:text-sm ttw:[&_p]:leading-relaxed ttw:font-normal", r), ...t });
|
|
53
|
-
k.displayName = "AlertDescription";
|
|
54
50
|
export {
|
|
55
|
-
|
|
56
|
-
k as AlertDescription,
|
|
57
|
-
h as AlertTitle,
|
|
58
|
-
b as alertVariants
|
|
51
|
+
_ as NotesSection
|
|
59
52
|
};
|
|
@@ -1,73 +1,207 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as Q } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as _, useRef as y, useEffect as N } from "react";
|
|
3
|
+
import { useFormContext as W } from "react-hook-form";
|
|
4
|
+
import { useLingui as tt } from "@lingui/react";
|
|
5
|
+
import { Trash2 as et, Loader2 as at, FileText as rt, X as it, ImageIcon as lt } from "lucide-react";
|
|
6
|
+
import { Typography as n } from "./index85.js";
|
|
7
|
+
import { Button as S } from "./index84.js";
|
|
8
|
+
import { Checkbox as nt } from "./index304.js";
|
|
9
|
+
import { Separator as st } from "./index179.js";
|
|
10
|
+
import { cn as ot } from "./index100.js";
|
|
11
|
+
import "./index57.js";
|
|
12
|
+
import "react-hot-toast";
|
|
13
|
+
import "./index92.js";
|
|
14
|
+
import { useFileInput as ct } from "./index61.js";
|
|
15
|
+
import "react-dom";
|
|
16
|
+
import "@mui/x-data-grid";
|
|
17
|
+
import { ATTACHMENT_ACCEPTED_FORMATS as k, ATTACHMENT_MAX_FILE_SIZE_MB as P, ATTACHMENT_MAX_FILE_COUNT as dt, ATTACHMENT_ACCEPTED_EXTENSIONS as mt } from "./index237.js";
|
|
18
|
+
import { useDeleteFile as ut } from "./index305.js";
|
|
19
|
+
import { useUploadReceivableAttachment as wt } from "./index306.js";
|
|
20
|
+
import { validateAttachmentFile as pt } from "./index307.js";
|
|
21
|
+
import { formatFileSize as ft } from "./index308.js";
|
|
22
|
+
import { toFileArray as B } from "./index309.js";
|
|
23
|
+
const Ot = ({
|
|
24
|
+
disabled: c,
|
|
25
|
+
onUploadingChange: u
|
|
26
|
+
}) => {
|
|
27
|
+
const {
|
|
28
|
+
i18n: r
|
|
29
|
+
} = tt(), {
|
|
30
|
+
watch: F,
|
|
31
|
+
setValue: h,
|
|
32
|
+
getValues: w
|
|
33
|
+
} = W(), {
|
|
34
|
+
mutateAsync: O
|
|
35
|
+
} = wt(), {
|
|
36
|
+
mutate: I
|
|
37
|
+
} = ut(), {
|
|
38
|
+
FileInput: U,
|
|
39
|
+
openFileInput: L,
|
|
40
|
+
resetInput: R
|
|
41
|
+
} = ct({
|
|
42
|
+
acceptedFormats: k,
|
|
43
|
+
maxFileSizeInMB: P
|
|
44
|
+
}), g = F("attachments") ?? [], T = F("frequency"), G = !!T && T !== "once", [m, p] = _([]), [H, b] = _(!1), [X, x] = _(!1), A = y(0), f = y(!1);
|
|
45
|
+
N(() => (f.current = !1, () => {
|
|
46
|
+
f.current = !0;
|
|
47
|
+
}), []);
|
|
48
|
+
const v = y(/* @__PURE__ */ new Set()), C = m.some((t) => t.status === "uploading");
|
|
49
|
+
N(() => {
|
|
50
|
+
u?.(C);
|
|
51
|
+
}, [C, u]), N(() => () => u?.(!1), [u]);
|
|
52
|
+
const z = () => (A.current += 1, `attachment-${A.current}`), j = (t) => t === "too_large" ? r._("File too large (max 3 MB)") : r._("File type not supported. Use PDF, DOC, JPG or PNG"), J = async (t, i) => {
|
|
53
|
+
try {
|
|
54
|
+
const a = await O({
|
|
55
|
+
file: i,
|
|
56
|
+
file_type: "attachments"
|
|
57
|
+
});
|
|
58
|
+
if (f.current || v.current.delete(t)) {
|
|
59
|
+
I({
|
|
60
|
+
path: {
|
|
61
|
+
file_id: a.id
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
p((d) => d.filter((s) => s.localId !== t)), h("attachments", [...w("attachments") ?? [], {
|
|
67
|
+
id: a.id,
|
|
68
|
+
include_in_email: !0,
|
|
69
|
+
name: a.name,
|
|
70
|
+
size: a.size
|
|
71
|
+
}], {
|
|
72
|
+
shouldDirty: !0
|
|
73
|
+
});
|
|
74
|
+
} catch {
|
|
75
|
+
const a = v.current.delete(t);
|
|
76
|
+
if (f.current || a) return;
|
|
77
|
+
p((d) => d.map((s) => s.localId === t ? {
|
|
78
|
+
...s,
|
|
79
|
+
status: "error",
|
|
80
|
+
errorMessage: r._("Upload failed. Please try again.")
|
|
81
|
+
} : s));
|
|
13
82
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
83
|
+
}, D = (t) => {
|
|
84
|
+
if (t.length === 0) return;
|
|
85
|
+
const i = w("attachments") ?? [], a = m.filter((o) => o.status === "uploading").length;
|
|
86
|
+
let d = dt - i.length - a;
|
|
87
|
+
const s = [];
|
|
88
|
+
let E = !1;
|
|
89
|
+
for (const o of t) {
|
|
90
|
+
const M = pt(o, {
|
|
91
|
+
acceptedFormats: k,
|
|
92
|
+
acceptedExtensions: mt,
|
|
93
|
+
maxFileSizeInMB: P
|
|
94
|
+
});
|
|
95
|
+
if (M) {
|
|
96
|
+
s.push({
|
|
97
|
+
localId: z(),
|
|
98
|
+
name: o.name,
|
|
99
|
+
size: o.size,
|
|
100
|
+
status: "error",
|
|
101
|
+
errorMessage: j(M)
|
|
102
|
+
});
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if (d <= 0) {
|
|
106
|
+
E = !0;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
d -= 1;
|
|
110
|
+
const $ = z();
|
|
111
|
+
s.push({
|
|
112
|
+
localId: $,
|
|
113
|
+
name: o.name,
|
|
114
|
+
size: o.size,
|
|
115
|
+
status: "uploading"
|
|
116
|
+
}), J($, o);
|
|
117
|
+
}
|
|
118
|
+
s.length > 0 && p((o) => [...o, ...s]), b(E);
|
|
119
|
+
}, V = (t, i) => {
|
|
120
|
+
h("attachments", (w("attachments") ?? []).map((a) => a.id === t ? {
|
|
121
|
+
...a,
|
|
122
|
+
include_in_email: i
|
|
123
|
+
} : a), {
|
|
124
|
+
shouldDirty: !0
|
|
125
|
+
});
|
|
126
|
+
}, q = (t) => {
|
|
127
|
+
h("attachments", (w("attachments") ?? []).filter((i) => i.id !== t), {
|
|
128
|
+
shouldDirty: !0
|
|
129
|
+
}), b(!1), I({
|
|
130
|
+
path: {
|
|
131
|
+
file_id: t
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}, Y = (t) => {
|
|
135
|
+
m.some((i) => i.localId === t && i.status === "uploading") && v.current.add(t), p((i) => i.filter((a) => a.localId !== t)), b(!1);
|
|
136
|
+
}, Z = (t) => {
|
|
137
|
+
t.preventDefault(), x(!1), !c && D(B(t.dataTransfer.files));
|
|
138
|
+
}, K = g.length > 0 || m.length > 0;
|
|
139
|
+
return /* @__PURE__ */ l("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
140
|
+
/* @__PURE__ */ l("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
|
|
141
|
+
/* @__PURE__ */ e(n, { variant: "h4", children: r._("Attachments") }),
|
|
142
|
+
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", className: "ttw:font-medium", children: r._("Associate additional documents with this invoice for your own reference or to share with the customer. e.g. contracts, photos, terms and conditions, etc.") })
|
|
143
|
+
] }),
|
|
144
|
+
K && /* @__PURE__ */ l("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
145
|
+
g.length > 0 && /* @__PURE__ */ l(Q, { children: [
|
|
146
|
+
/* @__PURE__ */ e(n, { variant: "caption", color: "muted", children: G ? r._("Selected files will be attached to every invoice email in the recurring series.") : r._("Selected files will be attached to the invoice email sent to the customer.") }),
|
|
147
|
+
/* @__PURE__ */ e(st, {})
|
|
148
|
+
] }),
|
|
149
|
+
/* @__PURE__ */ l("ul", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
150
|
+
g.map((t) => {
|
|
151
|
+
const i = `attachment-include-${t.id}`;
|
|
152
|
+
return /* @__PURE__ */ l("li", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
153
|
+
/* @__PURE__ */ e(
|
|
154
|
+
nt,
|
|
155
|
+
{
|
|
156
|
+
id: i,
|
|
157
|
+
checked: t.include_in_email,
|
|
158
|
+
disabled: c,
|
|
159
|
+
"aria-label": `${r._("Include in email:")} ${t.name}`,
|
|
160
|
+
onCheckedChange: (a) => V(t.id, a === !0)
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
/* @__PURE__ */ l("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:rounded-lg ttw:gap-3 ttw:bg-muted ttw:px-2 ttw:py-1", children: [
|
|
164
|
+
/* @__PURE__ */ l("div", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:gap-1", children: [
|
|
165
|
+
/* @__PURE__ */ e(n, { variant: "body2", className: "ttw:truncate", children: t.name }),
|
|
166
|
+
/* @__PURE__ */ l(n, { variant: "body2", color: "muted", className: "ttw:shrink-0", children: [
|
|
167
|
+
"(",
|
|
168
|
+
ft(t.size),
|
|
169
|
+
")"
|
|
170
|
+
] })
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ e(S, { type: "button", variant: "ghost", size: "icon", className: "ttw:size-4", disabled: c, "aria-label": `${r._("Remove")} ${t.name}`, onClick: () => q(t.id), children: /* @__PURE__ */ e(et, { className: "ttw:size-4" }) })
|
|
173
|
+
] })
|
|
174
|
+
] }, t.id);
|
|
175
|
+
}),
|
|
176
|
+
m.map((t) => /* @__PURE__ */ l("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted ttw:p-3", children: [
|
|
177
|
+
t.status === "uploading" ? /* @__PURE__ */ e(at, { className: "ttw:size-5 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ e(rt, { className: "ttw:size-5 ttw:shrink-0 ttw:text-destructive" }),
|
|
178
|
+
/* @__PURE__ */ l("div", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col", children: [
|
|
179
|
+
/* @__PURE__ */ e(n, { variant: "body2", className: "ttw:truncate", children: t.name }),
|
|
180
|
+
t.status === "uploading" ? /* @__PURE__ */ e(n, { variant: "caption", color: "muted", children: r._("Uploading…") }) : /* @__PURE__ */ e(n, { variant: "caption", role: "alert", className: "ttw:text-destructive", children: t.errorMessage })
|
|
181
|
+
] }),
|
|
182
|
+
/* @__PURE__ */ e(S, { type: "button", variant: "ghost", size: "icon", disabled: c, "aria-label": `${r._("Remove")} ${t.name}`, onClick: () => Y(t.localId), children: /* @__PURE__ */ e(it, { className: "ttw:size-4" }) })
|
|
183
|
+
] }, t.localId))
|
|
184
|
+
] })
|
|
185
|
+
] }),
|
|
186
|
+
/* @__PURE__ */ l("button", { type: "button", disabled: c, onClick: L, onDragOver: (t) => {
|
|
187
|
+
t.preventDefault(), c || x(!0);
|
|
188
|
+
}, onDragLeave: (t) => {
|
|
189
|
+
t.preventDefault(), x(!1);
|
|
190
|
+
}, onDrop: Z, className: ot("ttw:flex ttw:w-full ttw:flex-col ttw:items-center ttw:gap-2 ttw:rounded-xl ttw:border ttw:border-dashed ttw:p-6 ttw:text-center ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", X ? "ttw:border-primary ttw:bg-primary/5" : "ttw:border-border ttw:bg-muted"), children: [
|
|
191
|
+
/* @__PURE__ */ e("span", { className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-border", children: /* @__PURE__ */ e(lt, { className: "ttw:size-5 ttw:text-muted-foreground" }) }),
|
|
192
|
+
/* @__PURE__ */ l(n, { variant: "body2", children: [
|
|
193
|
+
r._("Drop your files here, or"),
|
|
194
|
+
" ",
|
|
195
|
+
/* @__PURE__ */ e("span", { className: "ttw:text-primary ttw:underline", children: r._("browse to upload") })
|
|
196
|
+
] }),
|
|
197
|
+
/* @__PURE__ */ e(n, { variant: "caption", color: "muted", children: r._("PDF, DOC, JPG, PNG (max. 3MB)") })
|
|
198
|
+
] }),
|
|
199
|
+
H && /* @__PURE__ */ e(n, { variant: "body2", role: "alert", className: "ttw:text-destructive", children: r._("You can attach up to 10 files.") }),
|
|
200
|
+
/* @__PURE__ */ e(U, { multiple: !0, onChange: (t) => {
|
|
201
|
+
D(B(t.target.files)), R();
|
|
202
|
+
} })
|
|
43
203
|
] });
|
|
44
|
-
}
|
|
45
|
-
function F({
|
|
46
|
-
className: e,
|
|
47
|
-
...t
|
|
48
|
-
}) {
|
|
49
|
-
return /* @__PURE__ */ l("p", { "data-slot": "field-description", className: o("ttw:text-sm ttw:leading-normal ttw:font-normal ttw:text-muted-foreground ttw:group-has-[[data-orientation=horizontal]]/field:text-balance", "ttw:last:mt-0 ttw:nth-last-2:-mt-1 ttw:[[data-variant=legend]+&]:-mt-1.5", "ttw:[&>a]:underline ttw:[&>a]:underline-offset-4 ttw:[&>a:hover]:text-primary", e), ...t });
|
|
50
|
-
}
|
|
51
|
-
function z({
|
|
52
|
-
className: e,
|
|
53
|
-
children: t,
|
|
54
|
-
errors: a,
|
|
55
|
-
...i
|
|
56
|
-
}) {
|
|
57
|
-
const d = c(() => {
|
|
58
|
-
if (t)
|
|
59
|
-
return t;
|
|
60
|
-
if (!a?.length)
|
|
61
|
-
return null;
|
|
62
|
-
const s = [...new Map(a.map((r) => [r?.message, r])).values()];
|
|
63
|
-
return s?.length == 1 ? s[0]?.message : /* @__PURE__ */ l("ul", { className: "ttw:ml-4 ttw:flex ttw:list-disc ttw:flex-col ttw:gap-1", children: s.map((r, n) => r?.message && /* @__PURE__ */ l("li", { children: r.message }, n)) });
|
|
64
|
-
}, [t, a]);
|
|
65
|
-
return d ? /* @__PURE__ */ l("div", { role: "alert", "data-slot": "field-error", className: o("ttw:text-sm ttw:font-normal ttw:text-destructive", e), ...i, children: d }) : null;
|
|
66
|
-
}
|
|
204
|
+
};
|
|
67
205
|
export {
|
|
68
|
-
|
|
69
|
-
k as FieldContent,
|
|
70
|
-
F as FieldDescription,
|
|
71
|
-
z as FieldError,
|
|
72
|
-
y as FieldLabel
|
|
206
|
+
Ot as AttachmentSection
|
|
73
207
|
};
|