import{c as m,u as d,j as e,L as n}from"./index-BAuuZIqA.js";import{S as p,H as u,F as g}from"./Footer-WKjBqeCJ.js";import{H as j}from"./home-BfrQw5Hd.js";import{C as f}from"./calendar-D1JUScCz.js";import{C as b}from"./clock-CjcEZyZH.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x=m("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y=m("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N=m("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function v(){const a=d().pathname.split("/").filter(s=>s),o={about:"About","how-it-works":"How It Works",privacy:"Privacy Policy",terms:"Terms of Service","cookie-policy":"Cookie Policy",accessibility:"Accessibility",ccpa:"California Privacy Rights",contact:"Contact",faq:"FAQ",creators:"Creators",press:"Press",wishlist:"Wishlists",birthday:"Birthday",wedding:"Wedding","baby-shower":"Baby Shower",christening:"Christening",christmas:"Christmas",eid:"Eid","bat-mitzvah":"Bat Mitzvah",graduation:"Graduation","valentines-day":"Valentine's Day",housewarming:"Housewarming",occasions:"All Occasions"};if(a.length===0)return null;const i=a.map((s,t)=>{const r=`/${a.slice(0,t+1).join("/")}`;return{label:o[s]||s,path:r}});return e.jsx("nav",{className:"container mx-auto px-4 py-4 pt-24","aria-label":"Breadcrumb",children:e.jsxs("ol",{className:"flex items-center space-x-2 text-sm",children:[e.jsx("li",{children:e.jsx(n,{to:"/",className:"text-gray-600 hover:text-purple-600 transition flex items-center focus:outline-none focus:ring-2 focus:ring-purple-600 rounded px-1","aria-label":"Home",children:e.jsx(j,{className:"w-4 h-4","aria-hidden":"true"})})}),i.map((s,t)=>{const r=t===i.length-1;return e.jsxs("li",{className:"flex items-center",children:[e.jsx(y,{className:"w-4 h-4 text-gray-400 mx-1","aria-hidden":"true"}),r?e.jsx("span",{className:"text-purple-600 font-medium","aria-current":"page",children:s.label}):e.jsx(n,{to:s.path,className:"text-gray-600 hover:text-purple-600 transition focus:outline-none focus:ring-2 focus:ring-purple-600 rounded px-1",children:s.label})]},s.path)})]})})}function A({title:l,description:a,date:o,readTime:i,category:s,canonical:t,keywords:r,image:c,children:h}){return e.jsxs(e.Fragment,{children:[e.jsx(p,{title:`${l} | Wishr Blog`,description:a,canonical:t,keywords:r}),e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-purple-50 to-white",children:[e.jsx(u,{}),e.jsx("main",{className:"pt-32 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx(v,{}),e.jsxs(n,{to:"/blog",className:"inline-flex items-center gap-2 text-purple-600 hover:text-purple-700 font-semibold mb-8 group",children:[e.jsx(x,{className:"w-4 h-4 group-hover:-translate-x-1 transition"}),"Back to Blog"]}),e.jsxs("article",{children:[e.jsxs("header",{className:"mb-8",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-gray-600 mb-4",children:[e.jsxs("span",{className:"px-4 py-1.5 bg-purple-100 text-purple-700 rounded-full font-semibold flex items-center gap-1",children:[e.jsx(N,{className:"w-4 h-4"}),s]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(f,{className:"w-4 h-4"}),e.jsx("span",{children:new Date(o).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(b,{className:"w-4 h-4"}),e.jsx("span",{children:i})]})]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6 text-purple-900",children:l}),e.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:a})]}),c&&e.jsx("div",{className:"mb-8 rounded-xl overflow-hidden shadow-xl",children:e.jsx("img",{src:c,alt:l,className:"w-full h-auto"})}),e.jsx("div",{className:"prose prose-lg max-w-none",children:h}),e.jsx("div",{className:"mt-12 pt-8 border-t border-gray-200",children:e.jsxs(n,{to:"/blog",className:"inline-flex items-center gap-2 text-purple-600 hover:text-purple-700 font-semibold group",children:[e.jsx(x,{className:"w-4 h-4 group-hover:-translate-x-1 transition"}),"Back to All Posts"]})})]})]})}),e.jsx(g,{})]})]})}export{A as B};