Files
gw-svelte/mail-api/__pycache__/main.cpython-313.pyc
T

355 lines
24 KiB
Plaintext
Raw Normal View History

2026-05-02 08:26:18 +12:00
ó
ôói&QãóˆSSKrSSKrSSKJr SSKrSSKJrJrJr SSKJ r SSK
J r J r \R"\RS9 \R"\5r\R$S\l\R$Sr\R$R+S S
5r\R$R+S S 5rS
r\"5r\R5\ S/S/S/S9 "SS\ 5rS\S\4SjrS\S\4SjrS\S\S\4SjrS\S\S\4Sjr S&S\S\S\4Sjjr!S\S\4S jr"S\S!\S"\S\4S#jr#\RIS$5S\S\4S%j5r%g)'éN)Údatetime)ÚFastAPIÚ
HTTPExceptionÚRequest)ÚCORSMiddleware)Ú BaseModelÚEmailStr)ÚlevelÚRESEND_API_KEYÚ OWNER_EMAILÚ
FROM_EMAILz"GoodWalk <bookings@goodwalk.co.nz>ÚREPLY_TOzaless@goodwalk.co.nzzAhttps://www.goodwalk.co.nz/wp-content/uploads/2022/06/logo-v6.pngÚPOST)Ú
allow_originsÚ
allow_methodsÚ
allow_headerscó†\rSrSr%\\S'\\S'\\S'\\S'\\S'Sr\\S'/r\ \\S 'Sr
\\S
'Sr \\S 'S r g
)ÚBookingSubmissionéÚfullNameÚemailÚphoneÚpetNameÚlocationÚÚmessageÚservicesÚreferrerÚpage©N)
Ú__name__Ú
__module__Ú __qualname__Ú__firstlineno__ÚstrÚ__annotations__r rrÚlistrr Ú__static_attributes__r!óÚ-C:\Users\Matt\gw-svelte-port\mail-api\main.pyrrsF؃MØ ƒOØ ƒJØ
ƒL؃MØ€GˆSÓØ€Hˆd3‰iÓØ€HˆcÓØ€Dˆ#†Nr*rÚrequestÚreturncóÜURRS5nU(a"URS5SR5$UR(aURR
$S$)Nzx-forwarded-forÚ,rÚunknown)ÚheadersÚgetÚsplitÚstripÚclientÚhost)r,Ú forwardeds r+Ú_get_ipr8-sRØ×#Ð$5Ó6€IÞØ˜# &×.Ø")§.§.ˆ7>‰>× Ñ Ð?°iÐ?r*ÚuacóŠ^T(dg/SQn/SQn[U4SjU5S5n[U4SjU5S5nUSU3$) NÚUnknown))zEdg/ÚEdge)zOPR/ÚOpera)zChrome/ÚChrome)zFirefox/ÚFirefox)zSafari/ÚSafari))z
Windows NT 10z
Windows 10/11)z Windows NT 6z Windows 8)zMac OS XÚmacOS)ÚiPhonerB)ÚiPadrC)ÚAndroidrD)ÚLinuxrEc3ó<># UHupUT;dM
Uv M g7f©Nr!©Ú.0Únr9s €r+Ú <genexpr>Ú_parse_ua.<locals>.<genexpr><søéÐ6¢(™$˜!¨a°2©g—A‘A¢(ùóƒ zUnknown browserc3ó<># UHupUT;dM
Uv M g7frGr!rHs €r+rLrM=søéИ¨A°©G—1‘1¢ùrNz
Unknown OSz on )Únext)r9ÚbrowsersÚsystemsÚbrowserÚsystems` r+Ú _parse_uarU4sPø€Þ
Øò@€Hò;€GôÔ6¡(Ó6Ð8IÓJ€GÜ
ÔÓ4°lÓ
C€F؈Yd˜6˜ #r*ÚlabelÚvaluecó$U(dgSUSUS3$)Nr
<tr>
<td style="padding:8px 0;color:#888;font-size:13px;white-space:nowrap;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;width:130px;">z×</td>
<td style="padding:8px 0 8px 16px;color:#213021;font-size:14px;font-weight:500;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">ú</td>
</tr>r!©rVrWs r+Ú _detail_rowr[As/Þ Øð49°'ð:'ð(- .
ð
ð
r*có$U(dgSUSUS3$)Nr
<tr>
<td style="padding:5px 0;color:#aaa;font-size:12px;white-space:nowrap;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;width:100px;">zÙ</td>
<td style="padding:5px 0 5px 16px;color:#666;font-size:12px;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;word-break:break-all;">rYr!rZs r+Ú _meta_rowr]Os1Þ Øð49°'ð:<ð=B¸C
ð
ð
r*Ú
badge_htmlÚsubtitlecó^U(aSUS3OSnU(aSUS3OSnS[SUSUS3$) Nz<div style="margin-top:20px;">z</div>rz¿<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:13px;color:#7aaa7a;letter-spacing:0.04em;margin-top:8px;">
zx
<tr>
<td style="background:#213021;padding:36px 48px 32px;text-align:center;">
<img src="zŠ" width="161" height="32" alt="GoodWalk"
style="display:inline-block;max-width:161px;height:auto;border:0;">
z
z
</td>
</tr>)ÚLOGO_URL)r^r_ÚbadgeÚsubs r+Ú _logo_headerrd_scÞCMÐ,¨Z¨L¸Ñ ?ÐSU€Eö(0ðà
˜ $à57ððô !
à
ˆ
Ø
ˆð
 ðr*Údatacó\UR(aSRUR5OSnUR(a[SUR5OSnS[ SS9SUR
R
5S S
URS [S UR
5S
[SUR5S
[SUR5S
[SUR5S
[SUR5S
[SU5S
USURS[S[S3$), z
Not specifiedz
About the dograv<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>We received your enquiry</title>
</head>
<body style="margin:0;padding:0;background:#f2f2f0;">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="background:#f2f2f0;padding:40px 16px;">
<tr><td align="center">
<table width="600" cellpadding="0" cellspacing="0" role="presentation"
style="max-width:600px;width:100%;border-radius:16px;overflow:hidden;
box-shadow:0 4px 24px rgba(0,0,0,0.08);">
z.Auckland&rsquo;s favourite dog walking service)r_a?
<!-- Body -->
<tr>
<td style="background:#ffffff;padding:48px 48px 40px;">
<h1 style="margin:0 0 8px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:26px;font-weight:700;color:#213021;line-height:1.2;">
Thanks, r! &#x1F43E;
</h1>
<p style="margin:0 0 32px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:16px;color:#555;line-height:1.65;">
We&rsquo;ve received your enquiry and Aless will be in touch shortly to arrange
a <strong style="color:#213021;">Meet &amp; Greet</strong> with you and
.
</p>
<!-- Details card -->
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="background:#f8f7f4;border-radius:12px;margin-bottom:36px;">
<tr>
<td style="padding:28px 32px;">
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:11px;font-weight:700;letter-spacing:0.1em;
color:#888;text-transform:uppercase;margin-bottom:20px;">
Your enquiry summary
</div>
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
z Your namez
ÚEmailÚPhonezDog&rsquo;s nameÚLocationÚServicesaô
</table>
</td>
</tr>
</table>
<!-- What's next -->
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="border-left:3px solid #FFD100;margin-bottom:36px;">
<tr>
<td style="padding:4px 0 4px 20px;">
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:13px;font-weight:700;color:#213021;margin-bottom:6px;">
What happens next?
</div>
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:14px;color:#666;line-height:1.6;">
Aless will review your details and reach out within 1&ndash;2 business days
to schedule a free Meet &amp; Greet. No commitment required &mdash; just a
chance for az to make a new best friend.
</div>
</td>
</tr>
</table>
<p style="margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:14px;color:#888;line-height:1.6;">
Questions? Just reply to this email or reach us at
<a href="mailto:zP" style="color:#213021;font-weight:600;
text-decoration:none;">a†</a>.
</p>
</td>
</tr>
<!-- Footer -->
<tr>
<td style="background:#213021;padding:24px 48px;text-align:center;">
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:12px;color:#5a8a5a;line-height:1.6;">
GoodWalk &middot; Auckland, New Zealand<br>
<a href="https://www.goodwalk.co.nz" style="color:#7aaa7a;text-decoration:none;">
goodwalk.co.nz
</a>
</div>
</td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>) rÚjoinrr[rdrr3rrrrr)reÚ
services_textÚ message_rows r+Ú client_emailroos>Ø04·
·
D—II˜dŸm™mÔ,À?€MØ@DÇ Ç ”+˜o¨t¯|©|Ô<ÐRT€Kð ô"
ÐOÑ PÐRð—}‘}×,¨QÑ1ð |‰|ˆnðô! ¨d¯m©mÓ>Ü  ¨$¯*©*Ó7Ü  ¨$¯*©*Ó7Ü Ð!3°T·\±\ÓDÜ  ¨T¯]©]Ó=Ü  ¨]Ó=Ø " ð&!%§ ¡ ˜ .ô (˜))Ü)1¨
ð3ðah ðh r*ÚiprScóòUR(aSRUR5OSn[R"5nUR S5R S5nUR (aSUR S3OSnSRUS 9nUR(a[S
UR5O [S
S 5nUR(a[S UR5OSn SR/S
P[US9PSPURPSPURPSPURPSPURPSPURPSPURPSPUR PSPUPSPUPSPURPSPURR#5SPSPURPSPURPSP[SU5PSP[SU5PSPUPSPU PS P5$)!Nrgu—z%d %b %Y at %I:%M %pÚ0a!
<tr>
<td colspan="2" style="padding:16px 0 0;">
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:11px;font-weight:700;letter-spacing:0.08em;color:#888;
text-transform:uppercase;margin-bottom:8px;">About the dog</div>
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:14px;color:#444;line-height:1.6;background:#f0efe9;
border-radius:8px;padding:14px 16px;">z</div>
</td>
</tr>rao<div style="display:inline-block;background:#FFD100;border-radius:100px;
padding:10px 28px;">
<span style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:18px;font-weight:700;color:#213021;">
&#x1F4E9;&nbsp; New lead!
</span>
</div>
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:12px;color:#5a8a5a;margin-top:12px;">
Submitted {submitted_at}
</div>)Ú submitted_atz Came fromzDirect / bookmarkÚPageao<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>New GoodWalk Lead</title>
</head>
<body style="margin:0;padding:0;background:#f2f2f0;">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="background:#f2f2f0;padding:40px 16px;">
<tr><td align="center">
<table width="600" cellpadding="0" cellspacing="0" role="presentation"
style="max-width:600px;width:100%;border-radius:16px;overflow:hidden;
box-shadow:0 4px 24px rgba(0,0,0,0.08);">
)r^
<!-- Body -->
<tr>
<td style="background:#ffffff;padding:40px 48px 36px;">
<!-- Owner details -->
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:11px;font-weight:700;letter-spacing:0.1em;color:#888;
text-transform:uppercase;margin-bottom:16px;">Owner details</div>
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="background:#f8f7f4;border-radius:12px;margin-bottom:28px;">
<tr><td style="padding:24px 28px;">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td style="padding:6px 0;font-size:13px;color:#888;width:80px;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">Name</td>
<td style="padding:6px 0 6px 16px;font-size:15px;font-weight:600;
color:#213021;font-family:-apple-system,BlinkMacSystemFont,
'Segoe UI',sans-serif;vertical-align:top;">a#</td>
</tr>
<tr>
<td style="padding:6px 0;font-size:13px;color:#888;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">Email</td>
<td style="padding:6px 0 6px 16px;font-size:14px;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">
<a href="mailto:zX" style="color:#213021;font-weight:500;
text-decoration:none;">a9</a>
</td>
</tr>
<tr>
<td style="padding:6px 0;font-size:13px;color:#888;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">Phone</td>
<td style="padding:6px 0 6px 16px;font-size:14px;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">
<a href="tel:aø</a>
</td>
</tr>
</table>
</td></tr>
</table>
<!-- Dog & service details -->
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:11px;font-weight:700;letter-spacing:0.1em;color:#888;
text-transform:uppercase;margin-bottom:16px;">Dog &amp; services</div>
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="background:#f8f7f4;border-radius:12px;margin-bottom:28px;">
<tr><td style="padding:24px 28px;">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td style="padding:6px 0;font-size:13px;color:#888;width:80px;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">Dog</td>
<td style="padding:6px 0 6px 16px;font-size:15px;font-weight:600;
color:#213021;font-family:-apple-system,BlinkMacSystemFont,
'Segoe UI',sans-serif;vertical-align:top;">a</td>
</tr>
<tr>
<td style="padding:6px 0;font-size:13px;color:#888;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">Location</td>
<td style="padding:6px 0 6px 16px;font-size:14px;font-weight:500;color:#213021;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">a
</td>
</tr>
<tr>
<td style="padding:6px 0;font-size:13px;color:#888;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">Services</td>
<td style="padding:6px 0 6px 16px;font-size:14px;color:#444;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
vertical-align:top;">z0</td>
</tr>
a4
</table>
</td></tr>
</table>
<!-- CTA buttons -->
<table cellpadding="0" cellspacing="0" role="presentation" style="margin-bottom:32px;">
<tr>
<td style="padding-right:12px;">
<a href="mailto:af"
style="display:inline-block;background:#213021;color:#FFD100;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:14px;font-weight:600;text-decoration:none;
border-radius:8px;padding:12px 24px;">
Reply to rzb
</a>
</td>
<td>
<a href="tel:a{"
style="display:inline-block;background:#f8f7f4;color:#213021;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:14px;font-weight:600;text-decoration:none;
border-radius:8px;padding:12px 24px;border:1px solid #e0e0d8;">
Call aµ
</a>
</td>
</tr>
</table>
<!-- Session info -->
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"
style="border-top:1px solid #eeeee8;padding-top:20px;">
<tr><td>
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:11px;font-weight:700;letter-spacing:0.08em;color:#ccc;
text-transform:uppercase;margin-bottom:12px;">Session info</div>
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
z
IP addressz
ÚBrowseraE
</table>
</td></tr>
</table>
</td>
</tr>
<!-- Footer -->
<tr>
<td style="background:#f8f7f4;padding:18px 48px;text-align:center;
border-top:1px solid #e8e8e4;">
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
font-size:12px;color:#bbb;">
Sent automatically by GoodWalk booking form
</div>