PageSourceSearch

https://bw5-app.vercel.app/_next/static/chunks/5120-9d2a346c3cdfe894.js

js bw5-app.vercel.app collected 2026-10-03 06:19:42 UTC 55,231 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5120],{10447:(e,t,a)=>{a.d(t,{JW:()=>l,XC:()=>s,_q:()=>n});function s(){{let e=new URLSearchParams(window.location.search).get("stage");if("pre"===e||"morning"===e||"open"===e||"show"===e||"closed"===e)return e}let e=Date.now();return e>=new Date("2026-05-05T18:30:00+09:00").getTime()?"closed":e>=new Date("2026-05-05T14:30:00+09:00").getTime()?"show":e>=new Date("2026-05-05T13:45:00+09:00").getTime()?"open":e>=new Date("2026-05-05T09:00:00+09:00").getTime()?"morning":"pre"}let r={pre:["merch","music","sns"],morning:["merch","music","sns","schedule","backstage"],open:["merch","music","sns","schedule","pamphlet","vote","backstage"],show:["merch","music","sns","schedule","pamphlet","vote","backstage","video"],closed:["merch","music","sns","schedule","pamphlet","vote","backstage","video"]};function l(e,t){return r[t].includes(e)}function n(e){return"open"===e||"show"===e?"during":"closed"===e?"closed":"pre"}},66070:(e,t,a)=>{a.d(t,{Qj:()=>o,R2:()=>s,dI:()=>i,pe:()=>r,r9:()=>l});let s={M3:"水 18:30",M4:"日 12:15",M5:"土 15:30",M6:"土 11:00 (隔週)",M7:"BOOM 外部レッスン",M8:"BOOM 外部レッスン",M9:"日 11:00",M10:"",M14:"日 14:00 (隔週)",M15:"日 15:00",M16:"月 18:30",M17:"BOOM 外部レッスン",M19:"日 12:45",M20:"水 20:00",M22:"金 18:30",M24:"日 14:00 (隔週)",M27:"土 16:30",M28:"金 19:30",M29:"日 13:30",M30:"日 14:00 (隔週)",M31:"",M33:"土 10:00",M35:"土 11:30",M37:"月 20:15"};function r(e){let t=e.split(":").map(Number);return new Date(Date.UTC(2026,4,5,t[0]-9,t[1],t[2]??0))}function l(e){return new Date(r(e.startTime).getTime()+1e3*e.durationSec)}function n(e,t=0){return 60*e+t}let i=[{part:1,label:"1部",startTime:"14:30"},{part:2,label:"2部",startTime:"15:45"},{part:3,label:"3部",startTime:"17:05"}],o=[{id:"M3",startTime:"14:45:35",durationSec:n(5,12),part:1,type:"performance",title:"Sunshine",subtitle:"TARO / HIPHOP 初級"},{id:"M4",startTime:"14:51:17",durationSec:n(2,54),part:1,type:"performance",title:"Best Pals",subtitle:"Ryuki / はじめての HIPHOP"},{id:"M5",startTime:"14:54:41",durationSec:n(3,6),part:1,type:"performance",title:"Waack The Soul",subtitle:"YURI / 長町 WAACK 入門"},{id:"M6",startTime:"14:58:17",durationSec:n(4,7),part:1,type:"performance",title:"Funkastic Beats",subtitle:"K@TTSU & AOI / 多賀城 HOUSE"},{id:"M7",startTime:"15:02:54",durationSec:n(2,52),part:1,type:"performance",title:"諏訪GALS!!",subtitle:"HARUKA / キッズ ガールズ"},{id:"M8",startTime:"15:06:16",durationSec:n(4,13),part:1,type:"performance",title:"Little Wave",subtitle:"TARO / 長町 キッズ HIPHOP"},{id:"M9",startTime:"15:10:59",durationSec:n(4,38),part:1,type:"performance",title:"Beat Theory",subtitle:"AOI / 多賀城 HIPHOP 初級"},{id:"M10",startTime:"15:16:07",durationSec:n(2,41),part:1,type:"performance",title:"Katrs",subtitle:"BOOM ダンス部"},{id:"M11",startTime:"15:19:18",durationSec:n(5),part:1,type:"guest",title:"ZIEL",subtitle:"GUEST"},{id:"BR1",startTime:"15:27:18",durationSec:n(17,42),part:1,type:"break",title:"休憩"},{id:"M14",startTime:"15:50:30",durationSec:n(4,22),part:2,type:"performance",title:"Teddy's Fam",subtitle:"おっちゃん / NEW JACK SWING"},{id:"M15",startTime:"15:55:22",durationSec:n(3,58),part:2,type:"performance",title:"Grown ups",subtitle:"Ryuki & TARO / ベーシックダンスクラス"},{id:"M16",startTime:"15:59:50",durationSec:n(3,56),part:2,type:"performance",title:"Focus",subtitle:"KEIKO / 多賀城 JAZZ"},{id:"M17",startTime:"16:04:16",durationSec:n(3,55),part:2,type:"performance",title:"Mini Wave",subtitle:"KOKEKO & TARO / 長町 ちびっこ HIPHOP"},{id:"M19",startTime:"16:13:41",durationSec:n(4,32),part:2,type:"performance",title:"Keep Grinding",subtitle:"AOI / 多賀城 HIPHOP 基礎"},{id:"M20",startTime:"16:18:43",durationSec:n(4,40),part:2,type:"performance",title:"Change",subtitle:"K@TTSU / K@TTSU HOUSE"},{id:"M21",startTime:"16:23:53",durationSec:n(5),part:2,type:"guest",title:"TARO & TAKE",subtitle:"GUEST"},{id:"M22",startTime:"16:29:23",durationSec:n(4,55),part:2,type:"performance",title:"7BOOM BAP C.R.E.W",subtitle:"AOI / 七ヶ浜 HIPHOP 入門"},{id:"M23",startTime:"16:34:48",durationSec:n(5),part:2,type:"guest",title:"クレアラシル",subt
1itle:"GUEST"},{id:"M24",startTime:"16:40:18",durationSec:n(4,22),part:2,type:"performance",title:"Dreamin' Smoke",subtitle:"ちゃんなつ / HIPHOP"},{id:"BR2",startTime:"16:47:40",durationSec:n(17,20),part:2,type:"break",title:"休憩"},{id:"M27",startTime:"17:10:30",durationSec:n(4,55),part:3,type:"performance",title:"Turn It Up",subtitle:"KEIKO / 長町 ガールズ 合同"},{id:"M28",startTime:"17:15:55",durationSec:n(4,56),part:3,type:"performance",title:"SEVEN BEATS",subtitle:"TARO / 七ヶ浜 HIPHOP 初級"},{id:"M29",startTime:"17:21:21",durationSec:n(3,24),part:3,type:"performance",title:"Slay Force",subtitle:"Ryuki / キッズ HIPHOP"},{id:"M30",startTime:"17:25:15",durationSec:n(3,34),part:3,type:"performance",title:"そのまま",subtitle:"SAYUKI / FREE STYLE"},{id:"M31",startTime:"17:29:19",durationSec:n(4,50),part:3,type:"special",title:"GRAFFITI",subtitle:"TARO & Ryuki / SPECIAL ナンバー"},{id:"M33",startTime:"17:39:39",durationSec:n(4,34),part:3,type:"performance",title:"Drum Line",subtitle:"TARO / キッズ 強化"},{id:"M34",startTime:"17:44:43",durationSec:n(5),part:3,type:"guest",title:"NEW STYLERS",subtitle:"GUEST"},{id:"M35",startTime:"17:50:13",durationSec:n(3,57),part:3,type:"performance",title:"full blast",subtitle:"K@TTSU / HOUSE エキスパート"},{id:"M36",startTime:"17:54:40",durationSec:n(5),part:3,type:"guest",title:"FOODIES",subtitle:"GUEST"},{id:"M37",startTime:"18:00:10",durationSec:n(5,36),part:3,type:"performance",title:"Vibrant",subtitle:"TARO / TARO HIP HOP 中級"}]},92483:(e,t,a)=>{a.d(t,{Ay:()=>k,D7:()=>E,nA:()=>P,nU:()=>w});var s=a(95155),r=a(12115),l=a(61792),n=a(93318),i=a(80642),o=a(14577),c=a(93089),d=a(16720),x=a(9005),m=a(57983),p=a(92571),u=a(5772),b=a(91683),h=a(10447);let g={フェードグレー:"#8c8c86",フェードレッド:"#c96a5a",フェードブルー:"#6a8bb3",ホワイト:"#f5f5f5",ブラック:"#1b1b1b",ブルー:"#2f5fb0",ライトグレー:"#cfcfc8",グリーン:"#6b8f6b"};function f(e,t){if(4===e)return({フェードグレー:{front:"/merch/official_grey.png",model:"/merch/official_grey_model.png"},フェードレッド:{front:"/merch/official_red.png",model:"/merch/official_red_model.png"},フェードブルー:{front:"/merch/official_blue.png",model:"/merch/official_blue_model.png"}})[t]??null;if(5===e)return({ホワイト:{front:"/merch/embroidery_white_front.webp",back:"/merch/embroidery_white_back.webp",closeup:"/merch/embroidery_white_closeup.webp"},ブラック:{front:"/merch/embroidery_black_front.webp",back:"/merch/embroidery_black_back.webp",closeup:"/merch/embroidery_black_closeup.webp"},ブルー:{front:"/merch/embroidery_blue_front.webp",back:"/merch/embroidery_blue_back.webp",closeup:"/merch/embroidery_blue_closeup.webp"}})[t]??null;if(7===e){let e={ライトグレー:"/merch/tote_lightgrey.png",グリーン:"/merch/tote_green.png"};return e[t]?{front:e[t]}:null}if(8===e){let e={KEIKO:"/merch/kirakira_keiko.png",TARO:"/merch/kirakira_taro.png","K@TTSU":"/merch/kirakira_kattsu.png",SAYUKI:"/merch/kirakira_sayuki.png",ちゃんなつ:"/merch/kirakira_channatsu.png",おっちゃん:"/merch/kirakira_occhan.png",BOOMくん:"/merch/kirakira_boomkun.png"};return e[t]?{front:e[t]}:null}return null}let y={front:"FRONT",back:"BACK",closeup:"CLOSEUP",model:"MODEL"};function j(){return(0,h._q)((0,h.XC)())}let N={pre:{cardButton:"事前予約する",modalButton:"事前予約を確定",modalSubmitting:"事前予約中...",bannerHTML:'<strong class="text-white">事前予約受付中</strong> — 発表会当日(5/5)会場の物販ブースでお受け取りです。<br />事前のお渡し・発送はございません。',modalInfoTitle:"受け取り:開場後すぐ(13:45〜14:30)",modalInfoBody:"物販ブースでお名前を伝えてお受け取りください。<br /><strong>※14:30 を過ぎると自動キャンセル</strong>となり商品は再販されます。<br />お支払いは現金・クレジットカード・PayPay 等に対応。",successMessage:"事前予約を承りました。当日 13:45〜14:30 の間に物販ブースでお受け取りください。"},during:{cardButton:"取り置きする",modalButton:"取り置きを確定",modalSubmitting:"確定中...",bannerHTML:'<strong class="text-white">ライブ取り置き受付中</strong> — お席からそのまま注文OK。お早めに物販ブースでお受け取りください。',modalInfoTitle:"受け取り:物販ブースで随時",modalInfoBody:"なるべくお早めに物販ブースでお受け取りください。<br /><strong>
1※公演終了(18:30)までに受け取りがない場合は自動キャンセル</strong>となります。<br />お支払いは現金・クレジットカード・PayPay 等に対応。",successMessage:"取り置きを承りました。物販ブースで「お名前」をお伝えください。"},closed:{cardButton:"物販ブースへ",modalButton:"物販ブースで直接購入",modalSubmitting:"—",bannerHTML:'<strong class="text-white">取り置きは終了しました</strong> — 在庫があるものは<strong class="text-white">物販ブースで直接お買い求めください</strong>。<br />売り切れ品は「追加注文(後日発送)」も引き続きご利用いただけます。',modalInfoTitle:"物販ブースで直接お買い求めください",modalInfoBody:"取り置き受付は終了しました。<br />在庫がある商品は<strong>会場の物販ブースで直接</strong>お買い求めいただけます。<br />お支払いは現金・クレジットカード・PayPay 等に対応。",successMessage:""}};function k(){let e=(0,r.useRef)(null),t=(0,l.W)(e,{once:!0,margin:"-80px"}),[a,i]=(0,r.useState)("pre");return((0,r.useEffect)(()=>{let e=()=>i(j());e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]),"closed"===a)?(0,s.jsx)(S,{}):(0,s.jsx)("section",{id:"merch",className:"py-16 px-4 sm:px-6",children:(0,s.jsxs)("div",{className:"max-w-lg mx-auto",ref:e,children:[(0,s.jsxs)(n.P.div,{className:"text-center mb-8",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6},children:[(0,s.jsx)("h2",{className:"text-3xl sm:text-4xl font-black tracking-tight gradient-text mb-3",children:"GOODS"}),(0,s.jsx)("p",{className:"text-xs text-white/60",children:"事前予約 / 当日取り置き OK・会場の物販ブースで受け取り"})]}),(0,s.jsx)(S,{})]})})}let v=new Date("2026-05-19T23:59:59+09:00");function w(){try{let e=new URLSearchParams(window.location.search);if("1"===e.get("expired"))return!0;if((e.get("late")??"").length>0)return!1}catch{}return Date.now()>v.getTime()}function S(){let[e,t]=(0,r.useState)([]),[a,l]=(0,r.useState)(null),[x,m]=(0,r.useState)(null),[p,b]=(0,r.useState)(null),[h,f]=(0,r.useState)("pre");(0,r.useEffect)(()=>{let e=()=>f(j());e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]);let y=async()=>{try{let e=await fetch("/api/merch").then(e=>e.json());t(e)}catch{}};(0,r.useEffect)(()=>{y()},[]),(0,r.useEffect)(()=>{let t=()=>{let t=e.find(e=>9===e.id);t&&b(t)};return window.addEventListener("open-video-preorder",t),()=>window.removeEventListener("open-video-preorder",t)},[e]);let k=N[h];return"closed"===h?(0,s.jsx)(s.Fragment,{children:p&&(0,s.jsx)(M,{item:p,onClose:()=>b(null)})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(P,{}),(0,s.jsxs)("div",{className:"mb-4 rounded-xl px-3 py-2.5 flex gap-2 items-start",style:{background:"during"===h?"rgba(220,76,4,0.18)":"rgba(242,122,26,0.12)",border:`1px solid ${"during"===h?"rgba(220,76,4,0.5)":"rgba(242,122,26,0.35)"}`},children:[(0,s.jsx)(o.A,{size:16,className:"flex-shrink-0 mt-0.5",style:{color:"#ffb37a"}}),(0,s.jsx)("p",{className:"text-[11px] leading-snug text-white/85",dangerouslySetInnerHTML:{__html:k.bannerHTML}})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2.5",children:e.map((e,t)=>{let a,r=9===e.id,i=r&&w(),o=(e.variants??[]).reduce((e,t)=>e+(t.stock??0),0),d=(e.variants??[]).length>0?o:e.stock??0,x=!r&&!e.purchase_at_booth&&d<=0,p=x&&8!==e.id&&!e.purchase_at_booth;return(0,s.jsxs)(n.P.div,{className:"rounded-2xl overflow-hidden",style:{background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.12)"},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:.08*t},children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{r&&!i?b(e):r||x?p&&m(e):l(e)},disabled:x&&!p&&!r||i,"aria-label":r?`${e.name} を予約`:e.purchase_at_booth?`${e.name} のデザインを見る`:`${e.name} の予約画面を開く`,className:"aspect-square relative overflow-hidden w-full block transition-transform active:scale-[0.97]",style:{background:"rgba(255,255,255,0.05)",cursor:!x||p||r?"pointer":"not-allowed"},children:[e.image_url?(0,s.jsx)(u.default,{src:e.image_url,alt:e.name,fill:!0,className:8===e.id||r?"object-contain p-2":"object-cover",sizes:"(max-width: 768px) 50vw, 200px"}):(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsx)(c.A,{size:36,className:"text-white/20"})}),x&&(0,s.jsx)("div",{className:"absolute inset-0 bg-black/55 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-white text-sm font-black tracking-widest",children:"SOLD OUT"})}),i&&(0,s.jsxs)("div",{className:"absolute inset-0 bg-black/70 flex flex-col items-center justify-center px-2 text-center",children:[(0,s.jsx)("span",{className:"text-white text-base font-black tracking-wider",children:"予約受付終了"}),(0,s.jsx)("span",{className:"text-white/80 text-[10px] mt-1",children:"5/19(火) 23:59 で締切ました"})]}),e.purchase_at_booth&&8!==e.id&&(0,s.jsx)("div",{className:"absolute top-1.5 left-1.5 px-2 py-0.5 rounded-md text-[9px] font-black",style:{background:"rgba(0,0,0,0.7)",color:"#ffd166"},children:"\uD83C\uDFEA 当日会場販売"}),r&&!i&&(0,s.jsxs)("div",{className:"absolute bottom-1.5 left-1.5 right-1.5 px-2 py-1 rounded-md text-[9px] font-black leading-tight text-center",style:{background:"linear-gradient(135deg, rgba(99,102,241,0.95), rgba(139,92,246,0.95))",color:"#fff",boxShadow:"0 2px 8px rgba(99,102,241,0.5)"},children:["今年はDVDではなく映像データ販売です",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-[8px] opacity-90",children:"予約期限: 5/19(火) 23:59 まで"})]})]}),(0,s.jsxs)("div",{className:"p-3",children:[(0,s.jsx)("h3",{className:"font-bold text-xs text-white leading-tight line-clamp-2 min-h-[2rem]",children:e.name}),(0,s.jsxs)("p",{className:"text-sm font-black text-white mt-1",children:["\xa5",e.price.toLocaleStr
1ing()]}),0===(a=Array.from(new Set((e.variants??[]).map(e=>e.color).filter(Boolean)))).length?null:(0,s.jsx)("div",{className:"flex gap-1 mt-2",children:a.map(e=>(0,s.jsx)("span",{title:e,className:"w-4 h-4 rounded-full border border-white/40",style:{background:g[e]??"#888"}},e))}),(0,s.jsx)("button",{onClick:()=>{r&&!i?b(e):r||x?p&&m(e):l(e)},disabled:x&&!p&&!r||i,className:"w-full mt-2 text-xs font-bold py-2 rounded-full transition-all",style:{background:i?"rgba(255,255,255,0.1)":x?p?"rgba(255,255,255,0.95)":"rgba(255,255,255,0.1)":"rgba(255,255,255,0.95)",color:i?"rgba(255,255,255,0.3)":x?p?"#dc4c04":"rgba(255,255,255,0.3)":"#f27a1a",cursor:(r||x)&&(!r||i)&&!p?"not-allowed":"pointer"},children:r?i?"受付終了":"予約する":x?p?"追加注文(後日発送)":"SOLD OUT":e.purchase_at_booth?"デザインを見る":k.cardButton})]})]},e.id)})}),0===e.length&&(0,s.jsxs)("div",{className:"text-center py-12 text-white/40",children:[(0,s.jsx)(d.A,{className:"mx-auto mb-3 opacity-50",size:32}),(0,s.jsx)("p",{className:"text-sm",children:"グッズ情報準備中..."})]}),(0,s.jsxs)(i.N,{children:[a&&(0,s.jsx)(_,{item:a,mode:h,onClose:()=>{l(null),y()}}),x&&(0,s.jsx)(O,{item:x,onClose:()=>m(null)}),p&&(0,s.jsx)(M,{item:p,onClose:()=>b(null)})]})]})}function T({displayImage:e,alt:t,isStickerItem:a,availableViews:r,currentView:l,onChangeView:n,colorList:i,currentColor:o,onChangeColor:c}){let d=!!(i&&i.length>1&&o&&c),x=e=>{if(d){let t=i.indexOf(o);if(t<0)return;let a=(t+e+i.length)%i.length;c(i[a]);return}if(r.length<2)return;let t=r.indexOf(l);if(t<0)return;let a=(t+e+r.length)%r.length;n(r[a])},m=(0,b.uh)({onSwipedLeft:()=>x(1),onSwipedRight:()=>x(-1),trackMouse:!0,preventScrollOnSwipe:!0,delta:30});return(0,s.jsxs)("div",{...m,className:"relative w-full aspect-square rounded-xl overflow-hidden mb-3 bg-gray-100 select-none",style:{touchAction:"pan-y"},children:[(0,s.jsx)(u.default,{src:e,alt:t,fill:!0,className:a?"object-contain p-3":"object-cover",sizes:"(max-width: 768px) 80vw, 320px",draggable:!1}),(r.length>1||d)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-1.5 px-2 py-1 rounded-full bg-black/35 backdrop-blur",children:(d?i:r).map(e=>{let t=d?e===o:e===l;return(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full transition-all",style:{background:t?"#fff":"rgba(255,255,255,0.4)"}},e)})}),(0,s.jsx)("div",{className:"absolute top-2 right-2 px-2 py-0.5 rounded-full text-[9px] font-bold bg-white/85 text-gray-700 pointer-events-none",children:"← スワイプ →"})]})]})}function _({item:e,mode:t,onClose:a}){let l=N[t],i=e.variants??[],c=i.length>0&&i.some(e=>e.color||e.size),d=(0,r.useMemo)(()=>Array.from(new Set(i.map(e=>e.color).filter(Boolean))),[i]),u=(0,r.useMemo)(()=>Array.from(new Set(i.map(e=>e.size).filter(Boolean))),[i]),[b,h]=(0,r.useState)(d[0]??""),[k,v]=(0,r.useState)(u[0]??""),[w,S]=(0,r.useState)(5===e.id?"back":"front"),[O,M]=(0,r.useState)(""),[C,A]=(0,r.useState)(""),[I,P]=(0,r.useState)("cash_onsite"),[B,E]=(0,r.useState)(!1),[L,R]=(0,r.useState)(null),H=(0,r.useMemo)(()=>c?i.find(e=>(0===d.length||e.color===b)&&(0===u.length||e.size===k))??null:i[0]??null,[i,c,d,u,b,k]),D=f(e.id,b),z=(0,r.useMemo)(()=>{if(!D)return[];let e=["front"];return D.back&&e.push("back"),D.closeup&&e.push("closeup"),D.model&&e.push("model"),e},[D]),U="model"===w&&D?.model||"closeup"===w&&D?.closeup||"back"===w&&D?.back||D?.front||e.image_url,K=!!H&&H.stock<=0,F=O.trim().length>0&&("online_square"!==I||C.trim().length>0)&&!K&&!B,$=async()=>{if(F){E(!0);try{let t={merch_id:e.id,variant_id:H?.id??null,buyer_name:O.trim(),email:C.trim(),payment_method:I},a=await fetch("/api/merch/order",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),s=await a.json();if(!a.ok)return void R({ok:!1,message:s.error??"予約に失敗しました"});
1if("online_square"===I){if(s.redirect){window.location.href=s.redirect;return}R({ok:!1,message:s.checkout_error??"オンライン決済は現在準備中です。当日現金を選んでください。"})}else{let e=N[j()];R({ok:!0,message:e.successMessage})}}catch{R({ok:!1,message:"通信エラーが発生しました"})}finally{E(!1)}}};return(0,s.jsxs)(n.P.div,{className:"fixed inset-0 z-[60] flex items-end sm:items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),(0,s.jsxs)(n.P.div,{className:"relative w-full max-w-sm rounded-2xl p-6 max-h-[90vh] overflow-y-auto",style:{background:"rgba(255,255,255,0.97)",border:"1px solid rgba(255,255,255,0.8)"},initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},children:[(0,s.jsx)("button",{onClick:a,"aria-label":"閉じる",className:"absolute top-3 right-3 z-20 w-10 h-10 rounded-full flex items-center justify-center shadow-lg transition-colors",style:{background:"rgba(255,255,255,0.95)",color:"#333",border:"1px solid rgba(0,0,0,0.08)"},children:(0,s.jsx)(x.A,{size:20})}),L?.ok?(0,s.jsxs)("div",{className:"text-center py-6 px-2",children:[(0,s.jsx)(n.P.div,{initial:{scale:0},animate:{scale:1},children:(0,s.jsx)(m.A,{size:48,className:"mx-auto mb-3 text-green-500"})}),(0,s.jsx)("p",{className:"font-bold text-gray-800",children:"during"===t?"取り置き完了!":"予約完了!"}),(0,s.jsx)("p",{className:"text-sm text-gray-600 mt-2 leading-relaxed",children:L.message}),(0,s.jsx)("button",{onClick:a,className:"mt-5 px-8 py-2.5 rounded-full text-sm font-bold text-white",style:{background:"#f27a1a"},children:"閉じる"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T,{displayImage:U,alt:e.name,isStickerItem:8===e.id,availableViews:z,currentView:w,onChangeView:S,...8===e.id?{colorList:d,currentColor:b,onChangeColor:h}:{}}),z.length>1&&(0,s.jsx)("div",{className:"flex justify-center gap-2 -mt-2 mb-3",children:z.map(e=>(0,s.jsx)("button",{onClick:()=>S(e),className:"px-3 py-1.5 rounded-full text-[10px] font-bold transition-all whitespace-nowrap",style:{background:w===e?"#f27a1a":"rgba(242,122,26,0.1)",color:w===e?"#fff":"#666",border:`1px solid ${w===e?"#f27a1a":"rgba(242,122,26,0.2)"}`},children:y[e]},e))}),(0,s.jsxs)("div",{className:"pr-6",children:[(0,s.jsx)("h3",{className:"font-bold text-base text-gray-800 leading-tight",children:e.name}),(0,s.jsxs)("p",{className:"text-lg font-black mt-1",style:{color:"#f27a1a"},children:["\xa5",e.price.toLocaleString()]})]}),e.description&&(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-4 mt-2 leading-relaxed",children:e.description}),!e.purchase_at_booth&&(0,s.jsxs)("div",{className:"rounded-lg px-3 py-2 mb-4 text-[11px] leading-snug",style:{background:"rgba(242,122,26,0.1)",color:"#a24e00",border:"1px solid rgba(242,122,26,0.25)"},children:["お受け取りは ",(0,s.jsx)("strong",{children:"発表会当日、会場の物販ブース"})," のみです(事前発送なし)。"]}),(0,s.jsxs)("div",{className:"space-y-4",children:[d.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-2 block font-semibold",children:8===e.id?"デザイン":"カラー"}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[d.map(e=>{let t=e===b,a=i.filter(t=>t.color===e).every(e=>e.stock<=0),r=g[e]??"#888";return(0,s.jsxs)("button",{onClick:()=>{a||(h(e),S("front"))},disabled:a,className:"flex items-center gap-2 pl-1.5 pr-3 py-1.5 rounded-xl text-xs font-bold transition-all",style:{background:t?"#f27a1a":a?"#eee":"#f5f5f5",color:t?"#fff":a?"#bbb":"#555",textDecoration:a?"line-through":"none",cursor:a?"not-allowed":"pointer"},children:[(0,s.jsx)("span",{className:"w-4 h-4 rounded-full border",style:{background:r,borderColor:t?"#fff":"rgba(0,0,0,0.15)"}}),e]},e)}),8===e.id&&(0,s.jsxs)("button",{onClick:()=>{h("BOOMくん"),S("front")},className:"flex items-center gap-1.5 pl-1.5 pr-3 py-1.5 rounded-xl text-xs font-bold transition-all relative",style:{background:"BOOMくん"===b?"linear-gradient(135deg, #f59e0b, #dc4c04)":"linear-gradient(135deg, #fff7ed, #ffedd5)",color:"BOOMくん"===b?"#fff":"#dc4c04",border:"1.5px solid rgba(220,76,4,0.45)"},children:[(0,s.jsx)("span",{className:"text-sm leading-none",children:"\uD83C\uDF81"}),"BOOMくん",(0,s.jsx)("span",{className:"absolute -top-2 -right-1 text-[8px] font-black px-1.5 py-0.5 rounded-full",style:{background:"#dc4c04",color:"#fff"},children:"特典"})]})]})]}),u.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-2 block font-semibold",children:"サイズ"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:u.map(e=>{let t,a=e===k,r=(t=d.length>0?i.filter(t=>t.color===b&&t.size===e):i.filter(t=>t.size===e)).length>0&&t.every(e=>e.stock<=0);return(0,s.jsx)("button",{onClick:()=>!r&&v(e),disabled:r,className:"px-3 py-2 rounded-xl text-xs font-bold transition-all min-w-[48px]",style:{background:a?"#f27a1a":r?"#eee":"#f5f5f5",color:a?"#fff":r?"#bbb":"#555",textDecoration:r?"line-through":"none",cursor:r?"not-allowed":"pointer"},children:e},e)})})]}),K&&(0,s.jsx)("p",{className:"text-xs font-bold text-red-500 text-center py-2",children:"選択中の組み合わせは売り切れです"}),e.purchase_at_booth?8===e.id&&"BOOMくん"===b?(0,s.jsxs)("div",{className:"rounded-2xl px-4 py-4 border-2",style:{background:"linear-gradient(135deg, #fff7ed 0%, #ffe4c4 100%)",borderColor:"#f27a1a"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)("span",{className:"text-xl",children:"\uD83C\uDF81"}),(0,s.jsx)("h4",{className:"text-sm font-black text-orange-600",children:"こちらは販売なし・コンプ特典です"})]}),(0,s.jsxs)("p",{className:"text-xs text-gray-700 leading-relaxed",children:["他6種(TARO / KEIKO / K@TTSU / SAYUKI / ちゃんなつ / おっちゃん)を",(0,s.jsx)("strong",{className:"text-orange-600 mx-1",children:"全種コンプリート"}),"した方限定で、BOOMくん きらきらシールを",(0,s.jsx)("strong",{className:"text-orange-600 mx-1",children:"無料プレゼント"}),"\uD83C\uDF89",(0,s.jsx)("br",{}),"物販ブースで6種を見せていただいた方に1枚お渡しします。"]})]}):8===e.id?(0,s.jsxs)("div",{className:"rounded-2xl px-4 py-4 border-2 border-dashed",style:{background:"#fff7ed",borderColor:"#f27a1a"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)("span",{className:"text-xl",children:"\uD83C\uDFEA"}),(0,s.jsx)("h4",{className:"text-sm font-black text-orange-600",children:"物販ブースで直接お買い求めください"})]}),(0,s.jsxs)("p",{className:"text-xs text-gray-700 leading-relaxed",children:["物販ブースの貯金箱に",(0,s.jsxs)("span",{className:"font-black text-orange-600 mx-1",children:["\xa5",e.price.toLocaleStr
1ing()]}),"を入れて、お好みのデザインを1枚お持ちください。",(0,s.jsx)("br",{}),"クレジットカード・PayPay 等をご希望の場合はスタッフにお声がけを\uD83C\uDFAB"]})]}):(0,s.jsxs)("div",{className:"rounded-2xl px-4 py-4 border-2 border-dashed",style:{background:"#fff7ed",borderColor:"#f27a1a"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)("span",{className:"text-xl",children:"\uD83C\uDFEA"}),(0,s.jsx)("h4",{className:"text-sm font-black text-orange-600",children:"当日 会場で販売します"})]}),(0,s.jsxs)("p",{className:"text-xs text-gray-700 leading-relaxed",children:["この商品は",(0,s.jsx)("strong",{className:"text-orange-600",children:"事前予約はありません"}),"。",(0,s.jsx)("span",{className:"block mt-1",children:"発表会当日(5/5)会場の物販ブースで直接お買い求めください。"}),(0,s.jsx)("span",{className:"block mt-1 text-[11px] text-gray-500",children:"現金・クレジットカード・PayPay 等に対応します"})]})]}):"closed"===t?(0,s.jsxs)("div",{className:"rounded-xl px-4 py-5 text-center",style:{background:"#fff7ed",border:"1px solid rgba(242,122,26,0.3)"},children:[(0,s.jsx)(o.A,{size:20,className:"mx-auto mb-2",style:{color:"#dc4c04"}}),(0,s.jsx)("p",{className:"text-sm font-black mb-2",style:{color:"#dc4c04"},children:l.modalInfoTitle}),(0,s.jsx)("div",{className:"text-[12px] leading-relaxed",style:{color:"#555"},dangerouslySetInnerHTML:{__html:l.modalInfoBody}})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"お名前"}),(0,s.jsx)("input",{type:"text",value:O,onChange:e=>M(e.target.value),className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800",placeholder:"お名前を入力"})]}),(0,s.jsxs)("div",{className:"rounded-xl px-3 py-3",style:{background:"#fff7ed",border:"1px solid rgba(242,122,26,0.3)"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(o.A,{size:16,style:{color:"#dc4c04"}}),(0,s.jsx)("span",{className:"text-xs font-black",style:{color:"#dc4c04"},children:l.modalInfoTitle})]}),(0,s.jsx)("div",{className:"text-[11px] leading-relaxed",style:{color:"#555"},dangerouslySetInnerHTML:{__html:l.modalInfoBody}})]}),L&&!L.ok&&(0,s.jsx)("div",{className:"rounded-xl bg-red-50 border border-red-200 p-3 text-xs text-red-700",children:L.message}),(0,s.jsx)("button",{onClick:$,disabled:!F,className:"w-full py-3 rounded-full text-sm font-bold text-white disabled:opacity-40 transition-all flex items-center justify-center gap-2",style:{background:"#f27a1a"},children:B?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{size:16,className:"animate-spin"}),l.modalSubmitting]}):l.modalButton})]})]})]})]})]})}function O({item:e,onClose:t}){let a,l,i=e.variants??[],o=(0,r.useMemo)(()=>Array.from(new Set(i.map(e=>e.color).filter(Boolean))),[i]),d=(0,r.useMemo)(()=>Array.from(new Set(i.map(e=>e.size).filter(Boolean))),[i]),[b,h]=(0,r.useState)(o[0]??""),[g,y]=(0,r.useState)(d[0]??""),[j,N]=(0,r.useState)(1),[k,v]=(0,r.useState)(""),[w,S]=(0,r.useState)(""),[T,_]=(0,r.useState)(""),[M,C]=(0,r.useState)(""),[A,I]=(0,r.useState)(""),[P,B]=(0,r.useState)(!1),[E,L]=(0,r.useState)(!1),[R,H]=(0,r.useState)(null),D=e.price*j,z=D+800,U=!E&&P&&k.trim().length>0&&/^\S+@\S+\.\S+$/.test(w.trim())&&T.trim().length>0&&M.trim().length>0&&A.trim().length>0&&(0===o.length||b)&&(0===d.length||g)&&j>=1,K=async()=>{if(U){L(!0),H(null);try{let t=i.find(e=>e.color===b&&e.size===g),a=await fetch("/api/restock",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merch_id:e.id,variant_id:t?.id??null,color:b,size:g,quantity:j,buyer_name:k.trim(),email:w.trim(),phone:T.trim(),postal_code:M.trim(),address:A.trim()})}),s=await a.json();if(!a.ok)return void H({ok:!1,message:s.error??"送信に失敗しました"});H({ok:!0,message:s.email_sent?`ご注文を承りました。ご入力のメールアドレス(${w.trim()})に、お振込先・お支払期限のご案内をお送りしました。届かない場合は迷惑メールフォルダもご確認ください。`:"ご注文を承りました。お振込先・お支払期限は、後日改めて 運営からメール ([email protected]) でご案内いたしますので、しばらくお待ちください。"})}catch{H({ok:!1,message:"通信エラーが発生しました"})}finally{L(!1)}}};return(0,s.jsxs)(n.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:t}),(0,s.jsxs)(n.P.div,{initial:{y:40,opacity:0},animate:{y:0,opacity:1},exit:{y:40,opacity:0},className:"relative bg-white rounded-t-3xl sm:rounded-3xl w-full sm:max-w-md max-h-[90vh] overflow-y-auto",children:[(0,s.jsx)("button",{onClick:t,className:"absolute top-3 right-3 z-10 w-9 h-9 rounded-full bg-gray-100 hover:bg-gray-200 flex items-center justify-center",children:(0,s.jsx)(x.A,{size:18})}),(0,s.jsxs)("div",{className:"p-5 pb-3",style:{background:"linear-gradient(135deg,#f27a1a,#dc4c04)"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(c.A,{size:16,className:"text-white"}),(0,s.jsx)("span",{className:"text-[11px] font-black tracking-widest text-white/90",children:"SOLD OUT — 追加注文受付"})]}),(0,s.jsx)("h3",{className:"text-lg font-black text-white leading-tight",children:e.name}),(0,s.jsx)("p",{className:"text-xs text-white/85 mt-1",children:"後日 自宅へ発送 / 銀行振込でお支払い"})]}),(a=f(e.id,b),(l=a?.model||a?.front||e.image_url)?(0,s.jsx)("div",{className:"relative w-full bg-gray-50",style:{aspectRatio:"1 / 1"},children:(0,s.jsx)(u.default,{src:l,alt:e.name,fill:!0,className:8===e.id?"object-contain p-3":"object-cover",sizes:"(max-width: 768px) 100vw, 480px"})}):null),R?.ok?(0,s.jsxs)("div",{className:"p-6 text-center",children:[(0,s.jsx)(m.A,{size:48,className:"mx-auto text-green-500 mb-3"}),(0,s.jsx)("p",{className:"font-bold text-gray-800",children:"ご注文を承りました!"}),(0,s.jsx)("p",{className:"text-xs text-gray-600 mt-2 leading-relaxed",children:R.message}),(0,s.jsx)("button",{onClick:t,className:"mt-5 px-6 py-2.5 rounded-full text-sm font-bold text-white",style:{background:"#f27a1a"},children:"閉じる"})]}):(0,s.jsxs)("div",{className:"p-5 space-y-3",children:[(0,s.jsxs)("div",{className:"rounded-xl p-3 text-[11px] leading-relaxed",style:{background:"#fff7ed",border:"1px solid rgba(242,122,26,0.3)",color:"#555"},children:[(0,s.jsx)("p",{className:"font-black text-orange-700 mb-1.5",children:"\uD83D\uDCE6 後日発送の流れ"}),(0,s.jsxs)("ol",{className:"list-decimal pl-4 space-y-0.5",children:[(0,s.jsx)("li",{children:"下記フォームでご注文"}),(0,s.jsx)("li",{children:"ご入力のメールアドレスにお振込先のご案内をお送りします"}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"2026年5月12日(火) 15:00 まで"}),"にお振り込み"]}),(0,s.jsx)("li",{children:"発表会から約2週間後 (5/19 頃) を目安にご指定の住所へ発送"})]}),(0,s.jsxs)("p",{className:"mt-2",children:["送料:",(0,s.jsxs)("strong",{children:["\xa5",800..toLocaleString()]}),"(別途加算)"]}),(0,s.jsx)("p",{className:"mt-1.5 text-[10px] text-orange-700",children:"※複数商品をご注文の場合、送料を1回分のみに調整できる場合があります。その際は別途メールで個別にご案内します。"})]}),o.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"カラー"}),(0,s.jsx)("select",{value:b,onChange:e=>h(e.target.value),className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800 bg-white",children:o.map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]}),d.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"サイズ"}),(0,s.jsx)("select",{value:g,onChange:e=>y(e.target.value),className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800 bg-white",children:d.map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"数量"}),(0,s.jsx)("input",{type:"number",min:1,max:10,inputMode:"numeric",value:j,onChange:e=>N(Math.max(1,Math.min(10,Number(e.target.value)||1))),className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800"})]}),(0,s.jsxs)("div",{className:"border-t pt-3 mt-1",children:[(0,s.jsx)("p",{className:"text-xs font-black text-gray-700 mb-2",children:"お届け先 / ご連絡先"}),(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"お名前"}),(0,s.jsx)("input",{type:"text",value:k,onChange:e=>
1v(e.target.value),placeholder:"山田 太郎",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"メールアドレス"}),(0,s.jsx)("input",{type:"email",value:w,onChange:e=>S(e.target.value),placeholder:"[email protected]",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800"}),(0,s.jsx)("p",{className:"text-[10px] text-gray-500 mt-0.5",children:"※お振込先のご案内をこちらにお送りします"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"電話番号"}),(0,s.jsx)("input",{type:"tel",value:T,onChange:e=>_(e.target.value),placeholder:"090-1234-5678",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"郵便番号"}),(0,s.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9-]*",value:M,onChange:e=>C(e.target.value),placeholder:"980-0000",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"住所"}),(0,s.jsx)("input",{type:"text",value:A,onChange:e=>I(e.target.value),placeholder:"宮城県仙台市〇〇区...",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-orange-400 focus:outline-none text-gray-800"})]})]})]}),(0,s.jsxs)("div",{className:"rounded-xl bg-gray-50 p-3 text-sm",children:[(0,s.jsxs)("div",{className:"flex justify-between text-gray-600 text-xs",children:[(0,s.jsx)("span",{children:"商品代金"}),(0,s.jsxs)("span",{children:["\xa5",D.toLocaleString()]})]}),(0,s.jsxs)("div",{className:"flex justify-between text-gray-600 text-xs mt-1",children:[(0,s.jsx)("span",{children:"送料"}),(0,s.jsxs)("span",{children:["\xa5",800..toLocaleString()]})]}),(0,s.jsxs)("div",{className:"flex justify-between font-black mt-2 pt-2 border-t border-gray-200 text-base",style:{color:"#dc4c04"},children:[(0,s.jsx)("span",{children:"合計"}),(0,s.jsxs)("span",{children:["\xa5",z.toLocaleString()]})]})]}),(0,s.jsxs)("label",{className:"flex items-start gap-2 text-xs text-gray-700 cursor-pointer select-none",children:[(0,s.jsx)("input",{type:"checkbox",checked:P,onChange:e=>B(e.target.checked),className:"mt-0.5 w-4 h-4 accent-orange-500"}),(0,s.jsxs)("span",{children:["送料 \xa5",800..toLocaleString()," の加算、5/12(火)15:00 までの銀行振込、発表会から約2週間後(5/19頃)を目安の発送に同意します。"]})]}),R&&!R.ok&&(0,s.jsx)("div",{className:"rounded-xl bg-red-50 border border-red-200 p-3 text-xs text-red-700",children:R.message}),(0,s.jsx)("button",{onClick:K,disabled:!U,className:"w-full py-3 rounded-full text-sm font-bold text-white disabled:opacity-40 transition-all flex items-center justify-center gap-2",style:{background:"#dc4c04"},children:E?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{size:16,className:"animate-spin"}),"送信中..."]}):"注文を確定する"})]})]})]})}function M({item:e,onClose:t}){let[a,l]=(0,r.useState)(""),[i,o]=(0,r.useState)(""),[d,u]=(0,r.useState)(""),[b,h]=(0,r.useState)(!1),[g,f]=(0,r.useState)(!1),[y,j]=(0,r.useState)(null),N=!g&&b&&a.trim().length>0&&/^\S+@\S+\.\S+$/.test(i.trim())&&d.trim().length>0,k=async()=>{if(N){f(!0),j(null);try{let t="";try{t=new URLSearchParams(window.location.search).get("late")??""}catch{}let s=await fetch("/api/video-preorder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merch_id:e.id,buyer_name:a.trim(),email:i.trim(),phone:d.trim(),...t?{bypass:t}:{}})}),r=await s.json();if(!s.ok)return void j({ok:!1,message:r.error??"送信に失敗しました"});j({ok:!0,message:r.email_sent?`お申込ありがとうございます!編集完成後(5月下旬予定)にご入力のメールアドレス(${i.trim()})へ販売サイトのご案内をお送りします。お支払いはその時で大丈夫でã
1™ã€‚`:"お申込ありがとうございます!編集完成後(5月下旬予定)にご案内メールをお送りします。お支払いはその時で大丈夫です。"})}catch{j({ok:!1,message:"通信エラーが発生しました"})}finally{f(!1)}}};return(0,s.jsxs)(n.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:t}),(0,s.jsxs)(n.P.div,{initial:{y:40,opacity:0},animate:{y:0,opacity:1},exit:{y:40,opacity:0},className:"relative bg-white rounded-t-3xl sm:rounded-3xl w-full sm:max-w-md max-h-[90vh] overflow-y-auto",children:[(0,s.jsx)("button",{onClick:t,className:"absolute top-3 right-3 z-10 w-9 h-9 rounded-full bg-gray-100 hover:bg-gray-200 flex items-center justify-center",children:(0,s.jsx)(x.A,{size:18})}),(0,s.jsxs)("div",{className:"p-5 pb-3",style:{background:"linear-gradient(135deg,#6366f1,#8b5cf6)"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(c.A,{size:16,className:"text-white"}),(0,s.jsx)("span",{className:"text-[11px] font-black tracking-widest text-white/90",children:"VIDEO 事前予約"})]}),(0,s.jsx)("h3",{className:"text-lg font-black text-white leading-tight",children:e.name}),(0,s.jsx)("div",{className:"mt-2 inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-black",style:{background:"rgba(255,255,255,0.95)",color:"#6366f1"},children:(0,s.jsxs)("span",{children:["\xa5",e.price.toLocaleString()," (お支払いは後日)"]})})]}),y?.ok?(0,s.jsxs)("div",{className:"p-6 text-center",children:[(0,s.jsx)(m.A,{size:48,className:"mx-auto text-green-500 mb-3"}),(0,s.jsx)("p",{className:"font-bold text-gray-800",children:"事前予約を承りました!"}),(0,s.jsx)("p",{className:"text-xs text-gray-600 mt-2 leading-relaxed",children:y.message}),(0,s.jsx)("button",{onClick:t,className:"mt-5 px-6 py-2.5 rounded-full text-sm font-bold text-white",style:{background:"#6366f1"},children:"閉じる"})]}):(0,s.jsxs)("div",{className:"p-5 space-y-3",children:[(0,s.jsxs)("div",{className:"rounded-xl p-3 text-[12px] leading-relaxed",style:{background:"#f5f3ff",border:"1px solid rgba(99,102,241,0.3)",color:"#555"},children:[(0,s.jsx)("p",{className:"font-black text-purple-700 mb-1.5",children:"\uD83D\uDCF9 流れ"}),(0,s.jsxs)("ol",{className:"list-decimal pl-4 space-y-0.5",children:[(0,s.jsx)("li",{children:"このフォームでご予約(無料)"}),(0,s.jsx)("li",{children:"5月下旬頃に販売サイトのご案内メール"}),(0,s.jsx)("li",{children:"その時に \xa53,000 でご購入 → 視聴/ダウンロード"})]}),(0,s.jsx)("p",{className:"mt-1.5 text-[11px]",children:"受付期限: 5/19(火) 23:59"})]}),(0,s.jsxs)("div",{className:"rounded-xl p-3 text-[11px] leading-relaxed",style:{background:"#eff6ff",border:"1px solid rgba(59,130,246,0.3)",color:"#1e3a8a"},children:[(0,s.jsx)("p",{className:"font-bold mb-1",children:"\uD83D\uDCF1 視聴方法について"}),(0,s.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,s.jsxs)("li",{children:["お手持ちの",(0,s.jsx)("strong",{children:"スマートフォン・タブレット・PC"}),"にダウンロードしてご視聴いただけます"]}),(0,s.jsxs)("li",{children:["テレビに繋いで(HDMI/AirPlay/Chromecast等)",(0,s.jsx)("strong",{children:"大画面でも"}),"お楽しみいただけます"]}),(0,s.jsx)("li",{children:"購入後は何度でも視聴可能です"})]})]}),(0,s.jsxs)("div",{className:"rounded-xl p-3 text-[11px] leading-relaxed",style:{background:"#fef2f2",border:"1px solid rgba(220,76,4,0.3)",color:"#7f1d1d"},children:[(0,s.jsx)("p",{className:"font-bold mb-1",children:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC67 ご家族間での共有について"}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"同居のご家族間での共有はOK"}),"です。ご家族みんなで思い出を振り返ってください。",(0,s.jsx)("br",{}),"ただし、SNS投稿や動画サイトへのアップロードなど",(0,s.jsx)("strong",{children:"外部への流出はご遠慮ください"}),"。",(0,s.jsx)("br",{}),(0,s.jsxs)("span",{className:"block mt-1.5",children:["ご親戚の方・遠方のご祖父母様など ",(0,s.jsx)("strong",{children:"別世帯の方"})," にもご覧いただきたい場合は、 お手数ですが ",(0,s.jsx)("strong",{children:"別途データをご購入"})," いただけると大変助かります \uD83D\uDE4F"]}),(0,s.jsx)("span",{className:"block mt-1.5 text-[10px] opacity-80",children:"※映像にはウォーターマーク(電子透かし)と購入者識別情報が埋め込まれており、外部流出時に追跡可能な仕組ã
1¿ã§ã™ã€‚出演者・関係者のプライバシー保護にご協力をお願いいたします。"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"お名前"}),(0,s.jsx)("input",{type:"text",value:a,onChange:e=>l(e.target.value),placeholder:"山田 太郎",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-purple-400 focus:outline-none text-gray-800"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"メールアドレス"}),(0,s.jsx)("input",{type:"email",value:i,onChange:e=>o(e.target.value),placeholder:"[email protected]",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-purple-400 focus:outline-none text-gray-800"}),(0,s.jsx)("p",{className:"text-[10px] text-gray-500 mt-0.5",children:"※販売サイトのご案内をこちらにお送りします"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 mb-1 block font-semibold",children:"電話番号"}),(0,s.jsx)("input",{type:"tel",value:d,onChange:e=>u(e.target.value),placeholder:"090-1234-5678",className:"w-full px-3 py-2.5 rounded-xl text-sm border border-gray-200 focus:border-purple-400 focus:outline-none text-gray-800"})]}),(0,s.jsxs)("label",{className:"flex items-start gap-2 text-xs text-gray-700 cursor-pointer select-none pt-1",children:[(0,s.jsx)("input",{type:"checkbox",checked:b,onChange:e=>h(e.target.checked),className:"mt-0.5 w-4 h-4 accent-purple-500"}),(0,s.jsx)("span",{children:"同居家族以外への共有・SNS等への転載をしないこと、ウォーターマーク(電子透かし)処理に同意します。"})]}),y&&!y.ok&&(0,s.jsx)("div",{className:"rounded-xl bg-red-50 border border-red-200 p-3 text-xs text-red-700",children:y.message}),(0,s.jsx)("button",{onClick:k,disabled:!N,className:"w-full py-3 rounded-full text-sm font-bold text-white disabled:opacity-40 transition-all flex items-center justify-center gap-2",style:{background:"#6366f1"},children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{size:16,className:"animate-spin"}),"送信中..."]}):"予約する (5/19まで)"})]})]})]})}let C=[/^BW5/i,/BW5/i,/^BOOM\s*シグネチャー/i,/^(BM|<BM>)\s*フェルト/i,/シグネチャーTシャツ/i,/フェルトロゴキャップ/i,/ミニトート/i,/きらきらシール/i,/キラキラシール/i,/BOOM\s*WOP/i];function A(e){return C.some(t=>t.test(e))}let I=new Set([0x8959a5d]);function P(){let[e,t]=(0,r.useState)([]),[a,l]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{fetch("/api/base-products").then(e=>e.ok?e.json():null).then(e=>{if(e?.products){let a=e.products.filter(e=>!I.has(e.item_id));a.sort((e,t)=>{let a=A(e.title),s=A(t.title);return a&&!s?-1:!a&&s?1:0}),t(a)}}).catch(()=>{}).finally(()=>l(!0))},[]),!a)return(0,s.jsx)("div",{className:"mb-5 rounded-2xl overflow-hidden animate-pulse",style:{background:"linear-gradient(135deg, rgba(220,76,4,0.10), rgba(242,122,26,0.05))",border:"1px solid rgba(242,122,26,0.30)",minHeight:"260px"}});let n="https://nitroash.thebase.in/categories/7331140?openExternalBrowser=1",i=e=>e?e.includes("?")?`${e}&openExternalBrowser=1`:`${e}?openExternalBrowser=1`:e;return 0===e.length?(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"block mb-4 rounded-2xl overflow-hidden",style:{background:"linear-gradient(135deg, rgba(220,76,4,0.25), rgba(242,122,26,0.15))",border:"1px solid rgba(242,122,26,0.5)"},children:(0,s.jsxs)("div",{className:"px-4 py-3 flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center text-2xl",style:{background:"rgba(255,255,255,0.1)"},children:"\uD83D\uDECD"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("div",{className:"text-[10px] tracking-widest text-white/70 uppercase font-bold",children:"ONLINE STORE"}),(0,s.jsx)("div",{className:"text-sm font-black text-white",children:"BW5 特集ページで継続販売中"}),(0,s.jsx)("div",{className:"text-[10px] text-white/60 mt-0.5",children:"再販・追加販売はこちらから"})]}),(0,s.jsx)("div",{className:"text-white/70",children:"→"})]})}):(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsxs)("div",{className:"rounded-2xl overflow-hidden",style:{background:"linear-gradient(135deg, rgba(220,76,4,0.20), rgba(242,122,26,0.10))",border:"1px solid rgba(242,122,26,0.5)"},children:[(0,s.jsx)("div",{className:"px-4 pt-3 pb-2 flex items-center gap-2",children:(0,s.jsx)("div",{className:"text-[10px] tracking-widest text-orange-200/90 font-bold",children:"\uD83D\uDECD NITROASH STORE — BW5 + アーカイブ"})}),(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer external",onClick:e=>{e.preventDefault(),window.open(n,"_blank","noopener,noreferrer")},className:"block mx-3 mb-3 rounded-xl overflow-hidden",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10))",border:"1px solid rgba(255,255,255,0.30)"},children:(0,s.jsxs)("div",{className:"px-3 py-2.5 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-lg",children:"\uD83D\uDCE6"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"text-[12px] font-black text-white",children:"まとめて買うなら BW5 特集ページ"}),(0,s.jsx)("div",{className:"text-[10px] text-white/70 mt-0.5",children:"複数商品を一度にカートへ・送料節約"})]}),(0,s.jsx)("div",{className:"text-white text-base",children:"→"})]})}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 px-3 pb-3",children:e.map(e=>(0,s.jsxs)("a",{href:i(e.url),target:"_blank",rel:"noopener noreferrer external",onClick:t=>{t.preventDefault(),window.open(i(e.url),"_blank","noopener,noreferrer")},className:"block rounded-xl overflow-hidden bg-white/5 border border-white/10 hover:bg-white/10 transition-colors",children:[(0,s.jsxs)("div",{className:"relative w-full",style:{aspectRatio:"1 / 1",background:"rgba(0,0,0,0.3)"},children:[e.image_url?(0,s.jsx)("img",{src:e.image_url,alt:e.title,className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center text-3xl",children:"\uD83D\uDECD"}),e.sold_out&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/55",children:(0,s.jsx)("span",{className:"text-xs font-black text-white tracking-widest",children:"SOLD OUT"})}),e.on_sale&&!e.sold_out&&(0,s.jsx)("span",{className:"absolute top-1.5 left-1.5 text-[9px] font-black tracking-wider px-1.5 py-0.5 rounded",style:{background:"linear-gradient(135deg, #ef4444 0%, #f97316 100%)",color:"white",boxShadow:"0 2px 6px rgba(239,68,68,0.5)"},children:"SALE"})]}),(0,s.jsxs)("div",{className:"px-2.5 py-2",children:[(0,s.jsx)("div",{className:"text-[11px] font-bold text-white truncate",children:e.title}),(0,s.jsxs)("div",{className:"flex items-center justify-between mt-1",children:[(0,s.jsx)("span",{className:"text-[12px] font-black text-orange-300 flex items-baseline gap-1",children:e.on_sale&&e.proper_price?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"text-[10px] text-white/40 line-through font-normal",children:["\xa5",e.proper_price.toLocaleStr
1ing()]}),(0,s.jsxs)("span",{children:["\xa5",e.price.toLocaleString()]})]}):(0,s.jsxs)("span",{children:["\xa5",e.price.toLocaleString()]})}),!e.sold_out&&(0,s.jsx)("span",{className:"text-[9px] px-1.5 py-0.5 rounded-full font-bold",style:{background:"rgba(255,255,255,0.15)",color:"white"},children:"購入する →"})]})]})]},e.item_id))})]})})}let B=new Date("2026-05-19T23:59:00+09:00").getTime();function E(){let[e,t]=(0,r.useState)(null),[a,l]=(0,r.useState)(!1),[n,i]=(0,r.useState)(Date.now());if((0,r.useEffect)(()=>{fetch("/api/base-products").then(e=>e.ok?e.json():null).then(e=>{if(!e?.products)return;let a=e.products.find(e=>0x8959a5d===e.item_id);a&&t(a)}).catch(()=>{}).finally(()=>l(!0))},[]),(0,r.useEffect)(()=>{let e=setInterval(()=>i(Date.now()),6e4);return()=>clearInterval(e)},[]),!a)return(0,s.jsx)("div",{className:"rounded-2xl overflow-hidden relative animate-pulse",style:{background:"linear-gradient(135deg, rgba(31,41,55,0.6) 0%, rgba(75,85,99,0.4) 100%)",minHeight:"165px",border:"1px solid rgba(255,255,255,0.10)"}});if(!e)return null;let o=!1;try{o="1"===new URLSearchParams(window.location.search).get("expired")}catch{}let c=o||B<=n,d=`${e.url}${e.url.includes("?")?"&":"?"}openExternalBrowser=1`;return(0,s.jsxs)("a",{href:d,target:"_blank",rel:"noopener noreferrer external",onClick:e=>{e.preventDefault(),window.open(d,"_blank","noopener,noreferrer")},className:"block rounded-2xl overflow-hidden relative",style:{background:"linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%)",boxShadow:"0 8px 24px rgba(31,41,55,0.45), 0 4px 8px rgba(0,0,0,0.30)",border:"1px solid rgba(255,255,255,0.10)"},children:[(0,s.jsx)("div",{className:"absolute top-0 left-0 right-0",style:{height:"3px",background:"linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #f59e0b 100%)"}}),(0,s.jsxs)("div",{className:"relative flex items-stretch",children:[(0,s.jsxs)("div",{className:"flex-1 px-4 pt-4 pb-4 min-w-0",children:[(0,s.jsx)("div",{className:"text-[9px] tracking-[0.25em] text-orange-300 font-bold mb-1",children:"MADE TO ORDER \xb7 受注販売"}),(0,s.jsxs)("div",{className:"text-[18px] font-black text-white leading-tight mb-0.5",children:["オフィシャルT",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-white",children:"[フェードグレー]"})]}),(0,s.jsx)("div",{className:"inline-block text-[9px] font-black px-2 py-0.5 rounded mb-1.5",style:{background:"linear-gradient(90deg, #f59e0b, #ef4444)",color:"#fff",letterSpacing:"0.05em"},children:"\uD83D\uDD25 イントラ着用カラー"}),(0,s.jsxs)("div",{className:"text-[10px] text-white/85 mb-2 leading-snug",children:["\xa53,500 / S・M・L・XL・XXL",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-orange-300",children:"5月末〜6月頭お渡し"})]}),(0,s.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-[11px] font-black",style:{background:c?"#6b7280":"#fff",color:c?"#fff":"#dc2626",boxShadow:"0 2px 8px rgba(0,0,0,0.20)"},children:[(0,s.jsx)("span",{children:"⏰"}),(0,s.jsx)("span",{children:c?"受付終了":`5/19締切 \xb7 ${function(e){let t=B-e;if(t<=0)return"受付終了";let a=Math.floor(t/864e5),s=Math.floor(t%864e5/36e5);return a>0?`あと ${a}日${s>0?` ${s}時間`:""}`:`あと ${s}時間`}(n)}`})]})]}),(0,s.jsx)("div",{className:"relative shrink-0 self-stretch",style:{width:"115px"},children:(0,s.jsx)("img",{src:"/merch/official_grey.png",alt:"BW5 オフィシャルTシャツ フェードグレー",className:"absolute",style:{right:"-8px",top:"50%",transform:"translateY(-50%) rotate(3deg)",width:"130px",height:"auto",filter:"drop-shadow(0 8px 14px rgba(0,0,0,0.5)) drop-shadow(0 3px 5px rgba(245,158,11,0.25))"}})})]})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.