PageSourceSearch

https://anime-kings-raid.com/_next/static/chunks/8395-9797d802bbf03a06.js?dpl=dpl_8iWLMMwdGYsYNLKrz74LQKBTL8JR

js anime-kings-raid.com collected 2026-10-02 05:56:09 UTC 322,208 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8395],{1412:(e,t,a)=>{a.d(t,{CategorySelectField:()=>s});var r=a(95155),l=a(12115);function s(e){let{value:t,onChange:a}=e,[s,o]=(0,l.useState)([]),[n,i]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{let e=!0;return fetch("/api/editor/articles?mode=categories").then(e=>e.ok?e.json():{categories:[]}).then(t=>{e&&o(Array.isArray(t.categories)?t.categories:[])}).catch(()=>{e&&o([])}).finally(()=>{e&&i(!1)}),()=>{e=!1}},[]),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{fontSize:"12px",fontWeight:600,color:"#374151",marginBottom:"4px",display:"block"},children:"Category"}),(0,r.jsxs)("select",{value:t||"",onChange:e=>a(e.target.value),style:{width:"100%",padding:"7px 10px",fontSize:"13px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:[(0,r.jsx)("option",{value:"",children:n?"Loading categories…":"— Select a category —"}),s.map(e=>(0,r.jsx)("option",{value:e.japanese,children:e.japanese},e.id)),t&&!s.some(e=>e.japanese===t)&&(0,r.jsx)("option",{value:t,children:t})]})]})}},1734:(e,t,a)=>{a.d(t,{ComparisonTable:()=>u});var r=a(95155),l=a(12115),s=a(39347),o=a(90368),n=a(27937),i=a(52619),d=a.n(i),c=a(69656);let x={default:{headerBg:"bg-white",headerLabel:"bg-brand-bg text-text-secondary",rankBadge:e=>1===e?"bg-brand-primary text-white":2===e?"bg-brand-action text-white":3===e?"bg-brand-accent text-text-primary":"bg-brand-bg text-text-secondary",starFill:"fill-brand-primary text-brand-primary",starEmpty:"text-brand-accent",attrLabelBg:"bg-brand-bg/80",evenRow:"bg-white",oddRow:"bg-brand-bg/50",rowBorder:"border-brand-accent/20",cellText:"text-text-primary",ctaBtn:"bg-brand-primary text-white hover:bg-brand-action",paginationActive:"bg-brand-primary text-white",paginationInactive:"bg-brand-bg text-text-secondary hover:bg-brand-accent",outerBorder:"border border-brand-accent/40"},cards:{headerBg:"bg-gradient-to-b from-orange-50 to-white",headerLabel:"bg-slate-50 text-slate-600",rankBadge:e=>1===e?"bg-gradient-to-br from-orange-500 to-red-500 text-white":2===e?"bg-gradient-to-br from-amber-400 to-orange-400 text-white":3===e?"bg-gradient-to-br from-yellow-300 to-amber-300 text-amber-900":"bg-orange-50 text-orange-600",starFill:"fill-orange-400 text-orange-400",starEmpty:"text-orange-200",attrLabelBg:"bg-slate-50/90",evenRow:"bg-white",oddRow:"bg-orange-50/30",rowBorder:"border-orange-100",cellText:"text-slate-700",ctaBtn:"bg-gradient-to-r from-orange-500 to-red-500 text-white hover:from-orange-600 hover:to-red-600 shadow-lg shadow-orange-500/20",paginationActive:"bg-orange-500 text-white",paginationInactive:"bg-orange-50 text-orange-600 hover:bg-orange-100",outerBorder:"border border-orange-200 shadow-sm"},compact:{headerBg:"bg-white",headerLabel:"bg-slate-800 text-slate-200",rankBadge:e=>1===e?"bg-slate-800 text-amber-300":2===e?"bg-slate-600 text-slate-100":3===e?"bg-slate-400 text-white":"bg-slate-100 text-slate-500",starFill:"fill-amber-400 text-amber-400",starEmpty:"text-slate-200",attrLabelBg:"bg-slate-800 text-white",evenRow:"bg-white",oddRow:"bg-slate-50",rowBorder:"border-slate-100",cellText:"text-slate-600",ctaBtn:"bg-emerald-600 text-white hover:bg-emerald-700 shadow-md shadow-emerald-600/20",paginationActive:"bg-slate-800 text-white",paginationInactive:"bg-slate-100 text-slate-600 hover:bg-slate-200",outerBorder:"border border-slate-200 shadow-sm ring-1 ring-slate-100"},ocean:{headerBg:"bg-gradient-to-b from-blue-50 to-white",headerLabel:"bg-blue-50 text-blue-700",rankBadge:e=>1===e?"bg-gradient-to-br from-blue-600 to-indigo-600 text-white":2===e?"bg-gradient-to-br from-cyan-500 to-blue-500 text-white":3===e?"bg-gradient-to-br from-sky-400 to-cyan-400 text-white":"bg-blue-50 text-blue-600",starFill:"fill-blue-500 text-blue-500",starEmpty:"text-blue-200",attrLabelBg:"bg-blue-50/90",evenRow:"bg-white",oddRow:"bg-blue-50/30",rowBorder:"border-blue-100",cellText:"text-slate-700",ctaBtn:"bg-gradient-to-r from-blue-600 to-indigo-600 text-white hover:from-blue-700 hover:to-indigo-700 shadow-lg shadow-blue-600/20",paginationActive:"bg-blue-600 text-white",paginationInactive:"bg-blue-50 text-blue-600 hover:bg-blue-100",outerBorder:"border border-blue-200 shadow-sm"},forest:{headerBg:"bg-gradient-to-b from-emerald-50 to-white",headerLabel:"bg-emerald-50 text-emerald-700",rankBadge:e=>e<=3?"bg-gradient-to-r from-emerald-500 to-teal-500 text-white":"bg-emerald-100 text-emerald-700",starFill:"fill-emerald-400 text-emerald-400",starEmpty:"fill-slate-200 text-slate-200",attrLabelBg:"bg-emerald-50/50",evenRow:"bg-white",oddRow:"bg-emerald-50/30",rowBorder:"border-b border-emerald-100",cellText:"text-slate-700",ctaBtn:"bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white shadow-sm",paginationActive:"bg-emerald-600 text-white",paginationInactive:"bg-emerald-50 text-emerald-600 hover:bg-emerald-100",outerBorder:"border border-emerald-200 shadow-sm"}};function m(e){let{rating:t,t:a}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[[1,2,3,4,5].map(e=>(0,r.jsx)(s.A,{className:"w-3.5 h-3.5 ".concat(e<=Math.round(t)?a.starFill:a.starEmpty)},e)),(0,r.jsx)("span",{className:"ml-1 text-xs font-semibold text-text-primary",children:t})]})}function u(e){let{sectionTitle:t,sectionSubtitle:a,attributes:s,items:i,itemsPerPage:u=5,theme:g="default",openInNewTab:b="new",relAttribute:p="sponsored",anchorId:h=""}=e,[f,v]=(0,l.useState)(0),y=x[g]||x.default,w=(0,c.u)({openInNewTab:b,relAttribute:p}),j=s&&s.length>0?s:[],N=(i&&i.length>0?i:[]).map(e=>{var t;return{...e,name:(null==(t=e.name)?void 0:t.trim())||"未登録アイテム"}}),k=Math.ceil(N.length/u),C=N.slice(f*u,(f+1)*u),A=k>
11;return 0===j.length||0===N.length?(0,r.jsx)("section",{id:h||void 0,className:"w-full py-12 md:py-16 scroll-mt-24",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[t&&(0,r.jsx)("h2",{className:"text-2xl font-bold text-text-primary mb-4",children:t}),(0,r.jsx)("div",{className:"text-center py-8 text-text-secondary italic border border-brand-accent/30 rounded-xl",children:"比較データを追加してください"})]})}):(0,r.jsx)("section",{id:h||void 0,className:"w-full py-12 md:py-16 scroll-mt-24",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"mb-6 flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-text-primary",children:t}),a&&(0,r.jsx)("p",{className:"mt-2 text-text-secondary",children:a})]}),A&&(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("span",{className:"text-sm text-text-secondary",children:[f+1," / ",k]}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)("button",{onClick:()=>v(Math.max(0,f-1)),disabled:0===f,className:"p-2 rounded-lg border border-slate-200 hover:bg-slate-50 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:(0,r.jsx)(o.A,{className:"w-4 h-4 text-text-primary"})}),(0,r.jsx)("button",{onClick:()=>v(Math.min(k-1,f+1)),disabled:f>=k-1,className:"p-2 rounded-lg border border-slate-200 hover:bg-slate-50 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:(0,r.jsx)(n.A,{className:"w-4 h-4 text-text-primary"})})]})]})]}),(0,r.jsx)("div",{className:"".concat(y.outerBorder," rounded-xl overflow-x-auto"),children:(0,r.jsxs)("table",{className:"w-full min-w-[800px]",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b ".concat(y.rowBorder),children:[(0,r.jsx)("th",{className:"w-48 p-4 ".concat(y.headerLabel," text-left text-xs font-semibold uppercase tracking-wider sticky left-0 z-10")}),C.map(e=>(0,r.jsx)("th",{className:"p-4 ".concat(y.headerBg," text-center min-w-[180px]"),children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,r.jsx)("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full text-xs font-bold ".concat(y.rankBadge(e.rank)),children:e.rank}),e.logo?(0,r.jsx)("div",{className:"w-16 h-16 rounded-lg border border-slate-200 flex items-center justify-center bg-white overflow-hidden",children:(0,r.jsx)("img",{src:e.logo,alt:e.name,className:"w-14 h-14 object-contain"})}):(0,r.jsx)("div",{className:"w-16 h-16 rounded-lg bg-slate-100 flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-lg font-bold text-slate-500",children:(e.name||"?").charAt(0)})}),(0,r.jsx)("span",{className:"text-sm font-bold text-text-primary",children:e.name}),(0,r.jsx)(m,{rating:e.rating,t:y})]})},e.name))]})}),(0,r.jsxs)("tbody",{children:[j.map((e,t)=>{let a="attr".concat(t+1);return(0,r.jsxs)("tr",{className:"border-b ".concat(y.rowBorder," ").concat(t%2==0?y.evenRow:y.oddRow),children:[(0,r.jsx)("td",{className:"p-4 text-sm font-semibold text-text-primary ".concat(y.attrLabelBg," sticky left-0 z-10 border-r ").concat(y.rowBorder),children:e.label}),C.map(e=>(0,r.jsx)("td",{className:"p-4 text-center text-sm ".concat(y.cellText),children:e[a]||"-"},"".concat(e.name,"-attr").concat(t)))]},t)}),(0,r.jsxs)("tr",{className:y.oddRow,children:[(0,r.jsx)("td",{className:"p-4 ".concat(y.attrLabelBg," sticky left-0 z-10 border-r ").concat(y.rowBorder)}),C.map(e=>(0,r.jsx)("td",{className:"p-4 text-center",children:(0,r.jsx)(d(),{href:e.ctaUrl||"#",...w,className:"inline-block px-5 py-2.5 font-semibold rounded-lg transition-all duration-200 text-sm ".concat(y.ctaBtn),children:e.ctaText})},"".concat(e.name,"-cta")))]})]})]})}),A&&(0,r.jsx)("div",{className:"flex items-center justify-center gap-2 mt-4",children:Array.from({length:k}).map((e,t)=>(0,r.jsx)("button",{onClick:()=>v(t),className:"w-8 h-8 rounded-lg text-sm font-medium transition-colors ".concat(f===t?y.paginationActive:y.paginationInactive),children:t+1},t))})]})})}},2814:(e,t,a)=>{a.d(t,{ReviewSection:()=>u});var r=a(95155),l=a(42529),s=a(78874),o=a(17666),n=a(93499),i=a(52619),d=a.n(i),c=a(69656),x=a(57667);let m={default:{card:"bg-white rounded-2xl border border-brand-accent/40 shadow-sm",headerBg:"px-6 py-4 border-b border-brand-accent/20 bg-brand-bg/30",headerText:"text-text-primary",rankColor:"text-brand-primary",specTableBorder:"border-brand-accent/30",specRowEven:"bg-white",specRowOdd:"bg-brand-bg/50",specLabelBg:"bg-brand-bg/60",specHighlight:"font-bold text-brand-primary",prosHeader:"bg-brand-primary text-white",prosBg:"bg-brand-primary/5 border-brand-primary/20",prosIcon:"text-brand-primary",consHeader:"bg-brand-action text-white",consBg:"bg-brand-accent/20 border-brand-accent/40",consIcon:"text-text-secondary",editorialBg:"bg-brand-bg border-brand-accent/40",editorialBorder:"",editorialIcon:"text-brand-primary",primaryCta:"bg-brand-primary text-white hover:bg-brand-action shadow-md",secondaryCta:"bg-white text-brand-primary border-2 border-brand-primary hover:bg-brand-bg",logoFallbackBg:"bg-brand-primary/10",logoFallbackText:"text-brand-primary"},magazine:{card:"bg-white rounded-2xl border border-orange-200 shadow-sm hover:shadow-lg transition-shadow",headerBg:"px-6 py-4 border-b border-orange-100 bg-gradient-to-r from-orange-50 to-red-50",headerText:"text-slate-800",rankColor:"text-orange-600",specTableBorder:"border-orange-200",specRowEven:"bg-white",specRowOdd:"bg-orange-50/40",specLabelBg:"bg-orange-50/80",specHighlight:"font-bold text-orange-600",prosHeader:"bg-gradient-to-r from-emerald-500 to-teal-500 text-white",prosBg:"bg-emerald-50 border-emerald-200",prosIcon:"text-emerald-500",consHeader:"bg-gradient-to-r from-red-400 to-pink-400 text-white",consBg:"bg-red-50 border-red-200",consIcon:"text-red-400",editorialBg:"bg-gradient-to-r from-amber-50 to-orange-50 border-orange-200",editorialBorder:"",editorialIcon:"text-amber-500",primaryCta:"bg-gradient-to-r from-orange-500 to-red-500 text-white hover:from-orange-600 hover:to-red-600 shadow-lg shadow-orange-500/20",secondaryCta:"bg-white text-orange-600 border-2 border-orange-300 hover:bg-orange-50",logoFallbackBg:"bg-orange-50",logoFallbackText:"text-orange-600"},compact:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm ring-1 ring-slate-100",headerBg:"px-6 py-4 border-b border-slate-200 bg-slate-50",headerText:"text-slate-800",rankColor:"text-slate-500",specTableBorder:"border-slate-200",specRowEven:"bg-white",specRowOdd:"bg-slate-50",specLabelBg:"bg-slate-50",specHighlight:"font-bold text-emerald-600",prosHeader:"bg-slate-800 text-white",prosBg:"bg-emerald-50/50 border-emerald-200",prosIcon:"text-emerald-500",consHeader:"bg-slate-600 text-white",consBg:"bg-red-50/50 border-red-200",consIcon:"text-red-400",editorialBg:"bg-slate-50 border-slate-200",editorialBorder:"",editorialIcon:"text-slate-600",primaryCta:"bg-emerald-600 text-white hover:bg-emerald-700 shadow-md shadow-emerald-600/20",secondaryCta:"bg-white text-slate-700 border-2 border-slate-300 hover:bg-slate-50",logoFallbackBg:"bg-slate-100",logoFallbackText:"text-slate-600"},ocean:{card:"bg-white rounded-2xl border border-blue-200 shadow-sm hover:shadow-lg transition-shadow",headerBg:"px-6 py-4 border-b border-blue-100 bg-gradient-to-r from-blue-50 to-indigo-50",headerText:"text-slate-800",rankColor:"text-blue-600",specTableBorder:"border-blue-200",specRowEven:"bg-white",specRowOdd:"bg-blue-50/40",specLabelBg:"bg-blue-50/80",specHighlight:"font-bold text-blue-600",prosHeader:"bg-gradient-to-r from-blue-500 to-indigo-500 text-white",prosBg:"bg-blue-50 border-blue-200",prosIcon:"text-blue-500",consHeader:"bg-gradient-to-r from-red-400 to-pink-400 text-white",consBg:"bg-red-50 border-red-200",consIcon:"text-red-400",editorialBg:"bg-gradient-to-r from-blue-50 to-indigo-50 border-blue-200",editorialBorder:"",editorialIcon:"text-blue-500",primaryCta:"bg-gradient-to-r from-blue-600 to-indigo-600 text-white hover:from-blue-700 hover:to-indigo-700 shadow-lg shadow-blue-600/20",secondaryCta:"bg-white text-blue-600 border-2 border-blue-300 hover:bg-blue-50",logoFallbackBg:"bg-blue-50",logoFallbackText:"text-blue-600"},forest:{card:"bg-white rounded-2xl border border-emerald-200 shadow-sm hover:shadow-lg transition-shadow",headerBg:"px-6 py-4 border-b border-emerald-100 bg-gradient-to-r from-emerald-50 to-teal-50",headerText:"text-slate-800",rankColor:"text-emerald-600",specTableBorder:"border-emerald-200",specRowEven:"bg-white",specRowOdd:"bg-emerald-50/40",specLabelBg:"bg-emerald-50/80",specHighlight:"font-bold text-emerald-600",prosHeader:"bg-gradient-to-r from-emerald-500 to-teal-500 text-white",prosBg:"bg-emerald-50 border-emerald-200",prosIcon:"text-emerald-500",consHeader:"bg-gradient-to-r from-amber-500 to-orange-500 text-white",consBg:"bg-amber-50 border-amber-200",consIcon:"text-amber-500",editorialBg:"bg-gradient-to-r from-emerald-50 to-teal-50 border-emerald-200",editorialBorder:"",editorialIcon:"text-emerald-500",primaryCta:"bg-gradient-to-r from-emerald-600 to-teal-600 text-white hover:from-emerald-700 hover:to-teal-700 shadow-lg shadow-emerald-600/20",secondaryCta:"bg-white text-emerald-600 border-2 border-emerald-300 hover:bg-emerald-50",logoFallbackBg:"bg-emerald-50",logoFallbackText:"text-emerald-600"}};function u(e){let{sectionTitle:t,sectionSubtitle:a,items:i,theme:u="default",openInNewTab:g="new",relAttribute:b="sponsored",anchorId:p=""}=e,h=i&&i.length>0?i:[],f=m[u]||m.default,v=(0,c.u)({openInNewTab:g,relAttribute:b});return(0,r.jsx)("section",{id:p||void 0,className:"w-full py-12 md:py-16 scroll-mt-24",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[t&&(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-text-primary",children:t}),a&&(0,r.jsx)("p",{className:"mt-2 text-text-secondary",children:a})]}),0===h.length?(0,r.jsx)("div",{className:"text-center py-8 text-text-secondary italic"}):(0,r.jsx)("div",{className:"space-y-10",children:h.map((e,t)=>{let a=(0,x.FF)(e.specs),i=(0,x.Li)(e.pros),c=(0,x.Li)(e.cons);return(0,r.jsxs)("article",{className:"".concat(f.card," overflow-hidden"),children:[(0,r.jsx)("div",{className:f.headerBg,children:(0,r.jsxs)("h3",{className:"text-lg font-bold ".concat(f.headerText),children:[(0,r.jsxs)("span",{className:f.rankColor,children:["#",e.rank," "]}),e.name||""]})}),(0,r.jsxs)("div",{className:"p-6",children:[(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 mb-8",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:e.logo?(0,r.jsx)("div",{className:"w-40 h-32 rounded-xl border border-slate-200 bg-white flex items-center justify-center overflow-hidden",children:(0,r.jsx)("img",{src:e.logo,alt:e.name||"",className:"w-36 h-28 object-contain"})}):(0,r.jsx)("div",{className:"w-40 h-32 rounded-xl ".concat(f.logoFallbackBg," flex items-center justify-center"),children:(0,r.jsx)("span",{className:"text-3xl font-bold ".concat(f.logoFallbackText),children:(e.name||"??").slice(0,2)})})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h4",{className:"font-bold text-text-primary text-lg mb-2",children:e.tagline||""}),(0,r.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:e.description||""})]})]}),a.length>0&&(0,r.jsx)("div",{className:"overflow-hidden rounded-lg border ".concat(f.specTableBorder," mb-8"),children:(0,r.jsx)("table",{className:"w-full text-sm",children:(0,r.jsx)("tbody",{children:a.map((e,t)=>(0,r.jsxs)("tr",{className:"".concat(t%2==0?f.specRowEven:f.specRowOdd," border-b ").concat(f.specTableBorder," last:border-0"),children:[(0,r.jsx)("td",{className:"px-5 py-3 font-semibold text-text-primary ".concat(f.specLabelBg," w-1/3 border-r ").concat(f.specTableBorder," text-center"),children:e.label}),(0,r.jsx)("td",{className:"px-5 py-3 ".concat(e.highlight?f.specHighlight:"text-text-primary"),children:e.value})]},t))})})}),(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-4 mb-8",children:[i.length>0&&(0,r.jsxs)("div",{className:"rounded-xl overflow-hidden border ".concat(f.prosBg),children:[(0,r.jsx)("div",{className:"".concat(f.prosHeader," text-center py-2 text-sm font-bold"),children:"メリット"}),(0,r.jsx)("div",{className:"p-4 space-y-2",children:i.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 text-sm text-text-primary",children:[(0,r.jsx)(l.A,{className:"w-4 h-4 ".concat(f.prosIcon," flex-shrink-0 mt-0.5")}),e]},t))})]}),c.length>0&&(0,r.jsxs)("div",{className:"rounded-xl overflow-hidden border ".concat(f.consBg),children:[(0,r.jsx)("div",{className:"".concat(f.consHeader," text-center py-2 text-sm font-bold"),children:"デメリット"}),(0,r.jsx)("div",{className:"p-4 space-y-2",children:c.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 text-sm text-text-primary",children:[(0,r.jsx)(s.A,{className:"w-4 h-4 ".concat(f.consIcon," flex-shrink-0 mt-0.5")}),e]},t))})]})]}),e.editorialSummary&&(0,r.jsx)("div",{className:"".concat(f.editorialBg," rounded-xl border p-5 mb-8"),children:(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.A,{className:"w-5 h-5 ".concat(f.editorialIcon," flex-shrink-0 mt-0.5")}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h5",{className:"font-bold text-text-primary mb-1",children:"編集部コメント"}),(0,r.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:e.editorialSummary})]})]})}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 max-w-md mx-auto",children:[e.primaryCtaText&&(0,r.jsx)(d(),{href:e.primaryCtaUrl||"#",...v,className:"flex items-center justify-center gap-2 w-full py-3.5 font-bold rounded-xl transition-all duration-200 text-sm ".concat(f.primaryCta),children:e.primaryCtaText}),e.secondaryCtaText&&(0,r.jsxs)(d(),{href:e.secondaryCtaUrl||"#",...v,className:"flex items-center justify-center gap-2 w-full py-3.5 font-bold rounded-xl transition-all duration-200 text-sm ".concat(f.secondaryCta),children:[e.secondaryCtaText,(0,r.jsx)(n.A,{className:"w-4 h-4"})]})]})]})]},"review-".concat(t))})})]})})}},9429:(e,t,a)=>{a.d(t,{ProcessSteps:()=>o});var r=a(95155),l=a(54148);let s={default:{card:"bg-white rounded-xl border border-brand-accent/40 p-6",cardHover:"hover:shadow-lg hover:border-brand-primary/30",numberBadge:"bg-brand-primary/10 text-brand-primary",numberBadgeHover:"group-hover:bg-brand-primary group-hover:text-white",iconColor:"text-brand-primary",connector:!1,connectorColor:""},timeline:{card:"bg-white rounded-xl border border-slate-200 p-6 shadow-sm",cardHover:"hover:shadow-lg hover:border-indigo-300",numberBadge:"bg-indigo-600 text-white ring-4 ring-indigo-100",numberBadgeHover:"group-hover:ring-indigo-200 group-hover:bg-indigo-700",iconColor:"text-indigo-500",connector:!0,connectorColor:"bg-indigo-200"},gradient:{card:"bg-gradient-to-br from-white to-orange-50/40 rounded-xl border border-orange-200/60 p-6 shadow-sm",cardHover:"hover:shadow-lg hover:border-orange-300 hover:from-white hover:to-orange-50/80",numberBadge:"bg-gradient-to-br from-orange-500 to-red-500 text-white shadow-lg shadow-orange-500/20",numberBadgeHover:"group-hover:shadow-xl group-hover:shadow-orange-500/30",iconColor:"text-orange-500",connector:!0,connectorColor:"bg-gradient-to-b from-orange-300 to-red-300"},ocean:{card:"bg-gradient-to-br from-white to-blue-50/40 rounded-xl border border-blue-200/60 p-6 shadow-sm",cardHover:"hover:shadow-lg hover:border-blue-300 hover:from-white hover:to-blue-50/80",numberBadge:"bg-gradient-to-br from-blue-600 to-indigo-600 text-white shadow-lg shadow-blue-600/20",numberBadgeHover:"group-hover:shadow-xl group-hover:shadow-blue-600/30",iconColor:"text-blue-500",connector:!0,connectorColor:"bg-gradient-to-b from-blue-300 to-indigo-300"},forest:{card:"bg-gradient-to-br from-white to-emerald-50/40 rounded-xl border border-emerald-200/60 p-6 shadow-sm",cardHover:"hover:shadow-lg hover:border-emerald-300 hover:from-white hover:to-emerald-50/80",numberBadge:"bg-gradient-to-br from-emerald-600 to-teal-600 text-white shadow-lg shadow-emerald-600/20",numberBadgeHover:"group-hover:shadow-xl group-hover:shadow-emerald-600/30
1",iconColor:"text-emerald-500",connector:!0,connectorColor:"bg-gradient-to-b from-emerald-300 to-teal-300"}};function o(e){let{sectionTitle:t,sectionSubtitle:a,steps:o,columns:n=3,theme:i="default",anchorId:d=""}=e,c=o&&o.length>0?o:[],x=s[i]||s.default;return(0,r.jsx)("section",{id:d||void 0,className:"w-full py-12 md:py-16 scroll-mt-24",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"text-center mb-10",children:[(0,r.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-text-primary",children:t}),a&&(0,r.jsx)("p",{className:"mt-3 text-text-secondary max-w-2xl mx-auto",children:a})]}),0===c.length?(0,r.jsx)("div",{className:"text-center py-8 text-text-secondary italic",children:"Add steps using the editor panel →"}):(0,r.jsx)("div",{className:"grid grid-cols-1 ".concat(2===n?"md:grid-cols-2":4===n?"md:grid-cols-2 lg:grid-cols-4":"md:grid-cols-2 lg:grid-cols-3"," gap-6"),children:c.map((e,t)=>{let a=(0,l.qz)(e.icon);return(0,r.jsxs)("div",{className:"group relative ".concat(x.card," ").concat(x.cardHover," transition-all duration-300"),children:[x.connector&&t<c.length-1&&(0,r.jsx)("div",{className:"hidden lg:block absolute top-6 -right-3 w-6 h-0.5 ".concat(x.connectorColor)}),(0,r.jsxs)("div",{className:"flex items-start gap-4",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)("span",{className:"flex items-center justify-center w-12 h-12 rounded-xl font-bold text-lg transition-all duration-300 ".concat(x.numberBadge," ").concat(x.numberBadgeHover),children:e.number||String(t+1).padStart(2,"0")})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,r.jsx)(a,{className:"w-4 h-4 ".concat(x.iconColor," flex-shrink-0")}),(0,r.jsx)("h3",{className:"font-bold text-text-primary text-base",children:e.title})]}),(0,r.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:e.description})]})]})]},t)})})]})})}},12711:(e,t,a)=>{a.d(t,{NewsletterInline:()=>d});var r=a(95155),l=a(12115),s=a(18085),o=a(42529),n=a(35299),i=a(6132);function d(e){let{title:t="メールで最新情報をお届け",description:a="新着記事やお役立ち情報を配信中。",buttonText:d="登録",theme:c="default"}=e,[x,m]=(0,l.useState)(""),[u,g]=(0,l.useState)("idle"),[b,p]=(0,l.useState)(""),h={default:{bg:"bg-brand-primary/5",border:"border-brand-primary/20",text:"text-text-primary",btn:"bg-brand-primary text-white",input:"border-border/30"},warm:{bg:"bg-orange-50",border:"border-orange-200",text:"text-slate-800",btn:"bg-orange-500 text-white",input:"border-orange-200"},professional:{bg:"bg-slate-800",border:"border-slate-700",text:"text-white",btn:"bg-white text-slate-900",input:"border-slate-600 bg-slate-700 text-white"},ocean:{bg:"bg-blue-50",border:"border-blue-200",text:"text-slate-800",btn:"bg-blue-500 text-white",input:"border-blue-200"},forest:{bg:"bg-emerald-50",border:"border-emerald-200",text:"text-slate-800",btn:"bg-emerald-500 text-white",input:"border-emerald-200"}},f=h[c]||h.default,v=async e=>{if(e.preventDefault(),x.trim()){g("loading");try{let e=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x.trim()})}),t=await e.json();t.success?(g("success"),p("登録完了!"),m("")):t.alreadyExists?(g("error"),p("既に登録済みです")):(g("error"),p("登録に失敗しました"))}catch(e){g("error"),p("エラーが発生しました")}}};return(0,r.jsx)("section",{className:"w-full py-6",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"".concat(f.bg," border ").concat(f.border," rounded-xl p-4 sm:p-5"),children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)(s.A,{className:"w-4 h-4 ".concat("professional"===c?"text-blue-400":"text-brand-primary"," shrink-0")}),(0,r.jsx)("h3",{className:"font-bold text-sm ".concat(f.text),children:t})]}),(0,r.jsx)("p",{className:"text-xs ".concat("professional"===c?"text-slate-400":"text-text-secondary"),children:a})]}),"success"===u?(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-emerald-600 text-sm font-medium shrink-0",children:[(0,r.jsx)(o.A,{className:"w-4 h-4"})," ",b]}):(0,r.jsxs)("form",{onSubmit:v,className:"flex gap-2 shrink-0",children:[(0,r.jsx)("input",{type:"email",value:x,onChange:e=>m(e.target.value),placeholder:"メールアドレス",required:!0,className:"px-3 py-2 rounded-lg border ".concat(f.input," text-sm w-48 focus:outline-none focus:ring-1 focus:ring-brand-primary")}),(0,r.jsx)("button",{type:"submit",disabled:"loading"===u,className:"px-4 py-2 rounded-lg text-sm font-semibold ".concat(f.btn," transition-colors disabled:opacity-50 flex items-center gap-1.5"),children:"loading"===u?(0,r.jsx)(n.A,{className:"w-3.5 h-3.5 animate-spin"}):d})]})]}),"error"===u&&(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-red-500 text-xs mt-2",children:[(0,r.jsx)(i.A,{className:"w-3.5 h-3.5"})," ",b]})]})})})}},14292:(e,t,a)=>{a.d(t,{NewsletterSection:()=>n});var r=a(95155),l=a(12115),s=a(97003),o=a(35299);function n(e){let{title:t="anime-kings-raid.com の最新ニュースをお届け",description:a="『KING'S RAID』アニメ解説やキンスレ最強キャラ育成ガイド、話題の異世界アニメ・ヒロイン特集、アニメスロットの新台情報を無料配信中!",placeholder:n="メールアドレスを入力",buttonText:i="無料で登録する"}=e,[d,c]=l.useState(""),[x,m]=l.useState(!1),[u,g]=l.useState(null),b=async e=>{if(e.preventDefault(),g(null),!d||!d.includes("@"))return void g({type:"error",text:"有効なメールアドレスを入力してください。"});m(!0);try{let e=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})}
1),t=await e.json();e.ok&&t.success?(g({type:"success",text:"ご登録ありがとうございます!最新情報を楽しみにお待ちください。"}),c("")):g({type:"error",text:t.error||"登録に失敗しました。もう一度お試しください。"})}catch(e){g({type:"error",text:"通信エラーが発生しました。ネットワーク接続を確認してください。"})}finally{m(!1)}};return(0,r.jsx)("section",{className:"py-16 md:py-20 bg-[#F1F5F9] border-y border-[#E2E8F0] mt-8",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"max-w-2xl mx-auto text-center",children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-[#0F172A]",children:t}),(0,r.jsx)("p",{className:"text-base md:text-lg text-[#475569] mb-8 leading-[1.8]",children:a}),(0,r.jsxs)("form",{onSubmit:b,className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[(0,r.jsx)("input",{type:"email",value:d,onChange:e=>c(e.target.value),placeholder:n,disabled:x,className:"flex-1 h-12 px-4 rounded-xl border border-[#E2E8F0] bg-white text-[#0F172A] placeholder:text-[#475569]/60 focus:outline-none focus:border-[#0284C7] focus:ring-1 focus:ring-[#0284C7] transition-all disabled:opacity-50 disabled:cursor-not-allowed","aria-label":n}),(0,r.jsx)(s.$,{type:"submit",size:"lg",disabled:x,className:"bg-[#0284C7] hover:bg-[#0369A1] text-white font-bold px-8 rounded-xl shadow-sm transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:x?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{className:"h-4 w-4 animate-spin mr-2"}),"送信中..."]}):i})]}),u&&(0,r.jsx)("div",{className:"p-4 rounded-xl text-sm ".concat("success"===u.type?"bg-blue-100 text-blue-900 border border-blue-300":"bg-red-50 text-red-800 border border-red-200"),role:"alert",children:u.text})]})]})})})}},20724:(e,t,a)=>{a.d(t,{ArticlePickerField:()=>o});var r=a(95155),l=a(12115);let s=[{slug:"kyushu-camping-family-guide",title:"【2026年最新】福岡・九州で家族と楽しむ絶景ファミリーキャンプ場おすすめ5選",category:"キャンプ場選び"},{slug:"river-play-safety-tips",title:"子どもと安全に楽しむ川遊びスポットと絶対に準備すべき安全装備リスト",category:"川遊び・釣り"},{slug:"bonfire-bbq-beginner-guide",title:"手ぶらでOK!初めての焚き火&BBQで失敗しない道具と場所の選び方",category:"焚き火BBQ"},{slug:"forest-trekking-kyushu-kids",title:"小学生と一緒に登れる!九州の初心者向け絶景森林トレッキングコース",category:"森林トレッキング"},{slug:"fishing-family-spot-guide",title:"家族でハゼ・サビキ釣り!初心者におすすめの安全な防波堤スポット",category:"川遊び・釣り"},{slug:"tent-setup-easy-guide",title:"パパママ必見!ワンタッチテントとドームテントの選び方と簡単な設営手順",category:"キャンプ場選び"}];function o(e){let{value:t,onChange:a,categoryName:o,autoLabel:n="latest articles"}=e,i=Array.isArray(t)?t:[],[d,c]=(0,l.useState)([]),[x,m]=(0,l.useState)(!0);(0,l.useEffect)(()=>{let e=!0,t=o?"/api/editor/articles?mode=category&category=".concat(encodeURIComponent(o),"&count=50"):"/api/editor/articles?mode=latest&count=50";return m(!0),fetch(t).then(e=>e.ok?e.json():{articles:[]}).then(t=>{e&&c((Array.isArray(t.articles)&&t.articles.length>0?t.articles:s).map(e=>({slug:e.slug,title:e.title,category:e.category})))}).catch(()=>{e&&c(s)}).finally(()=>{e&&m(!1)}),()=>{e=!1}},[o]);let u=e=>{var t;return(null==(t=d.find(t=>t.slug===e))?void 0:t.title)||e},g=(e,t)=>{let r=e+t;if(r<0||r>=i.length)return;let l=[...i];[l[e],l[r]]=[l[r],l[e]],a(l)};return(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:{fontSize:"12px",fontWeight:600,color:"#374151",marginBottom:"4px",display:"block"},children:"Articles (Pick & Reorder)"}),(0,r.jsx)("div",{style:{fontSize:"11px",color:0===i.length?"#059669":"#7c3aed",fontWeight:600,marginBottom:"6px"},children:0===i.length?"⚡ Auto — showing ".concat(n):"✋ Manual — showing your ".concat(i.length," selected article").concat(i.length>
11?"s":""," in order")}),i.map((e,t)=>(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"5px 8px",marginBottom:"4px",background:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:"6px"},children:[(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)("button",{type:"button",onClick:()=>g(t,-1),disabled:0===t,style:{fontSize:"9px",border:"none",background:"none",cursor:0===t?"default":"pointer",color:0===t?"#d1d5db":"#6b7280",padding:"0 3px"},children:"▲"}),(0,r.jsx)("button",{type:"button",onClick:()=>g(t,1),disabled:t===i.length-1,style:{fontSize:"9px",border:"none",background:"none",cursor:t===i.length-1?"default":"pointer",color:t===i.length-1?"#d1d5db":"#6b7280",padding:"0 3px"},children:"▼"})]}),(0,r.jsxs)("span",{style:{flex:1,fontSize:"12px",color:"#374151",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:u(e),children:[t+1,". ",u(e)]}),(0,r.jsx)("button",{type:"button",onClick:()=>a(i.filter(t=>t!==e)),title:"Remove",style:{fontSize:"12px",border:"none",background:"none",cursor:"pointer",color:"#ef4444",padding:"2px"},children:"✕"})]},e)),(0,r.jsxs)("select",{value:"",onChange:e=>{var t;(t=e.target.value)&&!i.includes(t)&&a([...i,t]),e.target.value=""},style:{width:"100%",padding:"6px 8px",fontSize:"12px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",cursor:"pointer",marginTop:"2px"},children:[(0,r.jsx)("option",{value:"",children:x?"Loading articles…":"+ Add an article…"}),d.filter(e=>!i.includes(e.slug)).map(e=>(0,r.jsxs)("option",{value:e.slug,children:[e.title,e.category?"(".concat(e.category,")"):""]},e.slug))]}),i.length>0&&(0,r.jsx)("button",{type:"button",onClick:()=>a([]),style:{marginTop:"6px",fontSize:"11px",color:"#059669",background:"none",border:"none",cursor:"pointer",fontWeight:600,padding:0},children:"↺ Reset to Auto (latest)"})]})}},25016:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(2821),l=a(75889);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,l.QP)((0,r.$)(t))}},26244:(e,t,a)=>{a.d(t,{Newsletter:()=>d});var r=a(95155),l=a(12115),s=a(23664),o=a(42529),n=a(35299),i=a(6132);function d(e){let{title:t="ニュースレターに登録",subtitle:a="最新の記事やお得な情報をメールでお届けします。",placeholderText:d="メールアドレスを入力",buttonText:c="登録する",theme:x="default",anchorId:m=""}=e,[u,g]=(0,l.useState)(""),[b,p]=(0,l.useState)("idle"),[h,f]=(0,l.useState)(""),v={default:{bg:"bg-gradient-to-br from-brand-primary/5 to-brand-accent/10",card:"bg-brand-card border border-border/20",input:"bg-white border-border/30 text-text-primary placeholder:text-text-secondary focus:ring-brand-primary",btn:"bg-brand-primary hover:bg-brand-primary/90 text-white",text:"text-text-primary",sub:"text-text-secondary"},warm:{bg:"bg-gradient-to-br from-orange-50 to-amber-50",card:"bg-white border border-orange-200",input:"bg-orange-50/50 border-orange-200 text-slate-800 placeholder:text-slate-400 focus:ring-orange-500",btn:"bg-orange-500 hover:bg-orange-600 text-white",text:"text-slate-800",sub:"text-slate-500"},professional:{bg:"bg-gradient-to-br from-slate-800 to-slate-900",card:"bg-slate-800/50 border border-slate-700",input:"bg-slate-700 border-slate-600 text-white placeholder:text-slate-400 focus:ring-blue-400",btn:"bg-white hover:bg-slate-100 text-slate-900",text:"text-white",sub:"text-slate-300"},ocean:{bg:"bg-gradient-to-br from-blue-50 to-indigo-50",card:"bg-white border border-blue-200",input:"bg-blue-50/50 border-blue-200 text-slate-800 placeholder:text-slate-400 focus:ring-blue-500",btn:"bg-blue-500 hover:bg-blue-600 text-white",text:"text-slate-800",sub:"text-slate-500"},forest:{bg:"bg-gradient-to-br from-emerald-50 to-teal-50",card:"bg-white border border-emerald-200",input:"bg-emerald-50/50 border-emerald-200 text-slate-800 placeholder:text-slate-400 focus:ring-emerald-500",btn:"bg-emerald-500 hover:bg-emerald-600 text-white",text:"text-slate-800",sub:"text-slate-500"}},y=v[x]||v.default,w=async e=>{if(e.preventDefault(),u.trim()){p("loading");try{let e=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u.trim()})}
1),t=await e.json();t.success?(p("success"),f("登録ありがとうございます!"),g("")):t.alreadyExists?(p("error"),f("このメールアドレスは既に登録されています。")):(p("error"),f("登録に失敗しました。もう一度お試しください。"))}catch(e){p("error"),f("エラーが発生しました。もう一度お試しください。")}}};return(0,r.jsx)("section",{id:m||void 0,className:"w-full py-12 ".concat(y.bg," scroll-mt-24"),children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"".concat(y.card," rounded-2xl p-8 sm:p-10 shadow-sm text-center"),children:[(0,r.jsx)("div",{className:"flex justify-center mb-4",children:(0,r.jsx)("div",{className:"w-14 h-14 rounded-full ".concat("professional"===x?"bg-slate-700":"bg-brand-primary/10"," flex items-center justify-center"),children:(0,r.jsx)(s.A,{className:"w-7 h-7 ".concat("professional"===x?"text-blue-400":"text-brand-primary")})})}),(0,r.jsx)("h2",{className:"text-2xl font-bold mb-2 ".concat(y.text),children:t}),(0,r.jsx)("p",{className:"text-sm mb-6 max-w-md mx-auto ".concat(y.sub),children:a}),"success"===b?(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 text-emerald-600 font-medium py-4",children:[(0,r.jsx)(o.A,{className:"w-5 h-5"}),(0,r.jsx)("span",{children:h})]}):(0,r.jsxs)("form",{onSubmit:w,className:"flex flex-col sm:flex-row gap-3 max-w-lg mx-auto",children:[(0,r.jsx)("input",{type:"email",value:u,onChange:e=>g(e.target.value),placeholder:d,required:!0,className:"flex-1 px-4 py-3 rounded-xl border ".concat(y.input," focus:outline-none focus:ring-2 transition-colors text-sm")}),(0,r.jsx)("button",{type:"submit",disabled:"loading"===b,className:"px-6 py-3 rounded-xl font-semibold text-sm ".concat(y.btn," transition-colors disabled:opacity-50 flex items-center justify-center gap-2 shrink-0"),children:"loading"===b?(0,r.jsx)(n.A,{className:"w-4 h-4 animate-spin"}):c})]}),"error"===b&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 text-red-500 text-sm mt-3",children:[(0,r.jsx)(i.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:h})]})]})})})}},27091:(e,t,a)=>{a.d(t,{SiteCategorySectionEditor:()=>c});var r=a(95155),l=a(12115),s=a(52619),o=a.n(s),n=a(50944),i=a(27937);function d(e){let{categoryName:t,categorySlug:a,articles:l}=e,s=l.slice(0,4);return 0===s.length?null:(0,r.jsx)("section",{className:"py-12 md:py-16 bg-white",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,r.jsx)("h2",{className:"text-2xl md:text-3xl font-semibold text-[#2D2D2D]",children:t}),(0,r.jsxs)(o(),{href:"/".concat(a),className:"flex items-center gap-1 text-sm md:text-base font-bold text-[#E06D3B] hover:text-[#2D5A27] transition-colors group",children:[(0,r.jsx)("span",{children:"もっと見る"}),(0,r.jsx)(i.A,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:s.map((e,t)=>(0,r.jsx)(n.ArticleCard,{article:e,priority:t<4},e.slug))})]})})}function c(e){let{categoryName:t="",articles:a}=e,[s,o]=(0,l.useState)(null),n=(a||[]).join(",");return((0,l.useEffect)(()=>{if(!t)return void o({articles:[],categorySlug:""});let e=!0;return o(null),(async()=>{try{let a=await fetch("/api/editor/articles?mode=category&category=".concat(encodeURIComponent(t),"&count=4")),r=a.ok?await a.json():{articles:[],categorySlug:""},l=Array.isArray(r.articles)?r.articles:[];if(n){let e=await fetch("/api/editor/articles?mode=bySlugs&slugs=".concat(encodeURIComponent(n))),t=e.ok?await e.json():{articles:[]};l=Array.isArray(t.articles)?t.articles:[]}if(!e)return;o({articles:l.map(e=>({...e,publicationDate:e.publicationDate?new Date(e.publicationDate):null})),categorySlug:r.categorySlug||""})}catch(t){e&&o({articles:[],categorySlug:""})}})(),()=>{e=!1}},[t,n]),null===s)?(0,r.jsx)("section",{className:"py-12 bg-white",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)("div",{className:"h-8 bg-slate-200 rounded w-1/4 mb-6 animate-pulse"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[1,2,3,4].map(e=>(0,r.jsx)("div",{className:"aspect-[4/3] bg-slate-200 rounded-xl animate-pulse"},e))})]})}):t?0===s.articles.length?(0,r.jsx)("section",{className:"py-12 bg-white",children:(0,r.jsxs)("div",{className:"container text-center text-slate-400",children:[(0,r.jsx)("p",{className:"text-lg font-bold",children:t}),(0,r.jsx)("p",{className:"text-sm mt-1",children:"No articles in this category yet."})]})}):(0,r.jsx)(d,{categoryName:t,categorySlug:s.categorySlug,articles:s.articles}):(0,r.jsx)("section",{className:"py-12 bg-white",children:(0,r.jsxs)("div",{className:"container text-center text-slate-400",children:[(0,r.jsx)("p",{className:"text-lg font-bold",children:"Category Section"}),(0,r.jsx)("p",{className:"text-sm mt-1",children:"Set a category name in the right panel to preview this 
1section."})]})})}},27161:(e,t,a)=>{a.d(t,{RankedTopList:()=>y});var r=a(95155),l=a(12115),s=a(39347),o=a(42529),n=a(78874),i=a(93499),d=a(86651),c=a(12108),x=a(24033),m=a(52619),u=a.n(m),g=a(69656),b=a(57667);let p={default:{card:"bg-white rounded-2xl border border-brand-accent/40 shadow-sm",cardHover:"hover:shadow-md",rankBadge:e=>1===e?"bg-brand-primary text-white shadow-brand-primary/30":2===e?"bg-brand-action text-white shadow-brand-action/30":3===e?"bg-brand-accent text-text-primary shadow-brand-accent/30":"bg-brand-bg text-text-secondary shadow-brand-accent/20",starFill:"fill-brand-primary text-brand-primary",starEmpty:"text-brand-accent",badgeBg:"bg-brand-primary/10",badgeText:"text-brand-primary",bonusBanner:"bg-gradient-to-r from-brand-primary to-brand-action",bonusText:"text-white",specCard:"bg-brand-bg rounded-lg",specLabel:"text-text-secondary",specValue:"text-text-primary",ctaBtn:"bg-brand-primary text-white shadow-md hover:bg-brand-action hover:shadow-lg",ctaBtnHover:"",expandLink:"text-brand-primary hover:text-brand-action",expandLinkHover:"",detailBg:"border-t border-brand-accent/30 bg-brand-bg/50",detailBorder:"border-brand-accent/30",tabActive:"bg-brand-primary text-white shadow-md",tabInactive:"text-text-secondary hover:text-text-primary hover:bg-white",proDot:"bg-brand-primary",proIcon:"text-brand-primary",conDot:"bg-text-secondary",logoFallbackBg:"bg-brand-primary/10",logoFallbackText:"text-brand-primary"},warm:{card:"bg-white rounded-2xl border border-orange-200 shadow-sm",cardHover:"hover:shadow-lg hover:border-orange-300",rankBadge:e=>1===e?"bg-gradient-to-br from-orange-500 to-red-500 text-white shadow-orange-500/30":2===e?"bg-gradient-to-br from-amber-400 to-orange-400 text-white shadow-amber-400/30":3===e?"bg-gradient-to-br from-yellow-300 to-amber-300 text-amber-900 shadow-yellow-300/30":"bg-orange-50 text-orange-600 shadow-orange-200/30",starFill:"fill-orange-400 text-orange-400",starEmpty:"text-orange-200",badgeBg:"bg-orange-50 border border-orange-200",badgeText:"text-orange-700",bonusBanner:"bg-gradient-to-r from-orange-500 via-red-500 to-pink-500",bonusText:"text-white",specCard:"bg-orange-50/80 rounded-lg border border-orange-100",specLabel:"text-orange-600/80",specValue:"text-slate-800",ctaBtn:"bg-gradient-to-r from-orange-500 to-red-500 text-white shadow-lg shadow-orange-500/25 hover:shadow-xl hover:shadow-orange-500/30 hover:from-orange-600 hover:to-red-600",ctaBtnHover:"",expandLink:"text-orange-600 hover:text-red-500",expandLinkHover:"",detailBg:"border-t-2 border-orange-200 bg-gradient-to-b from-orange-50/60 to-white",detailBorder:"border-orange-200",tabActive:"bg-gradient-to-r from-orange-500 to-red-500 text-white shadow-lg shadow-orange-500/20",tabInactive:"text-slate-500 hover:text-orange-600 hover:bg-orange-50",proDot:"bg-emerald-500",proIcon:"text-emerald-500",conDot:"bg-red-400",logoFallbackBg:"bg-gradient-to-br from-orange-100 to-red-50",logoFallbackText:"text-orange-600"},professional:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm ring-1 ring-slate-100",cardHover:"hover:shadow-lg hover:ring-slate-200",rankBadge:e=>1===e?"bg-gradient-to-br from-slate-800 to-slate-900 text-amber-300 shadow-slate-800/40 ring-2 ring-amber-400/30":2===e?"bg-gradient-to-br from-slate-600 to-slate-700 text-slate-100 shadow-slate-600/30":3===e?"bg-gradient-to-br from-slate-400 to-slate-500 text-white shadow-slate-400/30":"bg-slate-100 text-slate-500 shadow-slate-200/30",starFill:"fill-amber-400 text-amber-400",starEmpty:"text-slate-200",badgeBg:"bg-slate-100 border border-slate-200",badgeText:"text-slate-700",bonusBanner:"bg-gradient-to-r from-slate-800 via-slate-700 to-slate-800",bonusText:"text-white",specCard:"bg-slate-50 rounded-lg border border-slate-150",specLabel:"text-slate-500",specValue:"text-slate-900",ctaBtn:"bg-gradient-to-r from-emerald-600 to-teal-600 text-white shadow-lg shadow-emerald-600/20 hover:shadow-xl hover:from-emerald-700 hover:to-teal-700",ctaBtnHover:"",expandLink:"text-slate-600 hover:text-emerald-600",expandLinkHover:"",detailBg:"border-t border-slate-200 bg-gradient-to-b from-slate-50 to-white",detailBorder:"border-slate-200",tabActive:"bg-slate-800 text-white shadow-lg shadow-slate-800/20",tabInactive:"text-slate-500 hover:text-slate-800 hover:bg-slate-50",proDot:"bg-emerald-500",proIcon:"text-emerald-500",conDot:"bg-red-400",logoFallbackBg:"bg-slate-100",logoFallbackText:"text-slate-600"},ocean:{card:"bg-white rounded-2xl border border-blue-200 shadow-sm",cardHover:"hover:shadow-lg hover:border-blue-300",rankBadge:e=>1===e?"bg-gradient-to-br from-blue-600 to-indigo-600 text-white shadow-blue-600/30":2===e?"bg-gradient-to-br from-cyan-500 to-blue-500 text-white shadow-cyan-500/30":3===e?"bg-gradient-to-br from-sky-4
100 to-cyan-400 text-white shadow-sky-400/30":"bg-blue-50 text-blue-600 shadow-blue-200/30",starFill:"fill-blue-500 text-blue-500",starEmpty:"text-blue-200",badgeBg:"bg-blue-50 border border-blue-200",badgeText:"text-blue-700",bonusBanner:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",bonusText:"text-white",specCard:"bg-blue-50/60 rounded-lg border border-blue-100",specLabel:"text-blue-600/80",specValue:"text-slate-800",ctaBtn:"bg-gradient-to-r from-blue-600 to-indigo-600 text-white shadow-lg shadow-blue-600/25 hover:shadow-xl hover:from-blue-700 hover:to-indigo-700",ctaBtnHover:"",expandLink:"text-blue-600 hover:text-indigo-600",expandLinkHover:"",detailBg:"border-t-2 border-blue-200 bg-gradient-to-b from-blue-50/60 to-white",detailBorder:"border-blue-200",tabActive:"bg-gradient-to-r from-blue-600 to-indigo-600 text-white shadow-lg shadow-blue-600/20",tabInactive:"text-slate-500 hover:text-blue-600 hover:bg-blue-50",proDot:"bg-blue-500",proIcon:"text-blue-500",conDot:"bg-red-400",logoFallbackBg:"bg-gradient-to-br from-blue-100 to-indigo-50",logoFallbackText:"text-blue-600"},forest:{card:"bg-white rounded-2xl border border-emerald-200 shadow-sm",cardHover:"hover:shadow-lg hover:border-emerald-300",rankBadge:e=>e<=3?"bg-gradient-to-r from-emerald-500 to-teal-500 text-white":"bg-emerald-100 text-emerald-700",starFill:"fill-emerald-400 text-emerald-400",starEmpty:"fill-slate-200 text-slate-200",badgeBg:"bg-emerald-50",badgeText:"text-emerald-600",bonusBanner:"bg-gradient-to-r from-emerald-500 to-teal-600",bonusText:"text-white",specCard:"bg-emerald-50/80 rounded-lg border border-emerald-100",specLabel:"text-emerald-600/80",specValue:"text-slate-800",ctaBtn:"bg-gradient-to-r from-emerald-600 to-teal-600 text-white shadow-lg shadow-emerald-600/25 hover:shadow-xl hover:from-emerald-700 hover:to-teal-700",ctaBtnHover:"",expandLink:"text-emerald-600 hover:text-teal-600",expandLinkHover:"",detailBg:"border-t-2 border-emerald-200 bg-gradient-to-b from-emerald-50/60 to-white",detailBorder:"border-emerald-200",tabActive:"bg-gradient-to-r from-emerald-600 to-teal-600 text-white shadow-lg shadow-emerald-600/20",tabInactive:"text-slate-500 hover:text-emerald-600 hover:bg-emerald-50",proDot:"bg-emerald-500",proIcon:"text-emerald-500",conDot:"bg-red-400",logoFallbackBg:"bg-gradient-to-br from-emerald-100 to-teal-50",logoFallbackText:"text-emerald-600"}};function h(e){let{rating:t,t:a}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-0.5",children:[[1,2,3,4,5].map(e=>(0,r.jsx)(s.A,{className:"w-4 h-4 ".concat(e<=Math.round(t)?a.starFill:a.starEmpty)},e)),(0,r.jsx)("span",{className:"ml-1.5 text-sm font-bold text-text-primary",children:t})]})}function f(e){let{rank:t,t:a}=e;return(0,r.jsx)("div",{className:"absolute top-3 left-3 z-20 w-10 h-10 rounded-xl ".concat(a.rankBadge(t)," shadow-lg flex items-center justify-center font-bold text-lg"),children:t})}function v(e){let{item:t,t:a,linkAttrs:l}=e;return(0,r.jsxs)("div",{className:"".concat(a.detailBg," p-6 space-y-6 animate-in slide-in-from-top-2 duration-300"),children:[t._detailSpecs.length>0&&(0,r.jsx)("div",{className:" rounded-lg border ".concat(a.detailBorder),children:(0,r.jsx)("table",{className:"w-full text-sm",children:(0,r.jsx)("tbody",{children:t._detailSpecs.map((e,t)=>(0,r.jsxs)("tr",{className:"".concat(t%2==0?"bg-white":"bg-slate-50/60"," border-b ").concat(a.detailBorder," last:border-0"),children:[(0,r.jsx)("td",{className:"px-4 py-2.5 font-medium text-text-secondary w-1/3",children:e.label}),(0,r.jsx)("td",{className:"px-4 py-2.5 ".concat(e.highlight?"font-bold ".concat(a.badgeText):"text-text-primary"),children:e.value})]},t))})})}),(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[t._pros.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("h4",{className:"font-bold text-text-primary mb-3 flex items-center gap-2",children:[(0,r.jsx)(o.A,{className:"w-5 h-5 ".concat(a.proIcon)}),"メリット"]}),(0,r.jsx)("ul",{className:"space-y-2",children:t._pros.map((e,t)=>(0,r.jsxs)("li",{className:"flex items-start gap-2 text-sm text-text-secondary",children:[(0,r.jsx)("span",{className:"mt-1 w-1.5 h-1.5 rounded-full ".concat(a.proDot," flex-shrink-0")}),e]},t))})]}),t._cons.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("h4",{className:"font-bold text-text-primary mb-3 flex items-center gap-2",children:[(0,r.jsx)(n.A,{className:"w-5 h-5 text-red-400"}),"デメリット"]}),(0,r.jsx)("ul",{className:"space-y-2",children:t._cons.map((e,t)=>(0,r.jsxs)("li",{className:"flex items-start gap-2 text-sm text-text-secondary",children:[(0,r.jsx)("span",{className:"mt-1 w-1.5 h-1.5 rounded-full ".concat(a.conDot," flex-shrink-0")}),e]},t))})]})]}),t.editorialReview&&(0,r.jsxs)("div",{className:"bg-white rounded-lg border ".concat(a.detailBorder," p-5"),children:[(0,r.jsx)("h4",{className:"font-bold text-text-primary mb-2",children:"編集部レビュー"}),(0,r.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:t.editorialReview}),t.reviewerName&&(0,r.jsxs)("div",{className:"flex items-center gap-3 mt-4 pt-3 border-t ".concat(a.detailBorder),children:[t.reviewerAvatar?(0,r.jsx)("img",{src:t.reviewerAvatar,alt:t.reviewerName,className:"w-8 h-8 rounded-full object-cover"}):(0,r.jsx)("div",{className:"w-8 h-8 rounded-full ".concat(a.logoFallbackBg," flex items-center justify-center"),children:(0,r.jsx)("span",{className:"text-xs font-bold ".concat(a.logoFallbackText),children:(t.reviewerName||"?").charAt(0)})}),(0,r.jsx)("span",{className:"text-xs text-text-secondary",children:(0,r.jsx)("strong",{className:"text-text-primary",children:t.reviewerName})})]})]})]})}function y(e){var t;let{sectionTitle:a,sectionSubtitle:s,items:o,tabs:n,theme:m="default",forceExpanded:y=!1,openInNewTab:w="new",relAttribute:j="sponsored",anchorId:N=""}=e,[k,C]=(0,l.useState)(null),[A,S]=(0,l.useState)(new Set),[B,T]=(0,l.useState)(0),F=p[m]||p.default,I=(0,g.u)({openInNewTab:w,relAttribute:j}),L=n&&n.length>1,E=L?(null==(t=n[B])?void 0:t.items)||[]:o||[];return(0,r.jsx)("section",{id:N||void 0,className:"w-full py-12 md:py-16 scroll-mt-24",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[a&&(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-text-primary",children:a}),s&&(0,r.jsx)("p",{className:"mt-2 text-text-secondary",children:s})]}),L&&(0,r.jsx)("div",{className:"flex gap-1 mb-8 bg-white/80 backdrop-blur-sm rounded-xl p-1.5 max-w-fit border border-slate-200/60 shadow-sm",children:n.map((e,t)=>(0,r.jsx)("button",{onClick:()=>{T(t),C(null)},className:"px-6 py-2.5 rounded-lg font-semibold text-sm transition-all duration-200 ".concat(B===t?F.tabActive:F.tabInactive),children:e.label},t))}),0===E.length?(0,r.jsx)("div",{className:"text-center py-8 text-text-secondary italic"}):(0,r.jsx)("div",{className:"space-y-6",children:E.map((e,t)=>{let a=y?!A.has(t):k===t,l=function(e){let t="string"==typeof e.detailSpecs?(0,b.FF)(e.detailSpecs).map(e=>{let{label:t,value:a}=e;return{label:t,value:a}}):e.detailSpecs||[],a="string"==typeof e.pros?(0,b.Li)(e.pros):e.pros||[],r="string"==typeof e.cons?(0,b.Li)(e.cons):e.cons||[],l="string"==typeof e.recommendPoints?(0,b.Li)(e.recommendPoints):e.recommendPoints||[],s=e.specs||{wageringLabel:e.wageringLabel||"賭け条件",wageringValue:e.wageringValue||"-",maxWithdrawalLabel:e.maxWithdrawalLabel||"最大出金額",maxWithdrawalValue:e.maxWithdrawalValue||"-",validityLabel:e.validityLabel||"有効期限",validityValue:e.validityValue||"-",licenseLabel:e.licenseLabel||"ライセンス",licenseValue:e.licenseValue||"-"};return{...e,_detailSpecs:t,_pros:a,_cons:r,_recommendPoints:l,_specs:s}}(e);return(0,r.jsxs)("div",{className:"relative ".concat(F.card," ").concat(F.cardHover," transition-all duration-300 "),children:[(0,r.jsx)(f,{rank:e.rank,t:F}),(0,r.jsx)("div",{className:"p-6 pl-16",children:(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center lg:items-start gap-2 min-w-[140px]",children:[e.logo?(0,r.jsx)("div",{className:"w-24 h-24 rounded-xl border border-slate-200 flex items-center justify-center bg-white ",children:(0,r.jsx)("img",{src:e.logo,alt:e.name||"",className:"w-20 h-20 object-contain"})}):(0,r.jsx)("div",{className:"w-24 h-24 rounded-xl ".concat(F.logoFallbackBg," flex items-center justify-center"),children:(0,r.jsx)("span",{className:"text-2xl font-bold ".concat(F.logoFallbackText),children:(e.name||"?").charAt(0)})}),(0,r.jsx)("h3",{className:"font-bold text-text-primary text-center lg:text-left",children:e.name||""}),e.badge&&(0,r.jsx)("span",{className:"px-2.5 py-0.5 text-xs font-semibold rounded-full ".concat(F.badgeBg," ").concat(F.badgeText),children:e.badge}),(0,r.jsx)(h,{rating:e.rating,t:F})]}),(0,r.jsxs)("div",{className:"flex-1 space-y-4",children:[(0,r.jsxs)("div",{className:"".concat(F.bonusBanner," rounded-xl px-5 py-3 flex items-center justify-between"),children:[(0,r.jsx)("span",{className:"".concat(F.bonusText," text-sm font-medium"),children:e.bonusLabel}),(0,r.jsx)("span",{className:"".concat(F.bonusText," text-2xl font-extrabold"),children:e.bonusValue})]}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3",children:[{label:l._specs.wageringLabel,value:l._specs.wageringValue},{label:l._specs.maxWithdrawalLabel,value:l._specs.maxWithdrawalValue},{label:l._specs.validityLabel,value:l._specs.validityValue},{label:l._specs.licenseLabel,value:l._specs.licenseValue}].map((e,t)=>(0,r.jsxs)("div",{className:"".concat(F.specCard," p-3 text-center"),children:[(0,r.jsx)("p",{className:"text-xs ".concat(F.specLabel),children:e.label}),(0,r.jsx)("p",{className:"text-sm font-bold ".concat(F.specValue," mt-0.5"),children:e.value})]},t))})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 min-w-[180px]",children:[e.ctaMicroCopy&&(0,r.jsx)("p",{className:"text-xs text-text-secondary",children:e.ctaMicroCopy}),(0,r.jsxs)(u(),{href:e.ctaUrl||"#",...I,className:"w-full flex items-center justify-center gap-2 px-6 py-3.5 font-bold rounded-xl transition-all duration-200 text-sm ".concat(F.ctaBtn),children:[e.ctaText,(0,r.jsx)(i.A,{className:"w-4 h-4"})]}),(0,r.jsxs)("button",{onClick:()=>{y?S(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a}):C(a?null:t)},className:"flex items-center gap-1.5 text-sm transition-colors ".concat(F.expandLink),children:[(0,r.jsx)(d.A,{className:"w-3.5 h-3.5"}),e.reviewLinkText,a?(0,r.jsx)(c.A,{className:"w-3.5 h-3.5"}):(0,r.jsx)(x.A,{className:"w-3.5 h-3.5"})]})]})]})}),a&&(0,r.jsx)(v,{item:l,t:F,linkAttrs:I})]},"".concat(B,"-").concat(t))})})]})})}},30426:(e,t,a)=>{a.d(t,{SiteHeroSectionEditor:()=>o});var r=a(95155),l=a(12115),s=a(63363);function o(e){let{readTimeSuffix:t,articles:a}=e,[o,n]=(0,l.useState)(null),i=(a||[]).join(",");return((0,l.useEffect)(()=>{let e=!0;return n(null),fetch(i?"/api/editor/articles?mode=bySlugs&slugs=".concat(encodeURIComponent(i)):"/api/editor/articles?mode=latest&count=5").then(e=>e.ok?e.json():{articles:[]}).then(t=>{e&&n(Array.isArray(t.articles)?t.articles:[])}).catch(()=>{e&&n([])}),()=>{e=!1}},[i]),null===o)?(0,r.jsx)("section",{className:"relative py-8 md:py-12 bg-white",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"h-[70vh] rounded-2xl bg-slate-100 animate-pulse"})})}):0===o.length?(0,r.jsx)("section",{className:"relative py-8 md:py-12 bg-white",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"h-[50vh] rounded-2xl bg-slate-50 flex items-center justify-center text-center",children:(0,r.jsxs)("div",{className:"text-slate-400",children:[(0,r.jsx)("p",{className:"text-lg font-bold",children:"Hero Section (Dynamic Articles)"}),(0,r.jsx)("p",{className:"text-sm mt-1",children:"No articles yet — this section fills automatically once articles are synced from RankTraction."})]})})})}):(0,r.jsx)(s.HeroSection,{articles:o,readTimeSuffix:t})}},36987:(e,t,a)=>{a.d(t,{IconPickerField:()=>o});var r=a(95155),l=a(12115),s=a(54148);function o(e){var t;let{value:a,onChange:o}=e,[n,i]=(0,l.useState)(""),[d,c]=(0,l.useState)(!0),x=(0,l.useMemo)(()=>
1{if(!n)return s.VQ;let e=n.toLowerCase();return s.VQ.filter(t=>t.label.toLowerCase().includes(e)||t.name.toLowerCase().includes(e)||t.category.toLowerCase().includes(e))},[n]),m=(0,l.useMemo)(()=>{let e={};for(let t of x)e[t.category]||(e[t.category]=[]),e[t.category].push(t);return e},[x]),u=a?s.tS[a]:null;return(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"6px 10px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",cursor:"pointer"},onClick:()=>c(!d),children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[u?(0,r.jsx)(u,{className:"",strokeWidth:1.5}):(0,r.jsx)("span",{style:{fontSize:"13px",color:"#94a3b8"},children:"No icon selected"}),a&&(0,r.jsx)("span",{style:{fontSize:"13px",color:"#374151",fontWeight:500},children:(null==(t=s.VQ.find(e=>e.name===a))?void 0:t.label)||a})]}),(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#94a3b8",strokeWidth:"2",style:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:(0,r.jsx)("path",{d:"m6 9 6 6 6-6"})})]}),d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"text",value:n,onChange:e=>i(e.target.value),placeholder:"Search icons...",style:{padding:"6px 10px",fontSize:"13px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",color:"#1f2937",outline:"none"}}),(0,r.jsxs)("div",{style:{maxHeight:"240px",overflowY:"auto",border:"1px solid #e5e7eb",borderRadius:"8px",background:"#fafafa"},children:[Object.entries(m).map(e=>{let[t,l]=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{padding:"4px 10px",fontSize:"10px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em",color:"#94a3b8",background:"#f1f5f9",borderBottom:"1px solid #e5e7eb",position:"sticky",top:0,zIndex:1},children:t}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"2px",padding:"4px"},children:l.map(e=>{let t=e.component,l=a===e.name;return(0,r.jsxs)("button",{onClick:()=>o(e.name),title:e.label,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"6px 2px",borderRadius:"6px",border:l?"2px solid #2563eb":"2px solid transparent",background:l?"#eff6ff":"transparent",cursor:"pointer",transition:"all 0.1s"},onMouseEnter:e=>{l||(e.currentTarget.style.background="#f1f5f9")},onMouseLeave:e=>{l||(e.currentTarget.style.background="transparent")},children:[(0,r.jsx)("div",{style:{width:"18px",height:"18px",color:l?"#2563eb":"#64748b"},children:(0,r.jsx)(t,{className:"w-full h-full",strokeWidth:1.5})}),(0,r.jsx)("span",{style:{fontSize:"8px",color:l?"#2563eb":"#94a3b8",marginTop:"2px",lineHeight:"1",textAlign:"center",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]},e.name)})})]},t)}),0===x.length&&(0,r.jsxs)("div",{style:{padding:"16px",textAlign:"center",color:"#94a3b8",fontSize:"13px"},children:['No icons match "',n,'"']})]}),a&&(0,r.jsx)("button",{onClick:()=>o(""),style:{padding:"4px 8px",fontSize:"11px",color:"#64748b",background:"#f1f5f9",border:"1px solid #e2e8f0",borderRadius:"6px",cursor:"pointer",alignSelf:"flex-start"},children:"Clear icon"})]})]})}},39288:(e,t,a)=>{a.d(t,{PopupModal:()=>x,PopupModalEditorPreview:()=>m});var r=a(95155),l=a(12115),s=a(65229),o=a(95740),n=a(42529),i=a(23664);let d="popup_modal_shown",c="linear-gradient(to right, #1E1B4B, #0284C7, #C026D3)";function x(e){let{image:t="",heading:a="メルマガに登録しませんか?",description:x="最新のゲーム攻略や異世界アニメの情報をメールでお届けします。いつでも配信停止できます。",delaySeconds:m=3,buttonLabel:u="無料で登録する",buttonColor:g="#0284C7",emailPlaceholder:b="メールアドレスを入力",dismissible:p=!0}=e,[h,f]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),[w,j]=(0,l.useState)(""),[N,k]=(0,l.useState)(!1),[C,A]=(0,l.useState)("");(0,l.useEffect)(()=>{if(window.location.pathname.startsWith("/page_editor_admin")||sessionStorage.getItem(d))return;let e=setTimeout(()=>{f(!0),requestAnimationFrame(()=>requestAnimationFrame(()=>y(!0)))},1e3*Math.max(0,Number(m)||3));return()=>clearTimeout(e)},[]),(0,l.useEffect)(()=>
1{if("undefined"!=typeof document)return document.body.style.overflow=h?"hidden":"",()=>{document.body.style.overflow=""}},[h]);let S=(0,l.useCallback)(()=>{y(!1),sessionStorage.setItem(d,"1"),setTimeout(()=>f(!1),280)},[]),B=(0,l.useCallback)(async e=>{if(e.preventDefault(),w.trim()){A("");try{let e=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:w.trim()})}),t=await e.json();t.success?(k(!0),sessionStorage.setItem(d,"1"),setTimeout(S,2200)):A(t.message||"エラーが発生しました。もう一度お試しください。")}catch(e){A("ネットワークエラーが発生しました。もう一度お試しください。")}}},[w,S]);return h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{onClick:p?S:void 0,style:{position:"fixed",inset:0,zIndex:2e5,background:"rgba(15, 23, 42, 0.65)",backdropFilter:"blur(4px)",opacity:+!!v,transition:"opacity 300ms ease"}}),(0,r.jsx)("div",{style:{position:"fixed",inset:0,zIndex:200001,display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",pointerEvents:"none"},children:(0,r.jsxs)("div",{style:{pointerEvents:"auto",background:"#fff",borderRadius:"20px",maxWidth:"380px",width:"100%",boxShadow:"0 25px 80px rgba(0,0,0,0.3)",overflow:"hidden",opacity:+!!v,transform:v?"translateY(0) scale(1)":"translateY(28px) scale(0.96)",transition:"all 300ms cubic-bezier(0.16, 1, 0.3, 1)"},children:[(0,r.jsx)("div",{style:{height:"6px",background:c}}),p&&(0,r.jsx)("button",{onClick:S,style:{position:"absolute",top:"16px",right:"16px",width:"32px",height:"32px",borderRadius:"50%",background:"#f1f5f9",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(s.A,{size:16,color:"#475569"})}),(0,r.jsxs)("div",{style:{padding:"28px 28px 0",textAlign:"center"},children:[t?(0,r.jsx)("img",{src:t,alt:"",style:{width:"100%",maxHeight:"140px",objectFit:"cover",borderRadius:"12px",marginBottom:"16px"}}):(0,r.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",background:"#EEF2FF",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px"},children:(0,r.jsx)(o.A,{size:28,color:"#0284C7"})}),(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",marginBottom:"16px"},children:(0,r.jsx)("span",{style:{fontSize:"12px",fontWeight:600,color:"#0284C7",letterSpacing:"0.05em"},children:"anime-kings-raid.com"})})]}),(0,r.jsx)("div",{style:{padding:"0 28px 28px"},children:N?(0,r.jsxs)("div",{style:{textAlign:"center",padding:"20px 0"},children:[(0,r.jsx)(n.A,{size:48,color:"#0284C7",style:{margin:"0 auto 12px"}}),(0,r.jsx)("p",{style:{fontSize:"16px",fontWeight:700,color:"#0F172A"},children:"登録ありがとうございます!"}),(0,r.jsx)("p",{style:{fontSize:"13px",color:"#475569",marginTop:"6px"},children:"最新情報をお届けします。"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{style:{fontSize:"18px",fontWeight:700,color:"#0F172A",textAlign:"center",marginBottom:"8px",lineHeight:"1.4"},children:a}),(0,r.jsx)("p",{style:{fontSize:"13px",color:"#475569",textAlign:"center",marginBottom:"20px",lineHeight:"1.6"},children:x}),(0,r.jsxs)("form",{onSubmit:B,children:[(0,r.jsxs)("div",{style:{position:"relative",marginBottom:"12px"},children:[(0,r.jsx)(i.A,{size:16,color:"#94a3b8",style:{position:"absolute",left:"12px",top:"50%",transform:"translateY(-50%)"}}),(0,r.jsx)("input",{type:"email",value:w,onChange:e=>j(e.target.value),placeholder:b,required:!0,style:{width:"100%",padding:"12px 12px 12px 38px",fontSize:"14px",border:"1px solid #e2e8f0",borderRadius:"10px",outline:"none",color:"#0F172A",background:"#fafafa"}})]}),(0,r.jsx)("button",{type:"submit",style:{width:"100%",padding:"12px",fontSize:"14px",fontWeight:700,color:"#FFFFFF",background:g,border:"none",borderRadius:"10px",cursor:"pointer",transition:"opacity 0.2s"},children:u})]}),C&&(0,r.jsx)("p",{style:{fontSize:"12px",color:"#ef4444",textAlign:"center",marginTop:"10px"},children:C}),(0,r.jsx)("p",{style:{fontSize:"11px",color:"#94a3b8",textAlign:"center",marginTop:"14px"},children:"スパムは送りません。いつでも配信停止できます。"})]})})]})})]}):null}function m(e){let{image:t="",heading:a="メルマガに登録しませんか?",description:l="最新のゲーム攻略や異世界アニメの情報をメールでお届けします。",delaySeconds:s=3,buttonLabel:n="無料で登録する",buttonColor:i="#0284C7",emailPlaceholder:d="メールアドレスを入力",dismissible:x=!0}=e;return(0,r.jsx)("section",{className:"w-full py-6",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{style:{background:"#fff",borderRadius:"16px",border:"2px dashed #e2e8f0",overflow:"hidden",maxWidth:"380px",margin:"0 auto"},children:[(0,r.jsx)("div",{style:{height:"6px",background:c}}),(0,r.jsxs)("div",{style:{padding:"12px 16px",background:"#f8fafc",borderBottom:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsxs)("span",{style:{fontSize:"11px",fontWeight:700,color:"#475569"},children:["ポップアップモーダル \xb7 ",s,"秒後に表示"]}),(0,r.jsx)("span",{style:{fontSize:"10px",color:"#94a3b8"},children:x?"✕ 閉じるボタンあり":"閉じるボタンなし"})]}),(0,r.jsxs)("div",{style:{padding:"20px",textAlign:"center"},children:[t?(0,r.jsx)("img",{src:t,alt:"",style:{width:"100%",maxHeight:"80px",objectFit:"cover",borderRadius:"8px",marginBottom:"12px"}}):(0,r.jsx)("div",{style:{width:"40px",height:"40px",borderRadius:"50%",background:"#EEF2FF",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 10px"},children:(0,r.jsx)(o.A,{size:20,color:"#0284C7"})}),(0,r.jsx)("h3",{style:{fontSize:"14px",fontWeight:700,color:"#0F172A",marginBottom:"6px"},children:a}),(0,r.jsx)("p",{style:{fontSize:"11px",color:"#475569",marginBottom:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l}),(0,r.jsxs)("div",{style:{display:"flex",gap:"6px"},children:[(0,r.jsx)("div",{style:{flex:1,padding:"8px 10px",fontSize:"11px",border:"1px solid #e2e8f0",borderRadius:"8px",color:"#94a3b8",textAlign:"left",background:"#fafafa"},children:d}),(0,r.jsx)("div",{style:{padding:"8px 12px",fontSize:"11px",fontWeight:700,color:"#FFFFFF",background:i,borderRadius:"8px",whiteSpace:"nowrap"},children:n})]})]})]})})})}},45057:(e,t,a)=>{a.d(t,{HeroSlideCarouselEditor:()=>l});var r=a(95155);function l(e){let{slides:t=[],theme:a="default"}=e,l={default:{badge:"bg-brand-primary",gradient:"from-brand-primary/30 to-brand-primary/10"},warm:{badge:"bg-orange-500",gradient:"from-orange-500/30 to-orange-300/10"},professional:{badge:"bg-slate-600",gradient:"from-slate-700/40 to-slate-500/10"},ocean:{badge:"bg-blue-500",gradient:"from-blue-500/30 to-indigo-300/10"},forest:{badge:"bg-emerald-500",gradient:"from-emerald-500/30 to-teal-300/10"}},s=l[a]||l.default;return 0===t.length?(0,r.jsx)("section",{className:"w-full py-10",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"bg-brand-card rounded-2xl p-12 text-center border border-border/20",children:(0,r.jsx)("p",{className:"text-text-secondary",children:"スライドを追加してください。右パネルの「Slides」から追加できます。"})})})}):(0,r.jsx)("section",{className:"w-full py-10",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)("div",{className:"flex gap-4 overflow-x-auto pb-4 snap-x snap-mandatory scrollbar-hide -mx-4 px-4",children:t.map((e,t)=>(0,r.jsxs)("div",{className:"rounded-2xl overflow-hidden shrink-0 w-[85%] sm:w-[60%] lg:w-[45%] aspect-[16/10] snap-start shadow-md relative",children:[e.image?(0,r.jsx)("img",{src:e.image,alt:e.title||"Slide ".concat(t+1),className:"w-full h-full object-cover absolute inset-0"}):(0,r.jsx)("div",{className:"w-full h-full absolute inset-0 bg-gradient-to-br ".concat(s.gradient)}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),(0,r.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end p-5",children:[e.tag&&(0,r.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider px-2.5 py-0.5 rounded-full ".concat(s.badge," text-white w-fit mb-2"),children:e.tag}),e.title?(0,r.jsx)("h3",{className:"text-white text-lg font-bold line-clamp-2 leading-snug",children:e.title}):(0,r.jsx)("div",{className:"h-5 bg-white/30 rounded w-3/4 mb-1"}),e.description?(0,r.jsx)("p",{className:"text-white/70 text-xs line-clamp-1 mt-1",children:e.description}):(0,r.jsx)("div",{className:"h-3 bg-white/20 rounded w-1/2 mt-1"})]})]},t))}),t.length>1&&(0,r.jsx)("div",{className:"flex items-center justify-center gap-1.5 mt-3",children:t.map((e,t)=>(0,r.jsx)("div",{className:"w-2 h-2 rounded-full ".concat(0===t?s.badge:"bg-slate-300")},t))}),(0,r.jsxs)("p",{className:"text-center text-xs text-text-secondary mt-2 italic",children:["※ ",t.length,"枚のスライドがカルーセルで表示されます"]})]})})}a(12115)},46543:(e,t,a)=>{a.d(t,{SiteLatestArticlesEditor:()=>o});var r=a(95155),l=a(12115),s=a(79714);function o(e){let{title:t="最新記事",articles:a}=e,[o,n]=(0,l.useState)(null),i=(a||[]).join(",");return((0,l.useEffect)(()=>{let e=!0;return n(null),fetch(i?"/api/editor/articles?mode=bySlugs&slugs=".concat(encodeURIComponent(i)):"/api/editor/articles?mode=latest&count=12").then(e=>e.ok?e.json():{articles:[]}).then(t=>{e&&n((Array.isArray(t.articles)?t.articles:[]).map(e=>({...e,publicationDate:e.publicationDate?new Date(e.publicationDate):null})))}).catch(()=>{e&&n([])}),()=>{e=!1}},[i]),null===o)?(0,r.jsx)("section",{className:"py-16 bg-white",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)("div",{className:"h-8 bg-slate-200 rounded w-1/4 mb-8 animate-pulse"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[1,2,3,4].map(e=>(0,r.jsx)("div",{className:"aspect-[4/3] bg-slate-200 rounded-xl animate-pulse"},e))})]})}):0===o.length?(0,r.jsx)("section",{className:"py-16 bg-white",children:(0,r.jsxs)("div",{className:"container text-center text-slate-400",children:[(0,r.jsx)("p",{className:"text-lg font-bold",children:t}),(0,r.jsx)("p",{className:"text-sm mt-1",children:"No articles yet — this section fills automatically once articles are synced from RankTraction."})]})}):(0,r.jsx)(s.LatestArticles,{articles:o,title:t})}},46566:(e,t,a)=>{a.d(t,{TableOfContents:()=>i});var r=a(95155),l=a(12115),s=a(80003),o=a(27937);let n={default:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm",titleColor:"text-text-primary",titleIcon:"text-brand-primary",titleBorder:"border-b border-slate-200",itemBg:"bg-white",itemHover:"hover:bg-brand-bg hover:border-brand-primary/30",itemNumber:"bg-brand-primary text-white",itemText:"text-text-primary group-hover:text-brand-primary",itemArrow:"text-slate-300 group-hover:text-brand-primary group-hover:translate-x-1",subItemBg:"bg-slate-50/50",subItemHover:"hover:bg-brand-bg/50",subItemText:"text-text-secondary group-hover:text-brand-primary",subItemDot:"bg-brand-primary/40 group-hover:bg-brand-primary",subItemLine:"border-l-2 border-slate-200"},warm:{card:"bg-white rounded-2xl border border-orange-200 shadow-sm",titleColor:"text-slate-800",titleIcon:"text-orange-500",titleBorder:"border-b border-orange-200",itemBg:"bg-white",itemHover:"hover:bg-orange-50 hover:border-orange-300",itemNumber:"bg-gradient-to-br from-orange-500 to-red-500 text-white",itemText:"text-slate-800 group-hover:text-orange-600",itemArrow:"text-slate-300 group-hover:text-orange-500 group-hover:translate-x-1",subItemBg:"bg-orange-50/30",subItemHover:"hover:bg-orange-50",subItemText:"text-slate-600 group-hover:text-orange-600",subItemDot:"bg-orange-300 group-hover:bg-orange-500",subItemLine:"border-l-2 border-orange-200"},professional:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm",titleColor:"text-slate-800",titleIcon:"text-slate-700",titleBorder:"border-b border-slate-200",itemBg:"bg-white",itemHover:"hover:bg-slate-50 hover:border-slate-300",itemNumber:"bg-slate-800 text-white",itemText:"text-slate-700 group-hover:text-slate-900",itemArrow:"text-slate-300 group-hover:text-slate-700 group-hover:translate-x-1",subItemBg:"bg-slate-50/50",subItemHover:"hover:bg-slate-100/50",subItemText:"text-slate-500 group-hover:text-slate-800",subItemDot:"bg-slate-400 group-hover:bg-slate-700",subItemLine:"border-l-2 border-slate-200"},ocean:{card:"bg-white rounded-2xl border border-blue-200 shadow-sm",titleColor:"text-slate-800",titleIcon:"text-blue-600",titleBorder:"border-b border-blue-200",itemBg:"bg-white",itemHover:"hover:bg-blue-50 hover:border-blue-300",itemNumber:"bg-gradient-to-br from-blue-600 to-indigo-600 text-white",itemText:"text-slate-800 group-hover:text-blue-600",itemArrow:"text-slate-300 group-hover:text-blue-500 group-hover:translate-x-1",subItemBg:"bg-blue-50/30",subItemHover:"hover:bg-blue-50",subItemText:"text-slate-600 group-hover:text-blue-600",subItemDot:"bg-blue-300 group-hover:bg-blue-600",subItemLine:"border-l-2 border-blue-200"},forest:{card:"bg-white rounded-2xl border border-emerald-200 shadow-sm",titleColor:"text-slate-800",titleIcon:"text-emerald-600",titleBorder:"border-b border-emerald-200",itemBg:"bg-white",itemHover:"hover:bg-emerald-50 hover:border-emerald-300",itemNumber:"bg-gradient-to-br from-emerald-600 to-teal-600 text-white",itemText:"text-slate-800 group-hover:text-emerald-600",itemArrow:"text-slate-300 group-hover:text-emerald-500 group-hover:translate-x-1",subItemBg:"bg-emerald-50/30",subItemHover:"hover:bg-emerald-50",subItemText:"text-slate-600 group-hover:text-emerald-600",subItemDot:"bg-emerald-300 group-hover:bg-emerald-600",subItemLine:"border-l-2 border-emerald-200"}};function i(e){let{title:t="目次",items:a=[],showNumbers:i=!0,theme:d="default",dataSource:c="manual"}=e,x=n[d]||n.default,m=function(){let[e,t]=(0,l.useState)([]),a=(0,l.useCallback)(()=>
1{if("undefined"==typeof document)return;let e=document.querySelectorAll("h2:not(header h2):not(footer h2):not([data-toc-ignore]), h3:not(header h3):not(footer h3):not([data-toc-ignore])"),a=[],r=null;e.forEach(e=>{var t;let l=(null==(t=e.textContent)?void 0:t.trim())||"";if(!l)return;e.id||(e.id=l.toLowerCase().trim().replace(/[\s\u3000]+/g,"-").replace(/[^\w\u3000-\u9FFF\u30A0-\u30FF\u3040-\u309F-]/g,"").replace(/--+/g,"-").replace(/^-|-$/g,"")||"section-".concat(Date.now()));let s=e.tagName.toLowerCase();"h2"===s?(r={label:l,anchorId:e.id,subItems:[]},a.push(r)):"h3"===s&&(r?r.subItems.push({label:l,anchorId:e.id}):a.push({label:l,anchorId:e.id,subItems:[]}))}),t(a)},[]);return(0,l.useEffect)(()=>{let e,t=setTimeout(a,300),r=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(a,500)});return r.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),()=>{clearTimeout(t),clearTimeout(e),r.disconnect()}},[a]),e}(),u="auto"===c?m:a,g=e=>{let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:e,behavior:"smooth"})}};return 0===u.length?(0,r.jsx)("section",{className:"w-full py-8",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"".concat(x.card," p-6"),children:(0,r.jsx)("div",{className:"text-center py-4 text-text-secondary italic text-sm",children:"auto"===c?"ページ内のh2・h3見出しが自動的に表示されます":"エディターパネルからTOCアイテムを追加してください →"})})})}):(0,r.jsx)("section",{className:"w-full py-8",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"".concat(x.card," overflow-hidden"),children:[(0,r.jsxs)("div",{className:"px-6 py-4 flex items-center gap-3 ".concat(x.titleBorder),"data-toc-ignore":!0,children:[(0,r.jsx)(s.A,{className:"w-5 h-5 ".concat(x.titleIcon)}),(0,r.jsx)("h2",{className:"text-lg font-bold ".concat(x.titleColor),"data-toc-ignore":!0,children:t})]}),(0,r.jsx)("div",{className:"p-3",children:u.map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{onClick:()=>g(e.anchorId||""),className:"group w-full flex items-center gap-4 px-4 py-3.5 rounded-xl border border-transparent transition-all duration-200 text-left ".concat(x.itemBg," ").concat(x.itemHover),children:[i&&(0,r.jsx)("span",{className:"flex-shrink-0 w-8 h-8 rounded-lg flex items-center justify-center text-sm font-bold ".concat(x.itemNumber),children:t+1}),(0,r.jsx)("span",{className:"flex-1 text-sm font-medium transition-colors duration-200 ".concat(x.itemText),children:e.label||""}),(0,r.jsx)(o.A,{className:"w-4 h-4 flex-shrink-0 transition-all duration-200 ".concat(x.itemArrow)})]}),e.subItems&&e.subItems.length>0&&(0,r.jsx)("div",{className:"ml-8 pl-4 mb-2 ".concat(x.subItemLine),children:e.subItems.map((e,t)=>(0,r.jsxs)("button",{onClick:()=>g(e.anchorId||""),className:"group w-full flex items-center gap-3 px-4 py-2.5 rounded-lg transition-all duration-200 text-left ".concat(x.subItemBg," ").concat(x.subItemHover),children:[(0,r.jsx)("span",{className:"flex-shrink-0 w-2 h-2 rounded-full transition-colors duration-200 ".concat(x.subItemDot)}),(0,r.jsx)("span",{className:"flex-1 text-xs font-medium transition-colors duration-200 ".concat(x.subItemText),children:e.label||""}),(0,r.jsx)(o.A,{className:"w-3 h-3 flex-shrink-0 transition-all duration-200 opacity-0 group-hover:opacity-100 ".concat(x.itemArrow)})]},"".concat(e.anchorId,"-").concat(t)))})]},"".concat(e.anchorId,"-").concat(t)))})]})})})}},47291:(e,t,a)=>{a.d(t,{SiteHeroBentoEditor:()=>n});var r=a(95155),l=a(12115),s=a(79706);let o=[{slug:"demo-article-1",title:"サンプル記事 1 — 『KING'S RAID』キャラクター育成 & 最強攻略ガイド",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"キンスレ攻略",readingTime:5},{slug:"demo-article-2",title:"サンプル記事 2 — 2026年絶対見るべきおすすめ異世界ファンタジーアニメ",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"異世界アニメ",readingTime:4},{slug:"demo-article-3",title:"サンプル記事 3 — キンスレ女性キャラ人気ランキング & 最強パーティ編成",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"女性キャラアニメ",readingTime:4},{slug:"demo-article-4",title:"サンプル記事 4 — 話題のアニメパチスロ最新台スペック比較 & 攻略立ち回り",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"アニメスロット",readingTime:6}];function n(e){let{tagline:t="異世界アニメとゲーム攻略",title:a="『KING'S RAID』アニメ解説 & キャラ育成攻略",readTimeSuffix:n,theme:i,articles:d}=e,[c,x]=l.useState(o),m=(d||[]).join(",");return l.useEffect(()=>{let e=!0,t=m?"/api/editor/articles?mode=bySlugs&slugs=".concat(encodeURIComponent(m)):"/api/editor/articles?mode=latest&count=4";return async function(){try{let a=await fetch(t);if(!a.ok)return;let r=await a.json();e&&Array.isArray(r.articles)&&r.articles.length>0?x(r.articles):e&&x(o)}catch(t){e&&x(o)}}(),()=>{e=!1}},[m]),(0,r.jsx)(s.HeroBentoSpotlight,{articles:c,tagline:t,title:a,readTimeSuffix:n,theme:i})}},48186:(e,t,a)=>{a.d(t,{SplitContentHero:()=>l});var r=a(95155);function l(e){let{title:t="はじめての家づくりを、\n迷わず進めるために",subtitle:a="プロセス、コスト、デザインを、わかりやすいステップで学べます。",buttonText:l="まず何から始めるかを見る",buttonUrl:s="#",image:o="",imagePosition:n="right",theme:i="default",anchorId:d=""}=e,c={default:{bg:"bg-white",text:"text-text-primary",sub:"text-text-secondary",btn:"bg-brand-primary text-white hover:bg-brand-primary/90 shadow-lg"},warm:{bg:"bg-white",text:"text-slate-800",sub:"text-slate-500",btn:"bg-gradient-to-r from-orange-500 to-red-500 text-white shadow-lg hover:shadow-xl"},professional:{bg:"bg-slate-50",text:"text-slate-800",sub:"text-slate-500",btn:"bg-slate-800 text-white hover:bg-slate-700 shadow-lg"},ocean:{bg:"bg-white",text:"text-slate-800",sub:"text-slate-500",btn:"bg-blue-600 text-white hover:bg-blue-700 shadow-lg"},forest:{bg:"bg-white",text:"text-slate-800",sub:"text-slate-500",btn:"bg-emerald-600 text-white hover:bg-emerald-700 shadow-lg"}},x=c[i]||c.default,m=(0,r.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,r.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold leading-tight mb-4 whitespace-pre-line ".concat(x.text),children:t}),a&&(0,r.jsx)("p",{className:"text-sm sm:text-base leading-relaxed mb-6 max-w-md ".concat(x.sub),children:a}),l&&(0,r.jsx)("a",{href:s||"#",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-xl font-semibold text-sm transition-all duration-200 w-fit ".concat(x.btn),children:l})]}),u=(0,r.jsx)("div",{className:"flex items-center justify-center",children:o?(0,r.jsx)("img",{src:o,alt:"",className:"rounded-2xl shadow-lg object-cover w-full max-h-[400px]"}):(0,r.jsx)("div",{className:"aspect-[4/3] w-full rounded-2xl bg-slate-100 flex items-center justify-center text-slate-400 text-sm",children:"\uD83D\uDCF7 画像を追加してください"})});return(0,r.jsx)("section",{id:d||void 0,className:"w-full py-12 md:py-16 ".concat(x.bg," scroll-mt-24"),children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-12 items-center",children:"left"===n?(0,r.jsxs)(r.Fragment,{children:[u,m]}):(0,r.jsxs)(r.Fragment,{children:[m,u]})})})})}a(12115)},49053:(e,t,a)=>{a.d(t,{CategoryShowcaseTabs:()=>x});var r=a(95155),l=a(12115),s=a(52619),o=a.n(s),n=a(15239),i=a(95740),d=a(26983),c=a(27937);function x(e){let{title:t="カテゴリー別攻略 & 作品ガイド",subtitle:a="キンスレ攻略、異世界ファンタジー、ヒロイン特集、アニメスロット情報をお探しの方へ",categories:s=[],categoryArticlesMap:x={},allArticles:m=[]}=e,[u,g]=l.useState("全カテゴリー"),b=l.useMemo(()=>{let e=[{name:"全カテゴリー",slug:"all"}];return Array.isArray(s)&&s.length>
10&&s.forEach(t=>{(null==t?void 0:t.japanese)&&!e.some(e=>e.name===t.japanese)&&e.push({name:t.japanese,slug:t.slug||encodeURIComponent(t.japanese)})}),e},[s]),p=l.useMemo(()=>{if("全カテゴリー"===u)return m.slice(0,4);let e=x[u]||[];if(e.length>0)return e.slice(0,4);let t=m.filter(e=>{if(!e.category)return!1;let t=e.category.trim(),a=u.trim();return t===a||t.includes(a)||a.includes(t)});return t.length>0?t.slice(0,4):m.slice(0,4)},[u,x,m]),h=l.useMemo(()=>{if("全カテゴリー"===u)return"blogs";let e=b.find(e=>e.name===u);return e&&"all"!==e.slug?e.slug:encodeURIComponent(u)},[u,b]);return(0,r.jsx)("section",{className:"w-full py-12 bg-white border-y border-[#E2E8F0]/80",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"text-center max-w-2xl mx-auto mb-8",children:[(0,r.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-[#0F172A] mb-3",children:t}),a&&(0,r.jsx)("p",{className:"text-sm text-[#475569] leading-relaxed",children:a})]}),(0,r.jsx)("div",{className:"flex items-center justify-center gap-2 overflow-x-auto scrollbar-hide pb-4 mb-8",children:b.map(e=>{let t=u===e.name;return(0,r.jsx)("button",{onClick:()=>g(e.name),className:"px-4 py-2 text-xs sm:text-sm font-semibold rounded-full whitespace-nowrap transition-all duration-300 ".concat(t?"bg-[#1E1B4B] text-white shadow-md scale-105":"bg-[#F1F5F9] text-[#0F172A] hover:bg-[#EEF2FF] hover:text-[#0284C7]"),children:e.name},e.slug)})}),p.length>0?(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:p.map((e,t)=>(0,r.jsxs)(o(),{href:"/".concat(e.slug),className:"group bg-[#F1F5F9] rounded-2xl overflow-hidden border border-[#E2E8F0] hover:border-[#0284C7] hover:shadow-lg transition-all duration-300 flex flex-col justify-between",children:[(0,r.jsxs)("div",{className:"relative aspect-[4/3] w-full overflow-hidden bg-slate-100",children:[e.cardImage?(0,r.jsx)(n.default,{src:e.cardImage,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw"}):(0,r.jsx)("div",{className:"w-full h-full bg-[#EEF2FF] flex items-center justify-center text-[#0284C7]",children:(0,r.jsx)(i.A,{className:"w-8 h-8 opacity-40"})}),e.category&&(0,r.jsx)("span",{className:"absolute top-3 left-3 bg-[#1E1B4B] text-white text-[11px] font-semibold px-2.5 py-0.5 rounded-full shadow-sm",children:e.category})]}),(0,r.jsxs)("div",{className:"p-4 flex-1 flex flex-col justify-between space-y-3",children:[(0,r.jsx)("h3",{className:"text-sm sm:text-base font-bold text-[#0F172A] group-hover:text-[#0284C7] transition-colors leading-snug line-clamp-2",children:e.title}),(0,r.jsxs)("div",{className:"pt-2 border-t border-[#E2E8F0] flex items-center justify-between text-xs text-[#475569]",children:[e.readingTime&&(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(d.A,{className:"w-3 h-3 text-[#0284C7]"}),e.readingTime,"分"]}),(0,r.jsxs)("span",{className:"font-semibold text-[#0284C7] group-hover:translate-x-1 transition-transform flex items-center gap-0.5",children:["詳細 ",(0,r.jsx)(c.A,{className:"w-3 h-3"})]})]})]})]},e.slug||t))}):(0,r.jsx)("div",{className:"text-center py-12 text-[#475569] bg-[#F1F5F9] rounded-2xl border border-[#E2E8F0]",children:(0,r.jsx)("p",{className:"text-sm font-medium",children:"このカテゴリーの記事はまだありません。"})}),(0,r.jsx)("div",{className:"mt-10 text-center",children:(0,r.jsxs)(o(),{href:"全カテゴリー"===u?"/blogs":"/".concat(h),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#0284C7] hover:bg-[#0369A1] text-white text-xs sm:text-sm font-bold rounded-full transition-all shadow-sm hover:shadow-md hover:scale-105",children:[(0,r.jsxs)("span",{children:[u,"のすべてのガイドを見る"]}),(0,r.jsx)(c.A,{className:"w-4 h-4"})]})})]})})}},50944:(e,t,a)=>{a.r(t),a.d(t,{ArticleCard:()=>m});var r=a(95155),l=a(12115),s=a(52619),o=a.n(s),n=a(15239),i=a(83101),d=a(25016);let c=(0,i.F)("inline-flex items-center rounded-full border px-3 py-1 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-[#F4C7CF] text-white hover:bg-[#
1E9AAB5]",secondary:"border-transparent bg-[#F2ECE6] text-[#222222] hover:bg-[#E8DFD6]",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-[#E38A9B] border-[#F4C7CF]"}},defaultVariants:{variant:"default"}});function x(e){let{className:t,variant:a,...l}=e;return(0,r.jsx)("div",{className:(0,d.cn)(c({variant:a}),t),...l})}function m(e){let{article:t,featured:a=!1,priority:s=!1}=e,[i,c]=l.useState(!1);return(0,r.jsx)(o(),{href:"/".concat(encodeURIComponent(t.slug)),className:(0,d.cn)("block h-full",a&&"lg:col-span-2"),children:(0,r.jsxs)("div",{className:(0,d.cn)("h-full flex flex-col rounded-xl border border-warm-beige bg-white overflow-hidden transition-all duration-300 hover:shadow-md hover:shadow-[#E06D3B]/20 hover:scale-[1.02]","hover:border-[#E06D3B]"),children:[(0,r.jsx)("div",{className:"relative aspect-[3/2] overflow-hidden bg-gradient-to-br from-gray-100 to-gray-200",children:t.cardImage&&!i?(0,r.jsx)(n.default,{src:t.cardImage,alt:t.title,fill:!0,priority:s,loading:s?void 0:"lazy",className:"object-cover transition-transform duration-300 hover:scale-105",sizes:a?"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 66vw":"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw",unoptimized:!0,onError:()=>c(!0)}):(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-[#EBF2EB]/40 to-[#F9F8F3]/60",children:(0,r.jsxs)("div",{className:"text-center p-6",children:[(0,r.jsx)("div",{className:"text-4xl mb-2",children:"\uD83C\uDFD5️"}),(0,r.jsx)("p",{className:"text-gray-500 text-sm",children:"No Image Available"})]})})}),(0,r.jsxs)("div",{className:"p-4 flex-1 flex flex-col",children:[t.category&&(0,r.jsx)(x,{className:"inline-flex mb-2 bg-[#E06D3B] hover:bg-[#C55727] text-white border-transparent w-fit font-bold",children:t.category}),(0,r.jsx)("h3",{className:(0,d.cn)("font-semibold mb-2 line-clamp-2 text-charcoal transition-colors hover:text-[#E06D3B]",a?"text-2xl":"text-lg"),children:t.title}),t.excerpt&&(0,r.jsx)("p",{className:"text-sm text-soft-gray line-clamp-2 mb-3 leading-relaxed",children:t.excerpt}),(0,r.jsxs)("div",{className:"flex items-center gap-4 text-xs text-soft-gray mt-auto",children:[t.publicationDate&&(0,r.jsx)("span",{children:function(e){if(!e)return"";let t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return"".concat(t,"年").concat(a,"月").concat(r,"日")}(t.publicationDate)}),t.readingTime&&(0,r.jsxs)("span",{children:["読了時間: ",t.readingTime,"分"]})]})]})]})})}},54148:(e,t,a)=>{a.d(t,{VQ:()=>ei,qz:()=>ec,tS:()=>ed});var r=a(75882),l=a(78519),s=a(74474),o=a(1524),n=a(91761),i=a(35597),d=a(48055),c=a(53409),x=a(80534),m=a(82214),u=a(19204),g=a(44274),b=a(69074),p=a(23664),h=a(69141),f=a(5937),v=a(18085),y=a(85998),w=a(403),j=a(84382),N=a(47937),k=a(89715),C=a(21190),A=a(5789),S=a(60890),B=a(42196),T=a(65993),F=a(86651),I=a(93499),L=a(52987),E=a(27937),z=a(38707),D=a(45221),H=a(91169),M=a(20508),R=a(12181),P=a(89442),O=a(19408),U=a(60709),_=a(17666),W=a(39347),q=a(83457),G=a(17910),V=a(6613),J=a(26983),Y=a(16485),$=a(61362),Z=a(80021),K=a(23327),Q=a(95740),X=a(56154),ee=a(39068),et=a(57828),ea=a(99708),er=a(20639),el=a(30814),es=a(52472),eo=a(8198),en=a(25276);let ei=[{name:"wallet",label:"Wallet",category:"Finance",component:r.A},{name:"credit-card",label:"Credit Card",category:"Finance",component:l.A},{name:"piggy-bank",label:"Piggy Bank",category:"Finance",component:s.A},{name:"trending-up",label:"Trending Up",category:"Finance",component:o.A},{name:"dollar-sign",label:"Dollar Sign",category:"Finance",component:n.A},{name:"banknote",label:"Banknote",category:"Finance",component:i.A},{name:"coins",label:"Coins",category:"Finance",component:d.A},{name:"receipt",label:"Receipt",category:"Finance",component:c.A},{name:"bar-chart",label:"Bar Chart",category:"Finance",component:x.A},{name:"line-chart",label:"Line Chart",category:"Finance",component:m.A},{name:"percent",label:"Percent",category:"Finance",component:u.A},{name:"circle-dollar",label:"Circle Dollar",category:"Finance",component:g.A},{name:"badge-percent",label:"Badge Percent",category:"Finance",component:b.A},{name:"mail",label:"Mail",category:"Communication",component:p.A},{name:"phone",label:"Phone",category:"Communication",component:h.A},{name:"message",label:"Message",category:"Communication",component:f.A},{name:"send",label:"Send",category:"Communication",component:v.A},{name:"bell",label:"Bell",category:"Communication",component:y.A},{name:"megaphone",label:"Megaphone",category:"Communication",component:w.A},{name:"newspaper",label:"Newspaper",category:"Content",component:j.A},{name:"book-open",label:"Book Open",category:"Content",component:N.A},{name:"file-text",label:"File Text",category:"Content",component:k.A},{name:"pen",label:"Pen",category:"Content",component:C.A},{name:"quote",label:"Quote",category:"Content",component:A.A},{name:"video",label:"Video",category:"Content",component:S.A},{name:"image",label:"Image",category:"Content",component:B.A},{name:"home",label:"Home",category:"Navigation",component:T.A},{name:"search",label:"Search",category:"Navigation",component:F.A},{name:"external-link",label:"External Link",category:"Navigation",component:I.A},{name:"arrow-right",label:"Arrow Right",category:"Navigation",component:L.A},{name:"chevron-right",label:"Chevron Right",category:"Navigation",component:E.A},{name:"map",label:"Map",category:"Navigation",component:z.A},{name:"compass",label:"Compass",category:"Navigation",component:D.A},{name:"users",label:"Users",category:"People",component:H.A},{name:"user",label:"User",category:"People",component:M.A},{name:"user-check",label:"User Check",category:"People",component:R.A},{name:"graduation-cap",label:"Graduation Cap",category:"People",component:P.A},{name:"building",label:"Building",category:"People",component:O.A},{name:"gift",label:"Gift",category:"General",component:U.A},{name:"lightbulb",label:"Lightbulb",category:"General",component:_.A},{name:"star",label:"Star",category:"General",component:W.A},{name:"heart",label:"Heart",category:"General",component:q.A},{name:"shield",label:"Shield",category:"General",component:G.A},{name:"trophy",label:"Trophy",category:"General",component:V.A},{name:"clock",label:"Clock",category:"General",component:J.A},{name:"calendar",label:"Calendar",category:"General",component:Y.A},{name:"check-circle",label:"Check Circle",category:"General",component:$.A}
1,{name:"help-circle",label:"Help Circle",category:"General",component:Z.A},{name:"info",label:"Info",category:"General",component:K.A},{name:"sparkles",label:"Sparkles",category:"General",component:Q.A},{name:"zap",label:"Zap",category:"General",component:X.A},{name:"globe",label:"Globe",category:"General",component:ee.A},{name:"eye",label:"Eye",category:"General",component:et.A},{name:"lock",label:"Lock",category:"General",component:ea.A},{name:"rocket",label:"Rocket",category:"General",component:er.A},{name:"target",label:"Target",category:"General",component:el.A},{name:"award",label:"Award",category:"General",component:es.A},{name:"flame",label:"Flame",category:"General",component:eo.A},{name:"thumbs-up",label:"Thumbs Up",category:"General",component:en.A}],ed=Object.fromEntries(ei.map(e=>[e.name,e.component]));function ec(e){return ed[e||""]||j.A}[...new Set(ei.map(e=>e.category))]},57667:(e,t,a)=>{function r(e){return e?Array.isArray(e)?e.filter(Boolean):e.split("\n").map(e=>e.trim()).filter(Boolean):[]}function l(e){return e?Array.isArray(e)?e:e.split("\n").map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.indexOf(":");return -1===t?{label:e,value:""}:{label:e.slice(0,t).trim(),value:e.slice(t+1).trim()}}):[]}a.d(t,{FF:()=>l,Li:()=>r})},57726:(e,t,a)=>{a.d(t,{RichText:()=>o});var r=a(95155),l=a(12115);a(76105);var s=a(84739);function o(e){let{content:t="",anchorId:a}=e,o=(0,l.useRef)(null);return((0,l.useEffect)(()=>{t&&o.current&&(o.current.querySelectorAll(".image-carousel:not(.initialized)").forEach(e=>{let t;e.classList.add("initialized");let a={};try{a=JSON.parse(e.getAttribute("data-carousel-attrs")||"{}")}catch(e){}let r=e.querySelectorAll(".carousel-slide");if(r.forEach(e=>{"a"===e.tagName.toLowerCase()&&e.addEventListener("click",e=>{})}),r.length<=1)return;let l=0,s=t=>{r.forEach((e,a)=>{e.style.opacity=a===t?"1":"0",e.style.pointerEvents=a===t?"auto":"none"}),e.querySelectorAll(".car-dot").forEach((e,a)=>{e.style.opacity=a===t?"1":"0.5"})},o=()=>{++l>=r.length&&(l=a.loop?0:r.length-1),s(l)};if(a.showArrows){let n=document.createElement("button");n.innerHTML="❮",n.style.cssText="position:absolute; left:10px; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:white; border:none; border-radius:50%; width:30px; height:30px; cursor:pointer; z-index:10; display:flex; align-items:center; justify-content:center; padding-bottom:2px;",n.onclick=e=>{e.preventDefault(),--l<0&&(l=a.loop?r.length-1:0),s(l),t&&i()},e.appendChild(n);let d=document.createElement("button");d.innerHTML="❯",d.style.cssText="position:absolute; right:10px; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:white; border:none; border-radius:50%; width:30px; height:30px; cursor:pointer; z-index:10; display:flex; align-items:center; justify-content:center; padding-bottom:2px;",d.onclick=e=>{e.preventDefault(),o(),t&&i()},e.appendChild(d)}if(a.showDots){e.querySelectorAll(".carousel-caption").forEach(e=>{e.classList.add("has-dots")});let a=document.createElement("div");a.style.cssText="position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:10;",r.forEach((e,r)=>{let o=document.createElement("button");o.className="car-dot",o.style.cssText="width:10px; height:10px; border-radius:50%; border:none; background:white; opacity:".concat(0===r?1:.5,"; cursor:pointer; padding:0;"),o.onclick=e=>{e.preventDefault(),s(l=r),t&&i()},a.appendChild(o)}),e.appendChild(a)}let n=()=>{a.autoplay&&(t=setInterval(o,1e3*(a.autoplaySpeed||5)))},i=()=>{clearInterval(t),n()};n()}),o.current.querySelectorAll(".video-wrapper video").forEach(e=>{e.hasAttribute("autoplay")&&(e.muted=!0,e.play().catch(()=>{}))}),o.current.querySelectorAll(".prose-article .file-download-btn, .file-download-btn").forEach(e=>{e.onclick=async t=>{t.preventDefault();let a=e.textContent;e.textContent="Downloading...",e.style.pointerEvents="none",e.style.opacity="0.7";try{let t=e.getAttribute("href"),a=e.getAttribute("download")||"download",r=await fetch(t);if(!r.ok)throw Error("Download failed");let l=await r.blob(),s=URL.createObjectURL(l),o=document.createElement("a");o.href=s,o.download=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(s)}catch(t){window.open(e.getAttribute("href"),"_blank")}finally{e.textContent=a,e.style.pointerEvents="auto",e.style.opacity="1"}}}
1),o.current.querySelectorAll("div[data-math-block]").forEach(e=>{let t=e.getAttribute("data-latex")||"";if(t.includes("\\")||t.includes("{")||t.includes("}")||t.includes("_")||t.includes("^")){let a=function(e){let t=e.replace(/\r\n/g,"\n");if(t.includes("\\")||t.includes("{")||t.includes("}")||t.includes("_")||t.includes("^")){let e=t.split("\n");return e.map((t,a)=>{if(a===e.length-1)return t;let r=t.trim();return r.endsWith("\\\\")||r.endsWith("\\")?t:t+" \\\\"}).join(" ")}return t}(t);try{s.Ay.render(a,e,{throwOnError:!1,displayMode:!0})}catch(a){e.textContent=t}}else e.innerHTML=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")}))},[t]),t)?(0,r.jsx)("section",{id:a||void 0,className:"w-full py-8 bg-transparent scroll-mt-24",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",ref:o,children:(0,r.jsx)("div",{className:"prose-article",dangerouslySetInnerHTML:{__html:t}})})}):null}},59161:(e,t,a)=>{a.d(t,{BlogPostSelector:()=>s});var r=a(95155),l=a(12115);function s(e){let{value:t,onChange:a}=e,[s,o]=(0,l.useState)([]),[n,i]=(0,l.useState)(!0);return((0,l.useEffect)(()=>{!async function(){try{let e=await fetch("/api/editor/blog-posts");if(e.ok){let t=await e.json();o(t.posts||[])}}catch(e){}finally{i(!1)}}()},[]),n)?(0,r.jsx)("div",{style:{fontSize:"13px",color:"#9ca3af",padding:"8px"},children:"Loading blog posts..."}):(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[(0,r.jsxs)("select",{style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"6px",padding:"8px 12px",fontSize:"13px",outline:"none",color:"#111",background:"#fff"},value:t||"",onChange:e=>a(e.target.value),children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"ブログ記事を選択..."}),s.map(e=>(0,r.jsx)("option",{value:e.slug,children:e.title},e.slug))]}),0===s.length&&!n&&(0,r.jsx)("p",{style:{fontSize:"11px",color:"#9ca3af"},children:"記事が見つかりません"})]})}},60932:(e,t,a)=>{a.d(t,{DetailedServiceCard:()=>p});var r=a(95155),l=a(12115),s=a(52619),o=a.n(s),n=a(69656),i=a(17910),d=a(75426),c=a(42529),x=a(12108),m=a(24033);function u(e){let{labels:t,values:a,maxValue:l=5,size:s=180,fillColor:o="rgba(16,185,129,0.2)",strokeColor:n="rgb(16,185,129)",gridColor:i="#e2e8f0",labelColor:d="#475569"}=e,c=s/2,x=s/2,m=.32*s,u=t.length;if(u<3)return null;let g=2*Math.PI/u,b=-Math.PI/2,p=(e,t)=>({x:c+t*Math.cos(b+e*g),y:x+t*Math.sin(b+e*g)}),h=a.map((e,t)=>p(t,Math.min(e,l)/l*m)),f=h.map((e,t)=>"".concat(0===t?"M":"L").concat(e.x,",").concat(e.y)).join(" ")+" Z";return(0,r.jsxs)("svg",{width:s,height:s,viewBox:"0 0 ".concat(s," ").concat(s),className:"mx-auto",children:[[.2,.4,.6,.8,1].map(e=>{let t=Array.from({length:u},(t,a)=>p(a,m*e)).map((e,t)=>"".concat(0===t?"M":"L").concat(e.x,",").concat(e.y)).join(" ")+" Z";return(0,r.jsx)("path",{d:t,fill:"none",stroke:i,strokeWidth:"1"},e)}),Array.from({length:u},(e,t)=>{let a=p(t,m);return(0,r.jsx)("line",{x1:c,y1:x,x2:a.x,y2:a.y,stroke:i,strokeWidth:"1"},t)}),(0,r.jsx)("path",{d:f,fill:o,stroke:n,strokeWidth:"2"}),h.map((e,t)=>(0,r.jsx)("circle",{cx:e.x,cy:e.y,r:"3",fill:n},t)),t.map((e,t)=>{let a=p(t,m+22),l=a.x<c-5?"end":a.x>c+5?"start":"middle";return(0,r.jsx)("text",{x:a.x,y:a.y,textAnchor:l,dominantBaseline:"central",fontSize:"10",fontWeight:"600",fill:d,children:e},t)})]})}function g(e){let{rating:t,max:a=5,color:l="#f59e0b"}=e;return(0,r.jsx)("span",{className:"inline-flex gap-0.5",children:Array.from({length:a},(e,a)=>{let s=a<Math.floor(t),o=!s&&a<t;return(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:s||o?l:"#d1d5db",opacity:o?.5:1,children:(0,r.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.286 3.957a1 1 0 00.95.69h4.162c.969 0 1.371 1.24.588 1.81l-3.37 2.448a1 1 0 00-.364 1.118l1.287 3.957c.3.921-.755 1.688-1.54 1.118l-3.37-2.448a1 1 0 00-1.176 0l-3.37 2.448c-.783.57-1.838-.197-1.539-1.118l1.287-3.957a1 1 0 00-.364-1.118L2.065 9.384c-.783-.57-.38-1.81.588-1.81h4.162a1 1 0 00.95-.69l1.284-3.957z"})},a)})})}let b={default:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm",headerBar:"bg-slate-800",headerText:"text-white",taglineBar:"bg-emerald-500 text-white text-xs py-1 px-4 font-bold",bonusLabel:"text-text-secondary text-xs font-bold",bonusValue:"text-emerald-600 font-bold text-lg",bonusTableBg:"bg-slate-50",bonusTableBorder:"border-slate-200",codeBg:"bg-amber-50 border-amber-300",codeText:"text-amber-700 font-mono font-bold text-sm",featureDot:"text-emerald-500",primaryCta:"bg-emerald-600 hover:bg-emerald-700 text-white font-bold",secondaryLink:"text-emerald-600 hover:text-emerald-700",sectionTitle:"text-text-primary",sectionIcon:"text-emerald-500",radarFill:"rgba(16,185,129,0.2)",radarStroke:"rgb(16,185,129)",
1starColor:"#f59e0b",trustIcon:"text-emerald-500",trustBar:"bg-emerald-500",badgeBg:"bg-slate-50 border-slate-200",badgeIcon:"text-emerald-500",toggleBtn:"text-text-secondary hover:text-text-primary"},warm:{card:"bg-white rounded-2xl border border-orange-200 shadow-sm",headerBar:"bg-gradient-to-r from-orange-600 to-red-600",headerText:"text-white",taglineBar:"bg-orange-500 text-white text-xs py-1 px-4 font-bold",bonusLabel:"text-slate-500 text-xs font-bold",bonusValue:"text-orange-600 font-bold text-lg",bonusTableBg:"bg-orange-50/50",bonusTableBorder:"border-orange-200",codeBg:"bg-orange-50 border-orange-300",codeText:"text-orange-700 font-mono font-bold text-sm",featureDot:"text-orange-500",primaryCta:"bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white font-bold shadow-lg shadow-orange-500/20",secondaryLink:"text-orange-600 hover:text-orange-700",sectionTitle:"text-slate-800",sectionIcon:"text-orange-500",radarFill:"rgba(249,115,22,0.2)",radarStroke:"rgb(249,115,22)",starColor:"#f97316",trustIcon:"text-orange-500",trustBar:"bg-orange-500",badgeBg:"bg-orange-50 border-orange-200",badgeIcon:"text-orange-500",toggleBtn:"text-slate-500 hover:text-slate-700"},professional:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm",headerBar:"bg-slate-900",headerText:"text-white",taglineBar:"bg-amber-500 text-slate-900 text-xs py-1 px-4 font-bold",bonusLabel:"text-slate-500 text-xs font-bold",bonusValue:"text-slate-800 font-bold text-lg",bonusTableBg:"bg-slate-50",bonusTableBorder:"border-slate-200",codeBg:"bg-amber-50 border-amber-400",codeText:"text-slate-800 font-mono font-bold text-sm",featureDot:"text-amber-500",primaryCta:"bg-slate-800 hover:bg-slate-700 text-white font-bold shadow-lg",secondaryLink:"text-slate-600 hover:text-slate-800",sectionTitle:"text-slate-800",sectionIcon:"text-slate-600",radarFill:"rgba(30,41,59,0.15)",radarStroke:"rgb(30,41,59)",starColor:"#d97706",trustIcon:"text-emerald-600",trustBar:"bg-slate-700",badgeBg:"bg-slate-50 border-slate-200",badgeIcon:"text-amber-500",toggleBtn:"text-slate-500 hover:text-slate-700"},ocean:{card:"bg-white rounded-2xl border border-blue-200 shadow-sm",headerBar:"bg-gradient-to-r from-blue-700 to-indigo-700",headerText:"text-white",taglineBar:"bg-cyan-500 text-white text-xs py-1 px-4 font-bold",bonusLabel:"text-slate-500 text-xs font-bold",bonusValue:"text-blue-600 font-bold text-lg",bonusTableBg:"bg-blue-50/50",bonusTableBorder:"border-blue-200",codeBg:"bg-blue-50 border-blue-300",codeText:"text-blue-700 font-mono font-bold text-sm",featureDot:"text-blue-500",primaryCta:"bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white font-bold shadow-lg shadow-blue-600/20",secondaryLink:"text-blue-600 hover:text-blue-700",sectionTitle:"text-slate-800",sectionIcon:"text-blue-500",radarFill:"rgba(59,130,246,0.2)",radarStroke:"rgb(59,130,246)",starColor:"#3b82f6",trustIcon:"text-blue-500",trustBar:"bg-blue-500",badgeBg:"bg-blue-50 border-blue-200",badgeIcon:"text-blue-500",toggleBtn:"text-slate-500 hover:text-slate-700"},forest:{card:"bg-white rounded-2xl border border-emerald-200 shadow-sm",headerBar:"bg-gradient-to-r from-emerald-700 to-teal-700",headerText:"text-white",taglineBar:"bg-green-500 text-white text-xs py-1 px-4 font-bold",bonusLabel:"text-slate-500 text-xs font-bold",bonusValue:"text-emerald-600 font-bold text-lg",bonusTableBg:"bg-emerald-50/50",bonusTableBorder:"border-emerald-200",codeBg:"bg-green-50 border-green-300",codeText:"text-green-700 font-mono font-bold text-sm",featureDot:"text-emerald-500",primaryCta:"bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white font-bold shadow-lg shadow-emerald-600/20",secondaryLink:"text-emerald-600 hover:text-emerald-700",sectionTitle:"text-slate-800",sectionIcon:"text-emerald-500",radarFill:"rgba(16,185,129,0.2)",radarStroke:"rgb(16,185,129)",starColor:"#10b981",trustIcon:"text-emerald-500",trustBar:"bg-emerald-500",badgeBg:"bg-emerald-50 border-emerald-200",badgeIcon:"text-emerald-500",toggleBtn:"text-slate-500 hover:text-slate-700"}};function p(e){let{rank:t=1,name:a="",tagline:s="",logo:p="",overallRating:h=4.6,bonusTitle:f="",bonusAmount:v="",bonusCondition:y="",bonusSpeed:w="",bonusCode:j="",features:N="",primaryCtaText:k="",primaryCtaUrl:C="#",secondaryCtaText:A="",secondaryCtaUrl:S="#",expertTitle:B="",expertDescription:T="",expertAuthor:F="",radarLabels:I="",radarValues:L="5\n4.4\n5\n3.8\n4.2\n5",trustStatus:E="",licenseRating:z=4,licenseName:D="",gameTypes:H="",paymentMethods:M="",supportInfo:R="",serviceBadges:P="",theme:O="default",forceExpanded:U=!1,openInNewTab:_="new",relAttribute:W="sponsored",anchorId:q=""}=e,G=b[O]||b.default,V=(0,n.u)({openInNewTab:_,relAttribute:W}),[J,Y]=(0,l.useState)(U),$=(N||"").split("\n").map(e=>
1e.trim()).filter(Boolean),Z=(I||"").split("\n").map(e=>e.trim()).filter(Boolean),K=(L||"").split("\n").map(e=>parseFloat(e.trim())||0),Q=(H||"").split(",").map(e=>e.trim()).filter(Boolean),X=(M||"").split(",").map(e=>e.trim()).filter(Boolean),ee=(R||"").split("\n").map(e=>e.trim()).filter(Boolean),et=(P||"").split(",").map(e=>e.trim()).filter(Boolean);return(0,r.jsx)("section",{id:q||void 0,className:"w-full py-4 scroll-mt-24",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"".concat(G.card," overflow-hidden"),children:[s&&(0,r.jsx)("div",{className:G.taglineBar,children:s}),(0,r.jsxs)("div",{className:"".concat(G.headerBar," px-6 py-4 flex items-center gap-3"),children:[(0,r.jsx)("span",{className:"text-2xl font-black ".concat(G.headerText),children:t||"?"}),(0,r.jsx)("h2",{className:"text-xl md:text-2xl font-bold ".concat(G.headerText),children:a||""})]}),(0,r.jsx)("div",{className:"p-6",children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-6",children:[(0,r.jsxs)("div",{className:"flex-shrink-0 flex flex-col items-center gap-3",children:[p?(0,r.jsx)("div",{className:"w-52 rounded-xl overflow-hidden border border-slate-200 shadow-sm",children:(0,r.jsx)("img",{src:p,alt:a||"",className:"w-full object-contain"})}):(0,r.jsx)("div",{className:"w-52 h-40 bg-slate-100 rounded-xl flex items-center justify-center text-slate-400"}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"text-sm font-bold text-text-primary",children:h}),(0,r.jsx)(g,{rating:h,color:G.starColor})]})]}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("h3",{className:"text-sm font-bold mb-4 flex items-center gap-2 ".concat(G.sectionTitle),children:[(0,r.jsx)(i.A,{className:"w-4 h-4 ".concat(G.sectionIcon)}),f]}),(0,r.jsx)("div",{className:"rounded-xl border ".concat(G.bonusTableBorder," ").concat(G.bonusTableBg," p-4 mb-4"),children:(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-center",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.bonusLabel,children:"ボーナス額"}),(0,r.jsx)("div",{className:G.bonusValue,children:v})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.bonusLabel,children:"出金条件"}),(0,r.jsx)("div",{className:"font-bold text-text-primary",children:y})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.bonusLabel,children:"処理速度"}),(0,r.jsx)("div",{className:"font-bold text-text-primary",children:w})]}),j&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.bonusLabel,children:"ボーナスコード"}),(0,r.jsxs)("div",{className:"inline-flex items-center gap-1 px-2 py-1 rounded border ".concat(G.codeBg),children:[(0,r.jsx)("span",{className:G.codeText,children:j}),(0,r.jsx)(d.A,{className:"w-3 h-3 text-slate-400 cursor-pointer hover:text-slate-600"})]})]})]})}),$.length>0&&(0,r.jsx)("div",{className:"space-y-1.5 mb-5",children:$.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 text-sm text-text-secondary",children:[(0,r.jsx)(c.A,{className:"w-4 h-4 ".concat(G.featureDot," flex-shrink-0 mt-0.5")}),e]},t))}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[k&&(0,r.jsx)(o(),{href:C||"#",...V,className:"inline-flex items-center justify-center px-8 py-3 rounded-xl transition-all duration-300 text-sm ".concat(G.primaryCta),children:k}),A&&(0,r.jsx)(o(),{href:S||"#",...V,className:"inline-flex items-center gap-1 text-sm font-bold underline ".concat(G.secondaryLink),children:A})]})]})]})}),(0,r.jsxs)("div",{className:"transition-all duration-500 overflow-hidden ".concat(J?"max-h-[3000px] opacity-100":"max-h-0 opacity-0"),children:[(0,r.jsx)("div",{className:"px-6 pb-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,r.jsxs)("div",{className:"border border-slate-200 rounded-xl p-4",children:[(0,r.jsx)("h4",{className:"text-sm font-bold mb-2 flex items-center gap-2 ".concat(G.sectionTitle),children:B||"専門家レビュー"}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:h}),(0,r.jsx)(g,{rating:h,color:G.starColor})]}),T&&(0,r.jsx)("p",{className:"text-xs text-text-secondary leading-relaxed mb-3",children:T}),F&&(0,r.jsxs)("div",{className:"text-xs text-text-secondary",children:["レビュアー: ",F]})]}),(0,r.jsx)("div",{className:"border border-slate-200 rounded-xl p-4 flex items-center justify-center",children:Z.length>=3&&(0,r.jsx)(u,{labels:Z,values:K,fillColor:G.radarFill,strokeColor:G.radarStroke})}),(0,r.jsxs)("div",{className:"border border-slate-200 rounded-xl p-4",children:[(0,r.jsx)("h4",{className:"text-sm font-bold mb-4 flex items-center gap-2 ".concat(G.sectionTitle),children:"信頼性チェック"}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 mb-4",children:[(0,r.jsx)(c.A,{className:"w-10 h-10 ".concat(G.trustIcon)}),(0,r.jsx)("span",{className:"text-sm font-bold text-text-primary",children:E}),(0,r.jsx)("div",{className:"w-full h-1.5 rounded-full ".concat(G.trustBar)})]}),D&&(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-xs font-bold text-text-secondary mb-1",children:"ライセンス"}),(0,r.jsx)("div",{className:"flex items-center justify-center gap-2",children:(0,r.jsx)(g,{rating:z||0,color:G.starColor})}),(0,r.jsx)("div",{className:"text-xs text-text-secondary mt-1",children:D})]})]})]})}),(0,r.jsx)("div",{className:"px-6 pb-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[Q.length>0&&(0,r.jsxs)("div",{className:"border border-slate-200 rounded-xl p-4",children:[(0,r.jsx)("h4",{className:"text-sm font-bold mb-3 flex items-center gap-2 ".concat(G.sectionTitle),children:"ゲームの種類"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:Q.map((e,t)=>(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full bg-slate-100 text-text-secondary",children:[(0,r.jsx)(c.A,{className:"w-3 h-3 ".concat(G.sectionIcon)})," ",e]},t))})]}),X.length>0&&(0,r.jsxs)("div",{className:"border border-slate-200 rounded-xl p-4",children:[(0,r.jsx)("h4",{className:"text-sm font-bold mb-3 flex items-center gap-2 ".concat(G.sectionTitle),children:"決済方法"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:X.map((e,t)=>(0,r.jsx)("span",{className:"text-xs px-2.5 py-1 rounded-lg border border-slate-200 bg-white text-text-secondary",children:e},t))})]}),ee.length>0&&(0,r.jsxs)("div",{className:"border border-slate-200 rounded-xl p-4",children:[(0,r.jsx)("h4",{className:"text-sm font-bold mb-3 flex items-center gap-2 ".concat(G.sectionTitle),children:"カスタマーサポート"}),(0,r.jsx)("div",{className:"space-y-2",children:ee.map((e,t)=>(0,r.jsxs)("div",{className:"text-xs text-text-secondary flex items-start gap-2",children:[(0,r.jsx)(c.A,{className:"w-3 h-3 mt-0.5 ".concat(G.sectionIcon," flex-shrink-0")})," ",e]},t))})]})]})}),et.length>0&&(0,r.jsxs)("div",{className:"px-6 pb-6",children:[(0,r.jsx)("h4",{className:"text-sm font-bold mb-3 flex items-center gap-2 ".concat(G.sectionTitle),children:"サービスバッジ"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-3",children:et.map((e,t)=>(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl border text-sm font-medium text-text-primary ".concat(G.badgeBg),children:[(0,r.jsx)(c.A,{className:"w-4 h-4 ".concat(G.badgeIcon)}),e]},t))})]})]}),(0,r.jsx)("button",{onClick:()=>Y(!J),className:"w-full py-3 text-sm font-bold flex items-center justify-center gap-1 border-t border-slate-100 transition-colors ".concat(G.toggleBtn),children:J?(0,r.jsxs)(r.Fragment,{children:["閉じる ",(0,r.jsx)(x.A,{className:"w-4 h-4"})]}):(0,r.jsxs)(r.Fragment,{children:["詳細を見る ",(0,r.jsx)(m.A,{className:"w-4 h-4"})]})})]})})})}},61370:(e,t,a)=>{a.d(t,{ArticleMagazineFeed:()=>u});var r=a(95155),l=a(12115),s=a(52619),o=a.n(s),n=a(15239),i=a(27937),d=a(95740),c=a(26983),x=a(1524),m=a(23664);function u(e){let{articles:t,title:a="最新の異世界アニメ & ゲーム攻略記事",showSidebar:s=!0,sidebarTitle:u="人気ランキング",categories:g=[]}=e,[b,p]=l.useState(""),[h,f]=l.useState(!1);if(!t||0===t.length)return null;let v=t.slice(0,6),y=t.slice(0,5);return(0,r.jsx)("section",{className:"w-full py-12 md:py-16 bg-transparent",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12",children:[(0,r.jsxs)("div",{className:"lg:col-span-8 space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-[#
1E2E8F0] pb-4",children:[(0,r.jsxs)("h2",{className:"text-2xl sm:text-3xl font-bold text-[#0F172A] flex items-center gap-2",children:[(0,r.jsx)("span",{className:"w-2 h-7 bg-[#0284C7] rounded-full inline-block"}),a]}),(0,r.jsxs)(o(),{href:"/blogs",className:"text-xs sm:text-sm font-semibold text-[#0284C7] hover:text-[#0369A1] flex items-center gap-1 transition-colors",children:["すべて見る ",(0,r.jsx)(i.A,{className:"w-4 h-4"})]})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:v.map((e,t)=>(0,r.jsxs)(o(),{href:"/".concat(e.slug),className:"group bg-white rounded-2xl overflow-hidden border border-[#E2E8F0] hover:border-[#0284C7] hover:shadow-xl transition-all duration-300 flex flex-col justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"relative aspect-[16/10] w-full overflow-hidden bg-slate-100",children:[e.cardImage?(0,r.jsx)(n.default,{src:e.cardImage,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,r.jsx)("div",{className:"w-full h-full bg-[#EEF2FF] flex items-center justify-center text-[#0284C7]",children:(0,r.jsx)(d.A,{className:"w-8 h-8 opacity-40"})}),e.category&&(0,r.jsx)("span",{className:"absolute top-3 left-3 bg-[#1E1B4B] text-white text-[11px] font-semibold px-2.5 py-0.5 rounded-full shadow-sm",children:e.category})]}),(0,r.jsxs)("div",{className:"p-5 space-y-3",children:[(0,r.jsx)("h3",{className:"text-base sm:text-lg font-bold text-[#0F172A] group-hover:text-[#0284C7] transition-colors leading-snug line-clamp-2",children:e.title}),e.excerpt&&(0,r.jsx)("p",{className:"text-xs sm:text-sm text-[#475569] leading-relaxed line-clamp-2",children:e.excerpt})]})]}),(0,r.jsxs)("div",{className:"px-5 pb-5 pt-2 flex items-center justify-between text-xs text-[#475569] border-t border-[#E2E8F0]",children:[e.readingTime&&(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(c.A,{className:"w-3.5 h-3.5 text-[#0284C7]"}),e.readingTime,"分"]}),(0,r.jsxs)("span",{className:"font-semibold text-[#0284C7] group-hover:translate-x-1 transition-transform flex items-center gap-0.5",children:["読む ",(0,r.jsx)(i.A,{className:"w-3 h-3"})]})]})]},e.slug||t))})]}),s&&(0,r.jsxs)("div",{className:"lg:col-span-4 space-y-8",children:[(0,r.jsxs)("div",{className:"bg-white rounded-2xl p-6 border border-[#E2E8F0] shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-6 border-b border-[#E2E8F0] pb-3",children:[(0,r.jsx)(x.A,{className:"w-5 h-5 text-[#C026D3]"}),(0,r.jsx)("h3",{className:"text-lg font-bold text-[#0F172A]",children:u})]}),(0,r.jsx)("div",{className:"space-y-4",children:y.map((e,t)=>(0,r.jsxs)(o(),{href:"/".concat(e.slug),className:"group flex items-start gap-3.5 p-2 rounded-xl hover:bg-[#EEF2FF] transition-colors",children:[(0,r.jsx)("span",{className:"w-6 h-6 rounded-full flex items-center justify-center text-xs font-extrabold shrink-0 ".concat(0===t?"bg-[#C026D3] text-white shadow-sm":1===t?"bg-[#0284C7] text-white":2===t?"bg-[#1E1B4B] text-white":"bg-slate-200 text-[#475569]"),children:t+1}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h4",{className:"text-xs sm:text-sm font-bold text-[#0F172A] group-hover:text-[#0284C7] transition-colors leading-snug line-clamp-2",children:e.title}),e.category&&(0,r.jsx)("span",{className:"text-[11px] text-[#475569] mt-1 inline-block",children:e.category})]})]},e.slug||t))})]}),Array.isArray(g)&&g.length>0&&(0,r.jsxs)("div",{className:"bg-white rounded-2xl p-6 border border-[#E2E8F0] shadow-sm",children:[(0,r.jsx)("h3",{className:"text-base font-bold text-[#0F172A] mb-4 border-b border-[#E2E8F0] pb-2",children:"カテゴリー一覧"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:g.map(e=>(0,r.jsx)(o(),{href:"/".concat(e.slug),className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-[#F1F5F9] text-[#0F172A] hover:bg-[#EEF2FF] hover:text-[#0284C7] transition-all",children:e.japanese},e.slug))})]}),(0,r.jsxs)("div",{className:"bg-[#1E1B4B] text-white rounded-2xl p-6 shadow-md relative overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-[#0284C7]/20 rounded-full blur-2xl pointer-events-none"}),(0,r.jsxs)("div",{className:"relative z-10 space-y-3",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-xl bg-white/10 flex items-center justify-center",children:(0,r.jsx)(m.A,{className:"w-5 h-5 text-[#38BDF8]"})}),(0,r.jsx)("h3",{className:"text-base font-bold leading-tight",children:"最新ニュースレター無料配信"}),(0,r.jsx)("p",{className:"text-xs text-white/80 leading-relaxed",children:"『KING'S RAID』攻略情報や異世界アニメ最新ニュースをお届けします。"}),h?(0,r.jsx)("div",{className:"p-3 bg-white/10 rounded-xl text-xs font-semibold text-[#38BDF8] text-center",children:"ご登録ありがとうございました!"}):(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),b&&f(!0)},className:"space-y-2 pt-1",children:[(0,r.jsx)("input",{type:"email",value:b,onChange:e=>p(e.target.value),placeholder:"メールアドレスを入力",required:!0,className:"w-full px-3 py-2 text-xs rounded-xl bg-white/10 border border-white/20 text-white placeholder:text-white/50 focus:outline-none focus:border-[#38BDF8]"}),(0,r.jsx)("button",{type:"submit",className:"w-full py-2 bg-[#0284C7] hover:bg-[#0369A1] text-white text-xs font-bold rounded-xl transition-all shadow-sm",children:"登録する"})]})]})]})]})]})})})}},62451:(e,t,a)=>{a.r(t),a.d(t,{AuthorProfile:()=>m});var r=a(95155),l=a(12115),s=a(97378),o=a(67161),n=a(20064),i=a(67333),d=a(39068),c=a(20508),x=a(93499);function m(e){let{authorName:t="編集部",authorBio:a="",authorAvatar:m="",authorRole:u="",socialTwitter:g="",s
1ocialInstagram:b="",socialYoutube:p="",socialLinkedin:h="",socialWebsite:f="",theme:v="default",anchorId:y="",dataSource:w="manual",fetchedData:j=null}=e,N="auto"===w&&j?{authorName:j.authorName||t,authorBio:j.authorBio||a,authorAvatar:j.authorAvatar||m,authorRole:j.authorRole||u,socialTwitter:j.socialTwitter||g,socialInstagram:j.socialInstagram||b,socialYoutube:j.socialYoutube||p,socialLinkedin:j.socialLinkedin||h,socialWebsite:j.socialWebsite||f}:{authorName:t,authorBio:a,authorAvatar:m,authorRole:u,socialTwitter:g,socialInstagram:b,socialYoutube:p,socialLinkedin:h,socialWebsite:f},[k,C]=(0,l.useState)(null);(0,l.useEffect)(()=>{"auto"===w&&t&&fetch("/api/editor/author?name=".concat(encodeURIComponent(t))).then(e=>e.ok?e.json():null).then(e=>{e&&C(e)}).catch(()=>{})},[w,t]);let A="auto"===w&&k?{authorName:k.authorName||t,authorBio:k.authorBio||a,authorAvatar:k.authorAvatar||m,authorRole:k.authorRole||u,socialTwitter:k.socialTwitter||g,socialInstagram:k.socialInstagram||b,socialYoutube:k.socialYoutube||p,socialLinkedin:k.socialLinkedin||h,socialWebsite:k.socialWebsite||f}:N,S={default:{bg:"",card:"bg-brand-card",text:"text-text-primary",sub:"text-text-secondary",avatarBg:"bg-brand-accent/30",border:"border-border/20",socialHover:"hover:text-brand-primary hover:bg-brand-accent/20"},warm:{bg:"",card:"bg-orange-50",text:"text-slate-800",sub:"text-slate-500",avatarBg:"bg-orange-100",border:"border-orange-200",socialHover:"hover:text-orange-600 hover:bg-orange-100"},professional:{bg:"bg-slate-900",card:"bg-slate-800",text:"text-white",sub:"text-slate-300",avatarBg:"bg-slate-700",border:"border-slate-600",socialHover:"hover:text-blue-400 hover:bg-slate-700"},ocean:{bg:"",card:"bg-blue-50",text:"text-slate-800",sub:"text-slate-500",avatarBg:"bg-blue-100",border:"border-blue-200",socialHover:"hover:text-blue-600 hover:bg-blue-100"},forest:{bg:"",card:"bg-emerald-50",text:"text-slate-800",sub:"text-slate-500",avatarBg:"bg-emerald-100",border:"border-emerald-200",socialHover:"hover:text-emerald-600 hover:bg-emerald-100"}},B=S[v]||S.default,T=[{url:A.socialTwitter,icon:s.A,label:"Twitter"},{url:A.socialInstagram,icon:o.A,label:"Instagram"},{url:A.socialYoutube,icon:n.A,label:"YouTube"},{url:A.socialLinkedin,icon:i.A,label:"LinkedIn"},{url:A.socialWebsite,icon:d.A,label:"Website"}].filter(e=>e.url);return(0,r.jsx)("section",{id:y||void 0,className:"w-full py-10 ".concat(B.bg," scroll-mt-24"),children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"".concat(B.card," border ").concat(B.border," rounded-2xl p-8 shadow-sm"),children:(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row items-center sm:items-start gap-6",children:[(0,r.jsx)("div",{className:"w-24 h-24 rounded-full ".concat(B.avatarBg," flex items-center justify-center overflow-hidden shrink-0"),children:A.authorAvatar?(0,r.jsx)("img",{src:A.authorAvatar,alt:A.authorName,className:"w-full h-full object-cover"}):(0,r.jsx)(c.A,{className:"w-10 h-10 ".concat("professional"===v?"text-slate-400":"text-brand-primary")})}),(0,r.jsxs)("div",{className:"flex-1 text-center sm:text-left",children:[(0,r.jsx)("h3",{className:"text-xl font-bold mb-1 ".concat(B.text),children:A.authorName}),(0,r.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider ".concat(B.sub," block mb-3"),children:A.authorRole||"AUTHOR"}),A.authorBio&&(0,r.jsx)("p",{className:"text-sm leading-relaxed ".concat(B.sub),children:A.authorBio}),T.length>0&&(0,r.jsx)("div",{className:"flex items-center justify-center sm:justify-start gap-2 mt-4",children:T.map(e=>{let{url:t,icon:a,label:l}=e;return(0,r.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",title:l,className:"w-9 h-9 rounded-full flex items-center justify-center ".concat(B.sub," ").concat(B.socialHover," transition-all duration-200"),children:(0,r.jsx)(a,{className:"w-4 h-4"})},l)})}),(0,r.jsxs)("a",{href:"/author/".concat(encodeURIComponent(A.authorName)),className:"inline-flex items-center gap-1.5 text-sm font-medium mt-4 ".concat("professional"===v?"text-blue-400 hover:text-blue-300":"text-brand-primary hover:underline"," transition-colors"),children:["記事一覧を見る ",(0,r.jsx)(x.A,{className:"w-3.5 h-3.5"})]})]})]})})})})}},63363:(e,t,a)=>{a.d(t,{HeroSection:()=>i});var r=a(95155),l=a(12115),s=a(52619),o=a.n(s),n=a(15239);function i(e){let{articles:t,readTimeSuffix:a="分の記事",tagline:s,title:i,subtitle:d,theme:c}=e,[x,m]=(0,l.useState)(0),[u,g]=(0,l.useState)(!1);return((0,l.useEffect)(()=>
1{if(t.length<=1||u)return;let e=setInterval(()=>{m(e=>(e+1)%t.length)},5e3);return()=>clearInterval(e)},[t.length,u]),t&&0!==t.length)?(0,r.jsxs)("section",{className:"relative py-8 md:py-12 bg-background",children:[(0,r.jsx)("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-[#2D5A27] opacity-[0.03] blur-[100px] rounded-full"}),(0,r.jsx)("div",{className:"container relative z-10 transition-shadow",children:(0,r.jsxs)("div",{className:"relative h-[70vh] md:h-[80vh] lg:h-[85vh] rounded-2xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)]",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[t.map((e,t)=>(0,r.jsxs)(o(),{href:"/".concat(e.slug),className:"absolute inset-0 transition-opacity duration-1000 ".concat(t===x?"opacity-100 z-10":"opacity-0 z-0"),children:[e.cardImage&&(0,r.jsxs)("div",{className:"relative w-full h-full",children:[(0,r.jsx)(n.default,{src:e.cardImage,alt:e.title,fill:!0,className:"object-cover",priority:0===t,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 90vw, 1200px"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-end",children:(0,r.jsx)("div",{className:"w-full px-6 md:px-12 lg:px-16 pb-12 md:pb-16 lg:pb-20",children:(0,r.jsxs)("div",{className:"max-w-3xl",children:[e.category&&(0,r.jsx)("span",{className:"inline-block px-4 py-1.5 bg-[#E06D3B] text-white font-bold text-sm md:text-base rounded-full mb-4 shadow-sm",children:e.category}),(0,r.jsx)("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-4 leading-tight",children:e.title}),e.excerpt&&(0,r.jsx)("p",{className:"text-base md:text-lg lg:text-xl text-white/90 mb-6 line-clamp-2 leading-relaxed",children:e.excerpt}),e.readingTime&&(0,r.jsxs)("div",{className:"flex items-center text-white/80 text-sm md:text-base",children:[(0,r.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),e.readingTime,a]})]})})})]},e.slug)),t.length>1&&(0,r.jsx)("div",{className:"absolute bottom-6 left-1/2 transform -translate-x-1/2 z-20 flex gap-2",children:t.map((e,t)=>(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),m(t)},className:"w-2 h-2 rounded-full transition-all duration-300 ".concat(t===x?"bg-[#E06D3B] w-6":"bg-white/60 hover:bg-white"),"aria-label":"Go to slide ".concat(t+1)},t))})]})})]}):null}},63731:(e,t,a)=>{a.d(t,{FAQ:()=>i});var r=a(95155),l=a(12115),s=a(24033);let o={default:{wrapper:"border border-border/20 rounded-xl overflow-hidden bg-white shadow-sm",questionBg:"bg-[#F9FAFB]",questionHover:"hover:bg-[#FFEFEF]",questionText:"text-text-primary",questionLabel:"text-brand-primary",answerBg:"bg-white",answerBorder:"border-t border-border/20",answerLabel:"text-brand-primary",chevronColor:"text-text-secondary"},minimal:{wrapper:"border-b border-slate-200 last:border-0",questionBg:"bg-transparent",questionHover:"hover:bg-slate-50",questionText:"text-slate-800",questionLabel:"text-slate-400",answerBg:"bg-transparent",answerBorder:"",answerLabel:"text-slate-400",chevronColor:"text-slate-400"},boxed:{wrapper:"rounded-xl overflow-hidden shadow-sm",questionBg:"bg-gradient-to-r from-orange-50 to-red-50",questionHover:"hover:from-orange-100 hover:to-red-100",questionText:"text-slate-800",questionLabel:"text-orange-500",answerBg:"bg-white border border-orange-100",answerBorder:"",answerLabel:"text-orange-500",chevronColor:"text-orange-400"},ocean:{wrapper:"rounded-xl overflow-hidden shadow-sm",questionBg:"bg-gradient-to-r from-blue-50 to-indigo-50",questionHover:"hover:from-blue-100 hover:to-indigo-100",questionText:"text-slate-800",questionLabel:"text-blue-500",answerBg:"bg-white border border-blue-100",answerBorder:"",answerLabel:"text-blue-500",chevronColor:"text-blue-400"},forest:{wrapper:"rounded-xl overflow-hidden shadow-sm",questionBg:"bg-gradient-to-r from-emerald-50 to-teal-50",questionHover:"hover:from-emerald-100 hover:to-teal-100",questionText:"text-slate-800",questionLabel:"text-emerald-500",answerBg:"bg-white border border-emerald-100",answerBorder:"",answerLabel:"text-emerald-500",chevronColor:"text-emerald-400"}},n=[{question:"よくある質問のサンプル",answer:"こちらは回答のサãƒ
1³ãƒ—ルです。"}];function i(e){let{title:t="よくある質問",items:a=n,theme:i="default",anchorId:d=""}=e,[c,x]=(0,l.useState)(null),m=o[i]||o.default;return(0,r.jsx)("section",{id:d||void 0,className:"w-full py-12 scroll-mt-24",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[t&&(0,r.jsx)("h2",{className:"text-2xl font-bold text-text-primary mb-8 text-center",children:t}),(0,r.jsx)("div",{className:"minimal"===i?"divide-y-0":"space-y-4",children:a.map((e,t)=>(0,r.jsxs)("div",{className:m.wrapper,children:[(0,r.jsxs)("button",{onClick:()=>x(c===t?null:t),className:"w-full flex items-center justify-between p-5 ".concat(m.questionBg," ").concat(m.questionHover," transition-colors text-left"),children:[(0,r.jsxs)("span",{className:"font-semibold ".concat(m.questionText),children:[(0,r.jsx)("span",{className:"font-bold mr-2 ".concat(m.questionLabel),children:"Q."}),e.question]}),(0,r.jsx)(s.A,{className:"w-5 h-5 ".concat(m.chevronColor," transition-transform duration-300 ").concat(c===t?"rotate-180":"")})]}),c===t&&(0,r.jsxs)("div",{className:"p-5 ".concat(m.answerBorder," ").concat(m.answerBg),children:[(0,r.jsx)("span",{className:"font-bold mr-2 ".concat(m.answerLabel),children:"A."}),(0,r.jsx)("span",{className:"text-text-primary leading-relaxed",children:e.answer})]})]},t))})]})})}},66877:(e,t,a)=>{a.d(t,{HeroFullWidthSlider:()=>n});var r=a(95155),l=a(12115),s=a(90368),o=a(27937);function n(e){let{slides:t=[],autoplaySpeed:a=5e3,theme:n="default"}=e,[i,d]=(0,l.useState)(0),c=t.length>0?t:[{image:"",title:"スライドを追加してください",tag:"",linkUrl:""}],x=(0,l.useCallback)(()=>d(e=>(e+1)%c.length),[c.length]),m=(0,l.useCallback)(()=>d(e=>(e-1+c.length)%c.length),[c.length]);(0,l.useEffect)(()=>{if(c.length<=1||!a)return;let e=setInterval(x,a);return()=>clearInterval(e)},[x,c.length,a]);let u={default:{overlay:"from-black/70 via-black/30 to-transparent",tag:"bg-brand-primary text-white",dot:"bg-white/40",dotActive:"bg-white"},warm:{overlay:"from-orange-900/70 via-orange-900/20 to-transparent",tag:"bg-orange-500 text-white",dot:"bg-white/40",dotActive:"bg-orange-400"},professional:{overlay:"from-slate-900/80 via-slate-900/40 to-slate-900/10",tag:"bg-slate-700 text-white",dot:"bg-white/30",dotActive:"bg-amber-400"},ocean:{overlay:"from-blue-900/70 via-blue-900/20 to-transparent",tag:"bg-blue-500 text-white",dot:"bg-white/40",dotActive:"bg-blue-300"},forest:{overlay:"from-emerald-900/70 via-emerald-900/20 to-transparent",tag:"bg-emerald-600 text-white",dot:"bg-white/40",dotActive:"bg-emerald-300"}},g=u[n]||u.default;return(0,r.jsxs)("section",{className:"relative w-full h-[50vh] sm:h-[60vh] md:h-[70vh] overflow-hidden group",children:[c.map((e,t)=>(0,r.jsxs)("div",{className:"absolute inset-0 transition-opacity duration-700 ease-in-out ".concat(t===i?"opacity-100 z-10":"opacity-0 z-0"),children:[e.image?(0,r.jsx)("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover"}):(0,r.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-slate-700 to-slate-900 flex items-center justify-center text-slate-500 text-sm",children:"\uD83D\uDCF7 画像を追加"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t ".concat(g.overlay)}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-20 p-6 sm:p-10 md:p-14",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[e.tag&&(0,r.jsx)("span",{className:"inline-block px-3 py-1 text-xs font-bold rounded-md mb-3 ".concat(g.tag),children:e.tag}),(0,r.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold text-white leading-tight max-w-2xl",children:e.title}),e.description&&(0,r.jsx)("p",{className:"text-white/80 text-sm sm:text-base mt-2 max-w-xl line-clamp-2",children:e.description})]})})]},t)),c.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:m,className:"absolute left-4 top-1/2 -translate-y-1/2 z-30 w-10 h-10 rounded-full bg-black/30 backdrop-blur-sm text-white flex items-center justify-center sm:opacity-0 sm:group-hover:opacity-100 transition-opacity hover:bg-black/50",children:(0,r.jsx)(s.A,{className:"w-5 h-5"})}),(0,r.jsx)("button",{onClick:x,className:"absolute right-4 top-1/2 -translate-y-1/2 z-30 w-10 h-10 rounded-full bg-black/30 backdrop-blur-sm text-white flex items-center justify-center sm:opacity-0 sm:group-hover:opacity-100 transition-opacity hover:bg-black/50",children:(0,r.jsx)(o.A,{className:"w-5 h-5"})})]}),c.length>1&&(0,r.jsx)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-30 flex items-center gap-2",children:c.map((e,t)=>(0,r.jsx)("button",{onClick:()=>d(t),className:"w-3 h-3 rounded-full transition-all duration-300 ".concat(t===i?"".concat(g.dotActive," scale-110"):"".concat(g.dot," hover:bg-white/60"))},t))})]})}},69656:(e,t,a)=>{a.d(t,{V:()=>r,u:()=>l});let r={openInNewTab:{type:"radio",label:"Open in new tab?",options:[{label:"Yes",value:"new"},{label:"No",value:"same"}]},relAttribute:{type:"select",label:"Link Rel Attribute",options:[{label:"Default (follow)",value:"follow"},{label:"Nofollow",value:"nofollow"},{label:"Sponsored",value:"sponsored"},{label:"UGC",value:"ugc"},{label:"None",value:""}]}};function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a="same",r="follow";"string"==typeof e?(a=e,r=t||"follow"):e&&(a=e.openInNewTab||"same",r=e.relAttribute||"follow");let l="new"===a||"_blank"===a;return{target:l?"_blank":void 0,rel:l?r||"noopener noreferrer":r||void 0}}},70571:(e,t,a)=>{a.d(t,{SiteCategoryTabsEditor:()=>n});var r=a(95155),l=a(12115),s=a(49053);let o=[{slug:"demo-article-1",title:"サンプル記事 1 — 『KING'S RAID』キャラクター育成 & 最強攻略ガイド",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"キンスレ攻略",readingTime:5},{slug:"demo-article-2",title:"サンプル記事 2 — 2026年絶対見るべきおすすめ異世界ファンタジーアニメ",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"異世界アニメ",readingTime:4},{slug:"demo-article-3",title:"サンプル記事 3 — キンスレ女性キャラ人気ランキング & 最強パーティ編成",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"女性キャラアニメ",readingTime:4},{slug:"demo-article-4",title:"サンプル記事 4 — 話題のアニメパチスロ最新台スペック比較 & 攻略立ち回り",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"アニメスロット",readingTime:6}];function n(e){let{title:t,subtitle:a,articles:n}=e,[i,d]=l.useState(o),[c,x]=l.useState([]),m=(n||[]).join(",");return l.useEffect(()=>{let e=!0,t=m?"/api/editor/articles?mode=bySlugs&slugs=".concat(encodeURIComponent(m)):"/api/editor/articles?mode=latest&count=12";async function a(){try{let t=await fetch("/api/editor/articles?mode=categories");if(!t.ok)return;let a=await t.json();e&&Array.isArray(a.categories)&&x(a.categories)}catch(e){}}return async function(){try{let a=await fetch(t);if(!a.ok)return;let r=await a.json();e&&Array.isArray(r.articles)&&r.articles.length>0?d(r.articles):e&&d(o)}catch(t){e&&d(o)}}(),a(),()=>{e=!1}},[m]),(0,r.jsx)(s.CategoryShowcaseTabs,{title:t,subtitle:a,categories:c,allArticles:i})}},77253:(e,t,a)=>{a.d(t,{WysiwygField:()=>eX});var r=a(95155),l=a(12115);a(76105);var s=a(4337),o=a(54765),n=a(43419),i=a(56135),d=a(76341),c=a(19148),x=a(21670),m=a(8624),u=a(63660),g=a(12751),b=a(75699),p=a(78336),h=a(22984),f=a(79371),v=a(34036),y=a(55404),w=a(31363),j=a(93759),N=a(67327),k=a(85210),C=a(93777),A=a(30232),S=a(91933),B=a(63827),T=a(76908),F=a(90079),I=a(35299),L=a(42196),E=a(60890),z=a(77676),D=a(43586),H=a(71613),M=a(14122),R=a(96548),P=a(12108),O=a(24033),U=a(47937),_=a(11002),W=a(7125),q=a(9602),G=a(67048),V=a(44615),J=a(3829),Y=a(69602),$=a(96420),Z=a(60053),K=a(39926),Q=a(36458),X=a(53881),ee=a(3538),et=a(80430
1),ea=a(61283),er=a(64689),el=a(97239),es=a(80003),eo=a(75159),en=a(5789),ei=a(97947),ed=a(52056),ec=a(50859),ex=a(91456),em=a(55874),eu=a(21873),eg=a(17181),eb=a(7842),ep=a(51860),eh=a(80021),ef=a(17787),ev=a(49027),ey=a(27587),ew=a(51876);let ej=(0,S.$)(B.l),eN=T.YY.create({name:"fontSize",addGlobalAttributes:()=>[{types:["textStyle"],attributes:{fontSize:{default:null,parseHTML:e=>e.style.fontSize||null,renderHTML:e=>e.fontSize?{style:"font-size: ".concat(e.fontSize)}:{}}}}]}),ek=T.YY.create({name:"lineHeight",addGlobalAttributes:()=>[{types:["paragraph","heading"],attributes:{lineHeight:{default:null,parseHTML:e=>e.style.lineHeight||null,renderHTML:e=>e.lineHeight?{style:"line-height: ".concat(e.lineHeight)}:{}}}}]}),eC=T.YY.create({name:"anchorId",addGlobalAttributes:()=>[{types:["heading","paragraph"],attributes:{id:{default:null,parseHTML:e=>e.getAttribute("id")||null,renderHTML:e=>e.id?{id:e.id}:{}}}}]}),eA=[{label:"Font Family",value:""},{label:"Sans Serif",value:"Inter, system-ui, sans-serif"},{label:"Serif",value:'Georgia, "Times New Roman", serif'},{label:"Monospace",value:'"Fira Code", "Courier New", monospace'},{label:"Outfit",value:"Outfit, sans-serif"},{label:"Noto Sans JP",value:'"Noto Sans JP", sans-serif'}],eS=[{label:"Font Size",value:""},{label:"12px",value:"12px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"18px",value:"18px"},{label:"20px",value:"20px"},{label:"24px",value:"24px"},{label:"32px",value:"32px"}],eB=[{label:"Line Height",value:""},{label:"1.0",value:"1"},{label:"1.2",value:"1.2"},{label:"1.5",value:"1.5"},{label:"1.8",value:"1.8"},{label:"2.0",value:"2"}],eT={Smileys:["\uD83D\uDE00","\uD83D\uDE02","\uD83E\uDD79","\uD83D\uDE0A","\uD83D\uDE0E","\uD83E\uDD14","\uD83D\uDE0D","\uD83E\uDD73","\uD83D\uDE34","\uD83E\uDD2F","\uD83D\uDE31","\uD83E\uDEE1","\uD83D\uDC4B","\uD83D\uDC4D","\uD83D\uDC4E","❤️","\uD83D\uDD25","⭐","✅","❌"],Nature:["\uD83C\uDF38","\uD83C\uDF3A","\uD83C\uDF3B","\uD83C\uDF3F","\uD83C\uDF40","\uD83C\uDF33","\uD83D\uDC15","\uD83D\uDC08","\uD83E\uDD8B","\uD83C\uDF19","☀️","\uD83C\uDF08","⛅","\uD83D\uDCA7","\uD83C\uDF43","\uD83C\uDF0A","\uD83D\uDDFB","\uD83C\uDFD4️","\uD83C\uDF3E","\uD83C\uDF41"],Objects:["\uD83D\uDCF1","\uD83D\uDCBB","\uD83D\uDCF7","\uD83C\uDFB5","\uD83D\uDCDA","✏️","\uD83D\uDCCC","\uD83D\uDCA1","\uD83D\uDD11","⏰","\uD83D\uDCCA","\uD83D\uDDC2️","\uD83D\uDCCE","\uD83D\uDD17","\uD83D\uDEE0️","⚙️","\uD83C\uDFE0","\uD83D\uDE97","✈️","\uD83D\uDE80"]},eF=[{hex:"#6D2323",label:"Primary Dark"},{hex:"#A31D1D",label:"Primary"},{hex:"#F48F68",label:"Accent"},{hex:"#8BDFDD",label:"Teal"}],eI=[{hex:"#111827",label:"Black"},{hex:"#4B5563",label:"Gray"},{hex:"#1e40af",label:"Blue"},{hex:"#047857",label:"Green"},{hex:"#7c3aed",label:"Purple"},{hex:"#ea580c",label:"Orange"},{hex:"#dc2626",label:"Red"}],eL=[{hex:"#FEF9C3",label:"Yellow"},{hex:"#DCFCE7",label:"Green"},{hex:"#DBEAFE",label:"Blue"},{hex:"#FCE7F3",label:"Pink"},{hex:"#FFEDD5",label:"Orange"},{hex:"#F3E8FF",label:"Purple"}],eE=[{hex:"#A31D1D",label:"Red"},{hex:"#6D2323",label:"Dark"},{hex:"#1e40af",label:"Blue"},{hex:"#047857",label:"Green"},{hex:"#111827",label:"Black"},{hex:"#7c3aed",label:"Purple"}],ez={info:{icon:"ℹ️",bg:"#EFF6FF",border:"#3B82F6",label:"Info"},warning:{icon:"⚠️",bg:"#FFFBEB",border:"#F59E0B",label:"Warning"},success:{icon:"✅",bg:"#F0FDF4",border:"#22C55E",label:"Success"},danger:{icon:"\uD83D\uDD34",bg:"#FEF2F2",border:"#EF4444",label:"Danger"},tip:{icon:"\uD83D\uDCA1",bg:"#FAF5FF",border:"#A855F7",label:"Tip"}},eD=T.bP.create({name:"videoBlock",group:"block",atom:!0,addAttributes:()=>({src:{default:null},style:{default:null,parseHTML:e=>e.getAttribute("style"),renderHTML:e=>e.style?{style:e.style}:{}},controls:{default:!0,parseHTML:e=>"false"!==e.getAttribute("data-controls"),renderHTML:e=>({"data-controls":e.controls?"true":"false"})},autoplay:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-autoplay"),renderHTML:e=>({"data-autoplay":e.autoplay?"true":"false"})},loop:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-loop"),renderHTML:e=>({"data-loop":e.loop?"true":"false"})},muted:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-muted"),renderHTML:e=>({"data-muted":e.muted?"true":"false"})}}),parseHTML:()=>
1[{tag:"div[data-video-block]",getAttrs:e=>{let t=e.querySelector("video"),a=e.querySelector("iframe");return{src:(null==t?void 0:t.getAttribute("src"))||(null==a?void 0:a.getAttribute("src"))||null,style:e.getAttribute("style")||null,controls:"false"!==e.getAttribute("data-controls"),autoplay:"true"===e.getAttribute("data-autoplay"),loop:"true"===e.getAttribute("data-loop"),muted:"true"===e.getAttribute("data-muted")}}}],renderHTML(e){let{HTMLAttributes:t}=e,{src:a,style:r}=t,l="false"!==t["data-controls"],s="true"===t["data-autoplay"],o="true"===t["data-loop"],n="true"===t["data-muted"],i=/youtube\.com|youtu\.be/i.test(a||""),d={"data-video-block":"","data-controls":l?"true":"false","data-autoplay":s?"true":"false","data-loop":o?"true":"false","data-muted":n?"true":"false",class:"video-wrapper",style:r||""};if(i){var c;let e=null==(c=a.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i))?void 0:c[1],t=[];s&&(t.push("autoplay=1"),t.push("mute=1")),o&&(t.push("loop=1"),e&&t.push("playlist=".concat(e))),!1===l&&t.push("controls=0");let n=t.length>0?"?".concat(t.join("&")):"",i=e?"https://www.youtube.com/embed/".concat(e).concat(n):a,x=r||"";return!x.includes("height: auto")&&x.includes("height:")||x.includes("aspect-ratio:")||(x+="; aspect-ratio: 16/9;"),["div",d,["iframe",{src:i,frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:"true",style:"width:100%; height:100%; border:none;"}]]}return["div",d,["video",{src:a,...l?{controls:""}:{},...s?{autoplay:""}:{},...o?{loop:""}:{},...n?{muted:""}:{},style:"width:100%; height:100%;"}]]}}),eH=T.bP.create({name:"calloutBlock",group:"block",atom:!0,addAttributes:()=>({calloutType:{default:"info"},text:{default:""}}),parseHTML:()=>[{tag:"div[data-callout]",getAttrs:e=>{var t,a,r;return{calloutType:e.getAttribute("data-callout")||"info",text:(null==(t=e.querySelector(".callout-content"))?void 0:t.innerHTML)||(null==(a=e.querySelector(".callout-content"))?void 0:a.textContent)||(null==(r=e.textContent)?void 0:r.replace(/^[ℹ️⚠️✅🔴💡]\s*/,"").trim())||""}}}],renderHTML(e){let{node:t}=e,a=t.attrs.calloutType||"info",r=ez[a]||ez.info;return["div",{"data-callout":a,class:"callout callout-".concat(a)},["span",{class:"callout-icon"},r.icon],["div",{class:"callout-content"},t.attrs.text||""]]}}),eM=T.bP.create({name:"imageGallery",group:"block",atom:!0,addAttributes:()=>({images:{default:[]},columns:{default:3},gap:{default:"md"},borderRadius:{default:"md"},imageHeight:{default:"auto"},equalHeight:{default:"250px"},alignment:{default:"center"},maxWidth:{default:"100%"},lightbox:{default:!0}}),parseHTML:()=>[{tag:"div[data-image-gallery]",getAttrs:e=>{try{return JSON.parse(e.getAttribute("data-gallery-attrs")||"{}")}catch(e){return{}}}}],renderHTML(e){let{node:t}=e,{images:a,columns:r,gap:l,borderRadius:s,imageHeight:o,equalHeight:n,alignment:i,maxWidth:d,lightbox:c}=t.attrs,x={none:"0",sm:"8px",md:"16px",lg:"24px"},m="display:grid; grid-template-columns:repeat(".concat(r,",1fr); gap:").concat({sm:"8px",md:"16px",lg:"24px"}[l]||"16px","; width:100%; max-width:").concat(d,"; margin-left:").concat("left"===i?"0":"auto","; margin-right:").concat("right"===i?"0":"auto",";"),u="equal"===o?"width:100%; height:".concat(n,"; object-fit:cover; border-radius:").concat(x[s]||"0","; display:block;"):"width:100%; height:auto; object-fit:cover; border-radius:".concat(x[s]||"0","; display:block;"),g=[];return a.forEach(e=>{let t={src:e.src,alt:e.alt||"",style:u};c&&e.url&&(t["data-link-url"]=e.url);let a=[];!c&&e.url?a.push(["a",{href:e.url,target:"_blank",rel:"noopener noreferrer",style:"display:block; text-decoration:none;"},["img",t]]):a.push(["img",t]);let r=[];e.caption&&r.push(e.caption),r.length>0&&a.push(["figcaption",{style:"text-align:center; font-size:0.85rem; margin-top:0.5rem; opacity:0.8;"},...r]),g.push(["figure",{class:"gallery-item"},...a])}),["div",{"data-image-gallery":"","data-gallery-attrs":JSON.stringify(t.attrs),"data-lightbox":c?"true":"false",class:"image-gallery cols-".concat(r," gap-").concat(l," radius-").concat(s),style:m},...g]}}),eR=T.bP.create({name:"ctaButton",group:"block",atom:!0,addAttributes:()=>({text:{default:"Click Here"},url:{default:"#"},btnStyle:{default:"filled"},color:{default:"#A31D1D"},size:{default:"md"},target:{default:"_self"},align:{default:"center"},borderRadius:{default:"md"}}),parseHTML:()=>[{tag:"div[data-cta-button]",getAttrs:e=>{let t=e.querySelector("a");if(!t)return{};let a=t.className||"",r=t.getAttribute("style")||"",l="filled";a.includes("cta-outline")?l="outline":a.includes("cta-ghost")&&(l="ghost");let s="md";a.includes("cta-sm")?s="sm":a.includes("cta-lg")&&(s="lg");
1let o="#A31D1D",n=r.match(/background:\s*([^;]+)/),i=r.match(/(?:^|;)\s*color:\s*([^;]+)/),d=r.match(/border:[^;]*solid\s+([^;]+)/);"filled"===l&&n?o=n[1].trim():"outline"===l&&d?o=d[1].trim():"ghost"===l&&i&&(o=i[1].trim());let c="md",x=r.match(/border-radius:\s*([^;]+)/);if(x){let e=x[1].trim();c="4px"===e?"sm":"16px"===e?"lg":"9999px"===e?"full":"md"}let m=e.getAttribute("style")||"",u="center",g=m.match(/text-align:\s*([^;]+)/);return g&&(u=g[1].trim()),{text:t.textContent||"Click Here",url:t.getAttribute("href")||"#",btnStyle:l,color:o,size:s,target:t.getAttribute("target")||"_self",align:u,borderRadius:c}}}],renderHTML(e){let{node:t}=e,{text:a,url:r,btnStyle:l,color:s,size:o,target:n,align:i,borderRadius:d}=t.attrs,c="border-radius: ".concat({sm:"4px",md:"8px",lg:"16px",full:"9999px"}[d]||"8px","; ");return"filled"===l?c+="background: ".concat(s,"; color: #fff; "):"outline"===l?c+="background: transparent; border: 2px solid ".concat(s,"; color: ").concat(s,"; "):c+="background: transparent; color: ".concat(s,"; "),["div",{"data-cta-button":"",class:"cta-wrapper",style:"text-align: ".concat(i,";")},["a",{href:r,target:n,..."_blank"===n?{rel:"noopener noreferrer"}:{},class:"cta-btn cta-".concat(l," ").concat({sm:"cta-sm",md:"cta-md",lg:"cta-lg"}[o]||"cta-md"),style:c.trim()},a]]}}),eP=T.bP.create({name:"detailsBlock",group:"block",atom:!0,addAttributes:()=>({summary:{default:"Click to expand"},content:{default:""},open:{default:!1},items:{default:[]}}),parseHTML:()=>[{tag:"div[data-accordion-group]",getAttrs:e=>{try{return{items:JSON.parse(e.getAttribute("data-accordion-items")||"[]")}}catch(e){return{}}}},{tag:"details[data-details-block]",getAttrs:e=>{var t,a;return{summary:(null==(t=e.querySelector("summary"))?void 0:t.textContent)||"Click to expand",content:(null==(a=e.querySelector(".details-content"))?void 0:a.innerHTML)||"",open:e.hasAttribute("open")}}}],renderHTML(e){let{node:t}=e;if(t.attrs.items&&t.attrs.items.length>0){let e=t.attrs.items.map(e=>["details",{"data-details-item":"",class:"details-block",style:"margin:0;",...e.open?{open:"open"}:{}},["summary",{class:"details-summary"},e.summary||"Click to expand"],["div",{class:"details-content"},e.content||""]]);return["div",{"data-accordion-group":"","data-accordion-items":JSON.stringify(t.attrs.items),class:"accordion-group",style:"display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0;"},...e]}return["details",{"data-details-block":"",class:"details-block",...t.attrs.open?{open:"open"}:{}},["summary",{class:"details-summary"},t.attrs.summary],["div",{class:"details-content"},t.attrs.content||""]]}}),eO=d.A.extend({addAttributes(){var e;return{...null==(e=this.parent)?void 0:e.call(this),id:{default:null,parseHTML:e=>e.getAttribute("id"),renderHTML:e=>e.id?{id:e.id}:{}}}}}),eU=T.bP.create({name:"tableOfContents",group:"block",atom:!0,addAttributes:()=>({title:{default:"\uD83D\uDCD1 Table of Contents"},headings:{default:[]}}),parseHTML:()=>[{tag:"div[data-toc-block]",getAttrs:e=>{try{var t;return{title:(null==(t=e.querySelector(".toc-title"))?void 0:t.textContent)||"\uD83D\uDCD1 Table of Contents",headings:JSON.parse(e.getAttribute("data-toc-headings")||"[]")}}catch(e){return{}}}}],renderHTML(e){let{node:t}=e,{title:a,headings:r}=t.attrs,l=r.map(e=>["li",{style:"padding: 0.2rem 0; list-style: none; display: flex; align-items: center; gap: 0.5rem; margin: 0;"},["span",{style:"color: #3B82F6; font-size: 0.5rem; line-height: 1; flex-shrink: 0;
1 margin-top: 1px;"},"●"],["a",{href:"#".concat(e.id),style:"color: #3B82F6; text-decoration: none; font-size: 0.9rem; font-weight: 500; line-height: 1.4;"},e.text]]);return["div",{"data-toc-block":"","data-toc-headings":JSON.stringify(r),class:"toc-block",style:"padding: 1.25rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; margin: 1.5rem 0;"},["p",{class:"toc-title",style:"font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; color: #1f2937;"},a],["ul",{style:"padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; list-style: none;"},...l]]}}),e_=T.bP.create({name:"imageCarousel",group:"block",atom:!0,addAttributes:()=>({images:{default:[]},autoplay:{default:!1},autoplaySpeed:{default:5},loop:{default:!0},showArrows:{default:!0},showDots:{default:!0},transition:{default:"slide"},borderRadius:{default:"8px"},maxWidth:{default:"100%"},height:{default:"400px"}}),parseHTML:()=>[{tag:"div[data-image-carousel]",getAttrs:e=>{try{return JSON.parse(e.getAttribute("data-carousel-attrs")||"{}")}catch(e){return{}}}}],renderHTML(e){let{node:t}=e,{images:a,showArrows:r,showDots:l,borderRadius:s,maxWidth:o,height:n,autoplay:i,autoplaySpeed:d,loop:c,transition:x}=t.attrs,m="position:relative; max-width:".concat(o,"; margin:1.5rem auto; border-radius:").concat(s,"; overflow:hidden; height:").concat(n,";"),u=a.map((e,t)=>{let a="position:absolute; inset:0; opacity:"+(0===t?"1":"0")+"; transition: opacity 0.5s ease; display:block; text-decoration:none;",r=[["img",{src:e.src,alt:e.alt||"",style:"width:100%; height:100%; object-fit:cover; display:block;"}]];if(e.caption&&""!==e.caption.trim()&&r.push(["div",{class:l?"carousel-caption has-dots":"carousel-caption"},e.caption]),e.url&&""!==e.url.trim()){let l=e.url.trim();return l.match(/^https?:\/\//)||l.startsWith("/")||l.startsWith("mailto:")||(l="https://"+l),["a",{href:l,target:"_blank",rel:"noopener noreferrer",class:"carousel-slide".concat(0===t?" active":""),style:a+" cursor:pointer;"},...r]}return["div",{class:"carousel-slide".concat(0===t?" active":""),style:a},...r]});return["div",{"data-image-carousel":"","data-carousel-attrs":JSON.stringify(t.attrs),class:"image-carousel",style:m},...u]}}),eW=T.bP.create({name:"fileAttachment",group:"block",atom:!0,addAttributes:()=>({src:{default:""},filename:{default:""},filesize:{default:""},filetype:{default:""}}),parseHTML:()=>[{tag:"div[data-file-attachment]",getAttrs:e=>{var t;return{src:(null==(t=e.querySelector("a"))?void 0:t.getAttribute("href"))||"",filename:e.getAttribute("data-filename")||"",filesize:e.getAttribute("data-filesize")||"",filetype:e.getAttribute("data-filetype")||""}}}],renderHTML(e){let{node:t}=e,{src:a,filename:r,filesize:l,filetype:s}=t.attrs,o={pdf:"\uD83D\uDCC4",zip:"\uD83D\uDDDC️",doc:"\uD83D\uDCDD",docx:"\uD83D\uDCDD",xls:"\uD83D\uDCCA",xlsx:"\uD83D\uDCCA",ppt:"\uD83D\uDCCA",pptx:"\uD83D\uDCCA"}[null==s?void 0:s.toLowerCase()]||"\uD83D\uDCCE";return["div",{"data-file-attachment":"","data-filename":r,"data-filesize":l,"data-filetype":s,class:"file-attachment-card"},["span",{class:"file-icon"},o],["div",{class:"file-info"},["span",{class:"file-name"},r],["span",{class:"file-size"},l]],["a",{href:a,download:r,target:"_blank",class:"file-download-btn"},"⬇ Download"]]}}),eq=T.bP.create({name:"audioBlock",group:"block",atom:!0,addAttributes:()=>({src:{default:""},title:{default:""}}),parseHTML:()=>[{tag:"div[data-audio-block]",getAttrs:e=>{var t;return{src:(null==(t=e.querySelector("audio"))?void 0:t.getAttribute("src"))||"",title:e.getAttribute("data-title")||""}}}],renderHTML(e){let{node:t}=e;return["div",{"data-audio-block":"","data-title":t.attrs.title,class:"audio-player-card"},["div",{class:"audio-title"},"\uD83C\uDFB5 ".concat(t.attrs.title||"Audio")],["audio",{src:t.attrs.src,controls:"",style:"width:100%;"}]]}}),eG=T.bP.create({name:"googleMaps",group:"block",atom:!0,addAttributes:()=>({address:{default:""},height:{default:"350px"}}),parseHTML:()=>[{tag:"div[data-google-maps]",getAttrs:e=>{var t;return{address:e.getAttribute("data-address")||"",height:(null==(t=e.querySelector("iframe"))?void 0:t.style.height)||"350px"}}}],renderHTML(e){let{node:t}=e,a=encodeURIComponent(t.attrs.address);return["div",{"data-google-maps":"","data-address":t.attrs.address,class:"maps-embed"},["iframe",{src:"https://maps.google.com/maps?q=".concat(a,"&t=&z=15&ie=UTF8&iwloc=&output=embed"),style:"width:100%; height:".concat(t.attrs.height,"; border:none; border-radius:12px;"),loading:"lazy",allowfullscreen:"true",referrerpolicy:"no-referrer-when-downgrade"}]]}}),eV=T.bP.create({name:"socialEmbed",group:"block",atom:!0,addAttributes:()=>({url:{default:""},platform:{default:""}}),parseHTML:()=>[{tag:"div[data-social-embed]",getAttrs:e=>({url:e.getAttribute("data-url")||"",platform:e.getAttribute("data-platform")||""})}],renderHTML(e){let{node:t}=e,{url:a,platform:r}=t.attrs;
1return["div",{"data-social-embed":"","data-url":a,"data-platform":r,class:"social-embed-card",style:"margin: 1.5rem 0;"},["a",{href:a,target:"_blank",rel:"noopener noreferrer",class:"social-embed-link"},"\uD83D\uDD17 ".concat(r?r.charAt(0).toUpperCase()+r.slice(1):"Social"," Post — ").concat(a)]]}});function eJ(e){let t=e.replace(/\r\n/g,"\n");if(t.includes("\\")||t.includes("{")||t.includes("}")||t.includes("_")||t.includes("^")){let e=t.split("\n");return e.map((t,a)=>{if(a===e.length-1)return t;let r=t.trim();return r.endsWith("\\\\")||r.endsWith("\\")?t:t+" \\\\"}).join(" ")}return t}let eY=T.bP.create({name:"mathBlock",group:"block",atom:!0,addAttributes:()=>({latex:{default:""}}),parseHTML:()=>[{tag:"div[data-math-block]",getAttrs:e=>({latex:e.getAttribute("data-latex")||e.textContent||""})}],renderHTML(e){let{node:t}=e,r=t.attrs.latex||"",l=r.includes("\\")||r.includes("{")||r.includes("}")||r.includes("_")||r.includes("^"),s="";if(l){let e=eJ(r);try{s=a(70704).renderToString(e,{throwOnError:!1,displayMode:!0})}catch(e){s=r}}else s=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />");if("undefined"!=typeof document){let e=document.createElement("div");return e.setAttribute("data-math-block",""),e.setAttribute("data-latex",r),e.className="math-block",e.innerHTML=s,e}return["div",{"data-math-block":"","data-latex":r,class:"math-block"},r]}}),e$=T.bP.create({name:"pdfViewer",group:"block",atom:!0,addAttributes:()=>({src:{default:""},filename:{default:""},height:{default:"600px"}}),parseHTML:()=>[{tag:"div[data-pdf-viewer]",getAttrs:e=>({src:e.getAttribute("data-src")||"",filename:e.getAttribute("data-filename")||"",height:e.getAttribute("data-height")||"600px"})}],renderHTML(e){let{node:t}=e;return["div",{"data-pdf-viewer":"","data-src":t.attrs.src,"data-filename":t.attrs.filename,"data-height":t.attrs.height,class:"pdf-viewer-block",style:"position: relative; width: 100%; height: ".concat(t.attrs.height,"; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; margin: 1.5rem 0;")},["iframe",{src:t.attrs.src,style:"width: 100%; height: 100%; border: none;",title:t.attrs.filename||"PDF Document"}]]}});function eZ(e){let{img:t,onRemove:a,onUpdate:l}=e,{attributes:s,listeners:o,setNodeRef:n,transform:i,transition:d}=(0,ev.gl)({id:t.id}),c={transform:ey.Ks.Transform.toString(i),transition:d};return(0,r.jsxs)("div",{ref:n,style:c,className:"flex items-start gap-3 p-3 bg-gray-50 rounded-lg border border-gray-200",children:[(0,r.jsx)("div",{...s,...o,className:"cursor-grab mt-2 text-gray-400 hover:text-gray-600",title:"Drag to reorder",children:"☰"}),(0,r.jsx)("img",{src:t.src,alt:t.alt,className:"w-16 h-16 object-cover rounded-md flex-shrink-0"}),(0,r.jsxs)("div",{className:"flex-1 space-y-1.5 min-w-0",children:[(0,r.jsx)("input",{type:"text",value:t.alt||"",onChange:e=>l("alt",e.target.value),placeholder:"Alt text",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"}),(0,r.jsx)("input",{type:"text",value:t.caption||"",onChange:e=>l("caption",e.target.value),placeholder:"Caption (optional)",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"}),(0,r.jsx)("input",{type:"text",value:t.url||"",onChange:e=>l("url",e.target.value),placeholder:"Link URL (optional)",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]}),(0,r.jsx)("button",{onClick:a,className:"text-red-400 hover:text-red-600 mt-2 flex-shrink-0",title:"Remove",children:"✕"})]})}function eK(){return new URLSearchParams(window.location.search).get("token")||""}function eQ(e){let{image:t,onEdit:a,onLeave:s}=e,[o,n]=(0,l.useState)({top:0,right:0});return(0,l.useEffect)(()=>{let e=()=>{var e;let a=t.getBoundingClientRect(),r=null==(e=t.offsetParent)?void 0:e.getBoundingClientRect();r&&n({top:a.top-r.top+8,right:r.right-a.right+8})};e();let a=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}},[t]),(0,r.jsx)("button",{type:"button",onClick:a,onMouseLeave:s,className:"floating-image-edit-btn absolute bg-blue-600 hover:bg-blue-700 text-white font-semibold text-[11px] px-2.5 py-1 rounded-md shadow-md z-[1000] transition-all flex items-center gap-1 select-none border-none cursor-pointer",style:{to
1p:"".concat(o.top,"px"),right:"".concat(o.right,"px")},children:"✏️ Edit"})}function eX(e){let{value:t,onChange:d}=e,[S,B]=(0,l.useState)(!1),[T,ey]=(0,l.useState)(!1),[eX,e0]=(0,l.useState)(!1),[e1,e2]=(0,l.useState)(""),[e5,e4]=(0,l.useState)(""),[e6,e3]=(0,l.useState)("100%"),[e8,e7]=(0,l.useState)("auto"),[e9,te]=(0,l.useState)("center"),[tt,ta]=(0,l.useState)(null),[tr,tl]=(0,l.useState)(null),[ts,to]=(0,l.useState)(!1),tn=(0,l.useRef)(null),[ti,td]=(0,l.useState)(!1),[tc,tx]=(0,l.useState)(""),[tm,tu]=(0,l.useState)(!1),[tg,tb]=(0,l.useState)(!1),[tp,th]=(0,l.useState)("left"),[tf,tv]=(0,l.useState)("left"),[ty,tw]=(0,l.useState)(""),[tj,tN]=(0,l.useState)(""),[tk,tC]=(0,l.useState)(!1),[tA,tS]=(0,l.useState)("url"),[tB,tT]=(0,l.useState)(""),[tF,tI]=(0,l.useState)(!1),[tL,tE]=(0,l.useState)("100%"),[tz,tD]=(0,l.useState)("auto"),[tH,tM]=(0,l.useState)("16:9"),[tR,tP]=(0,l.useState)("center"),[tO,tU]=(0,l.useState)("8px"),[t_,tW]=(0,l.useState)(!1),[tq,tG]=(0,l.useState)(!1),[tV,tJ]=(0,l.useState)(!1),[tY,t$]=(0,l.useState)(!0),tZ=(0,l.useRef)(null),[tK,tQ]=(0,l.useState)(null),[tX,t0]=(0,l.useState)(!1),[t1,t2]=(0,l.useState)("left"),[t5,t4]=(0,l.useState)(0),[t6,t3]=(0,l.useState)(0),[t8,t7]=(0,l.useState)(!1),[t9,ae]=(0,l.useState)(!1),[at,aa]=(0,l.useState)(!1),[ar,al]=(0,l.useState)(""),[as,ao]=(0,l.useState)("info"),[an,ai]=(0,l.useState)(null),[ad,ac]=(0,l.useState)(!1),[ax,am]=(0,l.useState)([]),[au,ag]=(0,l.useState)(3),[ab,ap]=(0,l.useState)("md"),[ah,af]=(0,l.useState)("md"),[av,ay]=(0,l.useState)("auto"),[aw,aj]=(0,l.useState)("250px"),[aN,ak]=(0,l.useState)("center"),[aC,aA]=(0,l.useState)("100%"),[aS,aB]=(0,l.useState)(!0),[aT,aF]=(0,l.useState)(!1),aI=(0,l.useRef)(null),[aL,aE]=(0,l.useState)(null),[az,aD]=(0,l.useState)(!1),[aH,aM]=(0,l.useState)("Click Here"),[aR,aP]=(0,l.useState)(""),[aO,aU]=(0,l.useState)("filled"),[a_,aW]=(0,l.useState)("#A31D1D"),[aq,aG]=(0,l.useState)("md"),[aV,aJ]=(0,l.useState)("_self"),[aY,a$]=(0,l.useState)("center"),[aZ,aK]=(0,l.useState)("md"),[aQ,aX]=(0,l.useState)(""),[a0,a1]=(0,l.useState)(null),[a2,a5]=(0,l.useState)(!1),[a4,a6]=(0,l.useState)([]),[a3,a8]=(0,l.useState)(!1),[a7,a9]=(0,l.useState)(5),[re,rt]=(0,l.useState)(!0),[ra,rr]=(0,l.useState)(!0),[rl,rs]=(0,l.useState)(!0),[ro,rn]=(0,l.useState)("slide"),[ri,rd]=(0,l.useState)("8px"),[rc,rx]=(0,l.useState)("100%"),[rm,ru]=(0,l.useState)("400px"),[rg,rb]=(0,l.useState)(!1),rp=(0,l.useRef)(null),[rh,rf]=(0,l.useState)(null),[rv,ry]=(0,l.useState)(!1),[rw,rj]=(0,l.useState)([]),[rN,rk]=(0,l.useState)(null),[rC,rA]=(0,l.useState)(!1),[rS,rB]=(0,l.useState)(""),[rT,rF]=(0,l.useState)(""),[rI,rL]=(0,l.useState)(""),[rE,rz]=(0,l.useState)(""),[rD,rH]=(0,l.useState)(!1),rM=(0,l.useRef)(null),[rR,rP]=(0,l.useState)(null),[rO,rU]=(0,l.useState)(!1),[r_,rW]=(0,l.useState)(""),[rq,rG]=(0,l.useState)(""),[rV,rJ]=(0,l.useState)(!1),rY=(0,l.useRef)(null),[r$,rZ]=(0,l.useState)(null),[rK,rQ]=(0,l.useState)(!1),[rX,r0]=(0,l.useState)(""),[r1,r2]=(0,l.useState)("350px"),[r5,r4]=(0,l.useState)(null),[r6,r3]=(0,l.useState)(!1),[r8,r7]=(0,l.useState)(""),[r9,le]=(0,l.useState)(null),[lt,la]=(0,l.useState)(!1),[lr,ll]=(0,l.useState)(""),[ls,lo]=(0,l.useState)(null),[ln,li]=(0,l.useState)(!1),[ld,lc]=(0,l.useState)(""),[lx,lm]=(0,l.useState)(""),[lu,lg]=(0,l.useState)("600px"),[lb,lp]=(0,l.useState)(null),[lh,lf]=(0,l.useState)(!1),lv=(0,l.useRef)(null),[ly,lw]=(0,l.useState)(!1),lj=(0,l.useRef)(null),[lN,lk]=(0,l.useState)({isOpen:!1,title:"Notification",message:""}),lC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Notification";lk({isOpen:!0,title:t,message:e})},[lA,lS]=(0,l.useState)(!1),[lB,lT]=(0,l.useState)("\uD83D\uDCD1 Table of Contents"),[lF,lI]=(0,l.useState)([]),[lL,lE]=(0,l.useState)(null),[lz,lD]=(0,l.useState)(!1),[lH,lM]=(0,l.useState)(!1),[lR,lP]=(0,l.useState)(!1);(0,l.useEffect)(()=>{B(!0)},[]),(0,l.useEffect)(()=>{let e=setInterval(()=>{document.querySelectorAll(".image-carousel:not(.initialized)").forEach(e=>{let t;e.classList.add("initialized");let a={};try{a=JSON.parse(e.getAttribute("data-carousel-attrs")||"{}")}catch(e){}let r=e.querySelectorAll(".carousel-slide");
1if(r.forEach(e=>{"a"===e.tagName.toLowerCase()&&e.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),e.href&&window.open(e.href,"_blank")})}),r.length<=1)return;let l=0,s=t=>{r.forEach((e,a)=>{e.style.opacity=a===t?"1":"0",e.style.pointerEvents=a===t?"auto":"none"}),e.querySelectorAll(".car-dot").forEach((e,a)=>{e.style.opacity=a===t?"1":"0.5"})},o=()=>{++l>=r.length&&(l=a.loop?0:r.length-1),s(l)};if(a.showArrows){let n=document.createElement("button");n.innerHTML="❮",n.style.cssText="position:absolute; left:10px; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:white; border:none; border-radius:50%; width:30px; height:30px; cursor:pointer; z-index:10; display:flex; align-items:center; justify-content:center; padding-bottom:2px;",n.onclick=e=>{e.preventDefault(),--l<0&&(l=a.loop?r.length-1:0),s(l),t&&i()},e.appendChild(n);let d=document.createElement("button");d.innerHTML="❯",d.style.cssText="position:absolute; right:10px; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:white; border:none; border-radius:50%; width:30px; height:30px; cursor:pointer; z-index:10; display:flex; align-items:center; justify-content:center; padding-bottom:2px;",d.onclick=e=>{e.preventDefault(),o(),t&&i()},e.appendChild(d)}if(a.showDots){e.querySelectorAll(".carousel-caption").forEach(e=>{e.classList.add("has-dots")});let a=document.createElement("div");a.style.cssText="position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:10;",r.forEach((e,r)=>{let o=document.createElement("button");o.className="car-dot",o.style.cssText="width:10px; height:10px; border-radius:50%; border:none; background:white; opacity:".concat(0===r?1:.5,"; cursor:pointer; padding:0;"),o.onclick=e=>{e.preventDefault(),s(l=r),t&&i()},a.appendChild(o)}),e.appendChild(a)}let n=()=>{a.autoplay&&(t=setInterval(o,1e3*(a.autoplaySpeed||5)))},i=()=>{clearInterval(t),n()};n()})},1e3);return()=>{clearInterval(e),lj.current&&clearTimeout(lj.current)}},[]);let lO=(0,s.hG)({extensions:[o.A.configure({heading:!1,link:!1,underline:!1,codeBlock:!1}),eO.configure({levels:[1,2,3,4]}),n.A,y.A,w.A,j.A,eN,ek,eC,N.A,k.A.configure({nested:!0}),C.A.configure({lowlight:ej}),A.A,u.Ay.extend({addAttributes(){var e;return{...null==(e=this.parent)?void 0:e.call(this),style:{default:null,parseHTML:e=>e.getAttribute("style"),renderHTML:e=>e.style?{style:e.style}:{}}}}}).configure({inline:!1,allowBase64:!0,HTMLAttributes:{class:"rounded-md max-w-full h-auto"}}),i.Ay.configure({openOnClick:!1,HTMLAttributes:{class:"text-[#3B82F6] underline cursor-pointer"}}),c.A.configure({types:["heading","paragraph","image"]}),m.xJ,x.A,g.Ay.configure({multicolor:!0}),b.XI.configure({resizable:!0}),p.A,h.A,f.h,v.Ay.configure({inline:!1,ccLanguage:"ja",HTMLAttributes:{class:"rounded-lg"}}),eD,eH,eM,eR,eP,e_,eW,eq,eG,eV,eY,e$,eU],content:t||"",onUpdate:e=>{let{editor:t}=e,a=t.getHTML();lU.current=a,d(a),t7(t.isActive("table")),lj.current&&clearTimeout(lj.current),lj.current=setTimeout(()=>{if(t.isDestroyed)return;let e=!1;if(t.state.doc.descendants(t=>{"heading"!==t.type.name||t.attrs.id||(e=!0)}),!e){let a=[];t.state.doc.descendants(e=>{"heading"===e.type.name&&a.push({level:e.attrs.level,text:e.textContent,id:e.attrs.id})}),t.state.doc.descendants(t=>{"tableOfContents"===t.type.name&&JSON.stringify(t.attrs.headings||[])!==JSON.stringify(a)&&(e=!0)})}if(e){let e=t.state.tr,a=!1;t.state.doc.descendants((t,r)=>{if("heading"===t.type.name&&!t.attrs.id){let l=t.textContent.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-|-$/g,"")||"h-".concat(Date.now());e.setNodeMarkup(r,void 0,{...t.attrs,id:l}),a=!0}});let r=[],l=a?e.doc:t.state.doc;l.descendants(e=>{if("heading"===e.type.name){let t=e.textContent,a=e.attrs.id;r.push({level:e.attrs.level,text:t,id:a})}}),l.descendants((t,l)=>{"tableOfContents"===t.type.name&&JSON.stringify(t.attrs.headings||[])!==JSON.stringify(r)&&(e.setNodeMarkup(l,void 0,{...t.attrs,headings:r}),a=!0)}),a&&e.steps.length>0&&t.view.dispatch(e)}},1e3)},onSelectionUpdate:e=>{let{editor:t}=e;t7(t.isActive("table"))},editorProps:{attributes:{class:"prose-article max-w-none focus:outline-none min-h-[200px] p-4 bg-white text-gray-900 rounded-b-md border border-gray-200 border-t-0",style:"color: #111827;"},handleClick:(e,t,a)=>{let r=e.state.doc.nodeAt(t);if(!r)return!1;let l=a.target;if("calloutBlock"===r.type.name&&l.closest("[data-callout]"))return al(r.attrs.text||""),ao(r.attrs.calloutType||"info"),ai(t),aa(!0),!0;if("imageGallery"===r.type.name&&l.closest("[data-image-gallery]")){let e=r.attrs;return am((e.images||[]).map((e,t)=>({id:"img-".concat(t,"-").concat(Date.now()),...e}))),ag(e.columns||3),ap(e.gap||"md"),af(e.borderRadius||"md"),ay(e.imageHeight||"auto"),aj(e.equalHeight||"250px"),ak(e.alignment||"center"),aA(e.maxWidth||"100%"),aB(!1!==e.lightbox),aE(t),ac(!0),!0}if("ctaButton"===r.type.name&&l.closest("[data-cta-button]"))return aM(r.attrs.text||"Click Here"),aP(r.attrs.url||""),aU(r.attrs.btnStyle||"filled"),aW(r.attrs.color||"#A31D1D"),aG(r.attrs.size||"md"),aJ(r.attrs.target||"_self"),a$(r.attrs.al
1ign||"center"),aK(r.attrs.borderRadius||"md"),a1(t),aD(!0),!0;if("videoBlock"===r.type.name&&l.closest("[data-video-block]")){tT(r.attrs.src||"");let e=r.attrs.style||"",a=e.match(/width:\s*([^;]+)/),l=e.match(/height:\s*([^;]+)/),s=e.match(/aspect-ratio:\s*([^;]+)/),o=e.match(/border-radius:\s*([^;]+)/);if(tE(a?a[1].trim():"100%"),tD(l?l[1].trim():"auto"),s){let e=s[1].trim().replace("/",":");["16:9","4:3","1:1"].includes(e)?tM(e):tM("auto")}else tM("auto");return tU(o?o[1].trim():"8px"),e.includes("margin-left: auto")&&e.includes("margin-right: auto")?tP("center"):e.includes("margin-left: auto")?tP("right"):tP("left"),t$(!1!==r.attrs.controls),tW(!!r.attrs.autoplay),tG(!!r.attrs.loop),tJ(!!r.attrs.muted),tS("url"),tQ(t),tC(!0),!0}if("image"===r.type.name&&"IMG"===l.tagName){lO.chain().focus().setNodeSelection(t).run();let e=r.attrs.style||"",a=e.match(/width:\s*([^;]+)/),l=e.match(/height:\s*([^;]+)/);return e3(a?a[1].trim():"100%"),e7(l?l[1].trim():"auto"),e2(r.attrs.src||""),e4(r.attrs.alt||""),e.includes("margin-left: auto")&&e.includes("margin-right: auto")?te("center"):e.includes("margin-left: auto")?te("right"):te("left"),ta(t),e0(!0),!0}if("detailsBlock"===r.type.name&&(l.closest("[data-details-block]")||l.closest("[data-accordion-group]")))return r.attrs.items&&r.attrs.items.length>0?rj(r.attrs.items.map(e=>({...e,id:e.id||Date.now().toString()+Math.random()}))):rj([{id:Date.now().toString(),summary:r.attrs.summary||"Click to expand",content:r.attrs.content||"",open:!!r.attrs.open}]),rk(t),ry(!0),!0;if("imageCarousel"===r.type.name&&l.closest("[data-image-carousel]")){let e=r.attrs;return a6((e.images||[]).map((e,t)=>({id:"car-".concat(t,"-").concat(Date.now()),...e}))),a8(!!e.autoplay),a9(e.autoplaySpeed||5),rt(!1!==e.loop),rr(!1!==e.showArrows),rs(!1!==e.showDots),rn(e.transition||"slide"),rd(e.borderRadius||"8px"),rx(e.maxWidth||"100%"),ru(e.height||"400px"),rf(t),a5(!0),!0}if("fileAttachment"===r.type.name&&l.closest("[data-file-attachment]"))return rB(r.attrs.src||""),rF(r.attrs.filename||""),rL(r.attrs.filesize||""),rz(r.attrs.filetype||""),rP(t),rA(!0),!0;if("audioBlock"===r.type.name&&l.closest("[data-audio-block]"))return rW(r.attrs.src||""),rG(r.attrs.title||""),rZ(t),rU(!0),!0;if("googleMaps"===r.type.name&&l.closest("[data-google-maps]"))return r0(r.attrs.address||""),r2(r.attrs.height||"350px"),r4(t),rQ(!0),!0;if("socialEmbed"===r.type.name&&l.closest("[data-social-embed]"))return r7(r.attrs.url||""),le(t),r3(!0),!0;if("mathBlock"===r.type.name&&l.closest("[data-math-block]"))return ll(r.attrs.latex||""),lo(t),la(!0),!0;if("pdfViewer"===r.type.name&&l.closest("[data-pdf-viewer]"))return lc(r.attrs.src||""),lm(r.attrs.filename||""),lg(r.attrs.height||"600px"),lp(t),li(!0),!0;if("tableOfContents"===r.type.name&&l.closest("[data-toc-block]")){let e=[];return lO.state.doc.descendants(t=>{if("heading"===t.type.name){let a=t.textContent,r=t.attrs.id||a.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-|-$/g,"")||"h-".concat(Date.now());e.push({level:t.attrs.level,text:a,id:r})}}),lT(r.attrs.title||"\uD83D\uDCD1 Table of Contents"),lI(e),lE(t),lS(!0),!0}return!1}}}),lU=(0,l.useRef)(t);if((0,l.useEffect)(()=>{lO&&t!==lO.getHTML()&&t!==lU.current&&(lO.commands.setContent(t||""),lU.current=t)},[t,lO]),(0,l.useEffect)(()=>{if(!lO||!lO.view)return;let e=e=>{let t=e.target;if("IMG"===t.tagName&&!t.closest(".image-gallery")&&!t.closest(".image-carousel")&&!t.closest(".gallery-item"))try{let e=lO.view.posAtDOM(t,0);tl({element:t,pos:e})}catch(e){}},t=e=>{if("IMG"===e.target.tagName){let t=e.relatedTarget;t&&t.closest(".floating-image-edit-btn")||tl(null)}},a=lO.view.dom;return a.addEventListener("mouseover",e),a.addEventListener("mouseout",t),()=>{a.removeEventListener("mouseover",e),a.removeEventListener("mouseout",t)}},[lO]),(0,l.useEffect)(()=>{let e=e=>{let t=e.target;tm&&!t.closest(".color-picker-dropdown")&&tu(!1),tg&&!t.closest(".highlight-picker-dropdown")&&tb(!1),tX&&!t.closest(".table-picker-dropdown")&&(t0(!1),t4(0),t3(0)),t9&&!t.closest(".callout-dropdown")&&ae(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[tm,tg,tX,t9]),!S)return(0,r.jsx)("div",{className:"min-h-[250px] w-full bg-white rounded-md animate-pulse border border-gray-200"});if(!lO)return null;let l_=()=>{""===tc?lO.chain().focus().extendMarkRange("link").unsetLink().run():lO.chain().focus().extendMarkRange("link").setLink({href:tc}).run(),td(!1)},lW=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];if(a){ey(!0);try{let e=a.name.split(".").pop()||"bin",t=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),r=a.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),l="websites/editor/images/".concat(r,"_").concat(t,".").concat(e),s=eK(),o=await (0,F.Se)(l,a,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:s})});e2(o.url),e5||e4(r.replace(/_/g," "))}catch(e){lC("Failed to upload image.","Upload Error")}finally{ey(!1),tn.current&&(tn.current.value="")}}},lq=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!lO)return;if(t){e2(""),e4(""),e3("100%"),e7("auto"),te("center"),ta(null),e0(!0);return}let a=e,r={};if(null===a){let{selection:e}=lO.state;
1e instanceof ew.nh&&"image"===e.node.type.name&&(a=e.from,r=e.node.attrs)}else{let e=lO.state.doc.nodeAt(a);e&&"image"===e.type.name&&(r=e.attrs)}if(null!==a&&r.src){e2(r.src||""),e4(r.alt||"");let e=r.style||"",t=e.match(/width:\s*([^;]+)/),l=e.match(/height:\s*([^;]+)/);e3(t?t[1].trim():"100%"),e7(l?l[1].trim():"auto"),e.includes("margin-left: auto")&&e.includes("margin-right: auto")?te("center"):e.includes("margin-left: auto")?te("right"):te("left"),ta(a)}else e2(""),e4(""),e3("100%"),e7("auto"),te("center"),ta(null);e0(!0)},lG=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];if(a){tI(!0);try{let e=a.name.split(".").pop()||"bin",t=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),r=a.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),l="websites/editor/videos/".concat(r,"_").concat(t,".").concat(e),s=eK(),o=await (0,F.Se)(l,a,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:s})});tT(o.url),tS("url")}catch(e){lC("Failed to upload video.","Upload Error")}finally{tI(!1),tZ.current&&(tZ.current.value="")}}},lV=async e=>{let t=Array.from(e.target.files||[]);if(t.length){aF(!0);try{let e=eK(),a=await Promise.all(t.map(async t=>{let a=t.name.split(".").pop()||"bin",r=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),l=t.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),s="websites/editor/images/".concat(l,"_").concat(r,".").concat(a),o=await (0,F.Se)(s,t,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:e})});return{id:"img-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),src:o.url,alt:"",caption:""}}));am(e=>[...e,...a])}catch(e){lC("Failed to upload one or more images.","Upload Error")}finally{aF(!1),aI.current&&(aI.current.value="")}}},lJ=async e=>{let t=Array.from(e.target.files||[]);if(t.length){rb(!0);try{let e=eK(),a=await Promise.all(t.map(async t=>{let a=t.name.split(".").pop()||"bin",r=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),l=t.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),s="websites/editor/images/".concat(l,"_").concat(r,".").concat(a),o=await (0,F.Se)(s,t,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:e})});return{id:"car-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),src:o.url,alt:"",caption:""}}));a6(e=>[...e,...a])}catch(e){lC("Failed to upload images.","Upload Error")}finally{rb(!1),rp.current&&(rp.current.value="")}}},lY=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];if(a){rH(!0);try{let e=a.name.split(".").pop()||"bin",t=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),r=a.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),l="websites/editor/files/".concat(r,"_").concat(t,".").concat(e),s=eK(),o=await (0,F.Se)(l,a,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:s})});rB(o.url),rF(a.name),rL(a.size<1048576?"".concat((a.size/1024).toFixed(1)," KB"):"".concat((a.size/1048576).toFixed(1)," MB")),rz(e)}catch(e){lC("Failed to upload file.","Upload Error")}finally{rH(!1),rM.current&&(rM.current.value="")}}},l$=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];if(a){rJ(!0);try{let e=a.name.split(".").pop()||"bin",t=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),r=a.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),l="websites/editor/audio/".concat(r,"_").concat(t,".").concat(e),s=eK(),o=await (0,F.Se)(l,a,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:s})});rW(o.url),rq||rG(a.name.replace(/\.[^.]+$/,""))}catch(e){lC("Failed to upload audio.","Upload Error")}finally{rJ(!1),rY.current&&(rY.current.value="")}}},lZ=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];if(a){lf(!0);try{let e=a.name.split(".").pop()||"pdf",t=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),r=a.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),l="websites/editor/files/".concat(r,"_").concat(t,".").concat(e),s=eK(),o=await (0,F.Se)(l,a,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:s})});lc(o.url),lm(a.name)}catch(e){lC("Failed to upload PDF.","Upload Error")}finally{lf(!1),lv.current&&(lv.current.value="")}}},lK=e=>{let{isActive:t=!1,onClick:a,children:l,title:s,disabled:o=!1}=e;return(0,r.jsx)("button",{type:"button",disabled:o,onClick:e=>{e.preventDefault(),e.stopPropagation(),a&&a(e)},title:s,className:"p-1.5 rounded transition-colors disabled:opacity-50",style:{backgroundColor:t?"#E5E7EB":"transparent",color:t?"#111827":"#4B5563",border:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:o?"not-allowed":"pointer"},onMouseEnter:e=>{t||o||(e.currentTarget.style.backgroundColor="#F3F4F6",e.currentTarget.style.color="#111827")},onMouseLeave:e=>{t||o||(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#4B5563")},children:l})},lQ=e=>{let{options:t,value:a,onChange:l,size:s="sm"}=e;return(0,r.jsx)("div",{className:"flex gap-1",children:t.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>l(e.value),className:"".concat("xs"===s?"px-2 py-0.5 text-[10px]":"px-2.5 py-1 text-xs"," rounded-md font-medium transition-all ").concat(a===e.value?"bg-blue-100 text-blue-700 border-blue-300 border shadow-sm":"bg-gray-50 text-gray-600 border-gray-200 border hover:bg-gray-100"),children:e.label},e.value))})};return(0,r.jsxs)("div",{className:"flex flex-col w-full bg-white rounded-md border border-gray-200 relative",children:[(0,r.jsx)("style",{children:"\n  /* ─── Typography & Headings ─── */\n  .prose-article h1, .ProseMirror h1 { font-size: 2.25rem !important; font-weight: 700 !important; line-height: 1.3; margin-top: 2.5rem; margin-bottom: 1.25rem; color: hsl(var(--foreground)); }\n  .prose-article h2, .ProseMirror h2 { font-size: 1.875rem !important; font-weight: 700 !important; line-height: 1.3; margin-top: 2rem; margin-bottom: 1rem; color: hsl(var(--foreground)); }\n  .prose-article h3, .ProseMirror h3 { font-size: 1.5rem !important; font-weight: 600 !important; line-height: 1.4; margin-top: 1.5rem; margin-bottom: 0.75rem; color: hsl(var(--foreground)); }\n  .prose-article h4, .ProseMirror h4 { font-size: 1.25rem !important; font-weight: 600 !important; line-height: 1.4; margin-top: 1.25rem; margin-bottom: 0.5rem; color: hsl(var(--foreground)); }\n  .prose-article p, .ProseMirror p { margin-bottom: 1.25rem; line-height: 1.8; color: hsl(var(--foreground)); }\n  .prose-article strong, .prose-article b, .ProseMirror strong, .ProseMirror b { font-weight: 700 !important; }\n  \n  /* ─── Lists (Bullet, Numbered) ─── */\n  .prose-article ul, .ProseMirror ul { list-style-type: disc !important; padding-left: 1.5rem; margin-bottom: 1rem; }\n  .prose-article ol, .ProseMirror ol { list-style-type: decimal !important; padding-left: 1.5rem; margin-bottom: 1rem; }\n  .prose-article li, .ProseMirror li { margin-bottom: 0.25rem; line-height: 1.7; }\n  \n  /* ─── Links ─── */\n  .prose-article a, .ProseMirror a { color: var(--color-primary, #E88FA3); text-decoration: underline; }\n  .prose-article a:hover, .ProseMirror a:hover { color: var(--color-primary, #E88FA3); opacity: 0.8; }
1\n  \n  /* ─── Code Formatting ─── */\n  .prose-article :not(pre) > code, .ProseMirror :not(pre) > code { background: hsl(var(--muted)); padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.875em; }\n  .prose-article pre, .ProseMirror pre { background: hsl(var(--muted)); color: hsl(var(--foreground)); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1rem; }\n  .prose-article pre code, .ProseMirror pre code { background: transparent !important; padding: 0 !important; border-radius: 0 !important; font-weight: normal !important; font-family: \"Fira Code\", \"Courier New\", monospace; font-size: 0.875rem; }\n  .prose-article pre code .hljs-keyword, .ProseMirror pre code .hljs-keyword { color: #c678dd; }\n  .prose-article pre code .hljs-string, .ProseMirror pre code .hljs-string { color: #98c379; }\n  .prose-article pre code .hljs-comment, .ProseMirror pre code .hljs-comment { color: #5c6370; font-style: italic; }\n  .prose-article pre code .hljs-number, .ProseMirror pre code .hljs-number { color: #d19a66; }\n  .prose-article pre code .hljs-function, .ProseMirror pre code .hljs-function { color: #61afef; }\n  .prose-article pre code .hljs-title, .ProseMirror pre code .hljs-title { color: #61afef; }\n  .prose-article pre code .hljs-built_in, .ProseMirror pre code .hljs-built_in { color: #e5c07b; }\n  .prose-article pre code .hljs-attr, .ProseMirror pre code .hljs-attr { color: #d19a66; }\n  .prose-article pre code .hljs-tag, .ProseMirror pre code .hljs-tag { color: #e06c75; }\n  \n  /* ─── Blockquotes ─── */\n  .prose-article blockquote, .ProseMirror blockquote { position: relative; border-left: 4px solid var(--color-primary, #E88FA3); padding: 1.25rem 1.5rem 1.25rem 3.25rem; margin: 1.5rem 0; color: hsl(var(--muted-foreground)); font-style: italic; background: rgba(232, 143, 163, 0.05); border-radius: 4px 12px 12px 4px; }\n  .prose-article blockquote::before, .ProseMirror blockquote::before { content: '“'; position: absolute; top: 0.25rem; left: 1rem; font-size: 3rem; font-family: Georgia, serif; color: var(--color-accent, #C9A646); line-height: 1; }\n  \n  /* ─── Dividers & Tables ─── */\n  .prose-article hr, .ProseMirror hr { border: none; border-top: 2px solid var(--color-border, #EFE6DD); margin: 2rem 0; }\n  .prose-article table, .ProseMirror table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }\n  .prose-article th, .ProseMirror th { background: var(--color-primary, #E88FA3); font-weight: 600; text-align: left; color: var(--color-primary-foreground, #ffffff); }\n  .prose-article td, .prose-article th, .ProseMirror td, .ProseMirror th { border: 1px solid var(--color-border, #EFE6DD); padding: 0.75rem 1rem; }\n  .prose-article tr:nth-child(even), .ProseMirror tr:nth-child(even) { background: rgba(232, 143, 163, 0.02); }\n  \n  /* ─── Callout Blocks ─── */\n  .prose-article .callout, .ProseMirror .callout { display: flex; gap: 0.75rem; padding: 1rem 1.25rem; border-left: 4px solid; border-radius: 0 8px 8px 0; margin: 1.5rem 0; cursor: pointer; }\n  .prose-article .callout:hover, .ProseMirror .callout:hover { opacity: 0.85; }\n  .prose-article .callout-icon, .ProseMirror .callout-icon { font-size: 1.25rem; flex-shrink: 0; padding-top: 2px; }\n  .prose-article .callout-content, .ProseMirror .callout-content { flex: 1; min-width: 0; }\n  .prose-article .callout-info, .ProseMirror .callout-info { background: rgba(123, 170, 141, 0.08); border-color: var(--color-secondary, #7BAA8D); }\n  .prose-article .callout-warning, .ProseMirror .callout-warning { background: rgba(201, 166, 70, 0.08); border-color: var(--color-accent, #C9A646); }\n  .prose-article .callout-success, .ProseMirror .callout-success { background: rgba(123, 170, 141, 0.08); border-color: var(--color-secondary, #7BAA8D); }\n  .prose-article .callout-danger, .ProseMirror .callout-danger { background: rgba(232, 143, 163, 0.08); border-color: var(--color-primary, #E88FA3); }\n  .prose-article .callout-tip, .ProseMirror .callout-tip { background: rgba(201, 166, 70, 0.08); border-color: var(--color-accent, #C9A646); }\n  \n  /* ─── Details / Accordion ─── */\n  .prose-article .details-block, .ProseMirror .details-block { margin: 1.5rem 0; border: 1px solid var(--color-border, #EFE6DD); border-radius: 12px; overflow: hidden; }\n  .prose-article .details-summary, .ProseMirror .details-summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; background: hsl(var(--muted)); border-bottom: 1px solid var(--color-border, #EFE6DD); user-select: none; list-style: none; display: flex; align-items: center; gap: 0.5rem; }\n  .prose-article .details-summary::before, .ProseMirror .details-summary::before { content: '▶'; font-size: 0.75rem; transition: transform 0.2s; }\n  .prose-article details[open] .details-summary::before, .ProseMirror details[open] .details-summary::before { transform: rotate(90deg); }\n  \n  /* ─── Word Counter ─── */\n  .word-counter-bar { padding: 0.375rem 0.75rem; border-top: 1px solid var(--color-border, #EFE6DD); background: hsl(var(--muted)); display: flex; justify-content: flex-end; gap: 1rem; }\n  .word-counter-bar span { font-size: 0.7rem; color: hsl(var(--muted-foreground)); font-weight: 500; }\n\n  /* ─── Hover Edit Icons (editor-only) ─── */\n  .prose-article div[data-callout],\n  .prose-article div[data-embedded-component],\n  .prose-article div[data-vi
1deo-block],\n  .prose-article div[data-image-gallery],\n  .prose-article div[data-cta-button],\n  .prose-article div[data-image-carousel],\n  .prose-article div[data-accordion-group],\n  .prose-article div[data-toc-block],\n  .prose-article div[data-file-attachment],\n  .prose-article div[data-audio-block],\n  .prose-article div[data-google-maps],\n  .prose-article div[data-social-embed],\n  .prose-article div[data-math-block],\n  .prose-article div[data-pdf-viewer],\n  .prose-article img,\n  .prose-article table {\n    position: relative;\n    cursor: pointer;\n    transition: box-shadow 0.15s ease;\n  }\n  .prose-article div[data-callout]:hover,\n  .prose-article div[data-embedded-component]:hover,\n  .prose-article div[data-video-block]:hover,\n  .prose-article div[data-image-gallery]:hover,\n  .prose-article div[data-cta-button]:hover,\n  .prose-article div[data-image-carousel]:hover,\n  .prose-article div[data-accordion-group]:hover,\n  .prose-article div[data-toc-block]:hover,\n  .prose-article div[data-file-attachment]:hover,\n  .prose-article div[data-audio-block]:hover,\n  .prose-article div[data-google-maps]:hover,\n  .prose-article div[data-social-embed]:hover,\n  .prose-article div[data-math-block]:hover,\n  .prose-article img:hover,\n  .prose-article table:hover {\n    box-shadow: 0 0 0 2px var(--color-primary, #E88FA3);\n    border-radius: 8px;\n  }\n  .prose-article div[data-callout]::after,\n  .prose-article div[data-embedded-component]::after,\n  .prose-article div[data-video-block]::after,\n  .prose-article div[data-image-gallery]::after,\n  .prose-article div[data-cta-button]::after,\n  .prose-article div[data-image-carousel]::after,\n  .prose-article div[data-accordion-group]::after,\n  .prose-article div[data-toc-block]::after,\n  .prose-article div[data-file-attachment]::after,\n  .prose-article div[data-audio-block]::after,\n  .prose-article div[data-google-maps]::after,\n  .prose-article div[data-social-embed]::after,\n  .prose-article div[data-math-block]::after,\n  .prose-article div[data-pdf-viewer]::after {\n    content: '\\270F\\FE0F Edit';\n    position: absolute;\n    top: 8px;\n    right: 8px;\n    background: #3B82F6;\n    color: #fff;\n    font-size: 11px;\n    font-weight: 600;\n    padding: 2px 8px;\n    border-radius: 6px;\n    opacity: 0;\n    pointer-events: none;\n    transition: opacity 0.15s ease;\n    z-index: 10;\n    white-space: nowrap;\n    box-shadow: 0 2px 6px rgba(0,0,0,0.15);\n    line-height: 1.5;\n  }\n  .prose-article table::after {\n    content: '\\270F\\FE0F Click cell to edit table';\n    position: absolute;\n    top: -10px;\n    right: 8px;\n    background: #3B82F6;\n    color: #fff;\n    font-size: 11px;\n    font-weight: 600;\n    padding: 2px 8px;\n    border-radius: 6px;\n    opacity: 0;\n    pointer-events: none;\n    transition: opacity 0.15s ease;\n    z-index: 10;\n    white-space: nowrap;\n    box-shadow: 0 2px 6px rgba(0,0,0,0.15);\n    line-height: 1.5;\n  }\n  .prose-article div[data-callout]:hover::after,\n  .prose-article div[data-embedded-component]:hover::after,\n  .prose-article div[data-video-block]:hover::after,\n  .prose-article div[data-image-gallery]:hover::after,\n  .prose-article div[data-cta-button]:hover::after,\n  .prose-article div[data-image-carousel]:hover::after,\n  .prose-article div[data-accordion-group]:hover::after,\n  .prose-article div[data-toc-block]:hover::after,\n  .prose-article div[data-file-attachment]:hover::after,\n  .prose-article div[data-audio-block]:hover::after,\n  .prose-article div[data-google-maps]:hover::after,\n  .prose-article div[data-social-embed]:hover::after,\n  .prose-article div[data-math-block]:hover::after,\n  .prose-article div[data-pdf-viewer]:hover::after,\n  .prose-article table:hover::after {\n    opacity: 1;\n    pointer-events: auto;\n    cursor: pointer;\n  }\n  .prose-article img {\n    outline-offset: 2px;\n  }\n  .prose-article img:hover {\n    outline: 2px solid #3B82F6;\n    box-shadow: none;\n  }\n"}),(0,r.jsx)("input",{type:"file",accept:"image/*",ref:tn,onChange:lW,style:{display:"none"}}),(0,r.jsx)("input",{type:"file",accept:"video/mp4,video/webm,video/ogg",ref:tZ,onChange:lG,style:{display:"none"}}),(0,r.jsx)("input",{type:"file",accept:"image/*",multiple:!0,ref:aI,onChange:lV,style:{display:"none"}}),(0,r.jsx)("input",{type:"file",accept:"image/*",multiple:!0,ref:rp,onChange:lJ,style:{display:"none"}}),(0,r.jsx)("input",{type:"file",accept:".pdf,.zip,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.csv,.txt",ref:rM,onChange:lY,style:{display:"none"}}),(0,r.jsx)("input",{type:"file",accept:"audio/mp3,audio/wav,audio/ogg,audio/mpeg",ref:rY,onChange:l$,style:{display:"none"}}),(0,r.jsx)("input",{type:"file",accept:".pdf",ref:lv,onChange:lZ,style:{display:"none"}}),ti&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Insert Link"}),(0,r.jsx)("button",{onClick:()=>td(!1),className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5",children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"URL"}),(0,r.jsx)("input",{type:"url",autoFocus:!0,value:tc,onChange:e=>tx(e.target.value),placeholder:"https://example.com",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all text-gray-900 bg-white",onKeyDown:e=>{"Enter"===e.key&&l_(),"Escape"===e.key&&td(!1)}})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex justify-end gap-2",children:[(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().extendMarkRange("link").unsetLink().run(),td(!1)},className:"px-4 py-2 text-sm font-medium text-red-600 hover:bg-red-50 rounded-lg transition-colors mr-auto",children:"Remove"}),(0,r.jsx)("button",{onClick:()=>td(!1),className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:l_,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm",children:"Save"})]})]})}),eX&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden flex flex-col max-h-[90vh]",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:null!==tt?"Edit Image":"Insert Image"}),(0,r.jsx)("button",{onClick:()=>{e0(!1),ta(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4 overflow-y-auto flex-1",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Source Image"}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{var e;return null==(e=tn.current)?void 0:e.click()},disabled:T,className:"w-full py-2.5 px-4 text-sm font-medium border border-dashed border-gray-300 rounded-lg hover:border-blue-500 hover:text-blue-500 hover:bg-blue-50/20 transition-all flex items-center justify-center gap-2 text-gray-600 bg-white",children:[T?(0,r.jsx)(I.A,{size:16,className:"animate-spin text-blue-500"}):(0,r.jsx)(L.A,{size:16}),T?"Uploading Image...":"Click to Upload Image File"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 my-0.5 text-gray-400",children:[(0,r.jsx)("div",{className:"h-px flex-1 bg-gray-200"}),(0,r.jsx)("span",{className:"text-[10px] uppercase font-bold tracking-wider text-gray-400 select-none",children:"or link URL"}),(0,r.jsx)("div",{className:"h-px flex-1 bg-gray-200"})]}),(0,r.jsx)("input",{type:"text",value:e1,onChange:e=>e2(e.target.value),placeholder:"Paste image web address (https://...)",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 text-gray-900 bg-white placeholder-gray-400 transition-all"})]})]}),e1&&(0,r.jsx)("div",{className:"border border-gray-200 rounded-lg p-2 bg-gray-50 flex items-center justify-center max-h-[120px] overflow-hidden",children:(0,r.jsx)("img",{src:e1,alt:"Preview",className:"max-h-[100px] object-contain rounded-md"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Alt Text (description)"}),(0,r.jsx)("input",{type:"text",value:e5,onChange:e=>e4(e.target.value),placeholder:"e.g. A gorgeous shrine image",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 text-gray-900 bg-white"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Width"}),(0,r.jsx)("input",{type:"text",value:e6,onChange:e=>e3(e.target.value),placeholder:"e.g. 100% or 400px",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 text-gray-900 bg-white"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Height"}),(0,r.jsx)("input",{type:"text",value:e8,onChange:e=>e7(e.target.value),placeholder:"e.g. auto or 300px",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 text-gray-900 bg-white"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Alignment"}),(0,r.jsx)("div",{className:"flex gap-2",children:["left","center","right"].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>te(e),className:"flex-1 py-2 text-sm font-medium rounded-lg border transition-all ".concat(e9===e?"bg-blue-50 border-blue-500 text-blue-600 shadow-sm":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"),children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==tt?(0,r.jsx)("button",{type:"button",onClick:()=>{lO&&null!==tt&&(lO.chain().focus().setNodeSelection(tt).deleteSelection().run(),e0(!1),ta(null))},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{e0(!1),ta(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>
1{if(!lO||!e1)return;let e="";e6&&(e+="width: ".concat(e6,"; ")),e8&&(e+="height: ".concat(e8,"; ")),"center"===e9?e+="margin-left: auto; margin-right: auto; display: block; ":"right"===e9?e+="margin-left: auto; margin-right: 0; display: block; ":e+="margin-left: 0; margin-right: auto; display: block; ";let t={src:e1,alt:e5||null,title:e5||null,style:e.trim()||null};null!==tt?lO.chain().focus().setNodeSelection(tt).updateAttributes("image",t).run():lO.chain().focus().setImage(t).run(),e0(!1),ta(null)},disabled:!e1,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),tk&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-lg overflow-hidden max-h-[90vh] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50 sticky top-0 z-10",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Video Embed"}),(0,r.jsx)("button",{onClick:()=>tC(!1),className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{className:"flex gap-1 bg-gray-100 rounded-lg p-0.5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>tS("upload"),className:"flex-1 py-1.5 text-xs font-medium rounded-md transition-all ".concat("upload"===tA?"bg-white shadow-sm text-gray-900":"text-gray-500"),children:"Upload"}),(0,r.jsx)("button",{type:"button",onClick:()=>tS("url"),className:"flex-1 py-1.5 text-xs font-medium rounded-md transition-all ".concat("url"===tA?"bg-white shadow-sm text-gray-900":"text-gray-500"),children:"URL"})]}),"upload"===tA?(0,r.jsxs)("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-blue-400 transition-colors cursor-pointer",onClick:()=>{var e;return null==(e=tZ.current)?void 0:e.click()},children:[tF?(0,r.jsx)(I.A,{size:24,className:"animate-spin text-blue-500 mx-auto mb-2"}):(0,r.jsx)(E.A,{size:24,className:"mx-auto mb-2 text-gray-400"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:tF?"Uploading...":"Click to upload video"}),(0,r.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"MP4, WebM, OGG"}),tB&&!tF&&(0,r.jsxs)("p",{className:"text-xs text-green-600 mt-2 truncate",children:["✓ ",tB.split("/").pop()]})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Video URL"}),(0,r.jsx)("input",{type:"url",value:tB,onChange:e=>tT(e.target.value),placeholder:"https://youtube.com/watch?v=... or video URL",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-gray-900 bg-white"})]}),(0,r.jsxs)("div",{className:"space-y-3 pt-2 border-t border-gray-100",children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Settings"}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Width"}),(0,r.jsx)("input",{type:"text",value:tL,onChange:e=>tE(e.target.value),placeholder:"100%",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Height"}),(0,r.jsx)("input",{type:"text",value:tz,onChange:e=>tD(e.target.value),placeholder:"auto",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Aspect Ratio"}),(0,r.jsx)(lQ,{value:tH,onChange:tM,options:[{label:"16:9",value:"16:9"},{label:"4:3",value:"4:3"},{label:"1:1",value:"1:1"},{label:"Auto",value:"auto"}]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Alignment"}),(0,r.jsx)(lQ,{value:tR,onChange:tP,options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Border Radius"}),(0,r.jsx)(lQ,{value:tO,onChange:tU,options:[{label:"None",value:"
10"},{label:"Sm",value:"8px"},{label:"Md",value:"16px"},{label:"Lg",value:"24px"}]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-1",children:[(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:t_,onChange:e=>tW(e.target.checked),className:"rounded"})," Autoplay"]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:tq,onChange:e=>tG(e.target.checked),className:"rounded"})," Loop"]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:tV,onChange:e=>tJ(e.target.checked),className:"rounded"})," Muted"]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:tY,onChange:e=>t$(e.target.checked),className:"rounded"})," Controls"]})]})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between sticky bottom-0",children:[null!==tK?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(tK).deleteSelection().run(),tC(!1),tQ(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete Video"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>tC(!1),className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!tB||!lO)return;let e=/^\d+$/.test(tL.trim())?"".concat(tL.trim(),"px"):tL.trim()||"100%",t=/^\d+$/.test(tz.trim())?"".concat(tz.trim(),"px"):tz.trim()||"auto",a="width: ".concat(e,"; overflow: hidden; border-radius: ").concat(tO,"; ");if("auto"!==tH){let[e,t]=tH.split(":").map(Number);a+="aspect-ratio: ".concat(e,"/").concat(t,"; ")}else a+="height: ".concat(t,"; ");"center"===tR?a+="margin-left: auto; margin-right: auto; display: block; ":"right"===tR?a+="margin-left: auto; margin-right: 0; display: block; ":a+="margin-left: 0; margin-right: auto; display: block; ";let r={src:tB,style:a.trim(),controls:tY,autoplay:t_,loop:tq,muted:tV};null!==tK?lO.chain().focus().setNodeSelection(tK).updateAttributes("videoBlock",r).run():lO.chain().focus().insertContent({type:"videoBlock",attrs:r}).run(),tC(!1),tQ(null)},disabled:!tB,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),ad&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-xl overflow-hidden max-h-[90vh] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50 sticky top-0 z-10",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Image Gallery"}),(0,r.jsx)("button",{onClick:()=>{ac(!1),aE(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[ax.length>0&&(0,r.jsx)(ef.Mp,{collisionDetection:ef.fp,onDragEnd:e=>{let{active:t,over:a}=e;t.id!==(null==a?void 0:a.id)&&am(e=>{let r=e.findIndex(e=>e.id===t.id),l=e.findIndex(e=>e.id===a.id);return(0,ev.be)(e,r,l)})},children:(0,r.jsx)(ev.gB,{items:ax.map(e=>e.id),strategy:ev._G,children:(0,r.jsx)("div",{className:"space-y-2 max-h-[240px] overflow-y-auto",children:ax.map((e,t)=>(0,r.jsx)(eZ,{img:e,onRemove:()=>am(e=>e.filter((e,a)=>a!==t)),onUpdate:(e,a)=>am(r=>r.map((r,l)=>l===t?{...r,[e]:a}:r))},e.id))})})}),(0,r.jsx)("button",{type:"button",disabled:aT,onClick:()=>{var e;return null==(e=aI.current)?void 0:e.click()},className:"w-full border-2 border-dashed border-gray-300 rounded-lg py-3 text-sm text-gray-600 hover:border-blue-400 hover:text-blue-600 transition-colors flex items-center justify-center gap-2",children:aT?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.A,{size:14,className:"animate-spin"})," Uploading..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L.A,{size:14})," + Add Images"]})}),(0,r.jsxs)("div",{className:"pt-4 border-t border-gray-100 space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-4",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1.5 uppercase tracking-wider",children:"Columns"}),(0,r.jsx)("div",{className:"flex gap-1",children:[{label:"1 Col",value:"1"},{label:"2 Cols",value:"2"},{label:"3 Cols",value:"3"},{label:"4 Cols",value:"4"}].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>ag(Number(e.value)),className:"flex-1 py-1 text-[11px] font-semibold rounded-full border transition-all text-center whitespace-nowrap ".concat(String(au)===e.value?"bg-blue-50 text-blue-600 border-blue-500 shadow-sm":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},e.value))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1.5 uppercase tracking-wider",children:"Corners (R
1adius)"}),(0,r.jsx)("div",{className:"flex gap-1.5",children:[{label:"None",value:"none"},{label:"Sm",value:"sm"},{label:"Md",value:"md"},{label:"Lg",value:"lg"}].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>af(e.value),className:"px-4.5 py-1.5 text-xs font-semibold rounded-full border transition-all ".concat(ah===e.value?"bg-blue-50 text-blue-600 border-blue-500 shadow-sm":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),style:{paddingLeft:"14px",paddingRight:"14px"},children:e.label},e.value))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1.5 uppercase tracking-wider",children:"Image Heights"}),(0,r.jsxs)("div",{className:"flex items-center gap-4 text-xs font-medium text-gray-700",children:[(0,r.jsxs)("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:"galImgHeight",value:"auto",checked:"auto"===av,onChange:()=>ay("auto"),className:"text-blue-600 focus:ring-blue-500"}),"Auto"]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:"galImgHeight",value:"equal",checked:"equal"===av,onChange:()=>ay("equal"),className:"text-blue-600 focus:ring-blue-500"}),"Equal"]}),"equal"===av&&(0,r.jsx)("input",{type:"text",value:aw,onChange:e=>aj(e.target.value),placeholder:"200px",className:"w-20 border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900 focus:ring-1 focus:ring-blue-500 outline-none"})]})]})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1.5 uppercase tracking-wider",children:"Gaps"}),(0,r.jsx)("div",{className:"flex gap-1.5",children:[{label:"SM",value:"sm"},{label:"MD",value:"md"},{label:"LG",value:"lg"}].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>ap(e.value),className:"px-5 py-1.5 text-xs font-semibold rounded-full border transition-all ".concat(ab===e.value?"bg-blue-50 text-blue-600 border-blue-500 shadow-sm":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),style:{paddingLeft:"20px",paddingRight:"20px"},children:e.label},e.value))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1.5 uppercase tracking-wider",children:"Alignment"}),(0,r.jsx)("div",{className:"flex gap-1.5",children:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>ak(e.value),className:"px-4.5 py-1.5 text-xs font-semibold rounded-full border transition-all ".concat(aN===e.value?"bg-blue-50 text-blue-600 border-blue-500 shadow-sm":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),style:{paddingLeft:"18px",paddingRight:"18px"},children:e.label},e.value))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1 uppercase tracking-wider",children:"Container Max Width"}),(0,r.jsx)("input",{type:"text",value:aC,onChange:e=>aA(e.target.value),placeholder:"100%",className:"w-full border border-gray-300 rounded-lg px-3 py-1.5 text-sm bg-white text-gray-900 focus:ring-1 focus:ring-blue-500 outline-none"})]})]})]}),(0,r.jsx)("div",{className:"pt-2",children:(0,r.jsxs)("label",{className:"flex items-center gap-2 text-xs font-medium text-gray-700 cursor-pointer select-none",children:[(0,r.jsx)("input",{type:"checkbox",checked:aS,onChange:e=>aB(e.target.checked),className:"rounded text-blue-600 focus:ring-blue-500 w-4 h-4"}),"Enable lightbox click view"]})})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between sticky bottom-0",children:[null!==aL?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(aL).deleteSelection().run(),ac(!1),aE(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete Gallery"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{ac(!1),aE(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>
1{if(!lO||0===ax.length)return;let e={images:ax.map(e=>{let{src:t,alt:a,caption:r,url:l}=e;return{src:t,alt:a,caption:r,url:l}}),columns:au,gap:ab,borderRadius:ah,imageHeight:av,equalHeight:aw,alignment:aN,maxWidth:aC,lightbox:aS};null!==aL?lO.chain().focus().setNodeSelection(aL).updateAttributes("imageGallery",e).run():lO.chain().focus().insertContent({type:"imageGallery",attrs:e}).run(),ac(!1),aE(null)},disabled:0===ax.length,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply Gallery"})]})]})]})}),az&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-md overflow-hidden max-h-[90vh] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50 sticky top-0 z-10",children:[(0,r.jsxs)("h3",{className:"font-semibold text-gray-900",children:[null!==a0?"Edit":"Insert"," Button"]}),(0,r.jsx)("button",{onClick:()=>{aD(!1),a1(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Button Text"}),(0,r.jsx)("input",{type:"text",value:aH,onChange:e=>aM(e.target.value),placeholder:"Click Here",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"URL"}),(0,r.jsx)("input",{type:"url",value:aR,onChange:e=>aP(e.target.value),placeholder:"https://example.com",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Style"}),(0,r.jsx)(lQ,{value:aO,onChange:aU,options:[{label:"■ Filled",value:"filled"},{label:"□ Outline",value:"outline"},{label:"◇ Ghost",value:"ghost"}]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1.5",children:"Color"}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[eE.map(e=>(0,r.jsx)("button",{type:"button",title:e.label,onClick:()=>aW(e.hex),className:"w-6 h-6 rounded-full border-2 transition-transform hover:scale-110 ".concat(a_===e.hex?"border-blue-500 ring-2 ring-blue-200":"border-gray-200"),style:{background:e.hex}},e.hex)),(0,r.jsxs)("div",{className:"flex items-center gap-1 ml-1",children:[(0,r.jsx)("input",{type:"text",value:aQ,onChange:e=>aX(e.target.value),placeholder:"#hex",className:"w-16 border border-gray-300 rounded px-1.5 py-0.5 text-[10px] bg-white text-gray-900"}),(0,r.jsx)("button",{type:"button",onClick:()=>{aQ&&aW(aQ)},className:"px-1.5 py-0.5 text-[10px] bg-blue-600 text-white rounded hover:bg-blue-700",children:"OK"})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Size"}),(0,r.jsx)(lQ,{value:aq,onChange:aG,options:[{label:"Sm",value:"sm"},{label:"Md",value:"md"},{label:"Lg",value:"lg"}]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Corners"}),(0,r.jsx)(lQ,{value:aZ,onChange:aK,options:[{label:"Sm",value:"sm"},{label:"Md",value:"md"},{label:"Lg",value:"lg"},{label:"Pill",value:"full"}]})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Alignment"}),(0,r.jsx)(lQ,{value:aY,onChange:a$,options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]})]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:"_blank"===aV,onChange:e=>aJ(e.target.checked?"_blank":"_self"),className:"rounded"})," Open in new tab"]}),(0,r.jsxs)("div",{className:"pt-3 border-t border-gray-100",children:[(0,r.jsx)("p",{className:"text-[11px] font-medium text-gray-500 mb-2",children:"Preview"}),(0,r.jsx)("div",{style:{textAlign:aY},children:(0,r.jsx)("span",{className:"inline-block font-semibold text-decoration-none ".concat("sm"===aq?"px-5 py-2 text-sm":"lg"===aq?"px-10 py-4 text-lg":"px-8 py-3 text-base"),style:{borderRadius:{sm:"4px",md:"8px",lg:"16px",full:"9999px"}[aZ],..."filled"===aO?{background:a_,color:"#fff"}
1:"outline"===aO?{background:"transparent",border:"2px solid ".concat(a_),color:a_}:{background:"transparent",color:a_}},children:aH||"Button Text"})})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between sticky bottom-0",children:[null!==a0?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(a0).deleteSelection().run(),aD(!1),a1(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete Button"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{aD(!1),a1(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO)return;let e={text:aH,url:aR,btnStyle:aO,color:a_,size:aq,target:aV,align:aY,borderRadius:aZ};null!==a0?lO.chain().focus().setNodeSelection(a0).updateAttributes("ctaButton",e).run():lO.chain().focus().insertContent({type:"ctaButton",attrs:e}).run(),aD(!1),a1(null)},className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm",children:"Apply Button"})]})]})]})}),at&&(0,r.jsx)("div",{className:"fixed inset-0 bg-black/40 flex items-center justify-center z-50",onClick:()=>{aa(!1),ai(null)},children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-md overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Edit Callout"}),(0,r.jsx)("button",{onClick:()=>{aa(!1),ai(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type"}),(0,r.jsx)("div",{className:"flex gap-2",children:Object.entries(ez).map(e=>{let[t,a]=e;return(0,r.jsxs)("button",{onClick:()=>ao(t),className:"flex-1 py-2 text-center rounded-lg text-sm font-medium transition-all border-2 ".concat(as===t?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),title:a.label,children:[(0,r.jsx)("span",{className:"block text-lg",children:a.icon}),(0,r.jsx)("span",{className:"block text-[10px] mt-0.5",children:a.label})]},t)})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Callout Text"}),(0,r.jsx)("textarea",{value:ar,onChange:e=>al(e.target.value),rows:3,className:"w-full px-3 py-2.5 border border-gray-300 rounded-lg text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none resize-none",placeholder:"Enter callout text..."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Preview"}),(0,r.jsxs)("div",{className:"callout callout-".concat(as),style:{position:"relative",padding:"0.75rem 1rem 0.75rem 2.75rem",borderLeft:"4px solid ".concat((ez[as]||ez.info).border),background:(ez[as]||ez.info).bg,borderRadius:"0 8px 8px 0",fontSize:"0.875rem"},children:[(0,r.jsx)("span",{style:{position:"absolute",left:"0.75rem",top:"0.75rem",fontSize:"1rem"},children:(ez[as]||ez.info).icon}),ar||"Your callout text here..."]})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 flex items-center justify-between sticky bottom-0",children:[null!==an?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(an).deleteSelection().run(),aa(!1),ai(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete Callout"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{aa(!1),ai(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>
1{if(null!==an){let e=lO.state.tr.setNodeMarkup(an,void 0,{calloutType:as,text:ar});lO.view.dispatch(e)}else lO.chain().focus().insertContent({type:"calloutBlock",attrs:{calloutType:as,text:ar}}).run();aa(!1),ai(null)},className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm",children:null!==an?"Update":"Insert"})]})]})]})}),rv&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-xl overflow-hidden max-h-[90vh] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50 sticky top-0 z-10",children:[(0,r.jsxs)("h3",{className:"font-semibold text-gray-900",children:[null!==rN?"Edit":"Insert"," Accordion"]}),(0,r.jsx)("button",{onClick:()=>{ry(!1),rk(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsx)("div",{className:"space-y-4",children:rw.map(e=>(0,r.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 bg-gray-50/50 relative",children:[(0,r.jsx)("button",{type:"button",onClick:()=>rj(t=>t.filter(t=>t.id!==e.id)),className:"absolute top-2 right-2 text-gray-400 hover:text-red-500 text-lg",children:"✕"}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1",children:"Summary"}),(0,r.jsx)("input",{type:"text",value:e.summary,onChange:t=>rj(a=>a.map(a=>a.id===e.id?{...a,summary:t.target.value}:a)),placeholder:"Click to expand",className:"w-full border border-gray-300 rounded px-3 py-1.5 text-sm bg-white focus:outline-none focus:ring-1 focus:ring-blue-500"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-semibold text-gray-500 mb-1",children:"Content"}),(0,r.jsx)("textarea",{value:e.content,onChange:t=>rj(a=>a.map(a=>a.id===e.id?{...a,content:t.target.value}:a)),rows:2,placeholder:"Hidden content...",className:"w-full border border-gray-300 rounded px-3 py-1.5 text-sm bg-white focus:outline-none focus:ring-1 focus:ring-blue-500 resize-none"})]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:e.open,onChange:t=>rj(a=>a.map(a=>a.id===e.id?{...a,open:t.target.checked}:a)),className:"rounded"})," Start expanded"]})]})]},e.id))}),(0,r.jsx)("button",{type:"button",onClick:()=>rj(e=>[...e,{id:Date.now().toString()+Math.random(),summary:"New Item",content:"",open:!1}]),className:"w-full border-2 border-dashed border-gray-300 rounded-lg py-3 text-sm text-gray-600 hover:border-blue-400 hover:text-blue-600 transition-colors flex items-center justify-center gap-2",children:"+ Add Accordion Item"})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between sticky bottom-0",children:[null!==rN?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(rN).deleteSelection().run(),ry(!1),rk(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete Group"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{ry(!1),rk(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO)return;let e={items:rw};if(null!==rN){let t=lO.state.tr.setNodeMarkup(rN,void 0,e);lO.view.dispatch(t)}else lO.chain().focus().insertContent({type:"detailsBlock",attrs:e}).run();ry(!1),rk(null)},disabled:0===rw.length,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),a2&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-xl overflow-hidden max-h-[90vh] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50 sticky top-0 z-10",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Image Carousel"}),(0,r.jsx)("button",{onClick:()=>{a5(!1),rf(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[a4.length>0&&(0,r.jsx)(ef.Mp,{collisionDetection:ef.fp,onDragEnd:e=>{let{active:t,over:a}=e;t.id!==(null==a?void 0:a.id)&&a6(e=>{let r=e.findIndex(e=>e.id===t.id),l=e.findIndex(e=>e.id===a.id);return(0,ev.be)(e,r,l)})},children:(0,r.jsx)(ev.gB,{items:a4.map(e=>e.id),strategy:ev._G,children:(0,r.jsx)("div",{className:"space-y-2 max-h-[200px] overflow-y-auto",children:a4.map((e,t)=>(0,r.jsx)(eZ,{img:e,onRemove:()=>a6(e=>e.filter((e,a)=>a!==t)),onUpdate:(e,a)=>a6(r=>r.map((r,l)=>l===t?{...r,[e]:a}:r))},e.id))})})}),(0,r.jsx)("button",{type:"button",disabled:rg,onClick:()=>{var e;return null==(e=rp.current)?void 0:e.click()},className:"w-full border-2 border-dashed border-gray-300 rounded-lg py-3 text-sm text-gray-600 hover:border-blue-400 hover:text-blue-600 transition-colors flex items-center justify-center gap-2",children:rg?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.A,{size:14,className:"animate-spin"})," Uploading..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L.A,{size:14})," + Add Slides"]})}),(0,r.jsxs)("div",{className:"pt-3 border-t border-gray-100 space-y-3",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Max Width"}),(0,r.jsx)("input",{type:"text",value:rc,onChange:e=>rx(e.target.value),placeholder:"100%",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Height"}),(0,r.jsx)("input",{type:"text",value:rm,onChange:e=>ru(e.target.value),placeholder:"400px",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Border Radius"}),(0,r.jsx)(lQ,{value:ri,onChange:rd,options:[{label:"None",value:"
10"},{label:"Sm",value:"8px"},{label:"Md",value:"16px"},{label:"Lg",value:"24px"}]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Transition"}),(0,r.jsx)(lQ,{value:ro,onChange:rn,options:[{label:"Slide",value:"slide"},{label:"Fade",value:"fade"}]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-1 items-center",children:[(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:a3,onChange:e=>a8(e.target.checked),className:"rounded"})," Autoplay"]}),a3&&(0,r.jsxs)("label",{className:"flex items-center gap-1 text-[11px] text-gray-600",children:["Speed (s): ",(0,r.jsx)("input",{type:"number",min:"1",max:"20",value:a7,onChange:e=>a9(Number(e.target.value)),className:"w-12 border border-gray-300 rounded px-1 py-0.5"})]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:re,onChange:e=>rt(e.target.checked),className:"rounded"})," Loop"]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:ra,onChange:e=>rr(e.target.checked),className:"rounded"})," Arrows"]}),(0,r.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:rl,onChange:e=>rs(e.target.checked),className:"rounded"})," Dots"]})]})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between sticky bottom-0",children:[null!==rh?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(rh).deleteSelection().run(),a5(!1),rf(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{a5(!1),rf(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO||0===a4.length)return;let e={images:a4.map(e=>{let{src:t,alt:a,caption:r,url:l}=e;return{src:t,alt:a,caption:r,url:l}}),autoplay:a3,autoplaySpeed:a7,loop:re,showArrows:ra,showDots:rl,transition:ro,borderRadius:ri,maxWidth:rc,height:rm};null!==rh?lO.chain().focus().setNodeSelection(rh).updateAttributes("imageCarousel",e).run():lO.chain().focus().insertContent({type:"imageCarousel",attrs:e}).run(),a5(!1),rf(null)},disabled:0===a4.length,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),rC&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"File Attachment"}),(0,r.jsx)("button",{onClick:()=>{rA(!1),rP(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-blue-400 transition-colors cursor-pointer",onClick:()=>{var e;return null==(e=rM.current)?void 0:e.click()},children:[rD?(0,r.jsx)(I.A,{size:24,className:"animate-spin text-blue-500 mx-auto mb-2"}):(0,r.jsx)(z.A,{size:24,className:"mx-auto mb-2 text-gray-400"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:rD?"Uploading...":"Click to upload file"}),(0,r.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"PDF, ZIP, DOC, XLS, PPT, CSV, TXT"}),rS&&!rD&&(0,r.jsxs)("p",{className:"text-xs text-green-600 mt-2 truncate",children:["✓ ",rT]}
1)]}),rS&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Filename"}),(0,r.jsx)("input",{type:"text",value:rT,onChange:e=>rF(e.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]}),(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:["Size: ",rI," | Type: ",rE]})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==rR?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(rR).deleteSelection().run(),rA(!1),rP(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{rA(!1),rP(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO||!rS)return;let e={src:rS,filename:rT,filesize:rI,filetype:rE};null!==rR?lO.chain().focus().setNodeSelection(rR).updateAttributes("fileAttachment",e).run():lO.chain().focus().insertContent({type:"fileAttachment",attrs:e}).run(),rA(!1),rP(null)},disabled:!rS,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),rO&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Audio Player"}),(0,r.jsx)("button",{onClick:()=>{rU(!1),rZ(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-blue-400 transition-colors cursor-pointer",onClick:()=>{var e;return null==(e=rY.current)?void 0:e.click()},children:[rV?(0,r.jsx)(I.A,{size:24,className:"animate-spin text-blue-500 mx-auto mb-2"}):(0,r.jsx)(D.A,{size:24,className:"mx-auto mb-2 text-gray-400"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:rV?"Uploading...":"Click to upload audio"}),(0,r.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"MP3, WAV, OGG"}),r_&&!rV&&(0,r.jsx)("p",{className:"text-xs text-green-600 mt-2 truncate",children:"✓ Uploaded"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Track Title"}),(0,r.jsx)("input",{type:"text",value:rq,onChange:e=>rG(e.target.value),placeholder:"Track name",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==r$?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(r$).deleteSelection().run(),rU(!1),rZ(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{rU(!1),rZ(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO||!r_)return;let e={src:r_,title:rq};null!==r$?lO.chain().focus().setNodeSelection(r$).updateAttributes("audioBlock",e).run():lO.chain().focus().insertContent({type:"audioBlock",attrs:e}).run(),rU(!1),rZ(null)},disabled:!r_,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),rK&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Google Maps Embed"}),(0,r.jsx)("button",{onClick:()=>{rQ(!1),r4(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Address / Location"}),(0,r.jsx)("input",{type:"text",value:rX,onChange:e=>r0(e.target.value),placeholder:"Tokyo, Japan",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Map Height"}),(0,r.jsx)("input",{type:"text",value:r1,onChange:e=>r2(e.target.value),placeholder:"350px",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==r5?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(r5).deleteSelection().run(),rQ(!1),r4(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{rQ(!1),r4(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>
1{if(!lO||!rX)return;let e={address:rX,height:r1};if(null!==r5){let t=lO.state.tr.setNodeMarkup(r5,void 0,e);lO.view.dispatch(t)}else lO.chain().focus().insertContent({type:"googleMaps",attrs:e}).run();rQ(!1),r4(null)},disabled:!rX,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),r6&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Social Media Embed"}),(0,r.jsx)("button",{onClick:()=>{r3(!1),le(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Post URL"}),(0,r.jsx)("input",{type:"url",value:r8,onChange:e=>r7(e.target.value),placeholder:"https://twitter.com/...",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Supports: Twitter/X, Instagram, TikTok, Facebook"})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==r9?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(r9).deleteSelection().run(),r3(!1),le(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{r3(!1),le(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO||!r8)return;let e="";/twitter\.com|x\.com/i.test(r8)?e="twitter":/instagram\.com/i.test(r8)?e="instagram":/tiktok\.com/i.test(r8)?e="tiktok":/facebook\.com/i.test(r8)&&(e="facebook");let t={url:r8,platform:e};if(null!==r9){let e=lO.state.tr.setNodeMarkup(r9,void 0,t);lO.view.dispatch(e)}else lO.chain().focus().insertContent({type:"socialEmbed",attrs:t}).run();r3(!1),le(null)},disabled:!r8,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Embed"})]})]})]})}),lt&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-md overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"Math Formula (LaTeX)"}),(0,r.jsx)("button",{onClick:()=>{la(!1),lo(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"LaTeX Expression"}),(0,r.jsx)("textarea",{value:lr,onChange:e=>ll(e.target.value),rows:3,placeholder:"E = mc^2",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500 resize-none font-mono"})]}),lr&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Preview"}),(0,r.jsx)("div",{className:"p-3 bg-yellow-50 border border-yellow-200 rounded-lg text-center font-serif text-lg overflow-x-auto max-w-full",dangerouslySetInnerHTML:{__html:(()=>
1{if(!(lr.includes("\\")||lr.includes("{")||lr.includes("}")||lr.includes("_")||lr.includes("^")))return lr.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />");try{let e=eJ(lr);return a(70704).renderToString(e,{throwOnError:!1,displayMode:!0})}catch(e){return lr}})()}})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==ls?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(ls).deleteSelection().run(),la(!1),lo(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{la(!1),lo(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO||!lr)return;let e={latex:lr};if(null!==ls){let t=lO.state.tr.setNodeMarkup(ls,void 0,e);lO.view.dispatch(t)}else lO.chain().focus().insertContent({type:"mathBlock",attrs:e}).run();la(!1),lo(null)},disabled:!lr,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),ln&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900",children:"PDF Document Viewer"}),(0,r.jsx)("button",{onClick:()=>{li(!1),lp(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4",children:[(0,r.jsxs)("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-blue-400 transition-colors cursor-pointer",onClick:()=>{var e;return null==(e=lv.current)?void 0:e.click()},children:[lh?(0,r.jsx)(I.A,{size:24,className:"animate-spin text-blue-500 mx-auto mb-2"}):(0,r.jsx)(H.A,{size:24,className:"mx-auto mb-2 text-gray-400"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:lh?"Uploading...":"Click to upload PDF"}),(0,r.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"PDF files only"}),ld&&!lh&&(0,r.jsxs)("p",{className:"text-xs text-green-600 mt-2 truncate",children:["✓ ",lx]})]}),ld&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Filename"}),(0,r.jsx)("input",{type:"text",value:lx,onChange:e=>lm(e.target.value),className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[11px] font-medium text-gray-600 mb-1",children:"Viewer Height"}),(0,r.jsx)("input",{type:"text",value:lu,onChange:e=>lg(e.target.value),placeholder:"600px",className:"w-full border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"})]})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==lb?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(lb).deleteSelection().run(),li(!1),lp(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{li(!1),lp(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO||!ld)return;let e={src:ld,filename:lx,height:lu};null!==lb?lO.chain().focus().setNodeSelection(lb).updateAttributes("pdfViewer",e).run():lO.chain().focus().insertContent({type:"pdfViewer",attrs:e}).run(),li(!1),lp(null)},disabled:!ld,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm disabled:opacity-50",children:"Apply"})]})]})]})}),lA&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-md overflow-hidden max-h-[90vh] flex flex-col",children:[(0,r.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsxs)("h3",{className:"font-semibold text-gray-900",children:[null!==lL?"
1Edit":"Insert"," Table of Contents"]}),(0,r.jsx)("button",{onClick:()=>{lS(!1),lE(null)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-5 space-y-4 overflow-y-auto flex-1",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"TOC Title"}),(0,r.jsx)("input",{type:"text",value:lB,onChange:e=>lT(e.target.value),placeholder:"\uD83D\uDCD1 Table of Contents",className:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Included Headings Preview"}),(0,r.jsx)("div",{className:"border border-gray-200 rounded-lg p-3 bg-gray-50 text-xs space-y-1.5 max-h-[200px] overflow-y-auto",children:lF.map((e,t)=>(0,r.jsxs)("div",{className:"text-gray-600 truncate flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"text-[8px] text-gray-400",children:"●"})," ",e.text]},t))})]})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 bg-gray-50 flex items-center justify-between",children:[null!==lL?(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().setNodeSelection(lL).deleteSelection().run(),lS(!1),lE(null)},className:"px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 rounded-lg border border-red-200 transition-colors",children:"Delete"}):(0,r.jsx)("div",{}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>{lS(!1),lE(null)},className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:()=>{if(!lO)return;let e=[],t=lO.state.tr,a=!1;if(lO.state.doc.descendants((r,l)=>{if("heading"===r.type.name){let s=r.textContent,o=r.attrs.id||s.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-|-$/g,"")||"h-".concat(Date.now());e.push({level:r.attrs.level,text:s,id:o}),r.attrs.id||(t.setNodeMarkup(l,void 0,{...r.attrs,id:o}),a=!0)}}),a&&lO.view.dispatch(t),0===e.length)return void lC("No headings found in the editor. Please add some headings (H1-H4) to generate a Table of Contents.","Table of Contents");let r={title:lB,headings:e};null!==lL?lO.chain().focus().setNodeSelection(lL).updateAttributes("tableOfContents",r).run():lO.chain().focus().insertContent({type:"tableOfContents",attrs:r}).run(),lS(!1),lE(null)},className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm",children:"Apply"})]})]})]})}),(0,r.jsxs)("div",{className:"bg-gray-50 border-b border-gray-200 sticky top-0 z-50 p-2 space-y-2 select-none",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 bg-white p-1 rounded-lg border border-gray-100 shadow-sm",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-wider px-2 border-r border-gray-200 mr-1 select-none py-1",children:"General"}),(0,r.jsx)(lK,{title:"Undo",disabled:!lO.can().undo(),onClick:()=>lO.chain().focus().undo().run(),children:(0,r.jsx)(M.A,{size:16})}),(0,r.jsx)(lK,{title:"Redo",disabled:!lO.can().redo(),onClick:()=>lO.chain().focus().redo().run(),children:(0,r.jsx)(R.A,{size:16})}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)(lK,{title:"Insert Paragraph Above (Select block first)",disabled:!lO||!(lO.state.selection instanceof ew.nh),onClick:()=>{let{selection:e}=lO.state;e instanceof ew.nh&&lO.chain().focus().insertContentAt(e.from,{type:"paragraph"}).run()},children:(0,r.jsx)(P.A,{size:16})}),(0,r.jsx)(lK,{title:"Insert Paragraph Below (Select block first)",disabled:!lO||!(lO.state.selection instanceof ew.nh),onClick:()=>{let{selection:e}=lO.state;e instanceof ew.nh&&lO.chain().focus().insertContentAt(e.to,{type:"paragraph"}).run()},children:(0,r.jsx)(O.A,{size:16})}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)(lK,{title:"Insert Table of Contents",onClick:()=>{lT("\uD83D\uDCD1 Table of Contents"),lE(null);let e=[];
1if(lO.state.doc.descendants(t=>{if("heading"===t.type.name){let a=t.textContent,r=t.attrs.id||a.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-|-$/g,"")||"h-".concat(Date.now());e.push({level:t.attrs.level,text:a,id:r})}}),0===e.length)return void lC("No headings found in the editor. Please add some headings (H1-H4) to create a Table of Contents.","Table of Contents");lI(e),lS(!0)},children:(0,r.jsx)(U.A,{size:16})}),(0,r.jsxs)("div",{className:"relative table-picker-dropdown",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(lK,{title:"Insert Table",onClick:e=>{let t=e.currentTarget.getBoundingClientRect();t2(window.innerWidth-t.right<200?"right":"left"),t0(!tX)},children:(0,r.jsx)(_.A,{size:16})}),tX&&(0,r.jsxs)("div",{className:"absolute top-full ".concat("right"===t1?"right-0":"left-0"," z-50 mt-1 bg-white rounded-lg shadow-xl border border-gray-200 p-3 max-w-[calc(100vw-32px)]"),style:{minWidth:"180px"},children:[(0,r.jsx)("div",{className:"text-xs font-medium text-gray-600 mb-2 text-center",children:t5>0?"".concat(t5," \xd7 ").concat(t6," Table"):"Select table size"}),(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"3px"},children:Array.from({length:36}).map((e,t)=>{let a=Math.floor(t/6)+1,l=t%6+1,s=a<=t5&&l<=t6;return(0,r.jsx)("div",{style:{width:"24px",height:"24px",border:"1.5px solid ".concat(s?"#3B82F6":"#d1d5db"),borderRadius:"3px",cursor:"pointer",background:s?"#3B82F6":"#f9fafb",transition:"all 0.1s ease"},onMouseEnter:()=>{t4(a),t3(l)},onClick:()=>{lO.chain().focus().insertTable({rows:a,cols:l,withHeaderRow:!0}).run(),t0(!1),t4(0),t3(0)}},t)})})]})]}),(0,r.jsx)(lK,{title:"Horizontal Rule",onClick:()=>lO.chain().focus().setHorizontalRule().run(),children:(0,r.jsx)(W.A,{size:16})}),(0,r.jsx)(lK,{title:"Code Block",isActive:lO.isActive("codeBlock"),onClick:()=>lO.chain().focus().toggleCodeBlock().run(),children:(0,r.jsx)(q.A,{size:16})})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 bg-white p-1 rounded-lg border border-gray-100 shadow-sm",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-wider px-2 border-r border-gray-200 mr-1 select-none py-1",children:"Format"}),(0,r.jsxs)("select",{value:lO.isActive("heading",{level:1})?"h1":lO.isActive("heading",{level:2})?"h2":lO.isActive("heading",{level:3})?"h3":lO.isActive("heading",{level:4})?"h4":"p",onChange:e=>{let t=e.target.value;"p"===t?lO.chain().focus().setParagraph().run():"h1"===t?lO.chain().focus().toggleHeading({level:1}).run():"h2"===t?lO.chain().focus().toggleHeading({level:2}).run():"h3"===t?lO.chain().focus().toggleHeading({level:3}).run():"h4"===t&&lO.chain().focus().toggleHeading({level:4}).run()},className:"bg-transparent border-none text-gray-700 text-xs font-semibold py-1.5 px-2 outline-none cursor-pointer hover:bg-gray-100 rounded-md appearance-none",title:"Styles",children:[(0,r.jsx)("option",{value:"p",children:"Styles"}),(0,r.jsx)("option",{value:"h1",children:"Heading 1"}),(0,r.jsx)("option",{value:"h2",children:"Heading 2"}),(0,r.jsx)("option",{value:"h3",children:"Heading 3"}),(0,r.jsx)("option",{value:"h4",children:"Heading 4"}),(0,r.jsx)("option",{value:"p",children:"Paragraph"})]}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)("select",{onChange:e=>{e.target.value?lO.chain().focus().setFontFamily(e.target.value).run():lO.chain().focus().unsetFontFamily().run()},className:"bg-transparent border-none text-gray-700 text-[11px] font-semibold py-1.5 px-1 outline-none cursor-pointer hover:bg-gray-100 rounded-md appearance-none max-w-[70px]",title:"Font Family",children:eA.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,r.jsx)("select",{onChange:e=>{e.target.value?lO.chain().focus().setMark("textStyle",{fontSize:e.target.value}).run():lO.chain().focus().unsetMark("textStyle").run()},className:"bg-transparent border-none text-gray-700 text-[11px] font-semibold py-1.5 px-1 outline-none cursor-pointer hover:bg-gray-100 rounded-md appearance-none max-w-[55px]",title:"Font Size",children:eS.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,r.jsx)("select",{onChange:e=>{lO.chain().focus().updateAttributes(lO.isActive("heading")?"heading":"paragraph",{lineHeight:e.target.value||null}).run()},className:"bg-transparent border-none text-gray-700 text-[11px] font-semibold py-1.5 px-1 outline-none cursor-pointer hover:bg-gray-100 rounded-md appearance-none max-w-[45px]",title:"Line Height",children:eB.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label||"LH"},e.value))}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)(lK,{title:"Bold",isActive:lO.isActive("bold"),onClick:()=>lO.chain().focus().toggleBold().run(),children:(0,r.jsx)(G.A,{size:16})}),(0,r.jsx)(lK,{title:"Italic",isActive:lO.isActive("italic"),onClick:()=>lO.chain().focus().toggleItalic().run(),children:(0,r.jsx)(V.A,{size:16})}),(0,r.jsx)(lK,{title:"Underline",isActive:lO.isActive("underline"),onClick:()=>lO.chain().focus().toggleUnderline().run(),children:(0,r.jsx)(J.A,{size:16})}
1),(0,r.jsx)(lK,{title:"Strikethrough",isActive:lO.isActive("strike"),onClick:()=>lO.chain().focus().toggleStrike().run(),children:(0,r.jsx)(Y.A,{size:16})}),(0,r.jsx)(lK,{title:"Subscript",isActive:lO.isActive("subscript"),onClick:()=>lO.chain().focus().toggleSubscript().run(),children:(0,r.jsx)($.A,{size:16})}),(0,r.jsx)(lK,{title:"Superscript",isActive:lO.isActive("superscript"),onClick:()=>lO.chain().focus().toggleSuperscript().run(),children:(0,r.jsx)(Z.A,{size:16})}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsxs)("div",{className:"relative color-picker-dropdown",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(lK,{title:"Text Color",onClick:e=>{let t=e.currentTarget.getBoundingClientRect();th(window.innerWidth-t.right<260?"right":"left"),tu(!tm),tb(!1)},children:(0,r.jsx)(K.A,{size:16})}),tm&&(0,r.jsxs)("div",{className:"absolute top-full ".concat("right"===tp?"right-0":"left-0"," z-50 mt-1 bg-white rounded-lg shadow-xl border border-gray-200 p-3 w-[240px] max-w-[calc(100vw-32px)]"),children:[(0,r.jsx)("div",{className:"text-xs font-medium text-gray-500 mb-2",children:"Theme Colors"}),(0,r.jsx)("div",{className:"flex gap-1.5 mb-3",children:eF.map(e=>(0,r.jsx)("button",{title:e.label,onClick:()=>{lO.chain().focus().setColor(e.hex).run(),tu(!1)},className:"w-7 h-7 rounded-full border-2 border-gray-200 hover:scale-110 transition-transform",style:{background:e.hex}},e.hex))}),(0,r.jsx)("div",{className:"text-xs font-medium text-gray-500 mb-2",children:"Standard Colors"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5 mb-3",children:eI.map(e=>(0,r.jsx)("button",{title:e.label,onClick:()=>{lO.chain().focus().setColor(e.hex).run(),tu(!1)},className:"w-7 h-7 rounded-full border-2 border-gray-200 hover:scale-110 transition-transform",style:{background:e.hex}},e.hex))}),(0,r.jsxs)("div",{className:"flex gap-1.5 items-center mb-2",children:[(0,r.jsx)("input",{type:"text",value:ty,onChange:e=>tw(e.target.value),placeholder:"#hex",className:"w-0 min-w-0 flex-1 border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"}),(0,r.jsx)("button",{onClick:()=>{ty&&(lO.chain().focus().setColor(ty).run(),tu(!1))},className:"px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700",children:"Apply"})]}),(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().unsetColor().run(),tu(!1)},className:"w-full text-xs text-red-500 hover:text-red-700 py-1",children:"Reset Color"})]})]}),(0,r.jsxs)("div",{className:"relative highlight-picker-dropdown",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(lK,{title:"Highlight",isActive:lO.isActive("highlight"),onClick:e=>{let t=e.currentTarget.getBoundingClientRect();tv(window.innerWidth-t.right<260?"right":"left"),tb(!tg),tu(!1)},children:(0,r.jsx)(Q.A,{size:16})}),tg&&(0,r.jsxs)("div",{className:"absolute top-full ".concat("right"===tf?"right-0":"left-0"," z-50 mt-1 bg-white rounded-lg shadow-xl border border-gray-200 p-3 w-[240px] max-w-[calc(100vw-32px)]"),children:[(0,r.jsx)("div",{className:"text-xs font-medium text-gray-500 mb-2",children:"Highlight Colors"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5 mb-3",children:eL.map(e=>(0,r.jsx)("button",{title:e.label,onClick:()=>{lO.chain().focus().toggleHighlight({color:e.hex}).run(),tb(!1)},className:"w-7 h-7 rounded-full border-2 border-gray-200 hover:scale-110 transition-transform",style:{background:e.hex}},e.hex))}),(0,r.jsxs)("div",{className:"flex gap-1.5 items-center mb-2",children:[(0,r.jsx)("input",{type:"text",value:tj,onChange:e=>tN(e.target.value),placeholder:"#hex",className:"w-0 min-w-0 flex-1 border border-gray-300 rounded px-2 py-1 text-xs bg-white text-gray-900"}),(0,r.jsx)("button",{onClick:()=>{tj&&(lO.chain().focus().toggleHighlight({color:tj}).run(),tb(!1))},className:"px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700",children:"Apply"})]}),(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().unsetHighlight().run(),tb(!1)},className:"w-full text-xs text-red-500 hover:text-red-700 py-1",children:"Remove Highlight"})]})]}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)(lK,{title:"Clear Formatting",onClick:()=>lO.chain().focus().clearNodes().unsetAllMarks().run(),children:(0,r.jsx)(X.A,{size:16})})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 bg-white p-1 rounded-lg border border-gray-100 shadow-sm",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-wider px-2 border-r border-gray-200 mr-1 select-none py-1",children:"Layout"}),(0,r.jsx)(lK,{title:"Align Left",isActive:lO.isActive({textAlign:"left"}),onClick:()=>lO.isActive({textAlign:"left"})?lO.chain().focus().unsetTextAlign().run():lO.chain().focus().setTextAlign("left").run(),children:(0,r.jsx)(ee.A,{size:16})}),(0,r.jsx)(lK,{title:"Align Center",isActive:lO.isActive({textAlign:"center"}),onClick:()=>lO.isActive({textAlign:"center"})?lO.chain().focus().unsetTextAlign().run():lO.chain().focus().setTextAlign("center").run(),children:(0,r.jsx)(et.A,{size:16})}),(0,r.jsx)(lK,{title:"Align Right",isActive:lO.isActive({textAlign:"right"}),onClick:()=>lO.isActive({textAlign:"right"})?lO.chain().focus().unsetTextAlign().run():lO.chain().focus().setTextAlign("right").run(),children:(0,r.jsx)(ea.A,{size:16})}),(0,r.jsx)(lK,{title:"Justify",isActive:lO.isActive({textAlign:"justify"}),onClick:()=>lO.isActive({textAlign:"justify"})?lO.chain().focus().unsetTextAlign().run():lO.chain().focus().setTextAlign("justify").run(),children:(0,r.jsx)(er.A,{size:16})}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)(lK,{title:"Numbered List",isActive:lO.isActive("orderedList"),onClick:()=>lO.chain().focus().toggleOrderedList().run(),children:(0,r.jsx)(el.A,{size:16})}),(0,r.jsx)(lK,{title:"Bullet List",isActive:lO.isActive("bulletList"),onClick:()=>lO.chain().focus().toggleBulletList().run(),children:(0,r.jsx)(es.A,{size:16})}),(0,r.jsx)(lK,{title:"Checklist",isActive:lO.isActive("taskList"),onClick:()=>lO.chain().focus().toggleTaskList().run(),children:(0,r.jsx)(eo.A,{size:16})}),(0,r.jsx)(lK,{title:"Blockquote",isActive:lO.isActive("blockquote"),onClick:()=>lO.chain().focus().toggleBlockquote().run(),children:(0,r.jsx)(en.A,{size:16})}),(0,r.jsx)("div",{className:"w-px h-5 bg-gray-200 mx-0.5"}),(0,r.jsx)(lK,{title:"CTA Button",onClick:()=>{aM("Click Here"),aP(""),aU("filled"),aW("#A31D1D"),aG("md"),aJ("_self"),a$("center"),aK("md"),a1(null),aD(!0)},children:(0,r.jsx)(ei.A,{size:16})}),(0,r.jsx)(lK,{title:"Accordion / Details",onClick:()=>{rj([{id:Date.now().toString(),summary:"Click to expand",content:"",open:!1}]),rk(null),ry(!0)},children:(0,r.jsx)(O.A,{size:16})}),(0,r.jsxs)("div",{className:"relative callout-dropdown",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(lK,{title:"Callout",onClick:()=>ae(!t9),children:(0,r.jsx)(ed.A,{size:16})}),t9&&(0,r.jsx)("div",{className:"absolute top-full right-0 z-50 mt-1 bg-white rounded-lg shadow-xl border border-gray-200 py-1 w-[160px] max-w-[calc(100vw-32px)]",children:Object.entries(ez).map(e=>
1{let[t,a]=e;return(0,r.jsxs)("button",{onClick:()=>{lO.chain().focus().insertContent({type:"calloutBlock",attrs:{calloutType:t,text:"".concat(a.label," callout text")}}).run(),ae(!1)},className:"w-full px-3 py-2 text-left text-sm hover:bg-gray-50 flex items-center gap-2 text-gray-700",children:[(0,r.jsx)("span",{children:a.icon})," ",a.label]},t)})})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 bg-white p-1 rounded-lg border border-gray-100 shadow-sm",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-wider px-2 border-r border-gray-200 mr-1 select-none py-1",children:"Media"}),(0,r.jsx)(lK,{title:"Link",isActive:lO.isActive("link"),onClick:()=>{tx(lO.getAttributes("link").href||""),td(!0)},children:(0,r.jsx)(ec.A,{size:16})}),(0,r.jsx)(lK,{title:"Insert Image",onClick:()=>lq(null,!0),children:(0,r.jsx)(L.A,{size:16})}),(0,r.jsx)(lK,{title:"Video",onClick:()=>{tT(""),tS("url"),tE("100%"),tD("auto"),tM("16:9"),tP("center"),tU("8px"),tW(!1),tG(!1),tJ(!1),t$(!0),tQ(null),tC(!0)},children:(0,r.jsx)(E.A,{size:16})}),(0,r.jsx)(lK,{title:"Image Gallery",onClick:()=>{am([]),ag(3),ap("md"),af("md"),ay("auto"),aj("250px"),ak("center"),aA("100%"),aB(!0),aE(null),ac(!0)},children:(0,r.jsx)(ex.A,{size:16})}),(0,r.jsx)(lK,{title:"Image Carousel",onClick:()=>{a6([]),a8(!1),a9(5),rt(!0),rr(!0),rs(!0),rn("slide"),rd("8px"),rx("100%"),ru("400px"),rf(null),a5(!0)},children:(0,r.jsx)(em.A,{size:16})}),(0,r.jsx)(lK,{title:"File Attachment",onClick:()=>{rB(""),rF(""),rL(""),rz(""),rP(null),rA(!0)},children:(0,r.jsx)(z.A,{size:16})}),(0,r.jsx)(lK,{title:"Audio Player",onClick:()=>{rW(""),rG(""),rZ(null),rU(!0)},children:(0,r.jsx)(D.A,{size:16})}),(0,r.jsx)(lK,{title:"Google Maps",onClick:()=>{r0(""),r2("350px"),r4(null),rQ(!0)},children:(0,r.jsx)(eu.A,{size:16})}),(0,r.jsx)(lK,{title:"Social Embed",onClick:()=>{r7(""),le(null),r3(!0)},children:(0,r.jsx)(eg.A,{size:16})}),(0,r.jsx)(lK,{title:"Math Formula",onClick:()=>{ll(""),lo(null),la(!0)},children:(0,r.jsx)(eb.A,{size:16})}),(0,r.jsx)(lK,{title:"PDF Document",onClick:()=>{lc(""),lm(""),lg("600px"),lp(null),li(!0)},children:(0,r.jsx)(H.A,{size:16})})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center bg-white p-1 rounded-lg border border-gray-100 shadow-sm justify-between gap-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-wider px-2 border-r border-gray-200 mr-1 select-none py-1",children:"Utils"}),(0,r.jsxs)("div",{className:"relative",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)(lK,{title:"Emoji",onClick:()=>lw(!ly),children:(0,r.jsx)(ep.A,{size:16})}),ly&&(0,r.jsx)("div",{className:"absolute top-full left-0 z-[100] mt-1 bg-white rounded-lg shadow-2xl border border-gray-200 p-3 overflow-y-auto",style:{width:"240px",maxHeight:"320px"},children:Object.entries(eT).map(e=>{let[t,a]=e;return(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("div",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-wider mb-1.5",children:t}),(0,r.jsx)("div",{className:"grid grid-cols-7 gap-1",children:a.map((e,t)=>(0,r.jsx)("button",{onClick:()=>{lO.chain().focus().insertContent(e).run(),lw(!1)},className:"aspect-square flex items-center justify-center text-xl hover:bg-blue-50 hover:text-blue-600 hover:scale-110 transition-all rounded",children:e},t))})]},t)})})]})]}),(0,r.jsx)(lK,{title:"Rich Text Elements Guide",onClick:()=>to(!0),children:(0,r.jsx)(eh.A,{size:16,className:"text-blue-600 font-semibold"})})]}),t8&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center bg-blue-50/70 p-1 rounded-lg border border-blue-200 shadow-sm gap-0.5 text-xs",children:[(0,r.jsx)("span",{className:"text-blue-700 font-bold uppercase tracking-wider px-2 border-r border-blue-200 mr-1 select-none py-1",children:"Table"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().addRowBefore().run(),className:"px-2 py-1 hover:bg-blue-100/80 rounded text-blue-800 font-medium",children:"+ Row Above"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().addRowAfter().run(),className:"px-2 py-1 hover:bg-blue-100/80 rounded text-blue-800 font-medium",children:"+ Row Below"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().addColumnBefore().run(),className:"px-2 py-1 hover:bg-blue-100/80 rounded text-blue-800 font-medium",children:"+ Col Left"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().addColumnAfter().run(),className:"px-2 py-1 hover:bg-blue-100/80 rounded text-blue-800 font-medium",children:"+ Col Right"}),(0,r.jsx)("div",{className:"w-px h-4 bg-blue-200 mx-1"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().deleteRow().run(),className:"px-2 py-1 hover:bg-red-50 text-red-600 rounded font-medium",children:"Del Row"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().deleteColumn().run(),className:"px-2 py-1 hover:bg-red-50 text-red-600 rounded font-medium",children:"Del Col"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().deleteTable().run(),className:"px-2 py-1 hover:bg-red-50 text-red-600 rounded font-medium",children:"Del Table"}),(0,r.jsx)("div",{className:"w-px h-4 bg-blue-200 mx-1"}),(0,r.jsx)("button",{onClick:()=>lO.chain().focus().toggleHeaderRow().run(),className:"px-2 py-1 hover:bg-blue-100/80 rounded text-blue-800 font-medium",children:"Toggle Header"})]})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(s.$Z,{editor:lO,className:"puck-richtext-editor"}),tr&&(0,r.jsx)(eQ,{image:tr.element,onEdit:()=>{lq(tr.pos),tl(null)},onLeave:()=>tl(null)})]}),(0,r.jsxs)("div",{className:"word-counter-bar",children:[(0,r.jsxs)("span",{children:[lO.storage.characterCount.words()," words"]}),(0,r.jsxs)("span",{children:[lO.storage.characterCount.characters()," characters"]})]}),lN.isOpen&&(0,r.jsx)("div",{className:"fixed inset-0 z-[200000] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:()=>lk(e=>({...e,isOpen:!1})),children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden p-6 space-y-4 animate-in fade-in zoom-in-95 duration-150",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900 text-lg",children:lN.title}),(0,r.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:lN.message}),(0,r.jsx)("div",{className:"flex justify-end pt-2",children:(0,r.jsx)("button",{onClick:()=>lk(e=>({...e,isOpen:!1})),className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:"OK"})})]})}),ts&&(0,r.jsx)("div",{className:"fixed inset-0 z-[200000] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-2xl overflow-hidden flex flex-col max-h-[85vh] animate-in fade-in zoom-in-95 duration-150",children:[(0,r.jsxs)("div",{className:"px-6 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50/50",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(eh.A,{className:"text-blue-600",size:20}),(0,r.jsx)("h3",{className:"font-semibold text-gray-900 text-lg",children:"Rich Text Elements Guide"})]}),(0,r.jsx)("button",{onClick:()=>to(!1),className:"text-gray-400 hover:text-gray-600 transition-colors",children:"✕"})]}),(0,r.jsxs)("div",{className:"p-6 overflow-y-auto flex-1 space-y-4",children:[(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-2",children:"Here is a guide on how each custom element in the rich text editor works and when to use them:"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{title:"Insert Image",desc:"Inserts a single image. Supports direct upload or URL linking, customizable dimensions, alignment, Alt text (for SEO), and browser tooltips on hover.",icon:"\uD83D\uDDBC️"},{title:"Callout Block",desc:"Highlights note sections with 5 styles (Info, Warning, Success, Danger, Tip) and matching status icons.",icon:"⚠️"},{title:"Video Block",desc:"Embeds uploaded video files or external URLs (YouTube) with sizing, autoplay, loop, mute, and playback settings.",icon:"\uD83C\uDFA5"},{title:"Image Gallery",desc:"Displays multiple images in a grid (1-4 columns) with options for roun
1ded corners, equal heights, and a fullscreen Lightbox viewer.",icon:"⣿"},{title:"Image Carousel",desc:"Creates sliding slideshow carousels with control arrows, dots, autoplay speeds, and slide/fade transitions.",icon:"\uD83C\uDFA0"},{title:"CTA Button",desc:"Inserts call-to-action buttons. You can customize target link, fill style (filled, outline, ghost), color, roundness, and sizing.",icon:"\uD83D\uDD18"},{title:"Accordion / Details",desc:"Creates collapse/expand panels to group details. Ideal for FAQs and clean content styling.",icon:"\uD83D\uDD3D"},{title:"File Attachment",desc:"Creates a file card with size metadata and a direct download button for uploaded PDFs, ZIPs, or document templates.",icon:"\uD83D\uDCC1"},{title:"Audio Player",desc:"Embeds audio playing widget for custom music, podcasts, or lectures with standard control bars.",icon:"\uD83C\uDFB5"},{title:"Google Maps",desc:"Embeds responsive maps in iframe directly by typing any location or street address.",icon:"\uD83D\uDCCD"},{title:"Social Embed",desc:"Displays formatted links to social posts or accounts with customized platform icons and layouts.",icon:"\uD83D\uDD17"},{title:"Math Formula (LaTeX)",desc:"Renders complex mathematical equations in crisp layouts using standard LaTeX notation compiled by KaTeX.",icon:"∑"},{title:"PDF Viewer",desc:"Embeds a scrollable, zoomable document iframe for direct PDF viewing on the page.",icon:"\uD83D\uDCC4"},{title:"Table of Contents",desc:"Generates an anchor link navigation panel by automatically scaning headings (H1-H4) on the page.",icon:"\uD83D\uDCD1"}].map((e,t)=>(0,r.jsxs)("div",{className:"p-3 border border-gray-100 rounded-xl bg-gray-50/50 hover:bg-gray-50 hover:border-gray-200 transition-all flex gap-3",children:[(0,r.jsx)("span",{className:"text-2xl select-none flex-shrink-0 mt-0.5",children:e.icon}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-sm text-gray-900 mb-1",children:e.title}),(0,r.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed",children:e.desc})]})]},t))})]}),(0,r.jsx)("div",{className:"px-6 py-4 border-t border-gray-100 bg-gray-50 flex justify-end",children:(0,r.jsx)("button",{onClick:()=>to(!1),className:"px-5 py-2 text-sm font-semibold text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500",children:"Close Guide"})})]})})]})}},78353:(e,t,a)=>{a.d(t,{SiteMagazineFeedEditor:()=>n});var r=a(95155),l=a(12115),s=a(61370);let o=[{slug:"demo-article-1",title:"サンプル記事 1 — 『KING'S RAID』キャラクター育成 & 最強攻略ガイド",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"キンスレ攻略",readingTime:5},{slug:"demo-article-2",title:"サンプル記事 2 — 2026年絶対見るべきおすすめ異世界ファンタジーアニメ",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"異世界アニメ",readingTime:4},{slug:"demo-article-3",title:"サンプル記事 3 — キンスレ女性キャラ人気ランキング & 最強パーティ編成",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"女性キャラアニメ",readingTime:4},{slug:"demo-article-4",title:"サンプル記事 4 — 話題のアニメパチスロ最新台スペック比較 & 攻略立ち回り",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"アニメスロット",readingTime:6},{slug:"demo-article-5",title:"サンプル記事 5 — 剣と魔法の王道ファンタジーアニメ!世界観が魅力的なおすすめ作品",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"異世界アニメ",readingTime:4},{slug:"demo-article-6",title:"サンプル記事 6 — キンスレドラゴンレイド攻略!おすすめ装備オプションと周回編成",cardImage:null,excerpt:"ここにはRanktractionから同期される最新記事の概要テキストが表示されます。",category:"キンスレ攻略",readingTime:5}];function n(e){let{title:t="最新の異世界アニメ & ゲーム攻略記事",showSidebar:a,sidebarTitle:n,articles:i}=e,[d,c]=l.useState(o),x=(i||[]).join(",");return l.useEffect(()=>{let e=!0,t=x?"/api/editor/articles?mode=bySlugs&slugs=".concat(encodeURIComponent(x)):"/api/editor/articles?mode=latest&count=6";return async function(){try{let a=await fetch(t);if(!a.ok)return;let r=await a.json();e&&Array.isArray(r.articles)&&r.articles.length>0?c(r.articles):e&&c(o)}catch(t){e&&c(o)}}(),()=>{e=!1}},[x]),(0,r.jsx)(s.ArticleMagazineFeed,{articles:d,title:t,showSidebar:a,sidebarTitle:n})}},79706:(e,t,a)=>{a.d(t,{HeroBentoSpotlight:()=>c});var r=a(95155);a(12115);var l=a(52619),s=a.n(l),o=a(15239),n=a(26983),i=a(27937),d=a(1524);
1function c(e){let{articles:t,tagline:a="九州アウトドア体験ガイド",title:l="注目の自然体験 & キャンプガイド",readTimeSuffix:c="分の記事",theme:x="default"}=e;if(!t||0===t.length)return null;let m=t[0],u=t.slice(1,4),g={default:{badge:"bg-[#2D5A27] text-white",accent:"text-[#2D5A27]",cardBg:"bg-white"},warm:{badge:"bg-[#E06D3B] text-white",accent:"text-[#E06D3B]",cardBg:"bg-[#FFF9F5]"},ocean:{badge:"bg-[#3B828E] text-white",accent:"text-[#3B828E]",cardBg:"bg-[#F4F9FA]"},professional:{badge:"bg-slate-800 text-white",accent:"text-slate-800",cardBg:"bg-white"}},b=g[x]||g.default;return(0,r.jsx)("section",{className:"w-full py-8 md:py-12 bg-transparent",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between mb-8 gap-4",children:(0,r.jsxs)("div",{children:[a&&(0,r.jsx)("span",{className:"inline-block text-xs font-bold tracking-widest uppercase mb-2 ".concat(b.accent),children:a}),(0,r.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-[#2C2A29] tracking-tight",children:l})]})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-stretch",children:[(0,r.jsx)("div",{className:"lg:col-span-7 flex",children:(0,r.jsxs)(s(),{href:"/".concat(m.slug),className:"group relative w-full min-h-[420px] lg:min-h-[480px] rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-end p-6 sm:p-8 md:p-10 border border-[#E2DFC0]/40",children:[m.cardImage?(0,r.jsx)(o.default,{src:m.cardImage,alt:m.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-700 ease-out",sizes:"(max-width: 1024px) 100vw, 60vw",priority:!0}):(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#2D5A27] to-[#1E3C1A]"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/40 to-transparent z-10"}),(0,r.jsxs)("div",{className:"relative z-20 text-white space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[m.category&&(0,r.jsx)("span",{className:"px-3 py-1 text-xs font-semibold rounded-full shadow-sm ".concat(b.badge),children:m.category}),m.readingTime&&(0,r.jsxs)("span",{className:"flex items-center gap-1 text-xs text-white/80 bg-black/40 backdrop-blur-md px-2.5 py-1 rounded-full",children:[(0,r.jsx)(n.A,{className:"w-3.5 h-3.5"}),m.readingTime,c]})]}),(0,r.jsx)("h3",{className:"text-xl sm:text-2xl md:text-3xl font-bold leading-snug group-hover:text-[#E2DFC0] transition-colors",children:m.title}),m.excerpt&&(0,r.jsx)("p",{className:"text-sm text-white/80 line-clamp-2 leading-relaxed hidden sm:block",children:m.excerpt}),(0,r.jsxs)("div",{className:"pt-2 flex items-center gap-2 text-xs font-bold uppercase tracking-wider text-[#E2DFC0] group-hover:translate-x-1 transition-transform",children:[(0,r.jsx)("span",{children:"記事を読む"}),(0,r.jsx)(i.A,{className:"w-4 h-4"})]})]})]})}),(0,r.jsx)("div",{className:"lg:col-span-5 flex flex-col gap-4 justify-between",children:u.map((e,t)=>(0,r.jsxs)(s(),{href:"/".concat(e.slug),className:"group flex items-start gap-4 p-4 rounded-xl border border-[#E2DFC0]/60 ".concat(b.cardBg," hover:border-[#2D5A27] hover:shadow-md transition-all duration-300 flex-1"),children:[(0,r.jsx)("div",{className:"relative w-28 sm:w-32 h-24 sm:h-28 rounded-lg overflow-hidden shrink-0 bg-slate-100",children:e.cardImage?(0,r.jsx)(o.default,{src:e.cardImage,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"128px"}):(0,r.jsx)("div",{className:"w-full h-full bg-[#EBF2EB] flex items-center justify-center text-[#2D5A27]",children:(0,r.jsx)(d.A,{className:"w-6 h-6 opacity-40"})})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-between h-full py-0.5",children:[(0,r.jsxs)("div",{children:[e.category&&(0,r.jsx)("span",{className:"inline-block text-[11px] font-semibold text-[#2D5A27] mb-1",children:e.category}),(0,r.jsx)("h4",{className:"text-sm sm:text-base font-bold text-[#2C2A29] group-hover:text-[#2D5A27] transition-colors line-clamp-2 leading-snug",children:e.title})]}),(0,r.jsx)("div",{className:"flex items-center gap-2 text-xs text-[#686461] mt-2",children:e.readingTime&&(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(n.A,{className:"w-3 h-3 text-[#2D5A27]"}),e.readingTime,c]})})]})]},e.slug||t))})]})]})})}},79714:(e,t,a)=>{a.d(t,{LatestArticles:()=>c});var r=a(95155),l=a(88661),s=a.n(l),o=a(12115),n=a(50944),i=a(90368),d=a(27937);function c(e){let{articles:t,title:a="最新記事"}
1=e,l=o.useRef(null),[c,x]=o.useState(!1),[m,u]=o.useState(!0),g=t.slice(0,12),b=o.useCallback(()=>{let e=l.current;if(!e)return;let{scrollLeft:t,scrollWidth:a,clientWidth:r}=e;x(t>0),u(t<a-r-10)},[]);return(o.useEffect(()=>{let e=l.current;if(e)return b(),e.addEventListener("scroll",b),window.addEventListener("resize",b),()=>{e.removeEventListener("scroll",b),window.removeEventListener("resize",b)}},[b]),0===g.length)?(0,r.jsx)("section",{className:"py-12 md:py-16 bg-warm-ivory",children:(0,r.jsxs)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-semibold text-charcoal mb-8 text-center",children:a}),(0,r.jsx)("div",{className:"text-center py-12",children:(0,r.jsx)("p",{className:"text-soft-gray text-lg",children:"記事がまだありません"})})]})}):(0,r.jsxs)("section",{className:"jsx-e4c0ee4aadd7f829 py-12 md:py-16 bg-[#F6F6F6]",children:[(0,r.jsxs)("div",{className:"jsx-e4c0ee4aadd7f829 container",children:[(0,r.jsx)("h2",{className:"jsx-e4c0ee4aadd7f829 text-3xl md:text-4xl font-semibold text-[#2D2D2D] mb-8 text-center",children:a}),(0,r.jsxs)("div",{className:"jsx-e4c0ee4aadd7f829 relative",children:[c&&(0,r.jsx)("button",{onClick:()=>{var e;let t=l.current;if(!t)return;let a=(null==(e=t.querySelector(".article-card"))?void 0:e.clientWidth)||350;t.scrollBy({left:-(a+24),behavior:"smooth"})},"aria-label":"前の記事",className:"jsx-e4c0ee4aadd7f829 absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 z-10 w-12 h-12 rounded-full bg-white shadow-[0_4px_20px_rgba(0,0,0,0.08)] flex items-center justify-center text-[#2D2D2D] hover:bg-[#2D5A27] hover:text-white transition-all hover:scale-105",children:(0,r.jsx)(i.A,{className:"w-6 h-6"})}),(0,r.jsx)("div",{ref:l,style:{scrollbarWidth:"none",msOverflowStyle:"none"},className:"jsx-e4c0ee4aadd7f829 flex gap-6 overflow-x-auto scroll-smooth scrollbar-hide snap-x snap-mandatory pb-4",children:g.map((e,t)=>(0,r.jsx)("div",{className:"jsx-e4c0ee4aadd7f829 article-card flex-shrink-0 w-[85vw] sm:w-[calc(50%-12px)] lg:w-[calc(33.333%-16px)] snap-start flex",children:(0,r.jsx)(n.ArticleCard,{article:e,priority:t<3})},e.slug))}),m&&(0,r.jsx)("button",{onClick:()=>{var e;let t=l.current;if(!t)return;let a=(null==(e=t.querySelector(".article-card"))?void 0:e.clientWidth)||350;t.scrollBy({left:a+24,behavior:"smooth"})},"aria-label":"次の記事",className:"jsx-e4c0ee4aadd7f829 absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 z-10 w-12 h-12 rounded-full bg-white shadow-[0_4px_20px_rgba(0,0,0,0.08)] flex items-center justify-center text-[#2D2D2D] hover:bg-[#2D5A27] hover:text-white transition-all hover:scale-105",children:(0,r.jsx)(d.A,{className:"w-6 h-6"})})]})]}),(0,r.jsx)(s(),{id:"e4c0ee4aadd7f829",children:".scrollbar-hide.jsx-e4c0ee4aadd7f829::-webkit-scrollbar{display:none}"})]})}},79845:(e,t,a)=>{a.d(t,{ArticleCardCarousel:()=>s});var r=a(95155),l=a(12115);function s(e){let{cards:t=[],autoplaySpeed:a=4e3,theme:s="default"}=e,[o,n]=(0,l.useState)(0),i=(Array.isArray(t)?t:[]).map(e=>{var t,a,r,l,s;return{image:null!=(t=null==e?void 0:e.image)?t:"",title:null!=(a=null==e?void 0:e.title)?a:"",excerpt:null!=(r=null==e?void 0:e.excerpt)?r:"",category:null!=(l=null==e?void 0:e.category)?l:"",linkUrl:null!=(s=null==e?void 0:e.linkUrl)?s:""}}),d=i.length>0?i:[{image:"",title:"カードを追加してください",excerpt:"",category:"",linkUrl:""}],c=(0,l.useCallback)(()=>n(e=>(e+1)%d.length),[d.length]);(0,l.useEffect)(()=>{if(d.length<=1||!a)return;let e=setInterval(c,a);return()=>clearInterval(e)},[c,d.length,a]);let x={default:{bg:"bg-brand-bg",card:"bg-white",text:"text-text-primary",sub:"text-text-secondary",badge:"bg-brand-primary text-white",dot:"bg-slate-300",dotActive:"bg-brand-primary"},warm:{bg:"bg-orange-50/30",card:"bg-white",text:"text-slate-800",sub:"text-slate-500",badge:"bg-orange-500 text-white",dot:"bg-orange-200",dotActive:"bg-orange-500"},professional:{bg:"bg-slate-50",card:"bg-white",text:"text-slate-800",sub:"text-slate-500",badge:"bg-slate-700 text-white",dot:"bg-slate-300",dotActive:"bg-slate-700"},ocean:{bg:"bg-blue-50/30",card:"bg-white",text:"text-slate-800",sub:"text-slate-500",badge:"bg-blue-500 text-white",dot:"bg-blue-200",dotActive:"bg-blue-500"},forest:{bg:"bg-emerald-50/30",card:"bg-white",text:"text-slate-800",sub:"text-slate-500",badge:"bg-emerald-600 text-white",dot:"bg-emerald-200",dotActive:"bg-emerald-500"}},m=x[s]||x.default,u=d[o],g=u.linkUrl?e=>{let{children:t}=e;return(0,r.jsx)("a",{href:u.linkUrl,className:"block rounded-2xl overflow-hidden shadow-lg ".concat(m.card," hover:shadow-xl transition-shadow"),children:t})}:e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"rounded-2xl overflow-hidden shadow-lg ".concat(m.card),children:t})};return(0,r.jsx)("section",{className:"w-full py-12 ".concat(m.bg),children:(0,r.jsxs)("div",{className:"container max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)(g,{children:[(0,r.jsx)("div",{className:"relative",children:u.image?(0,r.jsx)("img",{src:u.image,alt:u.title,className:"w-full aspect-[3/2] object-cover"}):(0,r.jsx)("div",{className:"w-full aspect-[3/2] bg-slate-100 flex items-center justify-center text-slate-400 text-sm",children:"\uD83D\uDCF7 画像を追加"})}),(0,r.jsxs)("div",{className:"p-6 sm:p-8",children:[u.category&&(0,r.jsx)("span",{className:"inline-block px-3 py-1 text-xs font-bold rounded-full mb-3 ".concat(m.badge),children:u.category}),(0,r.jsx)("h3",{className:"text-xl sm:text-2xl font-bold leading-tight mb-3 ".concat(m.text),children:u.title}),u.excerpt&&(0,r.jsx)("p",{className:"text-sm leading-relaxed line-clamp-3 ".concat(m.sub),children:u.excerpt})]})]}),d.length>1&&(0,r.jsx)("div",{className:"flex items-center justify-center gap-2 mt-6",children:d.map((e,t)=>(0,r.jsx)("button",{onClick:()=>n(t),className:"w-2.5 h-2.5 rounded-full transition-all duration-300 ".concat(t===o?"".concat(m.dotActive," scale-110"):"".concat(m.dot," hover:opacity-70"))},t))})]})})}},80107:(e,t,a)=>{a.d(t,{StickyNav:()=>o});var r=a(95155),l=a(12115);let s={default:{bar:"bg-white border border-slate-200 shadow-sm rounded-xl",fixedBar:"bg-white/95 backdrop-blur-md border-b border-slate-200 shadow-md",link:"text-text-secondary font-medium",linkActive:"text-white font-bold",linkHover:"hover:text-brand-primary hover:bg-brand-primary/5",activePill:"bg-brand-primary shadow-lg shadow-brand-primary/25",indicator:"bg-brand-primary",shadow:"shadow-lg shadow-slate-200/50"},warm:{bar:"bg-white border border-orange-200 shadow-sm rounded-xl",fixedBar:"bg-white/95 backdrop-blur-md border-b border-orange-200 shadow-md",link:"text-slate-500 font-medium",linkActive:"text-white font-bold",linkHover:"hover:text-orange-500 hover:bg-orange-50",activePill:"bg-gradient-to-r from-orange-500 to-red-500 shadow-lg shadow-orange-500/25",indicator:"bg-orange-500",shadow:"shadow-lg shadow-orange-200/50"},professional:{bar:"bg-slate-900 border border-slate-700 shadow-sm rounded-xl",fixedBar:"bg-slate-900/95 backdrop-blur-md border-b border-slate-700 shadow-md",link:"text-slate-400 font-medium",linkActive:"text-slate-900 font-bold",linkHover:"hover:text-white hover:bg-white/10",activePill:"bg-amber-400 shadow-lg shadow-amber-400/25",indicator:"bg-amber-400",shadow:"shadow-lg shadow-slate-800/50"},ocean:{bar:"bg-white border border-blue-200 shadow-sm rounded-xl",fixedBar:"bg-white/95 backdrop-blur-md border-b border-blue-200 shadow-md",link:"text-slate-500 font-medium",linkActive:"text-white font-bold",linkHover:"hover:text-blue-500 hover:bg-blue-50",activePill:"bg-gradient-to-r from-blue-600 to-indigo-600 shadow-lg shadow-blue-600/25",indicator:"bg-blue-600",shadow:"shadow-lg shadow-blue-200/50"},forest:{bar:"bg-white border border-emerald-200 shadow-sm rounded-xl",fixedBar:"bg-white/95 backdrop-blur-md border-b border-emerald-200 shadow-md",link:"text-slate-500 font-medium",linkActive:"text-white font-bold",linkHover:"hover:text-emerald-500 hover:bg-emerald-50",activePill:"bg-gradient-to-r from-emerald-600 to-teal-600 shadow-lg shadow-emerald-600/25",indicator:"bg-emerald-600",shadow:"shadow-lg shadow-emerald-200/50"}};function o(e){let{items:t=[],position:a,theme:o="default",sticky:n}=e,i=a||(!1===n?"inline":"top"),d=s[o]||s.default,[c,x]=(0,l.useState)(""),[m,u]=(0,l.useState)("inline"===i),[g,b]=(0,l.useState)(!1),p=(0,l.useRef)(null);(0,l.useEffect)(()=>{b(window.location.pathname.startsWith("/page_editor_admin"))},[]),(0,l.useEffect)(()=>
1{if("inline"===i||"bottom"===i)return void u(!0);let e=()=>{p.current?u(p.current.getBoundingClientRect().top<0):u(window.scrollY>100)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[i]),(0,l.useEffect)(()=>{if(0===t.length)return;let e=window.innerWidth>=1024,a=g?80:e?160:140,r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&x(t.target.id)},{rootMargin:"-".concat(a,"px 0px -50% 0px"),threshold:.1}),l=setTimeout(()=>{t.forEach(e=>{let t=document.getElementById(e.anchorId);t&&r.observe(t)})},500);return()=>{clearTimeout(l),r.disconnect()}},[t,g]);let h=e=>{x(e);let t=document.getElementById(e);if(t){let e=40;e="top"===i?g?76:(window.innerWidth>=1024?80:64)+60+16:(window.innerWidth>=1024?80:64)+16;let a=t.getBoundingClientRect().top+window.scrollY-e;window.scrollTo({top:a,behavior:"smooth"})}};if(0===t.length)return(0,r.jsx)("div",{className:"w-full py-4",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"text-center py-4 text-text-secondary italic text-sm bg-white rounded-xl border border-slate-200 shadow-sm",children:"Add navigation items using the editor panel →"})})});if("inline"===i)return(0,r.jsx)("div",{className:"w-full py-2",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("nav",{className:"".concat(d.bar," transition-all duration-300"),children:(0,r.jsx)("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide py-2 px-2",children:t.map((e,t)=>{let a=c===e.anchorId;return(0,r.jsx)("button",{onClick:()=>h(e.anchorId),className:"relative px-5 py-2.5 text-sm whitespace-nowrap transition-all duration-300 rounded-lg ".concat(a?"".concat(d.linkActive," ").concat(d.activePill):"".concat(d.link," ").concat(d.linkHover)),children:e.label},t)})})})})});let f=g?"top-0 z-40":"top-16 lg:top-20 z-40",v="top"===i?"fixed ".concat(f," left-0 right-0"):"fixed bottom-0 left-0 right-0 z-40";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:p,className:"w-full py-2",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"".concat(d.bar," transition-all duration-300"),children:(0,r.jsx)("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide py-2 px-2",children:t.map((e,t)=>{let a=c===e.anchorId;return(0,r.jsx)("button",{onClick:()=>h(e.anchorId),className:"relative px-5 py-2.5 text-sm whitespace-nowrap transition-all duration-300 rounded-lg ".concat(a?"".concat(d.linkActive," ").concat(d.activePill):"".concat(d.link," ").concat(d.linkHover)),children:e.label},t)})})})})}),(0,r.jsx)("div",{className:"".concat(v," transition-all duration-300 ").concat(m?"translate-y-0 opacity-100":"top"===i?"-translate-y-full opacity-0":"translate-y-full opacity-0"),children:(0,r.jsx)("nav",{className:"".concat(d.fixedBar," ").concat("top"===i?"border-b":"border-t"," ").concat(d.shadow," transition-all duration-300"),children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide py-2",children:t.map((e,t)=>{let a=c===e.anchorId;return(0,r.jsx)("button",{onClick:()=>h(e.anchorId),className:"relative px-5 py-2.5 text-sm whitespace-nowrap transition-all duration-300 rounded-lg ".concat(a?"".concat(d.linkActive," ").concat(d.activePill):"".concat(d.link," ").concat(d.linkHover)),children:e.label},t)})})})})})]})}},86733:(e,t,a)=>{a.d(t,{TabsContainer:()=>o});var r=a(95155),l=a(12115),s=a(48835);function o(e){var t;let{title:a,tabs:o=[],isEditing:n=!1}=e,[i,d]=(0,l.useState)((null==(t=o[0])?void 0:t.id)||"");return l.useEffect(()=>{o.length>0&&!o.find(e=>e.id===i)&&d(o[0].id)},[o,i]),(0,r.jsx)("section",{className:"py-12 bg-transparent",children:(0,r.jsxs)("div",{className:"w-full max-w-[1280px] mx-auto px-4 sm:px-6",children:[a&&(0,r.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-brand-primary mb-8 text-center",children:a}),0===o.length?(0,r.jsx)("div",{className:"p-8 border-2 border-dashed border-gray-300 text-gray-500 rounded-xl text-center bg-gray-50 font-medium",children:"右パネルから「Tabs」にタブを追加してください"}):n?(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("div",{className:"flex flex-wrap justify-center gap-4",children:o.map((e,t)=>(0,r.jsx)("button",{className:"px-8 py-3.5 rounded-full font-bold text-sm md:text-base bg-white text-gray-500 border border-gray-200 cursor-default opacity-70",tabIndex:-1,
1children:e.label||"Tab ".concat(t+1)},"editor-btn-".concat(t)))}),o.map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"6px",padding:"4px 10px",background:"#1e3a5f",borderRadius:"6px",fontSize:"12px",fontWeight:700,color:"#60a5fa",letterSpacing:"0.04em",width:"fit-content"},children:[(0,r.jsx)("span",{style:{fontSize:"14px"},children:"\uD83D\uDCC2"}),"Tab zone: ",(0,r.jsx)("em",{style:{color:"#93c5fd"},children:e.label||"Tab ".concat(t+1)})]}),(0,r.jsx)("div",{style:{border:"2px dashed #cbd5e1",borderRadius:"10px",background:"#f8fafc"},children:(0,r.jsx)("div",{className:"min-h-[80px] flex flex-col [&>div]:flex-1 [&>div]:min-h-[80px]",children:(0,r.jsx)(s.wC,{zone:"tab-".concat(t)})})})]},"editor-zone-".concat(t)))]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex flex-wrap justify-center gap-4 mb-10",children:o.map((e,t)=>{let a=i===e.id;return(0,r.jsx)("button",{onClick:()=>d(e.id),className:"px-8 py-3.5 rounded-full font-bold text-sm md:text-base transition-all duration-300 shadow-sm ".concat(a?"bg-brand-primary text-white shadow-lg scale-105 border border-brand-primary":"bg-white text-gray-600 border border-gray-200 hover:bg-gray-50"),children:e.label},"live-btn-".concat(t))})}),(0,r.jsx)("div",{className:"w-full relative",children:o.map((e,t)=>(0,r.jsx)("div",{style:{display:i===e.id?"block":"none"},className:"w-full",children:(0,r.jsx)(s.wC,{zone:"tab-".concat(t)})},"zone-wrapper-".concat(t)))})]})]})})}},88393:(e,t,a)=>{a.d(t,{MediaUploadField:()=>o});var r=a(95155),l=a(12115),s=a(90079);function o(e){let{value:t,onChange:a,accept:o="both"}=e,[n,i]=(0,l.useState)(!1),[d,c]=(0,l.useState)(0),[x,m]=(0,l.useState)(""),[u,g]=(0,l.useState)(!1),b=(0,l.useRef)(null),p=(0,l.useCallback)(async e=>{m("");let t=e.type.startsWith("image/"),r=e.type.startsWith("video/");if("image"===o&&!t)return void m("Please select an image file.");if("video"===o&&!r)return void m("Please select a video file.");if(!t&&!r)return void m("Unsupported file type: ".concat(e.type));if(e.size>(t?0xa00000:0x6400000))return void m("File too large. Max ".concat(t?"10":"100","MB."));i(!0),c(0);try{let r=new URLSearchParams(window.location.search).get("token")||"",l=e.name.split(".").pop()||"bin",o=new Date().toISOString().replace(/[:.]/g,"").slice(0,15),n=e.name.replace(/\.[^.]+$/,"").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,50),i="websites/editor/".concat(t?"images":"videos","/").concat(n,"_").concat(o,".").concat(l),d=await (0,s.Se)(i,e,{access:"public",handleUploadUrl:"/api/editor/upload",clientPayload:JSON.stringify({token:r})});a(d.url)}catch(e){m(e instanceof Error?e.message:"Upload failed")}finally{i(!1),c(0)}},[a,o]),h=t&&/\.(jpg|jpeg|png|webp|gif|svg|avif)(\?|$)/i.test(t),f=t&&/\.(mp4|webm|ogg|mov)(\?|$)/i.test(t);return(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:"6px"},children:[(0,r.jsx)("input",{type:"text",value:t||"",onChange:e=>a(e.target.value),placeholder:"Paste URL or upload...",style:{flex:1,padding:"6px 10px",fontSize:"13px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",color:"#1f2937",outline:"none"}}),t&&(0,r.jsx)("button",{onClick:()=>a(""),title:"Clear",style:{padding:"4px 8px",fontSize:"12px",color:"#ef4444",background:"#fef2f2",border:"1px solid #fecaca",borderRadius:"6px",cursor:"pointer"},children:"✕"})]}),(0,r.jsxs)("div",{onDrop:e=>{var t;e.preventDefault(),g(!1);let a=null==(t=e.dataTransfer.files)?void 0:t[0];a&&p(a)},onDragOver:e=>{e.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onClick:()=>{var e;return!n&&(null==(e=b.current)?void 0:e.click())},style:{border:"2px dashed ".concat(u?"#2563eb":"#d1d5db"),borderRadius:"8px",padding:"16px",textAlign:"center",cursor:n?"wait":"pointer",background:u?"#eff6ff":n?"#f9fafb":"#fff",transition:"all 0.15s",position:"relative",overflow:"hidden"},children:[(0,r.jsx)("input",{ref:b,type:"file",accept:"image"===o?"image/jpeg,image/png,image/webp,image/gif,image/svg+xml,image/avif":"video"===o?"video/mp4,video/webm,video/ogg,video/quicktime":"image/jpeg,image/png,image/webp,image/gif,image/svg+xml,image/avif,video/mp4,video/webm,video/ogg,video/quicktime",onChange:e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];a&&p(a),b.current&&(b.current.value="")},style:{display:"none"}}),n?(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[(0,r.jsxs)("svg",{style:{animation:"spin 1s linear infinite"},width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"#94a3b8",strokeWidth:"3",opacity:"0.3"}),(0,r.jsx)("path",{d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",fill:"#2563eb"})]}),(0,r.jsx)("span",{style:{fontSize:"12px",color:"#64748b"},children:"Uploading..."})]}):(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px"},children:[(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#94a3b8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,r.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,r.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),(0,r.jsxs)("span",{style:{fontSize:"12px",color:"#64748b"},children:["Drop file here or ",(0,r.jsx)("span",{style:{color:"#2563eb",fontWeight:500},children:"browse"})]}),(0,r.jsx)("span",{style:{fontSize:"10px",color:"#94a3b8"},children:"image"===o?"JPG, PNG, WebP, GIF, SVG (max 10MB)":"video"===o?"MP4, WebM, OGG, MOV (max 100MB)":"Images (10MB) / Videos (100M
1B)"})]})]}),x&&(0,r.jsx)("div",{style:{padding:"6px 10px",fontSize:"12px",color:"#ef4444",background:"#fef2f2",borderRadius:"6px",border:"1px solid #fecaca"},children:x}),t&&h&&(0,r.jsx)("div",{style:{borderRadius:"6px",overflow:"hidden",border:"1px solid #e5e7eb"},children:(0,r.jsx)("img",{src:t,alt:"Preview",style:{width:"100%",maxHeight:"160px",objectFit:"cover",display:"block"}})}),t&&f&&(0,r.jsx)("div",{style:{borderRadius:"6px",overflow:"hidden",border:"1px solid #e5e7eb"},children:(0,r.jsx)("video",{src:t,controls:!0,muted:!0,style:{width:"100%",maxHeight:"160px",display:"block"}})})]})}},93192:(e,t,a)=>{a.d(t,{AuthorBoxEditor:()=>o});var r=a(95155),l=a(12115),s=a(91169);function o(e){let{authorSlug:t="",showBio:a=!0}=e,[o,n]=(0,l.useState)(null),[i,d]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=t||"編集部";d(!0),fetch("/api/editor/author?name=".concat(encodeURIComponent(e))).then(e=>e.ok?e.json():null).then(e=>n(e)).catch(()=>n(null)).finally(()=>d(!1))},[t]);let c=(null==o?void 0:o.authorName)||t||"編集部",x=(null==o?void 0:o.authorBio)||"",m=(null==o?void 0:o.authorAvatar)||"",u=(null==o?void 0:o.authorRole)||"AUTHOR";return(0,r.jsx)("section",{className:"w-full py-8",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"bg-brand-card border border-border/20 rounded-xl p-6 shadow-sm",children:[(0,r.jsx)("h3",{className:"font-bold text-center border-b border-border/20 pb-4 mb-4 text-text-primary",children:"PROFILE"}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,r.jsx)("div",{className:"w-24 h-24 rounded-full bg-brand-accent/30 flex items-center justify-center overflow-hidden",children:m?(0,r.jsx)("img",{src:m,alt:c,className:"w-full h-full object-cover"}):(0,r.jsx)(s.A,{className:"w-10 h-10 text-brand-primary"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-bold text-text-primary",children:c}),u&&(0,r.jsx)("p",{className:"text-xs text-text-secondary uppercase tracking-wider mt-1",children:u})]}),a&&x&&(0,r.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed max-w-md",children:x}),i&&(0,r.jsx)("p",{className:"text-xs text-text-secondary italic",children:"読み込み中..."}),!i&&!o&&(0,r.jsx)("p",{className:"text-center text-xs text-text-secondary mt-2 italic",children:"※ 著者名を入力すると、データベースからプロフィールが表示されます"})]})]})})})}},93996:(e,t,a)=>{a.d(t,{ServiceDetailBlock:()=>u});var r=a(95155);a(12115);var l=a(52619),s=a.n(l),o=a(69656),n=a(18514),i=a(42529),d=a(6132);function c(e){let{labels:t,values:a,maxValue:l=5,size:s=200,fillColor:o="rgba(239,68,68,0.25)",strokeColor:n="rgb(239,68,68)",gridColor:i="#e2e8f0",labelColor:d="#475569"}=e,c=s/2,x=s/2,m=.35*s,u=t.length;if(u<3)return null;let g=2*Math.PI/u,b=-Math.PI/2,p=(e,t)=>({x:c+t*Math.cos(b+e*g),y:x+t*Math.sin(b+e*g)}),h=a.map((e,t)=>p(t,Math.min(e,l)/l*m)),f=h.map((e,t)=>"".concat(0===t?"M":"L").concat(e.x,",").concat(e.y)).join(" ")+" Z";return(0,r.jsxs)("svg",{width:s,height:s,viewBox:"0 0 ".concat(s," ").concat(s),className:"mx-auto",children:[[.2,.4,.6,.8,1].map(e=>{let t=Array.from({length:u},(t,a)=>p(a,m*e)).map((e,t)=>"".concat(0===t?"M":"L").concat(e.x,",").concat(e.y)).join(" ")+" Z";return(0,r.jsx)("path",{d:t,fill:"none",stroke:i,strokeWidth:"1"},e)}),Array.from({length:u},(e,t)=>{let a=p(t,m);return(0,r.jsx)("line",{x1:c,y1:x,x2:a.x,y2:a.y,stroke:i,strokeWidth:"1"},t)}),(0,r.jsx)("path",{d:f,fill:o,stroke:n,strokeWidth:"2"}),h.map((e,t)=>(0,r.jsx)("circle",{cx:e.x,cy:e.y,r:"3",fill:n},t)),t.map((e,t)=>{let a=p(t,m+24),l=a.x<c-5?"end":a.x>c+5?"start":"middle";return(0,r.jsx)("text",{x:a.x,y:a.y,textAnchor:l,dominantBaseline:"central",fontSize:"11",fontWeight:"600",fill:d,children:e},t)})]})}function x(e){let{rating:t,starColor:a="#f59e0b"}=e;return(0,r.jsx)("span",{className:"inline-flex gap-0.5",children:Array.from({length:5},(e,l)=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:l<Math.round(t)?a:"#d1d5db",children:(0,r.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.286 3.957a1 1 0 00.95.69h4.162c.969 0 1.371 1.24.588 1.81l-3.37 2.448a1 1 0 00-.364 1.118l1.287 3.957c.3.921-.755 1.688-1.54 1.118l-3.37-2.448a1 1 0 00-1.176 0l-3.37 2.448c-.783.57-1.838-.197-1.539-1.118l1.287-3.957a1 1 0 00-.364-1.118L2.065 9.384c-.783-.57-.38-1.81.588-1.81h4.162a1 1 0 00.95-.69l1.284-3.957z"})},l))})}let m={default:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm",titleBorder:"border-l-4 border-brand-primary",overallBadge:"text-text-secondary",ratingLabel:"text-text-primary",starColor:"#f59e0b",radarFill:"rgba(16,185,129,0.2)",radarStroke:"rgb(16,185,129)",descText:"text-text-secondary",impressionBg:"bg-slate-50",impressionBorder:"border border-slate-200",impressionIcon:"text-brand-primary",prosHeader:"bg-emerald-500 text-white",prosBg:"border-emerald-200 bg-emerald-50/50",prosIcon:"text-emerald-500",consHeader:"bg-amber-500 text-white",consBg:"border-amber-200 bg-amber-50/50",consIcon:"text-amber-500",ctaBtn:"bg-slate-800 hover:bg-slate-700 text-white"},warm:{card:"bg-white rounded-2xl border border-orange-200 shadow-sm",titleBorder:"border-l-4 border-orange-500",overallBadge:"text-slate-600",ratingLabel:"text-slate-800",starColor:"#f97316",radarFill:"rgba(249,115,22,0.2)",radarStroke:"rgb(249,115,22)",descText:"text-slate-600",impressionBg:"bg-orange-50",impressionBorder:"border border-orange-200",impressionIcon:"text-orange-500",prosHeader:"bg-orange-500 text-white",prosBg:"border-orange-200 bg-orange-50/50",prosIcon:"text-orange-500",consHeader:"bg-red-400 text-white",consBg:"border-red-200 bg-red-50/50",consIcon:"text-red-400",ctaBtn:"bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white shadow-lg shadow-orange-500/20"},professional:{card:"bg-white rounded-2xl border border-slate-200 shadow-sm",titleBorder:"border-l-4 border-slate-800",overallBadge:"text-slate-500",ratingLabel:"text-slate-800",starColor:"#d97706",radarFill:"rgba(30,41,59,0.15)",radarStroke:"rgb(30,41,59)",de
1scText:"text-slate-500",impressionBg:"bg-slate-50",impressionBorder:"border border-slate-300",impressionIcon:"text-slate-700",prosHeader:"bg-slate-700 text-white",prosBg:"border-slate-200 bg-slate-50",prosIcon:"text-emerald-600",consHeader:"bg-slate-500 text-white",consBg:"border-slate-200 bg-slate-50",consIcon:"text-amber-600",ctaBtn:"bg-slate-800 hover:bg-slate-700 text-white shadow-lg"},ocean:{card:"bg-white rounded-2xl border border-blue-200 shadow-sm",titleBorder:"border-l-4 border-blue-600",overallBadge:"text-slate-600",ratingLabel:"text-slate-800",starColor:"#3b82f6",radarFill:"rgba(59,130,246,0.2)",radarStroke:"rgb(59,130,246)",descText:"text-slate-600",impressionBg:"bg-blue-50",impressionBorder:"border border-blue-200",impressionIcon:"text-blue-600",prosHeader:"bg-blue-600 text-white",prosBg:"border-blue-200 bg-blue-50/50",prosIcon:"text-blue-600",consHeader:"bg-indigo-400 text-white",consBg:"border-indigo-200 bg-indigo-50/50",consIcon:"text-indigo-400",ctaBtn:"bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white shadow-lg shadow-blue-600/20"},forest:{card:"bg-white rounded-2xl border border-emerald-200 shadow-sm",titleBorder:"border-l-4 border-emerald-600",overallBadge:"text-slate-600",ratingLabel:"text-slate-800",starColor:"#10b981",radarFill:"rgba(16,185,129,0.2)",radarStroke:"rgb(16,185,129)",descText:"text-slate-600",impressionBg:"bg-emerald-50",impressionBorder:"border border-emerald-200",impressionIcon:"text-emerald-600",prosHeader:"bg-emerald-600 text-white",prosBg:"border-emerald-200 bg-emerald-50/50",prosIcon:"text-emerald-600",consHeader:"bg-teal-500 text-white",consBg:"border-teal-200 bg-teal-50/50",consIcon:"text-teal-500",ctaBtn:"bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white shadow-lg shadow-emerald-600/20"}};function u(e){let{name:t="",screenshot:a="",overallRating:l=4,overallLabel:u="",ratingCategories:g="",radarLabels:b="",radarValues:p="4\n5\n5\n4.5\n4",description:h="",authorName:f="MATUMOTO",authorImpression:v="",pros:y="",cons:w="",ctaText:j="",ctaUrl:N="#",theme:k="default",openInNewTab:C="same",relAttribute:A="follow",anchorId:S=""}=e,B=m[k]||m.default,T=(0,o.u)({openInNewTab:C,relAttribute:A}),F=(g||"").split("\n").map(e=>e.trim()).filter(Boolean).map(e=>{let[t,a]=e.split(":").map(e=>e.trim());return{label:t||"",rating:parseFloat(a)||0}}),I=(b||"").split("\n").map(e=>e.trim()).filter(Boolean),L=(p||"").split("\n").map(e=>parseFloat(e.trim())||0),E=(y||"").split("\n").map(e=>e.trim()).filter(Boolean),z=(w||"").split("\n").map(e=>e.trim()).filter(Boolean);return(0,r.jsx)("section",{id:S||void 0,className:"w-full py-8 scroll-mt-24",children:(0,r.jsx)("div",{className:"container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"".concat(B.card," overflow-hidden"),children:[(0,r.jsx)("div",{className:"px-6 pt-6 pb-4",children:(0,r.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-text-primary pl-4 ".concat(B.titleBorder),children:t})}),(0,r.jsxs)("div",{className:"px-6 pb-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[(0,r.jsx)("div",{className:"flex items-center justify-center",children:I.length>=3&&(0,r.jsx)(c,{labels:I,values:L,size:220,fillColor:B.radarFill,strokeColor:B.radarStroke})}),(0,r.jsx)("div",{className:"flex items-center justify-center",children:a?(0,r.jsx)("img",{src:a,alt:t,className:"rounded-lg shadow-md max-h-60 object-contain"}):(0,r.jsx)("div",{className:"w-full h-40 bg-slate-100 rounded-lg flex items-center justify-center text-slate-400 text-sm"})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"text-center font-bold mb-4 text-sm ".concat(B.overallBadge),children:["- ",u," -"]}),(0,r.jsx)("div",{className:"space-y-2.5",children:F.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-sm font-medium ".concat(B.ratingLabel),children:e.label}),(0,r.jsx)(x,{rating:e.rating,starColor:B.starColor})]},t))})]})]}),h&&(0,r.jsx)("p",{className:"text-sm leading-relaxed mb-6 ".concat(B.descText),children:h}),v&&(0,r.jsxs)("div",{className:"rounded-xl p-5 mb-6 ".concat(B.impressionBg," ").concat(B.impressionBorder),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,r.jsx)(n.A,{className:"w-4 h-4 ".concat(B.impressionIcon)}),(0,r.jsxs)("h4",{className:"font-bold text-text-primary text-sm",children:[f,"の感想"]})]}),(0,r.jsx)("p",{className:"text-sm leading-relaxed ".concat(B.descText),children:v})]}),(E.length>0||z.length>0)&&(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-4 mb-6",children:[E.length>0&&(0,r.jsxs)("div",{className:"rounded-xl overflow-hidden border ".concat(B.prosBg),children:[(0,r.jsx)("div",{className:"".concat(B.prosHeader," text-center py-2 text-sm font-bold"),children:"メリット"}),(0,r.jsx)("div",{className:"p-4 space-y-2",children:E.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 text-sm text-text-primary",children:[(0,r.jsx)(i.A,{className:"w-4 h-4 ".concat(B.prosIcon," flex-shrink-0 mt-0.5")}),e]},t))})]}),z.length>0&&(0,r.jsxs)("div",{className:"rounded-xl overflow-hidden border ".concat(B.consBg),children:[(0,r.jsx)("div",{className:"".concat(B.consHeader," text-center py-2 text-sm font-bold"),children:"デメリット"}),(0,r.jsx)("div",{className:"p-4 space-y-2",children:z.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 text-sm text-text-primary",children:[(0,r.jsx)(d.A,{className:"w-4 h-4 ".concat(B.consIcon," flex-shrink-0 mt-0.5")}),e]},t))})]})]}),j&&(0,r.jsx)(s(),{href:N||"#",...T,className:"block w-full text-center py-4 font-bold text-base rounded-xl transition-all duration-300 hover:-translate-y-0.5 ".concat(B.ctaBtn),children:j})]})]})})})}},97003:(e,t,a)=>{a.d(t,{$:()=>i});var r=a(95155),l=a(12115),s=a(83101),o=a(25016);let n=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-[#F4C7CF] text-white shadow-sm hover:bg-[#
1E9AAB5] hover:shadow-md",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border-2 border-[#F4C7CF] text-[#E38A9B] bg-background hover:bg-[#F4C7CF] hover:text-white shadow-sm",secondary:"bg-[#F2ECE6] text-[#222222] shadow-sm hover:bg-[#E8DFD6]",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-[#E38A9B] underline-offset-4 hover:underline hover:text-[#D96F85]"},size:{default:"h-10 px-6 py-2",sm:"h-8 px-4 text-xs",lg:"h-12 px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=l.forwardRef((e,t)=>{let{className:a,variant:l,size:s,asChild:i=!1,...d}=e;return(0,r.jsx)("button",{className:(0,o.cn)(n({variant:l,size:s,className:a})),ref:t,...d})});i.displayName="Button"},97017:(e,t,a)=>{a.d(t,{HeroVideoCinematic:()=>s});var r=a(95155),l=a(12115);function s(e){let{title:t="ようこそ",subtitle:a="Welcome",description:s="",bgVideo:o="",bgImage:n="",mediaType:i="video",overlayOpacity:d=40,bgColor:c="",bgGradientFrom:x="",bgGradientTo:m="",bgGradientDirection:u="to-br",buttonText:g="",buttonUrl:b="",buttonStyle:p="filled",theme:h="default",anchorId:f=""}=e,v=(0,l.useRef)(null);(0,l.useEffect)(()=>{v.current&&v.current.play().catch(()=>{})},[o]);let y={default:{gradient:"from-black/70 via-black/40 to-transparent",accent:"text-brand-action"},warm:{gradient:"from-orange-900/70 via-orange-900/30 to-transparent",accent:"text-orange-400"},professional:{gradient:"from-slate-900/80 via-slate-900/50 to-slate-900/20",accent:"text-blue-400"},ocean:{gradient:"from-blue-900/70 via-blue-900/30 to-transparent",accent:"text-blue-300"},forest:{gradient:"from-emerald-900/70 via-emerald-900/30 to-transparent",accent:"text-emerald-300"}},w=y[h]||y.default,j="video"===i&&o,N="image"===i&&n||!j&&n;return(0,r.jsxs)("section",{id:f||void 0,className:"relative w-full min-h-[60vh] sm:min-h-[70vh] overflow-hidden flex items-center scroll-mt-24",children:[j&&(0,r.jsx)("video",{ref:v,src:o,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover"}),N&&!j&&(0,r.jsx)("img",{src:n,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),!j&&!N&&(0,r.jsx)("div",{className:"absolute inset-0 ".concat(x||c?"":"bg-gradient-to-br from-slate-800 to-slate-900"),style:x&&m?{background:"linear-gradient(".concat("to-r"===u?"to right":"to-b"===u?"to bottom":"to-bl"===u?"to bottom left":"to-t"===u?"to top":"to bottom right",", ").concat(x,", ").concat(m,")")}:c?{backgroundColor:c}:void 0}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r ".concat(w.gradient),style:{opacity:(null!=d?d:40)/100}}),(0,r.jsx)("div",{className:"relative z-10 container max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 py-16",children:(0,r.jsxs)("div",{className:"max-w-2xl",children:[a&&(0,r.jsx)("p",{className:"text-sm sm:text-base font-medium ".concat(w.accent," mb-3 tracking-wider uppercase"),children:a}),(0,r.jsx)("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-white leading-tight mb-4",children:t}),s&&(0,r.jsx)("p",{className:"text-white/80 text-base sm:text-lg leading-relaxed max-w-xl",children:s}),g&&(0,r.jsx)("a",{href:b||"#",className:"mt-6 inline-flex items-center gap-2 px-8 py-3.5 rounded-xl font-semibold text-sm transition-all duration-200 ".concat("outlined"===p?"border-2 border-white text-white hover:bg-white/10":"ghost"===p?"text-white hover:bg-white/10 underline underline-offset-4":"bg-white text-slate-900 hover:bg-white/90 shadow-lg"),children:g})]})}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-20 bg-gradient-to-t from-brand-bg to-transparent"})]})}}}]);

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.