(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[442],{4212:function(e,t,r){Promise.resolve().then(r.bind(r,3807))},8030:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(2265);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:c,className:u="",children:o,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...l,width:a,height:a,stroke:r,strokeWidth:c?24*Number(i)/Number(a):i,className:s("lucide",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(o)?o:[o]])}),c=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:c,...u}=r;return(0,n.createElement)(i,{ref:l,iconNode:t,className:s("lucide-".concat(a(e)),c),...u})});return r.displayName="".concat(e),r}},3907:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let n=(0,r(8030).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},4697:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let n=(0,r(8030).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3807:function(e,t,r){"use strict";r.d(t,{default:function(){return d}});var n=r(7437),a=r(2265),s=r(6463),l=r(4120),i=r(6370),c=r(7600),u=r(1616),o=r(3907);function d(){let e=(0,s.useParams)(),t=null==e?void 0:e.slug,[r,d]=(0,a.useState)(null),[f,h]=(0,a.useState)(!0);if((0,a.useEffect)(()=>{if(t){let e=(0,u.W4)(t);e&&(d(e),(0,u.Yh)(t))}h(!1)},[t]),f)return(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-ivory-50",children:(0,n.jsx)(o.Z,{className:"w-8 h-8 text-gold-500 animate-spin"})});if(!r)return(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-ivory-50 px-6",children:(0,n.jsxs)("div",{className:"text-center max-w-md",children:[(0,n.jsx)("div",{className:"text-6xl mb-4",children:"\uD83D\uDC8C"}),(0,n.jsx)("h1",{className:"font-display text-3xl text-gray-900 mb-2",children:"الدعوة غير موجودة"}),(0,n.jsx)("p",{className:"text-gray-600 mb-6",children:"قد يكون الرابط غير صحيح أو تم حذف الدعوة"}),(0,n.jsx)("a",{href:"/",className:"btn-primary inline-flex",children:"العودة للرئيسية"})]})});switch(r.templateId){case"gold-luxury":case"royal-plum":case"noir-elegant":case"emerald-islamic":return(0,n.jsx)(l.Z,{inv:r});case"pink-romantic":case"floral-pastel":return(0,n.jsx)(i.Z,{inv:r});default:return(0,n.jsx)(c.Z,{inv:r})}}}},function(e){e.O(0,[82,224,971,23,744],function(){return e(e.s=4212)}),_N_E=e.O()}]);