Added YooMoney support
/ docker (push) Successful in 1m3s Details

This commit is contained in:
Maxim Lebedev 2023-12-13 14:22:33 +06:00
parent 5010553a4e
commit 4cec2f9e6e
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
4 changed files with 322 additions and 235 deletions

View File

@ -14,5 +14,6 @@ type (
ConfigProcessors struct {
PayPal string `env:"PAYPAL"`
Liberapay string `env:"LIBERAPAY"`
YooMoney string `env:"YOOMONEY"`
}
)

View File

@ -85,6 +85,12 @@ button[href*='paypal.me'] {
--color: #001435;
}
.button[href*='yoomoney.ru'],
button[href*='yoomoney.ru'] {
--background: #8b3ffd;
--color: #fff;
}
.button .icon,
.button svg,
button .icon,

View File

@ -66,14 +66,24 @@ func NewContext(processors domain.ConfigProcessors, lang language.Tag, amount ui
{% endif %}
{% if ctx.processors.PayPal != "" %}
<li>
<a class="button"{% space %}
rel="noopener noreferrer payment"{% space %}
href="https://www.paypal.me/{%s ctx.processors.PayPal %}{% if ctx.amount > 0 %}/{%f.2 ctx.amount/100 %}USD{% endif %}">
<a class="button"{% space %}
rel="noopener noreferrer payment"{% space %}
href="https://www.paypal.me/{%s ctx.processors.PayPal %}{% if ctx.amount > 0 %}/{%f.2 ctx.amount/100 %}USD{% endif %}">
{%= icon("paypal") %}
PayPal
</a>
</span>
{%= icon("paypal") %}
PayPal
</a>
</li>
{% endif %}
{% if ctx.processors.YooMoney != "" %}
<li>
<a class="button"{% space %}
rel="noopener noreferrer payment"{% space %}
href="https://yoomoney.ru/to/{%s ctx.processors.YooMoney %}{% if ctx.amount > 0 %}/{%dul uint64(ctx.amount) %}{% endif %}">
{%= icon("yoomoney") %}
ЮMoney
</a>
</li>
{% endif %}
</ul>
@ -145,6 +155,18 @@ func NewContext(processors domain.ConfigProcessors, lang language.Tag, amount ui
{% comment %}Right blue{% endcomment %}
<path fill="#0070e0" d="M131.7 43.7a54 54 0 0 1-53.8 51.6H51.5c-2.7 0-5 2-5.4 4.6l-8.3 52.5-5.2 33a4.5 4.5 0 0 0 4.4 5.1h28.7a5.5 5.5 0 0 0 5.4-4.6l7.6-48a5.5 5.5 0 0 1 5.4-4.5H101a54 54 0 0 0 53.2-45.7c3-18.7-6.5-35.6-22.5-44z" />
</svg>
{% case "yoomoney" %}
<svg class="icon"{% space %}
width="32"{% space %}
height="32"{% space %}
viewBox="0 0 169 120"{% space %}
aria-hidden="true"{% space %}
focusable="false"{% space %}
xmlns="http://www.w3.org/2000/svg">
<path fill="#fff" d="M109 0a59.9 59.9 0 1 0 0 120c33 0 60-27 60-60S142 0 109 0Zm0 82.4A22.7 22.7 0 0 1 86.6 60 22.7 22.7 0 0 1 109 37.6 22.7 22.7 0 0 1 131.4 60 23 23 0 0 1 109 82.4Z"/>
<path fill="#fff" d="M48.6 17.5v87.3H27.3L0 17.5h48.6Z"/>
</svg>
{% endswitch %}
{% endfunc %}
{% endstripspace %}

View File

@ -211,331 +211,389 @@ func (ctx Context) streambody(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:73
streamicon(qw422016, "paypal")
//line web/template/template.qtpl:73
qw422016.N().S(`PayPal</a></span></li>`)
//line web/template/template.qtpl:78
qw422016.N().S(`PayPal</a></li>`)
//line web/template/template.qtpl:77
}
//line web/template/template.qtpl:78
qw422016.N().S(`</ul>`)
if ctx.processors.YooMoney != "" {
//line web/template/template.qtpl:78
qw422016.N().S(`<li><a class="button"`)
//line web/template/template.qtpl:80
}
qw422016.N().S(` `)
//line web/template/template.qtpl:80
func (ctx Context) writebody(qq422016 qtio422016.Writer) {
//line web/template/template.qtpl:80
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:80
ctx.streambody(qw422016)
//line web/template/template.qtpl:80
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:80
}
//line web/template/template.qtpl:80
func (ctx Context) body() string {
//line web/template/template.qtpl:80
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:80
ctx.writebody(qb422016)
//line web/template/template.qtpl:80
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:80
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:80
return qs422016
//line web/template/template.qtpl:80
}
qw422016.N().S(`rel="noopener noreferrer payment"`)
//line web/template/template.qtpl:81
qw422016.N().S(` `)
//line web/template/template.qtpl:81
qw422016.N().S(`href="https://yoomoney.ru/to/`)
//line web/template/template.qtpl:82
func (ctx Context) streamdir(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:83
switch ctx.language {
qw422016.E().S(ctx.processors.YooMoney)
//line web/template/template.qtpl:82
if ctx.amount > 0 {
//line web/template/template.qtpl:82
qw422016.N().S(`/`)
//line web/template/template.qtpl:82
qw422016.N().DUL(uint64(ctx.amount))
//line web/template/template.qtpl:82
}
//line web/template/template.qtpl:82
qw422016.N().S(`">`)
//line web/template/template.qtpl:84
default:
streamicon(qw422016, "yoomoney")
//line web/template/template.qtpl:84
qw422016.N().S(`ltr`)
//line web/template/template.qtpl:86
case language.Arabic, language.Persian, language.Hebrew, language.Urdu:
//line web/template/template.qtpl:86
qw422016.N().S(`rtl`)
qw422016.N().S(`ЮMoney</a></li>`)
//line web/template/template.qtpl:88
}
//line web/template/template.qtpl:89
//line web/template/template.qtpl:88
qw422016.N().S(`</ul>`)
//line web/template/template.qtpl:90
}
//line web/template/template.qtpl:89
func (ctx Context) writedir(qq422016 qtio422016.Writer) {
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
func (ctx Context) writebody(qq422016 qtio422016.Writer) {
//line web/template/template.qtpl:90
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:89
ctx.streamdir(qw422016)
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
ctx.streambody(qw422016)
//line web/template/template.qtpl:90
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
}
//line web/template/template.qtpl:89
func (ctx Context) dir() string {
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
func (ctx Context) body() string {
//line web/template/template.qtpl:90
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:89
ctx.writedir(qb422016)
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
ctx.writebody(qb422016)
//line web/template/template.qtpl:90
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
return qs422016
//line web/template/template.qtpl:89
//line web/template/template.qtpl:90
}
//line web/template/template.qtpl:91
func (ctx Context) streamlang(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:92
func (ctx Context) streamdir(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:93
switch ctx.language {
//line web/template/template.qtpl:94
default:
//line web/template/template.qtpl:94
qw422016.N().S(`ltr`)
//line web/template/template.qtpl:96
case language.Arabic, language.Persian, language.Hebrew, language.Urdu:
//line web/template/template.qtpl:96
qw422016.N().S(`rtl`)
//line web/template/template.qtpl:98
}
//line web/template/template.qtpl:99
}
//line web/template/template.qtpl:99
func (ctx Context) writedir(qq422016 qtio422016.Writer) {
//line web/template/template.qtpl:99
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:99
ctx.streamdir(qw422016)
//line web/template/template.qtpl:99
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:99
}
//line web/template/template.qtpl:99
func (ctx Context) dir() string {
//line web/template/template.qtpl:99
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:99
ctx.writedir(qb422016)
//line web/template/template.qtpl:99
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:99
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:99
return qs422016
//line web/template/template.qtpl:99
}
//line web/template/template.qtpl:101
func (ctx Context) streamlang(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:102
base, _ := ctx.language.Base()
//line web/template/template.qtpl:93
//line web/template/template.qtpl:103
qw422016.E().S(base.String())
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
}
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
func (ctx Context) writelang(qq422016 qtio422016.Writer) {
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
ctx.streamlang(qw422016)
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
}
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
func (ctx Context) lang() string {
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
ctx.writelang(qb422016)
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
return qs422016
//line web/template/template.qtpl:94
//line web/template/template.qtpl:104
}
//line web/template/template.qtpl:96
//line web/template/template.qtpl:106
func (ctx Context) streamt(qw422016 *qt422016.Writer, format message.Reference, v ...any) {
//line web/template/template.qtpl:97
//line web/template/template.qtpl:107
qw422016.E().S(ctx.printer.Sprintf(format, v...))
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
}
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
func (ctx Context) writet(qq422016 qtio422016.Writer, format message.Reference, v ...any) {
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
ctx.streamt(qw422016, format, v...)
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
}
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
func (ctx Context) t(format message.Reference, v ...any) string {
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
ctx.writet(qb422016, format, v...)
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
return qs422016
//line web/template/template.qtpl:98
//line web/template/template.qtpl:108
}
//line web/template/template.qtpl:100
//line web/template/template.qtpl:110
func (ctx Context) streamtitle(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:101
//line web/template/template.qtpl:111
ctx.streamt(qw422016, `Donate $%.2f to %s`, ctx.amount/100, "toby3d")
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
}
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
func (ctx Context) writetitle(qq422016 qtio422016.Writer) {
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
ctx.streamtitle(qw422016)
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
}
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
func (ctx Context) title() string {
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
ctx.writetitle(qb422016)
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
return qs422016
//line web/template/template.qtpl:102
//line web/template/template.qtpl:112
}
//line web/template/template.qtpl:104
//line web/template/template.qtpl:114
func StreamTemplate(qw422016 *qt422016.Writer, p Page) {
//line web/template/template.qtpl:104
//line web/template/template.qtpl:114
qw422016.N().S(`<!DOCTYPE html><html lang="`)
//line web/template/template.qtpl:106
//line web/template/template.qtpl:116
p.streamlang(qw422016)
//line web/template/template.qtpl:106
//line web/template/template.qtpl:116
qw422016.N().S(`" dir="`)
//line web/template/template.qtpl:106
//line web/template/template.qtpl:116
p.streamdir(qw422016)
//line web/template/template.qtpl:106
//line web/template/template.qtpl:116
qw422016.N().S(`"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>`)
//line web/template/template.qtpl:110
p.streamtitle(qw422016)
//line web/template/template.qtpl:110
qw422016.N().S(`</title>`)
//line web/template/template.qtpl:111
p.streamhead(qw422016)
//line web/template/template.qtpl:111
qw422016.N().S(`</head><body>`)
//line web/template/template.qtpl:114
p.streambody(qw422016)
//line web/template/template.qtpl:114
qw422016.N().S(`</body></html>`)
//line web/template/template.qtpl:117
}
//line web/template/template.qtpl:117
func WriteTemplate(qq422016 qtio422016.Writer, p Page) {
//line web/template/template.qtpl:117
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:117
StreamTemplate(qw422016, p)
//line web/template/template.qtpl:117
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:117
}
//line web/template/template.qtpl:117
func Template(p Page) string {
//line web/template/template.qtpl:117
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:117
WriteTemplate(qb422016, p)
//line web/template/template.qtpl:117
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:117
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:117
return qs422016
//line web/template/template.qtpl:117
}
//line web/template/template.qtpl:119
func streamicon(qw422016 *qt422016.Writer, id string) {
//line web/template/template.qtpl:120
switch id {
p.streamtitle(qw422016)
//line web/template/template.qtpl:120
qw422016.N().S(`</title>`)
//line web/template/template.qtpl:121
case "liberapay":
p.streamhead(qw422016)
//line web/template/template.qtpl:121
qw422016.N().S(`<svg class="icon"`)
//line web/template/template.qtpl:122
qw422016.N().S(` `)
//line web/template/template.qtpl:122
qw422016.N().S(`width="32"`)
//line web/template/template.qtpl:123
qw422016.N().S(` `)
//line web/template/template.qtpl:123
qw422016.N().S(`height="32"`)
qw422016.N().S(`</head><body>`)
//line web/template/template.qtpl:124
qw422016.N().S(` `)
p.streambody(qw422016)
//line web/template/template.qtpl:124
qw422016.N().S(`viewBox="0 0 80 80"`)
//line web/template/template.qtpl:125
qw422016.N().S(` `)
//line web/template/template.qtpl:125
qw422016.N().S(`aria-hidden="true"`)
//line web/template/template.qtpl:126
qw422016.N().S(` `)
//line web/template/template.qtpl:126
qw422016.N().S(`focusable="false"`)
qw422016.N().S(`</body></html>`)
//line web/template/template.qtpl:127
qw422016.N().S(` `)
//line web/template/template.qtpl:127
qw422016.N().S(`xmlns="http://www.w3.org/2000/svg"><path fill="#1a171b" d="M25.91 63.04c-3.57 0-6.37-.47-8.41-1.4a9.03 9.03 0 0 1-4.38-3.8 11.15 11.15 0 0 1-1.28-5.55c.03-2.08.32-4.31.87-6.67L22.3 5.57l11.69-1.81L23.5 47.2c-.2.9-.32 1.73-.34 2.49-.03.75.11 1.42.41 2 .3.57.82 1.04 1.55 1.39a8.7 8.7 0 0 0 3.05.68l-2.26 9.28m42.24-24.96c0 3.67-.6 7.03-1.81 10.07a23.94 23.94 0 0 1-5.01 7.88 22.43 22.43 0 0 1-7.7 5.17 25.4 25.4 0 0 1-9.76 1.85c-1.71 0-3.42-.16-5.13-.46l-3.4 13.65H24.19L36.7 24.05a67.6 67.6 0 0 1 6.9-1.62c2.6-.48 5.4-.71 8.42-.71 2.81 0 5.24.42 7.27 1.28a13.6 13.6 0 0 1 5.02 3.5 14.32 14.32 0 0 1 2.9 5.21c.63 1.99.95 4.11.95 6.37M40.78 53.54c.85.2 1.91.3 3.17.3 1.96 0 3.74-.36 5.35-1.09a11.8 11.8 0 0 0 4.11-3.05 14.1 14.1 0 0 0 2.64-4.72c.63-1.83.95-3.86.95-6.07 0-2.16-.48-4-1.44-5.5-.95-1.51-2.61-2.27-4.97-2.27-1.61 0-3.12.15-4.53.46l-5.28 21.94" /></svg>`)
//line web/template/template.qtpl:132
case "paypal":
//line web/template/template.qtpl:132
qw422016.N().S(`<svg class="icon"`)
//line web/template/template.qtpl:133
qw422016.N().S(` `)
//line web/template/template.qtpl:133
qw422016.N().S(`width="32"`)
//line web/template/template.qtpl:134
qw422016.N().S(` `)
//line web/template/template.qtpl:134
qw422016.N().S(`height="32"`)
//line web/template/template.qtpl:135
qw422016.N().S(` `)
//line web/template/template.qtpl:135
qw422016.N().S(`viewBox="0 0 154.7 190.5"`)
//line web/template/template.qtpl:136
qw422016.N().S(` `)
//line web/template/template.qtpl:136
qw422016.N().S(`aria-hidden="true"`)
//line web/template/template.qtpl:137
qw422016.N().S(` `)
//line web/template/template.qtpl:137
qw422016.N().S(`focusable="false"`)
//line web/template/template.qtpl:138
qw422016.N().S(` `)
//line web/template/template.qtpl:138
qw422016.N().S(`xmlns="http://www.w3.org/2000/svg">`)
//line web/template/template.qtpl:141
qw422016.N().S(`<path fill="#003087" d="M28 0a5.5 5.5 0 0 0-5.5 4.6L.1 147.2a4.5 4.5 0 0 0 4.4 5.2h33.3l8.3-52.5 9-57.2a5.5 5.5 0 0 1 5.4-4.6h47.8c8.7 0 16.6 2 23.4 5.6C132 19.7 112.4 0 85.3 0z" />`)
//line web/template/template.qtpl:143
qw422016.N().S(`<path fill="#001c64" d="M60.5 38.1a5.5 5.5 0 0 0-5.4 4.6l-9 57.2-8.3 52.5 8.3-52.5a5.5 5.5 0 0 1 5.4-4.6H78a54 54 0 0 0 53.8-51.6 50 50 0 0 0-23.4-5.6z" />`)
//line web/template/template.qtpl:145
qw422016.N().S(`<path fill="#0070e0" d="M131.7 43.7a54 54 0 0 1-53.8 51.6H51.5c-2.7 0-5 2-5.4 4.6l-8.3 52.5-5.2 33a4.5 4.5 0 0 0 4.4 5.1h28.7a5.5 5.5 0 0 0 5.4-4.6l7.6-48a5.5 5.5 0 0 1 5.4-4.5H101a54 54 0 0 0 53.2-45.7c3-18.7-6.5-35.6-22.5-44z" /></svg>`)
//line web/template/template.qtpl:148
}
//line web/template/template.qtpl:149
}
//line web/template/template.qtpl:149
func writeicon(qq422016 qtio422016.Writer, id string) {
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
func WriteTemplate(qq422016 qtio422016.Writer, p Page) {
//line web/template/template.qtpl:127
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:149
streamicon(qw422016, id)
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
StreamTemplate(qw422016, p)
//line web/template/template.qtpl:127
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
}
//line web/template/template.qtpl:149
func icon(id string) string {
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
func Template(p Page) string {
//line web/template/template.qtpl:127
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:149
writeicon(qb422016, id)
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
WriteTemplate(qb422016, p)
//line web/template/template.qtpl:127
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
return qs422016
//line web/template/template.qtpl:149
//line web/template/template.qtpl:127
}
//line web/template/template.qtpl:129
func streamicon(qw422016 *qt422016.Writer, id string) {
//line web/template/template.qtpl:130
switch id {
//line web/template/template.qtpl:131
case "liberapay":
//line web/template/template.qtpl:131
qw422016.N().S(`<svg class="icon"`)
//line web/template/template.qtpl:132
qw422016.N().S(` `)
//line web/template/template.qtpl:132
qw422016.N().S(`width="32"`)
//line web/template/template.qtpl:133
qw422016.N().S(` `)
//line web/template/template.qtpl:133
qw422016.N().S(`height="32"`)
//line web/template/template.qtpl:134
qw422016.N().S(` `)
//line web/template/template.qtpl:134
qw422016.N().S(`viewBox="0 0 80 80"`)
//line web/template/template.qtpl:135
qw422016.N().S(` `)
//line web/template/template.qtpl:135
qw422016.N().S(`aria-hidden="true"`)
//line web/template/template.qtpl:136
qw422016.N().S(` `)
//line web/template/template.qtpl:136
qw422016.N().S(`focusable="false"`)
//line web/template/template.qtpl:137
qw422016.N().S(` `)
//line web/template/template.qtpl:137
qw422016.N().S(`xmlns="http://www.w3.org/2000/svg"><path fill="#1a171b" d="M25.91 63.04c-3.57 0-6.37-.47-8.41-1.4a9.03 9.03 0 0 1-4.38-3.8 11.15 11.15 0 0 1-1.28-5.55c.03-2.08.32-4.31.87-6.67L22.3 5.57l11.69-1.81L23.5 47.2c-.2.9-.32 1.73-.34 2.49-.03.75.11 1.42.41 2 .3.57.82 1.04 1.55 1.39a8.7 8.7 0 0 0 3.05.68l-2.26 9.28m42.24-24.96c0 3.67-.6 7.03-1.81 10.07a23.94 23.94 0 0 1-5.01 7.88 22.43 22.43 0 0 1-7.7 5.17 25.4 25.4 0 0 1-9.76 1.85c-1.71 0-3.42-.16-5.13-.46l-3.4 13.65H24.19L36.7 24.05a67.6 67.6 0 0 1 6.9-1.62c2.6-.48 5.4-.71 8.42-.71 2.81 0 5.24.42 7.27 1.28a13.6 13.6 0 0 1 5.02 3.5 14.32 14.32 0 0 1 2.9 5.21c.63 1.99.95 4.11.95 6.37M40.78 53.54c.85.2 1.91.3 3.17.3 1.96 0 3.74-.36 5.35-1.09a11.8 11.8 0 0 0 4.11-3.05 14.1 14.1 0 0 0 2.64-4.72c.63-1.83.95-3.86.95-6.07 0-2.16-.48-4-1.44-5.5-.95-1.51-2.61-2.27-4.97-2.27-1.61 0-3.12.15-4.53.46l-5.28 21.94" /></svg>`)
//line web/template/template.qtpl:142
case "paypal":
//line web/template/template.qtpl:142
qw422016.N().S(`<svg class="icon"`)
//line web/template/template.qtpl:143
qw422016.N().S(` `)
//line web/template/template.qtpl:143
qw422016.N().S(`width="32"`)
//line web/template/template.qtpl:144
qw422016.N().S(` `)
//line web/template/template.qtpl:144
qw422016.N().S(`height="32"`)
//line web/template/template.qtpl:145
qw422016.N().S(` `)
//line web/template/template.qtpl:145
qw422016.N().S(`viewBox="0 0 154.7 190.5"`)
//line web/template/template.qtpl:146
qw422016.N().S(` `)
//line web/template/template.qtpl:146
qw422016.N().S(`aria-hidden="true"`)
//line web/template/template.qtpl:147
qw422016.N().S(` `)
//line web/template/template.qtpl:147
qw422016.N().S(`focusable="false"`)
//line web/template/template.qtpl:148
qw422016.N().S(` `)
//line web/template/template.qtpl:148
qw422016.N().S(`xmlns="http://www.w3.org/2000/svg">`)
//line web/template/template.qtpl:151
qw422016.N().S(`<path fill="#003087" d="M28 0a5.5 5.5 0 0 0-5.5 4.6L.1 147.2a4.5 4.5 0 0 0 4.4 5.2h33.3l8.3-52.5 9-57.2a5.5 5.5 0 0 1 5.4-4.6h47.8c8.7 0 16.6 2 23.4 5.6C132 19.7 112.4 0 85.3 0z" />`)
//line web/template/template.qtpl:153
qw422016.N().S(`<path fill="#001c64" d="M60.5 38.1a5.5 5.5 0 0 0-5.4 4.6l-9 57.2-8.3 52.5 8.3-52.5a5.5 5.5 0 0 1 5.4-4.6H78a54 54 0 0 0 53.8-51.6 50 50 0 0 0-23.4-5.6z" />`)
//line web/template/template.qtpl:155
qw422016.N().S(`<path fill="#0070e0" d="M131.7 43.7a54 54 0 0 1-53.8 51.6H51.5c-2.7 0-5 2-5.4 4.6l-8.3 52.5-5.2 33a4.5 4.5 0 0 0 4.4 5.1h28.7a5.5 5.5 0 0 0 5.4-4.6l7.6-48a5.5 5.5 0 0 1 5.4-4.5H101a54 54 0 0 0 53.2-45.7c3-18.7-6.5-35.6-22.5-44z" /></svg>`)
//line web/template/template.qtpl:158
case "yoomoney":
//line web/template/template.qtpl:158
qw422016.N().S(`<svg class="icon"`)
//line web/template/template.qtpl:159
qw422016.N().S(` `)
//line web/template/template.qtpl:159
qw422016.N().S(`width="32"`)
//line web/template/template.qtpl:160
qw422016.N().S(` `)
//line web/template/template.qtpl:160
qw422016.N().S(`height="32"`)
//line web/template/template.qtpl:161
qw422016.N().S(` `)
//line web/template/template.qtpl:161
qw422016.N().S(`viewBox="0 0 169 120"`)
//line web/template/template.qtpl:162
qw422016.N().S(` `)
//line web/template/template.qtpl:162
qw422016.N().S(`aria-hidden="true"`)
//line web/template/template.qtpl:163
qw422016.N().S(` `)
//line web/template/template.qtpl:163
qw422016.N().S(`focusable="false"`)
//line web/template/template.qtpl:164
qw422016.N().S(` `)
//line web/template/template.qtpl:164
qw422016.N().S(`xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M109 0a59.9 59.9 0 1 0 0 120c33 0 60-27 60-60S142 0 109 0Zm0 82.4A22.7 22.7 0 0 1 86.6 60 22.7 22.7 0 0 1 109 37.6 22.7 22.7 0 0 1 131.4 60 23 23 0 0 1 109 82.4Z"/><path fill="#fff" d="M48.6 17.5v87.3H27.3L0 17.5h48.6Z"/></svg>`)
//line web/template/template.qtpl:170
}
//line web/template/template.qtpl:171
}
//line web/template/template.qtpl:171
func writeicon(qq422016 qtio422016.Writer, id string) {
//line web/template/template.qtpl:171
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/template.qtpl:171
streamicon(qw422016, id)
//line web/template/template.qtpl:171
qt422016.ReleaseWriter(qw422016)
//line web/template/template.qtpl:171
}
//line web/template/template.qtpl:171
func icon(id string) string {
//line web/template/template.qtpl:171
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/template.qtpl:171
writeicon(qb422016, id)
//line web/template/template.qtpl:171
qs422016 := string(qb422016.B)
//line web/template/template.qtpl:171
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/template.qtpl:171
return qs422016
//line web/template/template.qtpl:171
}