@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,66 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import "./
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const x = (e) => {
|
|
11
|
-
let t = 0;
|
|
12
|
-
for (let r = e.length - 1; r >= 0; r--)
|
|
13
|
-
t += e.charCodeAt(r);
|
|
14
|
-
return t % 5;
|
|
15
|
-
}, k = ({
|
|
16
|
-
name: e,
|
|
17
|
-
country: t,
|
|
18
|
-
city: r,
|
|
19
|
-
isLoading: i
|
|
1
|
+
import { jsxs as o, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as p } from "@lingui/react";
|
|
3
|
+
import { useFormContext as u, Controller as n } from "react-hook-form";
|
|
4
|
+
import { Field as t, FieldContent as s, FieldLabel as m, FieldError as c } from "./index222.js";
|
|
5
|
+
import { Input as w } from "./index123.js";
|
|
6
|
+
import { Textarea as f } from "./index124.js";
|
|
7
|
+
const N = ({
|
|
8
|
+
disabled: a,
|
|
9
|
+
visibleFields: h
|
|
20
10
|
}) => {
|
|
21
11
|
const {
|
|
22
|
-
i18n:
|
|
12
|
+
i18n: d
|
|
13
|
+
} = p(), {
|
|
14
|
+
control: l
|
|
23
15
|
} = u();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
16
|
+
return /* @__PURE__ */ o("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
17
|
+
/* @__PURE__ */ e(n, { name: "memo", control: l, render: ({
|
|
18
|
+
field: r,
|
|
19
|
+
fieldState: {
|
|
20
|
+
error: i
|
|
21
|
+
}
|
|
22
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
23
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, required: !0, children: d._("Memo") }),
|
|
24
|
+
/* @__PURE__ */ e(f, { ...r, id: r.name, disabled: a, placeholder: d._("Dear client, as discussed, please find attached our invoice:"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!i }),
|
|
25
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
26
|
+
] }) }) }),
|
|
27
|
+
h?.isFooterShown && /* @__PURE__ */ e(n, { name: "footer", control: l, render: ({
|
|
28
|
+
field: r,
|
|
29
|
+
fieldState: {
|
|
30
|
+
error: i
|
|
31
|
+
}
|
|
32
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
33
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, children: d._("Note to customer") }),
|
|
34
|
+
/* @__PURE__ */ e(f, { ...r, id: r.name, disabled: a, placeholder: d._("Add a note to be displayed below the line items"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!i }),
|
|
35
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
36
|
+
] }) }) }),
|
|
37
|
+
h?.isPurchaseOrderShown && /* @__PURE__ */ e(n, { name: "purchase_order", control: l, render: ({
|
|
38
|
+
field: r,
|
|
39
|
+
fieldState: {
|
|
40
|
+
error: i
|
|
41
|
+
}
|
|
42
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
43
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, children: d._("Purchase order") }),
|
|
44
|
+
/* @__PURE__ */ e(w, { ...r, id: r.name, disabled: a, placeholder: d._("Add number"), "aria-invalid": !!i }),
|
|
45
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
46
|
+
] }) }) }),
|
|
47
|
+
h?.isTermsAndConditionsShown && /* @__PURE__ */ e(n, { name: "terms_and_conditions", control: l, render: ({
|
|
48
|
+
field: r,
|
|
49
|
+
fieldState: {
|
|
50
|
+
error: i
|
|
51
|
+
}
|
|
52
|
+
}) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ o(s, { children: [
|
|
53
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, required: !0, children: d._("Terms and conditions") }),
|
|
54
|
+
/* @__PURE__ */ e(f, { ...r, id: r.name, disabled: a, placeholder: d._("Add text"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!i }),
|
|
55
|
+
/* @__PURE__ */ e(c, { errors: i ? [i] : [] })
|
|
56
|
+
] }) }) })
|
|
50
57
|
] });
|
|
51
|
-
}, A = ({
|
|
52
|
-
counterpartId: e
|
|
53
|
-
}) => {
|
|
54
|
-
const {
|
|
55
|
-
data: t,
|
|
56
|
-
isLoading: r
|
|
57
|
-
} = p(e), i = t ? m(t) : "";
|
|
58
|
-
return r ? /* @__PURE__ */ a(s, { animation: "wave", height: 26, width: "100%" }) : i ? /* @__PURE__ */ a("span", { children: i }) : /* @__PURE__ */ a("span", { style: {
|
|
59
|
-
opacity: 0.4
|
|
60
|
-
}, children: "-" });
|
|
61
58
|
};
|
|
62
59
|
export {
|
|
63
|
-
|
|
64
|
-
A as CounterpartNameCellById,
|
|
65
|
-
x as calculateAvatarColorIndex
|
|
60
|
+
N as EntitySection
|
|
66
61
|
};
|
|
@@ -1,41 +1,154 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
ref: n
|
|
1
|
+
import { jsxs as u, jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormErrors as ae, FormErrorDisplay as re } from "./index342.js";
|
|
3
|
+
import { InvoiceItemRow as ie } from "./index343.js";
|
|
4
|
+
import { InvoiceTotals as ne } from "./index344.js";
|
|
5
|
+
import { CUSTOM_ID as se } from "./index345.js";
|
|
6
|
+
import { TaxModeMenu as oe } from "./index346.js";
|
|
7
|
+
import { useLineItemManagement as le } from "./index347.js";
|
|
8
|
+
import { useMoniteContext as me } from "./index59.js";
|
|
9
|
+
import { useLingui as de } from "@lingui/react";
|
|
10
|
+
import { Button as ue } from "./index86.js";
|
|
11
|
+
import { Field as ce, FieldContent as pe, FieldLabel as _e, FieldError as he } from "./index222.js";
|
|
12
|
+
import { Textarea as fe } from "./index124.js";
|
|
13
|
+
import { Table as we, TableHeader as ve, TableRow as S, TableHead as _, TableBody as $e, TableCell as ye } from "./index278.js";
|
|
14
|
+
import { Typography as E } from "./index87.js";
|
|
15
|
+
import { Plus as xe } from "lucide-react";
|
|
16
|
+
import { useMemo as be, useCallback as x, useEffect as ge, useRef as Re } from "react";
|
|
17
|
+
import { useFormContext as Ce, Controller as Ie } from "react-hook-form";
|
|
18
|
+
import { LoadingSpinner as Ve } from "./index147.js";
|
|
19
|
+
import { useGetMeasureUnits as Ne } from "./index201.js";
|
|
20
|
+
const Je = ({
|
|
21
|
+
defaultCurrency: h = "USD",
|
|
22
|
+
actualCurrency: c = h,
|
|
23
|
+
isNonVatSupported: f,
|
|
24
|
+
isVatSelectionDisabled: P,
|
|
25
|
+
registerLineItemCleanupFn: w,
|
|
26
|
+
shouldOverrideVatRateDefaults: F = !1,
|
|
27
|
+
handleOpenCreateProductDialog: D
|
|
29
28
|
}) => {
|
|
30
29
|
const {
|
|
31
30
|
i18n: s
|
|
32
|
-
} =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
} = de(), {
|
|
32
|
+
control: b,
|
|
33
|
+
formState: g,
|
|
34
|
+
getValues: d,
|
|
35
|
+
trigger: M,
|
|
36
|
+
watch: A
|
|
37
|
+
} = Ce(), U = A("tax_mode") === "inclusive", {
|
|
38
|
+
api: q
|
|
39
|
+
} = me(), {
|
|
40
|
+
data: v,
|
|
41
|
+
isLoading: O
|
|
42
|
+
} = q.finops.getVatRates.useQuery(), {
|
|
43
|
+
data: R,
|
|
44
|
+
isLoading: B
|
|
45
|
+
} = Ne(), C = be(() => {
|
|
46
|
+
const e = v?.data;
|
|
47
|
+
if (e?.length)
|
|
48
|
+
return e.reduce((t, n) => n.value > t.value ? n : t);
|
|
49
|
+
}, [v]), {
|
|
50
|
+
fields: j,
|
|
51
|
+
tooManyEmptyRows: I,
|
|
52
|
+
subtotalPrice: k,
|
|
53
|
+
totalPrice: z,
|
|
54
|
+
totalTaxes: H,
|
|
55
|
+
taxesByVatRate: Q,
|
|
56
|
+
shouldShowTaxExemptRationale: G,
|
|
57
|
+
lineItemErrors: J,
|
|
58
|
+
handleAddRow: W,
|
|
59
|
+
handleRemoveItem: K,
|
|
60
|
+
handleAutoAddRow: V,
|
|
61
|
+
setAutoAddedRows: $,
|
|
62
|
+
setValueWithValidationLocal: p,
|
|
63
|
+
cleanUpLineItemsForSubmission: N
|
|
64
|
+
} = le({
|
|
65
|
+
actualCurrency: c,
|
|
66
|
+
defaultCurrency: h,
|
|
67
|
+
isNonVatSupported: f,
|
|
68
|
+
isInclusivePricing: U,
|
|
69
|
+
highestVatRate: C
|
|
70
|
+
}), r = x((e, t) => {
|
|
71
|
+
p(e, t, {
|
|
72
|
+
shouldValidate: !1
|
|
73
|
+
});
|
|
74
|
+
}, [p]);
|
|
75
|
+
ge(() => (w?.(N), () => w?.(null)), [w, N]);
|
|
76
|
+
const T = Re(null), {
|
|
77
|
+
generalError: X,
|
|
78
|
+
fieldErrors: Y
|
|
79
|
+
} = ae(J), L = x((e, t, n) => {
|
|
80
|
+
const m = t.measureUnit?.id, o = t.measureUnit?.name;
|
|
81
|
+
if (o && !m)
|
|
82
|
+
r(`line_items.${e}.product.measure_unit_id`, ""), r(`line_items.${e}.product.measure_unit_name`, o), r(`line_items.${e}.measure_unit`, {
|
|
83
|
+
name: o,
|
|
84
|
+
id: null
|
|
85
|
+
});
|
|
86
|
+
else if ((m || n) && (r(`line_items.${e}.product.measure_unit_id`, m || n), r(`line_items.${e}.product.measure_unit_name`, void 0), r(`line_items.${e}.measure_unit`, void 0), m || n)) {
|
|
87
|
+
const l = `line_items.${e}`, i = d(`line_items.${e}`) || {};
|
|
88
|
+
p(l, i, {
|
|
89
|
+
shouldValidate: !0
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}, [R?.data, r, d, p]), Z = x(async (e, t, n) => {
|
|
93
|
+
$((o) => o.filter((l) => l !== e));
|
|
94
|
+
const m = t.label ?? "";
|
|
95
|
+
if (r(`line_items.${e}.product.name`, m), t.id !== "" && t.id !== se && n) {
|
|
96
|
+
d(
|
|
97
|
+
// if user manually typed a price it is unlikely they want the price of the catalogue to overwrite it
|
|
98
|
+
`line_items.${e}.product.price.value`
|
|
99
|
+
) || r(`line_items.${e}.product.price.value`, t.price?.value ?? 0), r(`line_items.${e}.product.price.currency`, c);
|
|
100
|
+
const o = d(`line_items.${e}.product.measure_unit_id`);
|
|
101
|
+
L(e, t, o), t.vat_rate_id !== void 0 && r(`line_items.${e}.vat_rate_id`, t.vat_rate_id), t.vat_rate_value !== void 0 && r(`line_items.${e}.vat_rate_value`, t.vat_rate_value);
|
|
102
|
+
const l = d(`line_items.${e}.quantity`), i = t.smallestAmount ?? 1;
|
|
103
|
+
(l === 1 || l === void 0 || l === null) && r(`line_items.${e}.quantity`, i), r(`line_items.${e}.product.smallest_amount`, t.smallestAmount), r(`line_items.${e}.product.type`, "product"), r(`line_items.${e}.product.description`, t.description ?? ""), await Promise.resolve(), V();
|
|
104
|
+
}
|
|
105
|
+
}, [c, d, $, r, V, L]);
|
|
106
|
+
return /* @__PURE__ */ u("div", { ref: T, className: "ttw:flex ttw:flex-col", children: [
|
|
107
|
+
/* @__PURE__ */ a(E, { variant: "h4", className: "ttw:mb-4", children: s._("Items") }),
|
|
108
|
+
/* @__PURE__ */ a(re, { generalError: g?.errors?.line_items?.root?.message ?? X, fieldErrors: Y }),
|
|
109
|
+
/* @__PURE__ */ u(we, { children: [
|
|
110
|
+
/* @__PURE__ */ a(ve, { children: /* @__PURE__ */ u(S, { className: "ttw:border-none ttw:hover:bg-transparent", children: [
|
|
111
|
+
/* @__PURE__ */ a(_, { children: s._("Item name") }),
|
|
112
|
+
/* @__PURE__ */ a(_, { children: s._("Quantity") }),
|
|
113
|
+
/* @__PURE__ */ a(_, { children: /* @__PURE__ */ u("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
114
|
+
s._("Price"),
|
|
115
|
+
/* @__PURE__ */ a(oe, { disabled: P })
|
|
116
|
+
] }) }),
|
|
117
|
+
/* @__PURE__ */ a(_, { children: f ? s._("Tax") : s._("VAT") }),
|
|
118
|
+
/* @__PURE__ */ a(_, { className: "ttw:p-0 ttw:w-12" })
|
|
119
|
+
] }) }),
|
|
120
|
+
/* @__PURE__ */ a($e, { children: O || B ? /* @__PURE__ */ a(S, { children: /* @__PURE__ */ a(ye, { colSpan: 5, className: "ttw:text-center", children: /* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ a(Ve, { className: "ttw:w-5 ttw:h-5" }) }) }) }) : j.map((e, t) => {
|
|
121
|
+
const n = (i) => d(`line_items.${t}.${i}`), m = (i, y, ee) => {
|
|
122
|
+
const te = `line_items.${t}.${i}`;
|
|
123
|
+
p(te, y, ee);
|
|
124
|
+
}, o = () => {
|
|
125
|
+
$((i) => i.filter((y) => y !== t));
|
|
126
|
+
}, l = (i) => {
|
|
127
|
+
M(i ? `line_items.${t}.${i}` : `line_items.${t}`);
|
|
128
|
+
};
|
|
129
|
+
return /* @__PURE__ */ a(ie, { field: e, index: t, control: b, errors: g.errors, tableRowClassName: "ttw:border-none ttw:hover:bg-transparent", actualCurrency: c, defaultCurrency: h, measureUnitsData: R, isNonVatSupported: f, vatRates: v?.data, highestVatRate: C, shouldOverrideVatRateDefaults: F, onRequestLineItemValue: n, onLineItemValueChange: m, onLineItemManuallyChanged: o, onRequestLineItemValidation: l, onRequestOpenCreateProductDialog: D, onUpdateItem: Z, onRemoveItem: K, container: T }, e.id);
|
|
130
|
+
}) })
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ u("div", { className: "ttw:mt-2", children: [
|
|
133
|
+
/* @__PURE__ */ u(ue, { type: "button", variant: "secondary", disabled: I, onClick: W, className: "ttw:hover:brightness-85 ttw:text-primary ttw:hover:text-primary", children: [
|
|
134
|
+
/* @__PURE__ */ a(xe, { className: "ttw:size-5 ttw:text-primary" }),
|
|
135
|
+
s._("Row")
|
|
136
|
+
] }),
|
|
137
|
+
I && /* @__PURE__ */ a(E, { variant: "body2", className: "ttw:mt-2 ttw:text-amber-700", children: s._("Please use some of the rows before adding new ones.") })
|
|
138
|
+
] }),
|
|
139
|
+
G && /* @__PURE__ */ a("div", { className: "ttw:mt-2", children: /* @__PURE__ */ a(Ie, { name: "tax_exemption_rationale", control: b, render: ({
|
|
140
|
+
field: e,
|
|
141
|
+
fieldState: {
|
|
142
|
+
error: t
|
|
143
|
+
}
|
|
144
|
+
}) => /* @__PURE__ */ a(ce, { children: /* @__PURE__ */ u(pe, { children: [
|
|
145
|
+
/* @__PURE__ */ a(_e, { htmlFor: e.name, children: s._("Tax Exempt Rationale") }),
|
|
146
|
+
/* @__PURE__ */ a(fe, { ...e, id: e.name, className: "ttw:h-16 ttw:resize-none", "aria-invalid": !!t }),
|
|
147
|
+
/* @__PURE__ */ a(he, { errors: t ? [t] : [] })
|
|
148
|
+
] }) }) }) }),
|
|
149
|
+
/* @__PURE__ */ a(ne, { subtotalPrice: k, totalTaxes: H, totalPrice: z, taxesByVatRate: Q, actualCurrency: c, defaultCurrency: h })
|
|
150
|
+
] });
|
|
38
151
|
};
|
|
39
152
|
export {
|
|
40
|
-
|
|
153
|
+
Je as ItemsSection
|
|
41
154
|
};
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
id: "date_issue_date",
|
|
19
|
-
label: "Issue date",
|
|
20
|
-
field: "issue_date"
|
|
21
|
-
}, {
|
|
22
|
-
id: "status",
|
|
23
|
-
label: "Status",
|
|
24
|
-
field: void 0
|
|
25
|
-
}, {
|
|
26
|
-
id: "amount",
|
|
27
|
-
label: "Amount",
|
|
28
|
-
field: void 0
|
|
29
|
-
}, {
|
|
30
|
-
id: "customer",
|
|
31
|
-
label: "Customer",
|
|
32
|
-
field: void 0
|
|
33
|
-
}], D = {
|
|
34
|
-
date_due_date: "ttw:w-auto",
|
|
35
|
-
date_created_at: "ttw:w-auto",
|
|
36
|
-
date_issue_date: "ttw:w-auto",
|
|
37
|
-
status: "ttw:w-56",
|
|
38
|
-
amount: "ttw:w-64",
|
|
39
|
-
customer: "ttw:w-64"
|
|
40
|
-
};
|
|
41
|
-
function O(t) {
|
|
1
|
+
import { jsxs as e, Fragment as v, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as N, Controller as _ } from "react-hook-form";
|
|
3
|
+
import { calculateDueDate as D } from "./index7.js";
|
|
4
|
+
import { useMoniteContext as F } from "./index59.js";
|
|
5
|
+
import { useLingui as S } from "@lingui/react";
|
|
6
|
+
import { PaymentSection as T } from "./index348.js";
|
|
7
|
+
import { Typography as o } from "./index87.js";
|
|
8
|
+
import { LockKeyhole as c } from "lucide-react";
|
|
9
|
+
import { DatePicker as C } from "./index349.js";
|
|
10
|
+
import { Field as P, FieldContent as L, FieldLabel as M, FieldError as Y } from "./index222.js";
|
|
11
|
+
const V = ({
|
|
12
|
+
disabled: n,
|
|
13
|
+
paymentTerms: i,
|
|
14
|
+
isPaymentTermsLoading: f,
|
|
15
|
+
isFieldShown: w,
|
|
16
|
+
refetch: u
|
|
17
|
+
}) => {
|
|
42
18
|
const {
|
|
43
|
-
i18n:
|
|
44
|
-
} =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
|
|
19
|
+
i18n: a
|
|
20
|
+
} = S(), {
|
|
21
|
+
control: h,
|
|
22
|
+
watch: y,
|
|
23
|
+
setValue: p
|
|
24
|
+
} = N(), {
|
|
25
|
+
locale: s
|
|
26
|
+
} = F(), b = a.date(/* @__PURE__ */ new Date(), s.dateTimeFormat), x = y("payment_terms_id"), l = i?.data?.find((r) => r.id === x), d = l && D(l), g = async (r = "") => {
|
|
27
|
+
try {
|
|
28
|
+
await u(), await Promise.resolve(), p("payment_terms_id", r);
|
|
29
|
+
} catch (m) {
|
|
30
|
+
console.error("Error changing payment terms:", m);
|
|
31
|
+
}
|
|
52
32
|
};
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ e(v, { children: [
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex", children: [
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:basis-1/2", children: [
|
|
36
|
+
/* @__PURE__ */ t(o, { variant: "body2", color: "muted", className: "ttw:font-medium ttw:mb-1", children: a._("Issue date") }),
|
|
37
|
+
/* @__PURE__ */ e("div", { children: [
|
|
38
|
+
/* @__PURE__ */ t(o, { variant: "body2", color: "muted", children: b }),
|
|
39
|
+
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", className: "ttw:flex ttw:items-center ttw:gap-1.5", children: [
|
|
40
|
+
/* @__PURE__ */ t(c, { className: "ttw:size-4 ttw:text-muted-foreground" }),
|
|
41
|
+
a._("Set on issuance")
|
|
42
|
+
] })
|
|
43
|
+
] })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:basis-1/2", children: [
|
|
46
|
+
/* @__PURE__ */ t(o, { variant: "body2", color: "muted", className: "ttw:font-medium ttw:mb-1", children: a._("Due date") }),
|
|
47
|
+
/* @__PURE__ */ e("div", { children: [
|
|
48
|
+
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", children: [
|
|
49
|
+
l?.name ? "" : a._("Not selected"),
|
|
50
|
+
d ? a.date(d, s.dateTimeFormat) : ""
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", className: "ttw:flex ttw:items-center ttw:gap-1.5", children: [
|
|
53
|
+
/* @__PURE__ */ t(c, { className: "ttw:size-4 ttw:text-muted-foreground" }),
|
|
54
|
+
a._("Set by payment term")
|
|
55
|
+
] })
|
|
56
|
+
] })
|
|
67
57
|
] })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ e("div", { className: "ttw:mt-4 ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
60
|
+
/* @__PURE__ */ t(T, { disabled: n, paymentTerms: i, isLoading: f, selectedPaymentTerm: l, onPaymentTermsChange: g }),
|
|
61
|
+
w && /* @__PURE__ */ t(_, { name: "fulfillment_date", control: h, render: ({
|
|
62
|
+
field: r,
|
|
63
|
+
fieldState: {
|
|
64
|
+
error: m
|
|
65
|
+
}
|
|
66
|
+
}) => /* @__PURE__ */ t(P, { className: "ttw:mb-4", children: /* @__PURE__ */ e(L, { children: [
|
|
67
|
+
/* @__PURE__ */ t(M, { htmlFor: "fulfillment_date", className: "ttw:text-muted-foreground", children: a._("Fulfillment date") }),
|
|
68
|
+
/* @__PURE__ */ t(C, { ...r, selected: r.value ?? void 0, onSelect: r.onChange, shouldDisableButton: n, startMonth: /* @__PURE__ */ new Date(), endMonth: new Date(2050, 11), disabled: {
|
|
69
|
+
before: /* @__PURE__ */ new Date()
|
|
70
|
+
}, showOutsideDays: !1, placeholder: "MM/DD/YYYY" }),
|
|
71
|
+
/* @__PURE__ */ t(Y, { errors: m ? [m] : [] })
|
|
72
|
+
] }) }) })
|
|
68
73
|
] })
|
|
69
|
-
] })
|
|
70
|
-
|
|
71
|
-
a.openPanel("date");
|
|
72
|
-
} : void 0, onDismiss: () => t.onDismissChip(e.key) }, e.key)),
|
|
73
|
-
t.activeFilterCount > 0 && /* @__PURE__ */ n("button", { type: "button", className: "ttw:text-xs ttw:text-muted-foreground ttw:hover:text-foreground ttw:transition-colors ttw:cursor-pointer ttw:whitespace-nowrap", onClick: t.onClearAll, children: "Clear all" })
|
|
74
|
-
] }) });
|
|
75
|
-
}
|
|
74
|
+
] });
|
|
75
|
+
};
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
V as FullfillmentSummary
|
|
78
78
|
};
|
|
@@ -1,60 +1,74 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { InvoicePreviewMonite as p } from "./index350.js";
|
|
3
|
+
import { useAdaptiveScale as v } from "./index351.js";
|
|
4
|
+
import { AspectRatio as h } from "./index352.js";
|
|
5
|
+
import { cn as e } from "./index102.js";
|
|
6
|
+
import { useRef as n } from "react";
|
|
7
|
+
import { useGetMeasureUnits as y } from "./index201.js";
|
|
8
|
+
const A = ({
|
|
9
|
+
address: i,
|
|
10
|
+
counterpart: o,
|
|
11
|
+
currency: s,
|
|
12
|
+
invoiceData: w,
|
|
13
|
+
entityData: m,
|
|
14
|
+
isNonVatSupported: l,
|
|
15
|
+
paymentTerms: c
|
|
12
16
|
}) => {
|
|
13
|
-
const {
|
|
14
|
-
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
17
|
+
const r = n(null), a = n(null), {
|
|
18
|
+
data: u
|
|
19
|
+
} = y(), d = v(r, a, {
|
|
20
|
+
containerPadding: 96,
|
|
21
|
+
minScale: 1,
|
|
22
|
+
initialDelay: 100,
|
|
23
|
+
useAdaptiveDimensions: !0
|
|
24
|
+
// Enable DPI-aware A4 dimensions
|
|
25
|
+
}), f = {
|
|
26
|
+
address: i,
|
|
27
|
+
counterpart: o,
|
|
28
|
+
currency: s,
|
|
29
|
+
invoiceData: w,
|
|
30
|
+
entityData: m,
|
|
31
|
+
isNonVatSupported: l,
|
|
32
|
+
paymentTerms: c,
|
|
33
|
+
measureUnits: u?.data || []
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ t("div", { ref: r, className: e(
|
|
36
|
+
// Container layout
|
|
37
|
+
"ttw:flex ttw:overflow-auto ttw:relative",
|
|
38
|
+
"ttw:w-full ttw:h-full ttw:min-h-0",
|
|
39
|
+
"ttw:p-12",
|
|
40
|
+
// 48px padding
|
|
41
|
+
"ttw:bg-gradient-to-br ttw:from-slate-50 ttw:to-slate-200",
|
|
42
|
+
// Force pixel-snapping for zoom stability
|
|
43
|
+
"ttw:[transform:translateZ(0)]"
|
|
44
|
+
), style: {
|
|
45
|
+
justifyContent: "safe center",
|
|
46
|
+
alignItems: "safe center"
|
|
47
|
+
}, children: /* @__PURE__ */ t(h, { ratio: 21 / 29.7, className: e(
|
|
48
|
+
// Maximum width constraints for A4
|
|
49
|
+
"ttw:max-w-[21cm]",
|
|
50
|
+
// Minimum dimensions for proper scaling (A4: 794×1123px = 21cm × 29.7cm)
|
|
51
|
+
"ttw:min-w-[794px] ttw:min-h-[1123px]",
|
|
52
|
+
// Responsive scaling with our adaptive scale hook
|
|
53
|
+
"ttw:transition-transform ttw:duration-200 ttw:ease-in-out",
|
|
54
|
+
// Respect reduced motion preferences
|
|
55
|
+
"motion-reduce:ttw:transition-none",
|
|
56
|
+
"ttw:origin-center",
|
|
57
|
+
// Prevent unwanted shrinking and layout shifts
|
|
58
|
+
"ttw:shrink-0",
|
|
59
|
+
// CSS containment for layout stability
|
|
60
|
+
'ttw:[contain:"layout style"]'
|
|
61
|
+
), style: {
|
|
62
|
+
// Dynamic transform must stay as inline style due to variable
|
|
63
|
+
transform: `scale(${d})`
|
|
64
|
+
}, children: /* @__PURE__ */ t("div", { ref: a, className: e(
|
|
65
|
+
// Full size within aspect ratio container
|
|
66
|
+
"ttw:w-full ttw:h-full",
|
|
67
|
+
"ttw:bg-white ttw:shrink-0",
|
|
68
|
+
"ttw:shadow-md",
|
|
69
|
+
"ttw:overflow-hidden"
|
|
70
|
+
), children: /* @__PURE__ */ t(p, { ...f }) }) }) });
|
|
57
71
|
};
|
|
58
72
|
export {
|
|
59
|
-
|
|
73
|
+
A as InvoicePreview
|
|
60
74
|
};
|