@tesouro/embedded-components-react 0.2.5 → 0.2.6
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 +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +25 -25
- 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/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.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/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +22 -12
- 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 +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1269 -23
- 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 +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +97 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +8 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +57 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +76 -93
- 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 +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +18 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +76 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +113 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +68 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +75 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +58 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +196 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +14 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +64 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +76 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +41 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +7 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +253 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +181 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +109 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +101 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +109 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +53 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +62 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +75 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +54 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +148 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +72 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +70 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +234 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +124 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +53 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +33 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +67 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +24 -251
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +18 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +19 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +49 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -56
- 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 +54 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +8 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +21 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +91 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +32 -236
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +12 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +117 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +47 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +11 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +152 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +93 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +10 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +397 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +32 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +47 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +74 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +32 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +38 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +345 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +299 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +103 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +161 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +250 -474
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +23 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +149 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +19 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +145 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +85 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +20 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +183 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +24 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +23 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +32 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +62 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +49 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +27 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +124 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +72 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +157 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +78 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +171 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +129 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +157 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +12 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +15 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +62 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +66 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +60 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +8 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +61 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +63 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +93 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +96 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +192 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +22 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +27 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +56 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +60 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +40 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +34 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +6 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +99 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +21 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +25 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +31 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +18 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +12 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +23 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +95 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +42 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +39 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +17 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +57 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +87 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +124 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +37 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +38 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +53 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +62 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +70 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +34 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +186 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +155 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +74 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +22 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +302 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +44 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +40 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +75 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +85 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +44 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +255 -37
- 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 +45 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +49 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +203 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +158 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +111 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +71 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +112 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +42 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +479 -159
- 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 +163 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +38 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +59 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +31 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +21 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +41 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +55 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +27 -59
- 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 +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +96 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +109 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +94 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +37 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +33 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +4 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +24 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +47 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +51 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +23 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +74 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +93 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +35 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +15 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +85 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +33 -92
- 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 +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +64 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +14 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +11 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +61 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +56 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +115 -11
- 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 +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +9 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +53 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +22 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +30 -65
- 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 +31 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +139 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +19 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +80 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +66 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +67 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +74 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +46 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +27 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +30 -34
- 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 +121 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +17 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +72 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +16 -27
- 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 +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +50 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +92 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +74 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +68 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +20 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +40 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +34 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +51 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +57 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +68 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +55 -49
- 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 +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +132 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +74 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +86 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +53 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +52 -35
- 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 +52 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +51 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +42 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +17 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +83 -16
- 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/index500.js +38 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +74 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +4 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +60 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.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/index60.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/index80.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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,140 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { InputGroup as U, InputGroupInput as W, InputGroupAddon as X, InputGroupText as ee } from "./index103.js";
|
|
17
|
-
import { Textarea as re } from "./index125.js";
|
|
18
|
-
import { Typography as y } from "./index87.js";
|
|
19
|
-
const F = 2, we = ({
|
|
20
|
-
formName: N,
|
|
21
|
-
selectedTerm: m,
|
|
22
|
-
onTermsChange: C
|
|
23
|
-
}) => {
|
|
24
|
-
const {
|
|
25
|
-
id: v,
|
|
26
|
-
...P
|
|
27
|
-
} = m || {}, [_, d] = T(), {
|
|
28
|
-
i18n: t
|
|
29
|
-
} = q(), l = z({
|
|
30
|
-
defaultValues: {
|
|
31
|
-
...P
|
|
32
|
-
},
|
|
33
|
-
resolver: k(O(t))
|
|
34
|
-
}), {
|
|
35
|
-
handleSubmit: S,
|
|
36
|
-
formState: {
|
|
37
|
-
errors: g
|
|
38
|
-
},
|
|
39
|
-
control: c
|
|
40
|
-
} = l, {
|
|
41
|
-
createPaymentTerm: I,
|
|
42
|
-
updatePaymentTerm: $
|
|
43
|
-
} = V({
|
|
44
|
-
onCreationError: () => d(/* @__PURE__ */ n(D, { children: [
|
|
45
|
-
t._("Failed to create payment term, please try again."),
|
|
46
|
-
/* @__PURE__ */ e("br", {}),
|
|
47
|
-
t._("If this error recurs, contact your admin.")
|
|
48
|
-
] })),
|
|
49
|
-
onSuccessfullChange: C
|
|
50
|
-
}), [i, w] = T(() => m ? [o.Term1, o.Term2].filter((r) => !!m[r]) : []);
|
|
51
|
-
L(() => {
|
|
52
|
-
Object.keys(g).filter((r) => ![...Object.values(o)].includes(r)).length > 0 ? d(t._("To create a preset you need to fill out all the required fields")) : d(null);
|
|
53
|
-
}, [g, t]);
|
|
54
|
-
const j = () => {
|
|
55
|
-
if (i.length === F) return;
|
|
56
|
-
const r = i.length ? o.Term2 : o.Term1;
|
|
57
|
-
w((a) => [...a, r]), l.setValue(r, {
|
|
58
|
-
number_of_days: null,
|
|
59
|
-
discount: null
|
|
60
|
-
});
|
|
61
|
-
}, A = () => {
|
|
62
|
-
if (!i.length) return;
|
|
63
|
-
const r = i[i.length - 1];
|
|
64
|
-
w((a) => a.slice(0, -1)), l.setValue(r, null);
|
|
65
|
-
};
|
|
66
|
-
return /* @__PURE__ */ n(B, { ...l, children: [
|
|
67
|
-
!!_ && /* @__PURE__ */ e(Z, { variant: "error", className: "ttw:mb-4", icon: /* @__PURE__ */ e(R, {}), children: _ }),
|
|
68
|
-
/* @__PURE__ */ n("form", { id: N, noValidate: !0, onSubmit: (r) => {
|
|
69
|
-
r.preventDefault(), r.stopPropagation(), S((a) => {
|
|
70
|
-
const {
|
|
71
|
-
term_1: b,
|
|
72
|
-
term_2: x,
|
|
73
|
-
...E
|
|
74
|
-
} = a, s = {
|
|
75
|
-
...E
|
|
76
|
-
};
|
|
77
|
-
b && Object.assign(s, {
|
|
78
|
-
term_1: b
|
|
79
|
-
}), x && Object.assign(s, {
|
|
80
|
-
term_2: x
|
|
81
|
-
}), v ? $(v, s) : I(s);
|
|
82
|
-
})(r);
|
|
83
|
-
}, className: "ttw:flex ttw:flex-col ttw:gap-6", children: [
|
|
84
|
-
/* @__PURE__ */ n("div", { children: [
|
|
85
|
-
/* @__PURE__ */ e(y, { variant: "h5", children: t._("Settings") }),
|
|
86
|
-
/* @__PURE__ */ e(J, { className: "ttw:mt-2 ttw:border-border", children: /* @__PURE__ */ n(K, { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
87
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-2", children: [
|
|
88
|
-
/* @__PURE__ */ e(u, { name: "name", control: c, render: ({
|
|
89
|
-
field: r,
|
|
90
|
-
fieldState: {
|
|
91
|
-
error: a
|
|
92
|
-
}
|
|
93
|
-
}) => /* @__PURE__ */ e(p, { className: "ttw:flex-1", children: /* @__PURE__ */ n(f, { children: [
|
|
94
|
-
/* @__PURE__ */ e(h, { htmlFor: "name", required: !0, children: t._("Name") }),
|
|
95
|
-
/* @__PURE__ */ e(Q, { ...r, id: "name", "aria-invalid": !!a }),
|
|
96
|
-
/* @__PURE__ */ e(M, { children: t._("Example: NET 30, –2%/10 days, –1%/20 days") })
|
|
97
|
-
] }) }) }),
|
|
98
|
-
/* @__PURE__ */ e(u, { name: "term_final.number_of_days", control: c, render: ({
|
|
99
|
-
field: r,
|
|
100
|
-
fieldState: {
|
|
101
|
-
error: a
|
|
102
|
-
}
|
|
103
|
-
}) => /* @__PURE__ */ e(p, { className: "ttw:w-44 ttw:shrink-0", children: /* @__PURE__ */ n(f, { children: [
|
|
104
|
-
/* @__PURE__ */ e(h, { htmlFor: "term_final_days", required: !0, children: t._("Payment due") }),
|
|
105
|
-
/* @__PURE__ */ n(U, { children: [
|
|
106
|
-
/* @__PURE__ */ e(W, { ...r, id: "term_final_days", type: "number", value: r.value ?? "", "aria-invalid": !!a }),
|
|
107
|
-
/* @__PURE__ */ e(X, { align: "inline-end", children: /* @__PURE__ */ e(ee, { children: t._("days") }) })
|
|
108
|
-
] })
|
|
109
|
-
] }) }) })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ e(u, { name: "description", control: c, render: ({
|
|
112
|
-
field: r,
|
|
113
|
-
fieldState: {
|
|
114
|
-
error: a
|
|
115
|
-
}
|
|
116
|
-
}) => /* @__PURE__ */ e(p, { children: /* @__PURE__ */ n(f, { children: [
|
|
117
|
-
/* @__PURE__ */ e(h, { htmlFor: "description", children: t._("Description") }),
|
|
118
|
-
/* @__PURE__ */ e(re, { ...r, id: "description", rows: 4, value: r.value ?? "", "aria-invalid": !!a, className: "ttw:resize-none" })
|
|
119
|
-
] }) }) })
|
|
120
|
-
] }) })
|
|
121
|
-
] }),
|
|
122
|
-
/* @__PURE__ */ n("div", { children: [
|
|
123
|
-
/* @__PURE__ */ e(y, { variant: "h5", children: t._("Early payment discounts") }),
|
|
124
|
-
/* @__PURE__ */ n(y, { variant: "body2", color: "muted", className: "ttw:mt-1", children: [
|
|
125
|
-
t._("Offer a discount to your customer if they pay early."),
|
|
126
|
-
/* @__PURE__ */ e("br", {}),
|
|
127
|
-
t._("You can set up to 2 early payment discounts per invoice.")
|
|
128
|
-
] }),
|
|
129
|
-
i.length > 0 && /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:mt-6", children: i.map((r, a) => /* @__PURE__ */ e(G, { index: a, field: r, isLast: a === i.length - 1, remove: A }, r)) }),
|
|
130
|
-
i.length < F && /* @__PURE__ */ n(H, { type: "button", variant: "secondary", className: "ttw:mt-4 ttw:text-primary ttw:hover:brightness-85", onClick: j, children: [
|
|
131
|
-
/* @__PURE__ */ e(Y, {}),
|
|
132
|
-
t._("Add discount")
|
|
133
|
-
] })
|
|
134
|
-
] })
|
|
135
|
-
] })
|
|
136
|
-
] });
|
|
137
|
-
};
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "./index102.js";
|
|
3
|
+
import * as r from "@radix-ui/react-avatar";
|
|
4
|
+
function n({
|
|
5
|
+
className: t,
|
|
6
|
+
...a
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(r.Root, { "data-slot": "avatar", className: l("ttw:relative ttw:flex ttw:size-8 ttw:shrink-0 ttw:overflow-hidden ttw:rounded-full", t), ...a });
|
|
9
|
+
}
|
|
10
|
+
function f({
|
|
11
|
+
className: t,
|
|
12
|
+
...a
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ e(r.Fallback, { "data-slot": "avatar-fallback", className: l("ttw:bg-muted ttw:flex ttw:size-full ttw:items-center ttw:justify-center ttw:rounded-full", t), ...a });
|
|
15
|
+
}
|
|
138
16
|
export {
|
|
139
|
-
|
|
17
|
+
n as Avatar,
|
|
18
|
+
f as AvatarFallback
|
|
140
19
|
};
|
|
@@ -1,18 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
const i = ({
|
|
2
|
+
variant: t,
|
|
3
|
+
isError: e = !1,
|
|
4
|
+
componentType: s,
|
|
5
|
+
showAvatar: a = !1,
|
|
6
|
+
showUsersAsEmail: n = !1,
|
|
7
|
+
className: w = ""
|
|
8
|
+
}) => {
|
|
9
|
+
if (e) {
|
|
10
|
+
const r = `ttw:text-muted-foreground ${w}`;
|
|
11
|
+
return s === "user" && t !== "badge" ? {
|
|
12
|
+
useBadge: !1,
|
|
13
|
+
badgeVariant: "outline",
|
|
14
|
+
className: r,
|
|
15
|
+
showAvatar: !1,
|
|
16
|
+
showIcon: !1
|
|
17
|
+
} : {
|
|
18
|
+
useBadge: !0,
|
|
19
|
+
badgeVariant: "outline",
|
|
20
|
+
className: r,
|
|
21
|
+
showAvatar: !1,
|
|
22
|
+
showIcon: !1
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return s === "user" ? o(t, a, n, w) : l(t, w);
|
|
26
|
+
};
|
|
27
|
+
function o(t, e, s, a) {
|
|
28
|
+
switch (t) {
|
|
29
|
+
case "badge":
|
|
30
|
+
return {
|
|
31
|
+
useBadge: !0,
|
|
32
|
+
badgeVariant: "secondary",
|
|
33
|
+
className: `ttw:gap-1 ttw:px-2 ttw:py-1 ${a}`,
|
|
34
|
+
showAvatar: e,
|
|
35
|
+
showIcon: !1
|
|
36
|
+
};
|
|
37
|
+
case "cell":
|
|
38
|
+
return {
|
|
39
|
+
useBadge: !1,
|
|
40
|
+
badgeVariant: "secondary",
|
|
41
|
+
className: `ttw:text-sm ttw:font-medium ttw:text-foreground ttw:overflow-hidden ttw:text-ellipsis ttw:whitespace-nowrap ttw:block ${s ? "ttw:text-blue-600" : ""} ${a}`,
|
|
42
|
+
showAvatar: !1,
|
|
43
|
+
showIcon: !1
|
|
44
|
+
};
|
|
45
|
+
default:
|
|
46
|
+
return {
|
|
47
|
+
useBadge: !1,
|
|
48
|
+
badgeVariant: "secondary",
|
|
49
|
+
className: `ttw:text-sm ttw:font-medium ttw:text-foreground ${a}`,
|
|
50
|
+
showAvatar: !1,
|
|
51
|
+
showIcon: !1
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function l(t, e) {
|
|
56
|
+
switch (t) {
|
|
57
|
+
case "filled":
|
|
58
|
+
return {
|
|
59
|
+
useBadge: !0,
|
|
60
|
+
badgeVariant: "secondary",
|
|
61
|
+
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:h-8 ttw:bg-gray-100 ttw:text-gray-800 ttw:text-sm ttw:leading-4 ttw:font-medium ttw:whitespace-nowrap ttw:border-0 ttw:rounded-lg ttw:px-4 ttw:py-1 ${e}`,
|
|
62
|
+
showAvatar: !1,
|
|
63
|
+
showIcon: !1
|
|
64
|
+
};
|
|
65
|
+
case "outlined":
|
|
66
|
+
return {
|
|
67
|
+
useBadge: !0,
|
|
68
|
+
badgeVariant: "outline",
|
|
69
|
+
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:text-sm ttw:font-medium ttw:whitespace-nowrap ttw:rounded ttw:px-2 ttw:py-1 ttw:gap-1 ${e}`,
|
|
70
|
+
showAvatar: !1,
|
|
71
|
+
showIcon: !0
|
|
72
|
+
};
|
|
73
|
+
default:
|
|
74
|
+
return {
|
|
75
|
+
useBadge: !0,
|
|
76
|
+
badgeVariant: "secondary",
|
|
77
|
+
className: `ttw:inline-flex ttw:items-center ttw:justify-center ttw:h-8 ttw:bg-[rgb(248,248,255)] ttw:text-[rgb(55,55,255)] ttw:text-sm ttw:leading-4 ttw:font-medium ttw:whitespace-nowrap ttw:border-0 ttw:rounded-[7.98px] ttw:px-2 ttw:py-[7px] ttw:gap-2 ttw:transition-colors ${e}`,
|
|
78
|
+
showAvatar: !1,
|
|
79
|
+
showIcon: !0
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
16
83
|
export {
|
|
17
|
-
|
|
84
|
+
i as getVariantProps
|
|
18
85
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as a, jsxs as X } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { CounterpartTableFilters as Z } from "./
|
|
3
|
-
import { FILTER_TYPE_SEARCH as A, FILTER_TYPE_TYPE as tt } from "./
|
|
2
|
+
import { CounterpartTableFilters as Z } from "./index223.js";
|
|
3
|
+
import { FILTER_TYPE_SEARCH as A, FILTER_TYPE_TYPE as tt } from "./index224.js";
|
|
4
4
|
import { getCounterpartName as et } from "./index7.js";
|
|
5
5
|
import { useCurrencies as at } from "./index60.js";
|
|
6
6
|
import { useMoniteContext as it } from "./index59.js";
|
|
7
7
|
import { MoniteScopedProviders as rt } from "./index85.js";
|
|
8
8
|
import { useCounterpartList as ot } from "./index73.js";
|
|
9
|
-
import { useUserPermissions as nt } from "./
|
|
9
|
+
import { useUserPermissions as nt } from "./index133.js";
|
|
10
10
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
11
11
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
12
12
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -14,19 +14,19 @@ import "@tanstack/react-query";
|
|
|
14
14
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
15
15
|
import { Scope as y } from "../../shared/data-access/dist/lib/scopes.js";
|
|
16
16
|
import { useState as c, useMemo as d } from "react";
|
|
17
|
-
import { CounterPartCellByData as st } from "./
|
|
18
|
-
import { GetNoRowsOverlay as dt } from "./
|
|
19
|
-
import { AccessRestriction as lt } from "./
|
|
17
|
+
import { CounterPartCellByData as st } from "./index163.js";
|
|
18
|
+
import { GetNoRowsOverlay as dt } from "./index140.js";
|
|
19
|
+
import { AccessRestriction as lt } from "./index135.js";
|
|
20
20
|
import { Button as mt } from "./index86.js";
|
|
21
21
|
import "clsx";
|
|
22
22
|
import { twMerge as U } from "tailwind-merge";
|
|
23
23
|
import "@radix-ui/react-dialog";
|
|
24
24
|
import { ArrowUp as ct, ArrowDown as pt, ArrowUpDown as ut } from "lucide-react";
|
|
25
25
|
import { useLingui as gt } from "@lingui/react";
|
|
26
|
-
import { DataTable as _t } from "./
|
|
27
|
-
import { hasSelectedText as wt } from "./
|
|
26
|
+
import { DataTable as _t } from "./index139.js";
|
|
27
|
+
import { hasSelectedText as wt } from "./index142.js";
|
|
28
28
|
import { useGetPayablesAnalytics as C } from "./index35.js";
|
|
29
|
-
import { LoadingSpinner as p } from "./
|
|
29
|
+
import { LoadingSpinner as p } from "./index147.js";
|
|
30
30
|
const Kt = (u) => /* @__PURE__ */ a(rt, { children: /* @__PURE__ */ a(ht, { ...u }) }), ht = ({
|
|
31
31
|
onRowClick: u,
|
|
32
32
|
onChangeSort: j,
|
|
@@ -3,14 +3,14 @@ import { useState as d, useCallback as n } from "react";
|
|
|
3
3
|
import { TagFormModal as u } from "./index49.js";
|
|
4
4
|
import { TagsTable as h } from "./index48.js";
|
|
5
5
|
import { MoniteScopedProviders as C } from "./index85.js";
|
|
6
|
-
import { useUserPermissions as x } from "./
|
|
6
|
+
import { useUserPermissions as x } from "./index133.js";
|
|
7
7
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
8
8
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
9
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
10
10
|
import "@tanstack/react-query";
|
|
11
11
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
12
|
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
-
import { AccessRestriction as A } from "./
|
|
13
|
+
import { AccessRestriction as A } from "./index135.js";
|
|
14
14
|
import { Button as T } from "./index86.js";
|
|
15
15
|
import "clsx";
|
|
16
16
|
import "tailwind-merge";
|
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { getSharedApprovalRuleLabel as _, getUsersFromListLabel as t } from "./index460.js";
|
|
2
|
+
const r = {
|
|
3
|
+
SINGLE_USER: "single_user",
|
|
4
|
+
USERS_FROM_LIST: "users_from_list",
|
|
5
|
+
ROLES_FROM_LIST: "roles_from_list",
|
|
6
|
+
APPROVAL_CHAIN: "approval_chain"
|
|
7
|
+
}, S = {
|
|
8
|
+
REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
|
|
9
|
+
REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
|
|
10
|
+
}, L = (s, e) => {
|
|
11
|
+
switch (s) {
|
|
12
|
+
case r.SINGLE_USER:
|
|
13
|
+
return e._("Single user");
|
|
14
|
+
case r.USERS_FROM_LIST:
|
|
15
|
+
return e._("Users from the list");
|
|
16
|
+
case r.ROLES_FROM_LIST:
|
|
17
|
+
return e._("Roles from the list");
|
|
18
|
+
case r.APPROVAL_CHAIN:
|
|
19
|
+
return e._("Approval chain");
|
|
20
|
+
default:
|
|
21
21
|
return;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
w._("Manage measure units")
|
|
37
|
-
] }),
|
|
38
|
-
s?.map((e) => /* @__PURE__ */ t(d, { value: e.id, children: e.name }, e.id))
|
|
39
|
-
] })
|
|
40
|
-
] }),
|
|
41
|
-
h && /* @__PURE__ */ t(v, { open: !0, handleClose: () => o(!1) })
|
|
42
|
-
] });
|
|
22
|
+
}
|
|
23
|
+
}, l = (s, e, a) => {
|
|
24
|
+
switch (s) {
|
|
25
|
+
case r.SINGLE_USER:
|
|
26
|
+
return _.singleUser(e);
|
|
27
|
+
case r.USERS_FROM_LIST:
|
|
28
|
+
return t(e, a);
|
|
29
|
+
case r.ROLES_FROM_LIST:
|
|
30
|
+
return _.anyUserWithRole(e);
|
|
31
|
+
case r.APPROVAL_CHAIN:
|
|
32
|
+
return _.allUsersFromList(e);
|
|
33
|
+
default:
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
43
36
|
};
|
|
44
37
|
export {
|
|
45
|
-
|
|
38
|
+
r as APPROVAL_POLICY_RULE_TYPES,
|
|
39
|
+
S as APPROVAL_REQUEST_CALLS,
|
|
40
|
+
l as getRuleLabel,
|
|
41
|
+
L as getRuleName
|
|
46
42
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMemo as s } from "react";
|
|
2
2
|
import { useMoniteContext as b } from "./index59.js";
|
|
3
3
|
import { useLingui as L } from "@lingui/react";
|
|
4
|
-
import { ApprovalStepResolver as j } from "./
|
|
5
|
-
import { extractStructureItemsFromScriptStep as q, processApprovalStructure as w, findUserApprovalCall as x } from "./
|
|
4
|
+
import { ApprovalStepResolver as j } from "./index508.js";
|
|
5
|
+
import { extractStructureItemsFromScriptStep as q, processApprovalStructure as w, findUserApprovalCall as x } from "./index374.js";
|
|
6
6
|
function C(i, p, v = "desc") {
|
|
7
7
|
const {
|
|
8
8
|
i18n: m
|
|
@@ -1,63 +1,80 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as r, Fragment as G, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as I, useEffect as B } from "react";
|
|
3
|
+
import { useFormContext as M, Controller as p } from "react-hook-form";
|
|
4
|
+
import { rateMinorToMajor as S, rateMajorToMinor as A } from "./index198.js";
|
|
5
|
+
import { useLingui as D } from "@lingui/react";
|
|
6
|
+
import { Trash2 as z } from "lucide-react";
|
|
7
|
+
import { Alert as L } from "./index200.js";
|
|
8
|
+
import { Button as $ } from "./index86.js";
|
|
9
|
+
import { Card as k, CardHeader as E, CardTitle as H, CardAction as O, CardContent as P } from "./index336.js";
|
|
10
|
+
import { InputGroup as h, InputGroupInput as f, InputGroupAddon as v, InputGroupText as w } from "./index103.js";
|
|
11
|
+
import { Typography as l } from "./index87.js";
|
|
12
|
+
const ee = ({
|
|
13
|
+
field: a,
|
|
14
|
+
index: b,
|
|
15
|
+
isLast: g,
|
|
16
|
+
remove: C
|
|
9
17
|
}) => {
|
|
10
|
-
const {
|
|
11
|
-
i18n:
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
days: r.days_after,
|
|
36
|
-
unit: r.days_after === 1 ? "day" : "days"
|
|
37
|
-
}),
|
|
38
|
-
termPeriodName: t._("Due date"),
|
|
39
|
-
id: `overdue-${d + 1}`
|
|
40
|
-
})) ?? [];
|
|
41
|
-
return /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:bg-zinc-50 ttw:rounded-md", children: [
|
|
42
|
-
/* @__PURE__ */ a("ul", { className: "ttw:w-full ttw:list-none", children: s?.map(({
|
|
43
|
-
termPeriodName: r,
|
|
44
|
-
reminderTerm: d,
|
|
45
|
-
id: l
|
|
46
|
-
}, _, o) => /* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-start ttw:gap-2 ttw:w-full", children: [
|
|
47
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:pt-1", children: [
|
|
48
|
-
/* @__PURE__ */ a(y, { className: "ttw:size-4 ttw:text-neutral" }),
|
|
49
|
-
_ !== o.length - 1 && /* @__PURE__ */ a("div", { className: "ttw:w-px ttw:h-2 ttw:bg-neutral" })
|
|
18
|
+
const [d, m] = I(""), {
|
|
19
|
+
i18n: n
|
|
20
|
+
} = D(), {
|
|
21
|
+
control: c,
|
|
22
|
+
formState: {
|
|
23
|
+
errors: i
|
|
24
|
+
}
|
|
25
|
+
} = M(), y = `${a}.number_of_days`, x = `${a}.discount`;
|
|
26
|
+
return B(() => {
|
|
27
|
+
if (i && i[a]) {
|
|
28
|
+
const t = i[a], o = Object.values(t ?? {}).map((s) => s?.message).filter(Boolean);
|
|
29
|
+
m(o[0] ?? "");
|
|
30
|
+
} else
|
|
31
|
+
m("");
|
|
32
|
+
}, [i, a]), /* @__PURE__ */ r(G, { children: [
|
|
33
|
+
!!d && /* @__PURE__ */ e(L, { variant: "error", className: "ttw:my-1", children: d }),
|
|
34
|
+
/* @__PURE__ */ r(k, { className: "ttw:border-border", children: [
|
|
35
|
+
/* @__PURE__ */ r(E, { children: [
|
|
36
|
+
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(l, { variant: "h5", children: n._("Discount {number}", {
|
|
37
|
+
number: b + 1
|
|
38
|
+
}) }) }),
|
|
39
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r($, { type: "button", variant: "ghost", size: "sm", disabled: !g, className: "ttw:text-destructive ttw:hover:text-destructive", onClick: C, children: [
|
|
40
|
+
/* @__PURE__ */ e(z, {}),
|
|
41
|
+
n._("Delete")
|
|
42
|
+
] }) })
|
|
50
43
|
] }),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
44
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
45
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:whitespace-nowrap", children: n._("Pay in") }),
|
|
46
|
+
/* @__PURE__ */ e(p, { name: y, control: c, render: ({
|
|
47
|
+
field: t,
|
|
48
|
+
fieldState: {
|
|
49
|
+
error: o
|
|
50
|
+
}
|
|
51
|
+
}) => /* @__PURE__ */ r(h, { className: "ttw:w-28", children: [
|
|
52
|
+
/* @__PURE__ */ e(f, { ...t, type: "number", value: t.value ?? "", "aria-invalid": !!o }),
|
|
53
|
+
/* @__PURE__ */ e(v, { align: "inline-end", children: /* @__PURE__ */ e(w, { children: n._("days") }) })
|
|
54
|
+
] }) }),
|
|
55
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:whitespace-nowrap", children: n._("to get discount") }),
|
|
56
|
+
/* @__PURE__ */ e(p, { name: x, control: c, render: ({
|
|
57
|
+
field: {
|
|
58
|
+
onChange: t,
|
|
59
|
+
onBlur: o,
|
|
60
|
+
value: s,
|
|
61
|
+
name: N,
|
|
62
|
+
ref: _
|
|
63
|
+
},
|
|
64
|
+
fieldState: {
|
|
65
|
+
error: T
|
|
66
|
+
}
|
|
67
|
+
}) => /* @__PURE__ */ r(h, { className: "ttw:w-24", children: [
|
|
68
|
+
/* @__PURE__ */ e(f, { name: N, ref: _, type: "number", value: s != null ? S(s) : "", onBlur: o, onChange: (j) => {
|
|
69
|
+
const u = j.target.value, F = u === "" ? null : A(parseFloat(u));
|
|
70
|
+
t(F);
|
|
71
|
+
}, "aria-invalid": !!T }),
|
|
72
|
+
/* @__PURE__ */ e(v, { align: "inline-end", children: /* @__PURE__ */ e(w, { children: "%" }) })
|
|
73
|
+
] }) })
|
|
74
|
+
] }) })
|
|
75
|
+
] })
|
|
59
76
|
] });
|
|
60
77
|
};
|
|
61
78
|
export {
|
|
62
|
-
|
|
79
|
+
ee as DiscountForm
|
|
63
80
|
};
|
|
@@ -1,80 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { rateMinorToMajor as S, rateMajorToMinor as A } from "./index221.js";
|
|
5
|
-
import { useLingui as D } from "@lingui/react";
|
|
6
|
-
import { Trash2 as z } from "lucide-react";
|
|
7
|
-
import { Alert as L } from "./index177.js";
|
|
8
|
-
import { Button as $ } from "./index86.js";
|
|
9
|
-
import { Card as k, CardHeader as E, CardTitle as H, CardAction as O, CardContent as P } from "./index359.js";
|
|
10
|
-
import { InputGroup as h, InputGroupInput as f, InputGroupAddon as v, InputGroupText as w } from "./index103.js";
|
|
11
|
-
import { Typography as l } from "./index87.js";
|
|
12
|
-
const ee = ({
|
|
13
|
-
field: a,
|
|
14
|
-
index: b,
|
|
15
|
-
isLast: g,
|
|
16
|
-
remove: C
|
|
17
|
-
}) => {
|
|
18
|
-
const [d, m] = I(""), {
|
|
19
|
-
i18n: n
|
|
20
|
-
} = D(), {
|
|
21
|
-
control: c,
|
|
22
|
-
formState: {
|
|
23
|
-
errors: i
|
|
24
|
-
}
|
|
25
|
-
} = M(), y = `${a}.number_of_days`, x = `${a}.discount`;
|
|
26
|
-
return B(() => {
|
|
27
|
-
if (i && i[a]) {
|
|
28
|
-
const t = i[a], o = Object.values(t ?? {}).map((s) => s?.message).filter(Boolean);
|
|
29
|
-
m(o[0] ?? "");
|
|
30
|
-
} else
|
|
31
|
-
m("");
|
|
32
|
-
}, [i, a]), /* @__PURE__ */ r(G, { children: [
|
|
33
|
-
!!d && /* @__PURE__ */ e(L, { variant: "error", className: "ttw:my-1", children: d }),
|
|
34
|
-
/* @__PURE__ */ r(k, { className: "ttw:border-border", children: [
|
|
35
|
-
/* @__PURE__ */ r(E, { children: [
|
|
36
|
-
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(l, { variant: "h5", children: n._("Discount {number}", {
|
|
37
|
-
number: b + 1
|
|
38
|
-
}) }) }),
|
|
39
|
-
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r($, { type: "button", variant: "ghost", size: "sm", disabled: !g, className: "ttw:text-destructive ttw:hover:text-destructive", onClick: C, children: [
|
|
40
|
-
/* @__PURE__ */ e(z, {}),
|
|
41
|
-
n._("Delete")
|
|
42
|
-
] }) })
|
|
43
|
-
] }),
|
|
44
|
-
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
45
|
-
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:whitespace-nowrap", children: n._("Pay in") }),
|
|
46
|
-
/* @__PURE__ */ e(p, { name: y, control: c, render: ({
|
|
47
|
-
field: t,
|
|
48
|
-
fieldState: {
|
|
49
|
-
error: o
|
|
50
|
-
}
|
|
51
|
-
}) => /* @__PURE__ */ r(h, { className: "ttw:w-28", children: [
|
|
52
|
-
/* @__PURE__ */ e(f, { ...t, type: "number", value: t.value ?? "", "aria-invalid": !!o }),
|
|
53
|
-
/* @__PURE__ */ e(v, { align: "inline-end", children: /* @__PURE__ */ e(w, { children: n._("days") }) })
|
|
54
|
-
] }) }),
|
|
55
|
-
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:whitespace-nowrap", children: n._("to get discount") }),
|
|
56
|
-
/* @__PURE__ */ e(p, { name: x, control: c, render: ({
|
|
57
|
-
field: {
|
|
58
|
-
onChange: t,
|
|
59
|
-
onBlur: o,
|
|
60
|
-
value: s,
|
|
61
|
-
name: N,
|
|
62
|
-
ref: _
|
|
63
|
-
},
|
|
64
|
-
fieldState: {
|
|
65
|
-
error: T
|
|
66
|
-
}
|
|
67
|
-
}) => /* @__PURE__ */ r(h, { className: "ttw:w-24", children: [
|
|
68
|
-
/* @__PURE__ */ e(f, { name: N, ref: _, type: "number", value: s != null ? S(s) : "", onBlur: o, onChange: (j) => {
|
|
69
|
-
const u = j.target.value, F = u === "" ? null : A(parseFloat(u));
|
|
70
|
-
t(F);
|
|
71
|
-
}, "aria-invalid": !!T }),
|
|
72
|
-
/* @__PURE__ */ e(v, { align: "inline-end", children: /* @__PURE__ */ e(w, { children: "%" }) })
|
|
73
|
-
] }) })
|
|
74
|
-
] }) })
|
|
75
|
-
] })
|
|
76
|
-
] });
|
|
1
|
+
const e = {
|
|
2
|
+
Term1: "term_1",
|
|
3
|
+
Term2: "term_2"
|
|
77
4
|
};
|
|
78
5
|
export {
|
|
79
|
-
|
|
6
|
+
e as TermField
|
|
80
7
|
};
|