@scalemule/news-publication 0.0.52 → 0.0.55
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/{chunk-N4JMMFPK.js → chunk-ZALGE4PF.js} +419 -229
- package/dist/pets-forms.cjs +657 -489
- package/dist/pets-forms.js +640 -476
- package/dist/pets-interactions.cjs +25 -19
- package/dist/pets-interactions.js +25 -19
- package/dist/pets-plugin.cjs +44 -12
- package/dist/pets-plugin.js +45 -13
- package/dist/pets-publication.cjs +198 -246
- package/dist/pets-publication.js +5 -4
- package/dist/pets-view.cjs +433 -241
- package/dist/pets-view.d.cts +4 -2
- package/dist/pets-view.d.ts +4 -2
- package/dist/pets-view.js +1 -1
- package/fonts/bricolage-OFL.txt +93 -0
- package/fonts/dmsans-OFL.txt +93 -0
- package/fonts/paw-bricolage.woff2 +0 -0
- package/fonts/paw-dmsans.woff2 +0 -0
- package/images/README.md +8 -0
- package/images/paw-neighborhood-mobile.webp +0 -0
- package/package.json +4 -2
- package/pets.css +1394 -414
- package/tokens/broadsheet.css +34 -0
|
@@ -311,181 +311,6 @@ function PawMark({ size = 40 }) {
|
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
|
-
function PawNeighborhoodIllustration() {
|
|
315
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
316
|
-
"svg",
|
|
317
|
-
{
|
|
318
|
-
className: "paw-neighborhood-art",
|
|
319
|
-
viewBox: "0 0 520 460",
|
|
320
|
-
fill: "none",
|
|
321
|
-
"aria-hidden": "true",
|
|
322
|
-
children: [
|
|
323
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
-
"path",
|
|
325
|
-
{
|
|
326
|
-
d: "M42 233C42 111 124 29 257 29c134 0 220 102 220 218v153H42V233Z",
|
|
327
|
-
fill: "var(--paw-art-sky)"
|
|
328
|
-
}
|
|
329
|
-
),
|
|
330
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "366", cy: "112", r: "44", fill: "var(--paw-sun)" }),
|
|
331
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
332
|
-
"path",
|
|
333
|
-
{
|
|
334
|
-
d: "M42 262c93-99 132-19 203-52 91-43 145-27 232 52v138H42V262Z",
|
|
335
|
-
fill: "var(--paw-art-hill)"
|
|
336
|
-
}
|
|
337
|
-
),
|
|
338
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
339
|
-
"path",
|
|
340
|
-
{
|
|
341
|
-
d: "M42 331c89-59 161-27 216-3 81 36 145-47 219-21v93H42v-69Z",
|
|
342
|
-
fill: "var(--paw-art-ground)"
|
|
343
|
-
}
|
|
344
|
-
),
|
|
345
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
346
|
-
"path",
|
|
347
|
-
{
|
|
348
|
-
d: "M310 239c34-18 68-21 103-14M311 249c34-18 68-21 103-14",
|
|
349
|
-
stroke: "var(--paw-art-line)",
|
|
350
|
-
strokeWidth: "2",
|
|
351
|
-
strokeLinecap: "round",
|
|
352
|
-
opacity: ".45"
|
|
353
|
-
}
|
|
354
|
-
),
|
|
355
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
356
|
-
"path",
|
|
357
|
-
{
|
|
358
|
-
d: "M90 190v75m29-85v75m-44-46h61m-57 31c14-15 32-15 51-7",
|
|
359
|
-
stroke: "var(--paw-art-line)",
|
|
360
|
-
strokeWidth: "3",
|
|
361
|
-
strokeLinecap: "round",
|
|
362
|
-
opacity: ".45"
|
|
363
|
-
}
|
|
364
|
-
),
|
|
365
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
366
|
-
"path",
|
|
367
|
-
{
|
|
368
|
-
d: "M167 341c-29-24-33-67-5-88 16-12 44-6 59 17l27 47c15 26 36 38 58 44H167v-20Z",
|
|
369
|
-
fill: "var(--paw-terracotta)"
|
|
370
|
-
}
|
|
371
|
-
),
|
|
372
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
373
|
-
"path",
|
|
374
|
-
{
|
|
375
|
-
d: "M173 340c-17-9-39-15-54-31-14-16-13-27-11-38",
|
|
376
|
-
stroke: "var(--paw-terracotta)",
|
|
377
|
-
strokeWidth: "17",
|
|
378
|
-
strokeLinecap: "round"
|
|
379
|
-
}
|
|
380
|
-
),
|
|
381
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
382
|
-
"path",
|
|
383
|
-
{
|
|
384
|
-
d: "M229 283c26-17 39-43 31-67-8-25-35-34-57-18-23 17-13 49 1 68",
|
|
385
|
-
fill: "var(--paw-terracotta)"
|
|
386
|
-
}
|
|
387
|
-
),
|
|
388
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
389
|
-
"path",
|
|
390
|
-
{
|
|
391
|
-
d: "M251 224l34 5c14 2 13 23 0 28l-36 13",
|
|
392
|
-
fill: "var(--paw-terracotta)"
|
|
393
|
-
}
|
|
394
|
-
),
|
|
395
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
396
|
-
"path",
|
|
397
|
-
{
|
|
398
|
-
d: "M206 203c-15 1-31 13-29 33 1 11 6 18 15 17 13-1 21-18 25-37",
|
|
399
|
-
fill: "var(--paw-art-line)"
|
|
400
|
-
}
|
|
401
|
-
),
|
|
402
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
403
|
-
"path",
|
|
404
|
-
{
|
|
405
|
-
d: "M231 285l-10 67c-1 7 9 11 28 11M264 280l2 70c0 10 10 13 25 13",
|
|
406
|
-
stroke: "var(--paw-terracotta)",
|
|
407
|
-
strokeWidth: "19",
|
|
408
|
-
strokeLinecap: "round"
|
|
409
|
-
}
|
|
410
|
-
),
|
|
411
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
412
|
-
"path",
|
|
413
|
-
{
|
|
414
|
-
d: "M215 273l38-7",
|
|
415
|
-
stroke: "var(--paw-art-line)",
|
|
416
|
-
strokeWidth: "9",
|
|
417
|
-
strokeLinecap: "round"
|
|
418
|
-
}
|
|
419
|
-
),
|
|
420
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "248", cy: "223", r: "3.5", fill: "var(--paw-art-line)" }),
|
|
421
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M283 229h9c1 8-3 13-9 13", fill: "var(--paw-art-line)" }),
|
|
422
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
-
"path",
|
|
424
|
-
{
|
|
425
|
-
d: "M292 348c-9-46 1-79 33-79 33 0 47 37 48 77l-1 17h-80v-15Z",
|
|
426
|
-
fill: "var(--paw-art-cat)"
|
|
427
|
-
}
|
|
428
|
-
),
|
|
429
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M303 277l-6-43 26 20 23-22 2 48", fill: "var(--paw-art-cat)" }),
|
|
430
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
-
"path",
|
|
432
|
-
{
|
|
433
|
-
d: "M365 351c27-4 45-15 41-39-2-11-15-16-24-10",
|
|
434
|
-
stroke: "var(--paw-art-cat)",
|
|
435
|
-
strokeWidth: "12",
|
|
436
|
-
strokeLinecap: "round"
|
|
437
|
-
}
|
|
438
|
-
),
|
|
439
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
-
"path",
|
|
441
|
-
{
|
|
442
|
-
d: "M316 277h3m17-2h3m-13 10 3 2-3 3m-21-5-15-3m16 9-17 2m54-10 16-5m-14 13 15 1",
|
|
443
|
-
stroke: "var(--paw-art-line)",
|
|
444
|
-
strokeWidth: "2.5",
|
|
445
|
-
strokeLinecap: "round"
|
|
446
|
-
}
|
|
447
|
-
),
|
|
448
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
449
|
-
"path",
|
|
450
|
-
{
|
|
451
|
-
d: "M145 378h245",
|
|
452
|
-
stroke: "var(--paw-art-line)",
|
|
453
|
-
strokeWidth: "2",
|
|
454
|
-
strokeLinecap: "round",
|
|
455
|
-
opacity: ".3"
|
|
456
|
-
}
|
|
457
|
-
),
|
|
458
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "99", cy: "365", r: "16", fill: "var(--paw-sun)" }),
|
|
459
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
460
|
-
"path",
|
|
461
|
-
{
|
|
462
|
-
d: "M93 351c16 8 18 18 12 28",
|
|
463
|
-
stroke: "var(--paw-art-line)",
|
|
464
|
-
strokeWidth: "2"
|
|
465
|
-
}
|
|
466
|
-
),
|
|
467
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
468
|
-
"path",
|
|
469
|
-
{
|
|
470
|
-
d: "M426 352v-43m0 22c-14-1-20-10-20-20 15 2 21 11 20 20m0-9c0-15 6-25 20-28 2 13-6 24-20 28",
|
|
471
|
-
stroke: "var(--paw-art-line)",
|
|
472
|
-
strokeWidth: "3",
|
|
473
|
-
strokeLinecap: "round"
|
|
474
|
-
}
|
|
475
|
-
),
|
|
476
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
477
|
-
"path",
|
|
478
|
-
{
|
|
479
|
-
d: "m406 153 8-6 8 6m-234-33 8-6 8 6",
|
|
480
|
-
stroke: "var(--paw-art-line)",
|
|
481
|
-
strokeWidth: "2.5",
|
|
482
|
-
strokeLinecap: "round"
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
]
|
|
486
|
-
}
|
|
487
|
-
);
|
|
488
|
-
}
|
|
489
314
|
function Photo({
|
|
490
315
|
resource,
|
|
491
316
|
mediaUrl,
|
|
@@ -617,6 +442,7 @@ function PetEventCard(props) {
|
|
|
617
442
|
}
|
|
618
443
|
function PawOfTheWeekCard(props) {
|
|
619
444
|
const href = safePetLink(props.href);
|
|
445
|
+
const Heading = props.pageHeading ? "h1" : "h2";
|
|
620
446
|
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: "paw-spotlight", children: [
|
|
621
447
|
/* @__PURE__ */ jsxRuntime.jsx(Photo, { ...props, large: true }),
|
|
622
448
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-spotlight-copy", children: [
|
|
@@ -624,7 +450,7 @@ function PawOfTheWeekCard(props) {
|
|
|
624
450
|
props.community,
|
|
625
451
|
"\u2019s Paw of the Week"
|
|
626
452
|
] }),
|
|
627
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
453
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Heading, { children: [
|
|
628
454
|
"Meet ",
|
|
629
455
|
props.resource.content.name,
|
|
630
456
|
"."
|
|
@@ -684,7 +510,7 @@ function PetsSection({
|
|
|
684
510
|
const celebrations = resources.filter((r) => r.kind === "celebration");
|
|
685
511
|
const notices = resources.filter((r) => ["lost", "found"].includes(r.kind));
|
|
686
512
|
const adoptions = resources.filter((r) => r.kind === "adoption");
|
|
687
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw", children: [
|
|
513
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw paw-home", children: [
|
|
688
514
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "paw-masthead", children: [
|
|
689
515
|
/* @__PURE__ */ jsxRuntime.jsxs("a", { href: basePath || "/", className: "paw-brand", children: [
|
|
690
516
|
/* @__PURE__ */ jsxRuntime.jsx(PawMark, {}),
|
|
@@ -694,6 +520,21 @@ function PetsSection({
|
|
|
694
520
|
accountUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { href: safePetLink(accountUrl), children: "My pets" }),
|
|
695
521
|
contributeUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-button", href: safePetLink(contributeUrl), children: "Share your pet" })
|
|
696
522
|
] }),
|
|
523
|
+
/* @__PURE__ */ jsxRuntime.jsxs("details", { className: "paw-mobile-nav", children: [
|
|
524
|
+
/* @__PURE__ */ jsxRuntime.jsxs("summary", { children: [
|
|
525
|
+
"Explore Bay Area Paw ",
|
|
526
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\uFF0B" })
|
|
527
|
+
] }),
|
|
528
|
+
/* @__PURE__ */ jsxRuntime.jsxs("nav", { "aria-label": "Mobile pet community", children: [
|
|
529
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#neighbors", children: "Our pets" }),
|
|
530
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#lost-found", children: "Lost & found" }),
|
|
531
|
+
walksUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { href: safePetLink(walksUrl), children: "Paw Walks" }),
|
|
532
|
+
placesUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { href: safePetLink(placesUrl), children: "Paw Places" }),
|
|
533
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#adoption", children: "Adoption" }),
|
|
534
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#celebrations", children: "Celebrations" }),
|
|
535
|
+
eventsUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { href: safePetLink(eventsUrl), children: "Events" })
|
|
536
|
+
] })
|
|
537
|
+
] }),
|
|
697
538
|
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className: "paw-nav", "aria-label": "Pet community", children: [
|
|
698
539
|
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#neighbors", children: "Our pets" }),
|
|
699
540
|
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#lost-found", children: "Lost & found" }),
|
|
@@ -705,7 +546,8 @@ function PetsSection({
|
|
|
705
546
|
] }),
|
|
706
547
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-community", children: [
|
|
707
548
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
708
|
-
"
|
|
549
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "paw-location-dot", "aria-hidden": "true" }),
|
|
550
|
+
" Your pet community in ",
|
|
709
551
|
location,
|
|
710
552
|
"."
|
|
711
553
|
] }),
|
|
@@ -729,31 +571,112 @@ function PetsSection({
|
|
|
729
571
|
unavailable ? /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "status", className: "paw-empty", children: [
|
|
730
572
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { children: "Your community is on its way." }),
|
|
731
573
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "We can\u2019t load the pet community right now. Please try again shortly." })
|
|
732
|
-
] }) : spotlight ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
574
|
+
] }) : spotlight ? /* @__PURE__ */ jsxRuntime.jsx("section", { id: "paw-week", "aria-label": "Paw of the Week", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
733
575
|
PawOfTheWeekCard,
|
|
734
576
|
{
|
|
577
|
+
pageHeading: true,
|
|
735
578
|
resource: spotlight,
|
|
736
579
|
community: local(spotlight.area_id),
|
|
737
580
|
href: link(spotlight.id),
|
|
738
581
|
mediaUrl
|
|
739
582
|
}
|
|
740
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "paw-welcome", children: [
|
|
741
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
742
|
-
/* @__PURE__ */ jsxRuntime.
|
|
743
|
-
|
|
744
|
-
"Every pet.",
|
|
583
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "paw-welcome", "aria-labelledby": "paw-welcome-title", children: [
|
|
584
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-welcome-copy", children: [
|
|
585
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h1", { id: "paw-welcome-title", children: [
|
|
586
|
+
"Life\u2019s better",
|
|
745
587
|
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
746
|
-
|
|
588
|
+
"together."
|
|
747
589
|
] }),
|
|
748
|
-
/* @__PURE__ */ jsxRuntime.
|
|
749
|
-
|
|
750
|
-
|
|
590
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
591
|
+
"For the love of pets.",
|
|
592
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
593
|
+
"For the places we call home."
|
|
594
|
+
] }),
|
|
595
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-welcome-detail", children: "Share their story, find your next favorite walk, and make a little more room for community." }),
|
|
596
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-hero-actions", children: [
|
|
597
|
+
contributeUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-button", href: safePetLink(contributeUrl), children: "Share your pet" }),
|
|
598
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-text-link", href: "#paw-week", children: "Meet Paw of the Week" })
|
|
599
|
+
] })
|
|
600
|
+
] }),
|
|
601
|
+
/* @__PURE__ */ jsxRuntime.jsxs("figure", { className: "paw-cover-photo", children: [
|
|
602
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
603
|
+
"div",
|
|
604
|
+
{
|
|
605
|
+
role: "img",
|
|
606
|
+
"aria-label": "A corgi enjoying a sunlit neighborhood walk"
|
|
607
|
+
}
|
|
608
|
+
),
|
|
609
|
+
/* @__PURE__ */ jsxRuntime.jsxs("figcaption", { children: [
|
|
610
|
+
"Cover photograph by",
|
|
611
|
+
" ",
|
|
612
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
613
|
+
"a",
|
|
614
|
+
{
|
|
615
|
+
href: "https://unsplash.com/photos/a-happy-corgi-walking-on-a-cobblestone-path-qcfZw7nA0Ko",
|
|
616
|
+
rel: "noopener noreferrer",
|
|
617
|
+
children: "Alvan Nee"
|
|
618
|
+
}
|
|
619
|
+
)
|
|
620
|
+
] })
|
|
621
|
+
] })
|
|
622
|
+
] }),
|
|
623
|
+
!unavailable && /* @__PURE__ */ jsxRuntime.jsxs("nav", { className: "paw-shortcuts", "aria-label": "Useful pet resources", children: [
|
|
624
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
625
|
+
"a",
|
|
626
|
+
{
|
|
627
|
+
href: safePetLink(browseBasePath + "/lost_found" + communityQuery),
|
|
628
|
+
children: [
|
|
629
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Lost a pet?" }),
|
|
630
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Let\u2019s help them home" }),
|
|
631
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\u2197" })
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
),
|
|
635
|
+
walksUrl && /* @__PURE__ */ jsxRuntime.jsxs("a", { href: safePetLink(walksUrl), children: [
|
|
636
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "A little fresh air" }),
|
|
637
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Find a Paw Walk" }),
|
|
638
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\u2197" })
|
|
751
639
|
] }),
|
|
752
|
-
/* @__PURE__ */ jsxRuntime.jsxs("
|
|
753
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
754
|
-
/* @__PURE__ */ jsxRuntime.jsx("
|
|
640
|
+
placesUrl && /* @__PURE__ */ jsxRuntime.jsxs("a", { href: safePetLink(placesUrl), children: [
|
|
641
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Out with your companion" }),
|
|
642
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Explore Paw Places" }),
|
|
643
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\u2197" })
|
|
755
644
|
] })
|
|
756
645
|
] }),
|
|
646
|
+
!unavailable && !spotlight && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
647
|
+
"section",
|
|
648
|
+
{
|
|
649
|
+
className: "paw-week-invitation",
|
|
650
|
+
id: "paw-week",
|
|
651
|
+
"aria-labelledby": "paw-week-title",
|
|
652
|
+
children: [
|
|
653
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-week-cover", "aria-hidden": "true", children: [
|
|
654
|
+
/* @__PURE__ */ jsxRuntime.jsx(PawMark, { size: 100 }),
|
|
655
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
656
|
+
"A very",
|
|
657
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
658
|
+
"good week."
|
|
659
|
+
] }),
|
|
660
|
+
/* @__PURE__ */ jsxRuntime.jsxs("small", { children: [
|
|
661
|
+
"A little local recognition.",
|
|
662
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
663
|
+
"A whole lot of love."
|
|
664
|
+
] })
|
|
665
|
+
] }),
|
|
666
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
667
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-context", children: "Paw of the Week" }),
|
|
668
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { id: "paw-week-title", children: [
|
|
669
|
+
"Big personality.",
|
|
670
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
671
|
+
"Local legend."
|
|
672
|
+
] }),
|
|
673
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "The couch companion. The trail buddy. The tiny character with a very big personality. We\u2019d love to meet yours." }),
|
|
674
|
+
contributeUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-button", href: safePetLink(contributeUrl), children: "Introduce your pet" }),
|
|
675
|
+
/* @__PURE__ */ jsxRuntime.jsx("small", { children: "Always free. Selected with care by local editors." })
|
|
676
|
+
] })
|
|
677
|
+
]
|
|
678
|
+
}
|
|
679
|
+
),
|
|
757
680
|
!unavailable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
758
681
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { id: "neighbors", className: "paw-section", children: [
|
|
759
682
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-section-heading", children: [
|
|
@@ -769,7 +692,21 @@ function PetsSection({
|
|
|
769
692
|
mediaUrl
|
|
770
693
|
},
|
|
771
694
|
r.id
|
|
772
|
-
)) }) : /* @__PURE__ */ jsxRuntime.
|
|
695
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-board-invitation", children: [
|
|
696
|
+
/* @__PURE__ */ jsxRuntime.jsx(PawMark, { size: 56 }),
|
|
697
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
698
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { children: "There\u2019s a place for your pet here." }),
|
|
699
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "The photo board is ready for its first neighbors. A favorite photograph, a few words, and a new familiar face." })
|
|
700
|
+
] }),
|
|
701
|
+
contributeUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
702
|
+
"a",
|
|
703
|
+
{
|
|
704
|
+
className: "paw-text-link",
|
|
705
|
+
href: safePetLink(contributeUrl),
|
|
706
|
+
children: "Share a photograph"
|
|
707
|
+
}
|
|
708
|
+
)
|
|
709
|
+
] }),
|
|
773
710
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
774
711
|
"a",
|
|
775
712
|
{
|
|
@@ -804,54 +741,58 @@ function PetsSection({
|
|
|
804
741
|
}
|
|
805
742
|
)
|
|
806
743
|
] }),
|
|
807
|
-
/* @__PURE__ */ jsxRuntime.jsxs("
|
|
808
|
-
/* @__PURE__ */ jsxRuntime.jsxs("
|
|
809
|
-
/* @__PURE__ */ jsxRuntime.
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
/* @__PURE__ */ jsxRuntime.jsxs("section", { id: "adoption", className: "paw-section", children: [
|
|
833
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-section-heading", children: [
|
|
834
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { children: "A new chapter starts with hello." }),
|
|
835
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Discover animals through local shelters and rescue organizations." })
|
|
744
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-discover-pair", children: [
|
|
745
|
+
/* @__PURE__ */ jsxRuntime.jsxs("section", { id: "celebrations", className: "paw-section", children: [
|
|
746
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-section-heading", children: [
|
|
747
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { children: "A life full of little milestones" }),
|
|
748
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Birthdays, adoption days, new beginnings and fond memories." })
|
|
749
|
+
] }),
|
|
750
|
+
celebrations.length ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "paw-gallery", children: celebrations.map((r) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
751
|
+
PetCelebrationCard,
|
|
752
|
+
{
|
|
753
|
+
resource: r,
|
|
754
|
+
community: local(r.area_id),
|
|
755
|
+
href: link(r.id),
|
|
756
|
+
mediaUrl
|
|
757
|
+
},
|
|
758
|
+
r.id
|
|
759
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-empty", children: "Celebrate someone who makes your days brighter. Every story is reviewed with care." }),
|
|
760
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
761
|
+
"a",
|
|
762
|
+
{
|
|
763
|
+
href: safePetLink(
|
|
764
|
+
browseBasePath + "/celebration" + communityQuery
|
|
765
|
+
),
|
|
766
|
+
children: "More pet celebrations"
|
|
767
|
+
}
|
|
768
|
+
)
|
|
836
769
|
] }),
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
770
|
+
/* @__PURE__ */ jsxRuntime.jsxs("section", { id: "adoption", className: "paw-section", children: [
|
|
771
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-section-heading", children: [
|
|
772
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { children: "A new chapter starts with hello." }),
|
|
773
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Discover animals through local shelters and rescue organizations." })
|
|
774
|
+
] }),
|
|
775
|
+
adoptions.length ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "paw-gallery", children: adoptions.map((r) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
776
|
+
AdoptionListingCard,
|
|
777
|
+
{
|
|
778
|
+
resource: r,
|
|
779
|
+
community: local(r.area_id),
|
|
780
|
+
href: link(r.id),
|
|
781
|
+
mediaUrl
|
|
782
|
+
},
|
|
783
|
+
r.id
|
|
784
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-empty", children: "Our editors are gathering official shelter and rescue listings. Check directly with your local organization for current availability." }),
|
|
785
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-safety", children: PET_SAFETY.adoption }),
|
|
786
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
787
|
+
"a",
|
|
788
|
+
{
|
|
789
|
+
href: safePetLink(
|
|
790
|
+
browseBasePath + "/adoption" + communityQuery
|
|
791
|
+
),
|
|
792
|
+
children: "Explore adoption listings"
|
|
793
|
+
}
|
|
794
|
+
)
|
|
795
|
+
] })
|
|
855
796
|
] }),
|
|
856
797
|
nextUrl && /* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-button", href: safePetLink(nextUrl), children: "More community pets" })
|
|
857
798
|
] }),
|
|
@@ -866,12 +807,22 @@ function PetsSection({
|
|
|
866
807
|
))
|
|
867
808
|
] }),
|
|
868
809
|
/* @__PURE__ */ jsxRuntime.jsxs("footer", { className: "paw-footer", children: [
|
|
869
|
-
/* @__PURE__ */ jsxRuntime.
|
|
810
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
811
|
+
/* @__PURE__ */ jsxRuntime.jsxs("a", { className: "paw-brand", href: basePath || "/", children: [
|
|
812
|
+
/* @__PURE__ */ jsxRuntime.jsx(PawMark, { size: 40 }),
|
|
813
|
+
name
|
|
814
|
+
] }),
|
|
815
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: tagline })
|
|
816
|
+
] }),
|
|
870
817
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
871
|
-
"A community project from
|
|
818
|
+
"A community project from",
|
|
819
|
+
" ",
|
|
820
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "https://bayareanewsnetwork.com", children: "Bay Area News Network" }),
|
|
821
|
+
".",
|
|
872
822
|
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
873
|
-
|
|
874
|
-
] })
|
|
823
|
+
"Made for the places we call home."
|
|
824
|
+
] }),
|
|
825
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: "#paw-community", className: "paw-text-link", children: "Find your community" })
|
|
875
826
|
] })
|
|
876
827
|
] });
|
|
877
828
|
}
|
|
@@ -924,7 +875,7 @@ async function PublicationPetsSection({
|
|
|
924
875
|
week: monday.toISOString().split("T")[0]
|
|
925
876
|
});
|
|
926
877
|
if (chosen) weekly.set("area_id", chosen.id);
|
|
927
|
-
const [feeds, spotlights] = await Promise.all([
|
|
878
|
+
const [feeds, spotlights, acknowledgments] = await Promise.all([
|
|
928
879
|
Promise.all(
|
|
929
880
|
["neighbors", "lost_found", "celebration", "adoption"].map((kind) => {
|
|
930
881
|
const q = new URLSearchParams(filter);
|
|
@@ -936,7 +887,8 @@ async function PublicationPetsSection({
|
|
|
936
887
|
);
|
|
937
888
|
})
|
|
938
889
|
),
|
|
939
|
-
petRequest(scope, root + "/pets?" + weekly)
|
|
890
|
+
petRequest(scope, root + "/pets?" + weekly),
|
|
891
|
+
petAcknowledgments(scope, chosen?.slug)
|
|
940
892
|
]);
|
|
941
893
|
const clean = (r) => ({
|
|
942
894
|
...r,
|
|
@@ -964,7 +916,7 @@ async function PublicationPetsSection({
|
|
|
964
916
|
accountUrl: native ? "/pets/account" : void 0,
|
|
965
917
|
communities: collection.areas,
|
|
966
918
|
community: chosen,
|
|
967
|
-
acknowledgments
|
|
919
|
+
acknowledgments,
|
|
968
920
|
resources: feeds.flatMap((feed) => feed.items).map(clean),
|
|
969
921
|
spotlight: spotlights.items[0] && clean(spotlights.items[0]),
|
|
970
922
|
mediaUrl,
|
package/dist/pets-publication.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PetsSection, PawOfTheWeekCard, AdoptionListingCard, PetEventCard, PetCelebrationCard, LostPetNotice, PetProfileCard } from './chunk-
|
|
1
|
+
import { PetsSection, PawOfTheWeekCard, AdoptionListingCard, PetEventCard, PetCelebrationCard, LostPetNotice, PetProfileCard } from './chunk-ZALGE4PF.js';
|
|
2
2
|
import './chunk-4JRWZXAP.js';
|
|
3
3
|
import './chunk-66GI2IX6.js';
|
|
4
4
|
import { petRequest, petAcknowledgments, resolvePetReferences } from './chunk-ABPJMDUG.js';
|
|
@@ -56,7 +56,7 @@ async function PublicationPetsSection({
|
|
|
56
56
|
week: monday.toISOString().split("T")[0]
|
|
57
57
|
});
|
|
58
58
|
if (chosen) weekly.set("area_id", chosen.id);
|
|
59
|
-
const [feeds, spotlights] = await Promise.all([
|
|
59
|
+
const [feeds, spotlights, acknowledgments] = await Promise.all([
|
|
60
60
|
Promise.all(
|
|
61
61
|
["neighbors", "lost_found", "celebration", "adoption"].map((kind) => {
|
|
62
62
|
const q = new URLSearchParams(filter);
|
|
@@ -68,7 +68,8 @@ async function PublicationPetsSection({
|
|
|
68
68
|
);
|
|
69
69
|
})
|
|
70
70
|
),
|
|
71
|
-
petRequest(scope, root + "/pets?" + weekly)
|
|
71
|
+
petRequest(scope, root + "/pets?" + weekly),
|
|
72
|
+
petAcknowledgments(scope, chosen?.slug)
|
|
72
73
|
]);
|
|
73
74
|
const clean = (r) => ({
|
|
74
75
|
...r,
|
|
@@ -96,7 +97,7 @@ async function PublicationPetsSection({
|
|
|
96
97
|
accountUrl: native ? "/pets/account" : void 0,
|
|
97
98
|
communities: collection.areas,
|
|
98
99
|
community: chosen,
|
|
99
|
-
acknowledgments
|
|
100
|
+
acknowledgments,
|
|
100
101
|
resources: feeds.flatMap((feed) => feed.items).map(clean),
|
|
101
102
|
spotlight: spotlights.items[0] && clean(spotlights.items[0]),
|
|
102
103
|
mediaUrl,
|