1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3267],{15818:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},17963:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(3576),s=a(65699),l=a(14232);let i=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&a.indexOf(e)===t).join(" ")};var d=a(62701),n={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"};let o=(0,l.forwardRef)((e,t)=>{var{color:a="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:h,className:u="",children:y,iconNode:p}=e,x=(0,s._)(e,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,l.createElement)("svg",(0,r._)((0,d._)((0,r._)({ref:t},n),{width:o,height:o,stroke:a,strokeWidth:h?24*Number(c)/Number(o):c,className:i("lucide",u)}),x),[...p.map(e=>{let[t,a]=e;return(0,l.createElement)(t,a)}),...Array.isArray(y)?y:[y]])}),c=(e,t)=>{let a=(0,l.forwardRef)((a,d)=>{var{className:n}=a,c=(0,s._)(a,["className"]);return(0,l.createElement)(o,(0,r._)({ref:d,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),n)},c))});return a.displayName="".concat(e),a}},20118:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var r=a(37876),s=a(14232),l=a(35793),i=a(14e3),d=a(14173),n=a(82392);let o=e=>{let{children:t}=e,a=(0,i.usePathname)(),o=(null==a?void 0:a.startsWith("/"))?a.slice(1):a,{hasPermission:c,permissions:h,isSuperAdmin:u,loading:y,adminData:p}=(0,d.A)(),[x,m]=(0,s.useState)(!1),[k,v]=(0,s.useState)(!0),g=(0,i.useRouter)();return((0,s.useEffect)(()=>{if(m(!0),y)return;if(!localStorage.getItem("admin_token"))return void g.replace("/admin");if((null==p?void 0:p.role)==="IPMASTER"||(null==p?void 0:p.email)==="[email protected]")return o.startsWith("admin/ip-management")?void v(!1):void g.push("/admin/ip-management");if(u)return void v(!1);if(!h||0===h.length)return void g.push("/admin/no-access");let e=[...l.W,...l.D].filter(e=>e.href).sort((e,t)=>t.href.length-e.href.length).find(e=>o.startsWith(e.href)),t=e?e.permission||e.name:null;if(e&&t&&c(t,"view"))return void v(!1);if(c("Dashboard","view"))return void g.push("/admin/dashboard");let a=[...l.W,...l.D].find(e=>e.name&&c(e.name,"view"));if(a)return void g.push(a.href);g.push("/admin/no-access")},[y,h,u,o,c,g]),!x||k)?null:(0,r.jsxs)("div",{className:"flex bg-gray-100",children:[(0,r.jsx)(n.default,{}),(0,r.jsx)("div",{className:"pt-16 px-10 overflow-x-auto w-full h-screen",children:(0,r.jsx)("main",{className:"flex-1 overflow-x-hidden overflow-y-auto bg-gray-100",children:t})})]})}},29689:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/create-event",function(){return a(84317)}])},37731:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var r=a(37876),s=a(14232),l=a(54196),i=a(13734);a(93754);var d=a(87740),n=a(14173),o=a(56930);let c=function(e){let{type:t,componentType:a,parentId:c}=e,{permissions:h,hasPermission:u,loading:y,isSuperAdmin:p,submodules:x,adminId:m,adminData:k}=(0,n.A)(),[v,g]=(0,s.useState)(!1),[f,w]=(0,s.useState)(null),[b,j]=(0,s.useState)(""),[A,M]=(0,s.use
1State)({}),[N,C]=(0,s.useState)({}),_=async()=>{let e={};if(b||(e.title="Please enter a title."),Object.keys(e).length>0)return void C(e);C({});let r=document.getElementById("progress-bar");try{r.style.width="0%",r.style.transition="none",requestAnimationFrame(()=>{r.style.transition="width 0.5s ease",r.style.width="100%"});let e=await fetch("".concat(l.Qs,"slug/add"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({parent_id:c,name:b,type:t,ComponentType:a})}),n=await e.json();if(n.status){var s,d;M(null==n?void 0:n.data),i.oR.success("".concat(t," added Successfully")),(0,o.T)({adminId:m,module:"Page",action:"Create "+t,targetLabel:"Page Id",targetId:null==n||null==(s=n.data)?void 0:s.page_id,description:"Admin Create New Page : "+(null==n||null==(d=n.data)?void 0:d.path)}),g(!0)}else alert(n.message),M({})}catch(e){console.error("Error: ",e),i.oR.error("An error occurred while processing your request.")}finally{r.style.width="0%"}};return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{id:"progress-bar",className:"fixed top-0 left-0 h-1 bg-red-500 z-50"}),(0,r.jsx)("div",{className:"bg-gradient-to-r from-blue-600 via-purple-600 to-indigo-700 rounded-2xl p-6 mb-8 shadow-2xl",children:(0,r.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,r.jsx)("div",{className:"bg-white/20 backdrop-blur-sm rounded-full p-3",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),(0,r.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("h1",{className:"text-2xl font-novaBold text-white tracking-wide",children:["Create ",t]}),(0,r.jsxs)("p",{className:"text-blue-100 font-novaReg text-sm mt-1",children:["Add a ",null==t?void 0:t.toLowerCase()," page to your website structure"]})]})]})}),!v&&(0,r.jsx)("div",{className:"bg-white max-w-xl rounded-2xl shadow-xl p-8 border border-gray-100",children:(0,r.jsxs)("form",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"title",className:"block text-sm font-novaSemi text-gray-700 mb-2",children:[t," Title",(0,r.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,r.jsx)("input",{id:"title",type:"text",value:b,placeholder:"Enter ".concat(t," title..."),onChange:e=>j(e.target.value),className:"w-full border-2 border-gray-200 font-novaReg rounded-xl py-3 px-4 focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-200 transition-all duration-200 bg-gray-50 hover:bg-white"}),N.title&&(0,r.jsx)("p",{className:"text-sm text-red-600 ml-1 mt-1",children:N.title})]}),(0,r.jsxs)("div",{className:"flex space-x-4 pt-6",children:[u("Create ".concat(t),"create")&&(0,r.jsx)("button",{onClick:_,type:"button",className:"flex-1 bg-gradient-to-r from-green-500 to-green-600 text-white py-3 px-6 rounded-xl font-novaSemi text-sm uppercase tracking-wide hover:from-green-600 hover:to-green-700 hover:scale-105 transform transition-all duration-200 shadow-lg hover:shadow-xl",children:(0,r.jsxs)("span",{className:"flex items-center justify-center space-x-2",children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),(0,r.jsxs)("span",{children:["Add ",t]})]})}),(0,r.jsx)("button",{type:"button",onClick:()=>{g(!1),j(""),w(null)},className:"flex-1 bg-gradient-to-r from-red-500 to-red-600 text-white py-3 px-6 rounded-xl font-novaSemi text-sm uppercase tracking-wide hover:from-red-600 hover:to-red-700 hover:scale-105 transform transition-all duration-200 shadow-lg hover:shadow-xl",children:(0,r.jsxs)("span",{className:"flex items-center justify-center space-x-2",children:[(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),(0,r.jsx)("span",{children:"Clear Form"})]})})]})]})}),v&&(0,r.jsx)(d.default,{allData:A,parentPage:f,type:t,componentType:a})]})}},38314:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]])},43547:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("FilePlus2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]])},46293:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},52778:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("RefreshCcwDot",[["path",{d:"M3 2v6h6",key:"18ldww"}
1],["path",{d:"M21 12A9 9 0 0 0 6 5.3L3 8",key:"1pbrqz"}],["path",{d:"M21 22v-6h-6",key:"usdfbe"}],["path",{d:"M3 12a9 9 0 0 0 15 6.7l3-2.7",key:"1hosoe"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]])},52941:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("CalendarRange",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]])},54410:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},57586:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]])},57742:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]])},63200:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},68693:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},70175:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},70973:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("Waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]])},79261:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},84060:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("BellDot",[["path",{d:"M19.4 14.9C20.2 16.4 21 17 21 17H3s3-2 3-9c0-3.3 2.7-6 6-6 .7 0 1.3.1 1.9.3",key:"xcehk"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["circle",{cx:"18",cy:"8",r:"3",key:"1g0gzu"}]])},84317:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var r=a(37876),s=a(37731),l=a(20118);function i(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.default,{children:(0,r.jsx)(s.default,{type:"Event",componentType:"EventDetails",parentId:269060})})})}},89398:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]])},97621:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(17963).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])}},e=>{e.O(0,[4e3,8230,4587,764,2392,7740,636,6593,8792],()=>e(e.s=29689)),_N_E=e.O()}]);
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.