(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2076],{9357:(e,t,r)=>{"use strict";r.d(t,{PerformanceOptimizedLayout:()=>Q});var a=r(95155),s=r(12115),n=r(6874),o=r.n(n),i=r(64455),c=r(62098),l=r(93509),d=r(54416),m=r(74783),x=r(40334);let h=null,u=0;function y(){let[e,t]=(0,s.useState)(!1),[r,n]=(0,s.useState)(!1),{theme:y,setTheme:p}=(0,i.D)(),{navigation:f,loading:g}=function(e){var t;let[r,a]=(0,s.useState)([]),[n,o]=(0,s.useState)(!0),[i,c]=(0,s.useState)(null),[l,d]=(0,s.useState)(!1),m=!1,x=(t=void 0,false);return(0,s.useEffect)(()=>{d(!0)},[]),(0,s.useEffect)(()=>{l&&(async()=>{if(!x&&h&&Date.now()-u<9e5){a(h),o(!1);return}try{let e=await fetch(m?"/api/content/navigation?showInactive=true":"/api/content/navigation",{credentials:"same-origin",headers:{"Content-Type":"application/json"}});if(e.ok){let t=await e.json();h=t,u=Date.now(),a(t)}else throw Error("Failed to fetch navigation")}catch(e){c(e instanceof Error?e.message:"An error occurred"),h&&a(h)}finally{o(!1)}})()},[m,x,l]),{navigation:r,loading:n||!l,error:i,refreshNavigation:async()=>{h=null,u=0,o(!0),c(null);try{let e=await fetch(m?"/api/content/navigation?showInactive=true":"/api/content/navigation",{credentials:"same-origin",headers:{"Content-Type":"application/json"}});if(e.ok){let t=await e.json();h=t,u=Date.now(),a(t)}else throw Error("Failed to fetch navigation")}catch(e){c(e instanceof Error?e.message:"An error occurred")}finally{o(!1)}}}}(),b=f.filter(e=>e.isActive);(0,s.useEffect)(()=>{n(!0)},[]);let j=r&&!g;return(0,a.jsx)("nav",{className:"bg-white dark:bg-secondary-900 border-b border-secondary-200 dark:border-secondary-700 sticky top-0 z-50",children:(0,a.jsxs)("div",{className:"container-custom",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(o(),{href:"/",className:"flex items-center",children:(0,a.jsx)(x.A,{width:160,height:48})})}),j&&b.length>0&&(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)("div",{className:"ml-10 flex items-baseline space-x-4",children:b.map(e=>(0,a.jsx)(o(),{href:e.href,target:e.isExternal?"_blank":void 0,rel:e.isExternal?"noopener noreferrer":void 0,className:"text-secondary-700 dark:text-secondary-300 hover:text-primary-500 dark:hover:text-primary-400 px-3 py-2 text-sm font-medium transition-colors duration-200",children:e.name},e.id))})}),!r&&(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)("div",{className:"ml-10 flex items-baseline space-x-4",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-8 w-16 bg-secondary-200 dark:bg-secondary-700 rounded animate-pulse"},e))})}),(0,a.jsxs)("div",{className:"hidden md:flex items-center space-x-4",children:[(0,a.jsx)("button",{onClick:()=>p("dark"===y?"light":"dark"),className:"p-2 rounded-lg bg-secondary-100 dark:bg-secondary-800 text-secondary-700 dark:text-secondary-300 hover:text-primary-500 dark:hover:text-primary-400 transition-colors duration-200","aria-label":"Toggle theme",children:r&&"dark"===y?(0,a.jsx)(c.A,{className:"h-5 w-5"}):(0,a.jsx)(l.A,{className:"h-5 w-5"})}),(0,a.jsx)(o(),{href:"/contact",className:"btn-primary text-sm",children:"Get Started"})]}),(0,a.jsxs)("div",{className:"md:hidden flex items-center space-x-2",children:[(0,a.jsx)("button",{onClick:()=>p("dark"===y?"light":"dark"),className:"p-2 rounded-lg bg-secondary-100 dark:bg-secondary-800 text-secondary-700 dark:text-secondary-300","aria-label":"Toggle theme",children:r&&"dark"===y?(0,a.jsx)(c.A,{className:"h-5 w-5"}):(0,a.jsx)(l.A,{className:"h-5 w-5"})}),(0,a.jsx)("button",{onClick:()=>t(!e),className:"p-2 rounded-lg bg-secondary-100 dark:bg-secondary-800 text-secondary-700 dark:text-secondary-300","aria-label":"Toggle mobile menu",children:e?(0,a.jsx)(d.A,{className:"h-6 w-6"}):(0,a.jsx)(m.A,{className:"h-6 w-6"})})]})]}),e&&(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsx)("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-secondary-200 dark:border-secondary-700",children:j&&b.length>0?(0,a.jsxs)(a.Fragment,{children:[b.map(e=>(0,a.jsx)(o(),{href:e.href,target:e.isExternal?"_blank":void 0,rel:e.isExternal?"noopener noreferrer":void 0,className:"text-secondary-700 dark:text-secondary-300 hover:text-primary-500 dark:hover:text-primary-400 block px-3 py-2 text-base font-medium transition-colors duration-200",onClick:()=>t(!1),children:e.name},e.id)),(0,a.jsx)("div",{className:"pt-4",children:(0,a.jsx)(o(),{href:"/contact",className:"btn-primary w-full text-center block",onClick:()=>t(!1),children:"Get Started"})})]}):r?(0,a.jsx)("div",{className:"pt-4",children:(0,a.jsx)(o(),{href:"/contact",className:"btn-primary w-full text-center block",onClick:()=>t(!1),children:"Get Started"})}):(0,a.jsx)(a.Fragment,{children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-10 w-24 bg-secondary-200 dark:bg-secondary-700 rounded animate-pulse"},e))})})})]})})}var p=r(72894),f=r(18175),g=r(10488),b=r(75684),j=r(2925),v=r(28883),k=r(19420),w=r(4516),N=r(48136),A=r(75525),S=r(22915),E=r(34869),C=r(17580),I=r(34576),D=r(14186),T=r(38564),F=r(33109),P=r(51976),G=r(32919),L=r(57434),_=r(17576),R=r(5040),O=r(55868),z=r(16785),M=r(79249);function W(){let{footerContent:e,loading:t,error:r}=function(){let[e,t]=(0,s.useState)(null),[r,a]=(0,s.useState)(!0),[n,o]=(0,s.useState)(null);return(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/content/footer");if(e.ok){let r=await e.json();t(r)}else console.error("Failed to fetch footer content:",e.status),o("Failed to load footer content")}catch(e){console.error("Error fetching footer content:",e),o("Failed to load footer content")}finally{a(!1)}})()},[]),{footerContent:e,loading:r,error:n}}();if(t)return(0,a.jsx)("footer",{className:"bg-white dark:bg-secondary-900 border-t border-secondary-200 dark:border-secondary-700 py-8 text-center",children:(0,a.jsx)("div",{className:"container-custom",children:(0,a.jsx)("div",{className:"text-secondary-500 dark:text-secondary-400 text-sm",children:"Loading footer..."})})});if(r||!e)return(0,a.jsx)("footer",{className:"bg-white dark:bg-secondary-900 border-t border-secondary-200 dark:border-secondary-700 py-8 text-center",children:(0,a.jsxs)("div",{className:"container-custom",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("span",{className:"text-lg font-bold text-secondary-900 dark:text-white",children:"Footer"})}),(0,a.jsx)("div",{className:"text-secondary-500 dark:text-secondary-400 text-sm",children:"Footer content unavailable."})]})});let n=e.showStats&&e.footerStats&&e.footerStats.length>0?e.footerStats.filter(e=>e.show).map(e=>{var t;return{label:e.label,value:e.value,suffix:e.suffix||"",icon:(t=e.label,({"Organizations Served":N.A,"Data Protected":A.A,"Compliance Rate":S.A,"Countries Served":E.A,"Clients Served":C.A,"Data Processed":I.A,Uptime:D.A,"Success Rate":T.A,Growth:F.A,Satisfaction:P.A,"Security Score":G.A,"Documents Processed":L.A,"Projects Completed":_.A,"Knowledge Base":R.A,"Revenue Growth":O.A,Performance:z.A,"Team Members":M.A,"Awards Won":T.A,Certifications:S.A,Partnerships:C.A})[t]||N.A)}}):[],i=e.showNavigation&&e.footerLinkGroups&&e.footerLinkGroups.length>0?e.footerLinkGroups.filter(e=>e.show).map(e=>{var t;return{...e,links:null==(t=e.links)?void 0:t.filter(e=>e.show)}}):[],c=e.showSocialLinks?[e.showLinkedin&&e.linkedin&&{name:"LinkedIn",href:e.linkedin,icon:p.A},e.showTwitter&&e.twitter&&{name:"Twitter",href:e.twitter,icon:f.A},e.showFacebook&&e.facebook&&{name:"Facebook",href:e.facebook,icon:g.A},e.showInstagram&&e.instagram&&{name:"Instagram",href:e.instagram,icon:b.A},e.showYoutube&&e.youtube&&{name:"YouTube",href:e.youtube,icon:j.A}].filter(e=>!!e):[];return(0,a.jsx)("footer",{className:"bg-white dark:bg-secondary-900 border-t border-secondary-200 dark:border-secondary-700",children:(0,a.jsxs)("div",{className:"container-custom py-12",children:[e.showStats&&n.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-12",children:n.map((e,t)=>{let r=e.icon;return(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 bg-primary-100 dark:bg-primary-900/30 rounded-lg mb-3",children:(0,a.jsx)(r,{className:"w-6 h-6 text-primary-600 dark:text-primary-400"})}),(0,a.jsxs)("div",{className:"text-2xl md:text-3xl font-bold text-secondary-900 dark:text-white mb-1",children:[e.value,e.suffix]}),(0,a.jsx)("div",{className:"text-secondary-600 dark:text-secondary-300 text-sm font-medium",children:e.label})]},t)})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8 mb-8",children:[e.showCompanyInfo&&(0,a.jsxs)("div",{className:"lg:col-span-2",children:[(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(x.A,{width:140,height:42})}),(0,a.jsx)("p",{className:"text-secondary-600 dark:text-secondary-300 mb-6 leading-relaxed text-sm",children:e.companyDescription}),e.showContactInfo&&(e.contactEmail||e.contactPhone||e.address)&&(0,a.jsxs)("div",{className:"space-y-3",children:[e.contactEmail&&(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)(v.A,{className:"w-4 h-4 text-primary-600 dark:text-primary-400"}),(0,a.jsx)("a",{href:"mailto:".concat(e.contactEmail),className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 text-sm transition-colors",children:e.contactEmail})]}),e.contactPhone&&(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)(k.A,{className:"w-4 h-4 text-primary-600 dark:text-primary-400"}),(0,a.jsx)("a",{href:"tel:".concat(e.contactPhone),className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 text-sm transition-colors",children:e.contactPhone})]}),e.address&&(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)(w.A,{className:"w-4 h-4 text-primary-600 dark:text-primary-400"}),(0,a.jsx)("a",{href:e.googleMapsUrl||"https://maps.google.com/?q=".concat(encodeURIComponent(e.address)),target:"_blank",rel:"noopener noreferrer",className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 text-sm transition-colors",children:e.address})]})]})]}),e.showNavigation&&i.length>0&&(0,a.jsx)("div",{className:"lg:col-span-3",children:(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-8",children:i.map(e=>{var t;return(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-secondary-900 dark:text-white mb-4 uppercase tracking-wide",children:e.title}),(0,a.jsx)("ul",{className:"space-y-2",children:null==(t=e.links)?void 0:t.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(o(),{href:e.href,className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 transition-colors text-sm",children:e.name})},e.id||e.name))})]},e.name)})})})]}),(0,a.jsx)("div",{className:"border-t border-secondary-200 dark:border-secondary-700 pt-6",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[e.showCopyright&&(0,a.jsx)("div",{className:"text-secondary-500 dark:text-secondary-400 text-sm",children:e.copyrightText}),e.showSocialLinks&&c.length>0&&(0,a.jsx)("div",{className:"flex items-center space-x-3",children:c.map(e=>{let t=e.icon;return(0,a.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 bg-secondary-100 dark:bg-secondary-800 hover:bg-primary-100 dark:hover:bg-primary-900/30 rounded-lg flex items-center justify-center transition-colors group",children:(0,a.jsx)(t,{className:"w-4 h-4 text-secondary-600 dark:text-secondary-300 group-hover:text-primary-600 dark:group-hover:text-primary-400 transition-colors"})},e.name)})})]})})]})})}var q=r(71366),H=r(25657),K=r(91981),U=r(74311),Y=r(67624),B=r(12486);function V(){let[e,t]=(0,s.useState)(!1),[r,n]=(0,s.useState)(!1),[o,i]=(0,s.useState)([{id:"1",text:"Hello! \uD83D\uDC4B I'm here to help you with any questions about DataGuard AI, our products, or data protection solutions. How can I assist you today?",sender:"bot",timestamp:new Date}]),[c,l]=(0,s.useState)(""),[m,x]=(0,s.useState)(!1),h=(0,s.useRef)(null),u=(0,s.useRef)(null);(0,s.useEffect)(()=>{var e;null==(e=h.current)||e.scrollIntoView({behavior:"smooth"})},[o]),(0,s.useEffect)(()=>{e&&u.current&&u.current.focus()},[e]);let y=async()=>{if(!c.trim())return;let e={id:Date.now().toString(),text:c.trim(),sender:"user",timestamp:new Date};i(t=>[...t,e]),l(""),x(!0),setTimeout(()=>{let e=["Thank you for your message! Our team will get back to you shortly. In the meantime, you can explore our solutions at /solutions or contact us directly at contact@orgpyur.com.","Great question! DataGuard AI provides comprehensive data protection solutions. Would you like to learn more about our specific features or schedule a demo?","I understand you're interested in data protection. Our platform offers real-time monitoring, compliance automation, and AI-powered threat detection. What specific aspect would you like to know more about?","Thanks for reaching out! For immediate assistance, you can call us at +1 (416) 555-1234 or email contact@orgpyur.com. Our team is available to help with your data governance needs."],t=e[Math.floor(Math.random()*e.length)],r={id:(Date.now()+1).toString(),text:t,sender:"bot",timestamp:new Date};i(e=>[...e,r]),x(!1)},1500)},p=()=>{t(!e),e||n(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{onClick:p,className:"fixed bottom-6 right-6 z-50 bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white p-4 rounded-full shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-110 group",title:"Chat with us",children:[(0,a.jsx)(q.A,{className:"h-6 w-6"}),(0,a.jsx)("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-green-400 rounded-full animate-pulse"})]}),e&&(0,a.jsxs)("div",{className:"fixed bottom-24 right-6 z-50 w-96 max-h-[600px] bg-white dark:bg-gray-800 rounded-2xl shadow-2xl border border-gray-200 dark:border-gray-700 overflow-hidden transition-all duration-300",children:[(0,a.jsxs)("div",{className:"bg-gradient-to-r from-primary-500 to-primary-600 px-6 py-4 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 bg-white/20 rounded-full flex items-center justify-center",children:(0,a.jsx)(H.A,{className:"h-5 w-5 text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-white font-semibold",children:"DataGuard AI Support"}),(0,a.jsx)("p",{className:"text-primary-100 text-sm",children:"We're here to help!"})]})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("button",{onClick:()=>{n(!r)},className:"text-white/80 hover:text-white transition-colors",children:r?(0,a.jsx)(K.A,{className:"h-4 w-4"}):(0,a.jsx)(U.A,{className:"h-4 w-4"})}),(0,a.jsx)("button",{onClick:p,className:"text-white/80 hover:text-white transition-colors",children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})]})]}),!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"h-80 overflow-y-auto p-4 space-y-4",children:[o.map(e=>(0,a.jsx)("div",{className:"flex ".concat("user"===e.sender?"justify-end":"justify-start"),children:(0,a.jsxs)("div",{className:"max-w-xs lg:max-w-md px-4 py-2 rounded-2xl ".concat("user"===e.sender?"bg-primary-500 text-white":"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-gray-100"),children:[(0,a.jsx)("p",{className:"text-sm",children:e.text}),(0,a.jsx)("p",{className:"text-xs opacity-70 mt-1",children:e.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},e.id)),m&&(0,a.jsx)("div",{className:"flex justify-start",children:(0,a.jsx)("div",{className:"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-gray-100 px-4 py-2 rounded-2xl",children:(0,a.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,a.jsx)(Y.A,{className:"h-4 w-4 animate-spin"}),(0,a.jsx)("span",{className:"text-sm",children:"Typing..."})]})})}),(0,a.jsx)("div",{ref:h})]}),(0,a.jsxs)("div",{className:"border-t border-gray-200 dark:border-gray-700 p-4",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("input",{ref:u,type:"text",value:c,onChange:e=>l(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),y())},placeholder:"Type your message...",className:"flex-1 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-full focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white dark:bg-gray-700 text-gray-900 dark:text-white text-sm"}),(0,a.jsx)("button",{onClick:y,disabled:!c.trim(),className:"p-2 bg-primary-500 hover:bg-primary-600 disabled:bg-gray-300 disabled:cursor-not-allowed text-white rounded-full transition-colors",children:(0,a.jsx)(B.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-2 text-center",children:"Press Enter to send"})]})]})]})]})}function J(e){let{preloadResources:t=[],prefetchPages:r=[],enableIntersectionObserver:a=!0,enableResourceHints:n=!1}=e;return(0,s.useRef)(null),(0,s.useEffect)(()=>{},[t,r,a,n]),null}function Q(e){let{children:t,isAdminPage:r=!1,preloadData:n={settings:!0,navigation:!0,footer:!0}}=e,[o,i]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{i(!0)},[]),r)?(0,a.jsx)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:t}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,a.jsx)(y,{}),(0,a.jsx)("main",{className:"flex-1",children:t}),(0,a.jsx)(W,{}),o&&(0,a.jsx)(V,{}),(0,a.jsx)(J,{preloadResources:[],prefetchPages:["/about","/contact","/blog"],enableIntersectionObserver:!0,enableResourceHints:!1})]})})}},67959:(e,t,r)=>{Promise.resolve().then(r.bind(r,9357))}},e=>{e.O(0,[9695,8096,7358],()=>e(e.s=67959)),_N_E=e.O()}]);