Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1eea456e56 | ||
|
|
9bb86e6d47 | ||
|
|
99a344f65c | ||
|
|
6fb266806e | ||
|
|
2fc50de161 | ||
|
|
832fc81272 |
No files matched your search
@@ -13,6 +13,7 @@
|
|||||||
| **어느 표 어느 칸**에 담기나 · 값이 페이지까지 가는 길 | [docs/DATA_MODEL.md](docs/DATA_MODEL.md) |
|
| **어느 표 어느 칸**에 담기나 · 값이 페이지까지 가는 길 | [docs/DATA_MODEL.md](docs/DATA_MODEL.md) |
|
||||||
| 미결 사항 · 코드가 그걸 어떻게 격리했나 | 서버에 올릴 때 | [docs/DEPLOY.md](docs/DEPLOY.md) |
|
| 미결 사항 · 코드가 그걸 어떻게 격리했나 | 서버에 올릴 때 | [docs/DEPLOY.md](docs/DEPLOY.md) |
|
||||||
| 장애가 나면 누가·어떻게 아나 | [docs/ALERTS.md](docs/ALERTS.md) |
|
| 장애가 나면 누가·어떻게 아나 | [docs/ALERTS.md](docs/ALERTS.md) |
|
||||||
|
| 사이트관리 **방문·크롤링 통계** — 수집 경로 · 화면 숫자의 뜻 | [docs/SITE_TRAFFIC_STATS.md](docs/SITE_TRAFFIC_STATS.md) |
|
||||||
| **미니 블로그**(AI 자동 포스트) 기획 | [docs/MINI_BLOG.md](docs/MINI_BLOG.md) |
|
| **미니 블로그**(AI 자동 포스트) 기획 | [docs/MINI_BLOG.md](docs/MINI_BLOG.md) |
|
||||||
| **사장님 에이전트**(카톡으로 관리) · 신원 연결 | [docs/AGENT.md](docs/AGENT.md) |
|
| **사장님 에이전트**(카톡으로 관리) · 신원 연결 | [docs/AGENT.md](docs/AGENT.md) |
|
||||||
| 카톡으로 **무엇을 시킬 수 있나** (운영자·CS 용) | [docs/AGENT_GUIDE.md](docs/AGENT_GUIDE.md) |
|
| 카톡으로 **무엇을 시킬 수 있나** (운영자·CS 용) | [docs/AGENT_GUIDE.md](docs/AGENT_GUIDE.md) |
|
||||||
|
|||||||
@@ -283,6 +283,9 @@ nginx 가 `/s/…`·`/robots.txt`·`/sitemap.xml` 요청을 mirror 로 `/interna
|
|||||||
발행 사이트 부트 코드(`solution/site/src/lib/visit-beacon.ts`)가 hydrate 직후 `/v1/track/view` 로
|
발행 사이트 부트 코드(`solution/site/src/lib/visit-beacon.ts`)가 hydrate 직후 `/v1/track/view` 로
|
||||||
비콘을 한 번 보내고, 백엔드가 **1건 = 1행**으로 쌓는다(`services/visit_service.py`). 미리보기는 보내지 않는다.
|
비콘을 한 번 보내고, 백엔드가 **1건 = 1행**으로 쌓는다(`services/visit_service.py`). 미리보기는 보내지 않는다.
|
||||||
|
|
||||||
|
- `site_id` NULL = 서비스 사이트 공개 화면(`/`·`/pricing`·`/showcase`·`/login`·`/signup`, 2026-10-13, 마이그레이션 `0026`).
|
||||||
|
서비스 앱 비콘(`solution/frontend/src/lib/visitBeacon.ts`)이 보낸다. 전체 통계는 합쳐 세고, 사이트 표에는 한 줄로 낀다.
|
||||||
|
|
||||||
- 쿠키·식별자를 브라우저에 두지 않는다. `visitor_hash = sha256(JWT_ACCESS_SECRET|IP|UA|KST 월)` —
|
- 쿠키·식별자를 브라우저에 두지 않는다. `visitor_hash = sha256(JWT_ACCESS_SECRET|IP|UA|KST 월)` —
|
||||||
달이 바뀌면 같은 사람도 새 방문자다(Umami 와 같다). **IP 원문은 저장하지 않는다.**
|
달이 바뀌면 같은 사람도 새 방문자다(Umami 와 같다). **IP 원문은 저장하지 않는다.**
|
||||||
- 봇(`crawler_detect`)과 HeadlessChrome(우리 목업 검증 스크립트)은 세지 않는다.
|
- 봇(`crawler_detect`)과 HeadlessChrome(우리 목업 검증 스크립트)은 세지 않는다.
|
||||||
|
|||||||
@@ -262,6 +262,10 @@ docker compose exec solution-worker python scripts/republish_all.py
|
|||||||
기존 `/v1/` 프록시로 닿으므로 **nginx 설정은 손대지 않는다.** 사람 방문만 `site_page_views` 에 쌓인다
|
기존 `/v1/` 프록시로 닿으므로 **nginx 설정은 손대지 않는다.** 사람 방문만 `site_page_views` 에 쌓인다
|
||||||
(마이그레이션 `0025`).
|
(마이그레이션 `0025`).
|
||||||
|
|
||||||
|
서비스 사이트 공개 화면(`/`·`/pricing`·`/showcase`·`/login`·`/signup`) 방문은 서비스 앱 번들의 비콘이 같은
|
||||||
|
`/v1/track/view` 로 보낸다(2026-10-13). 마이그레이션 `0026`(`site_id` NULL 허용) → 백엔드·프론트 함께 배포.
|
||||||
|
**재발행은 필요 없다** — 서비스 앱 번들이 바뀌면 바로 잡힌다.
|
||||||
|
|
||||||
★ **기존 발행 사이트는 재발행해야 집계가 시작된다.** 9/15 발행 버전 전환 뒤로 기동은 공용 자산만 깔고
|
★ **기존 발행 사이트는 재발행해야 집계가 시작된다.** 9/15 발행 버전 전환 뒤로 기동은 공용 자산만 깔고
|
||||||
(`prerender --seed-assets`) 이미 구워진 HTML 의 번들 주소는 바꾸지 않는다 — 비콘이 든 새 번들은 깔리지만,
|
(`prerender --seed-assets`) 이미 구워진 HTML 의 번들 주소는 바꾸지 않는다 — 비콘이 든 새 번들은 깔리지만,
|
||||||
옛 HTML 은 옛 번들을 계속 부른다. 사이트마다 **다시 발행**(빌더의 발행 — 새 버전을 굽는다)해야 한다.
|
옛 HTML 은 옛 번들을 계속 부른다. 사이트마다 **다시 발행**(빌더의 발행 — 새 버전을 굽는다)해야 한다.
|
||||||
|
|||||||
@@ -0,0 +1,180 @@
|
|||||||
|
# 사이트 트래픽 통계 (방문 · 크롤링)
|
||||||
|
|
||||||
|
발행 사이트(`/s/<주소>`)에 들어온 **사람 방문**과 **봇 크롤링**, 서비스 사이트 공개 화면의 **사람 방문**을
|
||||||
|
우리 DB 에 원본 1건 = 1행으로 쌓고, 사이트관리(`/ops/sites`, 개발자 전용)에서 본다. 외부 분석 도구(Umami 등)는 쓰지 않는다.
|
||||||
|
|
||||||
|
- 크롤링: 2026-10-07 · 방문: 2026-10-12 · 오늘 방문자·직접 유입·서비스 사이트 방문: 2026-10-13
|
||||||
|
- 표 구조 → [DATA_MODEL.md](DATA_MODEL.md) `site_crawler_hits` · `site_page_views`
|
||||||
|
- 서버 반영 → [DEPLOY.md 6절](DEPLOY.md)
|
||||||
|
|
||||||
|
## 1. 한눈에
|
||||||
|
|
||||||
|
```
|
||||||
|
[봇] GET /s/<주소>, /robots.txt, /sitemap.xml
|
||||||
|
└ nginx mirror ─→ /internal/track/hit ─→ crawler_detect(UA) ─→ site_crawler_hits
|
||||||
|
|
||||||
|
[사람] 발행 페이지 hydrate · 탭 이동(hashchange)
|
||||||
|
└ sendBeacon ─→ POST /v1/track/view ─→ 봇·중복 거름 ─→ site_page_views (site_id 있음)
|
||||||
|
|
||||||
|
[사람] 서비스 공개 화면(/ · /pricing · /showcase · /login · /signup) 진입
|
||||||
|
└ sendBeacon ─→ POST /v1/track/view ─→ 봇·중복 거름 ─→ site_page_views (site_id NULL)
|
||||||
|
|
||||||
|
[화면] /ops/sites?tab=stats (전체) · /ops/sites/:placeId/stats (사이트별)
|
||||||
|
└ GET /v1/ops/stats/{visits|crawlers} · /v1/ops/sites/{place_id}/stats/{visits|crawlers}
|
||||||
|
```
|
||||||
|
|
||||||
|
- 집계 표는 따로 없다. 화면을 열 때 원본을 기간으로 잘라 `GROUP BY` 한다.
|
||||||
|
- 원본은 기한 없이 보관한다.
|
||||||
|
- 기록 저장은 응답을 먼저 돌려준 뒤 백그라운드에서 한다. 저장 실패가 사이트 응답을 늦추거나 깨뜨리지 않는다.
|
||||||
|
|
||||||
|
## 2. 크롤링 수집
|
||||||
|
|
||||||
|
| 단계 | 담당 | 하는 일 |
|
||||||
|
|---|---|---|
|
||||||
|
| 복사 | `nginx/site.conf` | `/s/`·`/robots.txt`·`/sitemap.xml` 요청의 복사본을 `/_track_hit` 으로 보낸다. `map $request_uri $track_skip` 이 `/s/` 아래 파일(사진·js·css) 요청을 먼저 버린다 |
|
||||||
|
| 수신 | `router/v1/track/track.py` `GET/HEAD /internal/track/hit` | `/v1` 밖이라 외부에 열리지 않는다. 바로 204 |
|
||||||
|
| 종류 | `services/track_service.py` `hit_kind` | `page`(`/s/…`, 확장자 없는 경로) · `robots` · `sitemap`(루트 `/sitemap.xml`). 그 밖은 버린다 |
|
||||||
|
| 판별 | `services/crawler_detect.py` `classify` | UA 로 봇을 고른다. 사람은 버린다 |
|
||||||
|
| 사이트 | `TrackService.site_id_for` | 주소 → `site_id`. `publish_slug()` 로 만든 표를 60초 캐시, 없는 주소는 5초 뒤 다시 읽는다 |
|
||||||
|
| 저장 | `crud/crawler_hit_crud.py` `add_hit` | `site_crawler_hits` 1행 |
|
||||||
|
|
||||||
|
### 봇 분류
|
||||||
|
|
||||||
|
목록은 AEORanking(`AEORankingPlatform/frontend/src/lib/analytics/ai-crawlers.ts`)과 같게 둔다.
|
||||||
|
두 서비스의 숫자를 나란히 볼 때 분류가 갈리면 비교가 안 된다.
|
||||||
|
|
||||||
|
| 용도(`purpose`) | 화면 이름 | 봇 |
|
||||||
|
|---|---|---|
|
||||||
|
| `search` | AI 검색 색인 | OAI-SearchBot, Claude-SearchBot, PerplexityBot, DuckAssistBot, Amazonbot |
|
||||||
|
| `user-fetch` | AI 실시간 조회 | ChatGPT-User, Claude-User, Perplexity-User, meta-externalfetcher, MistralAI-User |
|
||||||
|
| `training` | AI 학습 | GPTBot, ClaudeBot, meta-externalagent, Bytespider, CCBot |
|
||||||
|
| `search-engine` | 검색엔진 | Googlebot, bingbot, Applebot, Yeti(네이버) |
|
||||||
|
| `other` | 기타 | 목록 밖인데 UA 에 `bot`·`crawl`·`spider`·`slurp`·`externalhit`·`fetch` 가 든 것 |
|
||||||
|
|
||||||
|
- **"AI 봇 요청"** 은 `search` + `user-fetch` + `training` 이다. 검색엔진·기타는 넣지 않는다.
|
||||||
|
- **자칭 봇**을 센다. UA 는 위조할 수 있고 IP 대역으로 진위를 확인하지 않는다.
|
||||||
|
- HeadlessChrome 은 일부러 봇으로 치지 않는다(우리 목업 검증 스크립트가 그 UA 로 돈다).
|
||||||
|
- `ip` 는 목록에 있는 봇만 저장한다(`X-Forwarded-For` 첫 값 — 참고용이며 위조 가능).
|
||||||
|
- "기타" 에 자주 보이는 UA 는 `crawler_detect.py` 목록에 올린다.
|
||||||
|
|
||||||
|
### 세지 않는 것
|
||||||
|
|
||||||
|
- `/s/<주소>/sitemap.xml` 등 `/s/` 아래 확장자 있는 요청 — 파일로 보고 버린다. **사이트별 사이트맵 요청은 지금 통계에 없다.**
|
||||||
|
- nginx 가 404 로 끝낸 요청(없는 주소) — mirror 가 붙은 location 에 닿지 않는다.
|
||||||
|
- 같은 봇의 반복 요청은 **묶지 않는다.** 요청 1건이 1행이다.
|
||||||
|
|
||||||
|
## 3. 방문 수집
|
||||||
|
|
||||||
|
| 단계 | 담당 | 하는 일 |
|
||||||
|
|---|---|---|
|
||||||
|
| 전송 | `solution/site/src/lib/visit-beacon.ts` | hydrate 직후 1회 + `hashchange` 마다 `navigator.sendBeacon` (text/plain). 본문은 `path`·`referrer`·`utm_source` |
|
||||||
|
| 수신 | `track.py` `POST /v1/track/view` | 2KB 넘으면 읽다가 끊는다. 바로 204 |
|
||||||
|
| 거름 | `services/visit_service.py` `record_view` | 봇·HeadlessChrome·Lighthouse·PageSpeed 제외 → IP 당 분당 120건 → 같은 방문자+경로 10초 안 중복 제외 |
|
||||||
|
| 저장 | `crud/visit_crud.py` `add_view` | `site_page_views` 1행 |
|
||||||
|
|
||||||
|
- **미리보기(`/preview`)에서는 보내지 않는다.** 발행 경로(`/s/…`)만 센다.
|
||||||
|
- **경로**: `/s/<주소>` + 해시 탭(`#/stay` 등). `#/`(홈)과 문서 안 앵커는 탭으로 치지 않고, 끝 `/` 는 뗀다.
|
||||||
|
- **방문자 구분**: 쿠키·저장소를 쓰지 않는다. `visitor_hash = sha256(JWT_ACCESS_SECRET|IP|UA|KST 연-월)`.
|
||||||
|
달이 바뀌면 같은 사람도 새 방문자로 센다. **IP 원문은 저장하지 않는다.**
|
||||||
|
- **IP**: `X-Forwarded-For` 의 뒤에서 두 번째 값(Apache → nginx 두 프록시가 붙인 값). 첫 값은 손님이 위조할 수 있다.
|
||||||
|
- **기기**: UA 로 `desktop`·`mobile`·`tablet`.
|
||||||
|
- **유입 도메인**: `document.referrer` 의 호스트, 앞 `www.` 만 뗀다. 우리 도메인도 걸러내지 않는다.
|
||||||
|
- **캠페인**: 주소의 `?utm_source=` 값(100자). `utm_medium`·`utm_campaign` 은 저장하지 않는다.
|
||||||
|
`?…` 는 `#` 앞에 와야 읽힌다 — `…/s/<주소>?utm_source=kakao#/stay`.
|
||||||
|
- 운영자 본인 방문 제외: 그 브라우저 콘솔에서 `localStorage.setItem('web4ai.stats.disabled', '1')`.
|
||||||
|
- 메모리 표(중복·IP 제한)는 프로세스마다 따로이고 키 2만 개 상한이 있다. 백엔드가 여러 개면 중복 제거가 느슨해진다.
|
||||||
|
|
||||||
|
### 서비스 사이트 공개 화면
|
||||||
|
|
||||||
|
| 단계 | 담당 | 하는 일 |
|
||||||
|
|---|---|---|
|
||||||
|
| 전송 | `solution/frontend/src/lib/visitBeacon.ts` `useServiceVisitBeacon` (`root.tsx`) | 라우트가 바뀔 때마다, 공개 화면이면 1회 |
|
||||||
|
| 거름 | `visit_service.py` `SERVICE_PATHS` · `page_path` | 위 5개 경로만 받는다. 끝 `/`·해시는 뗀다 |
|
||||||
|
| 저장 | 같은 `site_page_views` | `site_id` NULL |
|
||||||
|
|
||||||
|
- **세는 화면**: `/` · `/pricing` · `/showcase` · `/login` · `/signup`. 빌더·내 사이트·계정·운영 화면·카카오 콜백·승인 링크는 세지 않는다.
|
||||||
|
목록은 프론트(`visitBeacon.ts`)와 백엔드(`SERVICE_PATHS`) 두 곳에 있다 — **함께 고친다.**
|
||||||
|
- **리퍼러**: 처음 들어온 화면은 `document.referrer`, 앱 안에서 옮겨 간 화면은 우리 주소(`web4ai.o2osolution.ai`)를 보낸다.
|
||||||
|
첫 유입처를 화면마다 되풀이하면 유입 도메인이 부풀려진다.
|
||||||
|
- 같은 opt-out 키(`web4ai.stats.disabled`)가 서비스 사이트에도 먹는다.
|
||||||
|
- **전체 통계에 합친다.** 오늘 방문자·페이지뷰·방문자·그래프·유입·기기 모두 발행 사이트와 서비스 사이트의 합이다.
|
||||||
|
사이트 표에는 "서비스 사이트" 한 줄(링크 없음)로 보인다. 공개 화면별 숫자는 화면에 없다. 사이트별 통계에는 섞이지 않는다.
|
||||||
|
- **봇 요청은 기록하지 않는다.** nginx `location /` 에는 mirror 가 없다 — 서비스 화면의 크롤링은 통계에 없다.
|
||||||
|
|
||||||
|
## 4. 화면
|
||||||
|
|
||||||
|
| 경로 | 내용 |
|
||||||
|
|---|---|
|
||||||
|
| `/ops/sites?tab=stats` | 전체 통계 — 방문 / 크롤링 하위 탭. 방문은 발행 사이트 + 서비스 사이트 합계 |
|
||||||
|
| `/ops/sites/:placeId/stats` | 사이트별 통계 — 사이트관리 목록의 "통계" 버튼 |
|
||||||
|
|
||||||
|
- 기간: 7일 · 30일 · 90일(KST 날짜). API 는 `from`·`to` 를 받고 기본 7일, 최대 366일.
|
||||||
|
- 방문 탭은 30초마다 다시 부른다.
|
||||||
|
- recharts 는 그래프가 보일 때만 불러온다(지연 로드).
|
||||||
|
|
||||||
|
### 방문 탭
|
||||||
|
|
||||||
|
| 항목 | 뜻 |
|
||||||
|
|---|---|
|
||||||
|
| 오늘 방문자 | KST 오늘 0시부터의 고유 방문자. **기간 선택과 무관** |
|
||||||
|
| 페이지뷰 · 방문자 | 기간 안 행 수 · 고유 `visitor_hash` 수 |
|
||||||
|
| 마지막 방문 | 기간 안 가장 최근 기록(KST) |
|
||||||
|
| 일별 방문자 · 페이지뷰 | KST 날짜별. 기록 없는 날도 자리를 비워 둔다 |
|
||||||
|
| 방문이 많은 사이트 | (전체) 상위 20. **서비스 사이트**도 한 줄로 낀다(`service: true`, 사업장 없음, 링크 없음) |
|
||||||
|
| 많이 본 페이지 | (사이트별) 경로별 상위 20 |
|
||||||
|
| 캠페인 (utm_source) | (사이트별) 꼬리표 붙은 링크로 들어온 페이지뷰, 상위 20 |
|
||||||
|
| 유입 도메인 | 상위 20 + 맨 위 **"직접·알 수 없음"**(리퍼러가 빈 페이지뷰, `summary.direct_views`) |
|
||||||
|
| 기기 | 기기별 페이지뷰 |
|
||||||
|
|
||||||
|
"직접·알 수 없음" 에는 주소 직접 입력·즐겨찾기뿐 아니라 카카오톡·문자·앱 안 브라우저·QR 이 섞인다.
|
||||||
|
브라우저가 출처를 보내지 않으면 구분할 수 없다. 경로를 가르고 싶으면 `utm_source` 를 붙인 링크를 쓴다.
|
||||||
|
|
||||||
|
### 크롤링 탭
|
||||||
|
|
||||||
|
| 항목 | 뜻 |
|
||||||
|
|---|---|
|
||||||
|
| 총 요청 · AI 봇 요청 · 봇 종류 · 마지막 크롤링 | 기간 안 합계 |
|
||||||
|
| 일별 요청 (용도별) | KST 날짜별 누적 막대 |
|
||||||
|
| 봇별 | 봇·회사·용도별 요청 수와 마지막 시각 |
|
||||||
|
| 크롤링이 많은 사이트 | (전체) 상위 20 |
|
||||||
|
| robots.txt · sitemap.xml | (전체) 루트 파일 요청 — 특정 사이트에 묶이지 않아 **사이트별 통계에는 안 나온다** |
|
||||||
|
| 목록 밖 봇 (기타) | (전체) UA 원문 상위 20 |
|
||||||
|
| 많이 읽힌 페이지 · 최근 크롤링 50건 | (사이트별) |
|
||||||
|
|
||||||
|
## 5. API
|
||||||
|
|
||||||
|
모두 `RequireDeveloper`(개발자 계정). 응답 모델은 `router/v1/ops/protocol.py`.
|
||||||
|
|
||||||
|
| 메서드 · 경로 | 응답 |
|
||||||
|
|---|---|
|
||||||
|
| `GET /v1/ops/stats/visits?from&to` | `Res_VisitStats` (sites) |
|
||||||
|
| `GET /v1/ops/sites/{place_id}/stats/visits?from&to` | `Res_VisitStats` (pages · utm) |
|
||||||
|
| `GET /v1/ops/stats/crawlers?from&to` | `Res_CrawlerStats` (sites · root_files · others) |
|
||||||
|
| `GET /v1/ops/sites/{place_id}/stats/crawlers?from&to` | `Res_CrawlerStats` (pages · recent) |
|
||||||
|
| `POST /v1/track/view` | 204 — 발행 사이트 비콘(공개) |
|
||||||
|
| `GET/HEAD /internal/track/hit` | 204 — nginx mirror 전용(비공개) |
|
||||||
|
|
||||||
|
- 사이트가 아직 없는 사업장은 빈 통계를 돌려준다.
|
||||||
|
- 기간이 뒤집혔거나 366일을 넘으면 `INVALID_REQUEST_DATA`.
|
||||||
|
|
||||||
|
## 6. 운영에서 알아 둘 것
|
||||||
|
|
||||||
|
- **기존 발행 사이트는 재발행해야 방문이 잡힌다.** 비콘은 새로 구운 HTML 에만 들어간다. `republish_all.py` 는 굽지 않는다. → [DEPLOY.md 6-2](DEPLOY.md)
|
||||||
|
- **운영 `nginx/site.conf` 는 레포에 없다.** mirror 설정은 `site.conf.example` 을 보고 손으로 옮긴다. → [DEPLOY.md 6-1](DEPLOY.md)
|
||||||
|
- 크롤링 표가 비면: 마이그레이션 `0024` → `nginx -t` → 백엔드 로그 `[track]` 경고 순으로 본다.
|
||||||
|
- 서비스 방문 표가 비면: 마이그레이션 `0026` → 서비스 앱 번들이 새로 배포됐는지 → 공개 화면에서 `/v1/track/view` 요청이 나가는지.
|
||||||
|
- 방문 표가 비면: 마이그레이션 `0025` → 그 사이트가 비콘 이후 재발행됐는지 → 브라우저에서 `/v1/track/view` 요청이 나가는지.
|
||||||
|
|
||||||
|
## 7. 담당 파일
|
||||||
|
|
||||||
|
| 영역 | 파일 |
|
||||||
|
|---|---|
|
||||||
|
| 봇 판별 | `solution/backend/services/crawler_detect.py` |
|
||||||
|
| 크롤링 기록 | `services/track_service.py` · `crud/crawler_hit_crud.py` |
|
||||||
|
| 방문 판별·기록 | `services/visit_detect.py` · `services/visit_service.py` · `crud/visit_crud.py` |
|
||||||
|
| 통계 | `services/crawler_stats_service.py` · `services/visit_stats_service.py` |
|
||||||
|
| 라우터 | `router/v1/track/track.py` · `router/v1/ops/ops.py` |
|
||||||
|
| 테이블 | `postgres-init/migrations/0024_site_crawler_hits.sql` · `0025_site_page_views.sql` · `0026_site_page_views_service.sql` |
|
||||||
|
| 비콘 | 발행 사이트 `solution/site/src/lib/visit-beacon.ts` · `entry-client.tsx` / 서비스 앱 `solution/frontend/src/lib/visitBeacon.ts` · `root.tsx` |
|
||||||
|
| 화면 | `solution/frontend/src/features/ops-stats/` · `pages/OpsSitesPage.tsx` · `pages/OpsSiteStatsPage.tsx` |
|
||||||
|
| 테스트 | `tests/test_crawler_detect.py` · `test_track_hit.py` · `test_crawler_stats.py` · `test_visit_view.py` · `test_visit_stats.py` |
|
||||||
@@ -374,7 +374,7 @@ CREATE TABLE IF NOT EXISTS public.site_crawler_hits (
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.site_page_views (
|
CREATE TABLE IF NOT EXISTS public.site_page_views (
|
||||||
view_id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
view_id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||||
site_id uuid NOT NULL,
|
site_id uuid NULL, -- NULL = 서비스 사이트 공개 화면(migrations/0026)
|
||||||
path TEXT NOT NULL,
|
path TEXT NOT NULL,
|
||||||
visitor_hash VARCHAR(64) NOT NULL, -- sha256(비밀값|IP|UA|KST 월), IP 원문 미저장(migrations/0025)
|
visitor_hash VARCHAR(64) NOT NULL, -- sha256(비밀값|IP|UA|KST 월), IP 원문 미저장(migrations/0025)
|
||||||
referrer_domain VARCHAR(255) NULL,
|
referrer_domain VARCHAR(255) NULL,
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
-- 0026 · site_page_views.site_id NULL 허용 — 서비스 사이트 공개 화면 방문
|
||||||
|
--
|
||||||
|
-- ★ 발행 사이트(/s/…)뿐 아니라 서비스 사이트의 공개 화면(/ · /pricing · /showcase · /login · /signup)
|
||||||
|
-- 방문도 같은 표에 쌓는다. 그 행은 묶을 발행 사이트가 없어 site_id 가 NULL 이다.
|
||||||
|
-- 발행 사이트 통계는 site_id IS NOT NULL 로, 서비스 사이트 통계는 IS NULL 로 가른다.
|
||||||
|
|
||||||
|
ALTER TABLE public.site_page_views ALTER COLUMN site_id DROP NOT NULL;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN public.site_page_views.site_id IS
|
||||||
|
'발행 사이트. NULL = 서비스 사이트 공개 화면(/ · /pricing · /showcase · /login · /signup)';
|
||||||
@@ -471,7 +471,7 @@ class site_crawler_hits(MainTableMixin, MAIN_BASE):
|
|||||||
|
|
||||||
|
|
||||||
class site_page_views(MainTableMixin, MAIN_BASE):
|
class site_page_views(MainTableMixin, MAIN_BASE):
|
||||||
"""사람 페이지뷰 1건 = 1행 — 발행 사이트 비콘(/v1/track/view). 쿠키 없이, IP 원문 없이 쌓는다."""
|
"""사람 페이지뷰 1건 = 1행 — 발행 사이트·서비스 공개 화면 비콘(/v1/track/view). 쿠키 없이, IP 원문 없이 쌓는다."""
|
||||||
|
|
||||||
__tablename__ = "site_page_views"
|
__tablename__ = "site_page_views"
|
||||||
__table_args__ = (
|
__table_args__ = (
|
||||||
@@ -480,7 +480,7 @@ class site_page_views(MainTableMixin, MAIN_BASE):
|
|||||||
)
|
)
|
||||||
|
|
||||||
view_id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
view_id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
||||||
site_id = Column(UUID(as_uuid=True), nullable=False)
|
site_id = Column(UUID(as_uuid=True), nullable=True) # NULL = 서비스 사이트 공개 화면(/ · /pricing …)
|
||||||
path = Column(Text, nullable=False)
|
path = Column(Text, nullable=False)
|
||||||
# sha256(비밀값|IP|UA|KST 월) — 달이 바뀌면 같은 사람도 새 방문자다(Umami 와 같다). IP 는 저장하지 않는다.
|
# sha256(비밀값|IP|UA|KST 월) — 달이 바뀌면 같은 사람도 새 방문자다(Umami 와 같다). IP 는 저장하지 않는다.
|
||||||
visitor_hash = Column(String(64), nullable=False)
|
visitor_hash = Column(String(64), nullable=False)
|
||||||
|
|||||||
@@ -17,9 +17,12 @@ class IVisitCRUD(ABC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def stats(self, cdb: AsyncSession, start: datetime, end: datetime, realtime_since: datetime, site_id,
|
async def stats(self, cdb: AsyncSession, start: datetime, end: datetime, today_since: datetime, site_id,
|
||||||
overall: bool) -> Tuple[ErrorType, dict]:
|
overall: bool) -> Tuple[ErrorType, dict]:
|
||||||
"""기간 [start, end) 집계 + realtime_since 이후 고유 방문자. 키: realtime·summary·daily·referrers·devices + (overall) sites | (사이트) pages·utm."""
|
"""기간 [start, end) 집계 + today_since 이후 고유 방문자. 키: today·summary·daily·referrers·devices + (overall) sites·service_site | (사이트) pages·utm.
|
||||||
|
|
||||||
|
site_id 를 주면 그 사이트만, 없으면 발행 사이트와 서비스 사이트 공개 화면(site_id NULL)을 합쳐 센다.
|
||||||
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -31,22 +34,27 @@ class VisitCRUD(IVisitCRUD):
|
|||||||
LOG.e_no_callstack(ex)
|
LOG.e_no_callstack(ex)
|
||||||
return ErrorType.DB_RUN_FAILED
|
return ErrorType.DB_RUN_FAILED
|
||||||
|
|
||||||
async def stats(self, cdb: AsyncSession, start: datetime, end: datetime, realtime_since: datetime, site_id,
|
async def stats(self, cdb: AsyncSession, start: datetime, end: datetime, today_since: datetime, site_id,
|
||||||
overall: bool) -> Tuple[ErrorType, dict]:
|
overall: bool) -> Tuple[ErrorType, dict]:
|
||||||
try:
|
try:
|
||||||
v = site_page_views
|
v = site_page_views
|
||||||
scope = v.deleted == False # noqa: E712
|
scope = v.deleted == False # noqa: E712
|
||||||
if site_id is not None:
|
if site_id is not None:
|
||||||
scope = and_(scope, v.site_id == site_id)
|
scope = and_(scope, v.site_id == site_id)
|
||||||
|
# 전체(site_id None)는 발행 사이트와 서비스 사이트를 합친다.
|
||||||
where = and_(scope, v.created_at >= start, v.created_at < end)
|
where = and_(scope, v.created_at >= start, v.created_at < end)
|
||||||
views = func.count().label("views")
|
views = func.count().label("views")
|
||||||
visitors = func.count(distinct(v.visitor_hash)).label("visitors")
|
visitors = func.count(distinct(v.visitor_hash)).label("visitors")
|
||||||
# GROUP BY 는 라벨로 — 같은 식 두 번이면 'Asia/Seoul' 바인드가 갈라져 Postgres 가 거부한다(크롤러 통계와 같은 이유).
|
# GROUP BY 는 라벨로 — 같은 식 두 번이면 'Asia/Seoul' 바인드가 갈라져 Postgres 가 거부한다(크롤러 통계와 같은 이유).
|
||||||
day = func.date(func.timezone("Asia/Seoul", v.created_at)).label("day")
|
day = func.date(func.timezone("Asia/Seoul", v.created_at)).label("day")
|
||||||
queries = {
|
queries = {
|
||||||
# 실시간은 기간 선택과 무관하다 — "지금 몇 명" 을 묻는 숫자다.
|
# 오늘 방문자는 기간 선택과 무관하다 — "오늘 몇 명" 을 묻는 숫자다.
|
||||||
"realtime": select(func.count(distinct(v.visitor_hash)).label("n")).where(scope, v.created_at >= realtime_since),
|
"today": select(func.count(distinct(v.visitor_hash)).label("n")).where(scope, v.created_at >= today_since),
|
||||||
"summary": select(views, visitors, func.max(v.created_at).label("last_at")).where(where),
|
"summary": select(
|
||||||
|
views, visitors, func.max(v.created_at).label("last_at"),
|
||||||
|
# 리퍼러가 빈 방문 — 직접 입력·즐겨찾기·앱·QR 이 섞여 있어 "직접" 으로 단정하지 않는다.
|
||||||
|
func.count().filter(v.referrer_domain.is_(None)).label("direct_views"),
|
||||||
|
).where(where),
|
||||||
"daily": select(day, views, visitors).where(where).group_by("day").order_by("day"),
|
"daily": select(day, views, visitors).where(where).group_by("day").order_by("day"),
|
||||||
"referrers": (
|
"referrers": (
|
||||||
select(v.referrer_domain, views)
|
select(v.referrer_domain, views)
|
||||||
@@ -67,6 +75,8 @@ class VisitCRUD(IVisitCRUD):
|
|||||||
.order_by(func.count().desc())
|
.order_by(func.count().desc())
|
||||||
.limit(20)
|
.limit(20)
|
||||||
)
|
)
|
||||||
|
# 서비스 사이트는 묶을 사업장이 없어 위 조인에서 빠진다 — 따로 세서 사이트 표에 한 줄로 끼운다.
|
||||||
|
queries["service_site"] = select(views, visitors).where(where, v.site_id.is_(None))
|
||||||
else:
|
else:
|
||||||
queries["pages"] = (
|
queries["pages"] = (
|
||||||
select(v.path, views, visitors).where(where).group_by(v.path).order_by(func.count().desc()).limit(20)
|
select(v.path, views, visitors).where(where).group_by(v.path).order_by(func.count().desc()).limit(20)
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ class VisitSummary(WebPacketProtocol):
|
|||||||
views: int = 0
|
views: int = 0
|
||||||
visitors: int = 0
|
visitors: int = 0
|
||||||
last_at: Optional[datetime] = None
|
last_at: Optional[datetime] = None
|
||||||
|
direct_views: int = 0 # 리퍼러가 빈 페이지뷰(직접 입력·앱·QR 등 — 출처를 알 수 없음)
|
||||||
|
|
||||||
|
|
||||||
class VisitDaily(WebPacketProtocol):
|
class VisitDaily(WebPacketProtocol):
|
||||||
@@ -140,11 +141,12 @@ class VisitDaily(WebPacketProtocol):
|
|||||||
|
|
||||||
|
|
||||||
class VisitSiteRow(WebPacketProtocol):
|
class VisitSiteRow(WebPacketProtocol):
|
||||||
site_id: uuid.UUID
|
site_id: Optional[uuid.UUID] = None # 서비스 사이트 줄은 비어 있다
|
||||||
place_id: uuid.UUID
|
place_id: Optional[uuid.UUID] = None
|
||||||
name: str
|
name: str
|
||||||
views: int
|
views: int
|
||||||
visitors: int
|
visitors: int
|
||||||
|
service: bool = False # 서비스 사이트 공개 화면(/ · /pricing …) 합계 줄
|
||||||
|
|
||||||
|
|
||||||
class VisitPathRow(WebPacketProtocol):
|
class VisitPathRow(WebPacketProtocol):
|
||||||
@@ -173,7 +175,7 @@ class Res_VisitStats(Res_WebPacketProtocol):
|
|||||||
|
|
||||||
date_from: Optional[date] = None
|
date_from: Optional[date] = None
|
||||||
date_to: Optional[date] = None
|
date_to: Optional[date] = None
|
||||||
realtime: int = 0 # 최근 5분 고유 방문자(기간 선택과 무관)
|
today_visitors: int = 0 # 오늘(KST 0시~) 고유 방문자(기간 선택과 무관)
|
||||||
summary: VisitSummary = Field(default_factory=VisitSummary)
|
summary: VisitSummary = Field(default_factory=VisitSummary)
|
||||||
daily: list[VisitDaily] = []
|
daily: list[VisitDaily] = []
|
||||||
sites: list[VisitSiteRow] = []
|
sites: list[VisitSiteRow] = []
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"""발행 사이트 비콘(/v1/track/view) → 사람 페이지뷰 1건 저장(사이트 트래픽 통계 2단계)."""
|
"""발행 사이트·서비스 공개 화면 비콘(/v1/track/view) → 사람 페이지뷰 1건 저장(사이트 트래픽 통계 2단계)."""
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
@@ -28,6 +28,9 @@ _TABLE_MAX_KEYS = 20_000
|
|||||||
# 뒤에서 두 번째가 실제 손님이다. 첫 값은 손님이 마음대로 넣을 수 있다 — 그걸 쓰면 요청마다 새 방문자가 된다.
|
# 뒤에서 두 번째가 실제 손님이다. 첫 값은 손님이 마음대로 넣을 수 있다 — 그걸 쓰면 요청마다 새 방문자가 된다.
|
||||||
_PROXY_HOPS = 2
|
_PROXY_HOPS = 2
|
||||||
_TAB_MAX = 100
|
_TAB_MAX = 100
|
||||||
|
# 서비스 사이트에서 세는 공개 화면 — 유입→가입 흐름만 본다. 빌더·내 사이트·운영 화면은 사장님 작업이라
|
||||||
|
# 섞으면 유입 숫자가 흐려지고, 카카오 콜백은 주소에 인가 코드가 실린다. 프론트 비콘도 같은 목록을 쓴다.
|
||||||
|
SERVICE_PATHS = frozenset({"/", "/pricing", "/showcase", "/login", "/signup"})
|
||||||
|
|
||||||
|
|
||||||
def real_client_ip(xff: str | None, client_host: str | None) -> str:
|
def real_client_ip(xff: str | None, client_host: str | None) -> str:
|
||||||
@@ -39,12 +42,15 @@ def real_client_ip(xff: str | None, client_host: str | None) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def page_path(raw: str) -> str | None:
|
def page_path(raw: str) -> str | None:
|
||||||
"""발행 경로 + 탭(#/…). 끝 슬래시는 같은 페이지라 걷는다. 발행 경로가 아니면 None."""
|
"""발행 경로 + 탭(#/…) 또는 서비스 공개 화면. 끝 슬래시는 같은 페이지라 걷는다. 둘 다 아니면 None."""
|
||||||
try:
|
try:
|
||||||
parts = urlsplit(raw)
|
parts = urlsplit(raw)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return None
|
return None
|
||||||
base = unquote(parts.path).rstrip("/")
|
base = unquote(parts.path).rstrip("/") or "/"
|
||||||
|
if base in SERVICE_PATHS:
|
||||||
|
# 서비스 앱은 해시 탭을 쓰지 않는다 — 해시는 버린다.
|
||||||
|
return base
|
||||||
if not base.startswith("/s/") or len(base) <= 3:
|
if not base.startswith("/s/") or len(base) <= 3:
|
||||||
return None
|
return None
|
||||||
# 발행 사이트의 하위 페이지는 해시 탭(#/stay)이다. #/ 는 홈, 그 밖의 해시는 문서 안 앵커다.
|
# 발행 사이트의 하위 페이지는 해시 탭(#/stay)이다. #/ 는 홈, 그 밖의 해시는 문서 안 앵커다.
|
||||||
@@ -114,9 +120,12 @@ class VisitService:
|
|||||||
ip = real_client_ip(xff, client_host)
|
ip = real_client_ip(xff, client_host)
|
||||||
if not self._ip_allowed(ip):
|
if not self._ip_allowed(ip):
|
||||||
return
|
return
|
||||||
site_id = await self.slugs.site_id_for(slug_of(path.split("#", 1)[0]))
|
if path in SERVICE_PATHS:
|
||||||
if site_id is None:
|
site_id = None # 서비스 사이트 — 묶을 발행 사이트가 없다
|
||||||
return
|
else:
|
||||||
|
site_id = await self.slugs.site_id_for(slug_of(path.split("#", 1)[0]))
|
||||||
|
if site_id is None:
|
||||||
|
return
|
||||||
# 비밀값은 후기 IP 해시(review_service._ip_hash)와 같은 것을 쓴다 — 새 비밀을 하나 더 관리하지 않는다.
|
# 비밀값은 후기 IP 해시(review_service._ip_hash)와 같은 것을 쓴다 — 새 비밀을 하나 더 관리하지 않는다.
|
||||||
hashed = visitor_hash(os.environ.get("JWT_ACCESS_SECRET", ""), ip, user_agent or "", datetime.now(timezone.utc))
|
hashed = visitor_hash(os.environ.get("JWT_ACCESS_SECRET", ""), ip, user_agent or "", datetime.now(timezone.utc))
|
||||||
if self._seen_recently(f"{hashed}|{path}"):
|
if self._seen_recently(f"{hashed}|{path}"):
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"""사이트관리 방문 통계 — 기간 해석은 크롤러 통계와 같은 규칙(KST, 기본 7일, 366일 상한)."""
|
"""사이트관리 방문 통계 — 기간 해석은 크롤러 통계와 같은 규칙(KST, 기본 7일, 366일 상한)."""
|
||||||
from datetime import date, datetime, timedelta, timezone
|
from datetime import date, datetime
|
||||||
|
|
||||||
from fastapi import Depends
|
from fastapi import Depends
|
||||||
|
|
||||||
@@ -12,9 +12,11 @@ from router.v1.ops.protocol import (
|
|||||||
Res_VisitStats, VisitDaily, VisitDeviceRow, VisitPathRow, VisitReferrerRow, VisitSiteRow, VisitSummary, VisitUtmRow,
|
Res_VisitStats, VisitDaily, VisitDeviceRow, VisitPathRow, VisitReferrerRow, VisitSiteRow, VisitSummary, VisitUtmRow,
|
||||||
)
|
)
|
||||||
# 같은 규칙을 복제하면 두 통계의 날짜 경계가 언젠가 갈라진다 — 크롤러 통계의 것을 그대로 쓴다.
|
# 같은 규칙을 복제하면 두 통계의 날짜 경계가 언젠가 갈라진다 — 크롤러 통계의 것을 그대로 쓴다.
|
||||||
from services.crawler_stats_service import _bounds, resolve_range
|
from services.crawler_stats_service import KST, _bounds, resolve_range
|
||||||
|
|
||||||
REALTIME_WINDOW = timedelta(minutes=5)
|
SERVICE_SITE_NAME = "서비스 사이트"
|
||||||
|
# 사이트 표 길이 — crud 의 발행 사이트 상위 20 과 같다.
|
||||||
|
SITE_ROWS = 20
|
||||||
|
|
||||||
|
|
||||||
class VisitStatsService:
|
class VisitStatsService:
|
||||||
@@ -51,25 +53,31 @@ class VisitStatsService:
|
|||||||
return self._invalid()
|
return self._invalid()
|
||||||
frm, to = rng
|
frm, to = rng
|
||||||
start, end = _bounds(frm, to)
|
start, end = _bounds(frm, to)
|
||||||
since = datetime.now(timezone.utc) - REALTIME_WINDOW
|
today = datetime.now(KST).date()
|
||||||
|
today_start, _ = _bounds(today, today)
|
||||||
err_type, data = await DB_SESSION_MNG.execute_lambda(
|
err_type, data = await DB_SESSION_MNG.execute_lambda(
|
||||||
site_page_views.DBType(), DBWRType.DB_READ.value,
|
site_page_views.DBType(), DBWRType.DB_READ.value,
|
||||||
lambda s: self.crud.stats(s, start, end, since, site_id, overall),
|
lambda s: self.crud.stats(s, start, end, today_start, site_id, overall),
|
||||||
)
|
)
|
||||||
res = Res_VisitStats(date_from=frm, date_to=to)
|
res = Res_VisitStats(date_from=frm, date_to=to)
|
||||||
if err_type != ErrorType.SUCCESS:
|
if err_type != ErrorType.SUCCESS:
|
||||||
res.result.SetResult(err_type)
|
res.result.SetResult(err_type)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
res.realtime = int(data["realtime"][0] or 0)
|
res.today_visitors = int(data["today"][0] or 0)
|
||||||
s = data["summary"][0]
|
s = data["summary"][0]
|
||||||
res.summary = VisitSummary(views=s.views, visitors=s.visitors, last_at=s.last_at)
|
res.summary = VisitSummary(views=s.views, visitors=s.visitors, last_at=s.last_at, direct_views=s.direct_views)
|
||||||
res.daily = [VisitDaily(day=r.day, views=r.views, visitors=r.visitors) for r in data["daily"]]
|
res.daily = [VisitDaily(day=r.day, views=r.views, visitors=r.visitors) for r in data["daily"]]
|
||||||
res.referrers = [VisitReferrerRow(domain=r.referrer_domain, views=r.views) for r in data["referrers"]]
|
res.referrers = [VisitReferrerRow(domain=r.referrer_domain, views=r.views) for r in data["referrers"]]
|
||||||
res.devices = [VisitDeviceRow(device=r.device, views=r.views) for r in data["devices"]]
|
res.devices = [VisitDeviceRow(device=r.device, views=r.views) for r in data["devices"]]
|
||||||
if overall:
|
if overall:
|
||||||
res.sites = [VisitSiteRow(site_id=r.site_id, place_id=r.place_id, name=r.name, views=r.views,
|
rows = [VisitSiteRow(site_id=r.site_id, place_id=r.place_id, name=r.name, views=r.views,
|
||||||
visitors=r.visitors) for r in data["sites"]]
|
visitors=r.visitors) for r in data["sites"]]
|
||||||
|
svc = data["service_site"][0]
|
||||||
|
if svc.views:
|
||||||
|
rows.append(VisitSiteRow(name=SERVICE_SITE_NAME, views=svc.views, visitors=svc.visitors, service=True))
|
||||||
|
# 서비스 사이트 줄도 발행 사이트와 같은 기준(페이지뷰)으로 순위에 낀다.
|
||||||
|
res.sites = sorted(rows, key=lambda r: r.views, reverse=True)[:SITE_ROWS]
|
||||||
else:
|
else:
|
||||||
res.pages = [VisitPathRow(path=r.path, views=r.views, visitors=r.visitors) for r in data["pages"]]
|
res.pages = [VisitPathRow(path=r.path, views=r.views, visitors=r.visitors) for r in data["pages"]]
|
||||||
res.utm = [VisitUtmRow(source=r.utm_source, views=r.views) for r in data["utm"]]
|
res.utm = [VisitUtmRow(source=r.utm_source, views=r.views) for r in data["utm"]]
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import uuid
|
import uuid
|
||||||
from datetime import datetime, timedelta, timezone
|
from datetime import datetime, time, timedelta, timezone
|
||||||
|
|
||||||
from sqlalchemy import text
|
from sqlalchemy import text
|
||||||
|
|
||||||
from common.enums import UserRole
|
from common.enums import UserRole
|
||||||
|
|
||||||
|
KST = timezone(timedelta(hours=9))
|
||||||
|
|
||||||
|
|
||||||
async def _site(client, auth_headers, db_engine, name):
|
async def _site(client, auth_headers, db_engine, name):
|
||||||
owner = await auth_headers(f"o{uuid.uuid4().hex[:8]}")
|
owner = await auth_headers(f"o{uuid.uuid4().hex[:8]}")
|
||||||
@@ -23,16 +25,18 @@ async def _view(db_engine, at, site_id, *, visitor="v1", path="/s/x", ref=None,
|
|||||||
), {"s": site_id, "p": path, "v": visitor.ljust(64, "0"), "r": ref, "u": utm, "d": device, "at": at})
|
), {"s": site_id, "p": path, "v": visitor.ljust(64, "0"), "r": ref, "u": utm, "d": device, "at": at})
|
||||||
|
|
||||||
|
|
||||||
async def test_실시간은_최근_5분_고유_방문자(client, auth_headers, db_engine):
|
async def test_오늘_방문자는_KST_오늘_0시부터_고유_방문자(client, auth_headers, db_engine):
|
||||||
dev = await auth_headers("dev1", role=UserRole.DEVELOPER.value)
|
dev = await auth_headers("dev1", role=UserRole.DEVELOPER.value)
|
||||||
_, sid = await _site(client, auth_headers, db_engine, "실시간가게")
|
_, sid = await _site(client, auth_headers, db_engine, "오늘가게")
|
||||||
now = datetime.now(timezone.utc)
|
now = datetime.now(timezone.utc)
|
||||||
await _view(db_engine, now - timedelta(minutes=1), sid, visitor="a")
|
kst_midnight = datetime.combine(now.astimezone(KST).date(), time.min, tzinfo=KST)
|
||||||
await _view(db_engine, now - timedelta(minutes=2), sid, visitor="a", path="/s/x/2")
|
await _view(db_engine, now, sid, visitor="a")
|
||||||
await _view(db_engine, now - timedelta(minutes=3), sid, visitor="b")
|
await _view(db_engine, now, sid, visitor="a", path="/s/x/2")
|
||||||
await _view(db_engine, now - timedelta(minutes=9), sid, visitor="c")
|
await _view(db_engine, kst_midnight, sid, visitor="b")
|
||||||
body = (await client.get("/v1/ops/stats/visits", headers=dev)).json()
|
await _view(db_engine, kst_midnight - timedelta(seconds=1), sid, visitor="c") # 어제(KST) 마지막 순간
|
||||||
assert body["realtime"] == 2
|
# 기간을 옛날로 골라도 오늘 숫자는 그대로다.
|
||||||
|
body = (await client.get("/v1/ops/stats/visits", headers=dev, params={"from": "2026-01-01", "to": "2026-01-01"})).json()
|
||||||
|
assert body["today_visitors"] == 2
|
||||||
|
|
||||||
|
|
||||||
async def test_전체_방문_통계(client, auth_headers, db_engine):
|
async def test_전체_방문_통계(client, auth_headers, db_engine):
|
||||||
@@ -49,6 +53,8 @@ async def test_전체_방문_통계(client, auth_headers, db_engine):
|
|||||||
[site] = body["sites"]
|
[site] = body["sites"]
|
||||||
assert (site["place_id"], site["name"], site["views"], site["visitors"]) == (pid, "방문카페", 3, 2)
|
assert (site["place_id"], site["name"], site["views"], site["visitors"]) == (pid, "방문카페", 3, 2)
|
||||||
assert body["referrers"] == [{"domain": "google.com", "views": 2}]
|
assert body["referrers"] == [{"domain": "google.com", "views": 2}]
|
||||||
|
# 리퍼러가 빈 방문(직접 입력·앱·QR 등)은 따로 센다 — 유입 표 합계가 전체와 맞도록.
|
||||||
|
assert body["summary"]["direct_views"] == 1
|
||||||
assert {(d["device"], d["views"]) for d in body["devices"]} == {("mobile", 2), ("desktop", 1)}
|
assert {(d["device"], d["views"]) for d in body["devices"]} == {("mobile", 2), ("desktop", 1)}
|
||||||
|
|
||||||
|
|
||||||
@@ -82,10 +88,29 @@ async def test_사이트가_없는_사업장은_빈_통계(client, auth_headers)
|
|||||||
owner = await auth_headers("owner5")
|
owner = await auth_headers("owner5")
|
||||||
pid = (await client.post("/v1/place", headers=owner, json={"name": "새가게", "category": 2})).json()["place"]["place_id"]
|
pid = (await client.post("/v1/place", headers=owner, json={"name": "새가게", "category": 2})).json()["place"]["place_id"]
|
||||||
body = (await client.get(f"/v1/ops/sites/{pid}/stats/visits", headers=dev)).json()
|
body = (await client.get(f"/v1/ops/sites/{pid}/stats/visits", headers=dev)).json()
|
||||||
assert body["result"]["success"] is True and body["summary"]["views"] == 0 and body["realtime"] == 0
|
assert body["result"]["success"] is True and body["summary"]["views"] == 0 and body["today_visitors"] == 0
|
||||||
|
|
||||||
|
|
||||||
async def test_개발자가_아니면_403(client, auth_headers):
|
async def test_개발자가_아니면_403(client, auth_headers):
|
||||||
owner = await auth_headers("owner6", role=UserRole.OWNER.value)
|
owner = await auth_headers("owner6", role=UserRole.OWNER.value)
|
||||||
assert (await client.get("/v1/ops/stats/visits", headers=owner)).status_code == 403
|
assert (await client.get("/v1/ops/stats/visits", headers=owner)).status_code == 403
|
||||||
assert (await client.get(f"/v1/ops/sites/{uuid.uuid4()}/stats/visits", headers=owner)).status_code == 403
|
assert (await client.get(f"/v1/ops/sites/{uuid.uuid4()}/stats/visits", headers=owner)).status_code == 403
|
||||||
|
|
||||||
|
|
||||||
|
async def test_전체_통계는_서비스_사이트를_합치고_한_줄로_보여_준다(client, auth_headers, db_engine):
|
||||||
|
dev = await auth_headers("dev7", role=UserRole.DEVELOPER.value)
|
||||||
|
pid, sid = await _site(client, auth_headers, db_engine, "발행가게")
|
||||||
|
at = datetime(2026, 10, 7, 3, 0, tzinfo=timezone.utc)
|
||||||
|
await _view(db_engine, at, sid, visitor="a", path="/s/x")
|
||||||
|
await _view(db_engine, at, None, visitor="b", path="/", ref="google.com", utm="insta")
|
||||||
|
await _view(db_engine, at, None, visitor="b", path="/pricing")
|
||||||
|
await _view(db_engine, at, None, visitor="c", path="/")
|
||||||
|
params = {"from": "2026-10-07", "to": "2026-10-07"}
|
||||||
|
|
||||||
|
# 전체 — 발행 사이트와 서비스 사이트를 합친다. 사이트 표에는 서비스 사이트가 한 줄(place_id 없음)로 낀다.
|
||||||
|
overall = (await client.get("/v1/ops/stats/visits", headers=dev, params=params)).json()
|
||||||
|
assert (overall["summary"]["views"], overall["summary"]["visitors"], overall["summary"]["direct_views"]) == (4, 3, 3)
|
||||||
|
assert [(r.get("place_id"), r["name"], r["views"], r["visitors"], r.get("service", False)) for r in overall["sites"]] == [
|
||||||
|
(None, "서비스 사이트", 3, 2, True),
|
||||||
|
(pid, "발행가게", 1, 1, False),
|
||||||
|
]
|
||||||
@@ -234,3 +234,31 @@ def test_IP_한도_표도_상한을_지킨다(monkeypatch):
|
|||||||
for i in range(50):
|
for i in range(50):
|
||||||
VisitService._ip_allowed(f"198.51.100.{i}")
|
VisitService._ip_allowed(f"198.51.100.{i}")
|
||||||
assert len(VisitService._ip_hits) <= 10
|
assert len(VisitService._ip_hits) <= 10
|
||||||
|
|
||||||
|
|
||||||
|
# ── 서비스 사이트 공개 화면(2026-10-13) ───────────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
|
async def test_서비스_공개_화면은_사이트_없이_저장한다(client, db_engine):
|
||||||
|
await _beacon(client, {"path": "/", "referrer": "https://www.google.com/", "utm_source": "insta"})
|
||||||
|
await _beacon(client, {"path": "/pricing/"})
|
||||||
|
await _beacon(client, {"path": "/showcase"})
|
||||||
|
await _beacon(client, {"path": "/login"})
|
||||||
|
await _beacon(client, {"path": "/signup"})
|
||||||
|
views = await _views(db_engine)
|
||||||
|
assert [(v["site_id"], v["path"]) for v in views] == [
|
||||||
|
(None, "/"), (None, "/pricing"), (None, "/showcase"), (None, "/login"), (None, "/signup"),
|
||||||
|
]
|
||||||
|
assert (views[0]["referrer_domain"], views[0]["utm_source"]) == ("google.com", "insta")
|
||||||
|
|
||||||
|
|
||||||
|
async def test_서비스_작업_화면은_세지_않는다(client, db_engine):
|
||||||
|
# 공개 화면만 센다 — 빌더·내 사이트·운영 화면은 사장님 작업이라 유입 통계를 흐린다.
|
||||||
|
for p in ("/builder", "/sites", "/account", "/ops/sites", "/auth/kakao/callback", "/approve/abc", "/nope"):
|
||||||
|
await _beacon(client, {"path": p})
|
||||||
|
assert await _views(db_engine) == []
|
||||||
|
|
||||||
|
|
||||||
|
async def test_서비스_화면은_해시를_경로로_치지_않는다(client, db_engine):
|
||||||
|
await _beacon(client, {"path": "/#/stay"})
|
||||||
|
assert [v["path"] for v in await _views(db_engine)] == ["/"]
|
||||||
@@ -443,6 +443,8 @@ export * from "./visitDeviceRow";
|
|||||||
export * from "./visitPathRow";
|
export * from "./visitPathRow";
|
||||||
export * from "./visitReferrerRow";
|
export * from "./visitReferrerRow";
|
||||||
export * from "./visitSiteRow";
|
export * from "./visitSiteRow";
|
||||||
|
export * from "./visitSiteRowPlaceId";
|
||||||
|
export * from "./visitSiteRowSiteId";
|
||||||
export * from "./visitStatsParams";
|
export * from "./visitStatsParams";
|
||||||
export * from "./visitSummary";
|
export * from "./visitSummary";
|
||||||
export * from "./visitSummaryLastAt";
|
export * from "./visitSummaryLastAt";
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export interface ResVisitStats {
|
|||||||
msg?: ResVisitStatsMsg;
|
msg?: ResVisitStatsMsg;
|
||||||
date_from?: ResVisitStatsDateFrom;
|
date_from?: ResVisitStatsDateFrom;
|
||||||
date_to?: ResVisitStatsDateTo;
|
date_to?: ResVisitStatsDateTo;
|
||||||
realtime?: number;
|
today_visitors?: number;
|
||||||
summary?: VisitSummary;
|
summary?: VisitSummary;
|
||||||
daily?: VisitDaily[];
|
daily?: VisitDaily[];
|
||||||
sites?: VisitSiteRow[];
|
sites?: VisitSiteRow[];
|
||||||
|
|||||||
@@ -4,11 +4,14 @@
|
|||||||
* Web4Ai API
|
* Web4Ai API
|
||||||
* OpenAPI spec version: 0.1.0
|
* OpenAPI spec version: 0.1.0
|
||||||
*/
|
*/
|
||||||
|
import type { VisitSiteRowSiteId } from "./visitSiteRowSiteId";
|
||||||
|
import type { VisitSiteRowPlaceId } from "./visitSiteRowPlaceId";
|
||||||
|
|
||||||
export interface VisitSiteRow {
|
export interface VisitSiteRow {
|
||||||
site_id: string;
|
site_id?: VisitSiteRowSiteId;
|
||||||
place_id: string;
|
place_id?: VisitSiteRowPlaceId;
|
||||||
name: string;
|
name: string;
|
||||||
views: number;
|
views: number;
|
||||||
visitors: number;
|
visitors: number;
|
||||||
|
service?: boolean;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Generated by orval v7.21.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Web4Ai API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type VisitSiteRowPlaceId = string | null;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Generated by orval v7.21.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Web4Ai API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type VisitSiteRowSiteId = string | null;
|
||||||
@@ -10,4 +10,5 @@ export interface VisitSummary {
|
|||||||
views?: number;
|
views?: number;
|
||||||
visitors?: number;
|
visitors?: number;
|
||||||
last_at?: VisitSummaryLastAt;
|
last_at?: VisitSummaryLastAt;
|
||||||
|
direct_views?: number;
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@ import {RangeTabs} from './CrawlerStatsPanel';
|
|||||||
import {rangeParams, type RangeDays} from './range';
|
import {rangeParams, type RangeDays} from './range';
|
||||||
import {VisitStatsPanel} from './VisitStatsPanel';
|
import {VisitStatsPanel} from './VisitStatsPanel';
|
||||||
|
|
||||||
/** 실시간 숫자는 30초마다 다시 부른다 — "지금 몇 명" 은 화면을 열어 둔 채 보는 숫자다. */
|
/** 30초마다 다시 부른다 — 오늘 방문자·페이지뷰는 화면을 열어 둔 채 보는 숫자다. */
|
||||||
const REFRESH_MS = 30_000;
|
const REFRESH_MS = 30_000;
|
||||||
|
|
||||||
export function OverallVisitStats() {
|
export function OverallVisitStats() {
|
||||||
@@ -19,7 +19,7 @@ export function OverallVisitStats() {
|
|||||||
return (
|
return (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<h2 className="text-sm font-semibold">방문 (전체 사이트)</h2>
|
<h2 className="text-sm font-semibold">방문 (발행 사이트 + 서비스 사이트)</h2>
|
||||||
<RangeTabs value={days} onChange={setDays} />
|
<RangeTabs value={days} onChange={setDays} />
|
||||||
</div>
|
</div>
|
||||||
{isLoading && (
|
{isLoading && (
|
||||||
|
|||||||
@@ -13,15 +13,16 @@ const DEVICE_LABEL: Record<string, string> = {desktop: '데스크톱', mobile: '
|
|||||||
/** 방문 탭 본문. 전체: 사이트 순위 / 사이트별: 페이지·캠페인. 유입·기기는 공통. */
|
/** 방문 탭 본문. 전체: 사이트 순위 / 사이트별: 페이지·캠페인. 유입·기기는 공통. */
|
||||||
export function VisitStatsPanel({data, scope}: {data: ResVisitStats; scope: 'overall' | 'site'}) {
|
export function VisitStatsPanel({data, scope}: {data: ResVisitStats; scope: 'overall' | 'site'}) {
|
||||||
const summary = data.summary;
|
const summary = data.summary;
|
||||||
const realtime = data.realtime ?? 0;
|
const today = data.today_visitors ?? 0;
|
||||||
// 기간 안에 기록이 없어도 지금 들어와 있는 사람이 있으면 그 숫자는 보여 준다.
|
const direct = summary?.direct_views ?? 0;
|
||||||
if (!summary?.views && !realtime) {
|
// 기간 안에 기록이 없어도 오늘 들어온 사람이 있으면 그 숫자는 보여 준다.
|
||||||
|
if (!summary?.views && !today) {
|
||||||
return <EmptyState icon={Users} title="아직 방문 기록이 없습니다" description="선택한 기간에 들어온 방문이 없습니다." />;
|
return <EmptyState icon={Users} title="아직 방문 기록이 없습니다" description="선택한 기간에 들어온 방문이 없습니다." />;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div className="grid grid-cols-2 gap-3 md:grid-cols-4">
|
<div className="grid grid-cols-2 gap-3 md:grid-cols-4">
|
||||||
<Stat label="실시간 방문자 (최근 5분)" value={realtime} />
|
<Stat label="오늘 방문자" value={today} />
|
||||||
<Stat label="페이지뷰" value={summary?.views ?? 0} />
|
<Stat label="페이지뷰" value={summary?.views ?? 0} />
|
||||||
<Stat label="방문자" value={summary?.visitors ?? 0} />
|
<Stat label="방문자" value={summary?.visitors ?? 0} />
|
||||||
<Stat label="마지막 방문" value={<span className="text-base">{formatKst(summary?.last_at)}</span>} />
|
<Stat label="마지막 방문" value={<span className="text-base">{formatKst(summary?.last_at)}</span>} />
|
||||||
@@ -36,13 +37,21 @@ export function VisitStatsPanel({data, scope}: {data: ResVisitStats; scope: 'ove
|
|||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
{scope === 'overall' ? (
|
{scope === 'overall' ? (
|
||||||
<Section title="방문이 많은 사이트">
|
<Section title="방문이 많은 사이트 (서비스 사이트 포함)">
|
||||||
<Table
|
<Table
|
||||||
head={['사이트', '페이지뷰', '방문자']}
|
head={['사이트', '페이지뷰', '방문자']}
|
||||||
rows={(data.sites ?? []).map((s) => [
|
rows={(data.sites ?? []).map((s) => [
|
||||||
<Link key="n" to={`/ops/sites/${s.place_id}/stats`} className="font-medium hover:underline">
|
// 서비스 사이트 줄은 사업장이 없어 사이트별 통계로 갈 곳이 없다 — 이름만 보인다.
|
||||||
{s.name}
|
s.service ? (
|
||||||
</Link>,
|
<span key="n" className="font-medium">
|
||||||
|
{s.name}
|
||||||
|
<span className="ml-1.5 text-xs font-normal text-muted-foreground">공개 화면</span>
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<Link key="n" to={`/ops/sites/${s.place_id}/stats`} className="font-medium hover:underline">
|
||||||
|
{s.name}
|
||||||
|
</Link>
|
||||||
|
),
|
||||||
s.views,
|
s.views,
|
||||||
s.visitors,
|
s.visitors,
|
||||||
])}
|
])}
|
||||||
@@ -69,7 +78,16 @@ export function VisitStatsPanel({data, scope}: {data: ResVisitStats; scope: 'ove
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<Section title="유입 도메인">
|
<Section title="유입 도메인">
|
||||||
<Table head={['도메인', '페이지뷰']} rows={(data.referrers ?? []).map((r) => [r.domain, r.views])} />
|
<Table
|
||||||
|
head={['도메인', '페이지뷰']}
|
||||||
|
rows={[
|
||||||
|
// 출처를 알 수 없는 방문 — 직접 입력뿐 아니라 메신저·앱·QR 도 여기 섞인다.
|
||||||
|
...(direct > 0
|
||||||
|
? [[<span key="d" className="text-muted-foreground">직접·알 수 없음</span>, direct]]
|
||||||
|
: []),
|
||||||
|
...(data.referrers ?? []).map((r) => [r.domain, r.views]),
|
||||||
|
]}
|
||||||
|
/>
|
||||||
</Section>
|
</Section>
|
||||||
<Section title="기기">
|
<Section title="기기">
|
||||||
<Table
|
<Table
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
import {useEffect, useRef} from 'react';
|
||||||
|
import {useLocation} from 'react-router';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 서비스 사이트 공개 화면 방문 비콘 — 발행 사이트 비콘(solution/site/src/lib/visit-beacon.ts)과 같은 방식이다.
|
||||||
|
* 쿠키·식별자를 남기지 않고, 방문자 구분은 서버가 IP·UA·월로 해시해 한다.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const ENDPOINT = '/v1/track/view';
|
||||||
|
/** 운영자가 자기 방문을 빼고 싶을 때 콘솔에서 `localStorage.setItem('web4ai.stats.disabled', '1')` — 발행 사이트와 같은 키. */
|
||||||
|
const OPT_OUT_KEY = 'web4ai.stats.disabled';
|
||||||
|
|
||||||
|
/** 세는 공개 화면 — 백엔드 `services/visit_service.py` SERVICE_PATHS 와 같게 둔다. 작업 화면(빌더·내 사이트·운영)은 뺀다. */
|
||||||
|
const SERVICE_PATHS = new Set(['/', '/pricing', '/showcase', '/login', '/signup']);
|
||||||
|
|
||||||
|
function servicePath(pathname: string): string | null {
|
||||||
|
const path = pathname.replace(/\/+$/, '') || '/';
|
||||||
|
return SERVICE_PATHS.has(path) ? path : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isOptedOut(): boolean {
|
||||||
|
try {
|
||||||
|
return window.localStorage.getItem(OPT_OUT_KEY) === '1';
|
||||||
|
} catch {
|
||||||
|
// 저장소 접근이 막힌 브라우저 — 그냥 센다. 통계 때문에 화면이 깨지면 안 된다.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function send(payload: {path: string; referrer: string; utm_source: string}): void {
|
||||||
|
const body = JSON.stringify(payload);
|
||||||
|
// text/plain — sendBeacon 이 프리플라이트 없이 보낼 수 있는 형식이다.
|
||||||
|
const blob = new Blob([body], {type: 'text/plain;charset=UTF-8'});
|
||||||
|
if (navigator.sendBeacon?.(ENDPOINT, blob)) return;
|
||||||
|
// 전송 실패는 방문자에게 보일 일이 아니다 — 결과를 버린다.
|
||||||
|
void fetch(ENDPOINT, {method: 'POST', body, keepalive: true, headers: {'Content-Type': 'text/plain'}}).catch(
|
||||||
|
() => undefined,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 공개 화면에 들어올 때마다 한 번. 앱 안에서 옮겨 온 화면은 리퍼러를 우리 주소로 보낸다 — 첫 유입처를 화면마다 되풀이하지 않는다. */
|
||||||
|
export function useServiceVisitBeacon(): void {
|
||||||
|
const {pathname} = useLocation();
|
||||||
|
const first = useRef(true);
|
||||||
|
useEffect(() => {
|
||||||
|
const isFirst = first.current;
|
||||||
|
first.current = false;
|
||||||
|
const path = servicePath(pathname);
|
||||||
|
if (!path || isOptedOut()) return;
|
||||||
|
send({
|
||||||
|
path,
|
||||||
|
referrer: isFirst ? document.referrer : `${window.location.origin}/`,
|
||||||
|
utm_source: new URLSearchParams(window.location.search).get('utm_source') ?? '',
|
||||||
|
});
|
||||||
|
}, [pathname]);
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@ import {rangeParams, type RangeDays} from '@/features/ops-stats/range';
|
|||||||
import {VisitStatsPanel} from '@/features/ops-stats/VisitStatsPanel';
|
import {VisitStatsPanel} from '@/features/ops-stats/VisitStatsPanel';
|
||||||
import {useAuthStore} from '@/stores/auth';
|
import {useAuthStore} from '@/stores/auth';
|
||||||
|
|
||||||
/** 실시간 방문자는 30초마다 다시 부른다(전체 통계와 같은 주기). */
|
/** 방문 통계는 30초마다 다시 부른다(전체 통계와 같은 주기). */
|
||||||
const REFRESH_MS = 30_000;
|
const REFRESH_MS = 30_000;
|
||||||
|
|
||||||
/** 사이트별 통계 — 개발자(DEVELOPER) 전용. */
|
/** 사이트별 통계 — 개발자(DEVELOPER) 전용. */
|
||||||
|
|||||||
@@ -194,6 +194,16 @@ export function OpsSitesPage() {
|
|||||||
{ownerLabel(row)}
|
{ownerLabel(row)}
|
||||||
{row.owner_email && row.owner_name ? ` · ${row.owner_email}` : ''}
|
{row.owner_email && row.owner_name ? ` · ${row.owner_email}` : ''}
|
||||||
</p>
|
</p>
|
||||||
|
{url && (
|
||||||
|
<a
|
||||||
|
href={url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="mt-0.5 block truncate text-xs text-primary hover:underline"
|
||||||
|
>
|
||||||
|
{url.replace(/^https?:\/\//, '')}
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex shrink-0 items-center gap-1.5">
|
<div className="flex shrink-0 items-center gap-1.5">
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import {isRouteErrorResponse, Links, Meta, Outlet, Scripts, ScrollRestoration} from 'react-router';
|
import {isRouteErrorResponse, Links, Meta, Outlet, Scripts, ScrollRestoration} from 'react-router';
|
||||||
import type {LinksFunction, MetaFunction} from 'react-router';
|
import type {LinksFunction, MetaFunction} from 'react-router';
|
||||||
import {Providers} from '@/app/provider';
|
import {Providers} from '@/app/provider';
|
||||||
|
import {useServiceVisitBeacon} from '@/lib/visitBeacon';
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
/** 문서 껍데기. */
|
/** 문서 껍데기. */
|
||||||
@@ -53,6 +54,7 @@ export function Layout({children}: {children: React.ReactNode}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Root() {
|
export default function Root() {
|
||||||
|
useServiceVisitBeacon();
|
||||||
return (
|
return (
|
||||||
<Providers>
|
<Providers>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
|
|||||||
@@ -653,11 +653,16 @@ orig/index.html 원본 HTML (건드리지 않는다)
|
|||||||
├─ build_reading.py 군산 읽기(카로셀 34꼭지, 화면엔 매번 5~6개 무작위)를 넣는다
|
├─ build_reading.py 군산 읽기(카로셀 34꼭지, 화면엔 매번 5~6개 무작위)를 넣는다
|
||||||
├─ build_daily.py 오늘의 한 장(일력 39장)을 넣는다 — 가요·인물·문학을 읽어 쓰므로 맨 뒤
|
├─ build_daily.py 오늘의 한 장(일력 39장)을 넣는다 — 가요·인물·문학을 읽어 쓰므로 맨 뒤
|
||||||
└─ patch_stay.py 캐치프레이즈 · 주변 맛집 · 객실 사진 · 자작곡 · 주입 CSS/JS · 자산 경로 교정
|
└─ patch_stay.py 캐치프레이즈 · 주변 맛집 · 객실 사진 · 자작곡 · 주입 CSS/JS · 자산 경로 교정
|
||||||
|
· 영상 목록(videos.json) · 날씨 섹션 위치 · 미니블로그 순서 · 방문 비콘(beacon.js)
|
||||||
│
|
│
|
||||||
▼
|
▼
|
||||||
build/index.html ← 배포하는 파일 (git 이그노어)
|
build/index.html ← 배포하는 파일 (git 이그노어)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
★ 이 순서대로 다 돌리면 `build/index.html` 은 킹서버 운영본과 **미니블로그 글(`posts`)만 빼고 한 글자도
|
||||||
|
다르지 않다**(2026-10-19 대조). 글은 DB 에서 오므로 빌드에 넣지 않는다 — 아래 2.2 "미니블로그 글".
|
||||||
|
미니블로그 화면은 `vendor/index-0DqrdnlD-blog1.js` 번들이 그린다. `vendor/` 에는 js·css 번들을 한 벌씩만 둔다.
|
||||||
|
|
||||||
★ **렌더러(`solution/site/src`)를 고치지 않는다.** 고치면 번들 해시가 바뀌어
|
★ **렌더러(`solution/site/src`)를 고치지 않는다.** 고치면 번들 해시가 바뀌어
|
||||||
전 사이트 재굽기 + 전체 재업로드가 따라온다. 목업에만 필요한 것은 `inject.css`/`inject.js` 로 덮는다.
|
전 사이트 재굽기 + 전체 재업로드가 따라온다. 목업에만 필요한 것은 `inject.css`/`inject.js` 로 덮는다.
|
||||||
|
|
||||||
@@ -781,11 +786,20 @@ docker cp audio/. \$C:/app/solution/site/out/s/stay/audio/
|
|||||||
docker cp vendor/. \$C:/app/solution/site/out/s/stay/vendor/"
|
docker cp vendor/. \$C:/app/solution/site/out/s/stay/vendor/"
|
||||||
```
|
```
|
||||||
|
|
||||||
확인: `md5 -q build/index.html` 과
|
★ **덮기 전에 운영본을 백업한다** — `docker exec $C cp …/s/stay/index.html …/s/stay/index.html.bak-<날짜>`.
|
||||||
`ssh King_admin "docker exec o2o-web4ai-solution-site md5sum /srv/sites/s/stay/index.html"` 이 같아야 한다.
|
|
||||||
그다음 `node audit-all.mjs https://web4ai.o2osolution.ai/s/stay`.
|
|
||||||
|
|
||||||
되돌리기: 컨테이너 안에 `index.html.bak-20260910` 이 있다.
|
### 미니블로그 글
|
||||||
|
|
||||||
|
`build/index.html` 의 `posts` 는 비어 있다. 덮은 직후 `/s/stay` 의 미니블로그가 비어 보이는 게 정상이다.
|
||||||
|
글은 DB(`place_posts`)에서 다시 채운다 — 스테이,머뭄 계정으로 빌더에서 **발행**을 한 번 누른다.
|
||||||
|
`stay` 는 목업이라 발행이 사이트를 굽지 않고 `index.html` 의 `posts` 만 갈아 끼운다
|
||||||
|
(`solution/backend/services/mockup_blog.py` `refresh_posts`, `build_service._refresh_mockup_blog`).
|
||||||
|
블로그 글이 승인·게재될 때도 같은 경로로 자동으로 채워진다. 갈아 끼우기 직전 파일은 `index.html.bak-blog` 로 남는다.
|
||||||
|
|
||||||
|
확인: 글을 채운 뒤 `node audit-all.mjs https://web4ai.o2osolution.ai/s/stay`.
|
||||||
|
`index.html` 은 글 때문에 `build/index.html` 과 md5 가 다르다 — 비교하려면 payload 의 `posts` 를 빼고 본다.
|
||||||
|
|
||||||
|
되돌리기: 컨테이너 안의 `index.html.bak-*` 중 가장 최근 것을 `index.html` 로 복사한다.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
(function () {
|
||||||
|
try { if (localStorage.getItem('web4ai.stats.disabled') === '1') return; } catch (e) {}
|
||||||
|
function send() {
|
||||||
|
var p = location.pathname;
|
||||||
|
if (p.indexOf('/s/') !== 0) return;
|
||||||
|
var h = location.hash || '';
|
||||||
|
var tab = h.indexOf('#/') === 0 && h !== '#/' ? h : '';
|
||||||
|
var utm = new URLSearchParams(location.search).get('utm_source') || '';
|
||||||
|
var body = JSON.stringify({path: p + tab, referrer: document.referrer, utm_source: utm});
|
||||||
|
var blob = new Blob([body], {type: 'text/plain;charset=UTF-8'});
|
||||||
|
if (navigator.sendBeacon && navigator.sendBeacon('/v1/track/view', blob)) return;
|
||||||
|
fetch('/v1/track/view', {method: 'POST', body: body, keepalive: true, headers: {'Content-Type': 'text/plain'}}).catch(function () {});
|
||||||
|
}
|
||||||
|
send();
|
||||||
|
window.addEventListener('hashchange', send);
|
||||||
|
})();
|
||||||
@@ -67,9 +67,8 @@ def naver(title):
|
|||||||
# 갈래 — 화면에 이 순서로 선다.
|
# 갈래 — 화면에 이 순서로 선다.
|
||||||
GROUPS = [
|
GROUPS = [
|
||||||
("문학", "이 도시를 쓴 사람과 그 자리"),
|
("문학", "이 도시를 쓴 사람과 그 자리"),
|
||||||
("인물", "이 도시가 낳은 사람들"),
|
|
||||||
]
|
]
|
||||||
KEEP = {"문학", "인물"}
|
KEEP = {"문학"}
|
||||||
|
|
||||||
# (갈래, 제목, 글, 연도 또는 None)
|
# (갈래, 제목, 글, 연도 또는 None)
|
||||||
# ★ 원문을 옮기지 않는다 — 시·소설·가사의 본문은 한 줄도 싣지 않고 제목과 배경만 쓴다.
|
# ★ 원문을 옮기지 않는다 — 시·소설·가사의 본문은 한 줄도 싣지 않고 제목과 배경만 쓴다.
|
||||||
@@ -371,7 +370,7 @@ existing = next((s for s in SECTIONS if s["id"] == "reading"), None)
|
|||||||
if existing is None:
|
if existing is None:
|
||||||
existing = {"id": "reading", "name": "군산 읽기", "enabled": False, "locked": False}
|
existing = {"id": "reading", "name": "군산 읽기", "enabled": False, "locked": False}
|
||||||
SECTIONS.insert(next(i for i, s in enumerate(SECTIONS) if s["id"] == "story") + 1, existing)
|
SECTIONS.insert(next(i for i, s in enumerate(SECTIONS) if s["id"] == "story") + 1, existing)
|
||||||
existing["data"] = json.dumps(env, ensure_ascii=False)
|
existing["data"] = json.dumps(env, ensure_ascii=False, separators=(",", ":"))
|
||||||
|
|
||||||
SRC.write_text(json.dumps(payload, ensure_ascii=False), encoding="utf-8")
|
SRC.write_text(json.dumps(payload, ensure_ascii=False), encoding="utf-8")
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,12 @@
|
|||||||
★ 플레이어는 헤더 **안**이다. 하단 바는 모바일 탭바(fixed bottom:0 · 61px)를 덮었고,
|
★ 플레이어는 헤더 **안**이다. 하단 바는 모바일 탭바(fixed bottom:0 · 61px)를 덮었고,
|
||||||
상단 바는 헤더와 두 줄이 됐다. 헤더 안이면 화면에서 차지하는 줄이 늘지 않는다. */
|
상단 바는 헤더와 두 줄이 됐다. 헤더 안이면 화면에서 차지하는 줄이 늘지 않는다. */
|
||||||
|
|
||||||
|
.site, .site-canvas {
|
||||||
|
--fs-body: clamp(1.125rem, 1.09rem + 0.15vw, 1.1875rem);
|
||||||
|
--fs-sm: clamp(1.0625rem, 1.04rem + 0.1vw, 1.09375rem);
|
||||||
|
--fs-xs: clamp(0.96875rem, 0.95rem + 0.06vw, 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
/* ── 헤더에 꽂는 아이콘 세 개 ─────────────────────────────────────── */
|
/* ── 헤더에 꽂는 아이콘 세 개 ─────────────────────────────────────── */
|
||||||
#w4d-mini {
|
#w4d-mini {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|||||||
@@ -237,6 +237,16 @@ for _sec in payload["theme"]["sections"]:
|
|||||||
_sec["data"] = json.dumps({"kind": "postcard", "version": 1, "items": []}, ensure_ascii=False)
|
_sec["data"] = json.dumps({"kind": "postcard", "version": 1, "items": []}, ensure_ascii=False)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
for _sec in payload["theme"]["sections"]:
|
||||||
|
if _sec["id"] == "video":
|
||||||
|
_env = json.loads(_sec["data"])
|
||||||
|
_env["items"] = json.loads((SP / "videos.json").read_text(encoding="utf-8"))
|
||||||
|
_sec["data"] = json.dumps(_env, ensure_ascii=False)
|
||||||
|
break
|
||||||
|
|
||||||
|
_secs = payload["theme"]["sections"]
|
||||||
|
_secs.insert(1, _secs.pop(next(i for i, s in enumerate(_secs) if s["id"] == "weather")))
|
||||||
|
|
||||||
# 굽는 판에는 케이스마다 **첫 문장**을 박는다 — 크롤러와 첫 화면이 보는 값이고,
|
# 굽는 판에는 케이스마다 **첫 문장**을 박는다 — 크롤러와 첫 화면이 보는 값이고,
|
||||||
# inject.js 가 DOM 에서 갈아 끼울 때 찾는 닻이기도 하다. 문장이 겹치면 엉뚱한 줄을 바꾼다.
|
# inject.js 가 DOM 에서 갈아 끼울 때 찾는 닻이기도 하다. 문장이 겹치면 엉뚱한 줄을 바꾼다.
|
||||||
_all_notes = [t for lst in SKY_NOTES.values() for t in lst] + \
|
_all_notes = [t for lst in SKY_NOTES.values() for t in lst] + \
|
||||||
@@ -551,11 +561,17 @@ assert (SP / "vendor" / "embla-carousel.umd.js").exists(), \
|
|||||||
|
|
||||||
block = ("\n <script src=\"/s/stay/vendor/embla-carousel.umd.js\"></script>\n"
|
block = ("\n <script src=\"/s/stay/vendor/embla-carousel.umd.js\"></script>\n"
|
||||||
" <style id=\"w4d-css\">\n" + css + "\n </style>\n"
|
" <style id=\"w4d-css\">\n" + css + "\n </style>\n"
|
||||||
" <script id=\"w4d-js\">\n" + js + "\n </script>\n ")
|
" <script id=\"w4d-js\">\n" + js + "\n </script>\n"
|
||||||
|
" <script>\n" + (SP / "beacon.js").read_text(encoding="utf-8") + " </script>\n ")
|
||||||
# 치환문(block)에 JS 의 정규식(\s 등)이 섞여 있어 그대로 넘기면 파이썬이 이스케이프로 읽는다 — 람다로 넘긴다.
|
# 치환문(block)에 JS 의 정규식(\s 등)이 섞여 있어 그대로 넘기면 파이썬이 이스케이프로 읽는다 — 람다로 넘긴다.
|
||||||
html, n = re.subn(r"\n?\s*</body>", lambda _m: block + "</body>", html, count=1)
|
html, n = re.subn(r"\n?\s*</body>", lambda _m: block + "</body>", html, count=1)
|
||||||
assert n == 1, "</body> 를 못 찾았다"
|
assert n == 1, "</body> 를 못 찾았다"
|
||||||
|
|
||||||
|
BLOG_ORDER = ('<style id="stay-blog-order">#root main:has(#top){display:flex;flex-direction:column}'
|
||||||
|
'#root main>#top{order:-2}#root main #blog{order:-1}</style>')
|
||||||
|
html, n = re.subn(r"\n </head>", lambda _m: "\n " + BLOG_ORDER + "</head>", html, count=1)
|
||||||
|
assert n == 1, "</head> 를 못 찾았다"
|
||||||
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
# 레포 안으로 끌어들이기 — 다른 사람 기계에서도 그대로 떠야 한다.
|
# 레포 안으로 끌어들이기 — 다른 사람 기계에서도 그대로 떠야 한다.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"schemaVersion": 1, "site": {"siteId": "e929e6b4-e502-4761-9786-0bb82178b375", "placeId": "66894a1b-a331-43f1-942c-0ae064a704d6", "status": 3, "origin": "https://web4ai.o2osolution.ai", "basePath": "/s/stay", "slug": "stay", "publishedAt": "2026-09-03T01:27:39.284442+00:00", "updatedAt": "2026-09-14T07:42:00+00:00", "version": 11}, "place": {"name": "스테이,머뭄", "category": 1, "roadAddress": "전북 군산시 절골길 18", "address": "전북 군산시 신흥동 63-18", "addressRegion": "전북", "addressLocality": "군산시", "addressSubLocality": null, "addressRegionCode": "KR-45", "phone": "0507-1497-0983", "latitude": 35.9864175, "longitude": 126.7061254, "regionCode": "52군산시", "kakaoPlaceId": null}, "facts": [{"key": "parking", "label": "주차 가능", "value": "true", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://m.place.naver.com/place/1133638931/home", "critical": false, "required": false, "unitId": null, "collectedAt": "2026-08-28T02:10:08.678003+00:00", "verifiedAt": "2026-08-28T02:12:21.402109+00:00"}, {"key": "intro", "label": "숙소 소개", "value": "1920년대에 지어진 백 년 고택을 리모델링한 독채 펜션입니다. 히로쓰 가옥 후문 바로 옆이고, 침구는 매일 세탁·살균·건조합니다.", "unit": null, "type": "text", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://m.place.naver.com/place/1133638931/home", "critical": false, "required": false, "unitId": null, "collectedAt": "2026-08-28T02:10:08.547669+00:00", "verifiedAt": "2026-08-28T02:12:21.922925+00:00"}, {"key": "wifi", "label": "와이파이", "value": "true", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://m.place.naver.com/place/1133638931/home", "critical": false, "required": false, "unitId": null, "collectedAt": "2026-08-28T02:10:08.757070+00:00", "verifiedAt": "2026-08-28T02:12:22.356600+00:00"}, {"key": "check_in_time", "label": "체크인 시간", "value": "15:00", "unit": null, "type": "time", "scope": "place", "status": 3, "sourceType": 1, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T23:31:05.719599+00:00"}, {"key": "check_out_time", "label": "체크아웃 시간", "value": "11:00", "unit": null, "type": "time", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "cancel_policy", "label": "취소·환불 규정", "value": "입실 당일 취소와 노쇼(No Show)는 숙박요금의 100%가 부과되어 환불되지 않습니다. 그 이전 취소 수수료는 예약하신 채널의 취소 규정을 따릅니다.", "unit": null, "type": "text", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "cooking_allowed", "label": "취사 가능", "value": "true", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "pet_allowed", "label": "반려동물 동반", "value": "false", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "smoking", "label": "흡연 가능", "value": "false", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": false, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "extra_person_fee", "label": "인원 추가 요금", "value": "20000", "unit": "원", "type": "number", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": false, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "pickup_service", "label": "픽업 서비스", "value": "false", "type": "bool", "scope": "place", "unit": null, "status": 3, "sourceType": 3, "sourceUrl": "htLine truncated
|
{"schemaVersion": 1, "site": {"siteId": "e929e6b4-e502-4761-9786-0bb82178b375", "placeId": "66894a1b-a331-43f1-942c-0ae064a704d6", "status": 3, "origin": "https://web4ai.o2osolution.ai", "basePath": "/s/stay", "slug": "stay", "publishedAt": "2026-09-03T01:27:39.284442+00:00", "updatedAt": "2026-09-14T07:42:00+00:00", "version": 11}, "place": {"name": "스테이,머뭄", "category": 1, "roadAddress": "전북 군산시 절골길 18", "address": "전북 군산시 신흥동 63-18", "addressRegion": "전북", "addressLocality": "군산시", "addressSubLocality": null, "addressRegionCode": "KR-45", "phone": "0507-1497-0983", "latitude": 35.9864175, "longitude": 126.7061254, "regionCode": "52군산시", "kakaoPlaceId": null}, "facts": [{"key": "parking", "label": "주차 가능", "value": "true", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://m.place.naver.com/place/1133638931/home", "critical": false, "required": false, "unitId": null, "collectedAt": "2026-08-28T02:10:08.678003+00:00", "verifiedAt": "2026-08-28T02:12:21.402109+00:00"}, {"key": "intro", "label": "숙소 소개", "value": "1920년대에 지어진 백 년 고택을 리모델링한 독채 펜션입니다. 히로쓰 가옥 후문 바로 옆이고, 침구는 매일 세탁·살균·건조합니다.", "unit": null, "type": "text", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://m.place.naver.com/place/1133638931/home", "critical": false, "required": false, "unitId": null, "collectedAt": "2026-08-28T02:10:08.547669+00:00", "verifiedAt": "2026-08-28T02:12:21.922925+00:00"}, {"key": "wifi", "label": "와이파이", "value": "true", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://m.place.naver.com/place/1133638931/home", "critical": false, "required": false, "unitId": null, "collectedAt": "2026-08-28T02:10:08.757070+00:00", "verifiedAt": "2026-08-28T02:12:22.356600+00:00"}, {"key": "check_out_time", "label": "체크아웃 시간", "value": "11:00", "unit": null, "type": "time", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "cancel_policy", "label": "취소·환불 규정", "value": "입실 당일 취소와 노쇼(No Show)는 숙박요금의 100%가 부과되어 환불되지 않습니다. 그 이전 취소 수수료는 예약하신 채널의 취소 규정을 따릅니다.", "unit": null, "type": "text", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "cooking_allowed", "label": "취사 가능", "value": "true", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "pet_allowed", "label": "반려동물 동반", "value": "false", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "smoking", "label": "흡연 가능", "value": "false", "unit": null, "type": "bool", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": false, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "extra_person_fee", "label": "인원 추가 요금", "value": "20000", "unit": "원", "type": "number", "scope": "place", "status": 3, "sourceType": 3, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": false, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T13:27:53.241391+00:00"}, {"key": "check_in_time", "label": "체크인 시간", "value": "15:00", "unit": null, "type": "time", "scope": "place", "status": 3, "sourceType": 1, "sourceUrl": "https://travel.interpark.com/checkinnow/goods/GY0002361440", "critical": true, "required": true, "unitId": null, "collectedAt": "2026-09-02T13:27:53.241391+00:00", "verifiedAt": "2026-09-02T23:31:05.719599+00:00"}, {"key": "pickup_service", "label": "픽업 서비스", "value": "false", "type": "bool", "scope": "place", "unit": null, "status": 3, "sourceType": 3, "sourceUrl": "htLine truncated
|
||||||
@@ -0,0 +1,351 @@
|
|||||||
|
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function c(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();const Tb="modulepreload",Ab=function(s){return"/"+s},Oh={},kb=function(r,c,u){let f=Promise.resolve();if(c&&c.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=m(c.map(p=>{if(p=Ab(p),p in Oh)return;Oh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":Tb,y||(j.as="script"),j.crossOrigin="",j.href=p,g&&j.setAttribute("nonce",g),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return f.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return r().catch(d)})};var $o={exports:{}},Ds={};/**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.production.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/var Dh;function Cb(){if(Dh)return Ds;Dh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function c(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Ds.Fragment=r,Ds.jsx=c,Ds.jsxs=c,Ds}var Rh;function _b(){return Rh||(Rh=1,$o.exports=Cb()),$o.exports}var a=_b(),Go={exports:{}},ue={};/**
|
||||||
|
* @license React
|
||||||
|
* react.production.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/var Uh;function Mb(){if(Uh)return ue;Uh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,H={};function L(E,$,K){this.props=E,this.context=$,this.refs=H,this.updater=K||N}L.prototype.isReactComponent={},L.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=L.prototype;function R(E,$,K){this.props=E,this.context=$,this.refs=H,this.updater=K||N}var Q=R.prototype=new Y;Q.constructor=R,A(Q,L.prototype),Q.isPureReactComponent=!0;var q=Array.isArray;function J(){}var X={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function le(E,$,K){var F=K.ref;return{$$typeof:s,type:E,key:$,ref:F!==void 0?F:null,props:K}}function Z(E,$){return le(E.type,$,E.props)}function ne(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function ye(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return $[K]})}var Ge=/\/+/g;function Xe(E,$){return typeof E=="object"&&E!==null&&E.key!=null?ye(""+E.key):$.toString(36)}function re(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(J,J):(E.status="pending",E.then(function($){E.status==="pending"&&(E.status="fulfilled",E.value=$)},function($){E.status==="pending"&&(E.status="rejected",E.reason=$)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,$,K,F,ce){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),$,K,F,ce)}}if(oe)return ce=ce(E),oe=F===""?"."+Xe(E,0):F,q(ce)?(K="",oe!=null&&(K=oe.replace(Ge,"$&/")+"/"),O(ce,$,K,"",function(at){return at})):ce!=null&&(ne(ce)&&(ce=Z(ce,K+(ce.key==null||E&&E.key===ce.key?"":(""+ce.key).replace(Ge,"$&/")+"/")+oe)),$.push(ce)),1;oe=0;var Ee=F===""?".":F+":";if(q(E))for(var ze=0;ze<E.length;ze++)F=E[ze],fe=Ee+Xe(F,ze),oe+=O(F,$,K,fe,ce);else if(ze=w(E),typeof ze=="function")for(E=ze.call(E),ze=0;!(F=E.next()).done;)F=F.value,fe=Ee+Xe(F,ze++),oe+=O(F,$,K,fe,ce);else if(fe==="object"){if(typeof E.then=="function")return O(re(E),$,K,F,ce);throw $=String(E),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return oe}function V(E,$,K){if(E==null)return E;var F=[],ce=0;return O(E,F,"","",function(fe){return $.call(K,fe,ce++)}),F}function ae(E){if(E._status===-1){var $=E._result;$=$(),$.then(function(K){(E._status===0||E._status===-1)&&(E._status=1,E._result=K)},function(K){(E._status===0||E._status===-1)&&(E._status=2,E._result=K)}),E._status===-1&&(E._status=0,E._result=$)}if(E._status===1)return E._result.default;throw E._result}var he=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},je={map:V,forEach:function(E,$,K){V(E,function(){$.apply(this,arguments)},K)},count:function(E){var $=0;return V(E,function(){$++}),$},toArray:function(E){return V(E,function($){return $})||[]},only:function(E){if(!ne(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ue.Activity=v,ue.Children=je,ue.Component=L,ue.Fragment=c,ue.Profiler=f,ue.PureComponent=R,ue.StrictMode=u,ue.Suspense=g,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ue.__COMPILER_RUNTIME={__proto__:null,c:function(E){return X.H.useMemoCache(E)}},ue.cache=function(E){return function(){return E.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(E,$,K){if(E==null)throw ErrorLine truncated
|
||||||
|
* @license React
|
||||||
|
* scheduler.production.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/var Hh;function Ob(){return Hh||(Hh=1,(function(s){function r(O,V){var ae=O.length;O.push(V);e:for(;0<ae;){var he=ae-1>>>1,je=O[he];if(0<f(je,V))O[he]=V,O[ae]=je,ae=he;else break e}}function c(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var V=O[0],ae=O.pop();if(ae!==V){O[0]=ae;e:for(var he=0,je=O.length,E=je>>>1;he<E;){var $=2*(he+1)-1,K=O[$],F=$+1,ce=O[F];if(0>f(K,ae))F<je&&0>f(ce,K)?(O[he]=ce,O[F]=ae,he=F):(O[he]=K,O[$]=ae,he=$);else if(F<je&&0>f(ce,ae))O[he]=ce,O[F]=ae,he=F;else break e}}return V}function f(O,V){var ae=O.sortIndex-V.sortIndex;return ae!==0?ae:O.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],p=[],y=1,v=null,j=3,w=!1,N=!1,A=!1,H=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Q(O){for(var V=c(p);V!==null;){if(V.callback===null)u(p);else if(V.startTime<=O)u(p),V.sortIndex=V.expirationTime,r(g,V);else break;V=c(p)}}function q(O){if(A=!1,Q(O),!N)if(c(g)!==null)N=!0,J||(J=!0,ye());else{var V=c(p);V!==null&&re(q,V.startTime-O)}}var J=!1,X=-1,I=5,le=-1;function Z(){return H?!0:!(s.unstable_now()-le<I)}function ne(){if(H=!1,J){var O=s.unstable_now();le=O;var V=!0;try{e:{N=!1,A&&(A=!1,Y(X),X=-1),w=!0;var ae=j;try{t:{for(Q(O),v=c(g);v!==null&&!(v.expirationTime>O&&Z());){var he=v.callback;if(typeof he=="function"){v.callback=null,j=v.priorityLevel;var je=he(v.expirationTime<=O);if(O=s.unstable_now(),typeof je=="function"){v.callback=je,Q(O),V=!0;break t}v===c(g)&&u(g),Q(O)}else u(g);v=c(g)}if(v!==null)V=!0;else{var E=c(p);E!==null&&re(q,E.startTime-O),V=!1}}break e}finally{v=null,j=ae,w=!1}V=void 0}}finally{V?ye():J=!1}}}var ye;if(typeof R=="function")ye=function(){R(ne)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Xe=Ge.port2;Ge.port1.onmessage=ne,ye=function(){Xe.postMessage(null)}}else ye=function(){L(ne,0)};function re(O,V){X=L(function(){O(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<O?Math.floor(1e3/O):5},s.unstable_getCurrentPriorityLevel=function(){return j},s.unstable_next=function(O){switch(j){case 1:case 2:case 3:var V=3;break;default:V=j}var ae=j;j=V;try{return O()}finally{j=ae}},s.unstable_requestPaint=function(){H=!0},s.unstable_runWithPriority=function(O,V){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ae=j;j=O;try{return V()}finally{j=ae}},s.unstable_scheduleCallback=function(O,V,ae){var he=s.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?he+ae:he):ae=he,O){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=ae+je,O={id:y++,callback:V,priorityLevel:O,startTime:ae,expirationTime:je,sortIndex:-1},ae>he?(O.sortIndex=ae,r(p,O),c(g)===null&&O===c(p)&&(A?(Y(X),X=-1):A=!0,re(q,ae-he))):(O.sortIndex=je,r(g,O),N||w||(N=!0,J||(J=!0,ye()))),O},s.unstable_shouldYield=Z,s.unstable_wrapCallback=function(O){var V=j;return function(){var ae=j;j=V;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Bh;function Db(){return Bh||(Bh=1,Xo.exports=Ob()),Xo.exports}var Vo={exports:{}},xt={};/**
|
||||||
|
* @license React
|
||||||
|
* react-dom.production.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/var qh;function Rb(){if(qh)return xt;qh=1;var s=fu();function r(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var u={d:{f:c,r:function(){throw Error(r(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(g,p,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:g,containerInfo:p,implementation:y}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,xt.createPortal=function(g,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return d(g,p,null,y)},xt.flushSync=function(g){var p=m.T,y=u.p;try{if(m.T=null,u.p=2,g)return g()}finally{m.T=p,u.p=y,u.d.f()}},xt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(g,p))},xt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},xt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var y=p.as,v=x(y,p.crossOrigin),j=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?u.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:j,fetchPriority:w}):y==="script"&&u.d.X(g,{crossOrigin:v,integrity:j,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},xt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=x(p.as,p.crossOrigin);u.d.M(g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(g)},xt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,v=x(y,p.crossOrigin);u.d.L(g,y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},xt.preloadModule=function(g,p){if(typeof g=="string")if(p){var y=x(p.as,p.crossOrigin);u.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(g)},xt.requestFormReset=function(g){u.d.r(g)},xt.unstable_batchedUpdates=function(g,p){return g(p)},xt.useFormState=function(g,p,y){return m.H.useFormState(g,p,y)},xt.useFormStatus=function(){return m.H.useHostTransitionStatus()},xt.version="19.2.8",xt}var $h;function Ub(){if($h)return Vo.exports;$h=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Rb(),Vo.exports}/**
|
||||||
|
* @license React
|
||||||
|
* react-dom-client.production.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/var Gh;function Lb(){if(Gh)return Rs;Gh=1;var s=Db(),r=fu(),c=Ub();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,n=t;;){var i=l.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){l=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===l)return g(i),e;if(o===n)return g(i),t;o=o.sibling}throw Error(u(188))}if(l.return!==n.return)l=i,n=o;else{for(var h=!1,b=i.child;b;){if(b===l){h=!0,l=i,n=o;break}if(b===n){h=!0,n=i,l=o;break}b=b.sibling}if(!h){for(b=o.child;b;){if(b===l){h=!0,l=o,n=i;break}if(b===n){h=!0,n=o,l=i;break}b=b.sibling}if(!h)throw Error(u(189))}}if(l.alternate!==n)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,j=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),R=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ye(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Ge=Symbol.for("react.client.reference");function Xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case L:return"Profiler";case H:return"StrictMode";case q:return"Suspense";case J:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case R:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Xe(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Xe(e(t))}catch{}}return null}var re=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},he=[],je=-1;function E(e){return{current:e}}function $(e){0>je||(e.current=he[je],he[je]=null,je--)}function K(e,t){je++,he[je]=e.current,e.current=t}var F=E(null),ce=E(null),fe=E(null),oe=E(null);function Ee(e,t){switch(K(fe,t),K(ce,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lh(t),e=ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(F),K(F,e)}function ze(){$(F),$(ce),$(fe)}function at(e){e.memoizedState!==null&&K(oe,e);var t=F.current,l=ah(t,e.type);t!==l&&(K(ce,e),K(F,l))}function Me(e){ce.current===e&&($(F),$(ce)),oe.current===e&&($(oe),Cs._currentValue=ae)}var te,Ae;function Oe(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1<l.stack.indexOf(`
|
||||||
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||||
|
`+te+e+Ae}var tt=!1;function Nt(e,t){if(!e||tt)return"";tt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(D){var M=D}Reflect.construct(e,[],G)}else{try{G.call()}catch(D){M=D}e.call(G.prototype)}}else{try{throw Error()}catch(D){M=D}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(D){if(D&&M&&typeof D.stack=="string")return[D.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),h=o[0],b=o[1];if(h&&b){var S=h.split(`
|
||||||
|
`),C=b.split(`
|
||||||
|
`);for(i=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(n===S.length||i===C.length)for(n=S.length-1,i=C.length-1;1<=n&&0<=i&&S[n]!==C[i];)i--;for(;1<=n&&0<=i;n--,i--)if(S[n]!==C[i]){if(n!==1||i!==1)do if(n--,i--,0>i||S[n]!==C[i]){var U=`
|
||||||
|
`+S[n].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=n&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Oe(l):""}function Wt(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return Oe("Activity");default:return""}}function sl(e){try{var t="",l=null;do t+=Wt(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
|
||||||
|
Error generating stack: `+n.message+`
|
||||||
|
`+n.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Bn=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,qn=s.unstable_UserBlockingPriority,$a=s.unstable_NormalPriority,$n=s.unstable_LowPriority,bl=s.unstable_IdlePriority,Gn=s.log,Yn=s.unstable_setDisableYieldValue,il=null,vt=null;function rl(e){if(typeof Gn=="function"&&Yn(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(il,e)}catch{}}var yt=Math.clz32?Math.clz32:Is,zr=Math.log,Tr=Math.LN2;function Is(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var Ga=256,ga=262144,ba=4194304;function cl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ya(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=n&134217727;return b!==0?(n=b&~o,n!==0?i=cl(n):(h&=b,h!==0?i=cl(h):l||(l=b&~e,l!==0&&(i=cl(l))))):(b=n&~o,b!==0?i=cl(b):h!==0?i=cl(h):l||(l=n&~e,l!==0&&(i=cl(l)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,l=t&-t,o>=l||o===32&&(l&4194048)!==0)?t:i}function $l(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ws(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ba;return ba<<=1,(ba&62914560)===0&&(ba=4194304),e}function Ar(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function px(e,t,l,n,i,o){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=h&~l;0<l;){var U=31-yt(l),G=1<<U;b[U]=0,S[U]=-1;var M=C[U];if(M!==null)for(C[U]=null,U=0;U<M.length;U++){var D=M[U];D!==null&&(D.lane&=-536870913)}l&=~G}n!==0&&Lu(e,n,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(h&~t))}function Lu(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-yt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Hu(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-yt(l),i=1<<n;i&t|e[n]&t&&(e[n]|=t),l&=~i}}function Bu(e,t){var l=t&-t;return l=(l&42)!==0?1:kr(l),(l&(e.suspendedLanes|t))!==0?0:l}function kr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Cr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qu(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:zh(e.type))}function $u(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var Gl=Math.random().toString(36).slice(2),ot="__reactFiber$"+Gl,St="__reactProps$"+Gl,Xa="__reactContainer$"+Gl,_r="__reactEvents$"+Gl,xx="__reactListeners$"+Gl,gx="__reactHandles$"+Gl,Gu="__reactResources$"+Gl,Qn="__reactMarker$"+Gl;function Mr(e){delete e[ot],delete e[St],delete e[_r],delete e[xx],delete e[gx]}function Qa(e){var t=e[ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Xa]||l[ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=uh(e);e!==null;){if(l=e[ot])return l;e=uh(e)}return t}e=l,l=e.parentNode}return null}function Va(e){if(e=e[ot]||e[Xa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Za(e){var t=e[Gu];return t||(t=e[Gu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Qn]=!0}var Yu=new Set,Xu={};function va(e,t){Ka(e,t),Ka(e+"Capture",t)}function Ka(e,t){for(Xu[e]=t,e=0;e<t.length;e++)Yu.add(t[e])}var bx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21
Line truncated
|
||||||
|
`).replace(Jg,"")}function eh(e,t){return t=Pm(t),Pm(e)===t}function Re(e,t,l,n,i,o){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Fa(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Fa(e,""+n);break;case"className":ti(e,"class",n);break;case"tabIndex":ti(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ti(e,l,n);break;case"style":Pu(e,n,o);break;case"data":if(t!=="object"){ti(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ai(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",i.name,i,null),Re(e,t,"formEncType",i.formEncType,i,null),Re(e,t,"formMethod",i.formMethod,i,null),Re(e,t,"formTarget",i.formTarget,i,null)):(Re(e,t,"encType",i.encType,i,null),Re(e,t,"method",i.method,i,null),Re(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ai(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=yl);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=ai(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":xe("beforetoggle",e),xe("toggle",e),ei(e,"popover",n);break;case"xlinkActuate":vl(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":vl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":vl(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":vl(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":vl(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":vl(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":vl(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":vl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":vl(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":ei(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Sx.get(l)||l,ei(e,l,n))}}function So(e,t,l,n,i,o){switch(l){case"style":Pu(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof n=="string"?Fa(e,n):(typeof n=="number"||typeof n=="bigint")&&Fa(e,""+n);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=yl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Bb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,c,u)=>u?u.toUpperCase():c.toLowerCase()),Xh=s=>{const r=qb(s);return r.charAt(0).toUpperCase()+r.slice(1)},Mp=(...s)=>s.filter((r,c,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===c).join(" ").trim(),$b=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/var Gb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Yb=_.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...x},g)=>_.createElement("svg",{ref:g,...Gb,width:r,height:r,stroke:s,strokeWidth:u?Number(c)*24/Number(r):c,className:Mp("lucide",f),...!d&&!$b(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,y])=>_.createElement(p,y)),...Array.isArray(d)?d:[d]]));/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const _e=(s,r)=>{const c=_.forwardRef(({className:u,...f},d)=>_.createElement(Yb,{ref:d,iconNode:r,className:Mp(`lucide-${Bb(Xh(s))}`,`lucide-${s}`,u),...f}));return c.displayName=Xh(s),c};/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Xb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Hl=_e("arrow-up-right",Xb);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Qb=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Vb=_e("bed-double",Qb);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Zb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Kb=_e("calendar-check",Zb);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Jb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Fb=_e("car",Jb);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Ib=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Ib);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Wb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Wb);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const Pb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Pb);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const e0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],La=_e("chevron-right",e0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const t0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l0=_e("clock",t0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],n0=_e("cloud-rain",a0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const s0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],i0=_e("cloud-snow",s0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const r0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],c0=_e("cloud",r0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const o0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],u0=_e("copy",o0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const f0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],d0=_e("external-link",f0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const m0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],h0=_e("instagram",m0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const p0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Op=_e("mail",p0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const x0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",x0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const g0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dp=_e("menu",g0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const b0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",b0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const v0=[["path",{d:"M5 12h14",key:"1ays0h"}]],y0=_e("minus",v0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const j0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",j0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const N0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],gt=_e("phone",N0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const S0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],w0=_e("play",S0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const E0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],z0=_e("plus",E0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const T0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],A0=_e("rotate-ccw",T0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const k0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],C0=_e("sun",k0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],M0=_e("utensils",_0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const O0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",O0);/**
|
||||||
|
* @license lucide-react v0.546.0 - ISC
|
||||||
|
*
|
||||||
|
* This source code is licensed under the ISC license.
|
||||||
|
* See the LICENSE file in the root directory of this source tree.
|
||||||
|
*/const D0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],R0=_e("youtube",D0),Rp=_.createContext(null);function U0({payload:s,children:r}){return a.jsx(Rp.Provider,{value:s,children:r})}function W(){const s=_.useContext(Rp);if(!s)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return s}function L0(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[a.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),a.jsxs("g",{className:"w4d-reel",children:[a.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),a.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),a.jsxs("g",{className:"w4d-reel",children:[a.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),a.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),a.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function H0(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M8 5v14l11-7z"})})}function B0(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function q0(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[a.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),a.jsx("path",{d:"M19 17.5V9l3 1.2"}),a.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function $0(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:a.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Qh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),c=Math.floor(s%60);return`${r}:${c<10?"0":""}${c}`}function Up(){const s=W(),r=(s.songs??[]).filter(q=>q.audioUrl),[c,u]=_.useState(0),[f,d]=_.useState(!1),[m,x]=_.useState(!1),[g,p]=_.useState({now:0,total:0}),[y,v]=_.useState({}),j=_.useRef(null),w=_.useRef(null),N=_.useRef(null),A=r.length;_.useEffect(()=>{A>1&&u(Math.floor(Math.random()*A))},[A]);const H=_.useCallback(()=>{var I;const q=document.querySelector("header"),J=q==null?void 0:q.getBoundingClientRect(),X={top:`${J?J.bottom+6:66}px`};if(window.innerWidth<=640)X.left="8px",X.right="8px";else{X.left="auto";const le=(I=w.current)==null?void 0:I.getBoundingClientRect();X.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(X)},[]);if(_.useEffect(()=>{if(!m)return;H();const q=()=>H(),J=X=>{var le,Z;const I=X.target;(le=N.current)!=null&&le.contains(I)||(Z=w.current)!=null&&Z.contains(I)||x(!1)};return window.addEventListener("resize",q),window.addEventListener("scroll",q,{passive:!0}),document.addEventListener("click",J),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",q),document.removeEventListener("click",J)}},[m,H]),_.useEffect(()=>()=>{var q;return(q=j.current)==null?void 0:q.pause()},[]),r.length===0)return null;const L=r[c]??r[0],Y=(q=c)=>{const J=j.current,X=r[q];!J||!X||(J.getAttribute("src")!==X.audioUrl&&(J.src=X.audioUrl),J.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var q;(q=j.current)==null||q.pause(),d(!1)},Q=q=>{const J=(q%r.length+r.length)%r.length;u(J),p({now:0,total:0}),Y(J)};return a.jsxs(a.Fragment,{children:[a.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[a.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}이(가) 만든 노래`,children:a.jsx(L0,{})}),a.jsx("span",{id:"w4d-now","aria-live":"polite",children:L.title}),a.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"멈춤":"재생"} · ${L.title}`,onClick:()=>f?R():Y(),children:f?a.jsx(B0,{}):a.jsx(H0,{})}),a.jsx("button",{type:"button",id:"w4d-toggle",title:"노래 목록","aria-expanded":m,onClick:()=>x(q=>!q),children:a.jsx(q0,{})})]}),a.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:q=>p({now:q.currentTarget.currentTime,total:q.currentTarget.duration}),onDurationChange:q=>p(J=>({...J,total:q.currentTarget.duration})),onEnded:()=>Q(c+1),onError:()=>d(!1)}),a.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[a.jsxs("div",{className:"w4d-head",children:[a.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"이(가) 만든 노래"]}),a.jsxs("span",{className:"w4d-head-n",children:[r.length,"곡"]}),a.jsx("button",{type:"button",id:"w4d-close",title:"닫기","aria-label":"닫기",onClick:()=>x(!1),children:a.jsx($0,{})})]}),a.jsx("ol",{children:r.map((q,J)=>a.jsx("li",{children:a.jsxs("button",{type:"button",className:"w4d-item","aria-current":J===c,"data-playing":J===c&&f?"1":"0",onClick:()=>Q(J),children:[a.jsxs("span",{className:"w4d-mark",children:[a.jsx("span",{className:"w4d-disc-sm"}),a.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})]}),a.Line truncated
|
||||||
|
|
||||||
|
`).trim()})]})]})}const ml={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},G0={OWNER:1,CRAWL:3,TEMPLATE:5},Vh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Vh.VERIFIED,Vh.CORRECTED];function Lp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},Bj={PUBLISHED:3};function Mn(s){return s.filter(r=>Lp(r.status)&&r.value!=null&&r.value!=="")}function Hp(s){const r=new Map;for(const c of Mn(s))r.set(c.key,c);return r}function da(s,r){const c=Hp(s).get(r);return(c==null?void 0:c.value)??void 0}function Ct(s,r){const c=Hp(s).get(r);if(!(c!=null&&c.value))return;const u=c.type==="number"?X0(c.value):c.value;return c.unit?`${u}${c.unit}`:u}function X0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(가능|여부)$/,"")||s.label}function Q0(s){return s.filter(r=>Lp(r.status)&&r.question&&r.answer).sort((r,c)=>r.sortOrder-c.sortOrder)}function xu(s){return s.map(r=>({...r,facts:Mn(r.facts)})).sort((r,c)=>r.sortOrder-c.sortOrder)}const V0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Z0(s){const r=(s??"").trim();if(!r)return;const c=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return c==null?void 0:c[1]}function K0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function J0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function F0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function I0(s,r){var p,y;const c=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(`
|
||||||
|
`).length,N=v-j.lastIndexOf(`
|
||||||
|
`);return`${w}번째 줄 ${N}번째 글자`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}번째 줄 ${d[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${c(Number(m[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],g=x?s.indexOf(x):-1;return g>=0?`${c(g+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function W0(s,r){const c=V0[s],u=(r??"").trim();if(!c||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:I0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,x=d.items;if(!Array.isArray(x))return{...dr,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const g=x.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[c]=="string"&&v[c].trim().length>0);let p=0,y=0;for(const v of g){const j=v;j.verified!=="확인"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:g,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const P0=1260,ev=60,tv="10:00",Zh=["봄","여름","가을","겨울"];function Kh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const c=Number(r[1]),u=Number(r[2]);if(!(c>23||u>59))return c*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function lv(s){const r=Kh(s.startTime??"")??Kh(tv)??600,c=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),x=Math.max(1,d.minutes??ev),g=u+m;if(g+x>P0){f+=1;continue}c.push({stop:d,time:mr(g),until:mr(g+x),move:m}),u=g+x}return{stops:c,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function av(s=new Date){const r=s.getMonth()+1,c=Math.floor((r-3+12)%12/3),u=Zh[c];return r%3===0&&s.getDate()<=15?[Zh[(c+3)%4],u]:[u]}function Jh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Fh(s,r,c){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Jh(s),[m,x,g]=Jh(r),p=(v,j)=>Math.round(v+(j-v)*c),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,x))}${y(p(d,g))}`}function nv(s){return{surface:Fh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Fh(s.bg,s.text,.2)}}const Bp={[ml.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[ml.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[ml.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[ml.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function sv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function qp(s){var r;for(const[c,u]of[["weekday_price","주중 1박"],["price","1박"],["weekend_price","주말 1박"],["peak_price","성수기 1박"]]){const f=Number((r=da(s.facts,c))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Ih=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function iv(s){return/\/p\/search\/|[?&]query=/.test(s)}function $p(s){const r=new Map(Ih.map((f,d)=>[f,d])),c=s.links.filter(f=>f.confirmed&&Ih.includes(f.channel)&&!iv(f.url)),u=c.some(f=>f.channel===it.NAVER_BOOKING);return c.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??$p(s)[0]??sv(s)[0]}function bu(s){return Mn(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const c=Ct(r,s.key);return c?s.type!=="bool"?c:/여부$/.test(s.label)?c==="true"?"있음":c==="false"?"없음":c:c==="true"?"가능":c==="false"?"불가":c:""}const rv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function cv(s){const r=new Set;return s.filter(c=>{const u=c.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function nl(s){const r=Bp[s.place.category],c=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=Ct(u.facts,"room_intro")??Ct(u.facts,"description"),d=s.place.category===ml.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unit
Line truncated
|
||||||
|
.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; }
|
||||||
|
@keyframes stay2-hero-fade {
|
||||||
|
0% { opacity: 1; }
|
||||||
|
${c(xr)} { opacity: 1; }
|
||||||
|
${c(xr+nu)} { opacity: 0; }
|
||||||
|
${c(r-nu)} { opacity: 0; }
|
||||||
|
100% { opacity: 1; }
|
||||||
|
}`}
|
||||||
|
.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
|
||||||
|
@keyframes stay2-hero-focus {
|
||||||
|
0% { opacity: 0; filter: blur(0.22em); }
|
||||||
|
40% { opacity: 1; }
|
||||||
|
100% { opacity: 1; filter: blur(0); }
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.stay2-hero-slide, .stay2-hero-focus { animation: none; }
|
||||||
|
}
|
||||||
|
`}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=W(),{place:r,narrative:c}=s,u=rt(s),f=Ke(s)[0],d=c.tagline??c.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),x=m.length<2?0:Math.min(m.length,Hv),g=f?{href:f.url,label:`${Cn(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} 보기`,external:!1}:null;return a.jsxs("section",{id:"top",className:"w-full",children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(x)}}),a.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>a.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y<x?"auto":"low",loading:y<Math.max(x,1)?void 0:"lazy",decoding:"async",width:p.width,height:p.height,className:`absolute inset-0 size-full object-cover object-center ${y<x?"stay2-hero-slide":""}`,style:{opacity:y===0?1:0,animationDelay:y<x?`-${qv(y,x)}s`:void 0}},p.mediaId)),a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 14%, transparent) 40%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 100%)"}}),a.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-48",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 68%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 40%, transparent) 45%, transparent 100%)"}}),a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(ellipse 58% 42% at 50% 52%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 38%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 18%, transparent) 55%, transparent 78%)"}}),a.jsxs("div",{className:"shell relative z-10 flex flex-col items-center pt-20 text-center",style:{textShadow:"0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)"},children:[a.jsx("h1",{className:"stay2-hero-focus serif",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.06em",lineHeight:1.25,animationDelay:"0.05s"},children:r.name}),d&&a.jsx("p",{className:"stay2-hero-focus measure mt-6 text-[length:var(--fs-lead)] font-light leading-loose opacity-100",style:{animationDelay:"0.3s"},children:a.jsx(ql,{children:d})}),g&&a.jsx("a",{href:g.href,...g.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"stay2-hero-focus tap mt-10 inline-flex items-center justify-center border border-current/70 px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-colors hover:border-current",style:{animationDelay:"0.55s",backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 22%, transparent)",boxShadow:"0 1px 6px color-mix(in srgb, var(--tpl-inverse, #1c1917) 30%, transparent)"},children:g.label})]})]})]})}function Gv(){const s=W(),{place:r,narrative:c}=s,u=Nr(s),f=Dn(s),d=Ke(s),m=Ha(s),x=m.length>0?m:bu(s).slice(0,4),g=(u==null?void 0:u.caption)??r.name;return a.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[a.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),c.heroHeadline&&a.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:c.heroHeadline}),u&&a.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[a.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),a.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:g})]}),(f||x.length>0)&&a.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&a.jsxs("div",{children:[a.jsx("dt",{className:"text-muted",children:"최저가"}),a.jsx("dd",{children:f})]}),x.map(p=>a.jsxs("div",{children:[a.jsx("dt",{className:"text-muted",children:p.label}),a.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&a.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>a.jsx("li",{children:a.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:bt(p)})},p.url))})]})}function Yv(){const s=W(),r=yu(s),c=Nr(s),u=c&&r.some(f=>f
Line truncated
|
||||||
|
`).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const x=d?`${d} ${m}`:m;if(s.measureText(x).width<=c){d=x;return}if(d&&u.push(d),s.measureText(m).width<=c){d=m;return}let g="";for(const p of m){const y=g+p;s.measureText(y).width>c&&g?(u.push(g),g=p):g=y}d=g}),d&&u.push(d)}),u}function cj(s,r,c){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=c){f=m;return}if(f&&u.push(f),s.measureText(d).width<=c){f=d;return}let x="";for(const g of d){const p=x+g;s.measureText(p).width>c&&x?(u.push(x),x=g):x=p}f=x}),f&&u.push(f),u}const oj="/v1/image/relay?url=";async function uj(s){const r=(c,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=c});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${oj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function fj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Ap(s,{photoUrl:r,text:c,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,x=fj();d.clearRect(0,0,m,m),d.fillStyle=rj,d.fillRect(0,0,m,m);const{img:g,exportable:p}=await uj(r),y=m-ht*2,v=y/1.5,j=Math.max(y/g.width,v/g.height),w=g.width*j,N=g.height*j;d.save(),d.beginPath(),d.rect(ht,ht,y,v),d.clip(),d.drawImage(g,ht+(y-w)/2,ht+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(ht+.5,ht+.5,y-1,v-1);const A=ht+v+36,H=m-ht-ou,L=dx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(H,A),d.lineTo(H,m-ht-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${x}`,d.textAlign="left",d.textBaseline="alphabetic";const Y=mx(d,`“${c.trim()||"오늘, 이 숙소에서 하루를 보냅니다."}”`,L),R=Y.slice(0,Bs);if(Y.length>Bs){let I=R[Bs-1];for(;I.length&&d.measureText(`${I}…`).width>L;)I=I.slice(0,-1);R[Bs-1]=`${I}…`}R.forEach((I,le)=>d.fillText(I,ht,A+50+le*60));const Q=H+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Q-44,A,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${x}`,d.textAlign="center",d.fillText("郵票",Q,A+46),d.fillText("10원",Q,A+78),d.save(),d.translate(Q,A+210),d.rotate(-6*Math.PI/180),d.strokeStyle=Tp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=Tp,d.font=`600 22px ${x}`;const q=cj(d,u,100).slice(0,2),J=8-(q.length-1)*26/2;q.forEach((I,le)=>d.fillText(I,0,J+le*26)),d.restore();const X=m-ht-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(ht,X-20),d.lineTo(m-ht,X-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${x}`,d.textAlign="left",d.fillText(`${u} · ${f}`,ht,X+6),p}const kp="postcard.png";function dj(){const s=W(),r=(s.media??[]).filter(R=>R.url),c=_.useRef(null),[u,f]=_.useState(0),[d,m]=_.useState(""),[x,g]=_.useState(""),[p,y]=_.useState(!1),[v,j]=_.useState(!0);_.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(_.useEffect(()=>{const R=c.current,Q=r[u];if(!R||!(Q!=null&&Q.url))return;const q=window.setTimeout(()=>{Ap(R,{photoUrl:Q.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(q)},[u,d,w,N,r]),_.useEffect(()=>{var q;const R=c.current,Q=r[u];!R||!(Q!=null&&Q.url)||!((q=document.fonts)!=null&&q.ready)||document.fonts.ready.then(()=>Ap(R,{photoUrl:Q.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function A(R){var q;const Q=(q=c.current)==null?void 0:q.getContext("2d");return Q?(Q.font="600 46px serif",mx(Q,`“${R}”`,dx()).length<=Bs):!0}function H(){return new Promise(R=>{const Q=c.current;if(!Q)return R(null);Q.toBlob(q=>R(q),"image/png",.95)})}function L(R){const Q=URL.createObjectURL(R),q=document.createElement("a");q.href=Q,q.download=kp,q.click(),URL.revokeObjectURL(Q)}async function Y(){var J,X;const R=await H();if(!R)return;const Q=((J=document.querySelector('meta[property="og:url"]'))==null?void 0:J.content)??`${location.origin}${location.pathname}`,q=new File([R],kp,{type:"image/png"});if((X=navigator.canShare)!=null&&X.call(navigator,{files:[q]})){await navigator.share({files:[q],title:`${w} 엽서`,text:Q}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} 엽서`,url:Q}).catch(()=>{}),g('이 브라우저는 사진을 같이 못 보내 링크만 보냈습니다. 사진은 "이미지로 저장" 을 눌러 주세요.');return}L(R),g("이 브라우저는 공유 시트를 못 열어 저장으로 대신했습니다.")}return a.jsx(ct,{id:"postcard-maker",title:"엽서 쓰기",lead:`${w}에서 보내는 한 장을 직접 써 봅니다. 사진을 고르고 한 마디를 적으면 그 자리에서 엽서가 되고,
Line truncated
|
||||||
|
.oasi-page main > section:not([data-oasi]) {
|
||||||
|
background-color: transparent !important;
|
||||||
|
background-image: none !important;
|
||||||
|
border-color: transparent !important;
|
||||||
|
color: var(--tpl-text) !important;
|
||||||
|
padding-block: var(--oasi-gap) 0 !important;
|
||||||
|
}
|
||||||
|
.oasi-page main > section:not([data-oasi]) .shell {
|
||||||
|
max-width: none;
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#about > .shell > .grid {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#about > .shell > .grid > * + * {
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#summary dl {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요")
|
||||||
|
*
|
||||||
|
* ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의
|
||||||
|
* ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서
|
||||||
|
* **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.**
|
||||||
|
* ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로
|
||||||
|
* 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지
|
||||||
|
* 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다.
|
||||||
|
* ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면
|
||||||
|
* 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다.
|
||||||
|
* ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다")
|
||||||
|
* 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면
|
||||||
|
* 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다.
|
||||||
|
*/
|
||||||
|
.oasi-page section#event li,
|
||||||
|
.oasi-page section#itinerary article {
|
||||||
|
background-image: none !important;
|
||||||
|
background-color: color-mix(in oklab, currentcolor 3%, transparent) !important;
|
||||||
|
border-width: 1px !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oasi-page .panel,
|
||||||
|
.oasi-page .panel-sunken {
|
||||||
|
background-color: transparent;
|
||||||
|
border-width: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oasi-page main > section#faq > .shell > div:last-of-type {
|
||||||
|
row-gap: 0;
|
||||||
|
column-gap: 2.5rem;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#faq details {
|
||||||
|
margin-block: 0;
|
||||||
|
border-top: 1px solid var(--site-line);
|
||||||
|
}
|
||||||
|
.oasi-page main > section#faq summary {
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#faq summary > span:first-child {
|
||||||
|
width: 1.125rem;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#faq summary + div {
|
||||||
|
border-top-width: 0;
|
||||||
|
padding-inline: 1.875rem 0;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oasi-page main > section#info dl.panel > div {
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#info dl > div.panel {
|
||||||
|
border-top: 1px solid var(--site-line);
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oasi-page main > section#location .panel {
|
||||||
|
border-top: 1px solid var(--site-line);
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oasi-page main > section#weather .panel {
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oasi-page main > section#guide .panel > span:last-child {
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
@media (min-width: 40rem) {
|
||||||
|
.oasi-page main > section#festival .panel > span:last-child {
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`,vj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function yj({children:s}){var y,v,j,w;const r=W(),{place:c}=r,u=rt(r),f=Ke(r)[0],d=Rn(r),m=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Ht(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var A;return N.enabled&&((A=N.name)==null?void 0:A.trim())}).map(N=>N.name.trim())].slice(0,3),g=r.narrative.tagline??r.narrative.heroSubline,p=c.roadAddress??c.address;return a.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:vj,children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:bj}}),a.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[a.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[a.jsxs("a",{href:"#top",className:"block",children:[a.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:c.name}),c.englishName&&a.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:c.englishName})]}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:a.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,A)=>a.jsx("li",{children:a.jsx("a",{href:N.href,"aria-current":A===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${A===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&a.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:bt(f)})]}),a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||g)&&a.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&a.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,A)=>a.jsxs("li",{className:"flex items-center gap-4",children:[A>0&&a.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),a.jsx("span",{children:N})]},N))}),g&&a.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:a.jsx(ql,{children:g})})]}),s]})]}),a.jsx("footer",{className:"border-line mt-auto w-full border-t",children:a.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[a.jsxs("p",{children:["[",c.name,"]"]}),d.length>0?a.jsx("ul",{className:"space-y-1",children:d.map(N=>a.jsx("li",{children:a.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Cn(N)})},N.url))}):a.jsx("span",{}),a.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&a.jsx("p",{children:p}),c.phone&&a.jsx("p",{children:a.jsx("a",{href:`tel:${c.phone}`,className:"underline underline-offset-[5px]",children:c.phone})}),c.email&&a.jsx("p",{children:c.email}),((y=c.legal)==null?void 0:y.representative)&&a.jsxs("p",{children:["대표 ",c.legal.representative]}),((v=c.legal)==null?void 0:v.businessRegistrationNumber)&&a.jsxs("p",{children:["사업자등록번호 ",c.legal.businessRegistrationNumber]}),((j=c.legal)==null?void 0:j.mailOrderNumber)&&a.jsxs("p",{children:["통신판매업신고 ",c.legal.mailOrderNumber]}),((w=c.legal)==null?void 0:w.licenseNumber)&&a.jsxs("p",{children:[c.legal.licenseLabel??"인허가번호"," ",c.legal.licenseNumber]}),a.jsxs("p",{className:"byline",children:[a.jsxs("span",{className:"author",children:["작성·운영 ",c.name]})," · 최종 업데이트: ",a.jsx("time",{dateTime:r.site.updatedAt,children:Ba(r.site.updatedAt)})]})]})]})}),a.jsx(qa,{})]})}function jj({children:s}){var j,w,N,A;const r=W(),{place:c,narrative:u,site:f}=r,d=rt(r),m=Dn(r),x=Ha(r),g=Ke(r)[0],p=gu(r),y=c.roadAddress??c.address,v=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(H=>H.show);return a.jsxs("div",{className:"flex min-h-screen w-full fl
Line truncated
|
||||||
|
.pastel-page > main > section:not([data-pastel]) {
|
||||||
|
border-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: var(--pastel-ink) !important;
|
||||||
|
}
|
||||||
|
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; }
|
||||||
|
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; }
|
||||||
|
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; }
|
||||||
|
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; }
|
||||||
|
`,Sj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function wj({children:s}){const r=W(),c=rt(r),u=Rn(r),f=[{label:"소개",href:"#about",show:Ht(r,"intro")},{label:c.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Ht(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return a.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:Sj,children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:Nj}}),a.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:a.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[a.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:a.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),a.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>a.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&a.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:a.jsx(gt,{className:"size-4"})}),u.map(d=>a.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?a.jsx(h0,{className:"size-4"}):a.jsx(hu,{className:"size-4"})},d.url)),a.jsxs("details",{className:"relative lg:hidden",children:[a.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:a.jsx(Dp,{className:"size-5"})}),a.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:a.jsx("ul",{children:f.map(d=>a.jsx("li",{children:a.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,a.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:a.jsx(nx,{})}),a.jsx(qa,{})]})}function Ej({children:s}){var p,y,v,j;const r=W(),{place:c,site:u}=r,f=Qp(),d=zj(f),m=Ke(r)[0],x=gu(r),g=c.roadAddress??c.address;return a.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[a.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:a.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[a.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:c.name}),a.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[c.phone&&a.jsx("a",{href:`tel:${c.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:c.phone}),m&&a.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:bt(m)})]})]})}),a.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&a.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:a.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return a.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[a.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),a.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),a.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children
Line truncated
|
||||||
File renamed without changes.
@@ -0,0 +1,52 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/c2ZdwhaB7S4",
|
||||||
|
"caption": "머뭄의 하루",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/_bbo3dVgOXs",
|
||||||
|
"caption": "마당과 창고형 카페 공간",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/qrCG4rOeJvs",
|
||||||
|
"caption": "밤의 머뭄",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/1baZI59P3jo",
|
||||||
|
"caption": "조용한 독채 감성 숙소",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/dM8_d6Aud68",
|
||||||
|
"caption": "사랑하는 이와의 특별한 추억",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/S-5BByzHc-8",
|
||||||
|
"caption": "바다 근처 독채에서 머물다",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/J5h6q1VU7Fc",
|
||||||
|
"caption": "함께하는 특별한 시간",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/2vzZZ0Rg7_o",
|
||||||
|
"caption": "가보면 알게 되는 이유",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/QoapnYYQ01I",
|
||||||
|
"caption": "감성 독채 펜션",
|
||||||
|
"verified": "확인"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://youtube.com/shorts/71hCLTKle0A",
|
||||||
|
"caption": "특별한 추억을",
|
||||||
|
"verified": "확인"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in new issue
Block a user