Walrus blob · mainnet
On-chain registration not yet visible.
The aggregator served this blob, but we couldn't locate a matching BlobRegistered event in our scan window. It may not be certified yet, or live further back than we paged.
Lifecycle data is unavailable until the blob registration is visible on-chain.
import { c as l, j as s, e as d } from "./index-CeMnqBop.js";
import { G as h } from "./globe-BV44Ke1C.js";
import { M as u } from "./map-pin-DJSSWVDb.js";
import { I as x } from "./image-wrler6X1.js";
import { C as f } from "./chevron-right-DgqGwI-L.js";
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const y = l("Box", [["path", { d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z", key: "hh9hay" }], ["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }], ["path", { d: "M12 22V12", key: "d0xqtd" }]]);
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const o = l("Link", [["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }], ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]]);
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const b = l("MessageCircle", [["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }]]);
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const c = l("Phone", [["path", { d: "M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z", key: "foiqr5" }]]);
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const g = l("Video", [["path", { d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5", key: "ftymec" }], ["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]]), _ = [{ id: "doc", label: "\u8CC7\u6599\u30FB\u30DE\u30A4\u30BD\u30AF" }, { id: "photo", label: "\u5199\u771F\u30FB\u30A2\u30EB\u30D0\u30E0" }, { id: "video", label: "\u52D5\u753B" }, { id: "vr", label: "VR\u30FB360\xB0" }, { id: "map", label: "\u5730\u56F3\u30FB\u30A2\u30AF\u30BB\u30B9" }, { id: "web", label: "Web\u30B5\u30A4\u30C8" }, { id: "tel", label: "\u96FB\u8A71" }, { id: "line", label: "LINE" }, { id: "other", label: "\u305D\u306E\u4ED6" }];
let v = 0;
const j = (e = "l") => `${e}_${Date.now().toString(36)}_${v++}`;
function A() {
return { v: 1, title: "", subtitle: "", accent: "#b9975b", recipient: "", coverImage: "", coverCaption: "", links: [], company: "", tel: "", note: "" };
}
function w(e) {
return btoa(unescape(encodeURIComponent(e))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
}
function N(e) {
const n = e.replace(/-/g, "+").replace(/_/g, "/"), t = n.length % 4 ? "=".repeat(4 - n.length % 4) : "";
return decodeURIComponent(escape(atob(n + t)));
}
function k(e) {
const n = { v: 1, t: e.title, s: e.subtitle || void 0, a: e.accent, c: e.company || void 0, p: e.tel || void 0, n: e.note || void 0, r: e.recipient || void 0, ci: e.coverImage || void 0, cc: e.coverCaption || void 0, l: (e.links ?? []).map((t) => ({ k: t.type, b: t.label, u: t.url, o: t.note || void 0 })) };
return w(JSON.stringify(n));
}
function D(e) {
try {
const n = e.replace(/^#/, "");
if (!n) return null;
const t = JSON.parse(N(n));
return !t || typeof t != "object" ? null : { v: 1, title: typeof t.t == "string" ? t.t : "", subtitle: typeof t.s == "string" ? t.s : "", accent: typeof t.a == "string" ? t.a : "#b9975b", company: typeof t.c == "string" ? t.c : "", tel: typeof t.p == "string" ? t.p : "", note: typeof t.n == "string" ? t.n : "", recipient: typeof t.r == "string" ? t.r : "", coverImage: typeof t.ci == "string" ? t.ci : "", coverCaption: typeof t.cc == "string" ? t.cc : "", links: Array.isArray(t.l) ? t.l.map((a) => ({ id: j(), type: (a == null ? void 0 : a.k) ?? "other", label: typeof (a == null ? void 0 : a.b) == "string" ? a.b : "", url: typeof (a == null ? void 0 : a.u) == "string" ? a.u : "", note: typeof (a == null ? void 0 : a.o) == "string" ? a.o : void 0 })) : [] };
} catch {
return null;
}
}
function q(e, n) {
const t = typeof window < "u" ? window.location.origin : "", a = n ? `?s=${encodeURIComponent(n)}` : "";
return `${t}/p${a}#${k(e)}`;
}
function R() {
return `pt_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
}
const I = { doc: d, photo: x, video: g, vr: y, map: u, web: h, tel: c, line: b, other: o };
function $(e) {
const n = (e.url ?? "").trim();
return e.type === "tel" ? n.startsWith("tel:") ? n : `tel:${n.replace(/[^\d+]/g, "")}` : n ? !/^https?:\/\//i.test(n) && !n.startsWith("tel:") && !n.startsWith("mailto:") ? `https://${n}` : n : "#";
}
function U({ doc: e, framed: n = false }) {
var _a, _b, _c, _d;
const t = (e == null ? void 0 : e.accent) || "#b9975b", a = ((e == null ? void 0 : e.links) ?? []).filter((r) => (r.label ?? "").trim() || (r.url ?? "").trim()), i = (e == null ? void 0 : e.tel) ? `tel:${(e.tel || "").replace(/[^\d+]/g, "")}` : null;
return s.jsxs("div", { className: n ? "mx-auto w-full max-w-[420px]" : "min-h-screen w-full flex justify-center", style: { background: n ? "transparent" : "#f6f5f2" }, children: [s.jsx("style", { children: `
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.lp-rise { animation: lp-rise .45s ease-out both; }
` }), s.jsxs("div", { className: "w-full max-w-[420px] px-5 py-8", style: { fontFamily: "'Noto Sans JP', sans-serif" }, children: [((_a = e == null ? void 0 : e.recipient) == null ? void 0 : _a.trim()) && s.jsx("div", { className: "text-center mb-4 lp-rise", children: s.jsxs("span", { className: "inline-block text-xs font-bold text-white px-3.5 py-1 rounded-full", style: { background: t }, children: [e.recipient.trim(), " \u69D8\u3078\u306E\u3054\u6848\u5185"] }) }), s.jsxs("div", { className: "text-center mb-6 lp-rise", style: { animationDelay: "40ms" }, children: [!((_b = e == null ? void 0 : e.recipient) == null ? void 0 : _b.trim()) && s.jsx("div", { className: "mx-auto mb-4 h-1 w-12 rounded-full", style: { background: t } }), s.jsx("h1", { className: "text-xl font-bold text-slate-800 leading-snug", style: { fontFamily: "'Noto Serif JP', serif" }, children: (e == null ? void 0 : e.title) || "\u7269\u4EF6\u30DD\u30FC\u30BF\u30EB" }), (e == null ? void 0 : e.subtitle) ? s.jsx("p", { className: "text-sm text-slate-500 mt-1.5", children: e.subtitle }) : null] }), ((_c = e == null ? void 0 : e.coverImage) == null ? void 0 : _c.trim()) && s.jsxs("div", { className: "mb-6 rounded-xl overflow-hidden shadow-sm border border-slate-200 relative lp-rise", style: { animationDelay: "80ms" }, children: [s.jsx("img", { src: e.coverImage.trim(), alt: (e == null ? void 0 : e.title) || "", className: "w-full h-48 object-cover", loading: "lazy", onError: (r) => {
r.currentTarget.parentElement.style.display = "none";
} }), ((_d = e == null ? void 0 : e.coverCaption) == null ? void 0 : _d.trim()) && s.jsxs(s.Fragment, { children: [s.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/55 to-transparent pointer-events-none" }), s.jsx("p", { className: "absolute bottom-3 left-4 text-white text-sm font-bold drop-shadow", children: e.coverCaption.trim() })] })] }), s.jsxs("div", { className: "space-y-2.5", children: [a.length === 0 && s.jsx("p", { className: "text-center text-slate-400 text-sm py-8", children: "\u30EA\u30F3\u30AF\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093" }), a.map((r, p) => {
const m = I[r.type] ?? o;
return s.jsxs("a", { href: $(r), target: r.type === "tel" ? void 0 : "_blank", rel: "noopener noreferrer", className: "group lp-rise flex items-center gap-3 bg-white rounded-xl border border-slate-200 px-4 py-3.5 shadow-sm hover:shadow-md hover:-translate-y-0.5 hover:border-slate-300 active:scale-[0.99] active:translate-y-0 transition-all", style: { animationDelay: `${120 + p * 60}ms` }, children: [s.jsx("span", { className: "shrink-0 w-11 h-11 rounded-lg flex items-center justify-center text-white transition-transform group-hover:scale-105", style: { background: t }, children: s.jsx(m, { size: 20 }) }), s.jsxs("span", { className: "flex-1 min-w-0", children: [s.jsx("span", { className: "block font-bold text-slate-800 text-[15px] truncate", children: r.label || r.url }), r.note ? s.jsx("span", { className: "block text-xs text-slate-400 truncate", children: r.note }) : null] }), s.jsx(f, { size: 18, className: "text-slate-300 shrink-0 transition-transform group-hover:translate-x-1 group-hover:text-slate-400" })] }, r.id);
})] }), i && s.jsx("div", { className: "mt-7 text-center lp-rise", style: { animationDelay: `${120 + a.length * 60 + 60}ms` }, children: s.jsxs("a", { href: i, className: "inline-flex items-center justify-center gap-2 text-white px-6 py-3 rounded-full font-bold text-[15px] shadow-sm hover:opacity-90 active:scale-[0.98] transition-all", style: { background: t }, children: [s.jsx(c, { size: 16 }), " \u304A\u96FB\u8A71\u3067\u306E\u304A\u554F\u3044\u5408\u308F\u305B"] }) }), ((e == null ? void 0 : e.company) || (e == null ? void 0 : e.tel) || (e == null ? void 0 : e.note)) && s.jsxs("div", { className: "mt-8 pt-5 border-t border-slate-200 text-center space-y-1", children: [(e == null ? void 0 : e.company) ? s.jsx("p", { className: "text-sm font-bold text-slate-700", children: e.company }) : null, (e == null ? void 0 : e.tel) ? s.jsx("a", { href: i ?? void 0, className: "text-sm font-bold", style: { color: t }, children: e.tel }) : null, (e == null ? void 0 : e.note) ? s.jsx("p", { className: "text-[11px] text-slate-400 mt-2 whitespace-pre-wrap", children: e.note }) : null] })] })] });
}
export {
_ as L,
U as P,
q as b,
D as d,
A as e,
R as n,
j as u
};