@tesouro/embedded-components-react 0.2.17 → 0.2.19
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 +9 -14
- package/dist/lib/ReceivablesWidget.js +29 -27
- package/dist/lib/monite-sdk.d.ts +3 -3
- package/dist/lib/monite-sdk.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +13 -10
- 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 +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -1
- 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 +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +76 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +31 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +26 -57
- 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 +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +117 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +7 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +11 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +49 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +42 -22
- 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 +15 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +148 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +70 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +3 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +58 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +75 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +5 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +89 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +57 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +42 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +73 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +57 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +195 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +14 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +80 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +28 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +38 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +248 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +182 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +11 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +111 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +83 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +107 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +107 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +60 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +88 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +48 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +114 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +68 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +185 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +30 -21
- 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 +121 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +56 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +26 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +21 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +11 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +4 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +368 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +20 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +86 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +25 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +13 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +21 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +115 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +24 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +87 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +11 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +58 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +397 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +68 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +406 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +99 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +25 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +7 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +214 -10
- 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 +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +2 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +146 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +85 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +23 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +183 -26
- 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 +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +36 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +54 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +345 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +11 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -299
- 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 +25 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +33 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +34 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +15 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +23 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +39 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +50 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +30 -63
- 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 +97 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +44 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +47 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +29 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +5 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +77 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +32 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +14 -28
- 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 +28 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +36 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +63 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +92 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +108 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +83 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +73 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +44 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +10 -40
- 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 +484 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +164 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +39 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +58 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +30 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +113 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +40 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +50 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +2 -36
- 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 +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +96 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +192 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +22 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +57 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +17 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +62 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +157 -94
- 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 +28 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +75 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +23 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +62 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +44 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +187 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +105 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +79 -186
- 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 +284 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +47 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +15 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +221 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +34 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +149 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -149
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +159 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +133 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +157 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +66 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +58 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +6 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +9 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +56 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +19 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +40 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +35 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +342 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +302 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +103 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +157 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +263 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +23 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +18 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +76 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +42 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +126 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +30 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +44 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +32 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +95 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +24 -480
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +54 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +42 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +17 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +60 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +93 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +123 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +38 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +40 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +255 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +32 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +65 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +88 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +35 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +32 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +53 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +22 -48
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +48 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +13 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +65 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +21 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +120 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +69 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +16 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +11 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +30 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +126 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +69 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +19 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +39 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +33 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +85 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +102 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +109 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +28 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +23 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +38 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +9 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +94 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +37 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +33 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +17 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +53 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +29 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +68 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +40 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +81 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +46 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +39 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +56 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +68 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +20 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +39 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +50 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +58 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +29 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +54 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +94 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +21 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +70 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +43 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +29 -27
- package/package.json +2 -1
|
@@ -1,114 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground", children: l._("(optional)") })
|
|
29
|
-
] }) }) }),
|
|
30
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
31
|
-
/* @__PURE__ */ e(w, { name: "line1", control: h, render: ({
|
|
32
|
-
field: t,
|
|
33
|
-
fieldState: {
|
|
34
|
-
error: r
|
|
35
|
-
}
|
|
36
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
37
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Street address") }),
|
|
38
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
39
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
40
|
-
] }) }) }),
|
|
41
|
-
/* @__PURE__ */ e(w, { name: "line2", control: h, render: ({
|
|
42
|
-
field: t,
|
|
43
|
-
fieldState: {
|
|
44
|
-
error: r
|
|
45
|
-
}
|
|
46
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
47
|
-
/* @__PURE__ */ a(c, { htmlFor: t.name, className: "ttw:gap-1", children: [
|
|
48
|
-
l._("Apt, suite, floor, etc."),
|
|
49
|
-
i && /* @__PURE__ */ e(b, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: l._("(optional)") })
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
52
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
53
|
-
] }) }) })
|
|
54
|
-
] }),
|
|
55
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
56
|
-
/* @__PURE__ */ e(w, { name: "city", control: h, render: ({
|
|
57
|
-
field: t,
|
|
58
|
-
fieldState: {
|
|
59
|
-
error: r
|
|
60
|
-
}
|
|
61
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
62
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("City") }),
|
|
63
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
64
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
65
|
-
] }) }) }),
|
|
66
|
-
/* @__PURE__ */ e(w, { name: "state", control: h, render: ({
|
|
67
|
-
field: t,
|
|
68
|
-
fieldState: {
|
|
69
|
-
error: r
|
|
70
|
-
}
|
|
71
|
-
}) => N("country") === "US" ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
72
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
|
|
73
|
-
/* @__PURE__ */ a(F, { value: t.value ?? void 0, onValueChange: t.onChange, disabled: n, children: [
|
|
74
|
-
/* @__PURE__ */ e(_, { ref: t.ref, onBlur: t.onBlur, "aria-invalid": !!r || void 0, className: g("ttw:w-full", (d || i) && "ttw:bg-white"), disabled: n, children: /* @__PURE__ */ e(j, { placeholder: l._("Select a state") }) }),
|
|
75
|
-
/* @__PURE__ */ e(A, { children: Object.entries(x).map(([p, C]) => /* @__PURE__ */ a(E, { value: p, children: [
|
|
76
|
-
C,
|
|
77
|
-
" — ",
|
|
78
|
-
p
|
|
79
|
-
] }, p)) })
|
|
80
|
-
] }),
|
|
81
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
82
|
-
] }) }) : /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
83
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
|
|
84
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
85
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
86
|
-
] }) }) })
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
89
|
-
/* @__PURE__ */ e(w, { name: "postalCode", control: h, render: ({
|
|
90
|
-
field: t,
|
|
91
|
-
fieldState: {
|
|
92
|
-
error: r
|
|
93
|
-
}
|
|
94
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
95
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Postal code") }),
|
|
96
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
97
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
98
|
-
] }) }) }),
|
|
99
|
-
/* @__PURE__ */ e(w, { name: "country", control: h, render: ({
|
|
100
|
-
field: t,
|
|
101
|
-
fieldState: {
|
|
102
|
-
error: r
|
|
103
|
-
}
|
|
104
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
105
|
-
/* @__PURE__ */ e(c, { children: l._("Country") }),
|
|
106
|
-
/* @__PURE__ */ e(L, { value: t.value, className: d || i ? "ttw:bg-white" : "", onChange: t.onChange, invalid: !!r, disabled: n, container: u?.current, allowedCountries: ["US"] }),
|
|
107
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
108
|
-
] }) }) })
|
|
109
|
-
] })
|
|
110
|
-
] });
|
|
111
|
-
};
|
|
1
|
+
import { jsxs as r, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { classNames as a } from "./index173.js";
|
|
3
|
+
import { Stack as e } from "@mui/material";
|
|
4
|
+
const x = ({
|
|
5
|
+
className: t,
|
|
6
|
+
searchField: i,
|
|
7
|
+
children: s,
|
|
8
|
+
sx: n
|
|
9
|
+
}) => /* @__PURE__ */ r(e, { direction: "row", justifyContent: "space-between", alignItems: "center", className: a("Monite-Filters", t), sx: Object.assign({
|
|
10
|
+
"& > *": {
|
|
11
|
+
flexBasis: "fit-content",
|
|
12
|
+
flexGrow: 1
|
|
13
|
+
},
|
|
14
|
+
"& > .Monite-SearchField": {
|
|
15
|
+
maxWidth: "400px",
|
|
16
|
+
width: "100%"
|
|
17
|
+
}
|
|
18
|
+
}, n || {}), children: [
|
|
19
|
+
i,
|
|
20
|
+
/* @__PURE__ */ o(e, { gap: 1, direction: "row", justifyContent: "flex-end", alignItems: "center", className: "Monite-Filters-Group", sx: {
|
|
21
|
+
ml: 2,
|
|
22
|
+
"& .Monite-FilterControl": {
|
|
23
|
+
maxWidth: "160px",
|
|
24
|
+
width: "100%"
|
|
25
|
+
}
|
|
26
|
+
}, children: s })
|
|
27
|
+
] });
|
|
112
28
|
export {
|
|
113
|
-
|
|
29
|
+
x as FilterContainer
|
|
114
30
|
};
|
|
@@ -1,90 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "date-fns";
|
|
11
|
-
import { getCounterpartName as k } from "./index7.js";
|
|
12
|
-
import { useUpdateCounterpartAddress as D } from "./index307.js";
|
|
13
|
-
import { useCreateCounterpartAddress as T } from "./index412.js";
|
|
14
|
-
import { LoadingSpinner as V } from "./index169.js";
|
|
15
|
-
import { CounterpartAddressFormContent as B } from "./index310.js";
|
|
16
|
-
const tt = ({
|
|
17
|
-
counterpartId: c,
|
|
18
|
-
isStandalone: C,
|
|
19
|
-
address: t,
|
|
20
|
-
customerType: u,
|
|
21
|
-
handleClose: h,
|
|
22
|
-
onUpdate: d,
|
|
23
|
-
onCreate: n
|
|
1
|
+
import { jsxs as i, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDebounceCallback as c } from "./index67.js";
|
|
3
|
+
import m from "@mui/icons-material/Search";
|
|
4
|
+
import { FormControl as s, InputLabel as h, Input as p, InputAdornment as d } from "@mui/material";
|
|
5
|
+
const u = 500, x = ({
|
|
6
|
+
label: r,
|
|
7
|
+
value: o,
|
|
8
|
+
placeholder: l,
|
|
9
|
+
onChange: n
|
|
24
10
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
country: t?.country ?? "US",
|
|
42
|
-
postalCode: t?.postal_code ?? ""
|
|
43
|
-
}), [t]), {
|
|
44
|
-
resetField: e,
|
|
45
|
-
...a
|
|
46
|
-
} = N({
|
|
47
|
-
resolver: U(j(r, u === "vendor")),
|
|
48
|
-
defaultValues: v
|
|
49
|
-
}), _ = L((l) => {
|
|
50
|
-
l.preventDefault(), l.stopPropagation(), a.handleSubmit((s) => {
|
|
51
|
-
const b = {
|
|
52
|
-
line1: s.line1 ?? "",
|
|
53
|
-
line2: s.line2,
|
|
54
|
-
city: s.city ?? "",
|
|
55
|
-
state: s.state ?? "",
|
|
56
|
-
country: s.country,
|
|
57
|
-
postal_code: s.postalCode ?? ""
|
|
58
|
-
};
|
|
59
|
-
return t ? f(b, {
|
|
60
|
-
onSuccess: () => {
|
|
61
|
-
p.success(r._("Address has been updated.")), d && d();
|
|
62
|
-
}
|
|
63
|
-
}) : w({
|
|
64
|
-
path: {
|
|
65
|
-
counterpart_id: c
|
|
66
|
-
},
|
|
67
|
-
body: b
|
|
68
|
-
}, {
|
|
69
|
-
onSuccess: () => {
|
|
70
|
-
p.success(r._("Address has been added.")), n && n();
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
})(l);
|
|
74
|
-
}, [p, f, w, k, d, n, a.handleSubmit, r]);
|
|
75
|
-
return /* @__PURE__ */ i(F, { resetField: e, ...a, children: /* @__PURE__ */ m("form", { id: S, onSubmit: _, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
|
|
76
|
-
/* @__PURE__ */ i(B, { hasExistingAddress: g, isLoading: o, isStandalone: C, customerType: u }),
|
|
77
|
-
/* @__PURE__ */ m("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
78
|
-
/* @__PURE__ */ i(y, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
|
|
79
|
-
e("line1"), e("line2"), e("city"), e("state"), e("postalCode"), e("country"), h();
|
|
80
|
-
}, children: r._("Cancel") }),
|
|
81
|
-
/* @__PURE__ */ m(y, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
|
|
82
|
-
o && /* @__PURE__ */ i(V, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
83
|
-
r._("Save")
|
|
84
|
-
] })
|
|
85
|
-
] })
|
|
86
|
-
] }) });
|
|
11
|
+
const t = c((a) => n(a), u);
|
|
12
|
+
return /* @__PURE__ */ i(s, { "aria-label": "search-by-name", className: "Monite-SearchField Monite-FilterControl", children: [
|
|
13
|
+
r && /* @__PURE__ */ e(h, { htmlFor: "search-by-name", shrink: !0, children: r }),
|
|
14
|
+
/* @__PURE__ */ e(p, { id: "search-by-name", name: "search-by-name", "aria-label": "search-by-name", placeholder: l, value: o, onChange: (a) => {
|
|
15
|
+
t(a.target.value || null);
|
|
16
|
+
}, startAdornment: /* @__PURE__ */ e(d, { position: "end", children: /* @__PURE__ */ e(m, { fontSize: "medium" }) }), sx: {
|
|
17
|
+
"&::placeholder": {
|
|
18
|
+
opacity: 1,
|
|
19
|
+
color: "text.primary"
|
|
20
|
+
},
|
|
21
|
+
"& input::placeholder": {
|
|
22
|
+
opacity: 1,
|
|
23
|
+
color: "text.primary"
|
|
24
|
+
}
|
|
25
|
+
} })
|
|
26
|
+
] });
|
|
87
27
|
};
|
|
88
28
|
export {
|
|
89
|
-
|
|
29
|
+
u as DEBOUNCE_SEARCH_TIMEOUT,
|
|
30
|
+
x as SearchField
|
|
90
31
|
};
|
|
@@ -1,161 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label: v(e) ? x(e.individual.first_name, e.individual.last_name) : y(e) ? e.organization.legal_name : ""
|
|
9
|
-
})) : [];
|
|
10
|
-
function p(t) {
|
|
11
|
-
const [e, a, r] = t.split("-");
|
|
12
|
-
return new Date(+e, +a - 1, +r);
|
|
13
|
-
}
|
|
14
|
-
const m = (t) => D(t, "yyyy-MM-dd"), M = (t, e, a) => {
|
|
15
|
-
if (!e)
|
|
16
|
-
return {
|
|
17
|
-
invoiceNumber: "",
|
|
18
|
-
counterpart: "",
|
|
19
|
-
counterpartBankAccount: "",
|
|
20
|
-
invoiceDate: void 0,
|
|
21
|
-
dueDate: void 0,
|
|
22
|
-
currency: "USD",
|
|
23
|
-
tags: [],
|
|
24
|
-
discount: null,
|
|
25
|
-
lineItems: [{
|
|
26
|
-
id: "",
|
|
27
|
-
name: "",
|
|
28
|
-
quantity: 1,
|
|
29
|
-
price: 0,
|
|
30
|
-
tax: 0
|
|
31
|
-
}]
|
|
32
|
-
};
|
|
33
|
-
const {
|
|
34
|
-
document_id: r,
|
|
35
|
-
counterpart_id: i,
|
|
36
|
-
counterpart_bank_account_id: o,
|
|
37
|
-
issued_at: u,
|
|
38
|
-
due_date: c,
|
|
39
|
-
currency: n,
|
|
40
|
-
tags: l,
|
|
41
|
-
discount: d
|
|
42
|
-
} = e;
|
|
43
|
-
return {
|
|
44
|
-
invoiceNumber: r ?? "",
|
|
45
|
-
counterpart: i ?? "",
|
|
46
|
-
counterpartBankAccount: o ?? "",
|
|
47
|
-
invoiceDate: u ? p(u) : void 0,
|
|
48
|
-
dueDate: c ? p(c) : void 0,
|
|
49
|
-
currency: n ?? "USD",
|
|
50
|
-
tags: l ?? [],
|
|
51
|
-
discount: d && n ? t(d, n) : null,
|
|
52
|
-
lineItems: (a || []).map((s) => ({
|
|
53
|
-
id: s.id ?? "",
|
|
54
|
-
name: s.name ?? "",
|
|
55
|
-
quantity: s.quantity ?? 1,
|
|
56
|
-
price: s.unit_price && n ? t(s.unit_price, n) ?? 0 : 0,
|
|
57
|
-
tax: s.tax ? I(s.tax) : 0,
|
|
58
|
-
ledger_account_id: s.ledger_account_id
|
|
59
|
-
}))
|
|
60
|
-
};
|
|
61
|
-
}, T = ({
|
|
62
|
-
discount: t,
|
|
63
|
-
invoiceNumber: e,
|
|
64
|
-
counterpart: a,
|
|
65
|
-
counterpartBankAccount: r,
|
|
66
|
-
invoiceDate: i,
|
|
67
|
-
dueDate: o,
|
|
68
|
-
currency: u,
|
|
69
|
-
tags: c,
|
|
70
|
-
counterpartAddressId: n
|
|
71
|
-
}, l) => ({
|
|
72
|
-
document_id: e,
|
|
73
|
-
discount: t && u ? l(t, u) ?? 0 : 0,
|
|
74
|
-
counterpart_id: a || void 0,
|
|
75
|
-
counterpart_bank_account_id: r || void 0,
|
|
76
|
-
issued_at: i instanceof Date ? m(i) : void 0,
|
|
77
|
-
due_date: o instanceof Date ? m(o) : void 0,
|
|
78
|
-
currency: u,
|
|
79
|
-
tag_ids: c.map((d) => d.id),
|
|
80
|
-
counterpart_address_id: n
|
|
81
|
-
}), _ = (t, e) => {
|
|
82
|
-
const a = t * e;
|
|
83
|
-
return parseFloat(a.toFixed(2));
|
|
84
|
-
}, f = (t, e) => {
|
|
85
|
-
const a = t + e * t / 100;
|
|
86
|
-
return parseFloat(a.toFixed(2));
|
|
87
|
-
}, w = (t) => {
|
|
88
|
-
const {
|
|
89
|
-
price: e,
|
|
90
|
-
quantity: a,
|
|
91
|
-
tax: r
|
|
92
|
-
} = t;
|
|
93
|
-
if (!e || !a) return 0;
|
|
94
|
-
const i = _(e, a);
|
|
95
|
-
return f(i, r || 0);
|
|
96
|
-
}, z = (t, e) => {
|
|
97
|
-
const {
|
|
98
|
-
subtotal: a,
|
|
99
|
-
taxes: r,
|
|
100
|
-
total: i
|
|
101
|
-
} = t.reduce((o, u) => {
|
|
102
|
-
const c = _(u.price, u.quantity), n = f(c, u.tax || 0);
|
|
1
|
+
function i({
|
|
2
|
+
layout: r,
|
|
3
|
+
navigationPosition: e,
|
|
4
|
+
pageSizePosition: t,
|
|
5
|
+
hasPageSizeSelect: n
|
|
6
|
+
}) {
|
|
7
|
+
if (!n)
|
|
103
8
|
return {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
9
|
+
justifyContent: "center",
|
|
10
|
+
flexDirection: "row",
|
|
11
|
+
gap: void 0
|
|
107
12
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
13
|
+
if (r === "custom") {
|
|
14
|
+
if (e === "center" && t === "center")
|
|
15
|
+
return {
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
gap: 3
|
|
19
|
+
};
|
|
20
|
+
if (e === "left" && t === "left")
|
|
21
|
+
return {
|
|
22
|
+
justifyContent: "flex-start",
|
|
23
|
+
flexDirection: "row",
|
|
24
|
+
gap: 3
|
|
25
|
+
};
|
|
26
|
+
if (e === "right" && t === "right")
|
|
27
|
+
return {
|
|
28
|
+
justifyContent: "flex-end",
|
|
29
|
+
flexDirection: "row-reverse",
|
|
30
|
+
gap: 3
|
|
31
|
+
};
|
|
32
|
+
if (e === "left" && t === "right")
|
|
33
|
+
return {
|
|
34
|
+
justifyContent: "space-between",
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
gap: void 0
|
|
37
|
+
};
|
|
38
|
+
if (e === "right" && t === "left")
|
|
39
|
+
return {
|
|
40
|
+
justifyContent: "space-between",
|
|
41
|
+
flexDirection: "row-reverse",
|
|
42
|
+
gap: void 0
|
|
43
|
+
};
|
|
44
|
+
if (e === "center")
|
|
45
|
+
return {
|
|
46
|
+
justifyContent: "space-around",
|
|
47
|
+
flexDirection: t === "left" ? "row-reverse" : "row",
|
|
48
|
+
gap: void 0
|
|
49
|
+
};
|
|
50
|
+
if (t === "center")
|
|
51
|
+
return {
|
|
52
|
+
justifyContent: "space-around",
|
|
53
|
+
flexDirection: e === "left" ? "row" : "row-reverse",
|
|
54
|
+
gap: void 0
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
switch (r) {
|
|
58
|
+
case "reversed":
|
|
59
|
+
return {
|
|
60
|
+
justifyContent: "space-between",
|
|
61
|
+
flexDirection: "row-reverse",
|
|
62
|
+
gap: void 0
|
|
63
|
+
};
|
|
64
|
+
case "centered":
|
|
65
|
+
return {
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
flexDirection: "row",
|
|
68
|
+
gap: 3
|
|
69
|
+
};
|
|
70
|
+
default:
|
|
71
|
+
return {
|
|
72
|
+
justifyContent: "space-between",
|
|
73
|
+
flexDirection: "row",
|
|
74
|
+
gap: void 0
|
|
75
|
+
};
|
|
76
|
+
}
|
|
138
77
|
}
|
|
139
|
-
const L = (t, e, a) => {
|
|
140
|
-
const r = {
|
|
141
|
-
invoiceNumber: !0,
|
|
142
|
-
dueDate: !0,
|
|
143
|
-
tags: !0,
|
|
144
|
-
currency: !0
|
|
145
|
-
};
|
|
146
|
-
if (a)
|
|
147
|
-
return !1;
|
|
148
|
-
const i = r[t] ?? !1, o = e?.[t] ?? !1;
|
|
149
|
-
return i || o;
|
|
150
|
-
}, O = (t, e) => t.find((a) => a.currency === e && a.is_default_for_currency)?.id || "";
|
|
151
78
|
export {
|
|
152
|
-
|
|
153
|
-
z as calculateTotalsForPayable,
|
|
154
|
-
B as counterpartsToSelect,
|
|
155
|
-
m as dateToString,
|
|
156
|
-
O as findDefaultBankAccount,
|
|
157
|
-
L as isFieldRequired,
|
|
158
|
-
M as prepareDefaultValues,
|
|
159
|
-
C as prepareLineItemSubmit,
|
|
160
|
-
T as prepareSubmit
|
|
79
|
+
i as getLayoutStyles
|
|
161
80
|
};
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"& > .Monite-SearchField": {
|
|
15
|
-
maxWidth: "400px",
|
|
16
|
-
width: "100%"
|
|
17
|
-
}
|
|
18
|
-
}, n || {}), children: [
|
|
19
|
-
i,
|
|
20
|
-
/* @__PURE__ */ o(e, { gap: 1, direction: "row", justifyContent: "flex-end", alignItems: "center", className: "Monite-Filters-Group", sx: {
|
|
21
|
-
ml: 2,
|
|
22
|
-
"& .Monite-FilterControl": {
|
|
23
|
-
maxWidth: "160px",
|
|
24
|
-
width: "100%"
|
|
1
|
+
import { useMoniteContext as u } from "./index59.js";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { toast as o } from "react-hot-toast";
|
|
4
|
+
const p = (r, s) => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: e
|
|
7
|
+
} = n(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: i
|
|
10
|
+
} = u();
|
|
11
|
+
return t.finops.deleteProductsId.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
product_id: r
|
|
25
14
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await t.finops.getProducts.invalidateQueries(i), o.success(e._("Product was deleted.")), s?.();
|
|
18
|
+
},
|
|
19
|
+
onError: () => {
|
|
20
|
+
o.error(e._("Failed to delete product."));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
};
|
|
28
24
|
export {
|
|
29
|
-
|
|
25
|
+
p as useDeleteProduct
|
|
30
26
|
};
|
|
@@ -1,31 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
onChange: n
|
|
1
|
+
import { jsx as a, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as o, useCallback as x } from "react";
|
|
3
|
+
import { getLineItemErrorMessage as b } from "./index319.js";
|
|
4
|
+
import { useLingui as E } from "@lingui/react";
|
|
5
|
+
import { Collapse as _, Alert as j, List as v, ListItem as L, ListItemText as A } from "@mui/material";
|
|
6
|
+
const q = ({
|
|
7
|
+
generalError: e,
|
|
8
|
+
fieldErrors: n
|
|
10
9
|
}) => {
|
|
11
|
-
const t =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
const t = o(() => {
|
|
11
|
+
for (const r of Object.values(n))
|
|
12
|
+
if (r) return !0;
|
|
13
|
+
return !1;
|
|
14
|
+
}, [n]);
|
|
15
|
+
return e || t ? /* @__PURE__ */ a(_, { in: !0, sx: {
|
|
16
|
+
":not(.MuiCollapse-hidden)": {
|
|
17
|
+
marginBottom: 1
|
|
18
|
+
}
|
|
19
|
+
}, children: /* @__PURE__ */ g(j, { severity: "error", sx: {
|
|
20
|
+
"& .MuiAlert-icon": {
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
}
|
|
23
|
+
}, children: [
|
|
24
|
+
e && /* @__PURE__ */ a("div", { children: e }),
|
|
25
|
+
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
+
mt: e ? 1 : 0
|
|
27
|
+
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
+
sx: {
|
|
29
|
+
color: "inherit"
|
|
24
30
|
}
|
|
25
|
-
} })
|
|
26
|
-
] });
|
|
31
|
+
} }) }, r) : null) })
|
|
32
|
+
] }) }) : null;
|
|
33
|
+
}, C = (e) => {
|
|
34
|
+
const {
|
|
35
|
+
i18n: n
|
|
36
|
+
} = E(), t = o(() => Array.isArray(e) ? e : e ? [e] : [], [e]), r = x((i) => {
|
|
37
|
+
for (let u = 0; u < t.length; u++) {
|
|
38
|
+
const f = t[u];
|
|
39
|
+
if (typeof f == "object") {
|
|
40
|
+
const h = b(f, i);
|
|
41
|
+
if (h)
|
|
42
|
+
return h;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}, [t]), s = o(() => r("product.name") ?? r("name"), [r]), l = o(() => r("quantity"), [r]), m = o(() => r("price") ?? r("product.price.value") ?? r("product.price.currency"), [r]), c = o(() => r("tax_rate_value"), [r]), p = o(() => r("product.measure_unit_id") ?? r("product.measure_unit_name") ?? r("measure_unit"), [r]), d = o(() => r("product.type"), [r]), y = o(() => t.length === 0 || (s || l || m || c || p || d) ? void 0 : t.some((i) => {
|
|
47
|
+
if (!i || typeof i != "object") return !1;
|
|
48
|
+
const u = Object.keys(i);
|
|
49
|
+
return u.length > 0 && u.some((f) => i[f] != null);
|
|
50
|
+
}) ? n._("Please check the form for errors") : void 0, [t, s, l, m, c, p, d, n]);
|
|
51
|
+
return {
|
|
52
|
+
generalError: y,
|
|
53
|
+
fieldErrors: {
|
|
54
|
+
name: s,
|
|
55
|
+
quantity: l,
|
|
56
|
+
price: m,
|
|
57
|
+
tax: c,
|
|
58
|
+
measureUnit: p,
|
|
59
|
+
productType: d
|
|
60
|
+
},
|
|
61
|
+
hasErrors: !!(y || s || l || m || c || p || d)
|
|
62
|
+
};
|
|
27
63
|
};
|
|
28
64
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
65
|
+
q as FormErrorDisplay,
|
|
66
|
+
C as useFormErrors
|
|
31
67
|
};
|